Changeset 489bacf


Ignore:
Timestamp:
May 22, 2019, 5:47:36 PM (2 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
c957e7f
Parents:
722c4831
Message:

Changed Attribute field to params

Done for consistency with other field names.

Location:
src/AST
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Attribute.hpp

    r722c4831 r489bacf  
    3030public:
    3131        std::string name;
    32         std::vector<ptr<Expr>> parameters;
     32        std::vector<ptr<Expr>> params;
    3333
    3434        Attribute( const std::string & name = "", std::vector<ptr<Expr>> && params = {})
    35         : name( name ), parameters( params ) {}
     35        : name( name ), params( params ) {}
    3636        virtual ~Attribute() = default;
    3737
  • src/AST/Convert.cpp

    r722c4831 r489bacf  
    13281328                auto attr = new Attribute(
    13291329                        node->name,
    1330                         get<Expression>().acceptL(node->parameters)
     1330                        get<Expression>().acceptL(node->params)
    13311331                );
    13321332                this->node = attr;
  • src/AST/Pass.impl.hpp

    r722c4831 r489bacf  
    18791879
    18801880        VISIT(
    1881                 maybe_accept( node, &Attribute::parameters );
     1881                maybe_accept( node, &Attribute::params );
    18821882        )
    18831883
  • src/AST/Print.cpp

    r722c4831 r489bacf  
    491491
    492492        virtual const ast::Attribute *        visit( const ast::Attribute            * node ) {
     493                if ( node->empty() ) return node;
     494                os << "Attribute with name: " << node->name;
     495                if ( node->params.empty() ) return node;
     496                os << " with parameters: " << std::endl;
     497                ++indent;
     498                printAll( node->params );
     499                --indent;
    493500                return node;
    494501        }
  • src/AST/porting.md

    r722c4831 r489bacf  
    110110
    111111## Specific Nodes ##
     112`Attribute`
     113* `parameters` => `params`
     114
    112115`Decl`
    113116* `storageClasses` => `storage`
Note: See TracChangeset for help on using the changeset viewer.