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

Method error

internal/scanner/scanner.go:413–415  ·  view source on GitHub ↗
(diagnostic *diagnostics.Message)

Source from the content-addressed store, hash-verified

411}
412
413func (s *Scanner) error(diagnostic *diagnostics.Message) {
414 s.errorAt(diagnostic, s.pos, 0)
415}
416
417func (s *Scanner) errorAt(diagnostic *diagnostics.Message, pos int, length int, args ...any) {
418 if s.onError != nil {

Callers 6

ScanMethod · 0.95
scanStringMethod · 0.95
scanEscapeSequenceMethod · 0.95
scanUnicodeEscapeMethod · 0.95
scanNumberMethod · 0.95

Calls 1

errorAtMethod · 0.95

Tested by

no test coverage detected