Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    r5fcba14 r481115f  
    6969
    7070        virtual void print( __attribute__((unused)) std::ostream &os, __attribute__((unused)) int indent = 0 ) const {}
    71         virtual void printList( std::ostream &os, int indent = 0 ) const {
    72                 print( os, indent );
    73                 if ( next ) next->print( os, indent );
    74         }
     71        virtual void printList( __attribute__((unused)) std::ostream &os, __attribute__((unused)) int indent = 0 ) const {}
    7572
    7673        static int indent_by;
     
    123120        ExpressionNode * set_extension( bool exten ) { extension = exten; return this; }
    124121
    125         virtual void print( std::ostream &os, __attribute__((unused)) int indent = 0 ) const override {
    126                 os << expr.get() << std::endl;
    127         }
     122        virtual void print( __attribute__((unused)) std::ostream &os, __attribute__((unused)) int indent = 0 ) const override {}
    128123        void printOneLine( __attribute__((unused)) std::ostream &os, __attribute__((unused)) int indent = 0 ) const {}
    129124
     
    262257        DeclarationNode * addBitfield( ExpressionNode * size );
    263258        DeclarationNode * addVarArgs();
    264         DeclarationNode * addFunctionBody( StatementNode * body, StatementNode * with = nullptr );
     259        DeclarationNode * addFunctionBody( StatementNode * body );
    265260        DeclarationNode * addOldDeclList( DeclarationNode * list );
    266261        DeclarationNode * setBase( TypeData * newType );
     
    364359        virtual StatementNode * append_last_case( StatementNode * );
    365360
    366         virtual void print( std::ostream &os, __attribute__((unused)) int indent = 0 ) const override {
    367                 os << stmt.get() << std::endl;
    368         }
     361        virtual void print( __attribute__((unused)) std::ostream &os, __attribute__((unused)) int indent = 0 ) const override {}
     362        virtual void printList( __attribute__((unused)) std::ostream &os, __attribute__((unused)) int indent = 0 ) const override {}
    369363  private:
    370364        std::unique_ptr<Statement> stmt;
     
    414408WaitForStmt * build_waitfor_timeout( ExpressionNode * timeout, StatementNode * stmt, ExpressionNode * when );
    415409WaitForStmt * build_waitfor_timeout( ExpressionNode * timeout, StatementNode * stmt, ExpressionNode * when, StatementNode * else_stmt, ExpressionNode * else_when );
    416 WithStmt * build_with( ExpressionNode * exprs, StatementNode * stmt );
    417410
    418411//##############################################################################
Note: See TracChangeset for help on using the changeset viewer.