107 references to SetAccessorDeclaration
Microsoft.AspNetCore.Components.Analyzers (2)
ComponentParameterAnalyzer.cs (2)
157if (getterAccessor.IsKind(SyntaxKind.SetAccessorDeclaration)) 163if (!getterAccessor.IsKind(SyntaxKind.GetAccessorDeclaration) || !setterAccessor.IsKind(SyntaxKind.SetAccessorDeclaration))
Microsoft.CodeAnalysis.CSharp (19)
Compilation\MemberSemanticModel.cs (1)
2167case SyntaxKind.SetAccessorDeclaration:
Compilation\MethodBodySemanticModel.cs (1)
94case SyntaxKind.SetAccessorDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (3)
791case SyntaxKind.SetAccessorDeclaration: 890case SyntaxKind.SetAccessorDeclaration: 1104case SyntaxKind.SetAccessorDeclaration:
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
580case SyntaxKind.SetAccessorDeclaration: 606case SyntaxKind.SetAccessorDeclaration:
Parser\LanguageParser.cs (2)
4480SyntaxKind.SetKeyword => SyntaxKind.SetAccessorDeclaration, 5116case SyntaxKind.SetAccessorDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
258case SyntaxKind.SetAccessorDeclaration:
Symbols\Source\SourceCustomEventSymbol.cs (1)
110case SyntaxKind.SetAccessorDeclaration:
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
37syntax.Kind() == SyntaxKind.SetAccessorDeclaration || 661case SyntaxKind.SetAccessorDeclaration: 733case SyntaxKind.SetAccessorDeclaration:
Symbols\Source\SourcePropertySymbol.cs (2)
253case SyntaxKind.SetAccessorDeclaration: 349case SyntaxKind.SetAccessorDeclaration:
Syntax\SyntaxExtensions.cs (1)
39case SyntaxKind.SetAccessorDeclaration:
Syntax\SyntaxKindFacts.cs (2)
771return SyntaxKind.SetAccessorDeclaration; 788case SyntaxKind.SetAccessorDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForAccessorsHelper.cs (1)
27SyntaxKind.SetAccessorDeclaration,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
162case SyntaxKind.SetAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
436case SyntaxKind.SetAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
42case SyntaxKind.SetAccessorDeclaration: 296case SyntaxKind.SetAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1284case SyntaxKind.SetAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
374SyntaxKind.SetAccessorDeclaration or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
264var setAccessorKind = property.SetMethod?.IsInitOnly == true ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration;
Microsoft.CodeAnalysis.CSharp.Features (11)
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
76accessorListSyntax.Accessors.FirstOrDefault(a => a.Kind() is SyntaxKind.SetAccessorDeclaration or SyntaxKind.InitAccessorDeclaration));
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
57SyntaxKind.SetAccessorDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
315case SyntaxKind.SetAccessorDeclaration:
EditAndContinue\SyntaxComparer.cs (3)
649case SyntaxKind.SetAccessorDeclaration: 718case SyntaxKind.SetAccessorDeclaration: 1477case SyntaxKind.SetAccessorDeclaration:
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (1)
252var accessor = AccessorDeclaration(SyntaxKind.SetAccessorDeclaration);
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForAccessorsHelper.cs (1)
27SyntaxKind.SetAccessorDeclaration,
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
258case SyntaxKind.SetAccessorDeclaration:
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (2)
49=> accessor.Kind() is SyntaxKind.SetAccessorDeclaration or SyntaxKind.InitAccessorDeclaration; 121var accessor = AccessorDeclaration(SyntaxKind.SetAccessorDeclaration).WithSemicolonToken(SemicolonToken);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (43)
IncrementalParsing\TypeChanges.cs (1)
94Assert.Equal(SyntaxKind.SetAccessorDeclaration, propertyType.AccessorList.Accessors[0].Kind());
Parsing\AsyncParsingTests.cs (2)
999N(SyntaxKind.SetAccessorDeclaration); 1045N(SyntaxKind.SetAccessorDeclaration);
Parsing\DeclarationParsingTests.cs (2)
4472TestClassPropertyWithValue(SyntaxKind.SetAccessorDeclaration, SyntaxKind.SetKeyword, SyntaxKind.IdentifierToken); 6511N(SyntaxKind.SetAccessorDeclaration);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (19)
75N(SyntaxKind.SetAccessorDeclaration); 99N(SyntaxKind.SetAccessorDeclaration); 216N(SyntaxKind.SetAccessorDeclaration); 411N(SyntaxKind.SetAccessorDeclaration); 632N(SyntaxKind.SetAccessorDeclaration); 922N(SyntaxKind.SetAccessorDeclaration); 1133N(SyntaxKind.SetAccessorDeclaration); 1438N(SyntaxKind.SetAccessorDeclaration); 1642N(SyntaxKind.SetAccessorDeclaration); 2007N(SyntaxKind.SetAccessorDeclaration); 2031N(SyntaxKind.SetAccessorDeclaration); 2148N(SyntaxKind.SetAccessorDeclaration); 2343N(SyntaxKind.SetAccessorDeclaration); 2567N(SyntaxKind.SetAccessorDeclaration); 2800N(SyntaxKind.SetAccessorDeclaration); 3011N(SyntaxKind.SetAccessorDeclaration); 3328N(SyntaxKind.SetAccessorDeclaration); 3667N(SyntaxKind.SetAccessorDeclaration); 3971N(SyntaxKind.SetAccessorDeclaration);
Parsing\FieldKeywordParsingTests.cs (10)
87N(SyntaxKind.SetAccessorDeclaration); 292N(useInit ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration); 562N(useInit ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration); 713N(useInit ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration); 806N(useInit ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration); 1503N(SyntaxKind.SetAccessorDeclaration); 1581N(SyntaxKind.SetAccessorDeclaration); 1645N(SyntaxKind.SetAccessorDeclaration); 1772N(SyntaxKind.SetAccessorDeclaration); 1862N(SyntaxKind.SetAccessorDeclaration);
Parsing\FileModifierParsingTests.cs (2)
981N(SyntaxKind.SetAccessorDeclaration); 1125N(SyntaxKind.SetAccessorDeclaration);
Parsing\MemberDeclarationParsingTests.cs (6)
1152N(SyntaxKind.SetAccessorDeclaration); 1181N(SyntaxKind.SetAccessorDeclaration); 10407N(SyntaxKind.SetAccessorDeclaration); 17144N(SyntaxKind.SetAccessorDeclaration); 17265N(SyntaxKind.SetAccessorDeclaration); 17338N(SyntaxKind.SetAccessorDeclaration);
Parsing\TopLevelStatementsParsingTests.cs (1)
869N(SyntaxKind.SetAccessorDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
CodeGeneration\CSharpSyntaxGenerator.cs (8)
390setAccessor = AccessorDeclaration(SyntaxKind.SetAccessorDeclaration, modifiers.IsAbstract ? null : setAccessorStatements); 425=> AccessorDeclaration(isInitOnly ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration, accessibility, statements); 496accessors.Add(AccessorDeclaration(SyntaxKind.SetAccessorDeclaration, setAccessorStatements)); 1583case SyntaxKind.SetAccessorDeclaration: 2491SyntaxKind.SetAccessorDeclaration or 2582case SyntaxKind.SetAccessorDeclaration: 2636var accessor = GetAccessor(declaration, SyntaxKind.SetAccessorDeclaration); 2644=> this.WithAccessorStatements(declaration, SyntaxKind.SetAccessorDeclaration, statements);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
162case SyntaxKind.SetAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
436case SyntaxKind.SetAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
42case SyntaxKind.SetAccessorDeclaration: 296case SyntaxKind.SetAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1284case SyntaxKind.SetAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
374SyntaxKind.SetAccessorDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
264var setAccessorKind = property.SetMethod?.IsInitOnly == true ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration;
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingTests.cs (1)
4650SyntaxKind.SetAccessorDeclaration,
Microsoft.VisualStudio.LanguageServices.CSharp (8)
CodeModel\CSharpCodeModelService.cs (6)
163case SyntaxKind.SetAccessorDeclaration: 1482case SyntaxKind.SetAccessorDeclaration: 1495SyntaxKind.SetAccessorDeclaration => MethodKind.PropertySet, 1505MethodKind.PropertySet => SyntaxKind.SetAccessorDeclaration, 2686var hasSetter = property.AccessorList != null && property.AccessorList.Accessors.Any(SyntaxKind.SetAccessorDeclaration); 3563case SyntaxKind.SetAccessorDeclaration:
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
61case SyntaxKind.SetAccessorDeclaration: 112case SyntaxKind.SetAccessorDeclaration: