12 references to AddressOf
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder.ValueChecks.cs (10)
585case BoundKind.MethodGroup when valueKind == BindValueKind.AddressOf: 820if (valueKind == BindValueKind.AddressOf && this.IsInAsyncMethod()) 913Debug.Assert(!RequiresAssignableVariable(BindValueKind.AddressOf)); 914if (valueKind == BindValueKind.AddressOf && this.IsInAsyncMethod()) 980Debug.Assert(valueKind != BindValueKind.AddressOf); // If this assert fails, we probably should report ErrorCode.ERR_InvalidAddrOp 2708case BindValueKind.AddressOf: 2739case BindValueKind.AddressOf: 2777case BindValueKind.AddressOf: 2826Debug.Assert(kind != BindValueKind.AddressOf); // If this assert fails, we probably should report ErrorCode.ERR_InvalidAddrOp 2861if (kind == BindValueKind.AddressOf)
Binder\Binder_Operators.cs (2)
2481BoundExpression operand = BindToNaturalType(BindValue(node.Operand, diagnostics, BindValueKind.AddressOf), diagnostics); 2568bool receiverIsLValue = CheckValueKind(receiver.Syntax, receiver, BindValueKind.AddressOf, checkingReceiver: false, diagnostics: BindingDiagnosticBag.Discarded);