More renames of TypeRef to TypeReference

This commit is contained in:
Valentin Kipyatkov
2014-10-07 12:54:05 +04:00
parent 31ebee81f0
commit 852fc8bc5d
41 changed files with 70 additions and 73 deletions
@@ -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);