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 @@ -38,16 +38,22 @@ public ParameterSyntax ParameterSyntax
3838 get
3939 {
4040 var param = Parameter ( Identifier ( Name ) ) . WithType ( IdentifierName ( Type . FullName ) ) ;
41+
42+ if ( Symbol . ScopedKind is ScopedKind . ScopedValue )
43+ {
44+ param = param . AddModifiers ( Token ( SyntaxKind . ScopedKeyword ) ) ;
45+ }
46+
4147 switch ( Symbol . RefKind )
4248 {
4349 case RefKind . Ref :
44- param = param . WithModifiers ( TokenList ( Token ( SyntaxKind . RefKeyword ) ) ) ;
50+ param = param . AddModifiers ( Token ( SyntaxKind . RefKeyword ) ) ;
4551 break ;
4652 case RefKind . Out :
47- param = param . WithModifiers ( TokenList ( Token ( SyntaxKind . OutKeyword ) ) ) ;
53+ param = param . AddModifiers ( Token ( SyntaxKind . OutKeyword ) ) ;
4854 break ;
4955 case RefKind . In :
50- param = param . WithModifiers ( TokenList ( Token ( SyntaxKind . InKeyword ) ) ) ;
56+ param = param . AddModifiers ( Token ( SyntaxKind . InKeyword ) ) ;
5157 break ;
5258 case RefKind . None :
5359 case RefKind . RefReadOnlyParameter :
You canāt perform that action at this time.
0 commit comments