Ignore:
Timestamp:
Feb 6, 2025, 3:42:32 PM (11 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
eca364f7
Parents:
a8e2215
Message:

first attempt at generalizing attributes to statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/StatementNode.cpp

    ra8e2215 rcd28605  
    1010// Author           : Rodolfo G. Esteves
    1111// Created On       : Sat May 16 14:59:41 2015
    12 // Last Modified By : Kyoung Seo
    13 // Last Modified On : Thd Jan 16 13:05:00 2025
    14 // Update Count     : 433
     12// Last Modified By : Peter A. Buhr
     13// Last Modified On : Thu Feb  6 11:38:39 2025
     14// Update Count     : 434
    1515//
    1616
     
    7070        stmt.reset( new ast::DeclStmt( declLocation, maybeMoveBuild( agg ) ) );
    7171} // StatementNode::StatementNode
     72
     73StatementNode * StatementNode::addQualifiers( DeclarationNode * attr ) {
     74        if ( ! attr ) { return this; }                                          // empty attribute list
     75        attributes.insert( attributes.end(), attr->attributes.begin(), attr->attributes.end() );
     76        return this;
     77}
    7278
    7379StatementNode * StatementNode::add_label(
Note: See TracChangeset for help on using the changeset viewer.