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

Method newIdentifier

internal/parser/parser.go:2972–2979  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

2970}
2971
2972func (p *Parser) newIdentifier(text string) *ast.Node {
2973 p.identifierCount++
2974 id := p.factory.NewIdentifier(text)
2975 if text == "await" {
2976 p.statementHasAwaitIdentifier = true
2977 }
2978 return id
2979}
2980
2981func (p *Parser) createMissingIdentifier() *ast.Node {
2982 return p.finishNode(p.newIdentifier(""), p.nodePos())

Calls 1

NewIdentifierMethod · 0.80

Tested by

no test coverage detected