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

Method parseTypeMemberSemicolon

internal/parser/parser.go:3422–3430  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3420}
3421
3422func (p *Parser) parseTypeMemberSemicolon() {
3423 // We allow type members to be separated by commas or (possibly ASI) semicolons.
3424 // First check if it was a comma. If so, we're done with the member.
3425 if p.parseOptional(ast.KindCommaToken) {
3426 return
3427 }
3428 // Didn't have a comma. We must have a (possible ASI) semicolon.
3429 p.parseSemicolon()
3430}
3431
3432func (p *Parser) parseAccessorDeclaration(pos int, jsdoc jsdocScannerInfo, modifiers *ast.ModifierList, kind ast.Kind, flags ParseFlags) *ast.Node {
3433 name := p.parsePropertyName()

Calls 2

parseOptionalMethod · 0.95
parseSemicolonMethod · 0.95

Tested by

no test coverage detected