File tree Expand file tree Collapse file tree
src/libraries/TedToolkit.RoslynHelper/Names Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ) ) ;
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments