Changes in src/ResolvExpr/Occurs.cc [85dac33:00ac42e]
- File:
-
- 1 edited
-
src/ResolvExpr/Occurs.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Occurs.cc
r85dac33 r00ac42e 24 24 struct Occurs : public WithVisitorRef<Occurs> { 25 25 Occurs( std::string varName, const TypeEnvironment &env ); 26 void previsit( constTypeInstType * typeInst );26 void previsit( TypeInstType * typeInst ); 27 27 28 28 bool result; … … 31 31 }; 32 32 33 bool occurs( const Type *type, const std::string &varName, const TypeEnvironment &env ) {33 bool occurs( Type *type, std::string varName, const TypeEnvironment &env ) { 34 34 PassVisitor<Occurs> occur( varName, env ); 35 35 type->accept( occur ); … … 45 45 } 46 46 47 void Occurs::previsit( constTypeInstType * typeInst ) {47 void Occurs::previsit( TypeInstType * typeInst ) { 48 48 /// std::cerr << "searching for vars: "; 49 49 /// std::copy( eqvVars.begin(), eqvVars.end(), std::ostream_iterator< std::string >( std::cerr, " " ) );
Note:
See TracChangeset
for help on using the changeset viewer.