131 references to ConstructorDeclaration
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Statements.cs (1)
3627if (method.Kind() == SyntaxKind.ConstructorDeclaration)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
463case SyntaxKind.ConstructorDeclaration:
Binder\ExpressionVariableFinder.cs (1)
49case SyntaxKind.ConstructorDeclaration:
Compilation\MemberSemanticModel.cs (2)
325else if (kind == SyntaxKind.ConstructorDeclaration) 2172case SyntaxKind.ConstructorDeclaration:
Compilation\MethodBodySemanticModel.cs (1)
91case SyntaxKind.ConstructorDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (4)
796case SyntaxKind.ConstructorDeclaration: 862case SyntaxKind.ConstructorDeclaration: 1082case SyntaxKind.ConstructorDeclaration: 1670case SyntaxKind.ConstructorDeclaration:
Declarations\DeclarationTreeBuilder.cs (3)
1104case SyntaxKind.ConstructorDeclaration: 1183case SyntaxKind.ConstructorDeclaration: 1236case SyntaxKind.ConstructorDeclaration:
FlowAnalysis\FlowAnalysisPass.cs (1)
197syntax.IsKind(SyntaxKind.ConstructorDeclaration) ||
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (3)
460if (!original.IsConstructorInitializer() || original.Syntax.Kind() != SyntaxKind.ConstructorDeclaration) 582case SyntaxKind.ConstructorDeclaration: 611case SyntaxKind.ConstructorDeclaration:
Parser\LanguageParser.cs (3)
550is SyntaxKind.ConstructorDeclaration 2397case SyntaxKind.ConstructorDeclaration: 5080case SyntaxKind.ConstructorDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
272case SyntaxKind.ConstructorDeclaration: 403case SyntaxKind.ConstructorDeclaration:
Symbols\Source\SourceConstructorSymbolBase.cs (1)
30Debug.Assert(syntax.Kind() is SyntaxKind.ConstructorDeclaration or SyntaxKind.RecordDeclaration or SyntaxKind.RecordStructDeclaration or SyntaxKind.ClassDeclaration or SyntaxKind.StructDeclaration);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4976case SyntaxKind.ConstructorDeclaration:
Syntax\LambdaUtilities.cs (1)
402case SyntaxKind.ConstructorDeclaration:
Syntax\SyntaxExtensions.cs (1)
34case SyntaxKind.ConstructorDeclaration:
Syntax\SyntaxNodeExtensions.cs (1)
99case SyntaxKind.ConstructorDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (10)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForConstructorsHelper.cs (1)
25[SyntaxKind.ConstructorDeclaration])
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
157case SyntaxKind.ConstructorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
53case SyntaxKind.ConstructorDeclaration: 124case SyntaxKind.ConstructorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
286if (type.Parent.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
433case SyntaxKind.ConstructorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
53case SyntaxKind.ConstructorDeclaration: 176case SyntaxKind.ConstructorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1285case SyntaxKind.ConstructorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
155public int ConstructorDeclaration => (int)SyntaxKind.ConstructorDeclaration;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
127SyntaxKind.ConstructorDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
18{ SyntaxKind.ConstructorDeclaration, 1 }, 110case SyntaxKind.ConstructorDeclaration:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\PrimaryConstructorTests.cs (5)
3757context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration); 4336Assert.Equal(SyntaxKind.ConstructorDeclaration, context.Operation.Syntax.Kind()); 5023context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration); 5259context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration); 5979context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration);
Semantics\RecordTests.cs (3)
26197context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration); 26799Assert.Equal(SyntaxKind.ConstructorDeclaration, context.Operation.Syntax.Kind()); 27486context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration);
Microsoft.CodeAnalysis.CSharp.Features (25)
ChangeSignature\CSharpChangeSignatureService.cs (5)
44SyntaxKind.ConstructorDeclaration, 71SyntaxKind.ConstructorDeclaration, 89SyntaxKind.ConstructorDeclaration, 275case SyntaxKind.ConstructorDeclaration: 302or SyntaxKind.ConstructorDeclaration
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
104case SyntaxKind.ConstructorDeclaration:
Completion\KeywordRecommenders\BaseKeywordRecommender.cs (1)
53token.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration) &&
Completion\KeywordRecommenders\ThisKeywordRecommender.cs (1)
47token.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration))
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
63case SyntaxKind.ConstructorDeclaration: 128SyntaxKind.ConstructorDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
180case SyntaxKind.ConstructorDeclaration:
EditAndContinue\SyntaxComparer.cs (5)
280case SyntaxKind.ConstructorDeclaration: 715case SyntaxKind.ConstructorDeclaration: 1040leftBlock.Parent.IsKind(SyntaxKind.ConstructorDeclaration) || 1041rightBlock.Parent.IsKind(SyntaxKind.ConstructorDeclaration)) 1455case SyntaxKind.ConstructorDeclaration:
LineSeparators\CSharpLineSeparatorService.cs (1)
84case SyntaxKind.ConstructorDeclaration:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (2)
152case SyntaxKind.ConstructorDeclaration: 189case SyntaxKind.ConstructorDeclaration:
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForConstructorsHelper.cs (1)
25[SyntaxKind.ConstructorDeclaration])
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
127SyntaxKind.ConstructorDeclaration or
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
272case SyntaxKind.ConstructorDeclaration: 403case SyntaxKind.ConstructorDeclaration:
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
402case SyntaxKind.ConstructorDeclaration:
Structure\Providers\ConstructorDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.ConstructorDeclaration));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RecordStructTests.cs (2)
5958context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration); 6705context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (21)
IncrementalParsing\IncrementalParsingTests.cs (1)
144SyntaxKind.ConstructorDeclaration);
Parsing\CollectionExpressionParsingTests.cs (1)
1094N(SyntaxKind.ConstructorDeclaration);
Parsing\DeclarationParsingTests.cs (5)
3504Assert.Equal(SyntaxKind.ConstructorDeclaration, cs.Members[0].Kind()); 3539Assert.Equal(SyntaxKind.ConstructorDeclaration, cs.Members[0].Kind()); 6412N(SyntaxKind.ConstructorDeclaration); 6448N(SyntaxKind.ConstructorDeclaration); 8160N(SyntaxKind.ConstructorDeclaration);
Parsing\FileModifierParsingTests.cs (2)
2586N(SyntaxKind.ConstructorDeclaration); 2681N(SyntaxKind.ConstructorDeclaration);
Parsing\LocalFunctionParsingTests.cs (1)
2827N(SyntaxKind.ConstructorDeclaration);
Parsing\MemberDeclarationParsingTests.cs (9)
251N(SyntaxKind.ConstructorDeclaration); 1536N(SyntaxKind.ConstructorDeclaration); 10887N(SyntaxKind.ConstructorDeclaration); 11062N(SyntaxKind.ConstructorDeclaration); 11236N(SyntaxKind.ConstructorDeclaration); 11643N(SyntaxKind.ConstructorDeclaration); 11940N(SyntaxKind.ConstructorDeclaration); 12002N(SyntaxKind.ConstructorDeclaration); 12063N(SyntaxKind.ConstructorDeclaration);
Parsing\ParsingErrorRecoveryTests.cs (2)
1994Assert.Equal(SyntaxKind.ConstructorDeclaration, agg.Members[0].Kind()); 7283Assert.Equal(SyntaxKind.ConstructorDeclaration, methodDecl.Kind()); //not MethodDeclaration
Microsoft.CodeAnalysis.CSharp.Workspaces (20)
CodeGeneration\CSharpSyntaxGenerator.cs (8)
366AsModifierList(accessibility, modifiers, SyntaxKind.ConstructorDeclaration), 737case SyntaxKind.ConstructorDeclaration: 1424if (modifiers.IsStatic && declaration.IsKind(SyntaxKind.ConstructorDeclaration) && accessibility != Accessibility.NotApplicable) 1564case SyntaxKind.ConstructorDeclaration: 1633(modifiers.IsStatic && declaration.IsKind(SyntaxKind.ConstructorDeclaration))) 2238case SyntaxKind.ConstructorDeclaration: 2485SyntaxKind.ConstructorDeclaration => ((ConstructorDeclarationSyntax)declaration).Body?.Statements, 2514case SyntaxKind.ConstructorDeclaration:
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
277case SyntaxKind.ConstructorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
157case SyntaxKind.ConstructorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
53case SyntaxKind.ConstructorDeclaration: 124case SyntaxKind.ConstructorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
286if (type.Parent.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
433case SyntaxKind.ConstructorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
53case SyntaxKind.ConstructorDeclaration: 176case SyntaxKind.ConstructorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1285case SyntaxKind.ConstructorDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
155public int ConstructorDeclaration => (int)SyntaxKind.ConstructorDeclaration;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
18{ SyntaxKind.ConstructorDeclaration, 1 }, 110case SyntaxKind.ConstructorDeclaration:
Microsoft.ML.InternalCodeAnalyzer (2)
ContractsCheckAnalyzer.cs (1)
164while (node != null && !node.IsKind(SyntaxKind.MethodDeclaration) && !node.IsKind(SyntaxKind.ConstructorDeclaration))
ContractsCheckNameofFixProvider.cs (1)
108while (temp != null && !temp.IsKind(SyntaxKind.MethodDeclaration) && !temp.IsKind(SyntaxKind.ConstructorDeclaration))
Microsoft.VisualStudio.LanguageServices.CSharp (13)
CodeModel\CSharpCodeModelService.cs (8)
95case SyntaxKind.ConstructorDeclaration: 157case SyntaxKind.ConstructorDeclaration: 557case SyntaxKind.ConstructorDeclaration: 610case SyntaxKind.ConstructorDeclaration: 813case SyntaxKind.ConstructorDeclaration: 893case SyntaxKind.ConstructorDeclaration: 932if (member.Kind() == SyntaxKind.ConstructorDeclaration) 3497case SyntaxKind.ConstructorDeclaration:
CodeModel\CSharpCodeModelService.NodeLocator.cs (4)
51case SyntaxKind.ConstructorDeclaration: 102case SyntaxKind.ConstructorDeclaration: 397case SyntaxKind.ConstructorDeclaration: 960case SyntaxKind.ConstructorDeclaration:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
223case SyntaxKind.ConstructorDeclaration: