Skip to content

Commit c19fa34

Browse files
committed
Rename method and remove unnecessary using.
1 parent 1235b26 commit c19fa34

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mdoc/Mono.Documentation/Updater/Formatters/CSharpFullMemberFormatter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,15 +430,15 @@ protected override StringBuilder AppendMethodName (StringBuilder buf, MethodDefi
430430

431431
protected override string GetTypeNullableSymbol(TypeReference type, bool? isNullableType)
432432
{
433-
if (isNullableType.IsTrue() && !IsValueTypeOrPassedByReference(type) && !type.FullName.Equals("System.Void"))
433+
if (isNullableType.IsTrue() && !IsValueTypeOrDefineByReference(type) && !type.FullName.Equals("System.Void"))
434434
{
435435
return "?";
436436
}
437437

438438
return string.Empty;
439439
}
440440

441-
private bool IsValueTypeOrPassedByReference(TypeReference type)
441+
private bool IsValueTypeOrDefineByReference(TypeReference type)
442442
{
443443
if (type.IsValueType)
444444
{

mdoc/mdoc.Test/mdoc.Test.NullableReferenceTypes/mdoc.Test.NullableReferenceTypes/MethodParameter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Diagnostics.CodeAnalysis;
43

54
namespace mdoc.Test.NullableReferenceTypes
65
{

0 commit comments

Comments
 (0)