Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public CastExpressionToTypeRef(@Nonnull DotNetExpression expression, @Nonnull Do
public LocalizeValue getText() {
DotNetExpression element = myExpressionPointer.getElement();
if (element == null) {
return LocalizeValue.of();
return LocalizeValue.empty();
}
return CSharpErrorLocalize.castTo0Fix(CSharpTypeRefPresentationUtil.buildTextWithKeyword(myExpectedTypeRef));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public CastNArgumentToTypeRefFix(@Nonnull DotNetExpression expression, @Nonnull
public LocalizeValue getText() {
DotNetExpression element = myExpressionPointer.getElement();
if (element == null) {
return LocalizeValue.of();
return LocalizeValue.empty();
}
return CSharpErrorLocalize.castArgument0To1(myParameterName, CSharpTypeRefPresentationUtil.buildTextWithKeyword(myExpectedTypeRef));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public ChangeReturnToTypeRefFix(@Nonnull DotNetLikeMethodDeclaration element, @N
public LocalizeValue getText() {
DotNetLikeMethodDeclaration element = myMethodPointer.getElement();
if (element == null) {
return LocalizeValue.of();
return LocalizeValue.empty();
}
return CSharpErrorLocalize.changeReturnTypeTo0Fix(element.getName(), CSharpTypeRefPresentationUtil.buildTextWithKeyword(myToTypeRef));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public ChangeVariableToTypeRefFix(@Nonnull DotNetVariable element, @Nonnull DotN
public LocalizeValue getText() {
DotNetVariable element = myVariablePointer.getElement();
if (element == null) {
return LocalizeValue.of();
return LocalizeValue.empty();
}

return CSharpErrorLocalize.change0TypeTo1Fix(element.getName(), CSharpTypeRefPresentationUtil.buildTextWithKeyword(myToTypeRef));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public CreateUnresolvedLikeMethodFix(CSharpReferenceExpression expression) {
public LocalizeValue getText() {
String arguments = buildArgumentTypeRefs();
if (arguments == null) {
return LocalizeValue.of();
return LocalizeValue.empty();
}
return createText(myReferenceName, arguments);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public CreateUnresolvedMethodByLambdaTypeFix(CSharpReferenceExpression expressio
public LocalizeValue getText() {
String arguments = buildArgumentTypeRefs();
if (arguments == null) {
return LocalizeValue.of();
return LocalizeValue.empty();
}
return CSharpErrorLocalize.createMethod01(myReferenceName, arguments);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public String getInlayPresentation(@Nonnull String inlayText) {
@Nonnull
@Override
public LocalizeValue getPreviewFileText() {
return LocalizeValue.of();
return LocalizeValue.empty();
}

@Nonnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public LocalizeValue getText() {

PsiElement resolvedElement = element.resolve();
if (resolvedElement == null) {
return LocalizeValue.of();
return LocalizeValue.empty();
}
return LocalizeValue.localizeTODO("Replace qualifier by '" + formatElement(resolvedElement.getParent()) + "'");
}
Expand Down
Loading