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