Documentation
¶
Index ¶
- func AssertHasRealPosition(node *ast.Node)
- func GetFirstToken(node *ast.Node, sourceFile *ast.SourceFile) *ast.Node
- func GetLastChild(node *ast.Node, sourceFile *ast.SourceFile) *ast.Node
- func GetLastToken(node *ast.Node, sourceFile *ast.SourceFile) *ast.Node
- func GetLastVisitedChild(node *ast.Node, sourceFile *ast.SourceFile) *ast.Node
- func NodeIsASICandidate(node *ast.Node, file *ast.SourceFile) bool
- func PositionIsASICandidate(pos int, context *ast.Node, file *ast.SourceFile) bool
- func SyntaxMayBeASICandidate(kind ast.Kind) bool
- func SyntaxRequiresTrailingCommaOrSemicolonOrASI(kind ast.Kind) bool
- func SyntaxRequiresTrailingFunctionBlockOrSemicolonOrASI(kind ast.Kind) bool
- func SyntaxRequiresTrailingModuleBlockOrSemicolonOrASI(kind ast.Kind) bool
- func SyntaxRequiresTrailingSemicolonOrASI(kind ast.Kind) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertHasRealPosition ¶
func GetFirstToken ¶
func GetLastChild ¶
Replaces last(node.getChildren(sourceFile))
func GetLastToken ¶
func GetLastVisitedChild ¶
Gets the last visited child of the given node. NOTE: This doesn't include unvisited tokens; for this, use `getLastChild` or `getLastToken`.
func NodeIsASICandidate ¶
func NodeIsASICandidate(node *ast.Node, file *ast.SourceFile) bool
func PositionIsASICandidate ¶
func SyntaxMayBeASICandidate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.