Changes in src/SynTree/Expression.h [a5f0529:6b0b624]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.h
ra5f0529 r6b0b624 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Mon Jul 24 16:27:00201713 // Update Count : 4 311 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 22 09:53:16 2017 13 // Update Count : 42 14 14 // 15 15 … … 79 79 class ApplicationExpr : public Expression { 80 80 public: 81 ApplicationExpr( Expression * function , const std::list<Expression *> & args = std::list< Expression * >());81 ApplicationExpr( Expression * function ); 82 82 ApplicationExpr( const ApplicationExpr & other ); 83 83 virtual ~ApplicationExpr(); … … 194 194 195 195 Expression * get_arg() const { return arg; } 196 void set_arg( 196 void set_arg(Expression * newValue ) { arg = newValue; } 197 197 198 198 virtual CastExpr * clone() const { return new CastExpr( * this ); } 199 virtual void accept( Visitor & v ) { v.visit( this ); }200 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); }201 virtual void print( std::ostream & os, int indent = 0 ) const;202 private:203 Expression * arg;204 };205 206 /// VirtualCastExpr repersents a virtual dynamic cast, e.g. (virtual exception)e207 class VirtualCastExpr : public Expression {208 public:209 VirtualCastExpr( Expression * arg, Type * toType );210 VirtualCastExpr( const VirtualCastExpr & other );211 virtual ~VirtualCastExpr();212 213 Expression * get_arg() const { return arg; }214 void set_arg( Expression * newValue ) { arg = newValue; }215 216 virtual VirtualCastExpr * clone() const { return new VirtualCastExpr( * this ); }217 199 virtual void accept( Visitor & v ) { v.visit( this ); } 218 200 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); }
Note:
See TracChangeset
for help on using the changeset viewer.