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

Method isOnToken

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

Source from the content-addressed store, hash-verified

319}
320
321func (s *formattingScanner) isOnToken() bool {
322 current := s.s.Token()
323 if s.hasLastTokenInfo {
324 current = s.lastTokenInfo.token.Kind
325 }
326 return current != ast.KindEndOfFile && !ast.IsTrivia(current)
327}
328
329func (s *formattingScanner) isOnEOF() bool {
330 current := s.s.Token()

Callers 5

readTokenInfoMethod · 0.95
executeMethod · 0.80
processChildNodeMethod · 0.80
processChildNodesMethod · 0.80
processNodeMethod · 0.80

Calls 2

IsTriviaFunction · 0.92
TokenMethod · 0.80

Tested by

no test coverage detected