SourceInfo returns the source metadata associated with the parse / type-check passes.
()
| 41 | |
| 42 | // SourceInfo returns the source metadata associated with the parse / type-check passes. |
| 43 | func (a *AST) SourceInfo() *SourceInfo { |
| 44 | if a == nil { |
| 45 | return nil |
| 46 | } |
| 47 | return a.sourceInfo |
| 48 | } |
| 49 | |
| 50 | // GetType returns the type for the expression at the given id, if one exists, else types.DynType. |
| 51 | func (a *AST) GetType(id int64) *types.Type { |
no outgoing calls