Changeset 2345ab3
- Timestamp:
- Dec 5, 2023, 11:13:59 AM (13 months ago)
- Branches:
- master
- Children:
- 1c85ffc
- Parents:
- e274264
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Chain.hpp
re274264 r2345ab3 33 33 template<typename actual_node_t, typename child_t> 34 34 auto operator()( child_t actual_node_t::*child ) { 35 auto n = mutate(base.get());35 node_t * n = base.get_and_mutate(); 36 36 actual_node_t * node = strict_dynamic_cast<actual_node_t *>(n); 37 base = node;38 37 return _chain_mutator< typename std::remove_reference< decltype(node->*child) >::type >{node->*child}; 39 38 } 40 39 41 40 node_t * operator->() { 42 auto n = mutate(base.get()); 43 base = n; 44 return n; 41 return base.get_and_mutate(); 45 42 } 46 43 }; -
src/ResolvExpr/Resolver.cc
re274264 r2345ab3 29 29 #include "Unify.h" // for unify 30 30 #include "CompilationState.h" 31 #include "AST/Chain.hpp"32 31 #include "AST/Decl.hpp" 33 32 #include "AST/Init.hpp" … … 104 103 } 105 104 } 106 } 107 } 105 } 106 } 108 107 visit_children = false; 109 108 } … … 607 606 ( objectDecl->get_type() )->base->base ) { 608 607 objectDecl = fixObjectType( objectDecl, context ); 609 currentObject = ast::CurrentObject{ 610 objectDecl->location, 608 currentObject = ast::CurrentObject{ 609 objectDecl->location, 611 610 enumBase 612 611 };
Note: See TracChangeset
for help on using the changeset viewer.