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
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Version>2025.12.17.0</Version>
<Version>2025.12.23.0</Version>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
Expand Down
3 changes: 1 addition & 2 deletions src/libraries/TedToolkit.RoslynHelper/Names/BaseName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ private protected BaseName(T symbol)
Symbol = symbol;
_lazyFullName = new Lazy<string>(() => symbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat));
_lazyFullNameNull = new Lazy<string>(() => symbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat
.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier |
SymbolDisplayMiscellaneousOptions.ExpandNullable)));
.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier)));
_lazyFullNameNoGlobal = new Lazy<string>(() => symbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat
.WithGlobalNamespaceStyle(SymbolDisplayGlobalNamespaceStyle.Omitted)));
_lazyMiniName = new Lazy<string>(() => symbol.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
Expand Down
8 changes: 5 additions & 3 deletions src/libraries/TedToolkit.RoslynHelper/Names/ParameterName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ public ParameterSyntax ParameterSyntax
var type = parameter.Type;

if (value == null)
return type.IsReferenceType
? LiteralExpression(SyntaxKind.NullLiteralExpression)
: LiteralExpression(SyntaxKind.DefaultLiteralExpression);
{
return type.IsValueType
? LiteralExpression(SyntaxKind.DefaultLiteralExpression)
: LiteralExpression(SyntaxKind.NullLiteralExpression);
}

switch (type.SpecialType)
{
Expand Down