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

Function isInComment

internal/ls/utilities.go:94–96  ·  view source on GitHub ↗
(file *ast.SourceFile, position int, tokenAtPosition *ast.Node)

Source from the content-addressed store, hash-verified

92}
93
94func isInComment(file *ast.SourceFile, position int, tokenAtPosition *ast.Node) *ast.CommentRange {
95 return getRangeOfEnclosingComment(file, position, astnav.FindPrecedingToken(file, position), tokenAtPosition)
96}
97
98func positionBelongsToNode(candidate *ast.Node, position int, file *ast.SourceFile) bool {
99 return lsutil.PositionBelongsToNode(candidate, position, file)

Callers 6

ProvideHoverMethod · 0.85
isInReferenceCommentFunction · 0.85
getCompletionDataMethod · 0.85
GetSignatureHelpItemsMethod · 0.85

Calls 2

FindPrecedingTokenFunction · 0.92

Tested by

no test coverage detected