Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r3a5131ed re994912  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Feb 16 14:53:35 2017
    13 // Update Count     : 57
     12// Last Modified On : Thu Feb  9 14:27:08 2017
     13// Update Count     : 56
    1414//
    1515
     
    1717#define DECLARATION_H
    1818
    19 #include <string>
    20 
    21 #include "BaseSyntaxNode.h"
     19#include "SynTree.h"
     20#include "Visitor.h"
    2221#include "Mutator.h"
    23 #include "Visitor.h"
    24 #include "SynTree.h"
    2522#include "Parser/LinkageSpec.h"
    2623#include "Parser/ParseNode.h"
    27 
    28 class Declaration : public BaseSyntaxNode {
     24#include <string>
     25
     26class Declaration {
    2927  public:
    3028        Declaration( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage );
     
    140138        CompoundStmt *get_statements() const { return statements; }
    141139        void set_statements( CompoundStmt *newValue ) { statements = newValue; }
     140        std::list< std::string >& get_oldIdents() { return oldIdents; }
     141        std::list< Declaration* >& get_oldDecls() { return oldDecls; }
    142142
    143143        virtual FunctionDecl *clone() const { return new FunctionDecl( *this ); }
     
    149149        FunctionType *type;
    150150        CompoundStmt *statements;
     151        std::list< std::string > oldIdents;
     152        std::list< Declaration* > oldDecls;
    151153};
    152154
Note: See TracChangeset for help on using the changeset viewer.