Ignore:
Timestamp:
Jun 28, 2019, 1:29:52 PM (5 years ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
417117e
Parents:
7d0881c
Message:

Activated TypeSubstitution? applying its modification behaviour, which is used in resolve. First round of within-TypeSubstitution? crashes on bootloader debugged.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/TypeSubstitution.hpp

    r7d0881c r55b6476  
    155155                Substituter( const TypeSubstitution & sub, bool freeOnly ) : sub( sub ), freeOnly( freeOnly ) {}
    156156
    157 #if TIME_TO_CONVERT_PASSES
    158 
    159                 Type * postmutate( TypeInstType * aggregateUseType );
    160                 Expression * postmutate( NameExpr * nameExpr );
     157                const Type * postvisit( const TypeInstType * aggregateUseType );
     158                const Expr * postvisit( const NameExpr * nameExpr );
    161159
    162160                /// Records type variable bindings from forall-statements
    163                 void premutate( Type * type );
     161                void previsit( const ParameterizedType * type );
    164162                /// Records type variable bindings from forall-statements and instantiations of generic types
    165                 template< typename TypeClass > void handleAggregateType( TypeClass * type );
    166 
    167                 void premutate( StructInstType * aggregateUseType );
    168                 void premutate( UnionInstType * aggregateUseType );
    169 
    170 #endif
     163                void handleAggregateType( const ReferenceToType * type );
     164
     165                void previsit( const StructInstType * aggregateUseType );
     166                void previsit( const UnionInstType * aggregateUseType );
    171167
    172168                const TypeSubstitution & sub;
Note: See TracChangeset for help on using the changeset viewer.