Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.hpp

    rc6c682cf rb2a11ba  
    228228        template<typename core_type>
    229229        friend void accept_all( std::list< ptr<Decl> > & decls, Pass<core_type>& visitor );
    230 
    231         bool isInFunction() const {
    232                 return inFunction;
    233         }
    234 
    235230private:
    236231
     
    240235        const ast::Stmt * call_accept( const ast::Stmt * );
    241236        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 *);
    246237
    247238        template< typename node_t >
     
    266257        template<typename node_t, typename parent_t, typename child_t>
    267258        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);
    271259
    272260private:
     
    296284private:
    297285        bool inFunction = false;
    298         bool atFunctionTop = false;
    299286};
    300287
     
    384371struct WithVisitorRef {
    385372        Pass<core_t> * const visitor = nullptr;
    386 
    387         bool isInFunction() const {
    388                 return visitor->isInFunction();
    389         }
    390373};
    391374
Note: See TracChangeset for help on using the changeset viewer.