added Kotlin as parameter for module wrapping function. this is for better obfuscation

This commit is contained in:
Alex Tkachman
2014-03-31 10:25:02 +03:00
parent 09a8e284e5
commit 82a25c8b07
@@ -232,7 +232,8 @@ public final class JsAstUtils {
@NotNull
public static JsFunction createPackage(@NotNull List<JsStatement> to, @NotNull JsScope scope) {
JsFunction packageBlockFunction = createFunctionWithEmptyBody(scope);
to.add(new JsInvocation(EMPTY_REF, new JsInvocation(packageBlockFunction)).makeStmt());
packageBlockFunction.getParameters().add(new JsParameter(scope.findName("Kotlin")));
to.add(new JsInvocation(EMPTY_REF, new JsInvocation(packageBlockFunction, new JsNameRef("Kotlin"))).makeStmt());
return packageBlockFunction;
}