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

Method createLspRangeFromNode

internal/ls/utilities.go:287–289  ·  view source on GitHub ↗
(node *ast.Node, file *ast.SourceFile)

Source from the content-addressed store, hash-verified

285}
286
287func (l *LanguageService) createLspRangeFromNode(node *ast.Node, file *ast.SourceFile) lsproto.Range {
288 return l.createLspRangeFromBounds(scanner.GetTokenPosOfNode(node, file, false /*includeJSDoc*/), node.End(), file)
289}
290
291func createRangeFromNode(node *ast.Node, file *ast.SourceFile) core.TextRange {
292 return core.NewTextRange(scanner.GetTokenPosOfNode(node, file, false /*includeJSDoc*/), node.End())

Callers 7

ProvideTypeDefinitionMethod · 0.95
highlightSpansMethod · 0.95
getIfElseOccurrencesMethod · 0.95
getOutliningSpanForNodeFunction · 0.80

Calls 3

GetTokenPosOfNodeFunction · 0.92
EndMethod · 0.65

Tested by

no test coverage detected