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

Method Array

internal/pass/pass.go:214–220  ·  view source on GitHub ↗

Array traverses that kind of node

(p ASTPass, node *ast.Array, ctx Context)

Source from the content-addressed store, hash-verified

212
213// Array traverses that kind of node
214func (*Base) Array(p ASTPass, node *ast.Array, ctx Context) {
215 for i := range node.Elements {
216 p.Visit(p, &node.Elements[i].Expr, ctx)
217 p.Fodder(p, &node.Elements[i].CommaFodder, ctx)
218 }
219 p.Fodder(p, &node.CloseFodder, ctx)
220}
221
222// ArrayComp traverses that kind of node
223func (*Base) ArrayComp(p ASTPass, node *ast.ArrayComp, ctx Context) {

Callers

nothing calls this directly

Calls 2

VisitMethod · 0.65
FodderMethod · 0.65

Tested by

no test coverage detected