Changes in src/GenPoly/GenPoly.cc [c2ad3c9:83de11e]
- File:
-
- 1 edited
-
src/GenPoly/GenPoly.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.cc
rc2ad3c9 r83de11e 64 64 return false; 65 65 } 66 } 67 68 Type* replaceTypeInst( Type* type, const TypeSubstitution* env ) { 69 if ( ! env ) return type; 70 if ( TypeInstType *typeInst = dynamic_cast< TypeInstType* >( type ) ) { 71 Type *newType = env->lookup( typeInst->get_name() ); 72 if ( newType ) return newType; 73 } 74 return type; 66 67 /// Replaces a TypeInstType by its referrent in the environment, if applicable 68 Type* replaceTypeInst( Type* type, const TypeSubstitution* env ) { 69 if ( ! env ) return type; 70 if ( TypeInstType *typeInst = dynamic_cast< TypeInstType* >( type ) ) { 71 Type *newType = env->lookup( typeInst->get_name() ); 72 if ( newType ) return newType; 73 } 74 return type; 75 } 75 76 } 76 77
Note:
See TracChangeset
for help on using the changeset viewer.