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