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

Method parseIdentifierName

internal/parser/parser.go:5839–5841  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5837}
5838
5839func (p *Parser) parseIdentifierName() *ast.Node {
5840 return p.parseIdentifierNameWithDiagnostic(nil)
5841}
5842
5843func (p *Parser) parseIdentifierNameWithDiagnostic(diagnosticMessage *diagnostics.Message) *ast.Node {
5844 return p.createIdentifierWithDiagnostic(tokenIsIdentifierOrKeyword(p.token), diagnosticMessage, nil)

Tested by

no test coverage detected