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

Method scanInvalidCharacter

internal/scanner/scanner.go:2207–2212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2205}
2206
2207func (s *Scanner) scanInvalidCharacter() {
2208 _, size := s.charAndSize()
2209 s.errorAt(diagnostics.Invalid_character, s.pos, size)
2210 s.pos += size
2211 s.token = ast.KindUnknown
2212}
2213
2214func GetIdentifierToken(str string) ast.Kind {
2215 if len(str) >= 2 && len(str) <= 12 && str[0] >= 'a' && str[0] <= 'z' {

Callers 1

ScanMethod · 0.95

Calls 2

charAndSizeMethod · 0.95
errorAtMethod · 0.95

Tested by

no test coverage detected