55 references to ERR_InvalidAddrOp
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.ValueChecks.cs (6)
774
if (errorCode is ErrorCode.
ERR_InvalidAddrOp
or ErrorCode.ERR_RefLocalOrParamExpected)
1005
if (errorCode is ErrorCode.
ERR_InvalidAddrOp
or ErrorCode.ERR_IncrementLvalueExpected or ErrorCode.ERR_RefReturnThis or ErrorCode.ERR_RefLocalOrParamExpected or ErrorCode.ERR_RefLvalueExpected)
3221
return ErrorCode.
ERR_InvalidAddrOp
;
3252
return ErrorCode.
ERR_InvalidAddrOp
;
3290
return ErrorCode.
ERR_InvalidAddrOp
;
3375
Error(diagnostics, ErrorCode.
ERR_InvalidAddrOp
, node);
Binder\Binder_Statements.cs (1)
2424
Error(diagnostics, ErrorCode.
ERR_InvalidAddrOp
, ((BoundAddressOfOperator)operand).Operand.Syntax);
Errors\ErrorFacts.cs (1)
787
or ErrorCode.
ERR_InvalidAddrOp
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Diagnostics\OperationAnalyzerTests.cs (1)
1387
.VerifyDiagnostics(Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "a + b").WithLocation(7, 18))
Semantics\InlineArrayTests.cs (4)
18437
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "GetBuffer()[0]").WithLocation(6, 27),
18440
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "GetBuffer()[0]").WithLocation(11, 20)
18467
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "b[..]").WithLocation(8, 28),
18470
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "b[..]").WithLocation(12, 21)
Semantics\PatternMatchingTests3.cs (1)
2753
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "5").WithLocation(8, 11),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
Semantics\AnonymousFunctionTests.cs (1)
1381
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "static delegate() { }").WithLocation(6, 32)
Semantics\ImplicitObjectCreationTests.cs (1)
3018
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "new()").WithLocation(9, 27)
Semantics\NullableReferenceTypesTests.cs (1)
2671
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "() => {}").WithLocation(6, 15),
Semantics\SemanticErrorTests.cs (1)
8311
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "a + b"));
Semantics\TargetTypedDefaultTests.cs (1)
2210
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "default").WithLocation(9, 27)
Semantics\UnsafeTests.cs (32)
6500
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "x"));
6546
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "x").WithLocation(13, 14),
6646
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "1").WithLocation(23, 14),
6652
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "local = 1").WithLocation(25, 15),
6661
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "local + local").WithLocation(28, 15),
6664
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "M(local)").WithLocation(29, 14),
6667
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "func()").WithLocation(30, 14),
6670
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "local += local").WithLocation(31, 15),
6673
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "local == 0 ? local : param").WithLocation(32, 15),
6676
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "(int)param").WithLocation(33, 15),
6679
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "default(int)").WithLocation(34, 14),
6682
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "delegate { return 1; }").WithLocation(35, 14),
6691
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "local++").WithLocation(38, 15),
6694
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "this[0]").WithLocation(39, 14),
6697
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "() => 1").WithLocation(40, 15),
6703
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "new System.Int32()").WithLocation(42, 15),
6706
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "P").WithLocation(43, 14),
6709
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "sizeof(int)").WithLocation(44, 14),
6715
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "+local").WithLocation(46, 15),
6718
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "&local").WithLocation(49, 16),
6721
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "new { }").WithLocation(51, 19),
6724
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "new int[1]").WithLocation(52, 19),
6727
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "array as object").WithLocation(53, 19),
6739
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "E += null").WithLocation(56, 19),
6742
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "F += null").WithLocation(57, 19),
6745
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "array is object").WithLocation(58, 19),
6748
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "array ?? array").WithLocation(59, 19),
6751
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "this").WithLocation(60, 19),
6754
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "typeof(int)").WithLocation(61, 19),
6757
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "Color.Red").WithLocation(62, 19)
9906
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "null").WithLocation(10, 26),
9918
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "()=>throw null").WithLocation(26, 27)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Parsing\AnonymousFunctionParsingTests.cs (4)
2111
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "delegate() { }").WithLocation(1, 24));
2124
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "delegate() { }").WithLocation(1, 24));
2200
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "delegate() { }").WithLocation(1, 45));
2210
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "delegate() { }").WithLocation(1, 45));