2 overrides of AsMember
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Tuples\TupleErrorFieldSymbol.cs (1)
193internal override FieldSymbol AsMember(NamedTypeSymbol newOwner)
Symbols\Tuples\TupleFieldSymbol.cs (1)
209internal override FieldSymbol AsMember(NamedTypeSymbol newOwner)
27 references to AsMember
Microsoft.CodeAnalysis.CSharp (27)
FlowAnalysis\EmptyStructTypeCache.cs (2)
205return (field.IsFixedSizeBuffer || ShouldIgnoreStructField(field, field.Type)) ? null : field.AsMember(type); 209return (!eventSymbol.HasAssociatedField || ShouldIgnoreStructField(eventSymbol, eventSymbol.Type)) ? null : eventSymbol.AssociatedField.AsMember(type);
Lowering\AsyncRewriter\AsyncRewriter.cs (5)
231F.Field(F.Local(stateMachineVariable), _builderField.AsMember(frameType)), 241F.Field(F.Local(stateMachineVariable), stateField.AsMember(frameType)), 250F.Field(F.Local(stateMachineVariable), instanceIdField.AsMember(frameType)), 263F.Field(F.Local(stateMachineVariable), _builderField.AsMember(frameType)), 271F.Field(F.Local(stateMachineVariable), _builderField.AsMember(frameType)),
Lowering\ClosureConversion\ClosureConversion.cs (3)
692FieldSymbol frameParent = capturedFrame.AsMember(frameType); 1056var field = containerAsFrame.SingletonCache.AsMember(constructedFrame); 1712cache = F.Field(receiver, cacheField.AsMember(constructedFrame)); //NOTE: the field was added to the unconstructed frame type.
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
79field = field.AsMember(_constructedContainer);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
72var immutableArrayOfTargetCollectionTypeEmpty = immutableArrayOfTEmpty.AsMember((NamedTypeSymbol)node.Type);
Lowering\LocalRewriter\LocalRewriter_Field.cs (1)
86FieldSymbol nestedFieldSymbol = tupleRestField.AsMember(currentLinkType);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (2)
644var callSiteTargetField = callSiteTargetFieldGeneric.AsMember(callSiteType); 715return _currentDynamicCallSiteContainer.IsGenericType ? field.AsMember(_currentDynamicCallSiteContainer) : field;
Lowering\MethodToClassRewriter.cs (3)
548.AsMember((NamedTypeSymbol)this.VisitType(node.Field.ContainingType)); 557.AsMember((NamedTypeSymbol)this.VisitType(node.FieldSymbol.ContainingType)); 692.AsMember((NamedTypeSymbol)TypeMap.SubstituteType(field.ContainingType).AsTypeSymbolOnly());
Lowering\StateMachineRewriter\CapturedSymbol.cs (2)
42var field = this.HoistedField.AsMember((NamedTypeSymbol)frame.Type); 60var field = this.HoistedField.AsMember((NamedTypeSymbol)frame.Type);
Symbols\MemberSymbolExtensions.cs (1)
272return ((FieldSymbol)s).AsMember(newOwner);
Symbols\SubstitutedEventSymbol.cs (1)
82return (object?)originalAssociatedField == null ? null : originalAssociatedField.AsMember(_containingType);
Symbols\Tuples\TupleFieldSymbol.cs (3)
214return new TupleElementFieldSymbol(newOwner, _underlyingField.OriginalDefinition.AsMember(newUnderlyingOwner), TupleElementIndex, Locations, IsImplicitlyDeclared); 340newCorrespondingDefaultFieldOpt = _correspondingDefaultField.OriginalDefinition.AsMember(newOwner); 343return new TupleVirtualElementFieldSymbol(newOwner, _underlyingField.OriginalDefinition.AsMember(newUnderlyingOwner), _name, TupleElementIndex, Locations, _cannotUse, IsImplicitlyDeclared, newCorrespondingDefaultFieldOpt);
Symbols\Tuples\TupleTypeSymbol.cs (1)
635var fieldSymbol = underlyingField.AsMember(currentValueTuple);
Symbols\TypeSymbol.cs (1)
2541elementField = elementField.AsMember((NamedTypeSymbol)this);