AstKind Module
Nested modules
| Modules | Description |
|
Section boundaries the schema declares. The range guards below are written in terms of these rather than in terms of literal ordinals. |
Functions and values
| Function or value |
Description
|
Full Usage:
AstKind.Count
Returns: int
|
How many kinds the schema declares. The compiler's `KindCount`.
|
|
True when the node's text lives in its extended-data record rather than in the data word. `SourceFile` also carries extended data, but its record is hand-written in the compiler's client rather than described by the schema, so it is not included.
|
|
True when the node's data word is an index into the string table, so its text is read straight from there. `Ast.text` handles both this and `hasExtendedText`.
|
|
|
|
True when the kind is one of the schema's `AccessorDeclaration` nodes.
|
|
|
|
True when the kind is one of the schema's `AdditiveOperatorOrHigher`.
|
|
|
|
True when the kind is one of the schema's `ArrayBindingElement` nodes.
|
|
True when the kind is one of the schema's `ArrayDestructuringAssignment` nodes.
|
|
True when the kind is one of the schema's `AssertionExpression` nodes.
|
|
|
|
True when the kind is one of the schema's `AssignmentOperatorOrHigher`.
|
|
|
|
|
|
|
|
True when the kind is one of the schema's `BitwiseOperatorOrHigher`.
|
|
True when the kind is one of the schema's `BlockOrExpression` nodes.
|
|
|
|
True when the kind is one of the schema's `BreakOrContinueStatement` nodes.
|
|
True when the kind is one of the schema's `CallLikeExpression` nodes.
|
|
True when the kind is one of the schema's `CallOrNewExpression` nodes.
|
|
|
|
True when the kind is one of the schema's `ClassLikeDeclaration` nodes.
|
|
True when the kind is one of the schema's `CompoundAssignmentOperator`.
|
|
|
|
|
|
|
|
True when the kind is one of the schema's `DestructuringAssignment` nodes.
|
|
|
|
|
|
True when the kind is one of the schema's `EqualityOperatorOrHigher`.
|
|
|
|
Guards for the schema's *node* aliases - the unions `ast.json` declares over node types, as opposed to the kind aliases above. A member declared as an `Expression` holds any of these kinds, and these are what the typed layer's views are written on. True when the kind is one of the schema's `Expression` nodes.
|
|
|
|
|
|
True when the kind is one of the schema's `FunctionLikeDeclaration` nodes.
|
|
True when the kind is one of the schema's `HeritageClauseElement` nodes.
|
|
True when the kind is one of the schema's `ImportAttributeName` nodes.
|
|
True when the kind is one of the schema's `ImportClauseOrBindingPattern` nodes.
|
|
True when the kind is one of the schema's `ImportPhaseModifierSyntaxKind`.
|
|
True when the kind is one of the schema's `IncrementExpression` nodes.
|
|
|
|
|
Full Usage:
AstKind.isJSDocNodeKind kind
Parameters:
SyntaxKind
Returns: bool
Modifiers: inline |
|
|
|
|
|
|
|
|
True when the kind is one of the schema's `JsxAttributeValue` nodes.
|
|
|
|
True when the kind is one of the schema's `JsxOpeningLikeElement` nodes.
|
|
True when the kind is one of the schema's `JsxTagNameExpression` nodes.
|
|
|
|
True when the kind is one of the schema's `KeywordExpressionSyntaxKind`.
|
Full Usage:
AstKind.isKeywordKind kind
Parameters:
SyntaxKind
Returns: bool
Modifiers: inline |
|
|
|
|
True when the kind is one of the schema's `LeftHandSideExpression` nodes.
|
|
True when the kind is one of the schema's `LiteralExpression` nodes.
|
Full Usage:
AstKind.isLiteralKind kind
Parameters:
SyntaxKind
Returns: bool
Modifiers: inline |
|
|
|
|
|
|
|
|
True when the kind is one of the schema's `LogicalOperatorOrHigher`.
|
Full Usage:
AstKind.isLogicalOrCoalescingAssignmentOperator kind
Parameters:
SyntaxKind
Returns: bool
|
True when the kind is one of the schema's `LogicalOrCoalescingAssignmentOperator`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
AstKind.isMultiplicativeOperatorOrHigher kind
Parameters:
SyntaxKind
Returns: bool
|
True when the kind is one of the schema's `MultiplicativeOperatorOrHigher`.
|
|
True when the kind is one of the schema's `NamedExportBindings` nodes.
|
|
True when the kind is one of the schema's `NamedImportBindings` nodes.
|
|
True when the kind is one of the schema's `NamedImportsOrExports` nodes.
|
|
|
|
True when the kind is one of the schema's `NumericOrStringLikeLiteral` nodes.
|
Full Usage:
AstKind.isObjectDestructuringAssignment kind
Parameters:
SyntaxKind
Returns: bool
|
True when the kind is one of the schema's `ObjectDestructuringAssignment` nodes.
|
|
True when the kind is one of the schema's `ObjectLiteralElement` nodes.
|
|
True when the kind is one of the schema's `ObjectLiteralElementLike` nodes.
|
|
True when the kind is one of the schema's `ObjectLiteralLikeNode` nodes.
|
|
True when the kind is one of the schema's `ObjectTypeDeclaration` nodes.
|
|
|
|
|
|
|
|
True when the kind is one of the schema's `PropertyNameLiteral` nodes.
|
|
True when the kind is one of the schema's `PseudoLiteralSyntaxKind`.
|
|
True when the kind is one of the schema's `PseudoLiteralToken` nodes.
|
Full Usage:
AstKind.isPunctuationKind kind
Parameters:
SyntaxKind
Returns: bool
Modifiers: inline |
|
|
|
|
True when the kind is one of the schema's `RelationalOperatorOrHigher`.
|
|
|
|
|
|
True when the kind is one of the schema's `SignatureDeclaration` nodes.
|
|
|
|
True when the kind is one of the schema's `StringLiteralLikeNode` nodes.
|
|
|
|
True when the kind is one of the schema's `TemplateLiteralLikeNode` nodes.
|
|
True when the kind is one of the schema's `TemplateLiteralToken` nodes.
|
|
True when the kind is one of the schema's `TemplateMiddleOrTail` nodes.
|
|
|
|
|
|
|
|
|
|
True when the kind is one of the schema's `TypePredicateParameterName` nodes.
|
|
True when the kind is one of the schema's `UnionOrIntersectionTypeNode` nodes.
|
Full Usage:
AstKind.isVariableOrParameterDeclaration kind
Parameters:
SyntaxKind
Returns: bool
|
True when the kind is one of the schema's `VariableOrParameterDeclaration` nodes.
|
Full Usage:
AstKind.isVariableOrPropertyDeclaration kind
Parameters:
SyntaxKind
Returns: bool
|
True when the kind is one of the schema's `VariableOrPropertyDeclaration` nodes.
|
|
The kind's schema name. A table rather than `ToString()`, which reflects.
|