Twig
Twig copied to clipboard
Rename Node classes related to variables
Whenever I work on Twig internals, it's always complicated to reason about variable names, probably because the class names are confusing. This PR is an attempt to find "better" and more explicit names.
This PR does the following renaming:
-
NameExpressiontoVariable\ContextVariableRepresents the value of a context variable like$context[VAR] ?? null -
AssignNameExpressiontoVariable\AssignContextVariableRepresents a context variable assignment like in$context[VAR] = -
TempNameExpressiontoVariable\LocalVariableRepresents a "private" local variable like$_l111