More renames of TypeRef to TypeReference
This commit is contained in:
@@ -52,7 +52,7 @@ public final class PatternTranslator extends AbstractTranslator {
|
||||
@NotNull
|
||||
public JsExpression translateIsExpression(@NotNull JetIsExpression expression) {
|
||||
JsExpression left = Translation.translateAsExpression(expression.getLeftHandSide(), context());
|
||||
JetTypeReference typeReference = expression.getTypeRef();
|
||||
JetTypeReference typeReference = expression.getTypeReference();
|
||||
assert typeReference != null;
|
||||
JsExpression result = translateIsCheck(left, typeReference);
|
||||
if (expression.isNegated()) {
|
||||
|
||||
@@ -175,7 +175,7 @@ public final class WhenTranslator extends AbstractTranslator {
|
||||
JsExpression expressionToMatch = getExpressionToMatch();
|
||||
assert expressionToMatch != null : "An is-check is not allowed in when() without subject.";
|
||||
|
||||
JetTypeReference typeReference = conditionIsPattern.getTypeRef();
|
||||
JetTypeReference typeReference = conditionIsPattern.getTypeReference();
|
||||
assert typeReference != null : "An is-check must have a type reference.";
|
||||
|
||||
return Translation.patternTranslator(context).translateIsCheck(expressionToMatch, typeReference);
|
||||
|
||||
Reference in New Issue
Block a user