3 instantiations of TupleVirtualElementFieldSymbol
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Tuples\TupleFieldSymbol.cs (1)
343
return new
TupleVirtualElementFieldSymbol
(newOwner, _underlyingField.OriginalDefinition.AsMember(newUnderlyingOwner), _name, TupleElementIndex, Locations, _cannotUse, IsImplicitlyDeclared, newCorrespondingDefaultFieldOpt);
Symbols\Tuples\TupleTypeSymbol.cs (2)
640
defaultTupleField = new
TupleVirtualElementFieldSymbol
(this,
676
members.Add(new
TupleVirtualElementFieldSymbol
(this,
7 references to TupleVirtualElementFieldSymbol
Microsoft.CodeAnalysis.CSharp (7)
FlowAnalysis\LocalDataFlowPass.cs (1)
174
var restField = containingType.GetMembers(NamedTypeSymbol.ValueTupleRestFieldName).FirstOrDefault(s => s is not
TupleVirtualElementFieldSymbol
) as FieldSymbol;
Symbols\Tuples\TupleFieldSymbol.cs (3)
47
Debug.Assert(container.Equals(underlyingField.ContainingType, TypeCompareKind.IgnoreDynamicAndTupleNames) || this is
TupleVirtualElementFieldSymbol
,
48
"virtual fields should be represented by " + nameof(
TupleVirtualElementFieldSymbol
));
271
"fields that map directly to underlying should not be represented by " + nameof(
TupleVirtualElementFieldSymbol
));
Symbols\Tuples\TupleTypeSymbol.cs (3)
573
Debug.Assert(currentMembers.All(m => !(m is
TupleVirtualElementFieldSymbol
)));
597
if (field is
TupleVirtualElementFieldSymbol
)
824
if (member is
TupleVirtualElementFieldSymbol
)