Changeset 6be3b7d6 for src


Ignore:
Timestamp:
Jun 25, 2019, 4:35:21 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
e0e9a0b
Parents:
b604426
Message:

Fix mis-named visit functions in AdjustExprType?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AdjustExprType.cc

    rb604426 r6be3b7d6  
    108108                : symtab( syms ), tenv( e ) {}
    109109
    110                 void premutate( const ast::VoidType * ) { visit_children = false; }
    111                 void premutate( const ast::BasicType * ) { visit_children = false; }
    112                 void premutate( const ast::PointerType * ) { visit_children = false; }
    113                 void premutate( const ast::ArrayType * ) { visit_children = false; }
    114                 void premutate( const ast::FunctionType * ) { visit_children = false; }
    115                 void premutate( const ast::StructInstType * ) { visit_children = false; }
    116                 void premutate( const ast::UnionInstType * ) { visit_children = false; }
    117                 void premutate( const ast::EnumInstType * ) { visit_children = false; }
    118                 void premutate( const ast::TraitInstType * ) { visit_children = false; }
    119                 void premutate( const ast::TypeInstType * ) { visit_children = false; }
    120                 void premutate( const ast::TupleType * ) { visit_children = false; }
    121                 void premutate( const ast::VarArgsType * ) { visit_children = false; }
    122                 void premutate( const ast::ZeroType * ) { visit_children = false; }
    123                 void premutate( const ast::OneType * ) { visit_children = false; }
     110                void previsit( const ast::VoidType * ) { visit_children = false; }
     111                void previsit( const ast::BasicType * ) { visit_children = false; }
     112                void previsit( const ast::PointerType * ) { visit_children = false; }
     113                void previsit( const ast::ArrayType * ) { visit_children = false; }
     114                void previsit( const ast::FunctionType * ) { visit_children = false; }
     115                void previsit( const ast::StructInstType * ) { visit_children = false; }
     116                void previsit( const ast::UnionInstType * ) { visit_children = false; }
     117                void previsit( const ast::EnumInstType * ) { visit_children = false; }
     118                void previsit( const ast::TraitInstType * ) { visit_children = false; }
     119                void previsit( const ast::TypeInstType * ) { visit_children = false; }
     120                void previsit( const ast::TupleType * ) { visit_children = false; }
     121                void previsit( const ast::VarArgsType * ) { visit_children = false; }
     122                void previsit( const ast::ZeroType * ) { visit_children = false; }
     123                void previsit( const ast::OneType * ) { visit_children = false; }
    124124
    125                 const ast::Type * postmutate( const ast::ArrayType * at ) {
     125                const ast::Type * postvisit( const ast::ArrayType * at ) {
    126126                        return new ast::PointerType{ at->base, at->qualifiers };
    127127                }
    128128
    129                 const ast::Type * postmutate( const ast::FunctionType * ft ) {
     129                const ast::Type * postvisit( const ast::FunctionType * ft ) {
    130130                        return new ast::PointerType{ ft };
    131131                }
    132132
    133                 const ast::Type * postmutate( const ast::TypeInstType * inst ) {
     133                const ast::Type * postvisit( const ast::TypeInstType * inst ) {
    134134                        // replace known function-type-variables with pointer-to-function
    135135                        if ( const ast::EqvClass * eqvClass = tenv.lookup( inst->name ) ) {
Note: See TracChangeset for help on using the changeset viewer.