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

Method emitArrayLiteralExpression

internal/printer/printer.go:2466–2470  ·  view source on GitHub ↗
(node *ast.ArrayLiteralExpression)

Source from the content-addressed store, hash-verified

2464}
2465
2466func (p *Printer) emitArrayLiteralExpression(node *ast.ArrayLiteralExpression) {
2467 state := p.enterNode(node.AsNode())
2468 p.emitList((*Printer).emitArrayLiteralExpressionElement, node.AsNode(), node.Elements, LFArrayLiteralExpressionElements|core.IfElse(node.MultiLine, LFPreferNewLine, LFNone))
2469 p.exitNode(node.AsNode(), state)
2470}
2471
2472func (p *Printer) emitObjectLiteralExpression(node *ast.ObjectLiteralExpression) {
2473 state := p.enterNode(node.AsNode())

Callers 1

emitExpressionMethod · 0.95

Calls 5

enterNodeMethod · 0.95
emitListMethod · 0.95
exitNodeMethod · 0.95
IfElseFunction · 0.92
AsNodeMethod · 0.65

Tested by

no test coverage detected