AddFunctions configures the checker with a list of function declarations. If there are overlapping declarations, the method will error.
(declarations ...*decls.FunctionDecl)
| 143 | // |
| 144 | // If there are overlapping declarations, the method will error. |
| 145 | func (e *Env) AddFunctions(declarations ...*decls.FunctionDecl) error { |
| 146 | errMsgs := make([]errorMsg, 0) |
| 147 | for _, d := range declarations { |
| 148 | errMsgs = append(errMsgs, e.setFunction(d)...) |
| 149 | } |
| 150 | return formatError(errMsgs) |
| 151 | } |
| 152 | |
| 153 | // newAttrResolution creates a new attribute resolution value. |
| 154 | func newAttrResolution(ident *decls.VariableDecl, requiresDisambiguation bool) *attributeResolution { |