Changeset d1fbc56e


Ignore:
Timestamp:
Aug 23, 2024, 2:04:50 PM (3 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
26ee4b5
Parents:
45ee172
Message:

Removed two lingering set_extension functions from ast. There was one use each in the parser, which uses get/set functions still.

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.hpp

    r45ee172 rd1fbc56e  
    5050        : ParseNode( loc ), name( name ), storage( storage ), linkage( linkage ) {}
    5151
    52         Decl* set_extension( bool ex ) { extension = ex; return this; }
    53 
    5452        /// Ensures this node has a unique ID
    5553        void fixUniqueId();
  • src/AST/Expr.hpp

    r45ee172 rd1fbc56e  
    187187        : ParseNode( loc ), result( res ), env(), inferred() {}
    188188
    189         Expr * set_extension( bool ex ) { extension = ex; return this; }
    190189        virtual bool get_lvalue() const;
    191190
  • src/Parser/DeclarationNode.cpp

    r45ee172 rd1fbc56e  
    959959                        isDelete ? nullptr : maybeBuild( initializer ),
    960960                        copy( attributes )
    961                 )->set_extension( extension );
     961                );
     962                decl->extension = extension;
    962963                if ( isDelete ) {
    963964                        auto dwt = strict_dynamic_cast<ast::DeclWithType *>( decl );
  • src/Parser/ExpressionNode.hpp

    r45ee172 rd1fbc56e  
    4343        ast::Expr * build() {
    4444                ast::Expr * node = expr.release();
    45                 node->set_extension( this->get_extension() );
     45                node->extension = this->extension;
    4646                node->location = this->location;
    4747                return node;
Note: See TracChangeset for help on using the changeset viewer.