59 references to ERR_UnsupportedFeatureInRuntimeAsync
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Invocation.cs (1)
271
diagnostics.Add(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, node, ContainingMemberOrLambda);
Errors\ErrorFacts.cs (1)
641
or ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (2)
33
diagnostics.Add(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, variable.GetFirstLocation(), method);
70
_factory.Diagnostics.Add(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (54)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
488
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await t").WithArguments("Test.F(dynamic)").WithLocation(9, 16)
CodeGen\CodeGenAsyncSpillTests.cs (37)
1261
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await G()").WithArguments("Test.F(int[])").WithLocation(18, 38)
1474
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await G()").WithArguments("Test.F(int[])").WithLocation(18, 38)
1562
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await G()").WithArguments("Test.F(int[])").WithLocation(18, 45)
1687
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await G()").WithArguments("C.F(int[])").WithLocation(23, 28),
1690
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await G()").WithArguments("C.F(int[])").WithLocation(23, 55)
2067
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await G()").WithArguments("Test.F(int[])").WithLocation(23, 28),
2070
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await G()").WithArguments("Test.F(int[])").WithLocation(23, 56)
2935
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await GetVal(4)").WithArguments("TestCase.Run<T>(T)").WithLocation(23, 23)
3134
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await (GetVal(arr[0]))").WithArguments("TestCase.Run<T>(T)").WithLocation(22, 23)
3348
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await (GetVal(arr[await GetVal(0)]))").WithArguments("TestCase.Run<T>(T)").WithLocation(22, 23)
3822
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await GetVal(4)").WithArguments("TestCase.Run<T>(T)").WithLocation(27, 26),
3825
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await (GetVal(arr[0, 0]))").WithArguments("TestCase.Run<T>(T)").WithLocation(32, 26),
3828
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await (GetVal(arr[0, await GetVal(0)]))").WithArguments("TestCase.Run<T>(T)").WithLocation(37, 26)
4165
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "Run").WithArguments("TestCase.Run()").WithLocation(23, 23)
4605
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await Task.Factory.StartNew(() => 42)").WithArguments("Driver.Run()").WithLocation(12, 19)
4685
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await Task.Factory.StartNew(() => 0)").WithArguments("Driver.Run()").WithLocation(12, 13)
4789
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await Task.Factory.StartNew(() => 0)").WithArguments("Driver.Run()").WithLocation(20, 13),
4792
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await Task.Factory.StartNew(() => 0)").WithArguments("Driver.Run()").WithLocation(20, 13)
4914
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await Task.Factory.StartNew(() => 0)").WithArguments("Driver.Run()").WithLocation(20, 64),
4917
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await Task.Factory.StartNew(() => 0)").WithArguments("Driver.Run()").WithLocation(20, 64),
4920
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await Task.Factory.StartNew(() => 0)").WithArguments("Driver.Run()").WithLocation(20, 13),
4923
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await Task.Factory.StartNew(() => 0)").WithArguments("Driver.Run()").WithLocation(20, 13)
6248
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "__arglist(One(), await Two())").WithArguments("TestCase.Run()").WithLocation(14, 17),
6320
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "Run").WithArguments("TestCase.Run()").WithLocation(11, 23)
6706
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await GetVal(0)").WithArguments("TestCase.Run()").WithLocation(21, 15)
6902
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await GetVal(0)").WithArguments("TestCase.Run()").WithLocation(21, 15)
7014
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, @"await mc.Goo<string>(null, await ((Func<Task<string>>)(async () => { await Task.Delay(1); return ""Test""; }))())").WithArguments("Test.Goo()").WithLocation(14, 19)
7139
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "Run").WithArguments("TestCase.Run()").WithLocation(15, 23),
7142
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await GetVal(0)").WithArguments("TestCase.Run()").WithLocation(23, 21)
7738
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await GetVal(4)").WithArguments("TestCase.Run()").WithLocation(39, 42),
7741
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await GetVal(4)").WithArguments("TestCase.Run()").WithLocation(39, 42),
7744
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await GetVal(1)").WithArguments("TestCase.Run()").WithLocation(44, 30),
7747
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await GetVal(1)").WithArguments("TestCase.Run()").WithLocation(44, 30)
7957
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await GetInt()").WithArguments("S.Main()").WithLocation(11, 34)
8191
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await GetInt()").WithArguments("S.M(S)").WithLocation(11, 34),
8310
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await Task.Factory.StartNew(() => 21)").WithArguments("C.F2()").WithLocation(22, 28)
8548
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "Goo1").WithArguments("s1.Goo1()").WithLocation(9, 23)
CodeGen\CodeGenAsyncTests.cs (11)
2610
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await d").WithArguments("Test.F1(dynamic)").WithLocation(9, 16)
2901
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await c.Method(1)").WithArguments("TestCase.Run()").WithLocation(44, 31),
2904
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await c.Method(2)").WithArguments("TestCase.Run()").WithLocation(50, 25),
2907
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await f()").WithArguments("TestCase.Run()").WithLocation(50, 44),
2910
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await c.Method(1)").WithArguments("TestCase.Run()").WithLocation(55, 35)
3079
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await (await dy * 5)").WithArguments("TestCase.Run()").WithLocation(39, 13),
3082
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await dy").WithArguments("TestCase.Run()").WithLocation(39, 20),
3085
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await (d + await dd)").WithArguments("TestCase.Run()").WithLocation(44, 13),
3088
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await dd").WithArguments("TestCase.Run()").WithLocation(44, 24)
3227
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await t2").WithArguments("TestCase.Run()").WithLocation(34, 13)
4869
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "await myTask").WithArguments("MyTask.Run<T>()").WithLocation(19, 17)
CodeGen\CodeGenAwaitForeachTests.cs (3)
4278
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "MoveNextAsync").WithArguments("C.AsyncEnumerator.MoveNextAsync()").WithLocation(31, 33)
6453
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "MoveNextAsync").WithArguments("C.AsyncEnumerator.MoveNextAsync()").WithLocation(32, 38),
6456
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "DisposeAsync").WithArguments("C.AsyncEnumerator.DisposeAsync()").WithLocation(39, 32)
CodeGen\CodeGenAwaitUsingTests.cs (2)
1465
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "x = new C()").WithArguments("C.Main()").WithLocation(6, 30)
1501
Diagnostic(ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
, "x = new C()").WithArguments("C.Main()").WithLocation(6, 30)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
2995
case ErrorCode.
ERR_UnsupportedFeatureInRuntimeAsync
: