public ClassDeclarationTranslator(@NotNull TranslationContext context) { super(context); dummyFunction = new JsFunction(context.scope()); JsName declarationsObject = context().scope().declareName(Namer.nameForClassesVariable()); classesVar = new JsVars.JsVar(declarationsObject); declarationsObjectRef = declarationsObject.makeRef(); }
@Override public void runTest() throws Exception { runFunctionOutputTest(filename, Namer.getRootPackageName(), TEST_FUNCTION, "OK"); }