Fixed: #1100, #1123, #1516 AS1/2/3 direct editation - comma operator

This commit is contained in:
Jindra Petřík
2021-02-26 22:46:28 +01:00
parent f043664dda
commit 751c8ce970
7 changed files with 56 additions and 61 deletions
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.decompiler.graph.model;
import com.jpexs.decompiler.flash.SourceGeneratorLocalData;
@@ -58,9 +59,15 @@ public class CommaExpressionItem extends GraphTargetItem {
@Override
public List<GraphSourceItem> toSource(SourceGeneratorLocalData localData, SourceGenerator generator) throws CompilationException {
return generator.generate(localData, this);
return generator.generate(localData, this, true);
}
@Override
public List<GraphSourceItem> toSourceIgnoreReturnValue(SourceGeneratorLocalData localData, SourceGenerator generator) throws CompilationException {
return generator.generate(localData, this, false);
}
@Override
public boolean hasReturnValue() {
return false;