1 write to IsUsableAsField
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7384
this.
IsUsableAsField
= isUsableAsField;
16 references to IsUsableAsField
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder.ValueChecks.cs (3)
1588
if (!boundEvent.
IsUsableAsField
)
3424
if (!eventAccess.
IsUsableAsField
)
3750
if (!eventAccess.
IsUsableAsField
)
Binder\Binder_Operators.cs (1)
2585
if (!eventAccess.
IsUsableAsField
|| eventAccess.EventSymbol.IsWindowsRuntimeEvent)
Generated\BoundNodes.xml.Generated.cs (5)
7399
if (receiverOpt != this.ReceiverOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(eventSymbol, this.EventSymbol) || isUsableAsField != this.
IsUsableAsField
|| resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11949
return node.Update(receiverOpt, node.EventSymbol, node.
IsUsableAsField
, node.ResultKind, type);
14473
updatedNode = node.Update(receiverOpt, eventSymbol, node.
IsUsableAsField
, node.ResultKind, infoAndType.Type!);
14478
updatedNode = node.Update(receiverOpt, eventSymbol, node.
IsUsableAsField
, node.ResultKind, node.Type);
16738
new TreeDumperNode("isUsableAsField", node.
IsUsableAsField
, null),
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
275
if (node.
IsUsableAsField
)
Lowering\LocalRewriter\LocalRewriter.cs (1)
1054
if (eventAccess.
IsUsableAsField
)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
118
Debug.Assert(eventAccess.
IsUsableAsField
);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
722
Debug.Assert(eventAccess.
IsUsableAsField
);
730
eventAccess.EventSymbol, eventAccess.
IsUsableAsField
, eventAccess.ResultKind, eventAccess.Type);
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
193
Debug.Assert(left.
IsUsableAsField
);
213
Debug.Assert(node.
IsUsableAsField
);