From 03922cfee8e87c6e1e0d98a9336b30b1201e4020 Mon Sep 17 00:00:00 2001 From: Gama11 Date: Tue, 14 Mar 2017 21:03:22 +0100 Subject: [PATCH] Fix expr_try order, closes #5 --- src/hxParser/Converter.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hxParser/Converter.hx b/src/hxParser/Converter.hx index bbd3198..8032cd6 100644 --- a/src/hxParser/Converter.hx +++ b/src/hxParser/Converter.hx @@ -534,6 +534,7 @@ class Converter { case "expr_try": var tryToken = nextToken(); + var expr = convertExpr(node.sub[1]); var catches = node.sub[2].asNode("catches").sub.map(function(node):Catch { var node = node.asNode("catch"); return { @@ -545,7 +546,7 @@ class Converter { expr: convertExpr(node.sub[5]), }; }); - ETry(tryToken, convertExpr(node.sub[1]), catches); + ETry(tryToken, expr, catches); case "expr_var": EVar(nextToken(), convertVarDecl(node.sub[1]));