- File:
-
- 1 edited
-
src/ResolvExpr/CandidateFinder.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CandidateFinder.hpp
r396037d r99d4584 19 19 #include "ResolvMode.h" 20 20 #include "AST/Fwd.hpp" 21 #include "AST/Node.hpp"22 21 #include "AST/SymbolTable.hpp" 23 22 #include "AST/TypeEnvironment.hpp" … … 30 29 const ast::SymbolTable & symtab; ///< Symbol table to lookup candidates 31 30 const ast::TypeEnvironment & env; ///< Substitutions performed in this resolution 32 ast::ptr< ast::Type >targetType = nullptr; ///< Target type for resolution31 const ast::Type * targetType = nullptr; ///< Target type for resolution 33 32 34 33 CandidateFinder( const ast::SymbolTable & symtab, const ast::TypeEnvironment & env ) … … 37 36 /// Fill candidates with feasible resolutions for `expr` 38 37 void find( const ast::Expr * expr, ResolvMode mode = {} ); 39 40 /// Runs new candidate finder on each element in xs, returning the list of finders41 std::vector< CandidateFinder > findSubExprs( const std::vector< ast::ptr< ast::Expr > > & xs );42 43 using value_type = CandidateList::value_type;44 using iterator = CandidateList::iterator;45 using const_iterator = CandidateList::const_iterator;46 47 iterator begin() { return candidates.begin(); }48 const_iterator begin() const { return candidates.begin(); }49 50 iterator end() { return candidates.end(); }51 const_iterator end() const { return candidates.end(); }52 38 }; 53 39
Note:
See TracChangeset
for help on using the changeset viewer.