Changeset 561354f for src/AST/Pass.impl.hpp
- Timestamp:
- May 17, 2023, 1:33:39 AM (2 years ago)
- Branches:
- ADT
- Children:
- d6c464d
- Parents:
- 28f8f15
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.impl.hpp
r28f8f15 r561354f 693 693 maybe_accept( node, &EnumDecl::members ); 694 694 maybe_accept( node, &EnumDecl::attributes ); 695 maybe_accept( node, &EnumDecl::data_constructors ); 696 maybe_accept( node, &EnumDecl::data_union ); 697 maybe_accept( node, &EnumDecl::tag ); 698 maybe_accept( node, &EnumDecl::tag_union ); 695 696 // maybe_accept( node, &EnumDecl::data_constructors ); 697 // maybe_accept( node, &EnumDecl::data_union ); 698 // maybe_accept( node, &EnumDecl::tag ); 699 // maybe_accept( node, &EnumDecl::tag_union ); 699 700 } else { 700 701 maybe_accept( node, &EnumDecl::base ); … … 702 703 maybe_accept( node, &EnumDecl::members ); 703 704 maybe_accept( node, &EnumDecl::attributes ); 704 maybe_accept( node, &EnumDecl::data_constructors ); 705 maybe_accept( node, &EnumDecl::data_union ); 706 maybe_accept( node, &EnumDecl::tag ); 707 maybe_accept( node, &EnumDecl::tag_union ); 708 } 705 706 // maybe_accept( node, &EnumDecl::data_constructors ); 707 // maybe_accept( node, &EnumDecl::data_union ); 708 // maybe_accept( node, &EnumDecl::tag ); 709 // maybe_accept( node, &EnumDecl::tag_union ); 710 } 711 } 712 713 VISIT_END( Decl, node ); 714 } 715 716 template< typename core_t > 717 const ast::Decl * ast::Pass< core_t >::visit( const ast::AdtDecl * node ) { 718 VISIT_START( node ); 719 720 __pass::symtab::addAdt( core, 0, node ); 721 722 if ( __visit_children() ) { 723 guard_symtab guard { *this }; 724 maybe_accept( node, &AdtDecl::params ); 725 maybe_accept( node, &AdtDecl::members ); 726 maybe_accept( node, &AdtDecl::attributes ); 727 728 maybe_accept( node, &AdtDecl::data_constructors ); 729 maybe_accept( node, &AdtDecl::data_union ); 730 maybe_accept( node, &AdtDecl::tag ); 731 maybe_accept( node, &AdtDecl::tag_union ); 709 732 } 710 733
Note:
See TracChangeset
for help on using the changeset viewer.