MCPcopy
hub / github.com/google/mangle / Contains

Method Contains

analysis/varlist.go:50–52  ·  view source on GitHub ↗

Contains returns true if this VarList contains the given variable.

(v ast.Variable)

Source from the content-addressed store, hash-verified

48
49// Contains returns true if this VarList contains the given variable.
50func (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.
55func (vs VarList) Find(v ast.Variable) int {

Callers 1

TestVarListFunction · 0.95

Calls 1

FindMethod · 0.95

Tested by 1

TestVarListFunction · 0.76