Changeset c5d7701 for src/Common


Ignore:
Timestamp:
Jun 14, 2018, 5:34:39 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
704d11e
Parents:
29f9e20
Message:

Add QualifiedType? node

Location:
src/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/Common/PassVisitor.h

    r29f9e20 rc5d7701  
    133133        virtual void visit( ArrayType * arrayType ) override final;
    134134        virtual void visit( ReferenceType * referenceType ) override final;
     135        virtual void visit( QualifiedType * qualType ) override final;
    135136        virtual void visit( FunctionType * functionType ) override final;
    136137        virtual void visit( StructInstType * aggregateUseType ) override final;
     
    233234        virtual Type * mutate( ArrayType * arrayType ) override final;
    234235        virtual Type * mutate( ReferenceType * referenceType ) override final;
     236        virtual Type * mutate( QualifiedType * qualType ) override final;
    235237        virtual Type * mutate( FunctionType * functionType ) override final;
    236238        virtual Type * mutate( StructInstType * aggregateUseType ) override final;
  • TabularUnified src/Common/PassVisitor.impl.h

    r29f9e20 rc5d7701  
    22622262
    22632263//--------------------------------------------------------------------------
     2264// QualifiedType
     2265template< typename pass_type >
     2266void PassVisitor< pass_type >::visit( QualifiedType * node ) {
     2267        VISIT_START( node );
     2268
     2269        maybeAccept_impl( node->forall, *this );
     2270        maybeAccept_impl( node->types, *this );
     2271
     2272        VISIT_END( node );
     2273}
     2274
     2275template< typename pass_type >
     2276Type * PassVisitor< pass_type >::mutate( QualifiedType * node ) {
     2277        MUTATE_START( node );
     2278
     2279        maybeMutate_impl( node->forall, *this );
     2280        maybeMutate_impl( node->types, *this );
     2281
     2282        MUTATE_END( Type, node );
     2283}
     2284
     2285//--------------------------------------------------------------------------
    22642286// FunctionType
    22652287template< typename pass_type >
Note: See TracChangeset for help on using the changeset viewer.