Changeset 93c10de for src/ResolvExpr
- Timestamp:
- Nov 24, 2022, 11:01:37 AM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 82a90d4
- Parents:
- 78de1e5
- Location:
- src/ResolvExpr
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CandidateFinder.cpp
r78de1e5 r93c10de 221 221 ) { 222 222 for ( auto & tyvar : type->forall ) { 223 unifiableVars[ *tyvar ] = ast::TypeD ecl::Data{ tyvar->base };223 unifiableVars[ *tyvar ] = ast::TypeData{ tyvar->base }; 224 224 } 225 225 for ( auto & assn : type->assertions ) { -
src/ResolvExpr/FindOpenVars.cc
r78de1e5 r93c10de 113 113 if ( nextIsOpen ) { 114 114 for ( auto & decl : type->forall ) { 115 open[ *decl ] = ast::TypeD ecl::Data{ decl->base };115 open[ *decl ] = ast::TypeData{ decl->base }; 116 116 } 117 117 for ( auto & assert : type->assertions ) { … … 120 120 } else { 121 121 for ( auto & decl : type->forall ) { 122 closed[ *decl ] = ast::TypeD ecl::Data{ decl->base };122 closed[ *decl ] = ast::TypeData{ decl->base }; 123 123 } 124 124 for ( auto & assert : type->assertions ) { -
src/ResolvExpr/RenameVars.cc
r78de1e5 r93c10de 42 42 int next_usage_id = 1; 43 43 ScopedMap< std::string, std::string > nameMap; 44 ScopedMap< std::string, ast::Type InstType::TypeEnvKey > idMap;44 ScopedMap< std::string, ast::TypeEnvKey > idMap; 45 45 public: 46 46 void reset() { … … 121 121 assert(false); 122 122 } 123 idMap[ td->name ] = ast::Type InstType::TypeEnvKey(*mut);124 123 idMap[ td->name ] = ast::TypeEnvKey( *mut ); 124 125 125 td = mut; 126 126 } -
src/ResolvExpr/Unify.cc
r78de1e5 r93c10de 1166 1166 if ( entry1->second.kind != entry2->second.kind ) return false; 1167 1167 return env.bindVarToVar( 1168 var1, var2, ast::TypeD ecl::Data{ entry1->second, entry2->second }, need, have,1168 var1, var2, ast::TypeData{ entry1->second, entry2->second }, need, have, 1169 1169 open, widen, symtab ); 1170 1170 } else if ( isopen1 ) {
Note:
See TracChangeset
for help on using the changeset viewer.