Ejemplo n.º 1
0
  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();
  }
Ejemplo n.º 2
0
 @Override
 public void runTest() throws Exception {
   runFunctionOutputTest(filename, Namer.getRootPackageName(), TEST_FUNCTION, "OK");
 }