ReferenceMap returns the map of expression id to identifier, constant, and function references.
()
| 85 | |
| 86 | // ReferenceMap returns the map of expression id to identifier, constant, and function references. |
| 87 | func (a *AST) ReferenceMap() map[int64]*ReferenceInfo { |
| 88 | if a == nil { |
| 89 | return map[int64]*ReferenceInfo{} |
| 90 | } |
| 91 | return a.refMap |
| 92 | } |
| 93 | |
| 94 | // SetReference adds a reference to the checked AST type map. |
| 95 | func (a *AST) SetReference(id int64, r *ReferenceInfo) { |
no outgoing calls