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 {
103103 * and the input node types.
104104 *
105105 * @param {NodeBuilder } builder - The current node builder.
106+ * @param {?string } [output=null] - The output type.
106107 * @return {string } The node type.
107108 */
108- getNodeType ( builder ) {
109+ getNodeType ( builder , output = null ) {
109110
110111 const op = this . op ;
111112
@@ -117,7 +118,7 @@ class OperatorNode extends TempNode {
117118
118119 if ( typeA === 'void' || typeB === 'void' ) {
119120
120- return 'void' ;
121+ return output || 'void' ;
121122
122123 } else if ( op === '%' ) {
123124
@@ -193,7 +194,7 @@ class OperatorNode extends TempNode {
193194
194195 const { aNode, bNode } = this ;
195196
196- const type = this . getNodeType ( builder ) ;
197+ const type = this . getNodeType ( builder , output ) ;
197198
198199 let typeA = null ;
199200 let typeB = null ;
You can’t perform that action at this time.
0 commit comments