JS parser: fixed labelled break/continue

This commit is contained in:
Alexey Tsvetkov
2014-11-10 14:57:21 +03:00
parent 939a8cce4e
commit 21d51147bf
2 changed files with 38 additions and 3 deletions
@@ -52,4 +52,12 @@ public final class AstUtil {
return nodesCopy;
}
@NotNull
public static JsFunctionScope toFunctionScope(JsScope scope) {
assert scope instanceof JsFunctionScope: "JsFunctionScope type is expected, but "
+ scope.getClass().getSimpleName() + " is found";
return (JsFunctionScope) scope;
}
}