MCPcopy Create free account
hub / github.com/microsoft/typescript-go / GetStartOfNode

Function GetStartOfNode

internal/astnav/tokens.go:463–465  ·  view source on GitHub ↗
(node *ast.Node, file *ast.SourceFile, includeJSDoc bool)

Source from the content-addressed store, hash-verified

461}
462
463func GetStartOfNode(node *ast.Node, file *ast.SourceFile, includeJSDoc bool) int {
464 return scanner.GetTokenPosOfNode(node, file, includeJSDoc)
465}
466
467// Looks for rightmost valid token in the range [startPos, endPos).
468// If position is >= 0, looks for rightmost valid token that precedes or touches that position.

Callers 15

getRenameInfoSuccessFunction · 0.92
getNodeDisplayPartMethod · 0.92
ProvideWorkspaceSymbolsFunction · 0.92
addNodeOutliningSpansMethod · 0.92
spanForTemplateLiteralFunction · 0.92
spanForJSXElementFunction · 0.92
spanForJSXAttributesFunction · 0.92
rangeBetweenTokensFunction · 0.92

Calls 1

GetTokenPosOfNodeFunction · 0.92

Tested by

no test coverage detected