File tree 1 file changed +6
-1
lines changed
VRL/VRL-Lang/src/main/java/eu/mihosoft/vrl/lang/model/transform
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 17
17
import eu .mihosoft .vrl .lang .model .Invocation ;
18
18
import eu .mihosoft .vrl .lang .model .MethodDeclaration ;
19
19
import eu .mihosoft .vrl .lang .model .Operator ;
20
+ import eu .mihosoft .vrl .lang .model .ReturnStatementInvocation ;
20
21
import eu .mihosoft .vrl .lang .model .Scope ;
21
22
import eu .mihosoft .vrl .lang .model .ScopeInvocation ;
22
23
import eu .mihosoft .vrl .lang .model .Type ;
@@ -164,9 +165,13 @@ private boolean invNeedsTmpVar(Invocation inv) {
164
165
if (inv instanceof DeclarationInvocation ) {
165
166
return false ;
166
167
}
168
+
169
+ if (inv instanceof ReturnStatementInvocation ) {
170
+ return false ;
171
+ }
167
172
168
173
if (!(inv instanceof BinaryOperatorInvocationImpl )) {
169
- return false ;
174
+ return true ;
170
175
}
171
176
172
177
BinaryOperatorInvocationImpl boi = (BinaryOperatorInvocationImpl ) inv ;
You can’t perform that action at this time.
0 commit comments