Changeset 24d6572 for src/AST/Pass.hpp
- Timestamp:
- Jun 12, 2023, 2:45:32 PM (2 years ago)
- Branches:
- ast-experimental, master
- Children:
- 62d62db
- Parents:
- 34b4268 (diff), 251ce80 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
r34b4268 r24d6572 66 66 // 67 67 // Other Special Members: 68 // | beginScope - A method with no parameters or return value, called each time the 69 // visitor enters a block. 70 // | endScope - A method with no parameters or return value, called each time the 71 // visitor leaves a block. 68 72 // | result - Either a method that takes no parameters or a field. If a method (or 69 73 // callable field) get_result calls it, otherwise the value is returned. … … 82 86 { 83 87 // After the pass is constructed, check if it wants the have a pointer to the wrapping visitor 84 type * const * visitor = __pass::visitor( core, 0);85 if (visitor) {88 type * const * visitor = __pass::visitor( core, 0 ); 89 if ( visitor ) { 86 90 *const_cast<type **>( visitor ) = this; 87 91 } … … 94 98 95 99 /// If the core defines a result, call it if possible, otherwise return it. 96 inline auto get_result() -> decltype( __pass:: get_result( core, '0' ) ) {97 return __pass:: get_result( core, '0' );100 inline auto get_result() -> decltype( __pass::result::get( core, '0' ) ) { 101 return __pass::result::get( core, '0' ); 98 102 } 99 103 … … 158 162 const ast::FinallyClause * visit( const ast::FinallyClause * ) override final; 159 163 const ast::Stmt * visit( const ast::SuspendStmt * ) override final; 164 const ast::WhenClause * visit( const ast::WhenClause * ) override final; 160 165 const ast::Stmt * visit( const ast::WaitForStmt * ) override final; 161 166 const ast::WaitForClause * visit( const ast::WaitForClause * ) override final; 167 const ast::Stmt * visit( const ast::WaitUntilStmt * ) override final; 162 168 const ast::Decl * visit( const ast::WithStmt * ) override final; 163 169 const ast::NullStmt * visit( const ast::NullStmt * ) override final;
Note:
See TracChangeset
for help on using the changeset viewer.