Ignore:
Timestamp:
Mar 10, 2023, 4:05:50 PM (14 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
85a95cc
Parents:
fed03b3
Message:

Preventing NullStmts? from being added into ForCtrl? ended up being a larger rework as some timing issues caused problems. However, the NullStmts? are mostly gone now along with the extra hosting they caused.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    rfed03b3 r1cdc052  
    394394
    395395struct ForCtrl {
    396         ForCtrl( ExpressionNode * expr, ExpressionNode * condition, ExpressionNode * change ) :
    397                 init( new StatementNode( build_expr( expr ) ) ), condition( condition ), change( change ) {}
    398         ForCtrl( DeclarationNode * decl, ExpressionNode * condition, ExpressionNode * change ) :
    399                 init( new StatementNode( decl ) ), condition( condition ), change( change ) {}
     396        ForCtrl( StatementNode * stmt, ExpressionNode * condition, ExpressionNode * change ) :
     397                init( stmt ), condition( condition ), change( change ) {}
    400398
    401399        StatementNode * init;
Note: See TracChangeset for help on using the changeset viewer.