Changeset 884f1409 for src/SynTree/Type.cc
- Timestamp:
- Jul 19, 2019, 4:52:59 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- b5ce31e, fd642d2
- Parents:
- e723100 (diff), 335d81f (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/Type.cc
re723100 r884f1409 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Thu Jan 31 21:54:16201913 // Update Count : 4 311 // Last Modified By : Andrew Beach 12 // Last Modified On : Fri Jul 12 15:48:00 2019 13 // Update Count : 44 14 14 // 15 15 #include "Type.h" … … 141 141 } 142 142 143 const Type * Type::stripReferences() const { 144 const Type * type; 145 const ReferenceType * ref; 146 for ( type = this; (ref = dynamic_cast<const ReferenceType *>( type )); type = ref->base ); 147 return type; 148 } 149 143 150 int Type::referenceDepth() const { return 0; } 144 151
Note: See TracChangeset
for help on using the changeset viewer.