SetReference adds a reference to the checked AST type map.
(id int64, r *ReferenceInfo)
| 93 | |
| 94 | // SetReference adds a reference to the checked AST type map. |
| 95 | func (a *AST) SetReference(id int64, r *ReferenceInfo) { |
| 96 | if a == nil { |
| 97 | return |
| 98 | } |
| 99 | a.refMap[id] = r |
| 100 | } |
| 101 | |
| 102 | // IsChecked returns whether the AST is type-checked. |
| 103 | func (a *AST) IsChecked() bool { |