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

Method emitComputedPropertyName

internal/printer/printer.go:1203–1209  ·  view source on GitHub ↗
(node *ast.ComputedPropertyName)

Source from the content-addressed store, hash-verified

1201}
1202
1203func (p *Printer) emitComputedPropertyName(node *ast.ComputedPropertyName) {
1204 state := p.enterNode(node.AsNode())
1205 p.writePunctuation("[")
1206 p.emitExpression(node.Expression, ast.OperatorPrecedenceDisallowComma)
1207 p.writePunctuation("]")
1208 p.exitNode(node.AsNode(), state)
1209}
1210
1211func (p *Printer) emitEntityName(node *ast.EntityName) {
1212 switch node.Kind {

Callers 2

emitPropertyNameMethod · 0.95
WriteMethod · 0.95

Calls 5

enterNodeMethod · 0.95
writePunctuationMethod · 0.95
emitExpressionMethod · 0.95
exitNodeMethod · 0.95
AsNodeMethod · 0.65

Tested by

no test coverage detected