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

Method makeNext

analysis/infercontext.go:46–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func (s *inferState) makeNext() *inferState {
47 dest := make([]ast.BaseTerm, len(s.varTpe))
48 for i, tpe := range s.varTpe {
49 dest[i] = tpe
50 }
51 return &inferState{s.index + 1, s.usedVars, dest}
52}
53
54// addOrRefine either adds a binding or intersects type for an existing one.
55func (s *inferState) addOrRefine(v ast.Variable, tpe ast.BaseTerm) error {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected