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

Method skipRangeTrivia

internal/parser/parser.go:6414–6416  ·  view source on GitHub ↗
(textRange core.TextRange)

Source from the content-addressed store, hash-verified

6412}
6413
6414func (p *Parser) skipRangeTrivia(textRange core.TextRange) core.TextRange {
6415 return core.NewTextRange(scanner.SkipTrivia(p.sourceText, textRange.Pos()), textRange.End())
6416}
6417
6418func isReservedWord(token ast.Kind) bool {
6419 return ast.KindFirstReservedWord <= token && token <= ast.KindLastReservedWord

Calls 4

NewTextRangeFunction · 0.92
SkipTriviaFunction · 0.92
PosMethod · 0.65
EndMethod · 0.65

Tested by

no test coverage detected