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

Method parseModifiersForArrowFunction

internal/parser/parser.go:4445–4453  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4443}
4444
4445func (p *Parser) parseModifiersForArrowFunction() *ast.ModifierList {
4446 if p.token == ast.KindAsyncKeyword {
4447 pos := p.nodePos()
4448 p.nextToken()
4449 modifier := p.finishNode(p.factory.NewModifier(ast.KindAsyncKeyword), pos)
4450 return p.newModifierList(modifier.Loc, p.nodeSliceArena.NewSlice1(modifier))
4451 }
4452 return nil
4453}
4454
4455// If true, we should abort parsing an error function.
4456func typeHasArrowFunctionBlockingParseError(node *ast.TypeNode) bool {

Calls 6

nodePosMethod · 0.95
nextTokenMethod · 0.95
finishNodeMethod · 0.95
newModifierListMethod · 0.95
NewModifierMethod · 0.80
NewSlice1Method · 0.80

Tested by

no test coverage detected