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

Function NewTextRangeWithKind

internal/format/scanner.go:17–22  ·  view source on GitHub ↗
(pos int, end int, kind ast.Kind)

Source from the content-addressed store, hash-verified

15}
16
17func NewTextRangeWithKind(pos int, end int, kind ast.Kind) TextRangeWithKind {
18 return TextRangeWithKind{
19 Loc: core.NewTextRange(pos, end),
20 Kind: kind,
21 }
22}
23
24type tokenInfo struct {
25 leadingTrivia []TextRangeWithKind

Callers 8

advanceMethod · 0.85
readTokenInfoMethod · 0.85
readEOFTokenRangeMethod · 0.85
executeMethod · 0.85
processRangeMethod · 0.85

Calls 1

NewTextRangeFunction · 0.92

Tested by

no test coverage detected