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