51 references to InitAccessorDeclaration
Microsoft.CodeAnalysis.CSharp (19)
Compilation\MemberSemanticModel.cs (1)
2168case SyntaxKind.InitAccessorDeclaration:
Compilation\MethodBodySemanticModel.cs (1)
95case SyntaxKind.InitAccessorDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (3)
792case SyntaxKind.InitAccessorDeclaration: 891case SyntaxKind.InitAccessorDeclaration: 1105case SyntaxKind.InitAccessorDeclaration:
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
581case SyntaxKind.InitAccessorDeclaration: 607case SyntaxKind.InitAccessorDeclaration:
Parser\LanguageParser.cs (2)
4480SyntaxKind.InitKeyword => SyntaxKind.InitAccessorDeclaration, 5092case SyntaxKind.InitAccessorDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
259case SyntaxKind.InitAccessorDeclaration:
Symbols\Source\SourceCustomEventSymbol.cs (1)
111case SyntaxKind.InitAccessorDeclaration:
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
38syntax.Kind() == SyntaxKind.InitAccessorDeclaration); 662case SyntaxKind.InitAccessorDeclaration: 734case SyntaxKind.InitAccessorDeclaration:
Symbols\Source\SourcePropertySymbol.cs (2)
254case SyntaxKind.InitAccessorDeclaration: 350case SyntaxKind.InitAccessorDeclaration:
Syntax\SyntaxExtensions.cs (1)
40case SyntaxKind.InitAccessorDeclaration:
Syntax\SyntaxKindFacts.cs (2)
773return SyntaxKind.InitAccessorDeclaration; 789case SyntaxKind.InitAccessorDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForAccessorsHelper.cs (1)
28SyntaxKind.InitAccessorDeclaration,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
437case SyntaxKind.InitAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
43case SyntaxKind.InitAccessorDeclaration: 297case SyntaxKind.InitAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
375SyntaxKind.InitAccessorDeclaration 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 (10)
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
76accessorListSyntax.Accessors.FirstOrDefault(a => a.Kind() is SyntaxKind.SetAccessorDeclaration or SyntaxKind.InitAccessorDeclaration));
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
58SyntaxKind.InitAccessorDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
316case SyntaxKind.InitAccessorDeclaration:
EditAndContinue\SyntaxComparer.cs (3)
650case SyntaxKind.InitAccessorDeclaration: 719case SyntaxKind.InitAccessorDeclaration: 1478case SyntaxKind.InitAccessorDeclaration:
Snippets\CSharpPropiSnippetProvider.cs (1)
29=> SyntaxFactory.AccessorDeclaration(SyntaxKind.InitAccessorDeclaration).WithSemicolonToken(SemicolonToken);
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForAccessorsHelper.cs (1)
28SyntaxKind.InitAccessorDeclaration,
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
259case SyntaxKind.InitAccessorDeclaration:
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
48=> accessor.Kind() is SyntaxKind.SetAccessorDeclaration or SyntaxKind.InitAccessorDeclaration;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\InitOnlyMemberTests.cs (1)
4075Assert.True(SyntaxFacts.IsAccessorDeclaration(SyntaxKind.InitAccessorDeclaration));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Parsing\FieldKeywordParsingTests.cs (4)
292N(useInit ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration); 562N(useInit ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration); 713N(useInit ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration); 806N(useInit ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration);
Parsing\MemberDeclarationParsingTests.cs (4)
1070N(SyntaxKind.InitAccessorDeclaration); 1106N(SyntaxKind.InitAccessorDeclaration); 1147N(SyntaxKind.InitAccessorDeclaration); 1186N(SyntaxKind.InitAccessorDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
426=> AccessorDeclaration(isInitOnly ? SyntaxKind.InitAccessorDeclaration : SyntaxKind.SetAccessorDeclaration, accessibility, statements);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
437case SyntaxKind.InitAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
43case SyntaxKind.InitAccessorDeclaration: 297case SyntaxKind.InitAccessorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
375SyntaxKind.InitAccessorDeclaration 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)
CodeGeneration\SyntaxGeneratorTests.cs (1)
2986Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(AccessorDeclaration(SyntaxKind.InitAccessorDeclaration), Accessibility.Private)));