Contains returns true if this VarList contains the given variable.
(v ast.Variable)
| 48 | |
| 49 | // Contains returns true if this VarList contains the given variable. |
| 50 | func (vs VarList) Contains(v ast.Variable) bool { |
| 51 | return vs.Find(v) != -1 |
| 52 | } |
| 53 | |
| 54 | // Find returns the index of the given variable, or -1 if not found. |
| 55 | func (vs VarList) Find(v ast.Variable) int { |