GetMacroCall returns the original ast.Expr value for the given expression if it was generated via a macro replacement. Note, parsing options must be enabled to track macro calls before this method will return a value.
(id int64)
| 327 | // |
| 328 | // Note, parsing options must be enabled to track macro calls before this method will return a value. |
| 329 | func (s *SourceInfo) GetMacroCall(id int64) (Expr, bool) { |
| 330 | e, found := s.MacroCalls()[id] |
| 331 | return e, found |
| 332 | } |
| 333 | |
| 334 | // SetMacroCall records a macro call at a specific location. |
| 335 | func (s *SourceInfo) SetMacroCall(id int64, e Expr) { |