Changes in / [a6e0e4c:4422579]
- Location:
- src/AST
- Files:
-
- 4 edited
-
Convert.cpp (modified) (2 diffs)
-
Expr.hpp (modified) (1 diff)
-
Fwd.hpp (modified) (1 diff)
-
TranslationUnit.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
ra6e0e4c r4422579 55 55 56 56 // these need to be accessed in new FixInit now 57 ast:: ptr<ast::Type>sizeType = nullptr;58 constast::FunctionDecl * dereferenceOperator = nullptr;59 constast::StructDecl * dtorStruct = nullptr;60 constast::FunctionDecl * dtorStructDestroy = nullptr;57 ast::Type * sizeType = nullptr; 58 ast::FunctionDecl * dereferenceOperator = nullptr; 59 ast::StructDecl * dtorStruct = nullptr; 60 ast::FunctionDecl * dtorStructDestroy = nullptr; 61 61 62 62 } … … 2804 2804 ConverterOldToNew c; 2805 2805 ast::TranslationUnit unit; 2806 if (Validate::SizeType) {2807 // this should be a BasicType.2808 auto old = strict_dynamic_cast<BasicType *>(Validate::SizeType);2809 ast::sizeType = new ast::BasicType{ (ast::BasicType::Kind)(unsigned)old->kind };2810 }2811 2812 2806 for(auto d : translationUnit) { 2813 2807 d->accept( c ); -
src/AST/Expr.hpp
ra6e0e4c r4422579 112 112 113 113 bool hasSlots() const { return data.resnSlots; } 114 bool hasParams() const { return data.inferParams; }115 114 116 115 ResnSlots& resnSlots() { -
src/AST/Fwd.hpp
ra6e0e4c r4422579 139 139 struct TranslationUnit; 140 140 // TODO: Get from the TranslationUnit: 141 extern ptr<Type>sizeType;142 extern constFunctionDecl * dereferenceOperator;143 extern constStructDecl * dtorStruct;144 extern constFunctionDecl * dtorStructDestroy;141 extern Type * sizeType; 142 extern FunctionDecl * dereferenceOperator; 143 extern StructDecl * dtorStruct; 144 extern FunctionDecl * dtorStructDestroy; 145 145 146 146 } -
src/AST/TranslationUnit.hpp
ra6e0e4c r4422579 29 29 std::map< UniqueId, Decl * > idMap; 30 30 31 constType * sizeType;32 constFunctionDecl * dereference;33 constStructDecl * dtorStruct;34 constFunctionDecl * dtorDestroy;31 Type * sizeType; 32 FunctionDecl * dereference; 33 StructDecl * dtorStruct; 34 FunctionDecl * dtorDestroy; 35 35 } global; 36 36 };
Note:
See TracChangeset
for help on using the changeset viewer.