103 references to ConstructorDeclaration
Microsoft.CodeAnalysis.CSharp (30)
_generated\1\Syntax.xml.Internal.Generated.cs (2)
32742return new ConstructorDeclarationSyntax(SyntaxKind.ConstructorDeclaration, attributeLists.Node, modifiers.Node, identifier, parameterList, initializer, body, expressionBody, semicolonToken, this.context); 38169return new ConstructorDeclarationSyntax(SyntaxKind.ConstructorDeclaration, attributeLists.Node, modifiers.Node, identifier, parameterList, initializer, body, expressionBody, semicolonToken);
_generated\2\Syntax.xml.Syntax.Generated.cs (1)
12931/// <item><description><see cref="SyntaxKind.ConstructorDeclaration"/></description></item>
Binder\Binder_Statements.cs (1)
3694if (method.Kind() == SyntaxKind.ConstructorDeclaration)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
463case SyntaxKind.ConstructorDeclaration:
Binder\ExpressionVariableFinder.cs (1)
49case SyntaxKind.ConstructorDeclaration:
Compilation\MemberSemanticModel.cs (2)
326else if (kind == SyntaxKind.ConstructorDeclaration) 2211case SyntaxKind.ConstructorDeclaration:
Compilation\MethodBodySemanticModel.cs (1)
91case SyntaxKind.ConstructorDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (4)
796case SyntaxKind.ConstructorDeclaration: 862case SyntaxKind.ConstructorDeclaration: 1082case SyntaxKind.ConstructorDeclaration: 1698case SyntaxKind.ConstructorDeclaration:
Declarations\DeclarationTreeBuilder.cs (3)
1155case SyntaxKind.ConstructorDeclaration: 1234case SyntaxKind.ConstructorDeclaration: 1287case SyntaxKind.ConstructorDeclaration:
FlowAnalysis\FlowAnalysisPass.cs (1)
200syntax.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 2546case SyntaxKind.ConstructorDeclaration: 5444case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
301case SyntaxKind.ConstructorDeclaration: 456case SyntaxKind.ConstructorDeclaration:
Symbols\Source\SourceConstructorSymbolBase.cs (1)
31Debug.Assert(syntax.Kind() is SyntaxKind.ConstructorDeclaration or SyntaxKind.RecordDeclaration or SyntaxKind.RecordStructDeclaration or SyntaxKind.ClassDeclaration or SyntaxKind.StructDeclaration or SyntaxKind.UnionDeclaration);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5832case SyntaxKind.ConstructorDeclaration:
Syntax\LambdaUtilities.cs (1)
404case SyntaxKind.ConstructorDeclaration:
Syntax\SyntaxExtensions.cs (1)
34case SyntaxKind.ConstructorDeclaration:
Syntax\SyntaxNodeExtensions.cs (1)
99case SyntaxKind.ConstructorDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForConstructorsHelper.cs (1)
25[SyntaxKind.ConstructorDeclaration])
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
179case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
56case SyntaxKind.ConstructorDeclaration: 139case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
285if (type.Parent.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
435case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
48case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1198case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
165public int ConstructorDeclaration => (int)SyntaxKind.ConstructorDeclaration;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
126SyntaxKind.ConstructorDeclaration or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
18{ SyntaxKind.ConstructorDeclaration, 1 }, 110case SyntaxKind.ConstructorDeclaration:
Microsoft.CodeAnalysis.CSharp.Features (28)
ChangeSignature\CSharpChangeSignatureService.cs (5)
44SyntaxKind.ConstructorDeclaration, 69SyntaxKind.ConstructorDeclaration, 88SyntaxKind.ConstructorDeclaration, 274case SyntaxKind.ConstructorDeclaration: 302or SyntaxKind.ConstructorDeclaration
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
104case SyntaxKind.ConstructorDeclaration:
Completion\KeywordRecommenders\BaseKeywordRecommender.cs (1)
48token.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration) &&
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
51case SyntaxKind.ConstructorDeclaration: 135SyntaxKind.ConstructorDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
181case SyntaxKind.ConstructorDeclaration:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
106case SyntaxKind.ConstructorDeclaration: 781case SyntaxKind.ConstructorDeclaration: 1688case SyntaxKind.ConstructorDeclaration: 2061case SyntaxKind.ConstructorDeclaration:
EditAndContinue\SyntaxComparer.cs (5)
282case SyntaxKind.ConstructorDeclaration: 720case SyntaxKind.ConstructorDeclaration: 1049leftBlock.Parent.IsKind(SyntaxKind.ConstructorDeclaration) || 1050rightBlock.Parent.IsKind(SyntaxKind.ConstructorDeclaration)) 1467case SyntaxKind.ConstructorDeclaration:
LineSeparators\CSharpLineSeparatorService.cs (1)
83case SyntaxKind.ConstructorDeclaration:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (2)
152case SyntaxKind.ConstructorDeclaration: 189case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForConstructorsHelper.cs (1)
25[SyntaxKind.ConstructorDeclaration])
src\roslyn\src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
126SyntaxKind.ConstructorDeclaration or
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
301case SyntaxKind.ConstructorDeclaration: 456case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
404case SyntaxKind.ConstructorDeclaration:
Structure\Providers\ConstructorDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.ConstructorDeclaration));
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CSharpStaticHolderTypes.Fixer.cs (1)
70if (member.Kind() != SyntaxKind.ConstructorDeclaration)
Microsoft.NetCore.Analyzers\Performance\CSharpUseSearchValues.cs (1)
195bool isCtor = member.IsKind(SyntaxKind.ConstructorDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (19)
CodeGeneration\CSharpSyntaxGenerator.cs (8)
368AsModifierList(accessibility, modifiers, SyntaxKind.ConstructorDeclaration), 735case SyntaxKind.ConstructorDeclaration: 1419if (modifiers.IsStatic && declaration.IsKind(SyntaxKind.ConstructorDeclaration) && accessibility != Accessibility.NotApplicable) 1565case SyntaxKind.ConstructorDeclaration: 1634(modifiers.IsStatic && declaration.IsKind(SyntaxKind.ConstructorDeclaration))) 1904case SyntaxKind.ConstructorDeclaration: 2380case SyntaxKind.ConstructorDeclaration: 2627SyntaxKind.ConstructorDeclaration => ((ConstructorDeclarationSyntax)declaration).Body?.Statements,
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
271case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
179case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
56case SyntaxKind.ConstructorDeclaration: 139case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
285if (type.Parent.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
435case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
48case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1198case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
165public int ConstructorDeclaration => (int)SyntaxKind.ConstructorDeclaration;
src\roslyn\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))
Roslyn.Diagnostics.CSharp.Analyzers (10)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
179case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
56case SyntaxKind.ConstructorDeclaration: 139case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
285if (type.Parent.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
435case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
48case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1198case SyntaxKind.ConstructorDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
165public int ConstructorDeclaration => (int)SyntaxKind.ConstructorDeclaration;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
18{ SyntaxKind.ConstructorDeclaration, 1 }, 110case SyntaxKind.ConstructorDeclaration: