Changes in src/AST/Pass.hpp [c86b08d:19a8c40]
- File:
-
- 1 edited
-
src/AST/Pass.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
rc86b08d r19a8c40 66 66 // 67 67 // Other Special Members: 68 // | beginScope - A method with no parameters or return value, called each time the69 // visitor enters a block.70 // | endScope - A method with no parameters or return value, called each time the71 // visitor leaves a block.72 68 // | result - Either a method that takes no parameters or a field. If a method (or 73 69 // callable field) get_result calls it, otherwise the value is returned. … … 86 82 { 87 83 // After the pass is constructed, check if it wants the have a pointer to the wrapping visitor 88 type * const * visitor = __pass::visitor( core, 0);89 if ( visitor) {84 type * const * visitor = __pass::visitor(core, 0); 85 if(visitor) { 90 86 *const_cast<type **>( visitor ) = this; 91 87 } … … 98 94 99 95 /// If the core defines a result, call it if possible, otherwise return it. 100 inline auto get_result() -> decltype( __pass:: result::get( core, '0' ) ) {101 return __pass:: result::get( core, '0' );96 inline auto get_result() -> decltype( __pass::get_result( core, '0' ) ) { 97 return __pass::get_result( core, '0' ); 102 98 } 103 99 … … 162 158 const ast::FinallyClause * visit( const ast::FinallyClause * ) override final; 163 159 const ast::Stmt * visit( const ast::SuspendStmt * ) override final; 164 const ast::WhenClause * visit( const ast::WhenClause * ) override final;165 160 const ast::Stmt * visit( const ast::WaitForStmt * ) override final; 166 161 const ast::WaitForClause * visit( const ast::WaitForClause * ) override final; 167 const ast::Stmt * visit( const ast::WaitUntilStmt * ) override final;168 162 const ast::Decl * visit( const ast::WithStmt * ) override final; 169 163 const ast::NullStmt * visit( const ast::NullStmt * ) override final;
Note:
See TracChangeset
for help on using the changeset viewer.