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.23.0</Version>
<Version>2025.12.23.1</Version>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.CodeAnalysis;
using System.Runtime.CompilerServices;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using TedToolkit.RoslynHelper.Names;
Expand Down Expand Up @@ -133,7 +134,25 @@ public static AttributeListSyntax GeneratedCodeAttribute(Type generator)
/// <returns></returns>
public static AttributeSyntax NonUserCodeAttribute()
{
return Attribute(IdentifierName("global::System.Diagnostics.DebuggerNonUserCode"));
return Attribute(IdentifierName("global::System.Diagnostics.DebuggerNonUserCodeAttribute"));
}

/// <summary>
/// Method Impl Attribute
/// </summary>
/// <param name="methodImplOptions"></param>
/// <returns></returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static AttributeSyntax MethodImplAttribute(MethodImplOptions methodImplOptions)
{
return Attribute(IdentifierName("global::System.Runtime.CompilerServices.MethodImplAttribute"))
.WithArgumentList(AttributeArgumentList(
[
AttributeArgument(MemberAccessExpression(
SyntaxKind.SimpleMemberAccessExpression,
IdentifierName("global::System.Runtime.CompilerServices.MethodImplOptions"),
IdentifierName("AggressiveInlining")))
]));
}

/// <summary>
Expand Down
4 changes: 1 addition & 3 deletions src/libraries/TedToolkit.RoslynHelper/Names/ParameterName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ public ParameterSyntax ParameterSyntax

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

switch (type.SpecialType)
Expand Down