Renamed JetType.isNullable() to isMarkedNullable()
This commit is contained in:
@@ -117,7 +117,7 @@ public final class PatternTranslator extends AbstractTranslator {
|
||||
}
|
||||
|
||||
private boolean isNullable(JetTypeReference typeReference) {
|
||||
return getTypeByReference(bindingContext(), typeReference).isNullable();
|
||||
return getTypeByReference(bindingContext(), typeReference).isMarkedNullable();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
+1
-1
@@ -90,7 +90,7 @@ public final class StringTemplateTranslator extends AbstractTranslator {
|
||||
}
|
||||
|
||||
JetType type = context().bindingContext().get(BindingContext.EXPRESSION_TYPE, entryExpression);
|
||||
if (type == null || type.isNullable()) {
|
||||
if (type == null || type.isMarkedNullable()) {
|
||||
append(TopLevelFIF.TO_STRING.apply((JsExpression) null, Collections.singletonList(translatedExpression), context()));
|
||||
}
|
||||
else if (mustCallToString(type)) {
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ public final class UnaryOperationTranslator {
|
||||
JetExpression baseExpression = getBaseExpression(expression);
|
||||
JetType type = BindingContextUtils.getNotNull(context.bindingContext(), BindingContext.EXPRESSION_TYPE, baseExpression);
|
||||
JsExpression translatedExpression = translateAsExpression(baseExpression, context);
|
||||
return type.isNullable() ? sure(translatedExpression, context) : translatedExpression;
|
||||
return type.isMarkedNullable() ? sure(translatedExpression, context) : translatedExpression;
|
||||
}
|
||||
|
||||
if (operationToken == JetTokens.MINUS) {
|
||||
|
||||
Reference in New Issue
Block a user