Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ def macro_has_eval(self, exprlist):
_has_state.in_has = False
return result

e = Evaluator(ast=self.ast, activation=self.new_activation(context), functions=self.functions)
value = e.evaluate()
e = Evaluator(ast=self.ast, activation=self.new_activation(), functions=self.functions)
Copy link
Preview

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new_activation() method is being called without the context parameter that was previously passed. Verify that this method can handle being called without parameters and that the context will be properly available when passed to evaluate().

Suggested change
e = Evaluator(ast=self.ast, activation=self.new_activation(), functions=self.functions)
e = Evaluator(ast=self.ast, activation=self.new_activation(context), functions=self.functions)

Copilot uses AI. Check for mistakes.

value = e.evaluate(context)
return value