Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    r7305915 r0f8e4ac  
    1010// Created On       : Sat May 16 13:28:16 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jun 27 23:28:10 2016
    13 // Update Count     : 242
     12// Last Modified On : Mon Jun 13 16:04:47 2016
     13// Update Count     : 240
    1414//
    1515
     
    2828//#include "SynTree/Declaration.h"
    2929#include "Common/UniqueName.h"
     30#include "SynTree/Label.h"
    3031
    3132class ExpressionNode;
     
    284285        virtual void printOneLine( std::ostream &, int indent = 0) const;
    285286
    286         const std::list< std::string > &get_labels() const { return labels; };
     287        const std::list< Label > &get_labels() const { return labels; };
    287288        void append_label( std::string *label ) { labels.push_back( *label ); delete label; }
    288289  private:
    289         std::list< std::string > labels;
     290        std::list< Label > labels;
    290291};
    291292
     
    425426        ExpressionNode *get_enumeratorValue() const { return enumeratorValue; }
    426427
    427         bool get_extension() const { return extension; }
    428         DeclarationNode *set_extension( bool exten ) { extension = exten; return this; }
    429 
    430428        DeclarationNode();
    431429        ~DeclarationNode();
     
    443441        bool hasEllipsis;
    444442        LinkageSpec::Type linkage;
    445         bool extension = false;
    446443
    447444        static UniqueName anonymous;
     
    480477        void addDeclaration( DeclarationNode *newDecl ) { decl = newDecl; }
    481478        void setCatchRest( bool newVal ) { isCatchRest = newVal; }
    482 
    483         bool get_extension() const { return extension; }
    484         StatementNode *set_extension( bool exten ) { extension = exten; return this; }
    485479
    486480        std::string get_target() const;
     
    502496        DeclarationNode *decl;
    503497        bool isCatchRest;
    504         bool extension = false;
    505498}; // StatementNode
    506499
     
    532525        ExpressionNode *output, *input;
    533526        ConstantNode *clobber;
    534         std::list<std::string> gotolabels;
     527        std::list< Label > gotolabels;
    535528};
    536529
Note: See TracChangeset for help on using the changeset viewer.