macroCalls property

  1. @TagNumber.new(5)
PbMap<Int64, Expr> get macroCalls

A map from the parse node id where a macro replacement was made to the call Expr that resulted in a macro expansion.

For example, has(value.field) is a function call that is replaced by a test_only field selection in the AST. Likewise, the call list.exists(e, e > 10) translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call Expr that was replaced.

Implementation

@$pb.TagNumber(5)
$pb.PbMap<$fixnum.Int64, Expr> get macroCalls => $_getMap(4);