Ignore:
Timestamp:
Jun 15, 2018, 5:09:29 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env
Children:
97397a26
Parents:
1d7b0a8
Message:

Start of new environment implementation; terribly broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/PolyCost.cc

    r1d7b0a8 r982f95d  
    1717#include "SymTab/Indexer.h"   // for Indexer
    1818#include "SynTree/Type.h"     // for TypeInstType, Type
    19 #include "TypeEnvironment.h"  // for EqvClass, TypeEnvironment
     19#include "TypeEnvironment.h"  // for ClassRef, TypeEnvironment
    2020
    2121namespace ResolvExpr {
     
    3939
    4040        void PolyCost::previsit(TypeInstType * typeInst) {
    41                 if ( const EqvClass *eqvClass = tenv.lookup( typeInst->name ) ) {
    42                         if ( eqvClass->type ) {
    43                                 if ( TypeInstType * otherTypeInst = dynamic_cast< TypeInstType* >( eqvClass->type ) ) {
     41                if ( ClassRef eqvClass = tenv.lookup( typeInst->name ) ) {
     42                        if ( Type* boundTy = eqvClass.get_bound().type ) {
     43                                if ( TypeInstType * otherTypeInst = dynamic_cast< TypeInstType* >( boundTy ) ) {
    4444                                        if ( indexer.lookupType( otherTypeInst->name ) ) {
    4545                                                // bound to opaque type
Note: See TracChangeset for help on using the changeset viewer.