Permalink
Browse files

During imploding prevent lists from being flattened if the inner list…

… has a constructor defined
  • Loading branch information...
jasperdenkers committed Jun 19, 2018
1 parent 87bc751 commit 1be4750b4d642db48ffc883505a3257efc413180
@@ -116,7 +116,7 @@ protected void implodeChildParseNodes(Parse<ParseForest, ?> parse, List<Tree> ch
IProduction parseNodeProduction = parseNodeProduction(parseNode);
if(production.isList() && parseNodeProduction.isList()) {
if(production.isList() && (parseNodeProduction.isList() && parseNodeProduction.constructor() == null)) {
// Make sure lists are flattened
implodeChildParseNodes(parse, childASTs, parseNodeOnlyDerivation(parseNode), parseNodeProduction,
childLeftToken, childRightToken, nonAstLexicals);

0 comments on commit 1be4750

Please sign in to comment.