AddOverload appends a function overload ID to the ReferenceInfo.
(overloadID string)
| 495 | |
| 496 | // AddOverload appends a function overload ID to the ReferenceInfo. |
| 497 | func (r *ReferenceInfo) AddOverload(overloadID string) { |
| 498 | for _, id := range r.OverloadIDs { |
| 499 | if id == overloadID { |
| 500 | return |
| 501 | } |
| 502 | } |
| 503 | r.OverloadIDs = append(r.OverloadIDs, overloadID) |
| 504 | } |
| 505 | |
| 506 | // Equals returns whether two references are identical to each other. |
| 507 | func (r *ReferenceInfo) Equals(other *ReferenceInfo) bool { |
no outgoing calls