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
static StaticContext generateStaticContext(BindingContext bindingContext, EcmaVersion ecmaVersion)
           
 BindingContext getBindingContext()
           
 EcmaVersion getEcmaVersion()
           
 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 getQualifierForDescriptor(DeclarationDescriptor descriptor)
           
 com.google.dart.compiler.backend.js.ast.JsScope getRootScope()
           
 com.google.dart.compiler.backend.js.ast.JsScope getScopeForDescriptor(DeclarationDescriptor descriptor)
           
 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)

getLiteralFunctionTranslator

@NotNull
public LiteralFunctionTranslator getLiteralFunctionTranslator()

isEcma5

public boolean isEcma5()

getEcmaVersion

@NotNull
public EcmaVersion getEcmaVersion()

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)

getNameForDescriptor

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

getQualifierForDescriptor

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