Indexable
[prop: string]: unknown
Methods
genericVisit
- genericVisit(node: BaseNode): void
-
Returns void
visit
- visit(node: BaseNode): void
-
Returns void
Optional
visitAnnotation
- visitAnnotation(node: Annotation): void
-
Returns void
Optional
visitAttribute
- visitAttribute(node: Attribute): void
-
Returns void
Optional
visitCallArguments
Optional
visitFunctionReference
Optional
visitGroupComment
Optional
visitIdentifier
- visitIdentifier(node: Identifier): void
-
Returns void
Optional
visitJunk
- visitJunk(node: Junk): void
-
Returns void
Optional
visitMessage
- visitMessage(node: Message): void
-
Returns void
Optional
visitMessageReference
Optional
visitNamedArgument
Optional
visitNumberLiteral
Optional
visitPattern
- visitPattern(node: Pattern): void
-
Returns void
Optional
visitPlaceable
- visitPlaceable(node: Placeable): void
-
Returns void
Optional
visitResource
- visitResource(node: Resource): void
-
Returns void
Optional
visitResourceComment
Optional
visitSelectExpression
Optional
visitSpan
- visitSpan(node: Span): void
-
Returns void
Optional
visitStringLiteral
Optional
visitTerm
- visitTerm(node: Term): void
-
Returns void
Optional
visitTermReference
Optional
visitTextElement
Optional
visitVariableReference
Optional
visitVariant
- visitVariant(node: Variant): void
-
Returns void
A read-only visitor.
Subclasses can be used to gather information from an AST.
To handle specific node types add methods like
visitPattern
. Then, to descend into children callgenericVisit
.Visiting methods must implement the following interface: