GetOverloadIDs returns the set of overload function names for a given expression id. If the expression id is not a function call, or the AST is not type-checked, the result will be empty.
(id int64)
| 77 | // |
| 78 | // If the expression id is not a function call, or the AST is not type-checked, the result will be empty. |
| 79 | func (a *AST) GetOverloadIDs(id int64) []string { |
| 80 | if ref, found := a.ReferenceMap()[id]; found { |
| 81 | return ref.OverloadIDs |
| 82 | } |
| 83 | return []string{} |
| 84 | } |
| 85 | |
| 86 | // ReferenceMap returns the map of expression id to identifier, constant, and function references. |
| 87 | func (a *AST) ReferenceMap() map[int64]*ReferenceInfo { |