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

Method scanError

internal/parser/parser.go:317–319  ·  view source on GitHub ↗
(message *diagnostics.Message, pos int, length int, args ...any)

Source from the content-addressed store, hash-verified

315}
316
317func (p *Parser) scanError(message *diagnostics.Message, pos int, length int, args ...any) {
318 p.parseErrorAtRange(core.NewTextRange(pos, pos+length), message, args...)
319}
320
321func (p *Parser) parseErrorAt(pos int, end int, message *diagnostics.Message, args ...any) *ast.Diagnostic {
322 return p.parseErrorAtRange(core.NewTextRange(pos, end), message, args...)

Callers

nothing calls this directly

Calls 2

parseErrorAtRangeMethod · 0.95
NewTextRangeFunction · 0.92

Tested by

no test coverage detected