Changes in src/SynTree/Expression.h [25a054f:baf7fee]
- File:
-
- 1 edited
-
src/SynTree/Expression.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.h
r25a054f rbaf7fee 319 319 }; 320 320 321 /// OffsetofExpr represents an offsetof expression322 class OffsetofExpr : public Expression {323 public:324 OffsetofExpr( Type *type, DeclarationWithType *member, Expression *_aname = 0 );325 OffsetofExpr( const OffsetofExpr &other );326 virtual ~OffsetofExpr();327 328 Type *get_type() const { return type; }329 void set_type( Type *newValue ) { type = newValue; }330 DeclarationWithType *get_member() const { return member; }331 void set_member( DeclarationWithType *newValue ) { member = newValue; }332 333 virtual OffsetofExpr *clone() const { return new OffsetofExpr( *this ); }334 virtual void accept( Visitor &v ) { v.visit( this ); }335 virtual Expression *acceptMutator( Mutator &m ) { return m.mutate( this ); }336 virtual void print( std::ostream &os, int indent = 0 ) const;337 private:338 Type *type;339 DeclarationWithType *member;340 };341 342 321 /// AttrExpr represents an @attribute expression (like sizeof, but user-defined) 343 322 class AttrExpr : public Expression {
Note:
See TracChangeset
for help on using the changeset viewer.