Changeset b336af9


Ignore:
Timestamp:
May 16, 2019, 4:12:44 PM (5 years ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
c671112
Parents:
204358b
Message:

flowing simple changes to dependents: AttrExpr? is gone, spelling params for parameters

Location:
src/AST
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    r204358b rb336af9  
    135135                decl->parent = parent;
    136136                decl->body   = old->body;
    137                 decl->parameters = params;
     137                decl->params = params;
    138138                decl->members    = members;
    139139                decl->extension  = old->extension;
     
    158158                decl->parent = parent;
    159159                decl->body   = old->body;
    160                 decl->parameters = params;
     160                decl->params = params;
    161161                decl->members    = members;
    162162                decl->extension  = old->extension;
     
    181181                decl->parent = parent;
    182182                decl->body   = old->body;
    183                 decl->parameters = params;
     183                decl->params = params;
    184184                decl->members    = members;
    185185                decl->extension  = old->extension;
     
    204204                decl->parent = parent;
    205205                decl->body   = old->body;
    206                 decl->parameters = params;
     206                decl->params = params;
    207207                decl->members    = members;
    208208                decl->extension  = old->extension;
     
    230230
    231231                decl->assertions = asserts;
    232                 decl->parameters = params;
     232                decl->params = params;
    233233                decl->extension  = old->extension;
    234234                decl->uniqueId   = old->uniqueId;
     
    591591        virtual void visit( Attribute * ) override final {
    592592
     593        }
     594
     595        virtual void visit( AttrExpr * ) override final {
     596
     597                assert( 0 );
    593598        }
    594599};
  • src/AST/Pass.hpp

    r204358b rb336af9  
    133133        const ast::Expr *             visit( const ast::OffsetofExpr         * ) override final;
    134134        const ast::Expr *             visit( const ast::OffsetPackExpr       * ) override final;
    135         const ast::Expr *             visit( const ast::AttrExpr             * ) override final;
    136135        const ast::Expr *             visit( const ast::LogicalExpr          * ) override final;
    137136        const ast::Expr *             visit( const ast::ConditionalExpr      * ) override final;
  • src/AST/Pass.impl.hpp

    r204358b rb336af9  
    462462        VISIT({
    463463                guard_indexer guard { * this };
    464                 maybe_accept( node, &StructDecl::parameters );
     464                maybe_accept( node, &StructDecl::params );
    465465                maybe_accept( node, &StructDecl::members    );
    466466        })
     
    483483        VISIT({
    484484                guard_indexer guard { * this };
    485                 maybe_accept( node, &UnionDecl::parameters );
     485                maybe_accept( node, &UnionDecl::params );
    486486                maybe_accept( node, &UnionDecl::members    );
    487487        })
     
    502502        VISIT(
    503503                // unlike structs, traits, and unions, enums inject their members into the global scope
    504                 maybe_accept( node, &EnumDecl::parameters );
     504                maybe_accept( node, &EnumDecl::params );
    505505                maybe_accept( node, &EnumDecl::members    );
    506506        )
     
    517517        VISIT({
    518518                guard_indexer guard { *this };
    519                 maybe_accept( node, &TraitDecl::parameters );
     519                maybe_accept( node, &TraitDecl::params );
    520520                maybe_accept( node, &TraitDecl::members    );
    521521        })
     
    534534        VISIT({
    535535                guard_indexer guard { *this };
    536                 maybe_accept( node, &TypeDecl::parameters );
     536                maybe_accept( node, &TypeDecl::params );
    537537                maybe_accept( node, &TypeDecl::base       );
    538538        })
     
    563563        VISIT({
    564564                guard_indexer guard { *this };
    565                 maybe_accept( node, &TypedefDecl::parameters );
     565                maybe_accept( node, &TypedefDecl::params );
    566566                maybe_accept( node, &TypedefDecl::base       );
    567567        })
  • src/AST/Pass.proto.hpp

    r204358b rb336af9  
    247247                static inline auto addStructFwd( pass_t & pass, int, const ast::StructDecl * decl ) -> decltype( pass.indexer.addStruct( decl ), void() ) {
    248248                        ast::StructDecl * fwd = new ast::StructDecl( decl->location, decl->name );
    249                         fwd->parameters = decl->parameters;
     249                        fwd->params = decl->params;
    250250                        pass.indexer.addStruct( fwd );
    251251                }
     
    257257                static inline auto addUnionFwd( pass_t & pass, int, const ast::UnionDecl * decl ) -> decltype( pass.indexer.addUnion( decl ), void() ) {
    258258                        UnionDecl * fwd = new UnionDecl( decl->location, decl->name );
    259                         fwd->parameters = decl->parameters;
     259                        fwd->params = decl->params;
    260260                        pass.indexer.addUnion( fwd );
    261261                }
Note: See TracChangeset for help on using the changeset viewer.