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

Method readEOFTokenRange

internal/format/scanner.go:312–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310}
311
312func (s *formattingScanner) readEOFTokenRange() TextRangeWithKind {
313 debug.Assert(s.isOnEOF())
314 return NewTextRangeWithKind(
315 s.s.TokenFullStart(),
316 s.s.TokenEnd(),
317 ast.KindEndOfFile,
318 )
319}
320
321func (s *formattingScanner) isOnToken() bool {
322 current := s.s.Token()

Callers 1

executeMethod · 0.80

Calls 5

isOnEOFMethod · 0.95
AssertFunction · 0.92
NewTextRangeWithKindFunction · 0.85
TokenFullStartMethod · 0.80
TokenEndMethod · 0.80

Tested by

no test coverage detected