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

Method isIndexSignature

internal/parser/parser.go:3515–3517  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3513}
3514
3515func (p *Parser) isIndexSignature() bool {
3516 return p.token == ast.KindOpenBracketToken && p.lookAhead((*Parser).nextIsUnambiguouslyIndexSignature)
3517}
3518
3519func (p *Parser) nextIsUnambiguouslyIndexSignature() bool {
3520 // The only allowed sequence is:

Callers 2

parseClassElementMethod · 0.95
parseTypeMemberMethod · 0.95

Calls 1

lookAheadMethod · 0.95

Tested by

no test coverage detected