Ignore:
Timestamp:
Sep 7, 2017, 10:35:32 AM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
b3f252a
Parents:
234223f
Message:

Inlined some getters/setters in SynTree? and made some fields public, the goal being to remove getters at some point

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r234223f r871cdb4  
    155155        virtual ~FunctionDecl();
    156156
    157         Type * get_type() const;
    158         virtual void set_type(Type *);
     157        Type * get_type() const { return type; }
     158        virtual void set_type(Type * t) { type = safe_dynamic_cast< FunctionType* >( t ); }
    159159
    160160        FunctionType * get_functionType() const { return type; }
Note: See TracChangeset for help on using the changeset viewer.