39 references to ERR_BadSpecialByRefLocal
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
3032
Error(diagnostics, forUsingExpression ? ErrorCode.ERR_BadSpecialByRefUsing : ErrorCode.
ERR_BadSpecialByRefLocal
, syntax, type);
Errors\ErrorFacts.cs (1)
1493
case ErrorCode.
ERR_BadSpecialByRefLocal
:
Symbols\Source\SourceMethodSymbol.cs (1)
75
diagnostics.Add(ErrorCode.
ERR_BadSpecialByRefLocal
, getLocation(parameter, location), parameter.Type);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenAsyncIteratorTests.cs (1)
641
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("S").WithLocation(11, 24)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (35)
Semantics\BindingAsyncTests.cs (4)
3173
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "tr").WithArguments("System.TypedReference"));
3194
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "TypedReference").WithArguments("System.TypedReference"),
3218
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("System.TypedReference").WithLocation(9, 9),
3243
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "TypedReference").WithArguments("System.TypedReference"),
Semantics\LambdaTests.cs (3)
5958
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "r").WithArguments("System.TypedReference").WithLocation(10, 39),
5961
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "h").WithArguments("System.RuntimeArgumentHandle").WithLocation(11, 46),
5964
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "i").WithArguments("System.ArgIterator").WithLocation(12, 36));
Semantics\OutVarTests.cs (3)
19586
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("System.ArgIterator").WithLocation(8, 25),
19635
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "System.ArgIterator").WithArguments("System.ArgIterator").WithLocation(8, 25),
19638
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("System.ArgIterator").WithLocation(9, 9),
Semantics\RefEscapingTests.cs (2)
4993
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("S").WithLocation(12, 9),
4996
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("S").WithLocation(14, 9),
Semantics\SpanStackSafetyTests.cs (21)
980
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "arg").WithArguments("System.Span<int>").WithLocation(11, 48)
1013
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "Span<int>").WithArguments("System.Span<int>").WithLocation(13, 9),
1019
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("System.Span<int>").WithLocation(14, 9),
1030
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "Span<int>").WithArguments("System.Span<int>").WithLocation(13, 9),
1036
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("System.Span<int>").WithLocation(14, 9),
1070
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("System.Span<int>").WithLocation(9, 16),
1073
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "Span<int>").WithArguments("System.Span<int>").WithLocation(10, 16)
1108
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "ReadOnlySpan<char>").WithArguments("System.ReadOnlySpan<char>").WithLocation(10, 18),
1111
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "ReadOnlySpan<char>").WithArguments("System.ReadOnlySpan<char>").WithLocation(15, 13)
1141
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "Span<int>").WithArguments("System.Span<int>").WithLocation(9, 10),
1144
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "Span<int>").WithArguments("System.Span<int>").WithLocation(9, 24),
1147
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "s3").WithArguments("System.Span<int>").WithLocation(10, 14),
1150
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "s4").WithArguments("System.Span<int>").WithLocation(10, 18),
1153
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("System.Span<int>").WithLocation(11, 10),
1156
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("System.Span<int>").WithLocation(11, 18)
1193
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("RS").WithLocation(9, 16),
1196
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "RS").WithArguments("RS").WithLocation(10, 16),
1199
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "RS").WithArguments("RS").WithLocation(11, 15),
1202
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "var").WithArguments("RS").WithLocation(12, 15)
1230
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "s1").WithArguments("System.Span<int>").WithLocation(9, 25),
1233
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "Span<int>").WithArguments("System.Span<int>").WithLocation(10, 21)
Semantics\StackAllocInitializerTests.cs (1)
763
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "Span<int>").WithArguments("System.Span<int>").WithLocation(8, 9)
Semantics\UsingStatementTests.cs (1)
1133
Diagnostic(ErrorCode.
ERR_BadSpecialByRefLocal
, "S1").WithArguments("S1").WithLocation(16, 22)