57 references to BaseConstructorInitializer
Microsoft.CodeAnalysis.CSharp (10)
Compilation\MemberSemanticModel.cs (2)
321else if (kind == SyntaxKind.ThisConstructorInitializer || kind == SyntaxKind.BaseConstructorInitializer || kind == SyntaxKind.PrimaryConstructorBaseType) 1548case SyntaxKind.BaseConstructorInitializer:
Compilation\MethodBodySemanticModel.cs (1)
81case SyntaxKind.BaseConstructorInitializer:
FlowAnalysis\NullableWalker.cs (1)
883else if (initializerKind == (int)SyntaxKind.BaseConstructorInitializer)
Parser\LanguageParser.cs (1)
3313? SyntaxKind.BaseConstructorInitializer
Symbols\Source\SourceLocalSymbol.cs (3)
168nodeToBind.Kind() == SyntaxKind.BaseConstructorInitializer || 743nodeToBind.Kind() == SyntaxKind.BaseConstructorInitializer || 768case SyntaxKind.BaseConstructorInitializer:
Syntax\SyntaxFacts.cs (1)
331case BaseConstructorInitializer:
Syntax\SyntaxNodeExtensions.cs (1)
97case SyntaxKind.BaseConstructorInitializer:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
363if (constructorDeclaration.Initializer is null or (kind: SyntaxKind.BaseConstructorInitializer))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
276=> token.Parent is ConstructorInitializerSyntax(SyntaxKind.BaseConstructorInitializer) constructorInit &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
99SyntaxKind.BaseConstructorInitializer or 162case SyntaxKind.BaseConstructorInitializer:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\AddParameter\CSharpAddParameterCodeFixProvider.cs (1)
60if (constructorInitializer.IsKind(SyntaxKind.BaseConstructorInitializer))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (1)
97: SyntaxKind.BaseConstructorInitializer;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (2)
458or SyntaxKind.BaseConstructorInitializer 472or SyntaxKind.BaseConstructorInitializer
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
803ImmutableArray.Create(SyntaxKind.BaseConstructorInitializer));
Semantics\OutVarTests.cs (1)
3500var initializer = SyntaxFactory.ConstructorInitializer(SyntaxKind.BaseConstructorInitializer, arguments);
Semantics\PrimaryConstructorTests.cs (7)
2164speculativeBaseInitializer = SyntaxFactory.ConstructorInitializer(SyntaxKind.BaseConstructorInitializer, speculativePrimaryInitializer.ArgumentList); 2316speculativeBaseInitializer = SyntaxFactory.ConstructorInitializer(SyntaxKind.BaseConstructorInitializer, speculativePrimaryInitializer.ArgumentList); 3756context.RegisterSyntaxNodeAction(Handle3, SyntaxKind.BaseConstructorInitializer); 4365Assert.Equal(SyntaxKind.BaseConstructorInitializer, context.Operation.Syntax.Kind()); 5022context.RegisterSyntaxNodeAction(Handle3, SyntaxKind.BaseConstructorInitializer); 5257context.RegisterSyntaxNodeAction(Fail, SyntaxKind.BaseConstructorInitializer); 5977context.RegisterSyntaxNodeAction(Fail, SyntaxKind.BaseConstructorInitializer);
Semantics\RecordTests.cs (5)
22276speculativeBaseInitializer = SyntaxFactory.ConstructorInitializer(SyntaxKind.BaseConstructorInitializer, speculativePrimaryInitializer.ArgumentList); 22428speculativeBaseInitializer = SyntaxFactory.ConstructorInitializer(SyntaxKind.BaseConstructorInitializer, speculativePrimaryInitializer.ArgumentList); 26196context.RegisterSyntaxNodeAction(Handle3, SyntaxKind.BaseConstructorInitializer); 26828Assert.Equal(SyntaxKind.BaseConstructorInitializer, context.Operation.Syntax.Kind()); 27485context.RegisterSyntaxNodeAction(Handle3, SyntaxKind.BaseConstructorInitializer);
Microsoft.CodeAnalysis.CSharp.Features (10)
ChangeSignature\CSharpChangeSignatureService.cs (4)
62SyntaxKind.BaseConstructorInitializer, 76SyntaxKind.BaseConstructorInitializer, 94SyntaxKind.BaseConstructorInitializer, 278case SyntaxKind.BaseConstructorInitializer:
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
215var type = constructorInitializer.Kind() == SyntaxKind.BaseConstructorInitializer
EditAndContinue\BreakpointSpans.cs (1)
378case SyntaxKind.BaseConstructorInitializer:
ExtractMethod\CSharpSelectionValidator.cs (1)
111if (ancestor.Kind() is SyntaxKind.BaseConstructorInitializer or SyntaxKind.ThisConstructorInitializer)
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (1)
84var type = constructorInitializer.Kind() == SyntaxKind.BaseConstructorInitializer
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
363if (constructorDeclaration.Initializer is null or (kind: SyntaxKind.BaseConstructorInitializer))
src\Analyzers\CSharp\CodeFixes\AddParameter\CSharpAddParameterCodeFixProvider.cs (1)
60if (constructorInitializer.IsKind(SyntaxKind.BaseConstructorInitializer))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RecordStructTests.cs (2)
5956context.RegisterSyntaxNodeAction(Fail, SyntaxKind.BaseConstructorInitializer); 6703context.RegisterSyntaxNodeAction(Fail, SyntaxKind.BaseConstructorInitializer);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
575=> InternalSyntaxFactory.ConstructorInitializer(SyntaxKind.BaseConstructorInitializer, InternalSyntaxFactory.Token(SyntaxKind.ColonToken), InternalSyntaxFactory.Token(SyntaxKind.BaseKeyword), GenerateArgumentList()); 10791=> SyntaxFactory.ConstructorInitializer(SyntaxKind.BaseConstructorInitializer, SyntaxFactory.Token(SyntaxKind.ColonToken), SyntaxFactory.Token(SyntaxKind.BaseKeyword), GenerateArgumentList());
Parsing\DeclarationParsingTests.cs (1)
6420N(SyntaxKind.BaseConstructorInitializer);
Parsing\MemberDeclarationParsingTests.cs (1)
268N(SyntaxKind.BaseConstructorInitializer);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
SemanticModelTestBase.cs (1)
109n.IsKind(SyntaxKind.BaseConstructorInitializer) || n.IsKind(SyntaxKind.ThisConstructorInitializer);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
369baseConstructorArguments != null ? SyntaxFactory.ConstructorInitializer(SyntaxKind.BaseConstructorInitializer, SyntaxFactory.ArgumentList([.. baseConstructorArguments.Select(AsArgument)])) : null,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
276=> token.Parent is ConstructorInitializerSyntax(SyntaxKind.BaseConstructorInitializer) constructorInit &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
99SyntaxKind.BaseConstructorInitializer or 162case SyntaxKind.BaseConstructorInitializer:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (1)
97: SyntaxKind.BaseConstructorInitializer;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (2)
458or SyntaxKind.BaseConstructorInitializer 472or SyntaxKind.BaseConstructorInitializer
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendAnalyzer.cs (1)
71case SyntaxKind.BaseConstructorInitializer: