MCPcopy
hub / github.com/google/go-jsonnet / wrapInArray

Function wrapInArray

internal/program/desugarer.go:194–196  ·  view source on GitHub ↗
(inside ast.Node)

Source from the content-addressed store, hash-verified

192}
193
194func wrapInArray(inside ast.Node) ast.Node {
195 return &ast.Array{Elements: []ast.CommaSeparatedExpr{{Expr: inside}}}
196}
197
198func desugarArrayComp(comp *ast.ArrayComp, objLevel int) (ast.Node, error) {
199 err := desugar(&comp.Body, objLevel)

Callers 2

desugarArrayCompFunction · 0.85
desugarObjectCompFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…