Ejemplo n.º 1
0
 private void declareTopLevelObjectInScope(
     @NotNull JsScope scope,
     @NotNull Map<String, JsName> map,
     @NotNull String fullQualifiedName,
     @NotNull String name) {
   JsName declaredName = scope.declareName(name);
   declaredName.setObfuscatable(false);
   map.put(fullQualifiedName, declaredName);
   scopeMap.put(fullQualifiedName, new JsScope(scope, "scope for " + name));
 }
Ejemplo n.º 2
0
 private void declareInner(
     @NotNull String fullQualifiedClassName,
     @NotNull String shortMethodName,
     @NotNull String javascriptName) {
   JsScope classScope = scopeMap.get(fullQualifiedClassName);
   assert classScope != null;
   String fullQualifiedMethodName = fullQualifiedClassName + "." + shortMethodName;
   JsName declaredName = classScope.declareName(javascriptName);
   declaredName.setObfuscatable(false);
   standardObjects.put(fullQualifiedMethodName, declaredName);
 }