Changeset 9feb34b for src/SynTree
- Timestamp:
- Mar 29, 2023, 11:07:03 AM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- afdb74b
- Parents:
- 60380a1
- Location:
- src/SynTree
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Type.cc
r60380a1 r9feb34b 16 16 17 17 #include "Attribute.h" // for Attribute 18 #include "Common/ToString.hpp" // for toCString 18 19 #include "Common/utility.h" // for cloneAll, deleteAll, printAll 19 20 #include "InitTweak/InitTweak.h" // for getPointerBase … … 105 106 int Type::referenceDepth() const { return 0; } 106 107 108 AggregateDecl * Type::getAggr() const { 109 assertf( false, "Non-aggregate type: %s", toCString( this ) ); 110 } 111 107 112 TypeSubstitution Type::genericSubstitution() const { assertf( false, "Non-aggregate type: %s", toCString( this ) ); } 108 113 -
src/SynTree/Type.h
r60380a1 r9feb34b 24 24 #include "BaseSyntaxNode.h" // for BaseSyntaxNode 25 25 #include "Common/Iterate.hpp"// for operator+ 26 #include "Common/utility.h" // for toCString27 26 #include "Mutator.h" // for Mutator 28 27 #include "SynTree.h" // for AST nodes … … 186 185 virtual bool isComplete() const { return true; } 187 186 188 virtual AggregateDecl * getAggr() const { assertf( false, "Non-aggregate type: %s", toCString( this ) ); }187 virtual AggregateDecl * getAggr() const; 189 188 190 189 virtual TypeSubstitution genericSubstitution() const;
Note:
See TracChangeset
for help on using the changeset viewer.