OverloadDecls returns the overload declarations in the order in which they were declared.
()
| 292 | |
| 293 | // OverloadDecls returns the overload declarations in the order in which they were declared. |
| 294 | func (f *FunctionDecl) OverloadDecls() []*OverloadDecl { |
| 295 | var emptySet []*OverloadDecl |
| 296 | if f == nil { |
| 297 | return emptySet |
| 298 | } |
| 299 | overloads := make([]*OverloadDecl, 0, len(f.overloads)) |
| 300 | for _, oID := range f.overloadOrdinals { |
| 301 | overloads = append(overloads, f.overloads[oID]) |
| 302 | } |
| 303 | return overloads |
| 304 | } |
| 305 | |
| 306 | // HasSingletonBinding indicates whether the function has a singleton binding definition. |
| 307 | func (f *FunctionDecl) HasSingletonBinding() bool { |
no outgoing calls