org.jetbrains.kotlin.js.translate.utils
Class FunctionBodyTranslator

java.lang.Object
  extended by org.jetbrains.kotlin.js.translate.general.AbstractTranslator
      extended by org.jetbrains.kotlin.js.translate.utils.FunctionBodyTranslator

public final class FunctionBodyTranslator
extends AbstractTranslator


Method Summary
static java.util.List<JsStatement> setDefaultValueForArguments(FunctionDescriptor descriptor, TranslationContext functionBodyContext)
           
static JsBlock translateFunctionBody(FunctionDescriptor descriptor, JetDeclarationWithBody declarationWithBody, TranslationContext functionBodyContext)
           
 
Methods inherited from class org.jetbrains.kotlin.js.translate.general.AbstractTranslator
bindingContext, context, program
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

translateFunctionBody

@NotNull
public static JsBlock translateFunctionBody(@NotNull
                                                    FunctionDescriptor descriptor,
                                                    @NotNull
                                                    JetDeclarationWithBody declarationWithBody,
                                                    @NotNull
                                                    TranslationContext functionBodyContext)

setDefaultValueForArguments

@NotNull
public static java.util.List<JsStatement> setDefaultValueForArguments(@NotNull
                                                                              FunctionDescriptor descriptor,
                                                                              @NotNull
                                                                              TranslationContext functionBodyContext)