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

Method Parameters

internal/pass/pass.go:105–117  ·  view source on GitHub ↗

Parameters traverses the list of parameters

(p ASTPass, l *ast.Fodder, params *[]ast.Parameter, r *ast.Fodder, ctx Context)

Source from the content-addressed store, hash-verified

103
104// Parameters traverses the list of parameters
105func (*Base) Parameters(p ASTPass, l *ast.Fodder, params *[]ast.Parameter, r *ast.Fodder, ctx Context) {
106 p.Fodder(p, l, ctx)
107 for i := range *params {
108 param := &(*params)[i]
109 p.Fodder(p, &param.NameFodder, ctx)
110 if param.DefaultArg != nil {
111 p.Fodder(p, &param.EqFodder, ctx)
112 p.Visit(p, &param.DefaultArg, ctx)
113 }
114 p.Fodder(p, &param.CommaFodder, ctx)
115 }
116 p.Fodder(p, r, ctx)
117}
118
119// Arguments traverses the list of arguments
120func (*Base) Arguments(p ASTPass, l *ast.Fodder, args *ast.Arguments, r *ast.Fodder, ctx Context) {

Callers

nothing calls this directly

Calls 2

FodderMethod · 0.65
VisitMethod · 0.65

Tested by

no test coverage detected