Changes in src/AST/Convert.cpp [157a816:2c04369]
- File:
-
- 1 edited
-
src/AST/Convert.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
r157a816 r2c04369 10 10 // Created On : Thu May 09 15::37::05 2019 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed May 29 11:05:00 201913 // Update Count : 812 // Last Modified On : Tue May 28 12:00:00 2019 13 // Update Count : 7 14 14 // 15 15 … … 25 25 #include "AST/TypeSubstitution.hpp" 26 26 27 #include "SymTab/Autogen.h"28 27 #include "SynTree/Attribute.h" 29 28 #include "SynTree/Declaration.h" … … 41 40 } 42 41 }; 43 44 //================================================================================================45 namespace {46 47 // This is to preserve the SymTab::dereferenceOperator hack. It does not (and perhaps should not)48 // allow us to use the same stratagy in the new ast.49 ast::FunctionDecl * dereferenceOperator = nullptr;50 51 }52 42 53 43 //================================================================================================ … … 169 159 ); 170 160 decl->withExprs = get<Expression>().acceptL( node->withExprs ); 171 if ( dereferenceOperator == node ) {172 SymTab::dereferenceOperator = decl;173 }174 161 return declWithTypePostamble( decl, node ); 175 162 } … … 1452 1439 1453 1440 this->node = decl; 1454 1455 if ( SymTab::dereferenceOperator == old ) {1456 dereferenceOperator = decl;1457 }1458 1441 } 1459 1442 … … 1501 1484 virtual void visit( EnumDecl * old ) override final { 1502 1485 if ( inCache( old ) ) return; 1503 auto decl = new ast:: EnumDecl(1486 auto decl = new ast::UnionDecl( 1504 1487 old->location, 1505 1488 old->name, … … 1521 1504 virtual void visit( TraitDecl * old ) override final { 1522 1505 if ( inCache( old ) ) return; 1523 auto decl = new ast:: TraitDecl(1506 auto decl = new ast::UnionDecl( 1524 1507 old->location, 1525 1508 old->name,
Note:
See TracChangeset
for help on using the changeset viewer.