Class ClosureGenerationEnvironment

java.lang.Object
com.google.j2cl.transpiler.backend.closure.ClosureGenerationEnvironment

public class ClosureGenerationEnvironment extends Object
Contains aliases for variables and Type Descriptors.
  • Constructor Details

    • ClosureGenerationEnvironment

      public ClosureGenerationEnvironment(Collection<com.google.j2cl.transpiler.backend.closure.Import> imports, Map<com.google.j2cl.transpiler.ast.HasName,String> uniqueNameByVariable)
  • Method Details

    • getUniqueNameForVariable

      public String getUniqueNameForVariable(com.google.j2cl.transpiler.ast.HasName variable)
    • aliasForType

      public String aliasForType(com.google.j2cl.transpiler.ast.DeclaredTypeDescriptor typeDescriptor)
    • aliasForType

      public String aliasForType(com.google.j2cl.transpiler.ast.TypeDeclaration typeDeclaration)
    • getClosureTypeString

      public String getClosureTypeString(com.google.j2cl.transpiler.ast.TypeDescriptor typeDescriptor)
    • getJsDocForParameter

      public String getJsDocForParameter(com.google.j2cl.transpiler.ast.MethodLike methodLike, int index)