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

Method parseTypeAnnotation

internal/parser/parser.go:1709–1714  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1707}
1708
1709func (p *Parser) parseTypeAnnotation() *ast.TypeNode {
1710 if p.parseOptional(ast.KindColonToken) {
1711 return p.parseType()
1712 }
1713 return nil
1714}
1715
1716func (p *Parser) parseFunctionDeclaration(pos int, jsdoc jsdocScannerInfo, modifiers *ast.ModifierList) *ast.Node {
1717 p.parseExpected(ast.KindFunctionKeyword)

Calls 2

parseOptionalMethod · 0.95
parseTypeMethod · 0.95

Tested by

no test coverage detected