Changeset e6cee92 for src/SynTree/Type.h


Ignore:
Timestamp:
Jul 17, 2017, 3:25:58 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
795d450
Parents:
7ebaa56
Message:

Fix TupleAssignment? code for references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Type.h

    r7ebaa56 re6cee92  
    163163        Type * stripReferences();
    164164
     165        /// return the number of references occuring consecutively on the outermost layer of this type (i.e. do not count references nested within other types)
     166        virtual int referenceDepth() const;
     167
    165168        virtual bool isComplete() const { return true; }
    166169
     
    304307        void set_base( Type *newValue ) { base = newValue; }
    305308
     309        virtual int referenceDepth() const;
     310
    306311        virtual ReferenceType *clone() const { return new ReferenceType( *this ); }
    307312        virtual void accept( Visitor & v ) { v.visit( this ); }
Note: See TracChangeset for help on using the changeset viewer.