Skip to content

Commit

Permalink
Fix expr_try order, closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Mar 14, 2017
1 parent 5515575 commit 03922cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hxParser/Converter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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]));
Expand Down

0 comments on commit 03922cf

Please sign in to comment.