4 overrides of AssociatedField
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEEventSymbol.cs (1)
209internal override FieldSymbol? AssociatedField
Symbols\Retargeting\RetargetingEventSymbol.cs (1)
77internal override FieldSymbol? AssociatedField
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
133internal override FieldSymbol? AssociatedField => AssociatedEventField;
Symbols\SubstitutedEventSymbol.cs (1)
77internal override FieldSymbol? AssociatedField
38 references to AssociatedField
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder.ValueChecks.cs (1)
1594else if (RequiresVariableReceiver(receiver, eventSymbol.AssociatedField) && // NOTE: using field, not event
Binder\Binder_Expressions.cs (1)
8760bool isUsableAsField = eventSymbol.HasAssociatedField && this.IsAccessible(eventSymbol.AssociatedField, ref useSiteInfo, (receiver != null) ? receiver.Type : null);
Binder\Binder_Operators.cs (1)
2595fieldSymbol = eventSymbol.AssociatedField;
Compilation\CSharpSemanticModel.cs (1)
1838return symbol is object && symbol.HasAssociatedField && this.IsAccessible(position, symbol.AssociatedField); //calls CheckAndAdjustPosition
Compilation\SyntaxTreeSemanticModel.cs (1)
1269return (declaredSymbol.GetSymbol<EventSymbol>()).AssociatedField;
Compiler\MethodBodySynthesizer.cs (2)
239FieldSymbol field = eventSymbol.AssociatedField; 382fieldSymbol: eventSymbol.AssociatedField,
Emitter\Model\PEModuleBuilder.cs (1)
418FieldSymbol field = ((EventSymbol)member).AssociatedField;
FlowAnalysis\AbstractFlowPass.cs (2)
595VisitFieldAccessInternal(node1.ReceiverOpt, node1.EventSymbol.AssociatedField); 2293VisitFieldAccessInternal(node.ReceiverOpt, node.EventSymbol.AssociatedField);
FlowAnalysis\DataFlowsOutWalker.cs (1)
173FieldSymbol associatedField = eventAccess.EventSymbol.AssociatedField;
FlowAnalysis\DefiniteAssignment.cs (7)
810FieldSymbol associatedField = eventAccess.EventSymbol.AssociatedField; 993FieldSymbol associatedField = eventAccess.EventSymbol.AssociatedField; 1092member = eventSymbol.AssociatedField; 1418if (!MayRequireTracking(eventAccess.ReceiverOpt, eventAccess.EventSymbol.AssociatedField) || IsAssigned(eventAccess.ReceiverOpt, out unassignedSlot)) 1423unassignedSlot = GetOrCreateSlot(eventAccess.EventSymbol.AssociatedField, unassignedSlot); 2612FieldSymbol associatedField = @event.EventSymbol.AssociatedField; 2749FieldSymbol associatedField = node.EventSymbol.AssociatedField;
FlowAnalysis\EmptyStructTypeCache.cs (1)
209return (!eventSymbol.HasAssociatedField || ShouldIgnoreStructField(eventSymbol, eventSymbol.Type)) ? null : eventSymbol.AssociatedField.AsMember(type);
FlowAnalysis\NullableWalker.cs (1)
733field = e.AssociatedField;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
918return _bound.Convert(MemberInfoType, _bound.FieldInfo(((EventSymbol)symbol).AssociatedField)); 933return _bound.Convert(MemberInfoType, _bound.FieldInfo(((EventSymbol)symbol).AssociatedField));
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
278Binder.ReportDiagnosticsIfObsolete(_diagnostics, node.EventSymbol.AssociatedField, node.Syntax, hasBaseReceiver, _containingSymbol, _containingSymbol.ContainingType, BinderFlags.None);
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
229FieldSymbol? fieldSymbol = eventSymbol.AssociatedField;
Symbols\BaseTypeAnalysis.cs (1)
192field = ((EventSymbol)member).AssociatedField;
Symbols\EventSymbol.cs (3)
74return (object?)this.AssociatedField != null; 117return (object?)this.AssociatedField == null ? 119this.AssociatedField.GetAttributes();
Symbols\MemberSymbolExtensions.cs (1)
651field = ((EventSymbol)member).AssociatedField;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1000FieldSymbol associatedField = eventSymbol.AssociatedField;
Symbols\Retargeting\RetargetingEventSymbol.cs (2)
81return (object?)_underlyingEvent.AssociatedField == null 83: this.RetargetingTranslator.Retarget(_underlyingEvent.AssociatedField);
Symbols\Source\SourceMemberContainerSymbol.cs (4)
1531FieldSymbol? associatedField = ((EventSymbol)m).AssociatedField; 2393field = ((EventSymbol)member).AssociatedField; 2707f = ((EventSymbol)m).AssociatedField; 5148Debug.Assert(@event.AssociatedField is null);
Symbols\SubstitutedEventSymbol.cs (1)
81FieldSymbol? originalAssociatedField = OriginalDefinition.AssociatedField;
Symbols\Tuples\TupleTypeSymbol.cs (1)
1079var underlyingAssociatedField = underlyingEvent.AssociatedField;