MCPcopy Index your code
hub / github.com/google/mangle / Extend

Method Extend

analysis/varlist.go:45–47  ·  view source on GitHub ↗

Extend returns a new VarList with appended list of variables.

(vars []ast.Variable)

Source from the content-addressed store, hash-verified

43
44// Extend returns a new VarList with appended list of variables.
45func (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.
50func (vs VarList) Contains(v ast.Variable) bool {

Callers 4

RewriteClauseFunction · 0.95
TestVarListFunction · 0.95
addOrRefineMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestVarListFunction · 0.76