135 references to ConstructorDeclaration
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Statements.cs (1)
3526if (method.Kind() == SyntaxKind.ConstructorDeclaration)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
446case SyntaxKind.ConstructorDeclaration:
Binder\ExpressionVariableFinder.cs (1)
49case SyntaxKind.ConstructorDeclaration:
Compilation\MemberSemanticModel.cs (2)
315else if (kind == SyntaxKind.ConstructorDeclaration) 2145case SyntaxKind.ConstructorDeclaration:
Compilation\MethodBodySemanticModel.cs (1)
94case SyntaxKind.ConstructorDeclaration:
Compilation\SyntaxTreeSemanticModel.cs (4)
792case SyntaxKind.ConstructorDeclaration: 858case SyntaxKind.ConstructorDeclaration: 1078case SyntaxKind.ConstructorDeclaration: 1676case SyntaxKind.ConstructorDeclaration:
CSharpDeclarationComputer.cs (2)
272case SyntaxKind.ConstructorDeclaration: 403case SyntaxKind.ConstructorDeclaration:
Declarations\DeclarationTreeBuilder.cs (2)
953case SyntaxKind.ConstructorDeclaration: 1037case SyntaxKind.ConstructorDeclaration:
FlowAnalysis\FlowAnalysisPass.cs (1)
177syntax.IsKind(SyntaxKind.ConstructorDeclaration) ||
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (3)
460if (!original.IsConstructorInitializer() || original.Syntax.Kind() != SyntaxKind.ConstructorDeclaration) 582case SyntaxKind.ConstructorDeclaration: 611case SyntaxKind.ConstructorDeclaration:
Lowering\Instrumentation\DebugInfoInjector.cs (1)
63case SyntaxKind.ConstructorDeclaration:
Parser\LanguageParser.cs (2)
2082case SyntaxKind.ConstructorDeclaration: 4802case 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)
4707case SyntaxKind.ConstructorDeclaration:
Syntax\LambdaUtilities.cs (1)
401case SyntaxKind.ConstructorDeclaration:
Syntax\SyntaxExtensions.cs (1)
34case SyntaxKind.ConstructorDeclaration:
Syntax\SyntaxNodeExtensions.cs (1)
99case SyntaxKind.ConstructorDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
BlockSyntaxExtensions.cs (1)
90case SyntaxKind.ConstructorDeclaration:
CSharpAccessibilityFacts.cs (2)
53case SyntaxKind.ConstructorDeclaration: 176case SyntaxKind.ConstructorDeclaration:
CSharpSyntaxFacts.cs (1)
1279case SyntaxKind.ConstructorDeclaration:
CSharpSyntaxKinds.cs (1)
142public int ConstructorDeclaration => (int)SyntaxKind.ConstructorDeclaration;
MemberDeclarationSyntaxExtensions.cs (2)
53case SyntaxKind.ConstructorDeclaration: 124case SyntaxKind.ConstructorDeclaration:
SemanticModelExtensions.cs (1)
284if (type.Parent.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration))
SyntaxNodeExtensions.cs (3)
165SyntaxKind.ConstructorDeclaration => ((ConstructorDeclarationSyntax)declaration).ParameterList, 420case SyntaxKind.ConstructorDeclaration: 511case SyntaxKind.ConstructorDeclaration:
UseExpressionBodyForConstructorsHelper.cs (1)
25ImmutableArray.Create(SyntaxKind.ConstructorDeclaration))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
CSharpDeclarationComparer.cs (2)
18{ SyntaxKind.ConstructorDeclaration, 1 }, 110case SyntaxKind.ConstructorDeclaration:
CSharpDeclareAsNullableCodeFixProvider.cs (1)
148SyntaxKind.ConstructorDeclaration or
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
20node.IsParentKind(SyntaxKind.ConstructorDeclaration) ||
Microsoft.CodeAnalysis.CSharp.Features (35)
ChangeSignature\CSharpChangeSignatureService.cs (5)
41SyntaxKind.ConstructorDeclaration, 64SyntaxKind.ConstructorDeclaration, 80SyntaxKind.ConstructorDeclaration, 265case SyntaxKind.ConstructorDeclaration: 292updatedNode.IsKind(SyntaxKind.ConstructorDeclaration) ||
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
104case SyntaxKind.ConstructorDeclaration:
Completion\KeywordRecommenders\BaseKeywordRecommender.cs (1)
53token.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration) &&
Completion\KeywordRecommenders\ThisKeywordRecommender.cs (1)
48token.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration))
CSharpDeclarationComputer.cs (2)
272case SyntaxKind.ConstructorDeclaration: 403case SyntaxKind.ConstructorDeclaration:
CSharpDeclareAsNullableCodeFixProvider.cs (1)
148SyntaxKind.ConstructorDeclaration or
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
65case SyntaxKind.ConstructorDeclaration: 130SyntaxKind.ConstructorDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
153case SyntaxKind.ConstructorDeclaration:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (9)
98case SyntaxKind.ConstructorDeclaration: 299if (bodyOrMatchRoot.Parent.IsKind(SyntaxKind.ConstructorDeclaration)) 342if (declarationBody.Parent.IsKind(SyntaxKind.ConstructorDeclaration)) 612if (oldBody.Parent.IsKind(SyntaxKind.ConstructorDeclaration)) 618RoslynDebug.Assert(newBody.Parent.IsKind(SyntaxKind.ConstructorDeclaration)); 751case SyntaxKind.ConstructorDeclaration: 1028case SyntaxKind.ConstructorDeclaration: 1657case SyntaxKind.ConstructorDeclaration: 2024case SyntaxKind.ConstructorDeclaration:
EditAndContinue\SyntaxComparer.cs (5)
279case SyntaxKind.ConstructorDeclaration: 706case SyntaxKind.ConstructorDeclaration: 1031leftBlock.Parent.IsKind(SyntaxKind.ConstructorDeclaration) || 1032rightBlock.Parent.IsKind(SyntaxKind.ConstructorDeclaration)) 1446case SyntaxKind.ConstructorDeclaration:
EditAndContinue\SyntaxUtilities.cs (1)
50case SyntaxKind.ConstructorDeclaration:
LambdaUtilities.cs (1)
401case SyntaxKind.ConstructorDeclaration:
LineSeparators\CSharpLineSeparatorService.cs (1)
85case SyntaxKind.ConstructorDeclaration:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (2)
152case SyntaxKind.ConstructorDeclaration: 189case SyntaxKind.ConstructorDeclaration:
Structure\Providers\ConstructorDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.ConstructorDeclaration));
UseExpressionBodyForConstructorsHelper.cs (1)
25ImmutableArray.Create(SyntaxKind.ConstructorDeclaration))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\PrimaryConstructorTests.cs (5)
3172context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration); 3754Assert.Equal(SyntaxKind.ConstructorDeclaration, context.Operation.Syntax.Kind()); 4442context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration); 4678context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration); 5398context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration);
Semantics\RecordStructTests.cs (2)
5928context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration); 6675context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration);
Semantics\RecordTests.cs (3)
26210context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration); 26815Assert.Equal(SyntaxKind.ConstructorDeclaration, context.Operation.Syntax.Kind()); 27503context.RegisterSyntaxNodeAction(Handle4, SyntaxKind.ConstructorDeclaration);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
IncrementalParsing\IncrementalParsingTests.cs (1)
142SyntaxKind.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); 8255N(SyntaxKind.ConstructorDeclaration);
Parsing\FileModifierParsingTests.cs (2)
2586N(SyntaxKind.ConstructorDeclaration); 2681N(SyntaxKind.ConstructorDeclaration);
Parsing\MemberDeclarationParsingTests.cs (2)
251N(SyntaxKind.ConstructorDeclaration); 1542N(SyntaxKind.ConstructorDeclaration);
Parsing\ParsingErrorRecoveryTests.cs (2)
1832Assert.Equal(SyntaxKind.ConstructorDeclaration, agg.Members[0].Kind()); 6479Assert.Equal(SyntaxKind.ConstructorDeclaration, methodDecl.Kind()); //not MethodDeclaration
Microsoft.CodeAnalysis.CSharp.Workspaces (23)
BlockSyntaxExtensions.cs (1)
90case SyntaxKind.ConstructorDeclaration:
CodeGeneration\CSharpSyntaxGenerator.cs (8)
341AsModifierList(accessibility, modifiers, SyntaxKind.ConstructorDeclaration), 715case SyntaxKind.ConstructorDeclaration: 1411if (modifiers.IsStatic && declaration.IsKind(SyntaxKind.ConstructorDeclaration) && accessibility != Accessibility.NotApplicable) 1556case SyntaxKind.ConstructorDeclaration: 1627(modifiers.IsStatic && declaration.IsKind(SyntaxKind.ConstructorDeclaration))) 2223case SyntaxKind.ConstructorDeclaration: 2475case SyntaxKind.ConstructorDeclaration: 2511case SyntaxKind.ConstructorDeclaration:
CSharpAccessibilityFacts.cs (2)
53case SyntaxKind.ConstructorDeclaration: 176case SyntaxKind.ConstructorDeclaration:
CSharpDeclarationComparer.cs (2)
18{ SyntaxKind.ConstructorDeclaration, 1 }, 110case SyntaxKind.ConstructorDeclaration:
CSharpSyntaxFacts.cs (1)
1279case SyntaxKind.ConstructorDeclaration:
CSharpSyntaxKinds.cs (1)
142public int ConstructorDeclaration => (int)SyntaxKind.ConstructorDeclaration;
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
278case SyntaxKind.ConstructorDeclaration:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (3)
165SyntaxKind.ConstructorDeclaration => ((ConstructorDeclarationSyntax)declaration).ParameterList, 420case SyntaxKind.ConstructorDeclaration: 511case SyntaxKind.ConstructorDeclaration:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
20node.IsParentKind(SyntaxKind.ConstructorDeclaration) ||
MemberDeclarationSyntaxExtensions.cs (2)
53case SyntaxKind.ConstructorDeclaration: 124case SyntaxKind.ConstructorDeclaration:
SemanticModelExtensions.cs (1)
284if (type.Parent.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration))
Microsoft.VisualStudio.LanguageServices.CSharp (13)
CodeModel\CSharpCodeModelService.cs (8)
94case SyntaxKind.ConstructorDeclaration: 156case SyntaxKind.ConstructorDeclaration: 560case SyntaxKind.ConstructorDeclaration: 613case SyntaxKind.ConstructorDeclaration: 816case SyntaxKind.ConstructorDeclaration: 896case SyntaxKind.ConstructorDeclaration: 935if (member.Kind() == SyntaxKind.ConstructorDeclaration) 3503case SyntaxKind.ConstructorDeclaration:
CodeModel\CSharpCodeModelService.NodeLocator.cs (4)
52case SyntaxKind.ConstructorDeclaration: 103case SyntaxKind.ConstructorDeclaration: 398case SyntaxKind.ConstructorDeclaration: 961case SyntaxKind.ConstructorDeclaration:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
224case SyntaxKind.ConstructorDeclaration: