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