org.jetbrains.k2js.translate.context
Class StaticContext

java.lang.Object
  extended by org.jetbrains.k2js.translate.context.StaticContext

public final class StaticContext
extends java.lang.Object

Aggregates all the static parts of the context.


Method Summary
 com.google.dart.compiler.backend.js.ast.JsName declarePropertyOrPropertyAccessorName(DeclarationDescriptor descriptor, java.lang.String name, boolean fresh)
           
static StaticContext generateStaticContext(BindingContext bindingContext, EcmaVersion ecmaVersion)
           
 BindingContext getBindingContext()
           
 com.google.dart.compiler.backend.js.ast.JsFunction getFunctionWithScope(CallableDescriptor descriptor)
           
 Intrinsics getIntrinsics()
           
 LiteralFunctionTranslator getLiteralFunctionTranslator()
           
 com.google.dart.compiler.backend.js.ast.JsName getNameForDescriptor(DeclarationDescriptor descriptor)
           
 Namer getNamer()
           
 com.google.dart.compiler.backend.js.ast.JsProgram getProgram()
           
 com.google.dart.compiler.backend.js.ast.JsNameRef getQualifiedReference(DeclarationDescriptor descriptor)
           
 com.google.dart.compiler.backend.js.ast.JsNameRef getQualifierForDescriptor(DeclarationDescriptor descriptor)
           
 com.google.dart.compiler.backend.js.ast.JsScope getRootScope()
           
 com.google.dart.compiler.backend.js.ast.JsScope getScopeForDescriptor(DeclarationDescriptor descriptor)
           
 void initTranslators(TranslationContext programContext)
           
 boolean isEcma5()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateStaticContext

public static StaticContext generateStaticContext(@NotNull
                                                  BindingContext bindingContext,
                                                  @NotNull
                                                  EcmaVersion ecmaVersion)

initTranslators

public void initTranslators(TranslationContext programContext)

getLiteralFunctionTranslator

@NotNull
public LiteralFunctionTranslator getLiteralFunctionTranslator()

isEcma5

public boolean isEcma5()

getProgram

@NotNull
public com.google.dart.compiler.backend.js.ast.JsProgram getProgram()

getBindingContext

@NotNull
public BindingContext getBindingContext()

getIntrinsics

@NotNull
public Intrinsics getIntrinsics()

getNamer

@NotNull
public Namer getNamer()

getRootScope

@NotNull
public com.google.dart.compiler.backend.js.ast.JsScope getRootScope()

getScopeForDescriptor

@NotNull
public com.google.dart.compiler.backend.js.ast.JsScope getScopeForDescriptor(@NotNull
                                                                                     DeclarationDescriptor descriptor)

getFunctionWithScope

@NotNull
public com.google.dart.compiler.backend.js.ast.JsFunction getFunctionWithScope(@NotNull
                                                                                       CallableDescriptor descriptor)

getQualifiedReference

@NotNull
public com.google.dart.compiler.backend.js.ast.JsNameRef getQualifiedReference(@NotNull
                                                                                       DeclarationDescriptor descriptor)

getNameForDescriptor

@NotNull
public com.google.dart.compiler.backend.js.ast.JsName getNameForDescriptor(@NotNull
                                                                                   DeclarationDescriptor descriptor)

declarePropertyOrPropertyAccessorName

@NotNull
public com.google.dart.compiler.backend.js.ast.JsName declarePropertyOrPropertyAccessorName(@NotNull
                                                                                                    DeclarationDescriptor descriptor,
                                                                                                    @NotNull
                                                                                                    java.lang.String name,
                                                                                                    boolean fresh)

getQualifierForDescriptor

@Nullable
public com.google.dart.compiler.backend.js.ast.JsNameRef getQualifierForDescriptor(@NotNull
                                                                                            DeclarationDescriptor descriptor)