()
| 44 | } |
| 45 | |
| 46 | func (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. |
| 55 | func (s *inferState) addOrRefine(v ast.Variable, tpe ast.BaseTerm) error { |
no outgoing calls
no test coverage detected