58 references to ThisConstructorInitializer
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Expressions.cs (3)
4800initializerArgumentListOpt.Parent.Kind() != SyntaxKind.ThisConstructorInitializer; 4843Debug.Assert(initializerArgumentListOpt.Parent.Kind() == SyntaxKind.ThisConstructorInitializer); 4950(initializerArgumentListOpt != null && initializerArgumentListOpt.Parent.Kind() == SyntaxKind.ThisConstructorInitializer));
Binder\Binder_Statements.cs (1)
3723bool thisInitializer = initializer?.IsKind(SyntaxKind.ThisConstructorInitializer) == true;
Compilation\MemberSemanticModel.cs (2)
321else if (kind == SyntaxKind.ThisConstructorInitializer || kind == SyntaxKind.BaseConstructorInitializer || kind == SyntaxKind.PrimaryConstructorBaseType) 1547case SyntaxKind.ThisConstructorInitializer:
Compilation\MethodBodySemanticModel.cs (1)
82case SyntaxKind.ThisConstructorInitializer:
FlowAnalysis\NullableWalker.cs (1)
878if (initializerKind == (int)SyntaxKind.ThisConstructorInitializer)
Parser\LanguageParser.cs (1)
3333: SyntaxKind.ThisConstructorInitializer;
Symbols\MemberSymbolExtensions.cs (1)
381if (constructorSyntax?.Initializer?.Kind() == SyntaxKind.ThisConstructorInitializer)
Symbols\Source\SourceConstructorSymbol.cs (1)
34containingType, syntax, methodKind, isNullableAnalysisEnabled, syntax.Initializer?.Kind() == SyntaxKind.ThisConstructorInitializer, location, diagnostics, out bool modifierErrors, out bool report_ERR_StaticConstructorWithAccessModifiers))
Symbols\Source\SourceLocalSymbol.cs (3)
167nodeToBind.Kind() == SyntaxKind.ThisConstructorInitializer || 742nodeToBind.Kind() == SyntaxKind.ThisConstructorInitializer || 767case SyntaxKind.ThisConstructorInitializer:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5002if (constructorSyntax.Initializer?.Kind() != SyntaxKind.ThisConstructorInitializer)
Syntax\SyntaxFacts.cs (1)
332case ThisConstructorInitializer:
Syntax\SyntaxNodeExtensions.cs (1)
98case SyntaxKind.ThisConstructorInitializer:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
377Debug.Assert(constructorDeclaration.Initializer.Kind() == SyntaxKind.ThisConstructorInitializer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
279=> token.Parent is ConstructorInitializerSyntax(SyntaxKind.ThisConstructorInitializer) constructorInit &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
98SyntaxKind.ThisConstructorInitializer or 163case SyntaxKind.ThisConstructorInitializer:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
191SyntaxKind.ThisConstructorInitializer,
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (2)
58typeToGenerateIn = constructorInitializer.IsKind(SyntaxKind.ThisConstructorInitializer) 189constructorDeclarationSyntax.Initializer.IsKind(SyntaxKind.ThisConstructorInitializer))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (1)
96? SyntaxKind.ThisConstructorInitializer
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (2)
459or SyntaxKind.ThisConstructorInitializer) 473or SyntaxKind.ThisConstructorInitializer)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
133!argument.Parent.IsKind(SyntaxKind.ThisConstructorInitializer) &&
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Semantics\OutVarTests.cs (2)
3459var initializer = SyntaxFactory.ConstructorInitializer(SyntaxKind.ThisConstructorInitializer, arguments); 18806context.RegisterSyntaxNodeAction(Handle, SyntaxKind.ThisConstructorInitializer);
Semantics\PrimaryConstructorTests.cs (2)
5258context.RegisterSyntaxNodeAction(Handle3, SyntaxKind.ThisConstructorInitializer); 5978context.RegisterSyntaxNodeAction(Handle3, SyntaxKind.ThisConstructorInitializer);
Microsoft.CodeAnalysis.CSharp.Features (10)
ChangeSignature\CSharpChangeSignatureService.cs (4)
61SyntaxKind.ThisConstructorInitializer, 75SyntaxKind.ThisConstructorInitializer, 93SyntaxKind.ThisConstructorInitializer, 277case SyntaxKind.ThisConstructorInitializer:
EditAndContinue\BreakpointSpans.cs (1)
379case SyntaxKind.ThisConstructorInitializer:
ExtractMethod\CSharpSelectionValidator.cs (1)
108if (ancestor.Kind() is SyntaxKind.BaseConstructorInitializer or SyntaxKind.ThisConstructorInitializer)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
377Debug.Assert(constructorDeclaration.Initializer.Kind() == SyntaxKind.ThisConstructorInitializer);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
191SyntaxKind.ThisConstructorInitializer,
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (2)
58typeToGenerateIn = constructorInitializer.IsKind(SyntaxKind.ThisConstructorInitializer) 189constructorDeclarationSyntax.Initializer.IsKind(SyntaxKind.ThisConstructorInitializer))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RecordStructTests.cs (2)
5957context.RegisterSyntaxNodeAction(Handle3, SyntaxKind.ThisConstructorInitializer); 6704context.RegisterSyntaxNodeAction(Handle3, SyntaxKind.ThisConstructorInitializer);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\SemanticModelAPITests.cs (4)
1363var newSyntax = SyntaxFactory.ConstructorInitializer(SyntaxKind.ThisConstructorInitializer); 1392var newSyntax = SyntaxFactory.ConstructorInitializer(SyntaxKind.ThisConstructorInitializer); 2074var newSyntax = SyntaxFactory.ConstructorInitializer(SyntaxKind.ThisConstructorInitializer); 2143var newSyntax = SyntaxFactory.ConstructorInitializer(SyntaxKind.ThisConstructorInitializer);
Symbols\Source\NullablePublicAPITests.cs (2)
4639var newInitializer = SyntaxFactory.ConstructorInitializer(SyntaxKind.ThisConstructorInitializer, SyntaxFactory.ParseArgumentList(@"(M(out C c))")); 4670var newInitializer = SyntaxFactory.ConstructorInitializer(SyntaxKind.ThisConstructorInitializer, SyntaxFactory.ParseArgumentList(@"(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
SemanticModelTestBase.cs (1)
109n.IsKind(SyntaxKind.BaseConstructorInitializer) || n.IsKind(SyntaxKind.ThisConstructorInitializer);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
279=> token.Parent is ConstructorInitializerSyntax(SyntaxKind.ThisConstructorInitializer) constructorInit &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
98SyntaxKind.ThisConstructorInitializer or 163case SyntaxKind.ThisConstructorInitializer:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (1)
96? SyntaxKind.ThisConstructorInitializer
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (2)
459or SyntaxKind.ThisConstructorInitializer) 473or SyntaxKind.ThisConstructorInitializer)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
133!argument.Parent.IsKind(SyntaxKind.ThisConstructorInitializer) &&