Changeset c408483 for src/SymTab
- Timestamp:
- Jul 28, 2020, 2:37:36 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- eb1be63
- Parents:
- d1ee9ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/SymTab/FixFunction.cc ¶
rd1ee9ec rc408483 106 106 bool isVoid = false; 107 107 108 void pre mutate( const ast::FunctionDecl * ) { visit_children = false; }108 void previsit( const ast::FunctionDecl * ) { visit_children = false; } 109 109 110 const ast::DeclWithType * post mutate( const ast::FunctionDecl * func ) {110 const ast::DeclWithType * postvisit( const ast::FunctionDecl * func ) { 111 111 return new ast::ObjectDecl{ 112 112 func->location, func->name, new ast::PointerType{ func->type }, nullptr, … … 114 114 } 115 115 116 void pre mutate( const ast::ArrayType * ) { visit_children = false; }116 void previsit( const ast::ArrayType * ) { visit_children = false; } 117 117 118 const ast::Type * post mutate( const ast::ArrayType * array ) {118 const ast::Type * postvisit( const ast::ArrayType * array ) { 119 119 return new ast::PointerType{ 120 120 array->base, array->dimension, array->isVarLen, array->isStatic, … … 122 122 } 123 123 124 void pre mutate( const ast::VoidType * ) { isVoid = true; }124 void previsit( const ast::VoidType * ) { isVoid = true; } 125 125 126 void pre mutate( const ast::BasicType * ) { visit_children = false; }127 void pre mutate( const ast::PointerType * ) { visit_children = false; }128 void pre mutate( const ast::StructInstType * ) { visit_children = false; }129 void pre mutate( const ast::UnionInstType * ) { visit_children = false; }130 void pre mutate( const ast::EnumInstType * ) { visit_children = false; }131 void pre mutate( const ast::TraitInstType * ) { visit_children = false; }132 void pre mutate( const ast::TypeInstType * ) { visit_children = false; }133 void pre mutate( const ast::TupleType * ) { visit_children = false; }134 void pre mutate( const ast::VarArgsType * ) { visit_children = false; }135 void pre mutate( const ast::ZeroType * ) { visit_children = false; }136 void pre mutate( const ast::OneType * ) { visit_children = false; }126 void previsit( const ast::BasicType * ) { visit_children = false; } 127 void previsit( const ast::PointerType * ) { visit_children = false; } 128 void previsit( const ast::StructInstType * ) { visit_children = false; } 129 void previsit( const ast::UnionInstType * ) { visit_children = false; } 130 void previsit( const ast::EnumInstType * ) { visit_children = false; } 131 void previsit( const ast::TraitInstType * ) { visit_children = false; } 132 void previsit( const ast::TypeInstType * ) { visit_children = false; } 133 void previsit( const ast::TupleType * ) { visit_children = false; } 134 void previsit( const ast::VarArgsType * ) { visit_children = false; } 135 void previsit( const ast::ZeroType * ) { visit_children = false; } 136 void previsit( const ast::OneType * ) { visit_children = false; } 137 137 }; 138 138 } // anonymous namespace
Note: See TracChangeset
for help on using the changeset viewer.