Ignore:
Timestamp:
Dec 11, 2019, 8:52:38 PM (4 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/Concurrency/Keywords.cc

    r98d6965d r312029a  
    1111// Last Modified By :
    1212// Last Modified On :
    13 // Update Count     : 5
     13// Update Count     : 9
    1414//
    1515
     
    5353          public:
    5454
    55                 ConcurrentSueKeyword( std::string&& type_name, std::string&& field_name, std::string&& getter_name, std::string&& context_error, bool needs_main, KeywordCastExpr::Target cast_target ) :
     55                ConcurrentSueKeyword( std::string&& type_name, std::string&& field_name, std::string&& getter_name, std::string&& context_error, bool needs_main, AggregateDecl::Aggregate cast_target ) :
    5656                  type_name( type_name ), field_name( field_name ), getter_name( getter_name ), context_error( context_error ), needs_main( needs_main ), cast_target( cast_target ) {}
    5757
     
    7676                const std::string context_error;
    7777                bool needs_main;
    78                 KeywordCastExpr::Target cast_target;
     78                AggregateDecl::Aggregate cast_target;
    7979
    8080                StructDecl   * type_decl = nullptr;
     
    101101                        "thread keyword requires threads to be in scope, add #include <thread.hfa>\n",
    102102                        true,
    103                         KeywordCastExpr::Thread
     103                        AggregateDecl::Thread
    104104                )
    105105                {}
     
    133133                        "coroutine keyword requires coroutines to be in scope, add #include <coroutine.hfa>\n",
    134134                        true,
    135                         KeywordCastExpr::Coroutine
     135                        AggregateDecl::Coroutine
    136136                )
    137137                {}
     
    165165                        "monitor keyword requires monitors to be in scope, add #include <monitor.hfa>\n",
    166166                        false,
    167                         KeywordCastExpr::Monitor
     167                        AggregateDecl::Monitor
    168168                )
    169169                {}
Note: See TracChangeset for help on using the changeset viewer.