Merge pull request #2653 from syntheticmagus/selectionBlockSetters

Add setters for true and false blocks of selection nodes, copying the pattern already used for the condition.
This commit is contained in:
Greg Fischer 2021-06-04 12:08:29 -06:00 committed by GitHub
commit 1fa21491bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1677,7 +1677,9 @@ public:
virtual TIntermTyped* getCondition() const { return condition; }
virtual void setCondition(TIntermTyped* c) { condition = c; }
virtual TIntermNode* getTrueBlock() const { return trueBlock; }
virtual void setTrueBlock(TIntermTyped* tb) { trueBlock = tb; }
virtual TIntermNode* getFalseBlock() const { return falseBlock; }
virtual void setFalseBlock(TIntermTyped* fb) { falseBlock = fb; }
virtual TIntermSelection* getAsSelectionNode() { return this; }
virtual const TIntermSelection* getAsSelectionNode() const { return this; }