Changes in src/Parser/ParseNode.h [5fcba14:481115f]
- File:
-
- 1 edited
-
src/Parser/ParseNode.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r5fcba14 r481115f 69 69 70 70 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 {} 75 72 76 73 static int indent_by; … … 123 120 ExpressionNode * set_extension( bool exten ) { extension = exten; return this; } 124 121 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 {} 128 123 void printOneLine( __attribute__((unused)) std::ostream &os, __attribute__((unused)) int indent = 0 ) const {} 129 124 … … 262 257 DeclarationNode * addBitfield( ExpressionNode * size ); 263 258 DeclarationNode * addVarArgs(); 264 DeclarationNode * addFunctionBody( StatementNode * body , StatementNode * with = nullptr);259 DeclarationNode * addFunctionBody( StatementNode * body ); 265 260 DeclarationNode * addOldDeclList( DeclarationNode * list ); 266 261 DeclarationNode * setBase( TypeData * newType ); … … 364 359 virtual StatementNode * append_last_case( StatementNode * ); 365 360 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 {} 369 363 private: 370 364 std::unique_ptr<Statement> stmt; … … 414 408 WaitForStmt * build_waitfor_timeout( ExpressionNode * timeout, StatementNode * stmt, ExpressionNode * when ); 415 409 WaitForStmt * build_waitfor_timeout( ExpressionNode * timeout, StatementNode * stmt, ExpressionNode * when, StatementNode * else_stmt, ExpressionNode * else_when ); 416 WithStmt * build_with( ExpressionNode * exprs, StatementNode * stmt );417 410 418 411 //##############################################################################
Note:
See TracChangeset
for help on using the changeset viewer.