Changeset bf050c5


Ignore:
Timestamp:
Mar 25, 2024, 11:54:18 AM (3 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
486caad
Parents:
051aec4
Message:

Removed unused field from TypeData?.

Location:
src/Parser
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    r051aec4 rbf050c5  
    185185        newnode->type->aggregate.fields = fields;
    186186        newnode->type->aggregate.body = body;
    187         newnode->type->aggregate.parent = nullptr;
    188187        return newnode;
    189188} // DeclarationNode::newAggregate
  • src/Parser/TypeData.cc

    r051aec4 rbf050c5  
    8888                aggregate.fields = nullptr;
    8989                aggregate.body = false;
    90                 aggregate.parent = nullptr;
    9190                aggregate.anon = false;
    9291                break;
     
    220219                newtype->aggregate.kind = aggregate.kind;
    221220                newtype->aggregate.name = aggregate.name ? new string( *aggregate.name ) : nullptr;
    222                 newtype->aggregate.parent = aggregate.parent ? new string( *aggregate.parent ) : nullptr;
    223221                newtype->aggregate.params = maybeCopy( aggregate.params );
    224222                newtype->aggregate.actuals = maybeCopy( aggregate.actuals );
  • src/Parser/TypeData.h

    r051aec4 rbf050c5  
    4848                ast::AggregateDecl::Aggregate kind;
    4949                const std::string * name = nullptr;
    50                 const std::string * parent = nullptr;
    5150                DeclarationNode * params = nullptr;
    5251                ExpressionNode * actuals = nullptr;                             // holds actual parameters later applied to AggInst
Note: See TracChangeset for help on using the changeset viewer.