Changeset 18e683b for src/ResolvExpr
- Timestamp:
- Jun 24, 2019, 11:11:59 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- c1ea11b
- Parents:
- 8d61d620
- Location:
- src/ResolvExpr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CandidateFinder.cpp
r8d61d620 r18e683b 1003 1003 assert( toType ); 1004 1004 toType = resolveTypeof( toType, symtab ); 1005 toType = SymTab::validateType( toType, symtab );1005 toType = SymTab::validateType( castExpr->location, toType, symtab ); 1006 1006 toType = adjustExprType( toType, tenv, symtab ); 1007 1007 … … 1410 1410 // calculate target type 1411 1411 const ast::Type * toType = resolveTypeof( initAlt.type, symtab ); 1412 toType = SymTab::validateType( toType, symtab );1412 toType = SymTab::validateType( initExpr->location, toType, symtab ); 1413 1413 toType = adjustExprType( toType, tenv, symtab ); 1414 1414 // The call to find must occur inside this loop, otherwise polymorphic return -
src/ResolvExpr/Resolver.cc
r8d61d620 r18e683b 1154 1154 return findKindExpression( untyped, symtab ); 1155 1155 } 1156 1157 /// Resolve `untyped` to the single expression whose candidate is the best match for the 1158 /// given type. 1156 } // anonymous namespace 1157 1159 1158 ast::ptr< ast::Expr > findSingleExpression( 1160 1159 const ast::Expr * untyped, const ast::Type * type, const ast::SymbolTable & symtab … … 1167 1166 } 1168 1167 1168 namespace { 1169 1169 /// Predicate for "Candidate has integral type" 1170 1170 bool hasIntegralType( const Candidate & i ) { -
src/ResolvExpr/Resolver.h
r8d61d620 r18e683b 35 35 class StmtExpr; 36 36 class SymbolTable; 37 class Type; 37 38 class TypeEnvironment; 38 39 } // namespace ast … … 61 62 ast::ptr< ast::Expr > resolveInVoidContext( 62 63 const ast::Expr * expr, const ast::SymbolTable & symtab, ast::TypeEnvironment & env ); 64 /// Resolve `untyped` to the single expression whose candidate is the best match for the 65 /// given type. 66 ast::ptr< ast::Expr > findSingleExpression( 67 const ast::Expr * untyped, const ast::Type * type, const ast::SymbolTable & symtab ); 63 68 /// Resolves a constructor init expression 64 69 ast::ptr< ast::Init > resolveCtorInit(
Note: See TracChangeset
for help on using the changeset viewer.