Changes in src/Parser/ParseNode.h [0f8e4ac:7305915]
- File:
-
- 1 edited
-
src/Parser/ParseNode.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r0f8e4ac r7305915 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jun 13 16:04:47201613 // Update Count : 24 012 // Last Modified On : Mon Jun 27 23:28:10 2016 13 // Update Count : 242 14 14 // 15 15 … … 28 28 //#include "SynTree/Declaration.h" 29 29 #include "Common/UniqueName.h" 30 #include "SynTree/Label.h"31 30 32 31 class ExpressionNode; … … 285 284 virtual void printOneLine( std::ostream &, int indent = 0) const; 286 285 287 const std::list< Label> &get_labels() const { return labels; };286 const std::list< std::string > &get_labels() const { return labels; }; 288 287 void append_label( std::string *label ) { labels.push_back( *label ); delete label; } 289 288 private: 290 std::list< Label> labels;289 std::list< std::string > labels; 291 290 }; 292 291 … … 426 425 ExpressionNode *get_enumeratorValue() const { return enumeratorValue; } 427 426 427 bool get_extension() const { return extension; } 428 DeclarationNode *set_extension( bool exten ) { extension = exten; return this; } 429 428 430 DeclarationNode(); 429 431 ~DeclarationNode(); … … 441 443 bool hasEllipsis; 442 444 LinkageSpec::Type linkage; 445 bool extension = false; 443 446 444 447 static UniqueName anonymous; … … 477 480 void addDeclaration( DeclarationNode *newDecl ) { decl = newDecl; } 478 481 void setCatchRest( bool newVal ) { isCatchRest = newVal; } 482 483 bool get_extension() const { return extension; } 484 StatementNode *set_extension( bool exten ) { extension = exten; return this; } 479 485 480 486 std::string get_target() const; … … 496 502 DeclarationNode *decl; 497 503 bool isCatchRest; 504 bool extension = false; 498 505 }; // StatementNode 499 506 … … 525 532 ExpressionNode *output, *input; 526 533 ConstantNode *clobber; 527 std::list< Label> gotolabels;534 std::list<std::string> gotolabels; 528 535 }; 529 536
Note:
See TracChangeset
for help on using the changeset viewer.