9 references to HasAssociatedField
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (1)
8760
bool isUsableAsField = eventSymbol.
HasAssociatedField
&& this.IsAccessible(eventSymbol.AssociatedField, ref useSiteInfo, (receiver != null) ? receiver.Type : null);
Binder\Binder_Statements.cs (1)
1751
return leastOverridden.
HasAssociatedField
?
Compilation\CSharpSemanticModel.cs (1)
1838
return symbol is object && symbol.
HasAssociatedField
&& this.IsAccessible(position, symbol.AssociatedField); //calls CheckAndAdjustPosition
Compiler\MethodBodySynthesizer.cs (1)
217
Debug.Assert(eventSymbol.
HasAssociatedField
);
FlowAnalysis\EmptyStructTypeCache.cs (1)
209
return (!eventSymbol.
HasAssociatedField
|| ShouldIgnoreStructField(eventSymbol, eventSymbol.Type)) ? null : eventSymbol.AssociatedField.AsMember(type);
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
196
Debug.Assert(eventSymbol.
HasAssociatedField
);
227
Debug.Assert(eventSymbol.
HasAssociatedField
);
Symbols\Source\SourceEventSymbol.cs (1)
542
else if (IsReadOnly &&
HasAssociatedField
)
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
36
return AssociatedEvent.
HasAssociatedField
;