Changeset 489bacf for src/AST/Print.cpp


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

Changed Attribute field to params

Done for consistency with other field names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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        }
Note: See TracChangeset for help on using the changeset viewer.