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

Method Conditional

internal/pass/pass.go:249–257  ·  view source on GitHub ↗

Conditional traverses that kind of node

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

Source from the content-addressed store, hash-verified

247
248// Conditional traverses that kind of node
249func (*Base) Conditional(p ASTPass, node *ast.Conditional, ctx Context) {
250 p.Visit(p, &node.Cond, ctx)
251 p.Fodder(p, &node.ThenFodder, ctx)
252 p.Visit(p, &node.BranchTrue, ctx)
253 if node.BranchFalse != nil {
254 p.Fodder(p, &node.ElseFodder, ctx)
255 p.Visit(p, &node.BranchFalse, ctx)
256 }
257}
258
259// Dollar cannot descend any further
260func (*Base) Dollar(p ASTPass, node *ast.Dollar, ctx Context) {

Callers

nothing calls this directly

Calls 2

VisitMethod · 0.65
FodderMethod · 0.65

Tested by

no test coverage detected