Changes in src/AST/Expr.hpp [490fb92e:4ef08f7]
- File:
-
- 1 edited
-
src/AST/Expr.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.hpp
r490fb92e r4ef08f7 226 226 227 227 /// Creates a new dereference expression 228 static UntypedExpr * createDeref( const CodeLocation & loc, constExpr * arg );228 static UntypedExpr * createDeref( const CodeLocation & loc, Expr * arg ); 229 229 /// Creates a new assignment expression 230 static UntypedExpr * createAssign( const CodeLocation & loc, const Expr * lhs, constExpr * rhs );230 static UntypedExpr * createAssign( const CodeLocation & loc, Expr * lhs, Expr * rhs ); 231 231 232 232 const Expr * accept( Visitor & v ) const override { return v.visit( this ); } … … 422 422 const CodeLocation & loc, const Type * ty, const std::string & r, 423 423 std::optional<unsigned long long> i ) 424 : Expr( loc, ty ), rep( r ), ival( i ) , underlyer(ty){}424 : Expr( loc, ty ), rep( r ), ival( i ) {} 425 425 426 426 /// Gets the integer value of this constant, if one is appropriate to its type. … … 617 617 618 618 ImplicitCopyCtorExpr( const CodeLocation& loc, const ApplicationExpr * call ) 619 : Expr( loc, call->result ) , callExpr(call) { assert( call ); assert(call->result); }619 : Expr( loc, call->result ) { assert( call ); } 620 620 621 621 const Expr * accept( Visitor & v ) const override { return v.visit( this ); } … … 742 742 std::vector<ptr<Expr>> dtors; ///< destructor(s) for return variable(s) 743 743 744 readonly<ExprStmt> resultExpr;745 746 744 StmtExpr( const CodeLocation & loc, const CompoundStmt * ss ); 747 745
Note:
See TracChangeset
for help on using the changeset viewer.