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

Method parseContinueStatement

internal/parser/parser.go:1350–1359  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1348}
1349
1350func (p *Parser) parseContinueStatement() *ast.Node {
1351 pos := p.nodePos()
1352 jsdoc := p.jsdocScannerInfo()
1353 p.parseExpected(ast.KindContinueKeyword)
1354 label := p.parseIdentifierUnlessAtSemicolon()
1355 p.parseSemicolon()
1356 result := p.finishNode(p.factory.NewContinueStatement(label), pos)
1357 p.withJSDoc(result, jsdoc)
1358 return result
1359}
1360
1361func (p *Parser) parseIdentifierUnlessAtSemicolon() *ast.Node {
1362 if !p.canParseSemicolon() {

Callers 1

parseStatementMethod · 0.95

Calls 8

nodePosMethod · 0.95
jsdocScannerInfoMethod · 0.95
parseExpectedMethod · 0.95
parseSemicolonMethod · 0.95
finishNodeMethod · 0.95
withJSDocMethod · 0.95
NewContinueStatementMethod · 0.80

Tested by

no test coverage detected