public final class FunctionTranslator extends AbstractTranslator
Modifier and Type | Method and Description |
---|---|
static void |
addParameters(java.util.List<com.google.dart.compiler.backend.js.ast.JsParameter> list,
FunctionDescriptor descriptor,
TranslationContext context) |
static FunctionTranslator |
newInstance(JetDeclarationWithBody function,
TranslationContext context) |
com.google.dart.compiler.backend.js.ast.JsPropertyInitializer |
translateAsEcma5PropertyDescriptor() |
com.google.dart.compiler.backend.js.ast.JsFunction |
translateAsLocalFunction() |
com.google.dart.compiler.backend.js.ast.JsPropertyInitializer |
translateAsMethod() |
bindingContext, context, program
@NotNull public static FunctionTranslator newInstance(@NotNull JetDeclarationWithBody function, @NotNull TranslationContext context)
@NotNull public com.google.dart.compiler.backend.js.ast.JsFunction translateAsLocalFunction()
@NotNull public com.google.dart.compiler.backend.js.ast.JsPropertyInitializer translateAsEcma5PropertyDescriptor()
@NotNull public com.google.dart.compiler.backend.js.ast.JsPropertyInitializer translateAsMethod()
public static void addParameters(java.util.List<com.google.dart.compiler.backend.js.ast.JsParameter> list, FunctionDescriptor descriptor, TranslationContext context)