AddOverload appends a function overload ID to the ReferenceInfo.
(overloadID string)
| 502 | |
| 503 | // AddOverload appends a function overload ID to the ReferenceInfo. |
| 504 | func (r *ReferenceInfo) AddOverload(overloadID string) { |
| 505 | for _, id := range r.OverloadIDs { |
| 506 | if id == overloadID { |
| 507 | return |
| 508 | } |
| 509 | } |
| 510 | r.OverloadIDs = append(r.OverloadIDs, overloadID) |
| 511 | } |
| 512 | |
| 513 | // Equals returns whether two references are identical to each other. |
| 514 | func (r *ReferenceInfo) Equals(other *ReferenceInfo) bool { |
no outgoing calls