HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings.
()
| 324 | |
| 325 | // HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings. |
| 326 | func (f *FunctionDecl) HasLateBinding() bool { |
| 327 | if f == nil { |
| 328 | return false |
| 329 | } |
| 330 | if f.singleton != nil && f.singleton.Async != nil { |
| 331 | return true |
| 332 | } |
| 333 | for _, oID := range f.overloadOrdinals { |
| 334 | o := f.overloads[oID] |
| 335 | if o.HasLateBinding() { |
| 336 | return true |
| 337 | } |
| 338 | } |
| 339 | return false |
| 340 | } |
| 341 | |
| 342 | // Bindings produces a set of function bindings, if any are defined. |
| 343 | func (f *FunctionDecl) Bindings() ([]*functions.Overload, error) { |
no outgoing calls