public final class PatternTranslator extends AbstractTranslator
| Modifier and Type | Method and Description |
|---|---|
static PatternTranslator |
newInstance(TranslationContext context) |
com.google.dart.compiler.backend.js.ast.JsExpression |
translateExpressionForExpressionPattern(JetExpression patternExpression) |
com.google.dart.compiler.backend.js.ast.JsExpression |
translateExpressionPattern(com.google.dart.compiler.backend.js.ast.JsExpression expressionToMatch,
JetExpression patternExpression) |
com.google.dart.compiler.backend.js.ast.JsExpression |
translateIsCheck(com.google.dart.compiler.backend.js.ast.JsExpression subject,
JetTypeReference typeReference) |
com.google.dart.compiler.backend.js.ast.JsExpression |
translateIsExpression(JetIsExpression expression) |
bindingContext, context, program@NotNull public static PatternTranslator newInstance(@NotNull TranslationContext context)
@NotNull public com.google.dart.compiler.backend.js.ast.JsExpression translateIsExpression(@NotNull JetIsExpression expression)
@NotNull public com.google.dart.compiler.backend.js.ast.JsExpression translateIsCheck(@NotNull com.google.dart.compiler.backend.js.ast.JsExpression subject, @NotNull JetTypeReference typeReference)
@NotNull public com.google.dart.compiler.backend.js.ast.JsExpression translateExpressionPattern(@NotNull com.google.dart.compiler.backend.js.ast.JsExpression expressionToMatch, @NotNull JetExpression patternExpression)
@NotNull public com.google.dart.compiler.backend.js.ast.JsExpression translateExpressionForExpressionPattern(@NotNull JetExpression patternExpression)