17 references to ERR_SpecialByRefInLambda
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (1)
1297
Error(diagnostics, ErrorCode.
ERR_SpecialByRefInLambda
, node, runtimeArgumentHandleType);
Errors\ErrorFacts.cs (1)
577
case ErrorCode.
ERR_SpecialByRefInLambda
:
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
681
_diagnostics.Add(ErrorCode.
ERR_SpecialByRefInLambda
, syntax.Location, type);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
91
diagnostics.Add(ErrorCode.
ERR_SpecialByRefInLambda
, syntax.Location, type);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenAsyncSpillTests.cs (2)
3824
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "F").WithArguments("S").WithLocation(9, 17)
3829
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "F").WithArguments("S").WithLocation(9, 17)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\LocalFunctionTests.cs (2)
3456
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "__arglist").WithArguments("System.RuntimeArgumentHandle").WithLocation(18, 31),
3468
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "__arglist").WithArguments("System.RuntimeArgumentHandle").WithLocation(34, 31)
Semantics\RefEscapingTests.cs (1)
5343
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "handle = RentArray<int>(200, out var array)").WithArguments("PooledArrayHandle<int>").WithLocation(20, 19));
Semantics\SemanticErrorTests.cs (7)
7270
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "__arglist").WithArguments("System.RuntimeArgumentHandle"),
7273
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "__arglist").WithArguments("System.RuntimeArgumentHandle"),
7276
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "__arglist").WithArguments("System.RuntimeArgumentHandle")
7305
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "h").WithArguments("System.RuntimeArgumentHandle"),
7308
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "h").WithArguments("System.RuntimeArgumentHandle"));
7340
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "h1").WithArguments("System.RuntimeArgumentHandle"),
7343
Diagnostic(ErrorCode.
ERR_SpecialByRefInLambda
, "h2").WithArguments("System.RuntimeArgumentHandle")
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
2935
case ErrorCode.
ERR_SpecialByRefInLambda
: