Changeset 4789f44 for src/SynTree/Expression.h
- Timestamp:
- Feb 5, 2016, 12:28:21 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 408d460, bd85400
- Parents:
- b4cd03b7 (diff), 2a4b088 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.h
rb4cd03b7 r4789f44 319 319 }; 320 320 321 /// UntypedOffsetofExpr represents an offsetof expression before resolution 322 class UntypedOffsetofExpr : public Expression { 323 public: 324 UntypedOffsetofExpr( Type *type, const std::string &member, Expression *_aname = 0 ); 325 UntypedOffsetofExpr( const UntypedOffsetofExpr &other ); 326 virtual ~UntypedOffsetofExpr(); 327 328 std::string get_member() const { return member; } 329 void set_member( const std::string &newValue ) { member = newValue; } 330 Type *get_type() const { return type; } 331 void set_type( Type *newValue ) { type = newValue; } 332 333 virtual UntypedOffsetofExpr *clone() const { return new UntypedOffsetofExpr( *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 std::string member; 340 }; 341 321 342 /// OffsetofExpr represents an offsetof expression 322 343 class OffsetofExpr : public Expression {
Note: See TracChangeset
for help on using the changeset viewer.