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

Method parseJsxAttribute

internal/parser/parser.go:5007–5013  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5005}
5006
5007func (p *Parser) parseJsxAttribute() *ast.Node {
5008 if p.token == ast.KindOpenBraceToken {
5009 return p.parseJsxSpreadAttribute()
5010 }
5011 pos := p.nodePos()
5012 return p.finishNode(p.factory.NewJsxAttribute(p.parseJsxAttributeName(), p.parseJsxAttributeValue()), pos)
5013}
5014
5015func (p *Parser) parseJsxSpreadAttribute() *ast.Node {
5016 pos := p.nodePos()

Callers

nothing calls this directly

Calls 6

nodePosMethod · 0.95
finishNodeMethod · 0.95
parseJsxAttributeNameMethod · 0.95
NewJsxAttributeMethod · 0.80

Tested by

no test coverage detected