Skip to main content

Crate treesitter_types_javascript

Crate treesitter_types_javascript 

Source
Expand description

Strongly-typed AST types for JavaScript, generated from tree-sitter-javascript’s node-types.json.

Structs§

Arguments
Array
ArrayPattern
ArrowFunction
AssignmentExpression
AssignmentPattern
AugmentedAssignmentExpression
AwaitExpression
BinaryExpression
BreakStatement
CallExpression
CatchClause
Class
ClassBody
ClassDeclaration
ClassHeritage
ClassStaticBlock
Comment
ComputedPropertyName
ContinueStatement
DebuggerStatement
Decorator
DoStatement
ElseClause
EmptyStatement
EscapeSequence
ExportClause
ExportSpecifier
ExportStatement
ExpressionStatement
False
FieldDefinition
FinallyClause
ForInStatement
ForStatement
FormalParameters
FunctionDeclaration
FunctionExpression
GeneratorFunction
GeneratorFunctionDeclaration
HashBangLine
HtmlCharacterReference
HtmlComment
Identifier
IfStatement
Import
ImportAttribute
ImportClause
ImportSpecifier
ImportStatement
JsxAttribute
JsxClosingElement
JsxElement
JsxExpression
JsxNamespaceName
JsxOpeningElement
JsxSelfClosingElement
JsxText
LabeledStatement
LexicalDeclaration
MemberExpression
MetaProperty
MethodDefinition
NamedImports
NamespaceExport
NamespaceImport
NewExpression
Null
Number
Object
ObjectAssignmentPattern
ObjectPattern
OptionalChain
Pair
PairPattern
ParenthesizedExpression
PrivatePropertyIdentifier
Program
PropertyIdentifier
Regex
RegexFlags
RegexPattern
RestPattern
ReturnStatement
SequenceExpression
ShorthandPropertyIdentifier
ShorthandPropertyIdentifierPattern
Span
SpreadElement
StatementBlock
StatementIdentifier
String
StringFragment
SubscriptExpression
Super
SwitchBody
SwitchCase
SwitchDefault
SwitchStatement
TemplateString
TemplateSubstitution
TernaryExpression
This
ThrowStatement
True
TryStatement
UnaryExpression
Undefined
UpdateExpression
UsingDeclaration
VariableDeclaration
VariableDeclarator
WhileStatement
WithStatement
YieldExpression

Enums§

AnyNode
ArgumentsChildren
ArrayChildren
ArrayPatternChildren
ArrowFunctionBody
AssignmentExpressionLeft
AugmentedAssignmentExpressionLeft
AugmentedAssignmentExpressionOperator
BinaryExpressionLeft
BinaryExpressionOperator
CallExpressionArguments
CallExpressionFunction
CatchClauseParameter
ClassBodyMember
Declaration
DecoratorChildren
ExportSpecifierAlias
ExportSpecifierName
ExportStatementChildren
Expression
ExpressionStatementChildren
FieldDefinitionProperty
ForInStatementKind
ForInStatementLeft
ForInStatementOperator
ForInStatementRight
ForStatementCondition
ForStatementIncrement
ForStatementInitializer
FormalParametersChildren
ImportClauseChildren
ImportSpecifierName
ImportStatementChildren
JsxAttributeChildren
JsxClosingElementName
JsxElementChildren
JsxExpressionChildren
JsxOpeningElementAttribute
JsxOpeningElementName
JsxSelfClosingElementAttribute
JsxSelfClosingElementName
LexicalDeclarationKind
MemberExpressionObject
MemberExpressionProperty
MethodDefinitionName
NamespaceExportChildren
NewExpressionConstructor
ObjectAssignmentPatternLeft
ObjectChildren
ObjectPatternChildren
PairKey
PairPatternKey
PairPatternValue
ParenthesizedExpressionChildren
ParseError
Pattern
PrimaryExpression
ProgramChildren
RestPatternChildren
ReturnStatementChildren
Statement
StringChildren
SubscriptExpressionIndex
SwitchBodyChildren
SwitchCaseValue
TemplateStringChildren
TemplateSubstitutionChildren
ThrowStatementChildren
UnaryExpressionOperator
UpdateExpressionOperator
UsingDeclarationKind
VariableDeclaratorName

Traits§

FromNode
Every generated struct and enum implements this.
LeafNode
Implemented by every generated leaf type (identifiers, literals, etc.)
Spanned
Implemented by every generated type that has a source location.