checkNoFunctionActivation returns an error if the hierarchy already supplies late-bound function implementations.
(vars Activation)
| 320 | // checkNoFunctionActivation returns an error if the hierarchy already supplies late-bound |
| 321 | // function implementations. |
| 322 | func checkNoFunctionActivation(vars Activation) error { |
| 323 | found, err := FindFunctionActivation(vars) |
| 324 | if err != nil { |
| 325 | return err |
| 326 | } |
| 327 | if found != nil { |
| 328 | return errNestedFunctionActivation |
| 329 | } |
| 330 | return nil |
| 331 | } |
| 332 | |
| 333 | // FindFunctionActivation returns the activation which supplies the late-bound function |
| 334 | // implementations for a hierarchy, or nil when the hierarchy supplies none. |
no test coverage detected