public final class TranslationUtils extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.dart.compiler.backend.js.ast.JsExpression |
assignmentToBackingField(TranslationContext context,
PropertyDescriptor descriptor,
com.google.dart.compiler.backend.js.ast.JsExpression assignTo) |
static com.google.dart.compiler.backend.js.ast.JsNameRef |
backingFieldReference(TranslationContext context,
PropertyDescriptor descriptor) |
static com.intellij.openapi.util.Pair<com.google.dart.compiler.backend.js.ast.JsVars.JsVar,com.google.dart.compiler.backend.js.ast.JsExpression> |
createTemporaryIfNeed(com.google.dart.compiler.backend.js.ast.JsExpression expression,
TranslationContext context) |
static com.google.dart.compiler.backend.js.ast.JsNameRef |
getQualifiedReference(TranslationContext context,
DeclarationDescriptor descriptor) |
static boolean |
hasCorrespondingFunctionIntrinsic(TranslationContext context,
JetOperationExpression expression) |
static boolean |
isCacheNeeded(com.google.dart.compiler.backend.js.ast.JsExpression expression) |
static com.google.dart.compiler.backend.js.ast.JsBinaryOperation |
isNotNullCheck(com.google.dart.compiler.backend.js.ast.JsExpression expressionToCheck) |
static com.google.dart.compiler.backend.js.ast.JsBinaryOperation |
isNullCheck(com.google.dart.compiler.backend.js.ast.JsExpression expressionToCheck) |
static com.google.dart.compiler.backend.js.ast.JsBinaryOperation |
nullCheck(com.google.dart.compiler.backend.js.ast.JsExpression expressionToCheck,
boolean isNegated) |
static java.util.List<com.google.dart.compiler.backend.js.ast.JsExpression> |
translateArgumentList(TranslationContext context,
java.util.List<? extends ValueArgument> jetArguments) |
static com.google.dart.compiler.backend.js.ast.JsExpression |
translateBaseExpression(TranslationContext context,
JetUnaryExpression expression) |
static java.util.List<com.google.dart.compiler.backend.js.ast.JsExpression> |
translateExpressionList(TranslationContext context,
java.util.List<JetExpression> expressions) |
static com.google.dart.compiler.backend.js.ast.JsPropertyInitializer |
translateFunctionAsEcma5PropertyDescriptor(com.google.dart.compiler.backend.js.ast.JsFunction function,
FunctionDescriptor descriptor,
TranslationContext context) |
static com.google.dart.compiler.backend.js.ast.JsExpression |
translateInitializerForProperty(JetProperty declaration,
TranslationContext context) |
static com.google.dart.compiler.backend.js.ast.JsExpression |
translateLeftExpression(TranslationContext context,
JetBinaryExpression expression) |
static com.google.dart.compiler.backend.js.ast.JsExpression |
translateRightExpression(TranslationContext context,
JetBinaryExpression expression) |
@NotNull public static com.google.dart.compiler.backend.js.ast.JsPropertyInitializer translateFunctionAsEcma5PropertyDescriptor(@NotNull com.google.dart.compiler.backend.js.ast.JsFunction function, @NotNull FunctionDescriptor descriptor, @NotNull TranslationContext context)
@NotNull public static com.google.dart.compiler.backend.js.ast.JsBinaryOperation isNullCheck(@NotNull com.google.dart.compiler.backend.js.ast.JsExpression expressionToCheck)
@NotNull public static com.google.dart.compiler.backend.js.ast.JsBinaryOperation isNotNullCheck(@NotNull com.google.dart.compiler.backend.js.ast.JsExpression expressionToCheck)
@NotNull public static com.google.dart.compiler.backend.js.ast.JsBinaryOperation nullCheck(@NotNull com.google.dart.compiler.backend.js.ast.JsExpression expressionToCheck, boolean isNegated)
@NotNull public static java.util.List<com.google.dart.compiler.backend.js.ast.JsExpression> translateArgumentList(@NotNull TranslationContext context, @NotNull java.util.List<? extends ValueArgument> jetArguments)
@NotNull public static com.google.dart.compiler.backend.js.ast.JsNameRef backingFieldReference(@NotNull TranslationContext context, @NotNull PropertyDescriptor descriptor)
@NotNull public static com.google.dart.compiler.backend.js.ast.JsExpression assignmentToBackingField(@NotNull TranslationContext context, @NotNull PropertyDescriptor descriptor, @NotNull com.google.dart.compiler.backend.js.ast.JsExpression assignTo)
@Nullable public static com.google.dart.compiler.backend.js.ast.JsExpression translateInitializerForProperty(@NotNull JetProperty declaration, @NotNull TranslationContext context)
@NotNull public static com.google.dart.compiler.backend.js.ast.JsNameRef getQualifiedReference(@NotNull TranslationContext context, @NotNull DeclarationDescriptor descriptor)
@NotNull public static java.util.List<com.google.dart.compiler.backend.js.ast.JsExpression> translateExpressionList(@NotNull TranslationContext context, @NotNull java.util.List<JetExpression> expressions)
@NotNull public static com.google.dart.compiler.backend.js.ast.JsExpression translateBaseExpression(@NotNull TranslationContext context, @NotNull JetUnaryExpression expression)
@NotNull public static com.google.dart.compiler.backend.js.ast.JsExpression translateLeftExpression(@NotNull TranslationContext context, @NotNull JetBinaryExpression expression)
@NotNull public static com.google.dart.compiler.backend.js.ast.JsExpression translateRightExpression(@NotNull TranslationContext context, @NotNull JetBinaryExpression expression)
public static boolean hasCorrespondingFunctionIntrinsic(@NotNull TranslationContext context, @NotNull JetOperationExpression expression)
public static boolean isCacheNeeded(@NotNull com.google.dart.compiler.backend.js.ast.JsExpression expression)
@NotNull public static com.intellij.openapi.util.Pair<com.google.dart.compiler.backend.js.ast.JsVars.JsVar,com.google.dart.compiler.backend.js.ast.JsExpression> createTemporaryIfNeed(@NotNull com.google.dart.compiler.backend.js.ast.JsExpression expression, @NotNull TranslationContext context)