Ignore:
Timestamp:
Jun 25, 2019, 11:26:30 AM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
bcb311b
Parents:
28af389
Message:

Fix ast::Pass guard classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CandidateFinder.cpp

    r28af389 r9ea38de  
    594594
    595595        /// Actually visits expressions to find their candidate interpretations
    596         struct Finder final : public ast::WithShortCircuiting {
     596        class Finder final : public ast::WithShortCircuiting {
     597                const ast::SymbolTable & symtab;
     598        public:
    597599                CandidateFinder & selfFinder;
    598                 const ast::SymbolTable & symtab;
    599600                CandidateList & candidates;
    600601                const ast::TypeEnvironment & tenv;
     
    602603
    603604                Finder( CandidateFinder & f )
    604                 : selfFinder( f ), symtab( f.symtab ), candidates( f.candidates ), tenv( f.env ),
     605                : symtab( f.localSyms ), selfFinder( f ), candidates( f.candidates ), tenv( f.env ),
    605606                  targetType( f.targetType ) {}
    606607               
     
    15581559                std::vector< std::string > errors;
    15591560                for ( CandidateRef & candidate : candidates ) {
    1560                         satisfyAssertions( candidate, symtab, satisfied, errors );
     1561                        satisfyAssertions( candidate, localSyms, satisfied, errors );
    15611562                }
    15621563
     
    16131614                        r->expr = ast::mutate_field(
    16141615                                r->expr.get(), &ast::Expr::result,
    1615                                 adjustExprType( r->expr->result, r->env, symtab ) );
     1616                                adjustExprType( r->expr->result, r->env, localSyms ) );
    16161617                }
    16171618        }
     
    16311632
    16321633        for ( const auto & x : xs ) {
    1633                 out.emplace_back( symtab, env );
     1634                out.emplace_back( localSyms, env );
    16341635                out.back().find( x, ResolvMode::withAdjustment() );
    16351636               
Note: See TracChangeset for help on using the changeset viewer.