1 instantiation of SynthesizedPrimaryConstructor
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3423
var ctor = new
SynthesizedPrimaryConstructor
(this, syntax);
194 references to SynthesizedPrimaryConstructor
Microsoft.CodeAnalysis.CSharp (53)
Binder\Binder.CapturedParametersFinder.cs (3)
19
private readonly
SynthesizedPrimaryConstructor
_primaryConstructor;
23
private CapturedParametersFinder(
SynthesizedPrimaryConstructor
primaryConstructor, HashSet<string> namesToCheck, ArrayBuilder<ParameterSymbol> captured)
30
public static IReadOnlyDictionary<ParameterSymbol, FieldSymbol> GetCapturedParameters(
SynthesizedPrimaryConstructor
primaryConstructor)
Binder\Binder.ValueChecks.cs (1)
939
parameterSymbol.ContainingSymbol is
SynthesizedPrimaryConstructor
primaryConstructor &&
Binder\Binder_Expressions.cs (5)
1914
var
primaryCtor = parameter.ContainingSymbol as
SynthesizedPrimaryConstructor
;
2033
private bool IsInDeclaringTypeInstanceMember(
SynthesizedPrimaryConstructor
primaryCtor)
4278
if (constructor is
SynthesizedPrimaryConstructor
primaryConstructor && primaryConstructor.GetCapturedParameters().Any())
4399
constructor is not
SynthesizedPrimaryConstructor
&&
Binder\Binder_Operators.cs (1)
2606
if (parameterSymbol.ContainingSymbol is
SynthesizedPrimaryConstructor
primaryConstructor &&
Binder\Binder_Symbols.cs (1)
1488
if (colorColorValueReceiver is BoundParameter { ParameterSymbol: { ContainingSymbol:
SynthesizedPrimaryConstructor
primaryConstructor } parameter } &&
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1227
var
primaryConstructor = type.PrimaryConstructor;
Binder\BinderFactory.cs (1)
140
internal InMethodBinder GetPrimaryConstructorInMethodBinder(
SynthesizedPrimaryConstructor
constructor)
Compilation\MethodBodySemanticModel.cs (1)
262
if (MemberSymbol is
SynthesizedPrimaryConstructor
primaryCtor &&
Compilation\SyntaxTreeSemanticModel.cs (6)
180
case TypeDeclarationSyntax { ParameterList: { }, PrimaryConstructorBaseTypeIfClass: { } } typeDeclaration when TryGetSynthesizedPrimaryConstructor(typeDeclaration) is
SynthesizedPrimaryConstructor
:
1089
SynthesizedPrimaryConstructor
symbol = TryGetSynthesizedPrimaryConstructor((TypeDeclarationSyntax)node);
1250
private
SynthesizedPrimaryConstructor
TryGetSynthesizedPrimaryConstructor(TypeDeclarationSyntax node)
1253
var
symbol = (type as SourceMemberContainerTypeSymbol)?.PrimaryConstructor;
2428
case TypeDeclarationSyntax typeDeclaration when TryGetSynthesizedPrimaryConstructor(typeDeclaration) is
SynthesizedPrimaryConstructor
ctor:
2495
when typeDeclaration.PrimaryConstructorBaseTypeIfClass == declaredNode && TryGetSynthesizedPrimaryConstructor(typeDeclaration) is
SynthesizedPrimaryConstructor
ctor:
Compiler\MethodCompiler.cs (4)
1085
methodSymbol is
SynthesizedPrimaryConstructor
||
1268
if (methodSymbol is
SynthesizedPrimaryConstructor
primaryCtor)
1671
isPrimaryConstructor: method is
SynthesizedPrimaryConstructor
);
1790
if (method is
SynthesizedPrimaryConstructor
primaryCtor && method.ContainingType.IsStructType())
FlowAnalysis\DataFlowsOutWalker.cs (1)
234
param.ContainingSymbol is
SynthesizedPrimaryConstructor
); // Primary constructor parameter can be used in other initializers and methods
FlowAnalysis\DefiniteAssignment.cs (4)
342
(not
SynthesizedPrimaryConstructor
):
668
!(captured is ParameterSymbol { ContainingSymbol:
SynthesizedPrimaryConstructor
primaryConstructor } parameter &&
725
if (symbol is ParameterSymbol { ContainingSymbol:
SynthesizedPrimaryConstructor
} parameter)
1819
if (!parameter.IsThis && parameter.RefKind != RefKind.Out && parameter.ContainingSymbol is
SynthesizedPrimaryConstructor
primaryCtor)
FlowAnalysis\NullableWalker.cs (2)
2077
if (symbol is ParameterSymbol { ContainingSymbol:
SynthesizedPrimaryConstructor
primaryConstructor } parameter &&
2702
if (methodSymbol is
SynthesizedPrimaryConstructor
)
FlowAnalysis\ReadWriteWalker.cs (1)
90
Debug.Assert(!ignoreThisParameter || m is
SynthesizedPrimaryConstructor
);
Lowering\ClosureConversion\ClosureConversion.cs (2)
784
_currentMethod is not
SynthesizedPrimaryConstructor
)
794
Debug.Assert(_currentMethod is not
SynthesizedPrimaryConstructor
primaryConstructor ||
Lowering\LocalRewriter\LocalRewriter.cs (1)
276
if (node.ParameterSymbol.ContainingSymbol is
SynthesizedPrimaryConstructor
primaryCtor &&
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
390
return expression is BoundParameter { ParameterSymbol: { ContainingSymbol:
SynthesizedPrimaryConstructor
primaryCtor } parameter } &&
Symbols\Source\SourceMemberContainerSymbol.cs (13)
1025
internal readonly
SynthesizedPrimaryConstructor
? PrimaryConstructor;
1034
SynthesizedPrimaryConstructor
? primaryConstructor,
2747
public
SynthesizedPrimaryConstructor
? PrimaryConstructor;
2807
public readonly
SynthesizedPrimaryConstructor
? PrimaryConstructor;
2823
SynthesizedPrimaryConstructor
? primaryConstructor,
3196
internal
SynthesizedPrimaryConstructor
? PrimaryConstructor
3213
SynthesizedPrimaryConstructor
? primaryConstructor;
3283
SynthesizedPrimaryConstructor
? primaryConstructor;
3423
var
ctor = new SynthesizedPrimaryConstructor(this, syntax);
3909
var
ctor = declaredMembersAndInitializers.PrimaryConstructor;
3959
var
ctor = declaredMembersAndInitializers.PrimaryConstructor;
4017
void addDeconstruct(
SynthesizedPrimaryConstructor
ctor, ImmutableArray<Symbol> positionalMembers)
4538
!(SynthesizedRecordCopyCtor.HasCopyConstructorSignature(method) && method is not
SynthesizedPrimaryConstructor
))
Symbols\Source\SourceMemberMethodSymbol.cs (1)
766
if (this is
SynthesizedPrimaryConstructor
primaryConstructor)
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (2)
15
private readonly
SynthesizedPrimaryConstructor
_ctor;
20
SynthesizedPrimaryConstructor
ctor,
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
94
return parameter.ContainingSymbol is
SynthesizedPrimaryConstructor
&&
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (140)
Semantics\PrimaryConstructorTests.cs (105)
520
Assert.IsType<
SynthesizedPrimaryConstructor
>(ctor);
632
if (ctor is
SynthesizedPrimaryConstructor
)
688
Assert.IsType<
SynthesizedPrimaryConstructor
>(ctor);
714
Assert.IsType<
SynthesizedPrimaryConstructor
>(c.InstanceConstructors[0]);
1870
Assert.Empty(((
SynthesizedPrimaryConstructor
)symbol.GetSymbol().ContainingSymbol).GetCapturedParameters());
5476
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
5596
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
5678
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
5746
var
cConstructor = c.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
5780
var
dConstructor = d.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
5821
var
eConstructor = e.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
5856
var
eConstructor = e.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
5895
var
cConstructor = c.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
5928
var
dConstructor = d.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
5973
var
eConstructor = e.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
6017
var
eConstructor = e.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
6057
var
eConstructor = e.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
6093
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
6147
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
7222
var capturedParameters = comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters();
7692
Assert.Empty(((CSharpCompilation)verifier.Compilation).GetTypeByMetadataName("C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
8872
Assert.Empty(comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
8932
Assert.Equal(1, comp.GetTypeByMetadataName("C2").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters().Count);
8933
Assert.Empty(comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
8985
Assert.Empty(comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
8986
Assert.Equal(1, comp.GetTypeByMetadataName("C2").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters().Count);
8987
Assert.Equal(1, comp.GetTypeByMetadataName("C3").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters().Count);
8988
Assert.Equal(2, comp.GetTypeByMetadataName("C4").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters().Count);
9007
Assert.Equal(1, comp.GetTypeByMetadataName("C3").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters().Count);
9034
Assert.Equal(2, comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters().Count);
9136
Assert.Equal(1, comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters().Count);
9179
Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9214
Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9257
Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9295
Assert.NotEmpty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9326
Assert.NotEmpty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9366
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9402
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9438
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9477
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9516
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9552
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9588
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9627
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9666
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9705
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9741
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9777
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9817
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9864
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9908
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9948
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
9991
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10038
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10080
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10125
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10160
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10190
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10225
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10255
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10290
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10321
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10357
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10388
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10431
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10470
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10509
Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10549
Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10592
Assert.Empty(comp.GetTypeByMetadataName("Color+C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10782
Assert.Equal(isStatic, comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters().IsEmpty());
10826
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10827
Assert.Empty(comp.GetTypeByMetadataName("S2").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10828
Assert.NotEmpty(comp.GetTypeByMetadataName("S3").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10900
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10936
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
10979
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
11027
Assert.Equal("System.String P1", comp1.GetTypeByMetadataName("C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters().Single().Key.ToTestDisplayString());
11028
Assert.Equal("System.Int32 p2", comp1.GetTypeByMetadataName("C2").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters().Single().Key.ToTestDisplayString());
11029
Assert.Equal(2, comp1.GetTypeByMetadataName("C3").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters().Count);
11059
Assert.Empty(comp2.GetTypeByMetadataName("C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
11060
Assert.Empty(comp2.GetTypeByMetadataName("C2").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
11100
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
11144
Assert.Empty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
11190
Assert.NotEmpty(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
13602
Assert.All(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetBackingFields(), f => Assert.True(f.IsReadOnly));
13798
Assert.All(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetBackingFields(), f => Assert.True(f.IsReadOnly));
13999
Assert.All(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetBackingFields(), f => Assert.True(f.IsReadOnly));
14225
Assert.All(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetBackingFields(), f => Assert.True(f.IsReadOnly));
14536
Assert.All(comp.GetTypeByMetadataName("S1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetBackingFields(), f => Assert.True(f.IsReadOnly));
15102
Assert.Single(comp.GetTypeByMetadataName("C1").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
15398
Assert.Empty(comp.GetTypeByMetadataName("C").InstanceConstructors.OfType<
SynthesizedPrimaryConstructor
>().Single().GetCapturedParameters());
Semantics\RecordStructTests.cs (2)
3206
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
Semantics\RecordTests.cs (33)
9985
var
b1Ctor = comp.GetTypeByMetadataName("B1")!.GetMembersUnordered().OfType<
SynthesizedPrimaryConstructor
>().Single();
22101
Assert.Empty(((
SynthesizedPrimaryConstructor
)symbol.GetSymbol().ContainingSymbol).GetCapturedParameters());
28159
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28273
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28412
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28483
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28567
var
cConstructor = c.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28614
var
dConstructor = d.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28668
var
eConstructor = e.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28716
var
eConstructor = e.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28767
var
cConstructor = c.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28813
var
dConstructor = d.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28871
var
eConstructor = e.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28929
var
eConstructor = e.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
28978
var
eConstructor = e.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
29027
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
29096
var
constructor = cMember.GetMembers(".ctor").OfType<
SynthesizedPrimaryConstructor
>().Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\RecordTests.cs (1)
123
if (ctor is
SynthesizedPrimaryConstructor
)