79 references to SetAccessorDeclaration
Microsoft.CodeAnalysis.CSharp (19)
Compilation\MemberSemanticModel.cs (1)
2140case SyntaxKind.SetAccessorDeclaration:
Compilation\MethodBodySemanticModel.cs (1)
97case SyntaxKind.SetAccessorDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (3)
787case SyntaxKind.SetAccessorDeclaration: 886case SyntaxKind.SetAccessorDeclaration: 1100case SyntaxKind.SetAccessorDeclaration:
CSharpDeclarationComputer.cs (1)
258case SyntaxKind.SetAccessorDeclaration:
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
580case SyntaxKind.SetAccessorDeclaration: 606case SyntaxKind.SetAccessorDeclaration:
Parser\LanguageParser.cs (2)
4105SyntaxKind.SetKeyword => SyntaxKind.SetAccessorDeclaration, 4813case SyntaxKind.SetAccessorDeclaration:
Symbols\Source\SourceCustomEventSymbol.cs (1)
110case SyntaxKind.SetAccessorDeclaration:
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
38syntax.Kind() == SyntaxKind.SetAccessorDeclaration || 639case SyntaxKind.SetAccessorDeclaration: 710case SyntaxKind.SetAccessorDeclaration:
Symbols\Source\SourcePropertySymbol.cs (2)
197case SyntaxKind.SetAccessorDeclaration: 258case SyntaxKind.SetAccessorDeclaration:
Syntax\SyntaxExtensions.cs (1)
39case SyntaxKind.SetAccessorDeclaration:
Syntax\SyntaxKindFacts.cs (2)
743return SyntaxKind.SetAccessorDeclaration; 760case SyntaxKind.SetAccessorDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
BlockSyntaxExtensions.cs (1)
95case SyntaxKind.SetAccessorDeclaration:
CSharpAccessibilityFacts.cs (2)
42case SyntaxKind.SetAccessorDeclaration: 296case SyntaxKind.SetAccessorDeclaration:
CSharpSyntaxFacts.cs (1)
1271case SyntaxKind.SetAccessorDeclaration:
FormattingRangeHelper.cs (1)
374SyntaxKind.SetAccessorDeclaration or
SyntaxNodeExtensions.cs (1)
514case SyntaxKind.SetAccessorDeclaration:
UseExpressionBodyForAccessorsHelper.cs (1)
25ImmutableArray.Create(SyntaxKind.GetAccessorDeclaration, SyntaxKind.SetAccessorDeclaration, SyntaxKind.InitAccessorDeclaration, SyntaxKind.AddAccessorDeclaration, SyntaxKind.RemoveAccessorDeclaration))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
PropertyGenerator.cs (1)
260var setAccessorKind = property.SetMethod?.IsInitOnly == true ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration;
Microsoft.CodeAnalysis.CSharp.Features (16)
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
75accessorListSyntax.Accessors.FirstOrDefault(a => a.IsKind(SyntaxKind.SetAccessorDeclaration) ||
CSharpDeclarationComputer.cs (1)
258case SyntaxKind.SetAccessorDeclaration:
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
63SyntaxKind.SetAccessorDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
209case SyntaxKind.SetAccessorDeclaration:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
93case SyntaxKind.SetAccessorDeclaration: 704else if (property.AccessorList.Accessors.Any(a => a.IsKind(SyntaxKind.SetAccessorDeclaration))) 1681case SyntaxKind.SetAccessorDeclaration: 2055case SyntaxKind.SetAccessorDeclaration:
EditAndContinue\SyntaxComparer.cs (3)
640case SyntaxKind.SetAccessorDeclaration: 709case SyntaxKind.SetAccessorDeclaration: 1468case SyntaxKind.SetAccessorDeclaration:
EditAndContinue\SyntaxUtilities.cs (1)
41case SyntaxKind.SetAccessorDeclaration:
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (1)
248var accessor = SyntaxFactory.AccessorDeclaration(SyntaxKind.SetAccessorDeclaration);
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (2)
58var accessor = SyntaxFactory.AccessorDeclaration(SyntaxKind.SetAccessorDeclaration) 143if (propertyDeclaration.AccessorList?.Accessors.Any(SyntaxKind.SetAccessorDeclaration) == true)
UseExpressionBodyForAccessorsHelper.cs (1)
25ImmutableArray.Create(SyntaxKind.GetAccessorDeclaration, SyntaxKind.SetAccessorDeclaration, SyntaxKind.InitAccessorDeclaration, SyntaxKind.AddAccessorDeclaration, SyntaxKind.RemoveAccessorDeclaration))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
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\FileModifierParsingTests.cs (2)
981N(SyntaxKind.SetAccessorDeclaration); 1125N(SyntaxKind.SetAccessorDeclaration);
Parsing\MemberDeclarationParsingTests.cs (3)
1158N(SyntaxKind.SetAccessorDeclaration); 1187N(SyntaxKind.SetAccessorDeclaration); 10418N(SyntaxKind.SetAccessorDeclaration);
Parsing\TopLevelStatementsParsingTests.cs (1)
869N(SyntaxKind.SetAccessorDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
BlockSyntaxExtensions.cs (1)
95case SyntaxKind.SetAccessorDeclaration:
CodeGeneration\CSharpSyntaxGenerator.cs (9)
366setAccessor = AccessorDeclaration(SyntaxKind.SetAccessorDeclaration, modifiers.IsAbstract ? null : setAccessorStatements); 401=> AccessorDeclaration(SyntaxKind.SetAccessorDeclaration, accessibility, statements); 476accessors.Add(AccessorDeclaration(SyntaxKind.SetAccessorDeclaration, setAccessorStatements)); 1578case SyntaxKind.SetAccessorDeclaration: 2488case SyntaxKind.SetAccessorDeclaration: 2524case SyntaxKind.SetAccessorDeclaration: 2594case SyntaxKind.SetAccessorDeclaration: 2648var accessor = GetAccessor(declaration, SyntaxKind.SetAccessorDeclaration); 2656=> this.WithAccessorStatements(declaration, SyntaxKind.SetAccessorDeclaration, statements);
CSharpAccessibilityFacts.cs (2)
42case SyntaxKind.SetAccessorDeclaration: 296case SyntaxKind.SetAccessorDeclaration:
CSharpSyntaxFacts.cs (1)
1271case SyntaxKind.SetAccessorDeclaration:
FormattingRangeHelper.cs (1)
374SyntaxKind.SetAccessorDeclaration or
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
514case SyntaxKind.SetAccessorDeclaration:
PropertyGenerator.cs (1)
260var setAccessorKind = property.SetMethod?.IsInitOnly == true ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration;
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingTests.cs (1)
4521SyntaxKind.SetAccessorDeclaration,
Microsoft.VisualStudio.LanguageServices.CSharp (8)
CodeModel\CSharpCodeModelService.cs (6)
162case SyntaxKind.SetAccessorDeclaration: 1485case SyntaxKind.SetAccessorDeclaration: 1498SyntaxKind.SetAccessorDeclaration => MethodKind.PropertySet, 1508MethodKind.PropertySet => SyntaxKind.SetAccessorDeclaration, 2690var hasSetter = property.AccessorList != null && property.AccessorList.Accessors.Any(SyntaxKind.SetAccessorDeclaration); 3568case SyntaxKind.SetAccessorDeclaration:
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
62case SyntaxKind.SetAccessorDeclaration: 113case SyntaxKind.SetAccessorDeclaration: