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

Method parseVariableStatement

internal/parser/parser.go:1546–1553  ·  view source on GitHub ↗
(pos int, jsdoc jsdocScannerInfo, modifiers *ast.ModifierList)

Source from the content-addressed store, hash-verified

1544}
1545
1546func (p *Parser) parseVariableStatement(pos int, jsdoc jsdocScannerInfo, modifiers *ast.ModifierList) *ast.Node {
1547 declarationList := p.parseVariableDeclarationList(false /*inForStatementInitializer*/)
1548 p.parseSemicolon()
1549 result := p.finishNode(p.factory.NewVariableStatement(modifiers, declarationList), pos)
1550 p.withJSDoc(result, jsdoc)
1551 p.checkJSSyntax(result)
1552 return result
1553}
1554
1555func (p *Parser) parseVariableDeclarationList(inForStatementInitializer bool) *ast.Node {
1556 pos := p.nodePos()

Callers 2

parseStatementMethod · 0.95

Calls 6

parseSemicolonMethod · 0.95
finishNodeMethod · 0.95
withJSDocMethod · 0.95
checkJSSyntaxMethod · 0.95
NewVariableStatementMethod · 0.80

Tested by

no test coverage detected