Changes in src/SynTree/Expression.h [9a705dc8:c0bf94e]
- File:
-
- 1 edited
-
src/SynTree/Expression.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.h
r9a705dc8 rc0bf94e 192 192 CastExpr( Expression * arg, bool isGenerated = true ); 193 193 CastExpr( Expression * arg, Type * toType, bool isGenerated = true ); 194 CastExpr( Expression * arg, void * ) = delete; // prevent accidentally passing pointers for isGenerated in the first constructor195 194 CastExpr( const CastExpr & other ); 196 195 virtual ~CastExpr(); … … 200 199 201 200 virtual CastExpr * clone() const { return new CastExpr( * this ); } 202 virtual void accept( Visitor & v ) { v.visit( this ); }203 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); }204 virtual void print( std::ostream & os, Indenter indent = {} ) const;205 };206 207 /// KeywordCastExpr represents a cast to 'keyword types', e.g. (thread &)t208 class KeywordCastExpr : public Expression {209 public:210 Expression * arg;211 enum Target {212 Coroutine, Thread, Monitor, NUMBER_OF_TARGETS213 } target;214 215 KeywordCastExpr( Expression * arg, Target target );216 KeywordCastExpr( const KeywordCastExpr & other );217 virtual ~KeywordCastExpr();218 219 const std::string & targetString() const;220 221 virtual KeywordCastExpr * clone() const { return new KeywordCastExpr( * this ); }222 201 virtual void accept( Visitor & v ) { v.visit( this ); } 223 202 virtual Expression * acceptMutator( Mutator & m ) { return m.mutate( this ); }
Note:
See TracChangeset
for help on using the changeset viewer.