public class TranslationContext extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addStatementToCurrentBlock(com.google.dart.compiler.backend.js.ast.JsStatement statement) |
AliasingContext |
aliasingContext() |
void |
associateExpressionToLazyValue(com.google.dart.compiler.backend.js.ast.JsExpression expression,
TemporaryConstVariable temporaryConstVariable) |
BindingContext |
bindingContext() |
TranslationContext |
contextWithScope(com.google.dart.compiler.backend.js.ast.JsFunction fun) |
TranslationContext |
contextWithScope(com.google.dart.compiler.backend.js.ast.JsFunction fun,
AliasingContext aliasingContext) |
protected TranslationContext |
contextWithScope(com.google.dart.compiler.backend.js.ast.JsScope newScope,
com.google.dart.compiler.backend.js.ast.JsBlock block,
AliasingContext aliasingContext) |
TemporaryVariable |
declareTemporary(com.google.dart.compiler.backend.js.ast.JsExpression initExpression) |
DynamicContext |
dynamicContext() |
com.google.dart.compiler.backend.js.ast.JsBlock |
getBlockForDescriptor(DeclarationDescriptor descriptor) |
com.google.dart.compiler.backend.js.ast.JsFunction |
getFunctionObject(CallableDescriptor descriptor) |
com.google.dart.compiler.backend.js.ast.JsName |
getNameForDescriptor(DeclarationDescriptor descriptor) |
com.google.dart.compiler.backend.js.ast.JsName |
getNameForElement(com.intellij.psi.PsiElement element) |
TemporaryConstVariable |
getOrDeclareTemporaryConstVariable(com.google.dart.compiler.backend.js.ast.JsExpression expression) |
com.google.dart.compiler.backend.js.ast.JsNameRef |
getQualifierForDescriptor(DeclarationDescriptor descriptor) |
com.google.dart.compiler.backend.js.ast.JsScope |
getScopeForDescriptor(DeclarationDescriptor descriptor) |
com.google.dart.compiler.backend.js.ast.JsExpression |
getThisObject(DeclarationDescriptor descriptor) |
TranslationContext |
innerBlock(com.google.dart.compiler.backend.js.ast.JsBlock block) |
TranslationContext |
innerContextWithAliasesForExpressions(java.util.Map<JetExpression,com.google.dart.compiler.backend.js.ast.JsName> aliases) |
TranslationContext |
innerContextWithDescriptorsAliased(java.util.Map<DeclarationDescriptor,com.google.dart.compiler.backend.js.ast.JsName> aliases) |
TranslationContext |
innerContextWithThisAliased(DeclarationDescriptor correspondingDescriptor,
com.google.dart.compiler.backend.js.ast.JsName alias) |
Intrinsics |
intrinsics() |
boolean |
isEcma5() |
LiteralFunctionTranslator |
literalFunctionTranslator() |
Namer |
namer() |
com.google.dart.compiler.backend.js.ast.JsStringLiteral |
nameToLiteral(Named named) |
TranslationContext |
newDeclaration(DeclarationDescriptor descriptor) |
TranslationContext |
newDeclaration(com.intellij.psi.PsiElement element) |
com.google.dart.compiler.backend.js.ast.JsProgram |
program() |
static TranslationContext |
rootContext(StaticContext staticContext) |
com.google.dart.compiler.backend.js.ast.JsScope |
scope() |
AliasingContext.ThisAliasProvider |
thisAliasProvider() |
@NotNull public static TranslationContext rootContext(@NotNull StaticContext staticContext)
public boolean isEcma5()
public DynamicContext dynamicContext()
@NotNull public TranslationContext contextWithScope(@NotNull com.google.dart.compiler.backend.js.ast.JsFunction fun)
@NotNull protected TranslationContext contextWithScope(@NotNull com.google.dart.compiler.backend.js.ast.JsScope newScope, @NotNull com.google.dart.compiler.backend.js.ast.JsBlock block, @NotNull AliasingContext aliasingContext)
@NotNull public TranslationContext contextWithScope(@NotNull com.google.dart.compiler.backend.js.ast.JsFunction fun, @NotNull AliasingContext aliasingContext)
@NotNull public TranslationContext innerBlock(@NotNull com.google.dart.compiler.backend.js.ast.JsBlock block)
@NotNull public TranslationContext newDeclaration(@NotNull DeclarationDescriptor descriptor)
@NotNull public TranslationContext innerContextWithThisAliased(@NotNull DeclarationDescriptor correspondingDescriptor, @NotNull com.google.dart.compiler.backend.js.ast.JsName alias)
@NotNull public TranslationContext innerContextWithAliasesForExpressions(@NotNull java.util.Map<JetExpression,com.google.dart.compiler.backend.js.ast.JsName> aliases)
@NotNull public TranslationContext innerContextWithDescriptorsAliased(@NotNull java.util.Map<DeclarationDescriptor,com.google.dart.compiler.backend.js.ast.JsName> aliases)
@NotNull public com.google.dart.compiler.backend.js.ast.JsBlock getBlockForDescriptor(@NotNull DeclarationDescriptor descriptor)
@NotNull public TranslationContext newDeclaration(@NotNull com.intellij.psi.PsiElement element)
@NotNull public BindingContext bindingContext()
@NotNull public com.google.dart.compiler.backend.js.ast.JsScope getScopeForDescriptor(@NotNull DeclarationDescriptor descriptor)
@NotNull public com.google.dart.compiler.backend.js.ast.JsName getNameForElement(@NotNull com.intellij.psi.PsiElement element)
@NotNull public com.google.dart.compiler.backend.js.ast.JsName getNameForDescriptor(@NotNull DeclarationDescriptor descriptor)
@NotNull public com.google.dart.compiler.backend.js.ast.JsStringLiteral nameToLiteral(@NotNull Named named)
@Nullable public com.google.dart.compiler.backend.js.ast.JsNameRef getQualifierForDescriptor(@NotNull DeclarationDescriptor descriptor)
@NotNull public TemporaryVariable declareTemporary(@Nullable com.google.dart.compiler.backend.js.ast.JsExpression initExpression)
@NotNull public TemporaryConstVariable getOrDeclareTemporaryConstVariable(@NotNull com.google.dart.compiler.backend.js.ast.JsExpression expression)
public void associateExpressionToLazyValue(com.google.dart.compiler.backend.js.ast.JsExpression expression, TemporaryConstVariable temporaryConstVariable)
@NotNull public Intrinsics intrinsics()
@NotNull public com.google.dart.compiler.backend.js.ast.JsProgram program()
@NotNull public com.google.dart.compiler.backend.js.ast.JsScope scope()
@NotNull public AliasingContext aliasingContext()
@NotNull public LiteralFunctionTranslator literalFunctionTranslator()
@NotNull public com.google.dart.compiler.backend.js.ast.JsFunction getFunctionObject(@NotNull CallableDescriptor descriptor)
public void addStatementToCurrentBlock(@NotNull com.google.dart.compiler.backend.js.ast.JsStatement statement)
@NotNull public AliasingContext.ThisAliasProvider thisAliasProvider()
@NotNull public com.google.dart.compiler.backend.js.ast.JsExpression getThisObject(@NotNull DeclarationDescriptor descriptor)