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

Method nextTokenIsIdentifierOnSameLine

internal/parser/parser.go:6267–6270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6265}
6266
6267func (p *Parser) nextTokenIsIdentifierOnSameLine() bool {
6268 p.nextToken()
6269 return p.isIdentifier() && !p.hasPrecedingLineBreak()
6270}
6271
6272func (p *Parser) nextTokenIsIdentifierOrStringLiteralOnSameLine() bool {
6273 p.nextToken()

Callers 1

Calls 3

nextTokenMethod · 0.95
isIdentifierMethod · 0.95
hasPrecedingLineBreakMethod · 0.95

Tested by

no test coverage detected