Extend returns a new VarList with appended list of variables.
(vars []ast.Variable)
| 43 | |
| 44 | // Extend returns a new VarList with appended list of variables. |
| 45 | func (vs VarList) Extend(vars []ast.Variable) VarList { |
| 46 | return VarList{append(vs.Vars, vars...)} |
| 47 | } |
| 48 | |
| 49 | // Contains returns true if this VarList contains the given variable. |
| 50 | func (vs VarList) Contains(v ast.Variable) bool { |
no outgoing calls