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

Method isBindingIdentifier

internal/parser/parser.go:6292–6295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6290}
6291
6292func (p *Parser) isBindingIdentifier() bool {
6293 // `let await`/`let yield` in [Yield] or [Await] are allowed here and disallowed in the binder.
6294 return p.token == ast.KindIdentifier || p.token > ast.KindLastReservedWord
6295}
6296
6297func (p *Parser) isImportAttributeName() bool {
6298 return tokenIsIdentifierOrKeyword(p.token) || p.token == ast.KindStringLiteral

Calls

no outgoing calls

Tested by

no test coverage detected