Changes in src/SynTree/Declaration.h [0e73845:7a63486]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r0e73845 r7a63486 211 211 TypeDecl::Kind kind; 212 212 bool isComplete; 213 213 214 Data() : kind( (TypeDecl::Kind)-1 ), isComplete( false ) {} 214 215 Data( TypeDecl * typeDecl ) : Data( typeDecl->get_kind(), typeDecl->isComplete() ) {} 215 216 Data( Kind kind, bool isComplete ) : kind( kind ), isComplete( isComplete ) {} 217 Data( const Data& d1, const Data& d2 ) 218 : kind( d1.kind ), isComplete ( d1.isComplete || d2.isComplete ) {} 219 216 220 bool operator==(const Data & other) const { return kind == other.kind && isComplete == other.isComplete; } 217 221 bool operator!=(const Data & other) const { return !(*this == other);}
Note:
See TracChangeset
for help on using the changeset viewer.