Lines Matching refs:scope
28 type scope struct { struct
34 func (s *scope) Get(name string) string { argument
46 func (s *scope) Set(name, value string) { argument
50 func (s *scope) Call(name string, args []string) []string { argument
58 func (s *scope) SetFunc(name string, f func([]string) []string) { argument
63 return &scope{
77 func (v Variable) EvalFunction(scope Scope) ([]string, bool) {
85 argVals[i] = a.Value(scope)
89 return scope.Call(argVals[0], argVals[1:]), true
99 func (v Variable) Value(scope Scope) string {
100 if ret, ok := v.EvalFunction(scope); ok {
106 if scope == nil {
109 return scope.Get(v.Name.Value(scope))