Ignore:
Timestamp:
Dec 11, 2019, 8:52:38 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
737c98a
Parents:
98d6965d
Message:

move enum Aggregate from DeclarationNode? to AggregateDecl?, add control-keyword field-dereference to replace control-keyword cast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Expression.h

    r98d6965d r312029a  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Thr Aug 15 13:46:00 2019
    13 // Update Count     : 54
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Dec 11 16:50:19 2019
     13// Update Count     : 60
    1414//
    1515
     
    2828#include "Label.h"                // for Label
    2929#include "Mutator.h"              // for Mutator
     30#include "Declaration.h"          // for Aggregate
    3031#include "SynTree.h"              // for UniqueId
    3132#include "Visitor.h"              // for Visitor
     
    229230public:
    230231        Expression * arg;
    231         enum Target {
    232                 Coroutine, Thread, Monitor, NUMBER_OF_TARGETS
    233         };
    234232        struct Concrete {
    235233                std::string field;
    236234                std::string getter;
    237235        };
    238         Target target;
     236        AggregateDecl::Aggregate target;
    239237        Concrete concrete_target;
    240238
    241         KeywordCastExpr( Expression * arg, Target target );
     239        KeywordCastExpr( Expression * arg, AggregateDecl::Aggregate target );
    242240        KeywordCastExpr( const KeywordCastExpr & other );
    243241        virtual ~KeywordCastExpr();
    244242
    245         const std::string & targetString() const;
     243        const char * targetString() const;
    246244
    247245        virtual KeywordCastExpr * clone() const override { return new KeywordCastExpr( * this ); }
Note: See TracChangeset for help on using the changeset viewer.