AddFunctions configures the checker with a list of function declarations. If there are overlapping declarations, the method will error.
(declarations ...*decls.FunctionDecl)
| 124 | // |
| 125 | // If there are overlapping declarations, the method will error. |
| 126 | func (e *Env) AddFunctions(declarations ...*decls.FunctionDecl) error { |
| 127 | errMsgs := make([]errorMsg, 0) |
| 128 | for _, d := range declarations { |
| 129 | errMsgs = append(errMsgs, e.setFunction(d)...) |
| 130 | } |
| 131 | return formatError(errMsgs) |
| 132 | } |
| 133 | |
| 134 | // newAttrResolution creates a new attribute resolution value. |
| 135 | func newAttrResolution(ident *decls.VariableDecl, requiresDisambiguation bool) *attributeResolution { |