Changes in src/AST/Convert.cpp [60aaa51d:546e712]
- File:
-
- 1 edited
-
src/AST/Convert.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
r60aaa51d r546e712 16 16 #include "Convert.hpp" 17 17 18 #include <deque>19 18 #include <unordered_map> 20 19 … … 576 575 577 576 if ( srcInferred.mode == ast::Expr::InferUnion::Params ) { 578 const ast::InferredParams &srcParams = srcInferred.inferParams ();577 const ast::InferredParams &srcParams = srcInferred.inferParamsConst(); 579 578 for (auto srcParam : srcParams) { 580 579 tgtInferParams[srcParam.first] = ParamEntry( … … 586 585 } 587 586 } else if ( srcInferred.mode == ast::Expr::InferUnion::Slots ) { 588 const ast::ResnSlots &srcSlots = srcInferred.resnSlots ();587 const ast::ResnSlots &srcSlots = srcInferred.resnSlotsConst(); 589 588 for (auto srcSlot : srcSlots) { 590 589 tgtResnSlots.push_back(srcSlot); … … 1414 1413 # define GET_ACCEPT_V(child, type) \ 1415 1414 getAcceptV< ast::type, decltype( old->child ) >( old->child ) 1416 1417 template<typename NewT, typename OldC>1418 std::deque< ast::ptr<NewT> > getAcceptD( OldC& old ) {1419 std::deque< ast::ptr<NewT> > ret;1420 for ( auto a : old ) {1421 a->accept( *this );1422 ret.emplace_back( strict_dynamic_cast< NewT * >(node) );1423 node = nullptr;1424 }1425 return ret;1426 }1427 1428 # define GET_ACCEPT_D(child, type) \1429 getAcceptD< ast::type, decltype( old->child ) >( old->child )1430 1415 1431 1416 ast::Label make_label(Label* old) { … … 2464 2449 2465 2450 virtual void visit( UntypedInitExpr * old ) override final { 2466 std:: deque<ast::InitAlternative> initAlts;2451 std::vector<ast::InitAlternative> initAlts; 2467 2452 for (auto ia : old->initAlts) { 2468 2453 initAlts.push_back(ast::InitAlternative( … … 2729 2714 this->node = new ast::Designation( 2730 2715 old->location, 2731 GET_ACCEPT_ D(designators, Expr)2716 GET_ACCEPT_V(designators, Expr) 2732 2717 ); 2733 2718 }
Note:
See TracChangeset
for help on using the changeset viewer.