Changes in src/AST/Pass.hpp [c6c682cf:b2a11ba]
- File:
-
- 1 edited
-
src/AST/Pass.hpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
rc6c682cf rb2a11ba 228 228 template<typename core_type> 229 229 friend void accept_all( std::list< ptr<Decl> > & decls, Pass<core_type>& visitor ); 230 231 bool isInFunction() const {232 return inFunction;233 }234 235 230 private: 236 231 … … 240 235 const ast::Stmt * call_accept( const ast::Stmt * ); 241 236 const ast::Expr * call_accept( const ast::Expr * ); 242 243 // requests WithStmtsToAdd directly add to this statement, as if it is a compound.244 245 const ast::Stmt * call_accept_as_compound(const ast::Stmt *);246 237 247 238 template< typename node_t > … … 266 257 template<typename node_t, typename parent_t, typename child_t> 267 258 void maybe_accept(const node_t * &, child_t parent_t::* child); 268 269 template<typename node_t, typename parent_t, typename child_t>270 void maybe_accept_as_compound(const node_t * &, child_t parent_t::* child);271 259 272 260 private: … … 296 284 private: 297 285 bool inFunction = false; 298 bool atFunctionTop = false;299 286 }; 300 287 … … 384 371 struct WithVisitorRef { 385 372 Pass<core_t> * const visitor = nullptr; 386 387 bool isInFunction() const {388 return visitor->isInFunction();389 }390 373 }; 391 374
Note:
See TracChangeset
for help on using the changeset viewer.