File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,10 @@ class OperatorNode extends TempNode {
103
103
* and the input node types.
104
104
*
105
105
* @param {NodeBuilder } builder - The current node builder.
106
+ * @param {?string } [output=null] - The output type.
106
107
* @return {string } The node type.
107
108
*/
108
- getNodeType ( builder ) {
109
+ getNodeType ( builder , output = null ) {
109
110
110
111
const op = this . op ;
111
112
@@ -117,7 +118,7 @@ class OperatorNode extends TempNode {
117
118
118
119
if ( typeA === 'void' || typeB === 'void' ) {
119
120
120
- return 'void' ;
121
+ return output || 'void' ;
121
122
122
123
} else if ( op === '%' ) {
123
124
@@ -193,7 +194,7 @@ class OperatorNode extends TempNode {
193
194
194
195
const { aNode, bNode } = this ;
195
196
196
- const type = this . getNodeType ( builder ) ;
197
+ const type = this . getNodeType ( builder , output ) ;
197
198
198
199
let typeA = null ;
199
200
let typeB = null ;
You can’t perform that action at this time.
0 commit comments