AS3 direct editation - XML save as whole string

This commit is contained in:
Jindra Petřík
2023-02-27 22:09:04 +01:00
parent 9967bc0937
commit 24f555af57

View File

@@ -1230,6 +1230,14 @@ public class ActionScript3Parser {
private GraphTargetItem add(Object a, Object b) {
GraphTargetItem ta = add(a);
GraphTargetItem tb = add(b);
if ((ta instanceof StringAVM2Item) && (tb instanceof StringAVM2Item)) {
String sa = ((StringAVM2Item)ta).getValue();
String sb = ((StringAVM2Item)tb).getValue();
return new StringAVM2Item(ta.getSrc(), ta.getLineStartItem(), sa + sb);
}
if (ta == null && tb == null) {
return null;
}