1 write to IsUsableAsField
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7385
this.
IsUsableAsField
= isUsableAsField;
16 references to IsUsableAsField
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder.ValueChecks.cs (3)
1565
if (!boundEvent.
IsUsableAsField
)
3401
if (!eventAccess.
IsUsableAsField
)
3727
if (!eventAccess.
IsUsableAsField
)
Binder\Binder_Operators.cs (1)
2585
if (!eventAccess.
IsUsableAsField
|| eventAccess.EventSymbol.IsWindowsRuntimeEvent)
Generated\BoundNodes.xml.Generated.cs (5)
7400
if (receiverOpt != this.ReceiverOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(eventSymbol, this.EventSymbol) || isUsableAsField != this.
IsUsableAsField
|| resultKind != this.ResultKind || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11950
return node.Update(receiverOpt, node.EventSymbol, node.
IsUsableAsField
, node.ResultKind, type);
14474
updatedNode = node.Update(receiverOpt, eventSymbol, node.
IsUsableAsField
, node.ResultKind, infoAndType.Type!);
14479
updatedNode = node.Update(receiverOpt, eventSymbol, node.
IsUsableAsField
, node.ResultKind, node.Type);
16739
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
);