@@ -103,7 +103,7 @@ absl::optional<Expr> ExpandAllMacro(MacroExprFactory& factory, Expr& target,
103103 std::move (args[1 ]));
104104 auto result = factory.NewAccuIdent ();
105105 return factory.NewComprehension (args[0 ].ident_expr ().name (),
106- std::move (target), kAccumulatorVariableName ,
106+ std::move (target), factory. AccuVarName () ,
107107 std::move (init), std::move (condition),
108108 std::move (step), std::move (result));
109109}
@@ -136,7 +136,7 @@ absl::optional<Expr> ExpandExistsMacro(MacroExprFactory& factory, Expr& target,
136136 std::move (args[1 ]));
137137 auto result = factory.NewAccuIdent ();
138138 return factory.NewComprehension (args[0 ].ident_expr ().name (),
139- std::move (target), kAccumulatorVariableName ,
139+ std::move (target), factory. AccuVarName () ,
140140 std::move (init), std::move (condition),
141141 std::move (step), std::move (result));
142142}
@@ -172,7 +172,7 @@ absl::optional<Expr> ExpandExistsOneMacro(MacroExprFactory& factory,
172172 auto result = factory.NewCall (CelOperator::EQUALS, factory.NewAccuIdent (),
173173 factory.NewIntConst (1 ));
174174 return factory.NewComprehension (args[0 ].ident_expr ().name (),
175- std::move (target), kAccumulatorVariableName ,
175+ std::move (target), factory. AccuVarName () ,
176176 std::move (init), std::move (condition),
177177 std::move (step), std::move (result));
178178}
@@ -204,7 +204,7 @@ absl::optional<Expr> ExpandMap2Macro(MacroExprFactory& factory, Expr& target,
204204 CelOperator::ADD, factory.NewAccuIdent (),
205205 factory.NewList (factory.NewListElement (std::move (args[1 ]))));
206206 return factory.NewComprehension (args[0 ].ident_expr ().name (),
207- std::move (target), kAccumulatorVariableName ,
207+ std::move (target), factory. AccuVarName () ,
208208 std::move (init), std::move (condition),
209209 std::move (step), factory.NewAccuIdent ());
210210}
@@ -237,7 +237,7 @@ absl::optional<Expr> ExpandMap3Macro(MacroExprFactory& factory, Expr& target,
237237 step = factory.NewCall (CelOperator::CONDITIONAL, std::move (args[1 ]),
238238 std::move (step), factory.NewAccuIdent ());
239239 return factory.NewComprehension (args[0 ].ident_expr ().name (),
240- std::move (target), kAccumulatorVariableName ,
240+ std::move (target), factory. AccuVarName () ,
241241 std::move (init), std::move (condition),
242242 std::move (step), factory.NewAccuIdent ());
243243}
@@ -272,7 +272,7 @@ absl::optional<Expr> ExpandFilterMacro(MacroExprFactory& factory, Expr& target,
272272 step = factory.NewCall (CelOperator::CONDITIONAL, std::move (args[1 ]),
273273 std::move (step), factory.NewAccuIdent ());
274274 return factory.NewComprehension (std::move (name), std::move (target),
275- kAccumulatorVariableName , std::move (init),
275+ factory. AccuVarName () , std::move (init),
276276 std::move (condition), std::move (step),
277277 factory.NewAccuIdent ());
278278}
0 commit comments