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

Method isLetDeclaration

internal/parser/parser.go:1198–1202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1196}
1197
1198func (p *Parser) isLetDeclaration() bool {
1199 // In ES6 'let' always starts a lexical declaration if followed by an identifier or {
1200 // or [.
1201 return p.lookAhead((*Parser).nextTokenIsBindingIdentifierOrStartOfDestructuring)
1202}
1203
1204func (p *Parser) nextTokenIsBindingIdentifierOrStartOfDestructuring() bool {
1205 p.nextToken()

Callers 1

parseStatementMethod · 0.95

Calls 1

lookAheadMethod · 0.95

Tested by

no test coverage detected