- File:
-
- 1 edited
-
src/ResolvExpr/CandidateFinder.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CandidateFinder.hpp
r396037d rb69233ac 27 27 /// Data to perform expression resolution 28 28 struct CandidateFinder { 29 CandidateList candidates; ///< List of candidate resolutions30 const ast::SymbolTable & symtab; ///< Symbol table to lookup candidates31 const ast::TypeEnvironment & env; ///< Substitutions performed in this resolution32 ast::ptr< ast::Type > targetType = nullptr; ///< Target type for resolution29 CandidateList candidates; ///< List of candidate resolutions 30 const ast::SymbolTable & symtab; ///< Symbol table to lookup candidates 31 const ast::TypeEnvironment & env; ///< Substitutions performed in this resolution 32 ast::ptr< ast::Type > targetType; ///< Target type for resolution 33 33 34 CandidateFinder( const ast::SymbolTable & symtab, const ast::TypeEnvironment & env ) 35 : candidates(), symtab( symtab ), env( env ) {} 34 CandidateFinder( 35 const ast::SymbolTable & symtab, const ast::TypeEnvironment & env, 36 const ast::Type * tt = nullptr ) 37 : candidates(), symtab( symtab ), env( env ), targetType( tt ) {} 36 38 37 39 /// Fill candidates with feasible resolutions for `expr` … … 52 54 }; 53 55 56 /// Computes conversion cost between two types 57 Cost computeConversionCost( 58 const ast::Type * argType, const ast::Type * paramType, const ast::SymbolTable & symtab, 59 const ast::TypeEnvironment & env ); 60 54 61 } // namespace ResolvExpr 55 62
Note:
See TracChangeset
for help on using the changeset viewer.