Changeset 906e24d for src/SynTree/Type.h
- Timestamp:
- Sep 15, 2016, 10:17:16 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- aa8f9df
- Parents:
- 96a10cd
- git-author:
- Rob Schluntz <rschlunt@…> (09/14/16 22:32:34)
- git-committer:
- Rob Schluntz <rschlunt@…> (09/15/16 10:17:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Type.h
r96a10cd r906e24d 65 65 std::list<TypeDecl*>& get_forall() { return forall; } 66 66 67 /// How many elemental types are represented by this type 68 virtual unsigned size() const { return 1; }; 69 virtual bool isVoid() const { return size() == 0; } 70 67 71 virtual Type *clone() const = 0; 68 72 virtual void accept( Visitor &v ) = 0; … … 77 81 public: 78 82 VoidType( const Type::Qualifiers &tq ); 83 84 virtual unsigned size() const { return 0; }; 79 85 80 86 virtual VoidType *clone() const { return new VoidType( *this ); } … … 353 359 354 360 std::list<Type*>& get_types() { return types; } 361 virtual unsigned size() const { return types.size(); }; 355 362 356 363 virtual TupleType *clone() const { return new TupleType( *this ); }
Note: See TracChangeset
for help on using the changeset viewer.