Changeset 0bd3faf for src/ResolvExpr/AdjustExprType.hpp
- Timestamp:
- Nov 13, 2023, 1:40:12 PM (8 months ago)
- Branches:
- master
- Children:
- 6ea85b22
- Parents:
- 25f2798
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AdjustExprType.hpp
r25f2798 r0bd3faf 16 16 #pragma once 17 17 18 class Type;19 namespace SymTab {20 class Indexer;21 }22 18 namespace ast { 23 19 class SymbolTable; … … 27 23 28 24 namespace ResolvExpr { 29 30 class TypeEnvironment;31 32 /// Replaces array types with the equivalent pointer, and function types with a pointer-to-function33 void adjustExprType( Type *& type, const TypeEnvironment & env, const SymTab::Indexer & indexer );34 35 /// Replaces array types with the equivalent pointer, and function types with a pointer-to-function using empty TypeEnvironment and Indexer.36 void adjustExprType( Type *& type );37 38 template< typename ForwardIterator >39 void adjustExprTypeList( ForwardIterator begin, ForwardIterator end, const TypeEnvironment & env, const SymTab::Indexer & indexer ) {40 while ( begin != end ) {41 adjustExprType( *begin++, env, indexer );42 } // while43 }44 25 45 26 /// Replaces array types with equivalent pointer,
Note: See TracChangeset
for help on using the changeset viewer.