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

Method isUsingDeclaration

internal/parser/parser.go:6340–6347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6338}
6339
6340func (p *Parser) isUsingDeclaration() bool {
6341 // 'using' always starts a lexical declaration if followed by an identifier. We also eagerly parse
6342 // |ObjectBindingPattern| so that we can report a grammar error during check. We don't parse out
6343 // |ArrayBindingPattern| since it potentially conflicts with element access (i.e., `using[x]`).
6344 return p.lookAhead(func(p *Parser) bool {
6345 return p.nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine( /*disallowOf*/ false)
6346 })
6347}
6348
6349func (p *Parser) nextTokenIsEqualsOrSemicolonOrColonToken() bool {
6350 p.nextToken()

Callers 2

parseStatementMethod · 0.95

Tested by

no test coverage detected