private Node transformName(JsName name) {
   Node n = IR.name(getName(name));
   return applySourceInfo(n, name.getStaticRef());
 }
Example #2
0
 /**
  * Verifies the JavaScript function corresponding to <code>test.EntryPoint.onModuleLoad</code>.
  */
 private static void checkOnModuleLoad(JsProgram program, String expectedJavascript) {
   JsName onModuleLoad = program.getScope().findExistingName("test_EntryPoint_onModuleLoad__V");
   assertNotNull(onModuleLoad);
   assert onModuleLoad.getStaticRef() instanceof JsFunction;
   assertEquals(expectedJavascript, serializeJs(onModuleLoad.getStaticRef()));
 }
 private Node transformLabel(JsName label) {
   Node n = IR.labelName(getName(label));
   return applySourceInfo(n, label.getStaticRef());
 }