29 references to ERR_FieldCantBeRefAny
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
927
case ErrorCode.
ERR_FieldCantBeRefAny
:
Symbols\Source\SourceMemberFieldSymbol.cs (1)
64
diagnostics.Add(ErrorCode.
ERR_FieldCantBeRefAny
, TypeSyntax?.Location ?? this.Locations[0], type);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1528
diagnostics.Add(ErrorCode.
ERR_FieldCantBeRefAny
, TypeLocation, type);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Semantics\PatternMatchingTests_Global.cs (1)
6265
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.ArgIterator").WithArguments("System.ArgIterator").WithLocation(3, 17)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (23)
Semantics\OutVarTests.cs (2)
32052
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.ArgIterator").WithArguments("System.ArgIterator").WithLocation(5, 20),
32055
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "var").WithArguments("System.ArgIterator").WithLocation(3, 20)
Semantics\RecordStructTests.cs (8)
1525
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.ArgIterator").WithArguments("System.ArgIterator").WithLocation(13, 5),
1528
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference").WithLocation(14, 5),
1577
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.ArgIterator").WithArguments("System.ArgIterator").WithLocation(14, 12),
1580
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference").WithLocation(15, 12),
1629
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.ArgIterator").WithArguments("System.ArgIterator").WithLocation(14, 12),
1632
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference").WithLocation(15, 12),
1717
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.ArgIterator").WithArguments("System.ArgIterator").WithLocation(13, 19),
1720
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference").WithLocation(14, 19),
Semantics\RecordTests.cs (8)
1269
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.ArgIterator").WithArguments("System.ArgIterator").WithLocation(13, 5),
1272
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference").WithLocation(14, 5),
1321
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.ArgIterator").WithArguments("System.ArgIterator").WithLocation(14, 12),
1324
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference").WithLocation(15, 12),
1373
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.ArgIterator").WithArguments("System.ArgIterator").WithLocation(14, 12),
1376
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference").WithLocation(15, 12),
1460
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.ArgIterator").WithArguments("System.ArgIterator").WithLocation(13, 19),
1463
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference").WithLocation(14, 19),
Semantics\ScriptSemanticsTests.cs (3)
1021
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.RuntimeArgumentHandle").WithArguments("System.RuntimeArgumentHandle"),
1023
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.ArgIterator").WithArguments("System.ArgIterator"),
1025
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference"));
Semantics\UnsafeTests.cs (2)
3278
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference").WithLocation(4, 12),
3284
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "ref System.TypedReference").WithArguments("System.TypedReference").WithLocation(5, 12)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\SymbolErrorTests.cs (2)
11266
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference"),
11269
Diagnostic(ErrorCode.
ERR_FieldCantBeRefAny
, "System.TypedReference").WithArguments("System.TypedReference"),