org.jetbrains.k2js.translate.initializer
Class InitializerUtils

java.lang.Object
  extended by org.jetbrains.k2js.translate.initializer.InitializerUtils

public final class InitializerUtils
extends java.lang.Object


Method Summary
static com.google.dart.compiler.backend.js.ast.JsPropertyInitializer createClassObjectInitializer(com.google.dart.compiler.backend.js.ast.JsExpression value, TranslationContext context)
           
static com.google.dart.compiler.backend.js.ast.JsStatement generateInitializerForDelegate(TranslationContext context, JetProperty property)
           
static com.google.dart.compiler.backend.js.ast.JsStatement generateInitializerForProperty(TranslationContext context, PropertyDescriptor descriptor, com.google.dart.compiler.backend.js.ast.JsExpression value)
           
static void generateObjectInitializer(JetObjectDeclaration declaration, java.util.List<com.google.dart.compiler.backend.js.ast.JsStatement> initializers, TranslationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateInitializerForProperty

@NotNull
public static com.google.dart.compiler.backend.js.ast.JsStatement generateInitializerForProperty(@NotNull
                                                                                                         TranslationContext context,
                                                                                                         @NotNull
                                                                                                         PropertyDescriptor descriptor,
                                                                                                         @NotNull
                                                                                                         com.google.dart.compiler.backend.js.ast.JsExpression value)

generateInitializerForDelegate

@Nullable
public static com.google.dart.compiler.backend.js.ast.JsStatement generateInitializerForDelegate(@NotNull
                                                                                                          TranslationContext context,
                                                                                                          @NotNull
                                                                                                          JetProperty property)

generateObjectInitializer

public static void generateObjectInitializer(@NotNull
                                             JetObjectDeclaration declaration,
                                             @NotNull
                                             java.util.List<com.google.dart.compiler.backend.js.ast.JsStatement> initializers,
                                             @NotNull
                                             TranslationContext context)

createClassObjectInitializer

public static com.google.dart.compiler.backend.js.ast.JsPropertyInitializer createClassObjectInitializer(com.google.dart.compiler.backend.js.ast.JsExpression value,
                                                                                                         TranslationContext context)