Change the element.render signature so it cannot be used to set parameters.
Also rename the other public methods to be *Internal to discourage people from calling them.
GITHUB_BREAKING_CHANGES=none
@@ -49,6 +49,8 @@ public abstract class Expression extends CodeChunk {
public static final Expression LITERAL_NULL = id("null");
public static final Expression LITERAL_EMPTY_STRING = Leaf.create("''", /* isCheap= */ true);
public static final Expression EMPTY_OBJECT_LITERAL = Leaf.create("{}", /* isCheap= */ false);
+ public static final Expression THIS = id("this");
+
// Do not put public static constants or methods on this class. If you do then this can trigger
// classloading deadlocks due to cyclic references between this class, CodeChunk and the
// implementation class of the constant.
