Changeset c8837e5 for src/GenPoly/ScrubTyVars.cc
- Timestamp:
- Oct 7, 2022, 4:09:36 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- d8c96a9
- Parents:
- 8c91088
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/ScrubTyVars.cc
r8c91088 rc8837e5 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Fri Aug 19 16:10:00 202213 // Update Count : 412 // Last Modified On : Fri Oct 7 15:42:00 2022 13 // Update Count : 5 14 14 // 15 15 … … 128 128 public ast::WithVisitorRef<ScrubTypeVars> { 129 129 130 ScrubTypeVars( ScrubMode m, Ty VarMap const * tv ) :130 ScrubTypeVars( ScrubMode m, TypeVarMap const * tv ) : 131 131 mode ( m ), typeVars( tv ) {} 132 132 … … 148 148 ScrubMode const mode; 149 149 /// Type varriables to scrub. 150 Ty VarMap const * const typeVars;150 TypeVarMap const * const typeVars; 151 151 /// Value cached by primeBaseScrub. 152 152 ast::Type const * dynType = nullptr; … … 255 255 const ast::Node * scrubTypeVarsBase( 256 256 const ast::Node * target, 257 ScrubMode mode, const Ty VarMap * typeVars ) {257 ScrubMode mode, const TypeVarMap * typeVars ) { 258 258 if ( ScrubMode::All == mode ) { 259 259 assert( nullptr == typeVars ); … … 266 266 267 267 } // namespace 268 269 template<> 270 ast::Node const * scrubTypeVars<ast::Node>( 271 const ast::Node * target, const TypeVarMap & typeVars ) { 272 return scrubTypeVarsBase( target, ScrubMode::FromMap, &typeVars ); 273 } 274 275 template<> 276 ast::Node const * scrubTypeVarsDynamic<ast::Node>( 277 ast::Node const * target, const TypeVarMap & typeVars ) { 278 return scrubTypeVarsBase( target, ScrubMode::DynamicFromMap, &typeVars ); 279 } 268 280 269 281 template<>
Note: See TracChangeset
for help on using the changeset viewer.