Changeset 6013bd7 for src/SynTree


Ignore:
Timestamp:
Mar 23, 2017, 6:11:52 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
f20dffa
Parents:
0583064b
Message:

first attempt at named designators

Location:
src/SynTree
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Initializer.h

    r0583064b r6013bd7  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Tue Apr 12 13:49:13 2016
    13 // Update Count     : 19
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Thu Mar 23 16:12:42 2017
     13// Update Count     : 20
    1414//
    1515
     
    7070        void set_value( Expression *newValue ) { value = newValue; }
    7171
     72        std::list<Expression *> &get_designators() { return designators; }
    7273        void set_designators( std::list<Expression *> &newValue ) { designators = newValue; }
    73         std::list<Expression *> &get_designators() { return designators; }
    7474
    7575        virtual SingleInit *clone() const { return new SingleInit( *this); }
  • src/SynTree/Type.h

    r0583064b r6013bd7  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Mar 17 09:04:03 2017
    13 // Update Count     : 147
     12// Last Modified On : Thu Mar 23 16:16:36 2017
     13// Update Count     : 149
    1414//
    1515
     
    331331        virtual Type *acceptMutator( Mutator & m ) = 0;
    332332        virtual void print( std::ostream & os, int indent = 0 ) const;
     333
     334        virtual void lookup( const std::string & name, std::list< Declaration* > & foundDecls ) const {}
    333335  protected:
    334336        virtual std::string typeString() const = 0;
Note: See TracChangeset for help on using the changeset viewer.