MCPcopy Index your code
hub / github.com/microsoft/typescript-go / parseErrorAt

Method parseErrorAt

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

Source from the content-addressed store, hash-verified

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...)
323}
324
325func (p *Parser) parseErrorAtCurrentToken(message *diagnostics.Message, args ...any) *ast.Diagnostic {
326 return p.parseErrorAtRange(p.scanner.TokenRange(), message, args...)

Calls 2

parseErrorAtRangeMethod · 0.95
NewTextRangeFunction · 0.92

Tested by

no test coverage detected