Skip to content

Commit f3a7035

Browse files
authored
Merge pull request #79 from Ted-Jin-Lab/development
fix: default version fix.
2 parents 438bfed + 72bcbfb commit f3a7035

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<PropertyGroup>
4-
<Version>2025.12.17.0</Version>
4+
<Version>2025.12.23.0</Version>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<LangVersion>preview</LangVersion>

src/libraries/TedToolkit.RoslynHelper/Names/BaseName.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ private protected BaseName(T symbol)
1616
Symbol = symbol;
1717
_lazyFullName = new Lazy<string>(() => symbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat));
1818
_lazyFullNameNull = new Lazy<string>(() => symbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat
19-
.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier |
20-
SymbolDisplayMiscellaneousOptions.ExpandNullable)));
19+
.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier)));
2120
_lazyFullNameNoGlobal = new Lazy<string>(() => symbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat
2221
.WithGlobalNamespaceStyle(SymbolDisplayGlobalNamespaceStyle.Omitted)));
2322
_lazyMiniName = new Lazy<string>(() => symbol.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));

src/libraries/TedToolkit.RoslynHelper/Names/ParameterName.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ public ParameterSyntax ParameterSyntax
8888
var type = parameter.Type;
8989

9090
if (value == null)
91-
return type.IsReferenceType
92-
? LiteralExpression(SyntaxKind.NullLiteralExpression)
93-
: LiteralExpression(SyntaxKind.DefaultLiteralExpression);
91+
{
92+
return type.IsValueType
93+
? LiteralExpression(SyntaxKind.DefaultLiteralExpression)
94+
: LiteralExpression(SyntaxKind.NullLiteralExpression);
95+
}
9496

9597
switch (type.SpecialType)
9698
{

0 commit comments

Comments
 (0)