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

Method errorAt

internal/scanner/scanner.go:417–421  ·  view source on GitHub ↗
(diagnostic *diagnostics.Message, pos int, length int, args ...any)

Source from the content-addressed store, hash-verified

415}
416
417func (s *Scanner) errorAt(diagnostic *diagnostics.Message, pos int, length int, args ...any) {
418 if s.onError != nil {
419 s.onError(diagnostic, pos, length, args...)
420 }
421}
422
423// NOTE: even though this returns a rune, it only decodes the current byte.
424// It must be checked against utf8.RuneSelf to verify that a call to charAndSize

Callers 13

errorMethod · 0.95
ScanMethod · 0.95
ReScanSlashTokenMethod · 0.95
ScanJsxTokenExMethod · 0.95
scanEscapeSequenceMethod · 0.95
scanUnicodeEscapeMethod · 0.95
scanNumberMethod · 0.95
scanNumberFragmentMethod · 0.95
scanHexDigitsMethod · 0.95
scanInvalidCharacterMethod · 0.95

Calls 1

onErrorMethod · 0.80

Tested by

no test coverage detected