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.12.0</Version>
<Version>2025.12.12.1</Version>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/TedToolkit.RoslynHelper/Names/BaseName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private protected virtual string GetSummaryName()
.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat));
}

private protected static string ToSummary(string name)
private static string ToSummary(string name)
{
return name.Replace('<', '{').Replace('>', '}');
}
Expand Down
28 changes: 20 additions & 8 deletions src/libraries/TedToolkit.RoslynHelper/Names/MethodName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ internal MethodName(IMethodSymbol methodSymbol) : base(methodSymbol)
}

/// <summary>
/// The singature of the method
/// The signature of the method
/// </summary>
public MethodSignature Signature { get; }

Expand Down Expand Up @@ -47,14 +47,26 @@ private protected override string GetSummaryName()
.Append(base.GetSummaryName());
builder.Append('(').Append(string.Join(",", Parameters.Select(p =>
{
var type = ToSummary(p.Type.FullName);
return p.Symbol.RefKind switch
var stringBuilder = new StringBuilder();
if (p.Symbol.ScopedKind is not ScopedKind.None)
{
RefKind.Ref => "ref " + type,
RefKind.In => "in " + type,
RefKind.Out => "out " + type,
_ => type
};
stringBuilder.Append("scoped ");
}

switch (p.Symbol.RefKind)
{
case RefKind.Ref:
stringBuilder.Append("ref ");
break;
case RefKind.Out:
stringBuilder.Append("in ");
break;
case RefKind.In:
stringBuilder.Append("out ");
break;
}

return stringBuilder.Append(p.Type.SummaryName).ToString();
}))).Append(')');
return builder.ToString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public ParameterSyntax ParameterSyntax
{
var param = Parameter(Identifier(Name)).WithType(IdentifierName(Type.FullName));

if (Symbol.ScopedKind is ScopedKind.ScopedValue)
if (Symbol.ScopedKind is not ScopedKind.None)
{
param = param.AddModifiers(Token(SyntaxKind.ScopedKeyword));
}
Expand Down