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