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