Search in sources :

Example 1 with AccessTranslator

use of org.jetbrains.kotlin.js.translate.reference.AccessTranslator in project kotlin by JetBrains.

the class OverloadedAssignmentTranslator method reassignment.

@NotNull
private JsExpression reassignment() {
    KtExpression left = expression.getLeft();
    assert left != null;
    AccessTranslator accessTranslator = AccessTranslationUtils.getAccessTranslator(left, context()).getCached();
    JsExpression newValue = overloadedMethodInvocation(accessTranslator);
    return accessTranslator.translateAsSet(newValue);
}
Also used : JsExpression(org.jetbrains.kotlin.js.backend.ast.JsExpression) KtExpression(org.jetbrains.kotlin.psi.KtExpression) AccessTranslator(org.jetbrains.kotlin.js.translate.reference.AccessTranslator) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

NotNull (org.jetbrains.annotations.NotNull)1 JsExpression (org.jetbrains.kotlin.js.backend.ast.JsExpression)1 AccessTranslator (org.jetbrains.kotlin.js.translate.reference.AccessTranslator)1 KtExpression (org.jetbrains.kotlin.psi.KtExpression)1