Changes in / [f57dd25:ebc0a85]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    rf57dd25 rebc0a85  
    1010// Created On       : Thu May 09 15::37::05 2019
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Wed May 29 11:05:00 2019
    13 // Update Count     : 8
     12// Last Modified On : Tue May 28 12:00:00 2019
     13// Update Count     : 7
    1414//
    1515
     
    2525#include "AST/TypeSubstitution.hpp"
    2626
    27 #include "SymTab/Autogen.h"
    2827#include "SynTree/Attribute.h"
    2928#include "SynTree/Declaration.h"
     
    4140        }
    4241};
    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 }
    5242
    5343//================================================================================================
     
    169159                );
    170160                decl->withExprs = get<Expression>().acceptL( node->withExprs );
    171                 if ( dereferenceOperator == node ) {
    172                         SymTab::dereferenceOperator = decl;
    173                 }
    174161                return declWithTypePostamble( decl, node );
    175162        }
     
    14481435
    14491436                this->node = decl;
    1450 
    1451                 if ( SymTab::dereferenceOperator == old ) {
    1452                         dereferenceOperator = decl;
    1453                 }
    14541437        }
    14551438
     
    14971480        virtual void visit( EnumDecl * old ) override final {
    14981481                if ( inCache( old ) ) return;
    1499                 auto decl = new ast::EnumDecl(
     1482                auto decl = new ast::UnionDecl(
    15001483                        old->location,
    15011484                        old->name,
     
    15171500        virtual void visit( TraitDecl * old ) override final {
    15181501                if ( inCache( old ) ) return;
    1519                 auto decl = new ast::TraitDecl(
     1502                auto decl = new ast::UnionDecl(
    15201503                        old->location,
    15211504                        old->name,
Note: See TracChangeset for help on using the changeset viewer.