58 references to ERR_InvalidAddrOp
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.ValueChecks.cs (6)
1016
if (errorCode is ErrorCode.
ERR_InvalidAddrOp
or ErrorCode.ERR_RefLocalOrParamExpected)
1248
if (errorCode is ErrorCode.
ERR_InvalidAddrOp
or ErrorCode.ERR_IncrementLvalueExpected or ErrorCode.ERR_RefReturnThis or ErrorCode.ERR_RefLocalOrParamExpected or ErrorCode.ERR_RefLvalueExpected)
3506
return ErrorCode.
ERR_InvalidAddrOp
;
3537
return ErrorCode.
ERR_InvalidAddrOp
;
3575
return ErrorCode.
ERR_InvalidAddrOp
;
3660
Error(diagnostics, ErrorCode.
ERR_InvalidAddrOp
, node);
Binder\Binder_Statements.cs (1)
2454
Error(diagnostics, ErrorCode.
ERR_InvalidAddrOp
, ((BoundAddressOfOperator)operand).Operand.Syntax);
Errors\ErrorFacts.cs (1)
798
or ErrorCode.
ERR_InvalidAddrOp
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (3)
UnsafeEvolutionTests.cs (3)
1994
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "x").WithLocation(2, 11));
2000
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "x").WithLocation(2, 11),
2020
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "x").WithLocation(2, 11));
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)
18443
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "GetBuffer()[0]").WithLocation(6, 27),
18446
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "GetBuffer()[0]").WithLocation(11, 20)
18473
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "b[..]").WithLocation(8, 28),
18476
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "b[..]").WithLocation(12, 21)
Semantics\PatternMatchingTests3.cs (1)
2749
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)
3009
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "new()").WithLocation(9, 27)
Semantics\NullableReferenceTypesTests.cs (1)
2671
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "() => {}").WithLocation(6, 15),
Semantics\SemanticErrorTests.cs (1)
8356
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "a + b"));
Semantics\TargetTypedDefaultTests.cs (1)
2210
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "default").WithLocation(9, 27)
Semantics\UnsafeTests.cs (32)
6501
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "x"));
6547
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "x").WithLocation(13, 14),
6647
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "1").WithLocation(23, 14),
6653
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "local = 1").WithLocation(25, 15),
6662
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "local + local").WithLocation(28, 15),
6665
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "M(local)").WithLocation(29, 14),
6668
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "func()").WithLocation(30, 14),
6671
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "local += local").WithLocation(31, 15),
6674
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "local == 0 ? local : param").WithLocation(32, 15),
6677
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "(int)param").WithLocation(33, 15),
6680
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "default(int)").WithLocation(34, 14),
6683
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "delegate { return 1; }").WithLocation(35, 14),
6692
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "local++").WithLocation(38, 15),
6695
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "this[0]").WithLocation(39, 14),
6698
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "() => 1").WithLocation(40, 15),
6704
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "new System.Int32()").WithLocation(42, 15),
6707
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "P").WithLocation(43, 14),
6710
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "sizeof(int)").WithLocation(44, 14),
6716
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "+local").WithLocation(46, 15),
6719
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "&local").WithLocation(49, 16),
6722
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "new { }").WithLocation(51, 19),
6725
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "new int[1]").WithLocation(52, 19),
6728
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "array as object").WithLocation(53, 19),
6740
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "E += null").WithLocation(56, 19),
6743
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "F += null").WithLocation(57, 19),
6746
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "array is object").WithLocation(58, 19),
6749
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "array ?? array").WithLocation(59, 19),
6752
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "this").WithLocation(60, 19),
6755
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "typeof(int)").WithLocation(61, 19),
6758
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "Color.Red").WithLocation(62, 19)
9907
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "null").WithLocation(10, 26),
9919
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "()=>throw null").WithLocation(26, 27)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Parsing\AnonymousFunctionParsingTests.cs (4)
2102
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "delegate() { }").WithLocation(1, 24));
2115
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "delegate() { }").WithLocation(1, 24));
2191
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "delegate() { }").WithLocation(1, 45));
2201
Diagnostic(ErrorCode.
ERR_InvalidAddrOp
, "delegate() { }").WithLocation(1, 45));