Class UniqueNamesResolver
java.lang.Object
com.google.j2cl.transpiler.backend.common.UniqueNamesResolver
Traverses a type and assigns non colliding variable names for type variables, locals and
parameters, avoiding collisions with names that are forbidden (keywords, JavaScript referenced
externs, module aliases, etc) and other variables accessible in the same member scope.
-
Method Summary
Modifier and TypeMethodDescriptioncomputeUniqueNames(Set<String> initiallyForbiddenNames, com.google.j2cl.transpiler.ast.Type type) Computes variable names that are contextually unique avoiding collisions.