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

Method parseErrorAtCurrentToken

internal/parser/parser.go:325–327  ·  view source on GitHub ↗
(message *diagnostics.Message, args ...any)

Source from the content-addressed store, hash-verified

323}
324
325func (p *Parser) parseErrorAtCurrentToken(message *diagnostics.Message, args ...any) *ast.Diagnostic {
326 return p.parseErrorAtRange(p.scanner.TokenRange(), message, args...)
327}
328
329func (p *Parser) parseErrorAtRange(loc core.TextRange, message *diagnostics.Message, args ...any) *ast.Diagnostic {
330 // Don't report another error if it would just be at the same location as the last error

Callers 15

parseJSONTextMethod · 0.95
nextTokenMethod · 0.95
parseDelimitedListMethod · 0.95
parsingContextErrorsMethod · 0.95
parseExpectedJSDocMethod · 0.95
parseExpectedTokenMethod · 0.95
parseBlockMethod · 0.95

Calls 2

parseErrorAtRangeMethod · 0.95
TokenRangeMethod · 0.80

Tested by

no test coverage detected