return *this;
}
-/* This should only ever be assigning NULL to a null Expr! */
-Expr& Expr::operator=(uintptr_t n) {
- AlwaysAssert(n == 0);
- Assert(d_node != NULL, "Unexpected NULL expression pointer!");
-
- if(EXPECT_FALSE( !isNull() )) {
- *d_node = Node::null();
- }
- return *this;
-}
-
bool Expr::operator==(const Expr& e) const {
if(d_exprManager != e.d_exprManager) {
return false;
*/
Expr& operator=(const Expr& e);
- /*
- * Assignment from an integer. Fails if the integer is not 0.
- * NOTE: This is here purely to support the auto-initialization
- * behavior of the ANTLR3 C backend (i.e., a rule attribute
- * <code>Expr e</code> gets initialized with <code>e = NULL;</code>.
- * Should be removed if future versions of ANTLR fix the problem.
- */
- Expr& operator=(uintptr_t n);
-
/**
* Syntactic comparison operator. Returns true if expressions belong to the
* same expression manager and are syntactically identical.