14 references to PrimaryConstructorBaseTypeIfClass
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Statements.cs (1)
3684if (typeDecl.PrimaryConstructorBaseTypeIfClass is PrimaryConstructorBaseTypeSyntax baseWithArguments)
Binder\LocalBinderFactory.cs (1)
179Visit(node.PrimaryConstructorBaseTypeIfClass);
Compilation\MethodBodySemanticModel.cs (1)
263if (Root.FindToken(position).Parent?.AncestorsAndSelf().OfType<PrimaryConstructorBaseTypeSyntax>().FirstOrDefault() == typeDecl.PrimaryConstructorBaseTypeIfClass)
Compilation\SyntaxTreeSemanticModel.cs (7)
184case TypeDeclarationSyntax { ParameterList: { }, PrimaryConstructorBaseTypeIfClass: { } } typeDeclaration when TryGetSynthesizedPrimaryConstructor(typeDeclaration) is SynthesizedPrimaryConstructor: 813var argumentList = typeDecl.PrimaryConstructorBaseTypeIfClass?.ArgumentList; 877typeDecl.PrimaryConstructorBaseTypeIfClass is PrimaryConstructorBaseTypeSyntax baseWithArguments && 2448return node == typeDeclaration.PrimaryConstructorBaseTypeIfClass; 2450else if (node.Parent is PrimaryConstructorBaseTypeSyntax baseType && baseType == typeDeclaration.PrimaryConstructorBaseTypeIfClass) 2462!(node.Kind() == SyntaxKind.ArgumentList && node == typeDeclaration.PrimaryConstructorBaseTypeIfClass?.ArgumentList); 2499when typeDeclaration.PrimaryConstructorBaseTypeIfClass == declaredNode && TryGetSynthesizedPrimaryConstructor(typeDeclaration) is SynthesizedPrimaryConstructor ctor:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3580if (syntax is { PrimaryConstructorBaseTypeIfClass: { ArgumentList: { } baseParamList } })
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (3)
30if (syntax.PrimaryConstructorBaseTypeIfClass is not PrimaryConstructorBaseTypeSyntax { ArgumentList.Arguments.Count: not 0 }) 85return GetSyntax().PrimaryConstructorBaseTypeIfClass; 197TryGetBodyBinder().BindConstructorInitializer(GetSyntax().PrimaryConstructorBaseTypeIfClass, BindingDiagnosticBag.Discarded);