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

Method parseExpectedWithoutAdvancing

internal/parser/parser.go:1002–1004  ·  view source on GitHub ↗
(kind ast.Kind)

Source from the content-addressed store, hash-verified

1000}
1001
1002func (p *Parser) parseExpectedWithoutAdvancing(kind ast.Kind) bool {
1003 return p.parseExpectedWithDiagnostic(kind, nil, false)
1004}
1005
1006func (p *Parser) parseExpectedWithDiagnostic(kind ast.Kind, message *diagnostics.Message, shouldAdvance bool) bool {
1007 if p.token == kind {

Calls 1

Tested by

no test coverage detected