Crate libcst_native

Source

Re-exports§

pub use tokenizer::whitespace_parser::Config;

Modules§

py
tokenizer

Structs§

AnnAssign
Annotation
Arg
AsName
Assert
Assign
AssignEqual
AssignTarget
Asynchronous
Attribute
AugAssign
Await
BinaryOperation
BitOr
BooleanOperation
Break
Call
ClassDef
CodegenState
Colon
Comma
Comment
CompFor
CompIf
Comparison
ComparisonTarget
ConcatenatedString
Continue
Decorator
Del
Dict
DictComp
Dot
Ellipsis
Else
EmptyLine
ExceptHandler
ExceptStarHandler
Expr
Finally
Float
For
FormattedString
FormattedStringExpression
FormattedStringText
From
FunctionDef
GeneratorExp
Global
If
IfExp
Imaginary
Import
ImportAlias
ImportFrom
ImportStar
IndentedBlock
Index
Integer
Lambda
LeftCurlyBrace
LeftParen
LeftSquareBracket
List
ListComp
Match
MatchAs
MatchCase
MatchClass
MatchKeywordElement
MatchList
MatchMapping
MatchMappingElement
MatchOr
MatchOrElement
MatchSequenceElement
MatchSingleton
MatchStar
MatchTuple
MatchValue
Module
Name
NameItem
NamedExpr
Newline
Nonlocal
Param
ParamSlash
ParamStar
Parameters
ParenthesizedWhitespace
Pass
Raise
Return
RightCurlyBrace
RightParen
RightSquareBracket
Semicolon
Set
SetComp
SimpleStatementLine
SimpleStatementSuite
SimpleString
SimpleWhitespace
Slice
StarredDictElement
StarredElement
Subscript
SubscriptElement
TrailingWhitespace
Try
TryStar
Tuple
TypeAlias
TypeParam
TypeParameters
TypeVar
TypeVarTuple
UnaryOperation
While
With
WithItem
Yield

Enums§

AssignTargetExpression
AugOp
BaseSlice
BinaryOp
BooleanOp
CompOp
CompoundStatement
DelTargetExpression
DictElement
Element
Expression
Fakeness
FormattedStringContent
ImportNames
MatchPattern
MatchSequence
NameOrAttribute
OrElse
ParenthesizableWhitespace
SmallStatement
StarArg
StarrableMatchSequenceElement
Statement
String
Suite
TypeVarLike
UnaryOp
YieldValue

Traits§

Codegen
Inflate
ParenthesizedNode
WithComma
WithLeadingLines

Functions§

parse_expression
parse_module
parse_statement
parse_tokens_without_whitespace
prettify_error
tokenize