diff --git a/Directory.Build.props b/Directory.Build.props index 3da0ef4..86bbd4e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@  - 2025.12.9.0 + 2025.12.12.0 enable enable preview diff --git a/src/libraries/TedToolkit.RoslynHelper/Names/ParameterName.cs b/src/libraries/TedToolkit.RoslynHelper/Names/ParameterName.cs index 592fcbf..e969d05 100644 --- a/src/libraries/TedToolkit.RoslynHelper/Names/ParameterName.cs +++ b/src/libraries/TedToolkit.RoslynHelper/Names/ParameterName.cs @@ -38,16 +38,22 @@ public ParameterSyntax ParameterSyntax get { var param = Parameter(Identifier(Name)).WithType(IdentifierName(Type.FullName)); + + if (Symbol.ScopedKind is ScopedKind.ScopedValue) + { + param = param.AddModifiers(Token(SyntaxKind.ScopedKeyword)); + } + switch (Symbol.RefKind) { case RefKind.Ref: - param = param.WithModifiers(TokenList(Token(SyntaxKind.RefKeyword))); + param = param.AddModifiers(Token(SyntaxKind.RefKeyword)); break; case RefKind.Out: - param = param.WithModifiers(TokenList(Token(SyntaxKind.OutKeyword))); + param = param.AddModifiers(Token(SyntaxKind.OutKeyword)); break; case RefKind.In: - param = param.WithModifiers(TokenList(Token(SyntaxKind.InKeyword))); + param = param.AddModifiers(Token(SyntaxKind.InKeyword)); break; case RefKind.None: case RefKind.RefReadOnlyParameter: