52266 references to WithLocation
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (5)
RemoveUnusedParametersTests.cs (5)
1222
Diagnostic(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p1").
WithLocation
(5, 15),
1223
Diagnostic(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p2").
WithLocation
(5, 23),
1224
Diagnostic(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p3").
WithLocation
(13, 23),
1225
Diagnostic(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p4").
WithLocation
(13, 31),
1226
Diagnostic(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p5").
WithLocation
(19, 17));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (113)
CommandLineTests.cs (113)
472
Diagnostic(ErrorCode.ERR_NoOutputDirectory).
WithLocation
(1, 1)
484
Diagnostic(ErrorCode.FTL_InvalidInputFileName).WithArguments("web.config").
WithLocation
(1, 1),
486
Diagnostic(ErrorCode.ERR_NoOutputDirectory).
WithLocation
(1, 1)
498
Diagnostic(ErrorCode.ERR_FileNotFound).WithArguments("*").
WithLocation
(1, 1),
500
Diagnostic(ErrorCode.ERR_NoOutputDirectory).
WithLocation
(1, 1)
606
Diagnostic(ErrorCode.ERR_BadSwitch).WithArguments("-debug+/debug:portable").
WithLocation
(1, 1),
608
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
610
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1)
958
Diagnostic(ErrorCode.ERR_NoFileSpec).WithArguments("").
WithLocation
(1, 1));
965
Diagnostic(ErrorCode.ERR_NoFileSpec).WithArguments("").
WithLocation
(1, 1));
979
Diagnostic(ErrorCode.ERR_NoFileSpec).WithArguments("").
WithLocation
(1, 1));
1007
Diagnostic(ErrorCode.ERR_NoFileSpec).WithArguments("").
WithLocation
(1, 1));
1044
Diagnostic(ErrorCode.ERR_NoFileSpec).WithArguments("").
WithLocation
(1, 1));
1062
Diagnostic(ErrorCode.FTL_InvalidInputFileName).WithArguments("iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii").
WithLocation
(1, 1));
1306
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1308
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1314
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1316
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1322
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1324
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1330
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1332
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1338
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1340
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1346
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1348
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1354
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1356
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1362
Diagnostic(ErrorCode.ERR_BadSwitch).WithArguments("/t").
WithLocation
(1, 1),
1364
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1366
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1371
Diagnostic(ErrorCode.FTL_InvalidTarget).
WithLocation
(1, 1),
1373
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1375
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1380
Diagnostic(ErrorCode.FTL_InvalidTarget).
WithLocation
(1, 1),
1382
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1384
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1389
Diagnostic(ErrorCode.ERR_BadSwitch).WithArguments("/T+").
WithLocation
(1, 1),
1391
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1393
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1398
Diagnostic(ErrorCode.ERR_BadSwitch).WithArguments("/TARGET-:").
WithLocation
(1, 1),
1400
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1402
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1));
1451
Diagnostic(ErrorCode.ERR_FileNotFound).WithArguments("//langversion:?").
WithLocation
(1, 1)
1477
Diagnostic(ErrorCode.ERR_BadCompatMode).WithArguments("-1").
WithLocation
(1, 1));
1627
Diagnostic(ErrorCode.ERR_BadCompatMode).WithArguments(value).
WithLocation
(1, 1)
1642
Diagnostic(ErrorCode.ERR_LanguageVersionCannotHaveLeadingZeroes).WithArguments(value).
WithLocation
(1, 1));
1653
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<text>", "/langversion:").
WithLocation
(1, 1));
1662
Diagnostic(ErrorCode.WRN_NoSources).
WithLocation
(1, 1),
1664
Diagnostic(ErrorCode.ERR_OutputNeedsName).
WithLocation
(1, 1)
2066
Diagnostic(ErrorCode.ERR_NoFileSpec).WithArguments(@"/pdb:""""").
WithLocation
(1, 1));
3543
Diagnostic(ErrorCode.ERR_NoRefOutWhenRefOnly).
WithLocation
(1, 1));
3554
Diagnostic(ErrorCode.ERR_BadSwitch).WithArguments("/refonly:incorrect").
WithLocation
(1, 1)
3560
Diagnostic(ErrorCode.ERR_NoNetModuleOutputWhenRefOutOrRefOnly).
WithLocation
(1, 1)
3566
Diagnostic(ErrorCode.ERR_NoNetModuleOutputWhenRefOutOrRefOnly).
WithLocation
(1, 1)
4007
Diagnostic(ErrorCode.FTL_InvalidInputFileName).WithArguments(@"C:""My Folder\MyBinary.xml").
WithLocation
(1, 1));
4280
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<text>", "modulename").
WithLocation
(1, 1)
4652
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("nullable", "Enable", "7.0", "8.0").
WithLocation
(1, 1)
4667
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<text>", "nullable").
WithLocation
(1, 1)
4674
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("yes").
WithLocation
(1, 1)
4681
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("nullable", "Enable", "7.0", "8.0").
WithLocation
(1, 1));
4691
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1));
4708
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<text>", "nullable").
WithLocation
(1, 1)
4715
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("yes").
WithLocation
(1, 1)
4730
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("Safeonly").
WithLocation
(1, 1)
4748
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<text>", "nullable").
WithLocation
(1, 1)
4755
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("YES").
WithLocation
(1, 1)
4770
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1)
4788
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<text>", "nullable").
WithLocation
(1, 1)
4795
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("YES").
WithLocation
(1, 1)
4810
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1)
4816
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1)
4823
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1)
4830
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1)
4837
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1),
4839
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<text>", "nullable").
WithLocation
(1, 1)
4846
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1),
4848
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("YES").
WithLocation
(1, 1)
4855
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1)
4862
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1)
4869
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1),
4871
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1)
4878
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<text>", "nullable").
WithLocation
(1, 1)
4885
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("yeS").
WithLocation
(1, 1)
4892
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("nullable", "Enable", "7.3", "8.0").
WithLocation
(1, 1)
4903
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("nullable", "Enable", "7.3", "8.0").
WithLocation
(1, 1)
4910
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("nullable", "Enable", "7.3", "8.0").
WithLocation
(1, 1)
4921
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1)
4936
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonly").
WithLocation
(1, 1)
4943
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("\"enable\"").
WithLocation
(1, 1)
4950
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("\\\\disable\\\\").
WithLocation
(1, 1)
4957
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("\\enable\\").
WithLocation
(1, 1)
4964
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonlywarnings").
WithLocation
(1, 1)
4971
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("SafeonlyWarnings").
WithLocation
(1, 1)
4978
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("safeonlyWarnings").
WithLocation
(1, 1)
4985
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("nullable", "Warnings", "7.0", "8.0").
WithLocation
(1, 1)
5016
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<text>", "nullable").
WithLocation
(1, 1)
5023
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("YES").
WithLocation
(1, 1)
5042
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("nullable", "Warnings", "7.3", "8.0").
WithLocation
(1, 1)
5049
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("nullable", "Annotations", "7.0", "8.0").
WithLocation
(1, 1)
5080
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<text>", "nullable").
WithLocation
(1, 1)
5087
Diagnostic(ErrorCode.ERR_BadNullableContextOption).WithArguments("YES").
WithLocation
(1, 1)
5106
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("nullable", "Annotations", "7.3", "8.0").
WithLocation
(1, 1)
5425
Diagnostic(ErrorCode.ERR_BadSwitch).WithArguments("/publicsign:-").
WithLocation
(1, 1));
5445
Diagnostic(ErrorCode.ERR_NoFileSpec).WithArguments("keyfile").
WithLocation
(1, 1));
5454
Diagnostic(ErrorCode.ERR_NoFileSpec).WithArguments("keyfile").
WithLocation
(1, 1));
9762
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<file list>", "analyzerconfig").
WithLocation
(1, 1));
9768
Diagnostic(ErrorCode.ERR_SwitchNeedsString).WithArguments("<file list>", "analyzerconfig").
WithLocation
(1, 1));
11061
.
WithLocation
(4, 26)
11086
.
WithLocation
(4, 26)
11710
Diagnostic(ErrorCode.WRN_DefineIdentifierRequired).WithArguments("1").
WithLocation
(1, 1));
11726
Diagnostic(ErrorCode.WRN_DefineIdentifierRequired).WithArguments(" ").
WithLocation
(1, 1)
11737
Diagnostic(ErrorCode.ERR_BadCompatMode).WithArguments("1000").
WithLocation
(1, 1));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (58)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (53)
384
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
385
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
386
(Diagnostic("C", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
397
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(VsixAnalyzer)),
398
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(VsixAnalyzer)),
399
(Diagnostic("C", "Class").
WithLocation
(1, 7), nameof(VsixAnalyzer)),
412
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
413
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
414
(Diagnostic("C", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
437
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer))
448
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(VsixAnalyzer)),
449
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(VsixAnalyzer)),
450
(Diagnostic("C", "Class").
WithLocation
(1, 7), nameof(VsixAnalyzer)),
464
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(VsixAnalyzer)),
465
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
466
(Diagnostic("C", "Class").
WithLocation
(1, 7), nameof(VsixAnalyzer)),
489
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
490
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
491
(Diagnostic("C", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer))
502
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(VsixAnalyzer))
515
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
516
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
517
(Diagnostic("C", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
549
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
550
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
551
(Diagnostic("C", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer))
568
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
569
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
570
(Diagnostic("C", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer))
588
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(VsixAnalyzer)),
589
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
590
(Diagnostic("C", "Class").
WithLocation
(1, 7), nameof(VsixAnalyzer))
628
(Diagnostic("X", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer)),
629
(Diagnostic("Y", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer)),
630
(Diagnostic("Z", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer))
648
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
649
(Diagnostic("B", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
650
(Diagnostic("C", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
651
(Diagnostic("X", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer)),
652
(Diagnostic("Y", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer)),
653
(Diagnostic("Z", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer))
671
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
672
(Diagnostic("X", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer)),
673
(Diagnostic("Y", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer)),
674
(Diagnostic("Z", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer))
693
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
694
(Diagnostic("X", "Class", isSuppressed: false).
WithLocation
(1, 7), nameof(VsixAnalyzer)),
695
(Diagnostic("Y", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer)),
696
(Diagnostic("Z", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer))
715
(Diagnostic("A", "Class").
WithLocation
(1, 7), nameof(NuGetAnalyzer)),
716
(Diagnostic("X", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer)),
717
(Diagnostic("Y", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer)),
718
(Diagnostic("Z", "Class", isSuppressed: true).
WithLocation
(1, 7), nameof(VsixAnalyzer))
RemoveUnusedParametersTests.cs (5)
1222
Diagnostic(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p1").
WithLocation
(5, 15),
1223
Diagnostic(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p2").
WithLocation
(5, 23),
1224
Diagnostic(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p3").
WithLocation
(13, 23),
1225
Diagnostic(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p4").
WithLocation
(13, 31),
1226
Diagnostic(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p5").
WithLocation
(19, 17));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3077)
BreakingChanges.cs (12)
299
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("S1<T>.x").
WithLocation
(3, 18),
302
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("S1<T>.S2.x").
WithLocation
(6, 18)
412
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(8, 32),
415
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(9, 29),
418
Diagnostic(ErrorCode.ERR_LockNeedsReference, "default(int)").WithArguments("int").
WithLocation
(9, 15),
421
Diagnostic(ErrorCode.ERR_LockNeedsReference, "default(TStruct)").WithArguments("TStruct").
WithLocation
(12, 15)
426
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(8, 32),
429
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(9, 29),
432
Diagnostic(ErrorCode.ERR_LockNeedsReference, "default(int)").WithArguments("int").
WithLocation
(9, 15),
435
Diagnostic(ErrorCode.ERR_LockNeedsReference, "default(T)").WithArguments("T").
WithLocation
(10, 15),
438
Diagnostic(ErrorCode.ERR_LockNeedsReference, "default(TStruct)").WithArguments("TStruct").
WithLocation
(12, 15),
441
Diagnostic(ErrorCode.ERR_LockNeedsReference, "null").WithArguments("<null>").
WithLocation
(13, 15)
CodeGen\CodeGenAsyncIteratorTests.cs (194)
595
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IAsyncEnumerable<int>").WithArguments("IAsyncEnumerable<>", "System.Collections.Generic").
WithLocation
(4, 45),
598
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M").WithArguments("async streams", "8.0").
WithLocation
(4, 67),
601
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M").WithArguments("async streams", "8.0").
WithLocation
(4, 67)
610
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IAsyncEnumerable<int>").WithArguments("IAsyncEnumerable<>", "System.Collections.Generic").
WithLocation
(4, 45));
638
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M").WithArguments("S").
WithLocation
(4, 65),
641
Diagnostic(ErrorCode.ERR_BadSpecialByRefLocal, "var").WithArguments("S").
WithLocation
(11, 24)
714
Diagnostic(ErrorCode.ERR_ReturnInIterator, "GetStrings(await Task.FromResult(1))").
WithLocation
(9, 12),
717
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(15, 9),
720
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(23, 18),
723
Diagnostic(ErrorCode.ERR_IteratorMustBeAsync, "ReturnAndYieldReturn").WithArguments("C.ReturnAndYieldReturn()", "System.Collections.Generic.IAsyncEnumerable<string>").
WithLocation
(27, 30),
726
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(30, 18)
774
Diagnostic(ErrorCode.ERR_ReturnInIterator, "GetStrings(await Task.FromResult(1))").
WithLocation
(12, 16),
777
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(18, 13),
780
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(26, 22),
783
Diagnostic(ErrorCode.ERR_IteratorMustBeAsync, "ReturnAndYieldReturn").WithArguments("ReturnAndYieldReturn()", "System.Collections.Generic.IAsyncEnumerable<string>").
WithLocation
(30, 34),
786
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(33, 22)
806
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(7, 9)
826
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(6, 9),
829
Diagnostic(ErrorCode.WRN_UnreachableCode, "await").
WithLocation
(7, 9)
892
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Runtime.CompilerServices.AsyncIteratorMethodBuilder", "AwaitOnCompleted").
WithLocation
(5, 64)
899
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Runtime.CompilerServices.AsyncIteratorMethodBuilder", "AwaitUnsafeOnCompleted").
WithLocation
(5, 64)
905
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Runtime.CompilerServices.AsyncIteratorMethodBuilder", "Complete").
WithLocation
(5, 64)
911
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Runtime.CompilerServices.AsyncIteratorMethodBuilder", "Create").
WithLocation
(5, 64)
917
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Runtime.CompilerServices.AsyncIteratorMethodBuilder", "MoveNext").
WithLocation
(5, 64)
927
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "GetResult").
WithLocation
(5, 64)
933
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "GetStatus").
WithLocation
(5, 64)
939
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "get_Version").
WithLocation
(5, 64)
945
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "OnCompleted").
WithLocation
(5, 64)
951
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "Reset").
WithLocation
(5, 64)
957
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "SetException").
WithLocation
(5, 64)
963
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "SetResult").
WithLocation
(5, 64)
969
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "GetResult").
WithLocation
(5, 64),
972
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "GetStatus").
WithLocation
(5, 64),
975
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "get_Version").
WithLocation
(5, 64),
978
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "OnCompleted").
WithLocation
(5, 64),
981
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "Reset").
WithLocation
(5, 64),
984
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "SetException").
WithLocation
(5, 64),
987
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "SetResult").
WithLocation
(5, 64)
997
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource`1", "GetResult").
WithLocation
(5, 64)
1003
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource`1", "GetStatus").
WithLocation
(5, 64)
1009
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource`1", "OnCompleted").
WithLocation
(5, 64)
1015
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.ValueTask`1", ".ctor").
WithLocation
(5, 64),
1018
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource`1", "GetResult").
WithLocation
(5, 64),
1021
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource`1", "GetStatus").
WithLocation
(5, 64),
1024
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource`1", "OnCompleted").
WithLocation
(5, 64)
1034
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource", "GetResult").
WithLocation
(5, 64)
1040
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource", "GetStatus").
WithLocation
(5, 64)
1046
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource", "OnCompleted").
WithLocation
(5, 64)
1052
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.ValueTask", ".ctor").
WithLocation
(5, 64),
1055
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource", "GetResult").
WithLocation
(5, 64),
1058
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource", "GetStatus").
WithLocation
(5, 64),
1061
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource", "OnCompleted").
WithLocation
(5, 64)
1071
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Runtime.CompilerServices.AsyncIteratorMethodBuilder", "Create").
WithLocation
(5, 64)
1081
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "MoveNext").
WithLocation
(5, 64)
1087
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "SetStateMachine").
WithLocation
(5, 64)
1093
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "MoveNext").
WithLocation
(5, 64),
1096
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "SetStateMachine").
WithLocation
(5, 64)
1106
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Collections.Generic.IAsyncEnumerable`1", "GetAsyncEnumerator").
WithLocation
(5, 64)
1116
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IAsyncEnumerable<int>").WithArguments("IAsyncEnumerable<>", "System.Collections.Generic").
WithLocation
(5, 38)
1134
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IAsyncEnumerable<int>").WithArguments("IAsyncEnumerable<>", "System.Collections.Generic").
WithLocation
(8, 42)
1142
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IAsyncEnumerator<int>").WithArguments("IAsyncEnumerator<>", "System.Collections.Generic").
WithLocation
(5, 38)
1152
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "GetStatus").
WithLocation
(5, 64),
1155
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource`1", "GetStatus").
WithLocation
(5, 64),
1158
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource", "GetStatus").
WithLocation
(5, 64)
1168
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1", "OnCompleted").
WithLocation
(5, 64),
1171
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource`1", "OnCompleted").
WithLocation
(5, 64),
1174
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.Sources.IValueTaskSource", "OnCompleted").
WithLocation
(5, 64)
1208
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IAsyncEnumerable<int>").WithArguments("IAsyncEnumerable<>", "System.Collections.Generic").
WithLocation
(8, 42)
1218
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Collections.Generic.IAsyncEnumerator`1", "MoveNextAsync").
WithLocation
(5, 64)
1224
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Collections.Generic.IAsyncEnumerator`1", "get_Current").
WithLocation
(5, 64)
1230
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "M").
WithLocation
(5, 60),
1233
Diagnostic(ErrorCode.ERR_BadIteratorReturn, "M").WithArguments("C.M()", "System.Collections.Generic.IAsyncEnumerator<int>").
WithLocation
(5, 60)
1239
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Collections.Generic.IAsyncEnumerable`1", "GetAsyncEnumerator").
WithLocation
(5, 64),
1242
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Collections.Generic.IAsyncEnumerator`1", "MoveNextAsync").
WithLocation
(5, 64),
1245
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Collections.Generic.IAsyncEnumerator`1", "get_Current").
WithLocation
(5, 64)
1255
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.IAsyncDisposable", "DisposeAsync").
WithLocation
(5, 64)
1261
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.IAsyncDisposable", "DisposeAsync").
WithLocation
(5, 64)
1271
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.ValueTask`1", ".ctor").
WithLocation
(5, 64)
1277
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.ValueTask`1", ".ctor").
WithLocation
(5, 64)
1283
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Collections.Generic.IAsyncEnumerator`1", "MoveNextAsync").
WithLocation
(5, 64),
1286
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.ValueTask`1", ".ctor").
WithLocation
(5, 64),
1289
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.ValueTask`1", ".ctor").
WithLocation
(5, 64)
1299
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.ValueTask", ".ctor").
WithLocation
(5, 64)
1305
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.IAsyncDisposable", "DisposeAsync").
WithLocation
(5, 64),
1308
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.Tasks.ValueTask", ".ctor").
WithLocation
(5, 64)
1318
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.CancellationToken", "Equals").
WithLocation
(5, 64)
1326
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Collections.Generic.IAsyncEnumerable`1", "GetAsyncEnumerator").
WithLocation
(5, 64),
1329
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.CancellationToken", "Equals").
WithLocation
(5, 64),
1332
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.CancellationTokenSource", "CreateLinkedTokenSource").
WithLocation
(5, 64),
1335
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.CancellationTokenSource", "Token").
WithLocation
(5, 64)
1347
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.CancellationTokenSource", "CreateLinkedTokenSource").
WithLocation
(5, 64)
1353
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.CancellationTokenSource", "Token").
WithLocation
(5, 64)
1359
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.CancellationTokenSource", "Dispose").
WithLocation
(5, 64)
1365
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.CancellationTokenSource", "CreateLinkedTokenSource").
WithLocation
(5, 64),
1368
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.CancellationTokenSource", "Token").
WithLocation
(5, 64),
1371
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.CompletedTask; yield return 3; }").WithArguments("System.Threading.CancellationTokenSource", "Dispose").
WithLocation
(5, 64)
1397
Diagnostic(ErrorCode.ERR_NoBreakOrCont, "break;").
WithLocation
(8, 9)
1422
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(8, 9),
1425
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M2").
WithLocation
(10, 60),
1428
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(12, 9)
1453
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(8, 9),
1456
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M2").
WithLocation
(10, 60),
1459
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(12, 9)
1484
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "s").
WithLocation
(4, 73),
1487
Diagnostic(ErrorCode.ERR_BadIteratorArgType, "s").
WithLocation
(4, 73),
1490
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(8, 9),
1493
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M2").
WithLocation
(10, 60),
1496
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "s2").
WithLocation
(10, 74),
1499
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").
WithLocation
(12, 9)
1524
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(8, 9),
1527
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M2").
WithLocation
(10, 60),
1530
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(12, 9)
1624
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M").WithArguments("async streams", "8.0").
WithLocation
(4, 60),
1627
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(34, 2)
1652
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 60),
1655
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(6, 9)
1692
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(6, 9),
1695
Diagnostic(ErrorCode.WRN_UnreachableCode, "await").
WithLocation
(7, 9)
1718
Diagnostic(ErrorCode.ERR_IteratorMustBeAsync, "M").WithArguments("C.M(int)", "System.Collections.Generic.IAsyncEnumerator<int>").
WithLocation
(4, 61),
1721
Diagnostic(ErrorCode.ERR_BadAwaitWithoutAsyncMethod, "await System.Threading.Tasks.Task.CompletedTask").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>").
WithLocation
(7, 9)
1744
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(7, 9)
1764
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 74)
1769
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 74),
1772
Diagnostic(ErrorCode.ERR_PossibleAsyncIteratorWithoutYieldOrAwait, "M").
WithLocation
(4, 74)
1796
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 74)
1801
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 74),
1804
Diagnostic(ErrorCode.ERR_PossibleAsyncIteratorWithoutYieldOrAwait, "M").
WithLocation
(4, 74)
1826
Diagnostic(ErrorCode.ERR_PossibleAsyncIteratorWithoutYield, "M").
WithLocation
(4, 60)
1847
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 60)
1852
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 60),
1855
Diagnostic(ErrorCode.ERR_PossibleAsyncIteratorWithoutYieldOrAwait, "M").
WithLocation
(4, 60)
1874
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 74),
1877
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("C.M()").
WithLocation
(4, 74)
1897
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 74)
1919
Diagnostic(ErrorCode.ERR_IteratorMustBeAsync, "M").WithArguments("C.M()", "System.Collections.Generic.IAsyncEnumerable<int>").
WithLocation
(4, 61)
1945
Diagnostic(ErrorCode.ERR_IteratorMustBeAsync, "local").WithArguments("local()", "System.Collections.Generic.IAsyncEnumerator<int>").
WithLocation
(7, 65)
1965
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "M").
WithLocation
(4, 62),
1968
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 62)
1987
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 74),
1990
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("C.M()").
WithLocation
(4, 74)
2010
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 67)
2030
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("C.M(int)").
WithLocation
(4, 67)
4072
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(8, 9)
5525
Diagnostic(ErrorCode.ERR_BadYieldInTryOfCatch, "yield").
WithLocation
(9, 13)
5558
Diagnostic(ErrorCode.ERR_BadYieldInTryOfCatch, "yield").
WithLocation
(11, 17)
5585
Diagnostic(ErrorCode.ERR_BadYieldInFinally, "yield").
WithLocation
(12, 13)
5618
Diagnostic(ErrorCode.ERR_BadYieldInFinally, "yield").
WithLocation
(14, 17)
5651
Diagnostic(ErrorCode.ERR_BadYieldInFinally, "yield").
WithLocation
(14, 17)
5686
Diagnostic(ErrorCode.ERR_BadYieldInCatch, "yield").
WithLocation
(11, 13),
5689
Diagnostic(ErrorCode.ERR_BadYieldInCatch, "yield").
WithLocation
(20, 13)
5732
Diagnostic(ErrorCode.ERR_BadYieldInCatch, "yield").
WithLocation
(13, 17),
5735
Diagnostic(ErrorCode.ERR_BadYieldInCatch, "yield").
WithLocation
(26, 17)
5770
Diagnostic(ErrorCode.ERR_BadYieldInFinally, "yield").
WithLocation
(11, 13),
5773
Diagnostic(ErrorCode.ERR_BadYieldInFinally, "yield").
WithLocation
(20, 13)
5816
Diagnostic(ErrorCode.ERR_BadYieldInFinally, "yield").
WithLocation
(13, 17),
5819
Diagnostic(ErrorCode.ERR_BadYieldInFinally, "yield").
WithLocation
(26, 17)
5850
Diagnostic(ErrorCode.ERR_BadYieldInFinally, "yield").
WithLocation
(14, 17)
6093
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("C.M()").
WithLocation
(4, 60)
6119
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 67)
6147
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 67)
6166
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 60),
6169
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("C.M()").
WithLocation
(4, 60)
6189
Diagnostic(ErrorCode.ERR_EmptyYield, "return").
WithLocation
(7, 15),
6192
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""").WithArguments("string", "int").
WithLocation
(6, 22),
6195
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 60)
6306
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(8, 15)
7159
Diagnostic(ErrorCode.WRN_UndecoratedCancellationTokenParameter, "Iter").WithArguments("C.Iter(int, System.Threading.CancellationToken)").
WithLocation
(24, 67)
7205
Diagnostic(ErrorCode.WRN_UndecoratedCancellationTokenParameter, "Iter").WithArguments("Iter(int, System.Threading.CancellationToken)").
WithLocation
(24, 71)
7389
Diagnostic(ErrorCode.WRN_UnconsumedEnumeratorCancellationAttributeUsage, "EnumeratorCancellation").WithArguments("value").
WithLocation
(6, 73)
7420
Diagnostic(ErrorCode.WRN_UnconsumedEnumeratorCancellationAttributeUsage, "EnumeratorCancellation").WithArguments("value").
WithLocation
(12, 77)
7444
Diagnostic(ErrorCode.WRN_UnconsumedEnumeratorCancellationAttributeUsage, "EnumeratorCancellation").WithArguments("value").
WithLocation
(7, 73)
7465
Diagnostic(ErrorCode.WRN_UnconsumedEnumeratorCancellationAttributeUsage, "EnumeratorCancellation").WithArguments("token").
WithLocation
(6, 62)
7487
Diagnostic(ErrorCode.WRN_UnconsumedEnumeratorCancellationAttributeUsage, "EnumeratorCancellation").WithArguments("token").
WithLocation
(7, 30)
7507
Diagnostic(ErrorCode.WRN_UnconsumedEnumeratorCancellationAttributeUsage, "EnumeratorCancellation").WithArguments("token").
WithLocation
(6, 20)
7525
Diagnostic(ErrorCode.WRN_UnconsumedEnumeratorCancellationAttributeUsage, "EnumeratorCancellation").WithArguments("key").
WithLocation
(6, 15)
7550
Diagnostic(ErrorCode.ERR_MultipleEnumeratorCancellationAttributes, "Iter").
WithLocation
(7, 67)
7573
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System.Runtime.CompilerServices;").
WithLocation
(2, 1),
7576
Diagnostic(ErrorCode.WRN_UndecoratedCancellationTokenParameter, "Iter").WithArguments("C.Iter(int, System.Threading.CancellationToken)").
WithLocation
(7, 67),
7579
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "EnumeratorCancellation").WithArguments("EnumeratorCancellationAttribute").
WithLocation
(7, 84),
7582
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "EnumeratorCancellation").WithArguments("EnumeratorCancellation").
WithLocation
(7, 84)
7690
Diagnostic(ErrorCode.WRN_UndecoratedCancellationTokenParameter, "Iter").WithArguments("C.Iter(System.Threading.CancellationToken, int)").
WithLocation
(28, 76)
7748
Diagnostic(ErrorCode.WRN_UndecoratedCancellationTokenParameter, "Iter").WithArguments("Base.Iter(System.Threading.CancellationToken, int)").
WithLocation
(8, 75)
7779
Diagnostic(ErrorCode.ERR_BadAsyncLacksBody, "M").
WithLocation
(6, 76),
7782
Diagnostic(ErrorCode.WRN_UnconsumedEnumeratorCancellationAttributeUsage, "EnumeratorCancellation").WithArguments("token").
WithLocation
(7, 74),
7785
Diagnostic(ErrorCode.WRN_UnconsumedEnumeratorCancellationAttributeUsage, "EnumeratorCancellation").WithArguments("token").
WithLocation
(11, 57),
7788
Diagnostic(ErrorCode.WRN_UnconsumedEnumeratorCancellationAttributeUsage, "EnumeratorCancellation").WithArguments("token").
WithLocation
(15, 80),
7791
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M").WithArguments("C2.M(System.Threading.CancellationToken)").
WithLocation
(16, 62),
7794
Diagnostic(ErrorCode.WRN_UnconsumedEnumeratorCancellationAttributeUsage, "EnumeratorCancellation").WithArguments("token").
WithLocation
(16, 65),
7797
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M2").WithArguments("C2.M2(System.Threading.CancellationToken)").
WithLocation
(17, 68)
7878
Diagnostic(ErrorCode.WRN_UndecoratedCancellationTokenParameter, "M1").WithArguments("C.M1(System.Threading.CancellationToken)").
WithLocation
(7, 67),
7881
Diagnostic(ErrorCode.WRN_UndecoratedCancellationTokenParameter, "M2").WithArguments("C.M2(System.Threading.CancellationToken, System.Threading.CancellationToken)").
WithLocation
(12, 67),
7884
Diagnostic(ErrorCode.ERR_BadAsyncLacksBody, "M").
WithLocation
(30, 76),
7887
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M").WithArguments("C3.M(System.Threading.CancellationToken)").
WithLocation
(40, 62),
7890
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M2").WithArguments("C3.M2(System.Threading.CancellationToken)").
WithLocation
(41, 68)
CodeGen\CodeGenAsyncMainTests.cs (104)
44
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task<int>").WithArguments("", "System.Threading.Tasks.Task<T>", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task<TResult>").
WithLocation
(11, 12));
69
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task<int>").WithArguments("", "System.Threading.Tasks.Task<T>", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task<TResult>").
WithLocation
(11, 12),
72
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(11, 22));
97
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task<int>").WithArguments("", "System.Threading.Tasks.Task<T>", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task<TResult>").
WithLocation
(11, 12));
122
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task<int>").WithArguments("", "System.Threading.Tasks.Task<T>", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task<TResult>").
WithLocation
(11, 12),
125
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(11, 22));
163
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task<int>").WithArguments("", "System.Threading.Tasks.Task<T>", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task<TResult>").
WithLocation
(25, 12),
166
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(25, 22),
168
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
206
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task<int>").WithArguments("", "System.Threading.Tasks.Task<T>", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task<TResult>").
WithLocation
(25, 12),
209
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(25, 22),
211
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
237
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task<int>").WithArguments("", "System.Threading.Tasks.Task<T>", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task<TResult>").
WithLocation
(12, 12),
240
Diagnostic(ErrorCode.ERR_BadAwaitArg, "Task<int>").WithArguments("System.Threading.Tasks.Task<int>").
WithLocation
(12, 12),
243
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(12, 22),
245
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
248
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(2, 1));
274
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task<int>").WithArguments("", "System.Threading.Tasks.Task<T>", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task<TResult>").
WithLocation
(12, 12),
277
Diagnostic(ErrorCode.ERR_BadAwaitArg, "Task<int>").WithArguments("System.Threading.Tasks.Task<int>").
WithLocation
(12, 12),
280
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(12, 22),
282
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
285
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(2, 1));
310
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task").WithArguments("", "System.Threading.Tasks.Task", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task").
WithLocation
(12, 12),
313
Diagnostic(ErrorCode.ERR_BadAwaitArg, "Task").WithArguments("System.Threading.Tasks.Task").
WithLocation
(12, 12),
316
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(12, 17),
318
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
341
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task").WithArguments("", "System.Threading.Tasks.Task", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task").
WithLocation
(10, 12),
344
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Task").WithArguments("System.Threading.Tasks.Task", "GetAwaiter").
WithLocation
(10, 12),
347
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(10, 17),
349
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
384
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
387
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Task<int>").WithArguments("System.Threading.Tasks.Task<int>", "GetAwaiter").
WithLocation
(6, 12),
390
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(6, 22),
392
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
424
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
427
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Task").WithArguments("System.Threading.Tasks.Task", "GetAwaiter").
WithLocation
(6, 12),
430
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(6, 17),
432
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
471
Diagnostic(ErrorCode.ERR_ReturnExpected, "Main").WithArguments("Program.Main()").
WithLocation
(6, 28));
548
Diagnostic(ErrorCode.ERR_ReturnExpected, "Main").WithArguments("Program.Main(string[])").
WithLocation
(6, 28));
649
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("A.Main(string[])").
WithLocation
(6, 21),
651
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
671
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Task").WithArguments("async main", "7.1").
WithLocation
(6, 18),
673
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1)
694
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Task").WithArguments("async main", "7.1").
WithLocation
(6, 12),
696
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
813
Diagnostic(ErrorCode.ERR_NonTaskMainCantBeAsync, "Main").
WithLocation
(6, 23),
815
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
835
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "Main").
WithLocation
(6, 22),
838
Diagnostic(ErrorCode.ERR_NonTaskMainCantBeAsync, "Main").
WithLocation
(6, 22),
840
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
862
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "Main").
WithLocation
(6, 22),
865
Diagnostic(ErrorCode.ERR_NonTaskMainCantBeAsync, "Main").
WithLocation
(6, 22),
867
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
927
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Task<int>").WithArguments("async main", "7.1").
WithLocation
(6, 18),
929
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
949
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Task<int>").WithArguments("async main", "7.1").
WithLocation
(6, 12),
951
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
1011
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Task<int>").WithArguments("async main", "7.1").
WithLocation
(6, 18),
1013
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
1033
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Task<int>").WithArguments("async main", "7.1").
WithLocation
(6, 12),
1035
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
1056
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("A.Main()").
WithLocation
(6, 30),
1058
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
1077
Diagnostic(ErrorCode.WRN_MainCantBeGeneric, "Main").WithArguments("A.Main<T>()").
WithLocation
(6, 23),
1079
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
1098
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("A.Main(bool)").
WithLocation
(6, 23),
1100
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
1119
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("A.Main<T>(bool)").
WithLocation
(6, 23),
1121
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
1167
Diagnostic(ErrorCode.WRN_SyncAndAsyncEntryPoints, "Main").WithArguments("A.Main(string[])", "A.Main()").
WithLocation
(10, 23)
1195
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "Main").
WithLocation
(11, 22),
1198
Diagnostic(ErrorCode.ERR_NonTaskMainCantBeAsync, "Main").
WithLocation
(11, 22),
1201
Diagnostic(ErrorCode.ERR_NonTaskMainCantBeAsync, "Main").
WithLocation
(6, 23),
1203
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
1223
Diagnostic(ErrorCode.ERR_NonTaskMainCantBeAsync, "Main").
WithLocation
(6, 23),
1225
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
1249
Diagnostic(ErrorCode.WRN_SyncAndAsyncEntryPoints, "Main").WithArguments("A.Main(string[])", "A.Main()").
WithLocation
(10, 23));
1276
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(6, 28),
1279
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(12, 30),
1282
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Task<int>").WithArguments("async main", "7.1").
WithLocation
(6, 18),
1285
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("A.Main(string[])").
WithLocation
(12, 30),
1287
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
1313
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Task<int>").WithArguments("async main", "7.1").
WithLocation
(6, 12),
1316
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("A.Main(string[])").
WithLocation
(12, 24),
1318
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
1344
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("A.Main(string[])").
WithLocation
(11, 30));
1415
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task").WithArguments("", "System.Threading.Tasks.Task", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task").
WithLocation
(26, 43),
1418
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task").WithArguments("", "System.Threading.Tasks.Task", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task").
WithLocation
(33, 12),
1421
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task").WithArguments("", "System.Threading.Tasks.Task", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task").
WithLocation
(34, 20));
1469
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task").WithArguments("", "System.Threading.Tasks.Task", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task").
WithLocation
(34, 12),
1472
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task").WithArguments("", "System.Threading.Tasks.Task", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task").
WithLocation
(27, 43),
1475
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task").WithArguments("", "System.Threading.Tasks.Task", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task").
WithLocation
(35, 20),
1478
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Task").WithArguments("MyExtensions.GetAwaiter(System.Threading.Tasks.Task)", "test").
WithLocation
(34, 12));
1524
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task").WithArguments("", "System.Threading.Tasks.Task", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task").
WithLocation
(25, 43),
1527
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task").WithArguments("", "System.Threading.Tasks.Task", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task").
WithLocation
(31, 12),
1530
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Task").WithArguments("", "System.Threading.Tasks.Task", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Threading.Tasks.Task").
WithLocation
(32, 20),
1533
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Task").WithArguments("MyExtensions.GetAwaiter(System.Threading.Tasks.Task)", "test").
WithLocation
(31, 12));
1985
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
1988
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(4, 28));
2007
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
2010
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(4, 33));
2067
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
2070
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(43, 25));
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (108)
120
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "F").WithArguments("async method builder override", "10.0").
WithLocation
(11, 25),
123
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "G").WithArguments("async method builder override", "10.0").
WithLocation
(14, 28),
126
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "M").WithArguments("async method builder override", "10.0").
WithLocation
(17, 37)
230
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").
WithLocation
(14, 16),
233
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "await G((string?)null)").
WithLocation
(20, 16),
236
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "_result").WithArguments("field", "_result").
WithLocation
(44, 16)
281
Diagnostic(ErrorCode.ERR_TaskRetNoObjectRequired, "return").WithArguments("C.F()", "MyTask").
WithLocation
(9, 51),
284
Diagnostic(ErrorCode.ERR_RetObjectRequired, "return").WithArguments("T").
WithLocation
(12, 60),
287
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(15, 63),
290
Diagnostic(ErrorCode.ERR_BadAsyncReturnExpression, "mt").WithArguments("int", "MyTask<int>").
WithLocation
(18, 78),
293
Diagnostic(ErrorCode.ERR_IllegalStatement, "b ? await Task.Yield() : await Task.Yield()").
WithLocation
(21, 39)
526
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "F").WithArguments("async method builder override", "10.0").
WithLocation
(9, 21),
529
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "G").WithArguments("async method builder override", "10.0").
WithLocation
(12, 24),
532
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "M").WithArguments("async method builder override", "10.0").
WithLocation
(15, 26)
575
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error").WithArguments("Error").
WithLocation
(8, 32),
578
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error<>").WithArguments("Error<>").
WithLocation
(11, 32),
581
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error<>").WithArguments("Error<>").
WithLocation
(14, 32)
621
Diagnostic(ErrorCode.ERR_BadAsyncReturn, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").
WithLocation
(9, 29),
624
Diagnostic(ErrorCode.ERR_WrongArityAsyncReturn, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder").
WithLocation
(12, 38),
627
Diagnostic(ErrorCode.ERR_WrongArityAsyncReturn, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder").
WithLocation
(15, 41)
663
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.Delay(3)").WithArguments("B3", "Task").
WithLocation
(76, 61)
700
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilderFactory", "Create").
WithLocation
(11, 29),
703
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilderFactory", "Task").
WithLocation
(11, 29),
706
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilderFactory<T>", "Create").
WithLocation
(14, 38),
709
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilderFactory<T>", "Task").
WithLocation
(14, 38),
712
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilderFactory<int>", "Create").
WithLocation
(17, 41),
715
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilderFactory<int>", "Task").
WithLocation
(17, 41)
770
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "[AsyncMethodBuilder(typeof(MyTaskMethodBuilder))]").WithArguments("lambda attributes", "10.0").
WithLocation
(6, 18),
773
Diagnostic(ErrorCode.ERR_BuilderAttributeDisallowed, "=>").
WithLocation
(6, 84),
776
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "=>").WithArguments("async method builder override", "10.0").
WithLocation
(6, 84),
779
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "[AsyncMethodBuilder(typeof(MyTaskMethodBuilder<>))]").WithArguments("lambda attributes", "10.0").
WithLocation
(8, 23),
782
Diagnostic(ErrorCode.ERR_BuilderAttributeDisallowed, "=>").
WithLocation
(8, 84),
785
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "=>").WithArguments("async method builder override", "10.0").
WithLocation
(8, 84)
791
Diagnostic(ErrorCode.ERR_BuilderAttributeDisallowed, "=>").
WithLocation
(6, 84),
794
Diagnostic(ErrorCode.ERR_BuilderAttributeDisallowed, "=>").
WithLocation
(8, 84)
824
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "[AsyncMethodBuilder(typeof(MyTaskMethodBuilder))]").WithArguments("lambda attributes", "10.0").
WithLocation
(6, 18),
827
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "MyTask").WithArguments("lambda return type", "10.0").
WithLocation
(6, 81),
830
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "=>").WithArguments("async method builder override", "10.0").
WithLocation
(6, 91),
833
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "[AsyncMethodBuilder(typeof(MyTaskMethodBuilder<>))]").WithArguments("lambda attributes", "10.0").
WithLocation
(8, 23),
836
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "MyTask<int>").WithArguments("lambda return type", "10.0").
WithLocation
(8, 81),
839
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "=>").WithArguments("async method builder override", "10.0").
WithLocation
(8, 96)
887
Diagnostic(ErrorCode.ERR_BuilderAttributeDisallowed, "=>").
WithLocation
(7, 71),
890
Diagnostic(ErrorCode.ERR_BuilderAttributeDisallowed, "=>").
WithLocation
(11, 73)
988
Diagnostic(ErrorCode.ERR_BadAsyncMethodBuilderTaskProperty, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "MyTask", "object").
WithLocation
(8, 29),
991
Diagnostic(ErrorCode.ERR_BadAsyncMethodBuilderTaskProperty, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "MyTask<T>", "object").
WithLocation
(11, 38),
994
Diagnostic(ErrorCode.ERR_BadAsyncMethodBuilderTaskProperty, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "MyTask<int>", "object").
WithLocation
(14, 34)
1032
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Create").
WithLocation
(8, 29),
1035
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Create").
WithLocation
(11, 38),
1038
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Create").
WithLocation
(14, 34)
1074
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Create").
WithLocation
(8, 29),
1077
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Create").
WithLocation
(11, 38),
1080
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Create").
WithLocation
(14, 34)
1115
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Create").
WithLocation
(8, 29),
1118
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Create").
WithLocation
(11, 38),
1121
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Create").
WithLocation
(14, 34)
1156
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Create").
WithLocation
(8, 29),
1159
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Create").
WithLocation
(11, 38),
1162
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Create").
WithLocation
(14, 34)
1197
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Create").
WithLocation
(8, 29),
1200
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Create").
WithLocation
(11, 38),
1203
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Create").
WithLocation
(14, 34)
1246
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Create").
WithLocation
(8, 29),
1249
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Create").
WithLocation
(11, 38),
1252
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Create").
WithLocation
(14, 34)
1353
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Create").
WithLocation
(8, 29),
1356
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Create").
WithLocation
(11, 38),
1359
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Create").
WithLocation
(14, 34)
1446
Diagnostic(ErrorCode.ERR_BadAsyncReturn, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").
WithLocation
(10, 29),
1449
Diagnostic(ErrorCode.ERR_BadAsyncReturn, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").
WithLocation
(14, 38),
1452
Diagnostic(ErrorCode.ERR_BadAsyncReturn, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").
WithLocation
(18, 34)
1480
Diagnostic(ErrorCode.ERR_AttrArgWithTypeVars, "typeof(MyTaskMethodBuilder<U>)").WithArguments("MyTaskMethodBuilder<U>").
WithLocation
(8, 25)
1508
Diagnostic(ErrorCode.ERR_WrongArityAsyncReturn, "{ await Task.Delay(0); throw null; }").WithArguments("MyTaskMethodBuilder<int>").
WithLocation
(9, 34)
1542
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Task").
WithLocation
(8, 29),
1545
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Task").
WithLocation
(11, 38),
1548
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Task").
WithLocation
(14, 34)
1582
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Task").
WithLocation
(8, 29),
1585
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Task").
WithLocation
(11, 38),
1588
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Task").
WithLocation
(14, 34)
1622
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Task").
WithLocation
(8, 29),
1625
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Task").
WithLocation
(11, 38),
1628
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Task").
WithLocation
(14, 34)
1662
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "SetException").
WithLocation
(8, 29),
1665
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "SetException").
WithLocation
(11, 38),
1668
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "SetException").
WithLocation
(14, 34)
1706
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "SetException").
WithLocation
(8, 29),
1709
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "SetException").
WithLocation
(11, 38),
1712
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "SetException").
WithLocation
(14, 34)
1746
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "SetException").
WithLocation
(8, 29),
1749
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "SetException").
WithLocation
(11, 38),
1752
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "SetException").
WithLocation
(14, 34)
1786
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "SetResult").
WithLocation
(8, 29),
1789
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "SetResult").
WithLocation
(11, 38),
1792
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "SetResult").
WithLocation
(14, 34)
1826
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "AwaitOnCompleted").
WithLocation
(8, 29),
1829
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "AwaitOnCompleted").
WithLocation
(11, 38),
1832
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "AwaitOnCompleted").
WithLocation
(14, 34)
1866
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "AwaitUnsafeOnCompleted").
WithLocation
(8, 29),
1869
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "AwaitUnsafeOnCompleted").
WithLocation
(11, 38),
1872
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "AwaitUnsafeOnCompleted").
WithLocation
(14, 34)
1906
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Start").
WithLocation
(8, 29),
1909
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Start").
WithLocation
(11, 38),
1912
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Start").
WithLocation
(14, 34)
1946
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""F ""); await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "SetStateMachine").
WithLocation
(8, 29),
1949
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""G ""); await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "SetStateMachine").
WithLocation
(11, 38),
1952
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"{ System.Console.Write(""M ""); await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "SetStateMachine").
WithLocation
(14, 34)
2067
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "AsyncMethodBuilder").WithArguments("", "System.Runtime.CompilerServices.AsyncMethodBuilderAttribute", "System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51", "System.Runtime.CompilerServices.AsyncMethodBuilderAttribute").
WithLocation
(10, 6),
2070
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "AsyncMethodBuilder").WithArguments("", "System.Runtime.CompilerServices.AsyncMethodBuilderAttribute", "System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51", "System.Runtime.CompilerServices.AsyncMethodBuilderAttribute").
WithLocation
(13, 6),
2073
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "AsyncMethodBuilder").WithArguments("", "System.Runtime.CompilerServices.AsyncMethodBuilderAttribute", "System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51", "System.Runtime.CompilerServices.AsyncMethodBuilderAttribute").
WithLocation
(16, 6)
CodeGen\CodeGenAsyncSpillTests.cs (5)
3398
Diagnostic(ErrorCode.ERR_RefReturningCallAndAwait, "P").WithArguments("C.P.get").
WithLocation
(18, 28)
3419
Diagnostic(ErrorCode.ERR_BadArgType, "s").WithArguments("1", "in string", "in object").
WithLocation
(7, 14));
3715
Diagnostic(ErrorCode.ERR_ByRefTypeAndAwait, "await F3()").WithArguments("System.Span<int>").
WithLocation
(9, 66)
3824
Diagnostic(ErrorCode.ERR_SpecialByRefInLambda, "F").WithArguments("S").
WithLocation
(9, 17)
3829
Diagnostic(ErrorCode.ERR_SpecialByRefInLambda, "F").WithArguments("S").
WithLocation
(9, 17)
CodeGen\CodeGenAsyncTests.cs (82)
907
Diagnostic(ErrorCode.WRN_AddressOfInAsync, "x").
WithLocation
(12, 29),
910
Diagnostic(ErrorCode.WRN_AddressOfInAsync, "x").
WithLocation
(17, 29)
966
Diagnostic(ErrorCode.WRN_AddressOfInAsync, "x").
WithLocation
(12, 29),
969
Diagnostic(ErrorCode.WRN_AddressOfInAsync, "x").
WithLocation
(19, 29)
1040
Diagnostic(ErrorCode.ERR_FixedNeeded, "&prog.F").
WithLocation
(11, 20),
1043
Diagnostic(ErrorCode.WRN_AddressOfInAsync, "local").
WithLocation
(15, 26),
1046
Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&local").
WithLocation
(16, 33),
1049
Diagnostic(ErrorCode.WRN_AddressOfInAsync, "local").
WithLocation
(16, 34),
1052
Diagnostic(ErrorCode.WRN_AddressOfInAsync, "structLocal.F").
WithLocation
(19, 26),
1055
Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&structLocal.F").
WithLocation
(20, 33),
1058
Diagnostic(ErrorCode.WRN_AddressOfInAsync, "structLocal.F").
WithLocation
(20, 34),
1061
Diagnostic(ErrorCode.WRN_AddressOfInAsync, "localFuncLocal").
WithLocation
(33, 39));
1066
Diagnostic(ErrorCode.ERR_FixedNeeded, "&prog.F").
WithLocation
(11, 20),
1069
Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&local").
WithLocation
(16, 33),
1072
Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&structLocal.F").
WithLocation
(20, 33));
3313
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 16),
3316
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "{}").WithArguments("System.Runtime.CompilerServices.AsyncVoidMethodBuilder").
WithLocation
(4, 20),
3319
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{}").WithArguments("System.Runtime.CompilerServices.AsyncVoidMethodBuilder", "Create").
WithLocation
(4, 20),
3322
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{}").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "MoveNext").
WithLocation
(4, 20),
3325
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{}").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "SetStateMachine").
WithLocation
(4, 20));
3341
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 16),
3344
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "{}").WithArguments("System.Runtime.CompilerServices.AsyncTaskMethodBuilder").
WithLocation
(4, 20),
3347
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{}").WithArguments("System.Runtime.CompilerServices.AsyncTaskMethodBuilder", "Create").
WithLocation
(4, 20),
3350
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{}").WithArguments("System.Runtime.CompilerServices.AsyncTaskMethodBuilder", "Task").
WithLocation
(4, 20),
3353
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{}").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "MoveNext").
WithLocation
(4, 20),
3356
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{}").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "SetStateMachine").
WithLocation
(4, 20));
3372
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "F").
WithLocation
(4, 21),
3375
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "=> 3").WithArguments("System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1").
WithLocation
(4, 25),
3378
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> 3").WithArguments("System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1", "Create").
WithLocation
(4, 25),
3381
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> 3").WithArguments("System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1", "Task").
WithLocation
(4, 25),
3384
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> 3").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "MoveNext").
WithLocation
(4, 25),
3387
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> 3").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "SetStateMachine").
WithLocation
(4, 25));
3549
Diagnostic(ErrorCode.ERR_WrongArityAsyncReturn, "=> await Task.FromResult(1)").WithArguments("N.BG<int>").
WithLocation
(17, 27),
3552
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=> await Task.FromResult(1)").
WithLocation
(18, 22),
3555
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.FromResult(1)").WithArguments("N.BG<int>", "Task").
WithLocation
(19, 27),
3558
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.FromResult(1)").WithArguments("N.BG<int>", "Create").
WithLocation
(19, 27),
3561
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=> await Task.FromResult(1)").
WithLocation
(20, 22),
3564
Diagnostic(ErrorCode.ERR_WrongArityAsyncReturn, "=> await Task.FromResult(1)").WithArguments("N.BN").
WithLocation
(21, 27),
3567
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.FromResult(1)").WithArguments("N.BN", "Task").
WithLocation
(22, 22),
3570
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.FromResult(1)").WithArguments("N.BN", "Create").
WithLocation
(22, 22),
3573
Diagnostic(ErrorCode.ERR_WrongArityAsyncReturn, "=> await Task.FromResult(1)").WithArguments("G<int>.BG<int>").
WithLocation
(39, 27),
3576
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=> await Task.FromResult(1)").
WithLocation
(40, 22),
3579
Diagnostic(ErrorCode.ERR_WrongArityAsyncReturn, "=> await Task.FromResult(1)").WithArguments("G<int>.BN").
WithLocation
(41, 27),
3582
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=> await Task.FromResult(1)").
WithLocation
(42, 22),
3585
Diagnostic(ErrorCode.ERR_WrongArityAsyncReturn, "=> await Task.FromResult(1)").WithArguments("G<>.BG<>").
WithLocation
(43, 27),
3588
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=> await Task.FromResult(1)").
WithLocation
(44, 22),
3591
Diagnostic(ErrorCode.ERR_WrongArityAsyncReturn, "=> await Task.FromResult(1)").WithArguments("G<>.BN").
WithLocation
(45, 27),
3594
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=> await Task.FromResult(1)").
WithLocation
(46, 22)
3619
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=> await Task.Delay(1)").
WithLocation
(9, 17)
3644
Diagnostic(ErrorCode.ERR_BadArgType, @"""hello""").WithArguments("1", "string", "System.Type").
WithLocation
(5, 21),
3647
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "f").
WithLocation
(9, 13)
3672
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Nonexistent").WithArguments("Nonexistent").
WithLocation
(5, 28)
3697
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=> await Task.Delay(1)").
WithLocation
(9, 17)
3733
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=> await Task.Delay(1)").
WithLocation
(6, 17)
3784
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.Delay(1)").WithArguments("B1", "Create").
WithLocation
(8, 19),
3787
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.Delay(2)").WithArguments("B2", "Create").
WithLocation
(9, 19),
3790
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.Delay(3)").WithArguments("B3", "Create").
WithLocation
(10, 19),
3793
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.Delay(4)").WithArguments("B4", "Create").
WithLocation
(11, 19),
3796
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.Delay(5)").WithArguments("B5", "Create").
WithLocation
(12, 19),
3799
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.Delay(6)").WithArguments("B6", "Create").
WithLocation
(13, 19),
3802
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.Delay(7)").WithArguments("B7", "Create").
WithLocation
(14, 19),
3805
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> await Task.Delay(8)").WithArguments("B8", "Create").
WithLocation
(15, 19)
3868
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=> await Task.Delay(2)").
WithLocation
(66, 19),
3871
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=> await Task.Delay(3)").
WithLocation
(67, 19)
3992
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.Delay(0); }").WithArguments("ValueTaskMethodBuilder0", "SetException").
WithLocation
(7, 26),
3995
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.Delay(0); }").WithArguments("ValueTaskMethodBuilder1", "SetResult").
WithLocation
(8, 26),
3998
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.Delay(0); }").WithArguments("ValueTaskMethodBuilder2", "AwaitOnCompleted").
WithLocation
(9, 26)
4030
Diagnostic(ErrorCode.ERR_WrongArityAsyncReturn, "{ await (Task)null; return 1; }").WithArguments("Mismatch1MethodBuilder").
WithLocation
(5, 30),
4033
Diagnostic(ErrorCode.ERR_TaskRetNoObjectRequired, "return").WithArguments("C.g()", "Mismatch2").
WithLocation
(6, 45)
4075
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "{ await (Task)null; }").WithArguments("MyTaskBuilder.Start<TSM>(ref TSM)", "I", "TSM", "C.<f>d__1").
WithLocation
(8, 22));
4571
Diagnostic(ErrorCode.ERR_BadAwaitInStaticVariableInitializer, "await System.Threading.Tasks.Task.FromResult(1)").
WithLocation
(2, 5));
4991
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
4994
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await task; }").WithArguments("System.Runtime.CompilerServices.AsyncTaskMethodBuilder", "Create").
WithLocation
(70, 37),
4997
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await task; }").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "MoveNext").
WithLocation
(70, 37),
5000
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await task; }").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "SetStateMachine").
WithLocation
(70, 37));
5042
Diagnostic(ErrorCode.ERR_WrongArityAsyncReturn, "{ await Task.Delay(1000); return string.Empty; }").WithArguments("CustomAsyncTaskMethodBuilder<,>").
WithLocation
(8, 53)
5088
Diagnostic(ErrorCode.ERR_BadAsyncMethodBuilderTaskProperty, "{ await Task.Delay(5); return; }").WithArguments("AsyncValueTaskMethodBuilder", "G<T>.ValueTask", "G<int>.ValueTask").
WithLocation
(8, 37)
5122
Diagnostic(ErrorCode.ERR_BadAsyncMethodBuilderTaskProperty, "{ await Task.Delay(5); throw null; }").WithArguments("MyTaskBuilder", "MyTask", "int").
WithLocation
(7, 29)
5753
Diagnostic(ErrorCode.ERR_IllegalStatement, "b ? await Task.Delay(1) : await Task.Delay(2)").
WithLocation
(8, 9)
5870
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "CompletedTask").
WithLocation
(12, 30)
5898
Diagnostic(ErrorCode.ERR_RefReturningCallAndAwait, "ReadMemory()").WithArguments("IntCode.ReadMemory()").
WithLocation
(8, 9),
5901
Diagnostic(ErrorCode.ERR_RefReturningCallAndAwait, "ReadMemory()").WithArguments("IntCode.ReadMemory()").
WithLocation
(9, 9)
CodeGen\CodeGenAwaitForeachTests.cs (148)
39
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "await").WithArguments("async streams", "8.0").
WithLocation
(7, 9)
69
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "await").WithArguments("async streams", "8.0").
WithLocation
(7, 9)
107
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "await foreach (int i in new C()) { }").WithArguments("System.Threading.Tasks.ValueTask").
WithLocation
(6, 9)
129
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "enumerator").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "GetAsyncEnumerator").
WithLocation
(8, 33)
207
Diagnostic(ErrorCode.ERR_MultipleIAsyncEnumOfT, "new C()").WithArguments("C", "System.Collections.Generic.IAsyncEnumerable<T>").
WithLocation
(7, 33)
228
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(6, 33)
256
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(6, 33)
284
Diagnostic(ErrorCode.WRN_PatternNotPublicOrNotInstance, "new C()").WithArguments("C", "async streams", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(6, 33),
287
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(6, 33)
326
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("C.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(6, 15),
329
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("C.Enumerator.MoveNextAsync()").
WithLocation
(6, 15),
332
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("C.Enumerator.Current").
WithLocation
(6, 15)
357
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").
WithLocation
(6, 33)
388
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new C()").WithArguments("extension GetAsyncEnumerator", "9.0").
WithLocation
(6, 33),
391
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("Enumerator", "Extension.GetAsyncEnumerator(C)").
WithLocation
(6, 33)
399
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("Enumerator", "Extension.GetAsyncEnumerator(C)").
WithLocation
(6, 33)
427
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").
WithLocation
(6, 33)
463
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(6, 33)
493
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").
WithLocation
(6, 33)
521
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").
WithLocation
(6, 33)
551
Diagnostic(ErrorCode.ERR_BadAccess, "new C()").WithArguments("C.Enumerator.Current").
WithLocation
(6, 33),
554
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(6, 33)
585
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").
WithLocation
(6, 33)
615
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(6, 33)
660
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(8, 33),
663
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T").WithArguments("System.Collections.Generic.IAsyncEnumerator<T>.Current", "T", "covariant", "contravariantly").
WithLocation
(24, 9)
707
Diagnostic(ErrorCode.ERR_NoSuchMember, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "Current").
WithLocation
(8, 33),
710
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(8, 33)
746
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(6, 33)
782
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(6, 33)
896
Diagnostic(ErrorCode.ERR_NoSuchMember, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "MoveNextAsync").
WithLocation
(8, 33),
899
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(8, 33)
931
Diagnostic(ErrorCode.ERR_NoExplicitConv, "foreach").WithArguments("int", "string").
WithLocation
(6, 15)
983
Diagnostic(ErrorCode.ERR_NoExplicitConv, "foreach").WithArguments("int", "Element").
WithLocation
(7, 15)
1334
Diagnostic(ErrorCode.ERR_BadDynamicAwaitForEach, "(dynamic)new C()").
WithLocation
(6, 33));
1360
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerable<int>", "GetAsyncEnumerator").
WithLocation
(12, 33)
1393
Diagnostic(ErrorCode.ERR_NoSuchMember, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "Current").
WithLocation
(18, 33),
1396
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "System.Collections.Generic.IAsyncEnumerable<int>.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(18, 33)
1429
Diagnostic(ErrorCode.ERR_NoSuchMember, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "MoveNextAsync").
WithLocation
(18, 33),
1432
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "System.Collections.Generic.IAsyncEnumerable<int>.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(18, 33)
1462
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(6, 33)
1489
Diagnostic(ErrorCode.ERR_ForEachMissingMemberWrongAsync, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(6, 27)
1511
Diagnostic(ErrorCode.ERR_ForEachMissingMemberWrongAsync, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerable<int>", "GetEnumerator").
WithLocation
(7, 27)
1533
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await").
WithLocation
(7, 9),
1536
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMemberWrongAsync, "collection").WithArguments("System.Collections.Generic.IEnumerable<int>", "GetAsyncEnumerator").
WithLocation
(7, 33)
1565
Diagnostic(ErrorCode.ERR_ForEachMissingMemberWrongAsync, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(6, 27)
1624
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMemberWrongAsync, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(6, 33)
1703
Diagnostic(ErrorCode.ERR_BadAsyncLocalType, "i").
WithLocation
(6, 32));
1734
Diagnostic(ErrorCode.ERR_AwaitInUnsafeContext, "await").
WithLocation
(6, 9));
1770
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new D()").WithArguments("D", "GetAsyncEnumerator").
WithLocation
(6, 33)
1807
Diagnostic(ErrorCode.ERR_BadAccess, "new D()").WithArguments("D.Enumerator.MoveNextAsync()").
WithLocation
(6, 33),
1810
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new D()").WithArguments("D.Enumerator", "D.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(6, 33)
1844
Diagnostic(ErrorCode.ERR_BadAccess, "new D()").WithArguments("D.Enumerator.Current").
WithLocation
(6, 33),
1847
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new D()").WithArguments("D.Enumerator", "D.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(6, 33)
1881
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new D()").WithArguments("D.Enumerator", "D.GetAsyncEnumerator()").
WithLocation
(6, 33)
2015
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "i").WithArguments("i", "foreach iteration variable").
WithLocation
(8, 13)
2224
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "new C()").WithArguments("C.Awaitable", "GetAwaiter").
WithLocation
(7, 33)
2264
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("C.Awaiter", "IsCompleted").
WithLocation
(7, 33)
2315
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "new C()").WithArguments("C.Awaiter", "GetResult").
WithLocation
(7, 33)
2356
Diagnostic(ErrorCode.ERR_DoesntImplementAwaitInterface, "new C()").WithArguments("C.Awaiter", "System.Runtime.CompilerServices.INotifyCompletion").
WithLocation
(7, 33)
2386
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "new C()").WithArguments("int", "GetAwaiter").
WithLocation
(7, 33)
2776
Diagnostic(ErrorCode.ERR_MultipleIAsyncEnumOfT, "new C()").WithArguments("C", "System.Collections.Generic.IAsyncEnumerable<T>").
WithLocation
(7, 33)
2806
Diagnostic(ErrorCode.ERR_MultipleIAsyncEnumOfT, "new C()").WithArguments("C", "System.Collections.Generic.IAsyncEnumerable<T>").
WithLocation
(13, 33)
3416
Diagnostic(ErrorCode.ERR_NullNotValid, "null").
WithLocation
(8, 33)
3838
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await").
WithLocation
(7, 9)
4005
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("C.GetAsyncEnumerator(System.Threading.CancellationToken)").
WithLocation
(7, 15),
4008
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("C.AsyncEnumerator.MoveNextAsync()").
WithLocation
(7, 15),
4011
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("C.AsyncEnumerator.Current").
WithLocation
(7, 15)
4036
Diagnostic(ErrorCode.ERR_UseDefViolation, "c").WithArguments("c").
WithLocation
(8, 33)
4062
Diagnostic(ErrorCode.ERR_ForEachMissingMemberWrongAsync, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(7, 27)
4451
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
4496
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "e").WithArguments("System.Collections.Generic.IAsyncEnumerable<int>", "GetAsyncEnumerator").
WithLocation
(8, 33)
4542
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "c").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
4588
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "c").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
4631
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "c").WithArguments("System.Collections.Generic.IAsyncEnumerable`1", "GetAsyncEnumerator").
WithLocation
(8, 33)
4715
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "new C()").WithArguments("C", "collection", "C.GetAsyncEnumerator(int)", "C.GetAsyncEnumerator(bool)").
WithLocation
(8, 33),
4718
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
4743
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
5002
Diagnostic(ErrorCode.ERR_BadAwaitArgVoidCall, "new C()").
WithLocation
(7, 33)
5045
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "new C()").WithArguments("int", "GetAwaiter").
WithLocation
(7, 33)
5313
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "(object)null").WithArguments("object", "GetAsyncEnumerator").
WithLocation
(8, 33)
5338
Diagnostic(ErrorCode.ERR_NullNotValid, "(IAsyncEnumerable<int>)null").
WithLocation
(9, 33)
5365
Diagnostic(ErrorCode.ERR_NullNotValid, "(C)null").
WithLocation
(9, 33)
5437
Diagnostic(ErrorCode.ERR_NullNotValid, "null").
WithLocation
(8, 33)
5470
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(8, 33)
5638
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "new C()").WithArguments("C", "GetAsyncEnumerator", "Extensions.GetAsyncEnumerator(int)", "int").
WithLocation
(10, 33),
5641
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(10, 33)
5674
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "1").WithArguments("int", "GetAsyncEnumerator", "Extensions.GetAsyncEnumerator(int?)", "int?").
WithLocation
(8, 33),
5677
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "1").WithArguments("int", "GetAsyncEnumerator").
WithLocation
(8, 33)
5710
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "new object()").WithArguments("object", "GetAsyncEnumerator", "Extensions.GetAsyncEnumerator(int)", "int").
WithLocation
(8, 33),
5713
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new object()").WithArguments("object", "GetAsyncEnumerator").
WithLocation
(8, 33)
5746
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "(int?)1").WithArguments("int?", "GetAsyncEnumerator", "Extensions.GetAsyncEnumerator(int)", "int").
WithLocation
(8, 33),
5749
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "(int?)1").WithArguments("int?", "GetAsyncEnumerator").
WithLocation
(8, 33)
5783
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "0").WithArguments("int", "GetAsyncEnumerator", "Extensions.GetAsyncEnumerator(E)", "E").
WithLocation
(9, 33),
5786
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "0").WithArguments("int", "GetAsyncEnumerator").
WithLocation
(9, 33)
5952
Diagnostic(ErrorCode.ERR_BadInstanceArgType, @"$"" """).WithArguments("string", "GetAsyncEnumerator", "Extensions.GetAsyncEnumerator(System.FormattableString)", "System.FormattableString").
WithLocation
(8, 33),
5955
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMemberWrongAsync, @"$"" """).WithArguments("string", "GetAsyncEnumerator").
WithLocation
(8, 33));
5988
Diagnostic(ErrorCode.ERR_AnonMethGrpInForEach, "() => 42").WithArguments("lambda expression").
WithLocation
(8, 33)
6339
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("C.Enumerator", "MoveNextAsync").
WithLocation
(8, 33),
6342
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "Extensions.GetAsyncEnumerator(C)").
WithLocation
(8, 33)
6377
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("C.Enumerator", "MoveNextAsync").
WithLocation
(8, 33),
6380
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").
WithLocation
(8, 33)
6457
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("C.Enumerator1", "Current").
WithLocation
(8, 33),
6460
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator1", "C.GetAsyncEnumerator()").
WithLocation
(8, 33));
6541
Diagnostic(ErrorCode.ERR_BadDynamicAwaitForEach, "(dynamic)new C()").
WithLocation
(9, 33)
6578
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "new C()").WithArguments("C", "collection", "Extensions1.GetAsyncEnumerator(C)", "Extensions2.GetAsyncEnumerator(C)").
WithLocation
(8, 33),
6581
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
6618
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "new C()").WithArguments("C", "collection", "Extensions1.GetAsyncEnumerator(C)", "Extensions2.GetAsyncEnumerator(C)").
WithLocation
(8, 33),
6621
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
6658
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "new C()").WithArguments("C", "collection", "Extensions1.GetAsyncEnumerator(C)", "Extensions2.GetAsyncEnumerator(C)").
WithLocation
(8, 33),
6661
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
6732
Diagnostic(ErrorCode.ERR_BadArgCount, "new C()").WithArguments("GetAsyncEnumerator", "0").
WithLocation
(8, 33),
6735
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
6776
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "new C()").WithArguments("C", "collection", "Extensions1.GetAsyncEnumerator(I1)", "Extensions2.GetAsyncEnumerator(I2)").
WithLocation
(12, 33),
6779
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(12, 33)
6854
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("int", "Current").
WithLocation
(10, 33),
6857
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("int", "Extensions2.GetAsyncEnumerator(C)").
WithLocation
(10, 33)
6928
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "new C()").WithArguments("C", "collection", "Extensions1.GetAsyncEnumerator(C, int, int)", "Extensions2.GetAsyncEnumerator(C, int)").
WithLocation
(8, 33),
6931
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
6995
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "new C()").WithArguments("__arglist", "Extensions.GetAsyncEnumerator(C, __arglist)").
WithLocation
(8, 33),
6998
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
7062
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new C()").
WithLocation
(8, 33));
7095
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "c").
WithLocation
(9, 33)
7128
Diagnostic(ErrorCode.ERR_BadArgRef, "new C()").WithArguments("1", "out").
WithLocation
(8, 33),
7131
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33),
7134
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "this").
WithLocation
(21, 56));
7227
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new C()").WithArguments("extension GetAsyncEnumerator", "9.0").
WithLocation
(8, 33)
7319
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("C.Enumerator", "MoveNextAsync").
WithLocation
(8, 33),
7322
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator", "Extensions.GetAsyncEnumerator(C)").
WithLocation
(8, 33)
7363
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("C.Enumerator1", "MoveNextAsync").
WithLocation
(8, 33),
7366
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("C.Enumerator1", "C.GetAsyncEnumerator()").
WithLocation
(8, 33)
7402
Diagnostic(ErrorCode.WRN_PatternNotPublicOrNotInstance, "new C()").WithArguments("C", "async streams", "C.GetAsyncEnumerator()").
WithLocation
(8, 33)
7638
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("Extensions.GetAsyncEnumerator(C)").
WithLocation
(8, 15),
7641
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("C.Enumerator.MoveNextAsync()").
WithLocation
(8, 15),
7644
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("C.Enumerator.Current").
WithLocation
(8, 15)
7715
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
7749
Diagnostic(ErrorCode.ERR_UseDefViolation, "c").WithArguments("c").
WithLocation
(9, 33)
7849
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N3;").
WithLocation
(5, 1));
7900
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("int", "Current").
WithLocation
(27, 45),
7903
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("int", "N1.N2.Extensions.GetAsyncEnumerator(N1.N2.N3.C)").
WithLocation
(27, 45));
7954
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N2;").
WithLocation
(5, 1),
7957
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("int", "Current").
WithLocation
(14, 37),
7960
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new C()").WithArguments("int", "N3.Extensions.GetAsyncEnumerator(N1.C)").
WithLocation
(14, 37));
8060
Diagnostic(ErrorCode.ERR_AwaitForEachMissingMember, "new C()").WithArguments("C", "GetAsyncEnumerator").
WithLocation
(8, 33)
8159
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "await").WithArguments("async streams", "8.0").
WithLocation
(11, 9)
8235
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "await").WithArguments("async streams", "8.0").
WithLocation
(10, 9)
8313
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "await").WithArguments("async streams", "8.0").
WithLocation
(11, 9)
8445
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "await").WithArguments("async streams", "8.0").
WithLocation
(11, 9)
CodeGen\CodeGenAwaitUsingTests.cs (46)
40
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "await").WithArguments("asynchronous using", "8.0").
WithLocation
(6, 9)
67
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await").
WithLocation
(6, 9)
94
Diagnostic(ErrorCode.ERR_BadAwaitWithoutAsyncMethod, "await").WithArguments("int").
WithLocation
(6, 9)
124
Diagnostic(ErrorCode.ERR_BadAwaitWithoutAsyncLambda, "await").WithArguments("lambda expression").
WithLocation
(8, 13)
146
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "System.IAsyncDisposable").WithArguments("C", "System.IAsyncDisposable.DisposeAsync()", "C.DisposeAsync()", "System.Threading.Tasks.ValueTask").
WithLocation
(3, 11),
149
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "DisposeAsync").
WithLocation
(9, 23)
215
Diagnostic(ErrorCode.ERR_AwaitInUnsafeContext, "await").
WithLocation
(8, 13)
245
Diagnostic(ErrorCode.ERR_BadAwaitInLock, "await").
WithLocation
(8, 13)
360
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(4, 53)
403
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "local").
WithLocation
(17, 43),
406
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(6, 42)
530
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "new C()").WithArguments("C").
WithLocation
(6, 22),
533
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "var x = new C()").WithArguments("C").
WithLocation
(9, 22)
560
Diagnostic(ErrorCode.ERR_BadAwaitWithoutAsyncMethod, "await").WithArguments("System.Threading.Tasks.Task<int>").
WithLocation
(6, 9),
563
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "new C()").WithArguments("C").
WithLocation
(6, 22),
566
Diagnostic(ErrorCode.ERR_BadAwaitWithoutAsyncMethod, "await").WithArguments("System.Threading.Tasks.Task<int>").
WithLocation
(9, 9),
569
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "var x = new C()").WithArguments("C").
WithLocation
(9, 22),
572
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "System.Threading.Tasks.Task<int>").
WithLocation
(11, 20)
599
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "new C()").WithArguments("C").
WithLocation
(6, 16),
602
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var x = new C()").WithArguments("C").
WithLocation
(9, 16)
631
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "await").WithArguments("System.IAsyncDisposable", "DisposeAsync").
WithLocation
(13, 9),
634
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "await").WithArguments("System.IAsyncDisposable", "DisposeAsync").
WithLocation
(14, 9)
660
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "using (new C()) { }").WithArguments("System.IDisposable", "Dispose").
WithLocation
(6, 9),
663
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "using (var x = new C()) { return 1; }").WithArguments("System.IDisposable", "Dispose").
WithLocation
(7, 9)
696
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "await").WithArguments("System.IAsyncDisposable", "DisposeAsync").
WithLocation
(13, 9),
699
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "await").WithArguments("System.IAsyncDisposable", "DisposeAsync").
WithLocation
(14, 9)
736
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "await").WithArguments("System.Threading.Tasks.ValueTask").
WithLocation
(6, 9)
791
Diagnostic(ErrorCode.ERR_NoConvToIDispWrongAsync, "var x = new C()").WithArguments("C").
WithLocation
(6, 16)
816
Diagnostic(ErrorCode.ERR_NoConvToIDispWrongAsync, "new C()").WithArguments("C").
WithLocation
(6, 16)
871
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDispWrongAsync, "var x = new C()").WithArguments("C").
WithLocation
(6, 22)
896
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDispWrongAsync, "new C()").WithArguments("C").
WithLocation
(6, 22)
1167
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "Main").WithArguments("method group").
WithLocation
(6, 22)
1486
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(9, 9),
1489
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(10, 9),
1492
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(11, 9)
1711
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "var x = new C()").WithArguments("C").
WithLocation
(6, 22)
1770
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "new C()").WithArguments("C").
WithLocation
(6, 22)
1954
Diagnostic(ErrorCode.ERR_BadAwaitArgVoidCall, "var x = new C()").
WithLocation
(6, 22)
1981
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "var x = new C()").WithArguments("int", "GetAwaiter").
WithLocation
(6, 22)
2011
Diagnostic(ErrorCode.ERR_BadAccess, "var x = new C()").WithArguments("C.DisposeAsync()").
WithLocation
(6, 22),
2014
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "var x = new C()").WithArguments("C").
WithLocation
(6, 22)
2332
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "await using var x = new object();").WithArguments("object").
WithLocation
(6, 9),
2335
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await").
WithLocation
(6, 9),
2338
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await").
WithLocation
(7, 9),
2341
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "var y = new object()").WithArguments("object").
WithLocation
(7, 22)
2425
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "new C()").WithArguments("C").
WithLocation
(2, 8)
CodeGen\CodeGenCheckedTests.cs (2)
2164
Diagnostic(ErrorCode.ERR_DecConstError, "decimal.MaxValue + 1").
WithLocation
(6, 25),
2167
Diagnostic(ErrorCode.ERR_DecConstError, "decimal.MaxValue + 1").
WithLocation
(10, 18)
CodeGen\CodeGenClosureLambdaTests.cs (3)
4210
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "Goo").WithArguments("Lambda.Bugs.I<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass>.NestedClass>.NestedClass>.Goo").
WithLocation
(17, 81),
4213
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "() => x").WithArguments("<Lambda.Bugs.I<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass>.NestedClass>.NestedClass>.Goo>b__0").
WithLocation
(19, 31),
4216
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "() => x").WithArguments("<Lambda.Bugs.I<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass,Lambda.Bugs.OuterGenericClass<Lambda.Bugs.OuterGenericClass<T,S>.NestedClass,Lambda.Bugs.OuterGenericClass<T,S>.NestedClass>.NestedClass>.NestedClass>.NestedClass>.NestedClass>.Goo>b__0").
WithLocation
(19, 31)
CodeGen\CodeGenConditionalOperatorTests.cs (1)
3346
Diagnostic(ErrorCode.ERR_BadUnaryOp, "?").WithArguments("?", "T").
WithLocation
(16, 23)
CodeGen\CodeGenConstructorInitTests.cs (12)
740
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "F()").WithArguments("Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo", "Create").
WithLocation
(4, 17));
1276
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "C").WithArguments("C.C()").
WithLocation
(4, 12),
1279
Diagnostic(ErrorCode.ERR_ThisOrBaseExpected, "Garbage").
WithLocation
(4, 18),
1282
Diagnostic(ErrorCode.ERR_SemicolonExpected, "Garbage").
WithLocation
(4, 18),
1285
Diagnostic(ErrorCode.ERR_MemberNeedsType, "Garbage").
WithLocation
(4, 18),
1288
Diagnostic(ErrorCode.ERR_AmbigCall, "").WithArguments("C.C()", "C.C()").
WithLocation
(4, 18)
1310
Diagnostic(ErrorCode.ERR_AmbigCall, "this").WithArguments("C.C()", "C.C()").
WithLocation
(4, 18),
1313
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "C").WithArguments("C", "C").
WithLocation
(7, 12)
1335
Diagnostic(ErrorCode.ERR_AmbigCall, "this").WithArguments("C.C()", "C.C()").
WithLocation
(4, 18),
1338
Diagnostic(ErrorCode.ERR_MemberNeedsType, "C2").
WithLocation
(7, 12)
1360
Diagnostic(ErrorCode.ERR_AmbigCall, "this").WithArguments("C.C()", "C.C()").
WithLocation
(4, 18),
1363
Diagnostic(ErrorCode.ERR_MemberNeedsType, "C2").
WithLocation
(7, 12)
CodeGen\CodeGenConversionTests.cs (2)
753
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "ICloneable.Clone is object").
WithLocation
(8, 17));
1256
Diagnostic(ErrorCode.ERR_BindToBogus, "(int)x").WithArguments("C.implicit operator int(C)").
WithLocation
(6, 13)
CodeGen\CodeGenDeconstructTests.cs (177)
165
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()").WithArguments("C.Deconstruct(out int, out string)").
WithLocation
(9, 18),
168
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new[] { new C() }").WithArguments("C.Deconstruct(out int, out string)").
WithLocation
(10, 34)
303
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "char").WithArguments("char").
WithLocation
(6, 18),
306
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(6, 23)
345
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(8, 18)
804
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "params").WithArguments("params", "out").
WithLocation
(4, 58));
1219
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "a: 1").WithArguments("a", "(long, long, long, long, long, long, long, long, long, int)").
WithLocation
(9, 43),
1222
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "b: 2").WithArguments("b", "(long, long, long, long, long, long, long, long, long, int)").
WithLocation
(9, 49),
1225
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 3").WithArguments("c", "(long, long, long, long, long, long, long, long, long, int)").
WithLocation
(9, 55),
1228
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "d: 4").WithArguments("d", "(long, long, long, long, long, long, long, long, long, int)").
WithLocation
(9, 61),
1231
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "e: 5").WithArguments("e", "(long, long, long, long, long, long, long, long, long, int)").
WithLocation
(9, 67),
1234
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "f: 6").WithArguments("f", "(long, long, long, long, long, long, long, long, long, int)").
WithLocation
(9, 73),
1237
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "g: 7").WithArguments("g", "(long, long, long, long, long, long, long, long, long, int)").
WithLocation
(9, 79),
1240
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "h: 8").WithArguments("h", "(long, long, long, long, long, long, long, long, long, int)").
WithLocation
(9, 85),
1243
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "i: 9").WithArguments("i", "(long, long, long, long, long, long, long, long, long, int)").
WithLocation
(9, 91),
1246
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "j: 10").WithArguments("j", "(long, long, long, long, long, long, long, long, long, int)").
WithLocation
(9, 97)
1589
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(1, 2)").WithArguments("System.ValueTuple`2").
WithLocation
(7, 18)
1640
Diagnostic(ErrorCode.ERR_TupleInferredNamesNotAvailable, "x").WithArguments("x", "7.1").
WithLocation
(8, 37)
1712
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var x").
WithLocation
(6, 19)
1749
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "out ArgIterator a").WithArguments("System.ArgIterator").
WithLocation
(19, 29),
1752
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M2").WithArguments("System.ArgIterator").
WithLocation
(14, 46),
1755
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M2").WithArguments("System.ArgIterator").
WithLocation
(14, 46),
1758
Diagnostic(ErrorCode.ERR_BadTypeArgument, "default(ArgIterator)").WithArguments("System.ArgIterator").
WithLocation
(16, 17),
1761
Diagnostic(ErrorCode.ERR_BadTypeArgument, "default(ArgIterator)").WithArguments("System.ArgIterator").
WithLocation
(16, 39)
1797
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M2").WithArguments("int*").
WithLocation
(13, 32),
1800
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M2").WithArguments("int*").
WithLocation
(13, 32),
1803
Diagnostic(ErrorCode.ERR_BadTypeArgument, "default(int*)").WithArguments("int*").
WithLocation
(15, 17),
1806
Diagnostic(ErrorCode.ERR_BadTypeArgument, "default(int*)").WithArguments("int*").
WithLocation
(15, 32)
1841
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M2").WithArguments("int*").
WithLocation
(12, 32),
1844
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M2").WithArguments("int*").
WithLocation
(12, 32),
1847
Diagnostic(ErrorCode.ERR_BadTypeArgument, "err1").WithArguments("int*").
WithLocation
(8, 24),
1850
Diagnostic(ErrorCode.ERR_BadTypeArgument, "err1").WithArguments("int*").
WithLocation
(9, 20),
1853
Diagnostic(ErrorCode.ERR_BadTypeArgument, "err2").WithArguments("int*").
WithLocation
(9, 26)
1874
Diagnostic(ErrorCode.ERR_TupleElementNamesInDeconstruction, "Alice:").
WithLocation
(6, 10),
1877
Diagnostic(ErrorCode.ERR_TupleElementNamesInDeconstruction, "Bob:").
WithLocation
(6, 24)
2347
Diagnostic(ErrorCode.ERR_NoImplicitConv, "2").WithArguments("int", "string").
WithLocation
(8, 25),
2350
Diagnostic(ErrorCode.ERR_DeconstructWrongCardinality, "(x, y, z) = (1, 2)").WithArguments("2", "3").
WithLocation
(8, 9)
2466
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "(x, y) = c").
WithLocation
(10, 9)
2525
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "new C()").WithArguments("Extension.Deconstruct<T>(C, out int, out T)").
WithLocation
(8, 18),
2528
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(8, 18)
2624
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "new C1()").WithArguments("C1.Deconstruct<T>(out int, out T)").
WithLocation
(9, 18),
2627
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C1()").WithArguments("C1", "2").
WithLocation
(9, 18)
4964
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(4, 11),
4967
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(4, 14),
4970
Diagnostic(ErrorCode.ERR_SemicolonExpected, "=").
WithLocation
(4, 16),
4973
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(4, 16),
4976
Diagnostic(ErrorCode.ERR_TypeExpected, "1").
WithLocation
(4, 19),
4979
Diagnostic(ErrorCode.ERR_TupleTooFewElements, "1").
WithLocation
(4, 19),
4982
Diagnostic(ErrorCode.ERR_CloseParenExpected, "1").
WithLocation
(4, 19),
4985
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "1").WithArguments("1").
WithLocation
(4, 19),
4988
Diagnostic(ErrorCode.ERR_MemberNeedsType, "var").
WithLocation
(4, 5),
4991
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "var").WithArguments("C.C(x, y)").
WithLocation
(4, 5),
4994
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "x").WithArguments("x").
WithLocation
(4, 10),
4997
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "y").WithArguments("y").
WithLocation
(4, 13)
5376
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(x, y)").WithArguments("tuples", "7.0").
WithLocation
(2, 5),
5379
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(1, 2)").WithArguments("tuples", "7.0").
WithLocation
(2, 14)
5395
Diagnostic(ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, "(x, y)").
WithLocation
(2, 5)
5428
Diagnostic(ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, "(x, y)").
WithLocation
(2, 6)
5463
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x1").WithArguments("Script", "x1").
WithLocation
(3, 6),
5466
Diagnostic(ErrorCode.ERR_AmbigMember, "x1").WithArguments("x1", "x1").
WithLocation
(4, 22)
5498
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "y").WithArguments("Script", "y").
WithLocation
(3, 9)
5529
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x").WithArguments("Script", "x").
WithLocation
(2, 13)
5586
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x").WithArguments("x").
WithLocation
(2, 6),
5589
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y").WithArguments("y").
WithLocation
(2, 9)
5595
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x").WithArguments("x").
WithLocation
(2, 6),
5598
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y").WithArguments("y").
WithLocation
(2, 9)
5634
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "x2").WithArguments("x2").
WithLocation
(2, 10),
5637
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "x1").WithArguments("x1").
WithLocation
(2, 6)
5675
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "y1").WithArguments("y1").
WithLocation
(3, 6),
5678
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "x1").WithArguments("x1").
WithLocation
(2, 6),
5681
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "x2").WithArguments("x2").
WithLocation
(2, 10)
5720
Diagnostic(ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, "(x1, (x2, x3))").
WithLocation
(3, 5)
5762
Diagnostic(ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, "(x1, (x2, x3))").
WithLocation
(6, 5)
5949
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""").WithArguments("string", "int").
WithLocation
(6, 30),
5952
Diagnostic(ErrorCode.ERR_NoImplicitConv, "42").WithArguments("int", "string").
WithLocation
(6, 39)
6176
Diagnostic(ErrorCode.ERR_NameNotInContext, "@_").WithArguments("_").
WithLocation
(6, 10)
6203
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(@_, var x) = (1, 2)").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").
WithLocation
(6, 9),
6206
Diagnostic(ErrorCode.ERR_NameNotInContext, "@_").WithArguments("_").
WithLocation
(6, 10)
6478
Diagnostic(ErrorCode.ERR_NoImplicitConv, "_").WithArguments("string", "int").
WithLocation
(11, 30),
6481
Diagnostic(ErrorCode.ERR_MustDeclareForeachIteration, "(var y, _)").
WithLocation
(11, 22),
6484
Diagnostic(ErrorCode.WRN_UnreferencedVar, "_").WithArguments("_").
WithLocation
(10, 17)
6590
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "_").WithArguments("discards", "7.0").
WithLocation
(6, 9)
6631
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(_, var _, int _)").WithArguments("tuples", "7.0").
WithLocation
(6, 9),
6634
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "_").WithArguments("discards", "7.0").
WithLocation
(6, 10),
6637
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(1, 2, 3)").WithArguments("tuples", "7.0").
WithLocation
(6, 29),
6640
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(_, _)").WithArguments("tuples", "7.0").
WithLocation
(7, 13),
6643
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(1, 2)").WithArguments("tuples", "7.0").
WithLocation
(7, 22),
6646
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "is").WithArguments("pattern matching", "7.0").
WithLocation
(8, 20),
6649
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "case").WithArguments("pattern matching", "7.0").
WithLocation
(11, 13),
6652
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "out").WithArguments("out variable declaration", "7.0").
WithLocation
(14, 12),
6655
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "out").WithArguments("out variable declaration", "7.0").
WithLocation
(15, 12),
6658
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "_").WithArguments("discards", "7.0").
WithLocation
(16, 16),
6661
Diagnostic(ErrorCode.WRN_CaseConstantNamedUnderscore, "_").
WithLocation
(24, 18));
6684
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "System.Threading.Tasks.Task.Delay(new System.TimeSpan(0))").
WithLocation
(6, 9)
6706
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(6, 9)
6750
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(var x, x) = (1, 2)").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").
WithLocation
(6, 9),
6753
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x").WithArguments("x").
WithLocation
(6, 17),
6756
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(y, var y) = (1, 2)").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").
WithLocation
(7, 9),
6759
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "y").WithArguments("y").
WithLocation
(7, 10)
6766
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x").WithArguments("x").
WithLocation
(6, 17),
6769
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "y").WithArguments("y").
WithLocation
(7, 10)
6794
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x").
WithLocation
(6, 26)
6840
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x").WithArguments("x").
WithLocation
(6, 10)
7062
Diagnostic(ErrorCode.ERR_MustDeclareForeachIteration, "_").
WithLocation
(6, 18)
7093
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "_").WithArguments("_").
WithLocation
(7, 22),
7096
Diagnostic(ErrorCode.WRN_UnreferencedVar, "_").WithArguments("_").
WithLocation
(6, 13)
7118
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int x1").
WithLocation
(7, 18)
7264
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(int x1, z) = t").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").
WithLocation
(8, 14));
7295
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int x1").
WithLocation
(7, 19),
7298
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(9, 38),
7301
Diagnostic(ErrorCode.ERR_NameNotInContext, "x2").WithArguments("x2").
WithLocation
(10, 38)
7343
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "args is var x2").
WithLocation
(6, 34),
7346
Diagnostic(ErrorCode.ERR_NoImplicitConv, "args is var x2").WithArguments("int", "bool").
WithLocation
(6, 34),
7349
Diagnostic(ErrorCode.ERR_MustDeclareForeachIteration, "(M(out var x1), args is var x2, _)").
WithLocation
(6, 18)
7388
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(6, 32)
7424
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(6, 61)
7545
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int x1").
WithLocation
(6, 10),
7548
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "string x2").
WithLocation
(6, 18),
7551
Diagnostic(ErrorCode.ERR_IllegalStatement, "(int x1, string x2)").
WithLocation
(6, 9),
7554
Diagnostic(ErrorCode.ERR_UseDefViolation, "int x1").WithArguments("x1").
WithLocation
(6, 10),
7557
Diagnostic(ErrorCode.ERR_UseDefViolation, "string x2").WithArguments("x2").
WithLocation
(6, 18)
7592
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(",").
WithLocation
(6, 16),
7595
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(6, 16)
7728
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(9, 36)
7752
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "int size").WithArguments("1", "out").
WithLocation
(9, 27),
7755
Diagnostic(ErrorCode.ERR_MustDeclareForeachIteration, "(arr[out int size], int b)").
WithLocation
(9, 18)
7956
Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").
WithLocation
(11, 12)
7984
Diagnostic(ErrorCode.ERR_BadEventUsageNoField, "E").WithArguments("C.E").
WithLocation
(12, 10)
8232
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x").
WithLocation
(8, 11),
8235
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "this.x").
WithLocation
(8, 18),
8238
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "C.y").
WithLocation
(8, 26)
8266
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "y").
WithLocation
(9, 14),
8269
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "z").
WithLocation
(9, 17)
8298
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x").
WithLocation
(8, 10)
8328
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x").
WithLocation
(14, 14)
8413
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x").
WithLocation
(9, 10)
8436
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error").WithArguments("Error").
WithLocation
(4, 5)
8465
Diagnostic(ErrorCode.ERR_NoTypeDef, "new C().M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 18)
8494
Diagnostic(ErrorCode.ERR_NoTypeDef, "new C().M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 18)
8922
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Item1").WithArguments("(T1, T2).Item1", "").
WithLocation
(12, 19),
8925
Diagnostic(ErrorCode.WRN_UnreferencedField, "Item2").WithArguments("(T1, T2).Item2").
WithLocation
(13, 20)
8971
Diagnostic(ErrorCode.WRN_UnreferencedField, "Item2").WithArguments("(T1, T2).Item2").
WithLocation
(13, 20),
8974
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "ValueTuple").WithArguments("(T1, T2).Item2", "11.0").
WithLocation
(14, 16),
8977
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "ValueTuple").WithArguments("(T1, T2).Item2", "11.0").
WithLocation
(14, 16),
8980
Diagnostic(ErrorCode.ERR_AmbigMember, "Item2").WithArguments("(T1, T2).Item2", "(T1, T2).Item2").
WithLocation
(17, 13)
9440
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 17),
9443
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var y").
WithLocation
(7, 10),
9446
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(7, 17),
9449
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int z").
WithLocation
(8, 10),
9452
Diagnostic(ErrorCode.ERR_UseDefViolation, "int z").WithArguments("z").
WithLocation
(8, 10),
9455
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(8, 17),
9458
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var t").
WithLocation
(9, 10),
9461
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(9, 17)
9686
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "string y1").
WithLocation
(7, 23),
9689
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int x2").
WithLocation
(9, 19));
9716
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x1").WithArguments("x1").
WithLocation
(6, 13),
9719
Diagnostic(ErrorCode.ERR_MustDeclareForeachIteration, "(x1, string y1)").
WithLocation
(7, 17),
9722
Diagnostic(ErrorCode.WRN_UnreferencedVar, "y2").WithArguments("y2").
WithLocation
(8, 16),
9725
Diagnostic(ErrorCode.ERR_MustDeclareForeachIteration, "(int x2, y2)").
WithLocation
(9, 17));
9754
Diagnostic(ErrorCode.WRN_UnreferencedVar, "y1").WithArguments("y1").
WithLocation
(7, 16),
9757
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y1").WithArguments("y1").
WithLocation
(8, 21),
9760
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(11, 13),
9763
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x2").WithArguments("x2").
WithLocation
(11, 13));
9788
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(6, 10),
9791
Diagnostic(ErrorCode.ERR_NameNotInContext, "y2").WithArguments("y2").
WithLocation
(7, 18));
10007
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(x1, string y1) = new A()").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").
WithLocation
(7, 9),
10010
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(int x2, y2) = new A()").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").
WithLocation
(9, 9),
10013
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(int x3, (string y3, z3)) = new B()").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").
WithLocation
(11, 9),
10016
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(x4, var (y4, z4)) = new B()").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").
WithLocation
(13, 9));
10118
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1", isSuppressed: false).WithArguments("x1").
WithLocation
(6, 10),
10121
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "y2", isSuppressed: false).WithArguments("y2").
WithLocation
(8, 18),
10124
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "z3", isSuppressed: false).WithArguments("z3").
WithLocation
(10, 30),
10127
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4", isSuppressed: false).WithArguments("x4").
WithLocation
(12, 10));
10167
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(6, 18),
10170
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(7, 10),
10173
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x3").WithArguments("x3").
WithLocation
(8, 27),
10176
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(9, 10));
CodeGen\CodeGenDynamicTests.cs (5)
226
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "d").WithArguments("Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo", "Create").
WithLocation
(9, 18)
500
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "d").WithArguments("System.Runtime.CompilerServices.CallSite`1").
WithLocation
(6, 16),
503
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "d").WithArguments("System.Runtime.CompilerServices.CallSite`1", "Create").
WithLocation
(6, 16)
15429
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "d").WithArguments("Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo", "Create").
WithLocation
(5, 9));
15451
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "d").WithArguments("Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo", "Create").
WithLocation
(6, 15));
CodeGen\CodeGenExplicitImplementationTests.cs (3)
1052
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C").WithArguments("I.E").
WithLocation
(5, 7),
1055
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C").WithArguments("I.P").
WithLocation
(5, 7),
1058
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C").WithArguments("I.M()").
WithLocation
(5, 7));
CodeGen\CodeGenExprLambdaTests.cs (51)
865
Diagnostic(ErrorCode.ERR_BadAsyncExpressionTree, "async x => (await x)").
WithLocation
(10, 13)
3389
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsBadCoalesce, "null").
WithLocation
(6, 47));
3717
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "global::").
WithLocation
(2, 11),
3720
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(2, 19),
3723
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(2, 71),
3726
Diagnostic(ErrorCode.ERR_CloseParenExpected, "=>").
WithLocation
(2, 76),
3729
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "B").
WithLocation
(2, 79),
3732
Diagnostic(ErrorCode.ERR_LbraceExpected, "(").
WithLocation
(2, 19),
3735
Diagnostic(ErrorCode.ERR_EOFExpected, "=>").
WithLocation
(2, 76),
3738
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 81),
3741
Diagnostic(ErrorCode.ERR_SemicolonExpected, "(").
WithLocation
(2, 93),
3744
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(2, 94),
3747
Diagnostic(ErrorCode.ERR_EOFExpected, "{").
WithLocation
(2, 95),
3750
Diagnostic(ErrorCode.ERR_MemberNeedsType, "Compile").
WithLocation
(2, 84),
3753
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "Compile").WithArguments(".<invalid-global-code>.<invalid-global-code>()").
WithLocation
(2, 84)
3767
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(2, 19),
3770
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(2, 71),
3773
Diagnostic(ErrorCode.ERR_CloseParenExpected, "=>").
WithLocation
(2, 76),
3776
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "B").
WithLocation
(2, 79),
3779
Diagnostic(ErrorCode.ERR_LbraceExpected, "(").
WithLocation
(2, 19),
3782
Diagnostic(ErrorCode.ERR_EOFExpected, "=>").
WithLocation
(2, 76),
3785
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 81),
3788
Diagnostic(ErrorCode.ERR_SemicolonExpected, "(").
WithLocation
(2, 93),
3791
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(2, 94),
3794
Diagnostic(ErrorCode.ERR_EOFExpected, "{").
WithLocation
(2, 95),
3797
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "global::").
WithLocation
(2, 11),
3800
Diagnostic(ErrorCode.ERR_MemberNeedsType, "Compile").
WithLocation
(2, 84),
3803
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "Compile").WithArguments(".<invalid-global-code>.<invalid-global-code>()").
WithLocation
(2, 84));
3823
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(8, 58),
3826
Diagnostic(ErrorCode.ERR_NewlineInConst, "").
WithLocation
(8, 105),
3829
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(8, 122),
3832
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(8, 122),
3835
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(8, 122),
3838
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(8, 122),
3841
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "global").WithArguments("global").
WithLocation
(2, 16),
3844
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "System").WithArguments("System", "<global namespace>").
WithLocation
(8, 11),
3847
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "System").WithArguments("System", "<global namespace>").
WithLocation
(8, 46)
4313
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(9, 105),
4316
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("}").
WithLocation
(9, 123),
4319
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Goo").WithArguments("Goo").
WithLocation
(8, 9),
4322
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Goo").WithArguments("Goo").
WithLocation
(8, 21),
4325
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "GenericMethod").WithArguments("MemberInitializerTest.GenericMethod<T>()").
WithLocation
(9, 29));
5313
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "new C()").WithArguments("System.Type", "GetTypeFromHandle").
WithLocation
(30, 36));
5372
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
5375
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "F").WithArguments("System.Reflection.FieldInfo", "GetFieldFromHandle").
WithLocation
(37, 36),
5378
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "F").WithArguments("System.Reflection.FieldInfo", "GetFieldFromHandle").
WithLocation
(42, 36)
5445
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
5448
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "new A(null)").WithArguments("System.Reflection.MethodBase", "GetMethodFromHandle").
WithLocation
(39, 36),
5451
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "M()").WithArguments("System.Reflection.MethodBase", "GetMethodFromHandle").
WithLocation
(40, 36),
5454
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "new B<object>(null)").WithArguments("System.Reflection.MethodBase", "GetMethodFromHandle").
WithLocation
(46, 36),
5457
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "M()").WithArguments("System.Reflection.MethodBase", "GetMethodFromHandle").
WithLocation
(47, 36)
CodeGen\CodeGenFieldInitTests.cs (2)
678
Diagnostic(ErrorCode.ERR_NotConstantExpression, "F2").WithArguments("B.F1").
WithLocation
(7, 27));
693
Diagnostic(ErrorCode.ERR_NotConstantExpression, "F2").WithArguments("B.F1").
WithLocation
(3, 27));
CodeGen\CodeGenForEachTests.cs (64)
1747
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "new Enumerable1()").WithArguments("pattern-based disposal", "8.0").
WithLocation
(6, 27)
2410
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "(object)null").WithArguments("object", "GetEnumerator").
WithLocation
(7, 27)
2434
Diagnostic(ErrorCode.ERR_NullNotValid, "(IEnumerable<int>)null").
WithLocation
(8, 27)
2460
Diagnostic(ErrorCode.ERR_NullNotValid, "(C)null").
WithLocation
(8, 27)
2483
Diagnostic(ErrorCode.ERR_NullNotValid, "(int[])null").
WithLocation
(7, 27)
2629
Diagnostic(ErrorCode.ERR_NullNotValid, "null").
WithLocation
(7, 27)
2661
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(7, 27)
2803
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "new C()").WithArguments("C", "GetEnumerator", "Extensions.GetEnumerator(int)", "int").
WithLocation
(9, 27),
2806
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(9, 27)
2838
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "1").WithArguments("int", "GetEnumerator", "Extensions.GetEnumerator(int?)", "int?").
WithLocation
(7, 27),
2841
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "1").WithArguments("int", "GetEnumerator").
WithLocation
(7, 27)
2873
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "new object()").WithArguments("object", "GetEnumerator", "Extensions.GetEnumerator(int)", "int").
WithLocation
(7, 27),
2876
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new object()").WithArguments("object", "GetEnumerator").
WithLocation
(7, 27)
2908
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "(int?)1").WithArguments("int?", "GetEnumerator", "Extensions.GetEnumerator(int)", "int").
WithLocation
(7, 27),
2911
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "(int?)1").WithArguments("int?", "GetEnumerator").
WithLocation
(7, 27)
2945
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "0").WithArguments("int", "GetEnumerator", "Extensions.GetEnumerator(E)", "E").
WithLocation
(9, 27),
2948
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "0").WithArguments("int", "GetEnumerator").
WithLocation
(9, 27)
3072
Diagnostic(ErrorCode.ERR_AnonMethGrpInForEach, "() => 42").WithArguments("lambda expression").
WithLocation
(7, 27)
3409
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "new object()").WithArguments("Extensions.GetEnumerator<T>(object)").
WithLocation
(8, 27),
3412
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new object()").WithArguments("object", "GetEnumerator").
WithLocation
(8, 27)
3440
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "new object()").WithArguments("Extensions.GetEnumerator<T>(object, params T[])").
WithLocation
(8, 27),
3443
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new object()").WithArguments("object", "GetEnumerator").
WithLocation
(8, 27)
3475
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("C.Enumerator", "MoveNext").
WithLocation
(7, 27),
3478
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new C()").WithArguments("C.Enumerator", "Extensions.GetEnumerator(C)").
WithLocation
(7, 27)
3511
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("C.Enumerator", "MoveNext").
WithLocation
(7, 27),
3514
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new C()").WithArguments("C.Enumerator", "C.GetEnumerator()").
WithLocation
(7, 27)
3588
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("C.Enumerator1", "Current").
WithLocation
(7, 27),
3591
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new C()").WithArguments("C.Enumerator1", "C.GetEnumerator()").
WithLocation
(7, 27)
3714
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "new C()").WithArguments("C", "collection", "Extensions1.GetEnumerator(C)", "Extensions2.GetEnumerator(C)").
WithLocation
(7, 27),
3717
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(7, 27)
3753
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "new C()").WithArguments("C", "collection", "Extensions1.GetEnumerator(C)", "Extensions2.GetEnumerator(C)").
WithLocation
(7, 27),
3756
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(7, 27)
3792
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "new C()").WithArguments("C", "collection", "Extensions1.GetEnumerator(C)", "Extensions2.GetEnumerator(C)").
WithLocation
(7, 27),
3795
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(7, 27)
3862
Diagnostic(ErrorCode.ERR_BadArgCount, "new C()").WithArguments("GetEnumerator", "0").
WithLocation
(7, 27),
3865
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(7, 27)
3905
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "new C()").WithArguments("C", "collection", "Extensions1.GetEnumerator(I1)", "Extensions2.GetEnumerator(I2)").
WithLocation
(11, 27),
3908
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(11, 27)
3979
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("int", "Current").
WithLocation
(9, 27),
3982
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new C()").WithArguments("int", "Extensions2.GetEnumerator(C)").
WithLocation
(9, 27)
4049
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "new C()").WithArguments("C", "collection", "Extensions1.GetEnumerator(C, int, int)", "Extensions2.GetEnumerator(C, int)").
WithLocation
(7, 27),
4052
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(7, 27)
4140
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "new C()").WithArguments("__arglist", "Extensions.GetEnumerator(C, __arglist)").
WithLocation
(7, 27),
4143
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(7, 27));
4174
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new C()").
WithLocation
(7, 27));
4206
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "c").
WithLocation
(8, 27)
4238
Diagnostic(ErrorCode.ERR_BadArgRef, "new C()").WithArguments("1", "out").
WithLocation
(7, 27),
4241
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(7, 27),
4244
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "this").
WithLocation
(20, 51));
4330
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new C()").WithArguments("extension GetEnumerator", "9.0").
WithLocation
(7, 27)
4415
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("C.Enumerator", "MoveNext").
WithLocation
(7, 27),
4418
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new C()").WithArguments("C.Enumerator", "Extensions.GetEnumerator(C)").
WithLocation
(7, 27));
4457
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("C.Enumerator1", "MoveNext").
WithLocation
(7, 27),
4460
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new C()").WithArguments("C.Enumerator1", "C.GetEnumerator()").
WithLocation
(7, 27)
4811
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("Extensions.GetEnumerator(C)").
WithLocation
(7, 9),
4814
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("C.Enumerator.MoveNext()").
WithLocation
(7, 9),
4817
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "foreach").WithArguments("C.Enumerator.Current").
WithLocation
(7, 9));
4882
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(7, 27));
5020
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("int", "Current").
WithLocation
(25, 39),
5023
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new C()").WithArguments("int", "N1.N2.Extensions.GetEnumerator(N1.N2.N3.C)").
WithLocation
(25, 39));
5073
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N2;").
WithLocation
(4, 1),
5076
Diagnostic(ErrorCode.ERR_NoSuchMember, "new C()").WithArguments("int", "Current").
WithLocation
(13, 31),
5079
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new C()").WithArguments("int", "N3.Extensions.GetEnumerator(N1.C)").
WithLocation
(13, 31));
5174
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new C()").WithArguments("C", "GetEnumerator").
WithLocation
(7, 27)
CodeGen\CodeGenFunctionPointersTests.cs (378)
271
Diagnostic(ErrorCode.ERR_BindToBogus, "c.Field1()").WithArguments("delegate*<ref int>").
WithLocation
(6, 26),
274
Diagnostic(ErrorCode.ERR_BindToBogus, "Field1").WithArguments("C.Field1").
WithLocation
(6, 28),
277
Diagnostic(ErrorCode.ERR_BindToBogus, "c.Field2()").WithArguments("delegate*<ref int>").
WithLocation
(7, 26),
280
Diagnostic(ErrorCode.ERR_BindToBogus, "Field2").WithArguments("C.Field2").
WithLocation
(7, 28),
283
Diagnostic(ErrorCode.ERR_BindToBogus, "Field1").WithArguments("C.Field1").
WithLocation
(8, 11),
286
Diagnostic(ErrorCode.ERR_BindToBogus, "Field1").WithArguments("C.Field1").
WithLocation
(8, 22),
289
Diagnostic(ErrorCode.ERR_BindToBogus, "Field2").WithArguments("C.Field2").
WithLocation
(9, 11),
292
Diagnostic(ErrorCode.ERR_BindToBogus, "Field2").WithArguments("C.Field2").
WithLocation
(9, 22)
347
Diagnostic(ErrorCode.ERR_BindToBogus, "c.Field1(ref i)").WithArguments("delegate*<in int, void>").
WithLocation
(7, 9),
350
Diagnostic(ErrorCode.ERR_BindToBogus, "Field1").WithArguments("C.Field1").
WithLocation
(7, 11),
353
Diagnostic(ErrorCode.ERR_BindToBogus, "c.Field1(in i)").WithArguments("delegate*<in int, void>").
WithLocation
(8, 9),
356
Diagnostic(ErrorCode.ERR_BindToBogus, "Field1").WithArguments("C.Field1").
WithLocation
(8, 11),
359
Diagnostic(ErrorCode.ERR_BindToBogus, "c.Field1(out i)").WithArguments("delegate*<in int, void>").
WithLocation
(9, 9),
362
Diagnostic(ErrorCode.ERR_BindToBogus, "Field1").WithArguments("C.Field1").
WithLocation
(9, 11),
365
Diagnostic(ErrorCode.ERR_BindToBogus, "Field1").WithArguments("C.Field1").
WithLocation
(10, 11),
368
Diagnostic(ErrorCode.ERR_BindToBogus, "Field1").WithArguments("C.Field1").
WithLocation
(10, 22)
948
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "c.Field(__arglist(1, 2))").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(6, 9),
951
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "Field").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(6, 11),
954
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "c.Field(1, 2, 3)").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(7, 9),
957
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "Field").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(7, 11),
960
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "c.Field()").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(8, 9),
963
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "Field").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(8, 11),
966
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "Field").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(9, 11),
969
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "Field").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(9, 21),
972
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "c.Prop()").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(10, 9),
975
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "Prop").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(10, 11),
978
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "Prop").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(11, 11),
981
Diagnostic(ErrorCode.ERR_UnsupportedCallingConvention, "Prop").WithArguments("delegate* unmanaged[]<void>").
WithLocation
(11, 20)
2636
Diagnostic(ErrorCode.ERR_BadAccess, "b.M").WithArguments("B.M()").
WithLocation
(6, 9));
3100
Diagnostic(ErrorCode.ERR_AmbigCall, "IHelpers.M").WithArguments("IHelpers.M(I1)", "IHelpers.M(I2)").
WithLocation
(13, 35)
3139
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M1").WithArguments("M1", "delegate*<ref string, void>").
WithLocation
(9, 44),
3142
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M1").WithArguments("M1", "delegate*<string, void>").
WithLocation
(10, 40),
3145
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M2").WithArguments("M2", "delegate*<in string, void>").
WithLocation
(11, 43),
3148
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M2").WithArguments("M2", "delegate*<string, void>").
WithLocation
(12, 40),
3151
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M3").WithArguments("M3", "delegate*<out object, void>").
WithLocation
(13, 44),
3154
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M3").WithArguments("M3", "delegate*<string, void>").
WithLocation
(14, 40)
3197
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M1").WithArguments("M1", "delegate*<object, void>").
WithLocation
(13, 40),
3200
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M2").WithArguments("M2", "delegate*<object, void>").
WithLocation
(14, 40),
3203
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M3").WithArguments("M3", "delegate*<object, void>").
WithLocation
(15, 40),
3206
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M2").WithArguments("M2", "delegate*<ref object, void>").
WithLocation
(16, 44),
3209
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M3").WithArguments("M3", "delegate*<ref object, void>").
WithLocation
(17, 44),
3212
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M4").WithArguments("M4", "delegate*<ref object, void>").
WithLocation
(18, 44),
3215
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M1").WithArguments("M1", "delegate*<in object, void>").
WithLocation
(19, 43),
3218
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M3").WithArguments("M3", "delegate*<in object, void>").
WithLocation
(20, 43),
3221
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M4").WithArguments("M4", "delegate*<in object, void>").
WithLocation
(21, 43),
3224
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M1").WithArguments("M1", "delegate*<out object, void>").
WithLocation
(22, 45),
3227
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M2").WithArguments("M2", "delegate*<out object, void>").
WithLocation
(23, 45),
3230
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M4").WithArguments("M4", "delegate*<out object, void>").
WithLocation
(24, 45),
3233
Diagnostic(ErrorCode.ERR_FuncPtrRefMismatch, "M5").WithArguments("C.M5()", "delegate*<object>").
WithLocation
(25, 36),
3236
Diagnostic(ErrorCode.ERR_FuncPtrRefMismatch, "M6").WithArguments("C.M6()", "delegate*<object>").
WithLocation
(26, 36),
3239
Diagnostic(ErrorCode.ERR_FuncPtrRefMismatch, "M6").WithArguments("C.M6()", "delegate*<ref object>").
WithLocation
(27, 40),
3242
Diagnostic(ErrorCode.ERR_FuncPtrRefMismatch, "M7").WithArguments("C.M7()", "delegate*<ref object>").
WithLocation
(28, 40),
3245
Diagnostic(ErrorCode.ERR_FuncPtrRefMismatch, "M5").WithArguments("C.M5()", "delegate*<ref readonly object>").
WithLocation
(29, 49),
3248
Diagnostic(ErrorCode.ERR_FuncPtrRefMismatch, "M7").WithArguments("C.M7()", "delegate*<ref readonly object>").
WithLocation
(30, 49)
3271
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "M1").WithArguments("C.M1()", callingConvention).
WithLocation
(7, 33 + callingConventionKeyword.Length));
3322
Diagnostic(ErrorCode.ERR_FuncPtrMethMustBeStatic, "M").WithArguments("C.M()").
WithLocation
(6, 33),
3325
Diagnostic(ErrorCode.ERR_FuncPtrMethMustBeStatic, "i.GetValueOrDefault").WithArguments("int?.GetValueOrDefault()").
WithLocation
(8, 32)
3396
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&M").WithArguments("M", "delegate*<int, int>").
WithLocation
(9, 35)
3443
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(string, object)", "C.M(object, string)").
WithLocation
(8, 48)
3495
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "&M").WithArguments("M", "&method group").
WithLocation
(8, 9),
3498
Diagnostic(ErrorCode.ERR_BadArgType, "&M").WithArguments("1", "&method group", "ref delegate*<void>").
WithLocation
(9, 12),
3501
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "&M").WithArguments("M", "&method group").
WithLocation
(10, 16),
3504
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "&M").WithArguments("M", "&method group").
WithLocation
(11, 40)
3551
Diagnostic(ErrorCode.ERR_AddressOfToNonFunctionPointer, "&M").WithArguments("M", "void*").
WithLocation
(6, 22),
3554
Diagnostic(ErrorCode.ERR_AddressOfToNonFunctionPointer, "(void*)&M").WithArguments("M", "void*").
WithLocation
(7, 22)
3597
Diagnostic(ErrorCode.ERR_BadSKunknown, "Action").WithArguments("System.Action", "type").
WithLocation
(8, 24),
3600
Diagnostic(ErrorCode.ERR_BadSKunknown, "Action").WithArguments("System.Action", "type").
WithLocation
(8, 24),
3603
Diagnostic(ErrorCode.ERR_CannotConvertAddressOfToDelegate, "(Action)(&M)").WithArguments("M", "System.Action").
WithLocation
(9, 23),
3606
Diagnostic(ErrorCode.ERR_CannotConvertAddressOfToDelegate, "&M").WithArguments("M", "System.Action").
WithLocation
(10, 23)
3648
Diagnostic(ErrorCode.ERR_BadSKunknown, "C").WithArguments("C", "type").
WithLocation
(7, 19),
3651
Diagnostic(ErrorCode.ERR_BadSKunknown, "C").WithArguments("C", "type").
WithLocation
(7, 19),
3654
Diagnostic(ErrorCode.ERR_AddressOfToNonFunctionPointer, "(C)(&M)").WithArguments("M", "C").
WithLocation
(8, 18),
3657
Diagnostic(ErrorCode.ERR_AddressOfToNonFunctionPointer, "&M").WithArguments("M", "C").
WithLocation
(9, 18)
3696
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "(delegate*<string>)&M").WithArguments("M", "delegate*<string>").
WithLocation
(6, 19)
3733
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsPointerOp, "&M2").
WithLocation
(11, 47),
3736
Diagnostic(ErrorCode.ERR_AddressOfMethodGroupInExpressionTree, "M2").
WithLocation
(11, 48),
3739
Diagnostic(ErrorCode.ERR_MethodNameExpected, "(&M2)").
WithLocation
(12, 44)
3762
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsPointerOp, "ptr").
WithLocation
(8, 41)
3790
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsPointerOp, "fp()()").
WithLocation
(12, 55)
3849
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "C.M1").WithArguments("C.M1<T>(int)").
WithLocation
(9, 38),
3852
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "C.M2").WithArguments("C.M2<T>()").
WithLocation
(10, 35)
3913
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "&c.M1").WithArguments("M1", "delegate*<C, void>").
WithLocation
(10, 35),
3916
Diagnostic(ErrorCode.ERR_CannotUseReducedExtensionMethodInAddressOf, "&c.M1").
WithLocation
(11, 32)
3980
Diagnostic(ErrorCode.ERR_LbraceExpected, "*").
WithLocation
(7, 18),
3983
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "<").WithArguments("<").
WithLocation
(7, 19),
3986
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "void").WithArguments("void").
WithLocation
(7, 20),
3989
Diagnostic(ErrorCode.ERR_NameNotInContext, "ptr").WithArguments("ptr").
WithLocation
(7, 26)
4010
Diagnostic(ErrorCode.ERR_NoSuchMember, "NonExistent").WithArguments("C", "NonExistent").
WithLocation
(6, 38),
4013
Diagnostic(ErrorCode.ERR_NameNotInContext, "NonExistent").WithArguments("NonExistent").
WithLocation
(7, 36)
4040
Diagnostic(ErrorCode.ERR_AmbigCall, "D").WithArguments("Program1.D(delegate*<int, void>)", "Program1.D(delegate*<long, void>)").
WithLocation
(11, 9)
4077
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "Program.M").WithArguments("ConsoleApplication.Program.M()", "Default").
WithLocation
(7, 32)
4098
Diagnostic(ErrorCode.ERR_MissingAddressOf, "M1").
WithLocation
(7, 29),
4101
Diagnostic(ErrorCode.ERR_MissingAddressOf, "M1").
WithLocation
(8, 12)
4293
Diagnostic(ErrorCode.ERR_IllegalFixedType, "delegate*<void>").
WithLocation
(4, 11)
5023
Diagnostic(ErrorCode.ERR_BadTypeArgument, "delegate*<int, int>").WithArguments("delegate*<int, int>").
WithLocation
(7, 14)
5212
Diagnostic(ErrorCode.WRN_DoNotCompareFunctionPointers, @operator).
WithLocation
(5, 11)
5271
Diagnostic(ErrorCode.ERR_BadBinaryOps, $"ptr1 {op} ptr2").WithArguments(op, "delegate*<void>", "delegate*<void>").
WithLocation
(6, 13),
5274
Diagnostic(ErrorCode.ERR_BadBinaryOps, $"ptr1 {op} ptr3").WithArguments(op, "delegate*<void>", "int*").
WithLocation
(7, 13),
5277
Diagnostic(ErrorCode.ERR_BadBinaryOps, $"ptr1 {op} 1").WithArguments(op, "delegate*<void>", "int").
WithLocation
(8, 13));
5284
Diagnostic(ErrorCode.ERR_BadBinaryOps, $"ptr1 {op}= ptr2").WithArguments($"{op}=", "delegate*<void>", "delegate*<void>").
WithLocation
(9, 9),
5287
Diagnostic(ErrorCode.ERR_BadBinaryOps, $"ptr1 {op}= ptr3").WithArguments($"{op}=", "delegate*<void>", "int*").
WithLocation
(10, 9),
5290
Diagnostic(ErrorCode.ERR_BadBinaryOps, $"ptr1 {op}= 1").WithArguments($"{op}=", "delegate*<void>", "int").
WithLocation
(11, 9));
5317
Diagnostic(ErrorCode.ERR_BadUnaryOp, $"{op}ptr").WithArguments(op, "delegate*<void>").
WithLocation
(6, 13)
5338
Diagnostic(ErrorCode.ERR_BadUnaryOp, $"ptr{op}").WithArguments(op, "delegate*<void>").
WithLocation
(6, 13)
5970
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M1").WithArguments("M1", "C<T>").
WithLocation
(5, 17),
5973
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M2").WithArguments("M2", "C<T>").
WithLocation
(8, 17)
5998
Diagnostic(ErrorCode.ERR_AmbigCall, "M1").WithArguments("C.M1(delegate*<I1>)", "C.M1(delegate*<I2>)").
WithLocation
(11, 9)
6102
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M1").WithArguments("M1", "C<T>").
WithLocation
(5, 17),
6105
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M2").WithArguments("M2", "C<T>").
WithLocation
(8, 17)
6130
Diagnostic(ErrorCode.ERR_AmbigCall, "M1").WithArguments("C.M1(delegate*<delegate*<I1, void>, void>)", "C.M1(delegate*<delegate*<I2, void>, void>)").
WithLocation
(11, 9)
6164
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments("Derived1.M1(delegate* unmanaged[Cdecl]<void>)").
WithLocation
(11, 29),
6167
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M2").WithArguments("Derived1.M2()", "Base.M2()", "delegate*<void>").
WithLocation
(12, 57),
6170
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M3").WithArguments("Derived1.M3(delegate* unmanaged[Fastcall, Thiscall]<void>)").
WithLocation
(13, 29),
6173
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M4").WithArguments("Derived1.M4()", "Base.M4()", "delegate* unmanaged[Stdcall, Thiscall]<void>").
WithLocation
(14, 70),
6176
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M3").WithArguments("Derived2.M3(delegate* unmanaged[Stdcall, Fastcall]<void>)").
WithLocation
(20, 29),
6179
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M4").WithArguments("Derived2.M4()", "Base.M4()", "delegate* unmanaged[Stdcall, Thiscall]<void>").
WithLocation
(21, 69)
6332
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments($"Derived.M1(delegate*<{refKind2}string, void>)").
WithLocation
(9, 29),
6335
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M2").WithArguments("Derived.M2()", "Base.M2()", $"delegate*<{refKind1}string, void>").
WithLocation
(10, 48 + refKind2.Length)
6363
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments($"Derived.M1(delegate*<{(string.IsNullOrWhiteSpace(refKind2) ? "" : refKind2)}string>)").
WithLocation
(9, 29),
6366
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M2").WithArguments("Derived.M2()", "Base.M2()", $"delegate*<{(string.IsNullOrWhiteSpace(refKind1) ? "" : refKind1)}string>").
WithLocation
(10, 42 + refKind2.Length)
6388
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments("Derived.M1(delegate*<string, void>)").
WithLocation
(9, 29),
6391
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M2").WithArguments("Derived.M2()", "Base.M2()", "delegate*<object, void>").
WithLocation
(10, 48)
6413
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments("Derived.M1(delegate*<string>)").
WithLocation
(9, 29),
6416
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M2").WithArguments("Derived.M2()", "Base.M2()", "delegate*<object>").
WithLocation
(10, 42)
6556
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M1").WithArguments("Derived.M1(delegate*<(int i, string s)>)", "Base.M1(delegate*<(int, string)>)").
WithLocation
(15, 29),
6559
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M2").WithArguments("Derived.M2()", "Base.M2()").
WithLocation
(16, 53),
6562
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M3").WithArguments("Derived.M3(delegate*<(int i, string s), void>)", "Base.M3(delegate*<(int, string), void>)").
WithLocation
(17, 29),
6565
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M4").WithArguments("Derived.M4()", "Base.M4()").
WithLocation
(18, 59)
6615
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M1").WithArguments("ptr").
WithLocation
(16, 29),
6618
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M4").
WithLocation
(19, 48),
6621
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M6").
WithLocation
(21, 43),
6624
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M7").WithArguments("ptr").
WithLocation
(22, 29)
6681
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M1").WithArguments("ptr").
WithLocation
(16, 29),
6684
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M2").
WithLocation
(17, 46),
6687
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M3").WithArguments("ptr").
WithLocation
(18, 29),
6690
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M4").
WithLocation
(19, 52),
6693
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M5").WithArguments("ptr").
WithLocation
(20, 29),
6696
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M6").
WithLocation
(21, 47),
6699
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M7").WithArguments("ptr").
WithLocation
(22, 29),
6702
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M8").
WithLocation
(23, 53)
6759
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M1").WithArguments("ptr").
WithLocation
(16, 26),
6762
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M2").
WithLocation
(17, 43),
6765
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M3").WithArguments("ptr").
WithLocation
(18, 26),
6768
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M4").
WithLocation
(19, 49),
6771
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M5").WithArguments("ptr").
WithLocation
(20, 26),
6774
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M6").
WithLocation
(21, 44),
6777
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M7").WithArguments("ptr").
WithLocation
(22, 26),
6780
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M8").
WithLocation
(23, 50)
6857
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.M1(delegate*<int[*], void>)").
WithLocation
(2, 14),
6860
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.M3(delegate*<int[*]>)").
WithLocation
(2, 14),
6863
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments("Derived.M1(delegate*<int[], void>)").
WithLocation
(4, 26),
6866
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M2").WithArguments("Derived.M2()", "Base.M2()", "delegate*<int[*], void>").
WithLocation
(5, 44),
6869
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M3").WithArguments("Derived.M3(delegate*<int[]>)").
WithLocation
(6, 26),
6872
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M4").WithArguments("Derived.M4()", "Base.M4()", "delegate*<int[*]>").
WithLocation
(7, 38)
7104
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 18),
7107
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"ptr1("""", null)").
WithLocation
(8, 13),
7110
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ptr1").WithArguments("delegate*<string, string?, string?>", "delegate*<string?, string?, string?>").
WithLocation
(9, 53),
7113
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ptr1").WithArguments("delegate*<string, string?, string?>", "delegate*<string, string?, string>").
WithLocation
(10, 51),
7116
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "str1").
WithLocation
(16, 18),
7119
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ptr1(ref str2)").WithArguments("string", "string?").
WithLocation
(18, 32),
7122
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ptr1").WithArguments("delegate*<ref string, ref string>", "delegate*<ref string?, ref string>").
WithLocation
(19, 51),
7125
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ptr1").WithArguments("delegate*<ref string, ref string>", "delegate*<ref string, ref string?>").
WithLocation
(20, 51)
7298
Diagnostic(ErrorCode.ERR_FuncPtrMethMustBeStatic, "noCaptures").WithArguments("noCaptures()").
WithLocation
(8, 34),
7301
Diagnostic(ErrorCode.ERR_FuncPtrMethMustBeStatic, "capturesLocal").WithArguments("capturesLocal()").
WithLocation
(9, 35)
7347
Diagnostic(ErrorCode.ERR_BadArgRef, "var l").WithArguments("1", "ref").
WithLocation
(6, 20),
7350
Diagnostic(ErrorCode.ERR_BadArgRef, "s").WithArguments("1", "ref").
WithLocation
(8, 16),
7353
Diagnostic(ErrorCode.ERR_BadArgRef, "s").WithArguments("1", "ref").
WithLocation
(9, 19),
7356
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var l").WithArguments("1", "out").
WithLocation
(14, 20),
7359
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "s").WithArguments("1", "ref").
WithLocation
(17, 20),
7362
Diagnostic(ErrorCode.ERR_BadArgRef, "s").WithArguments("1", "out").
WithLocation
(23, 16),
7365
Diagnostic(ErrorCode.ERR_BadArgRef, "s").WithArguments("1", "out").
WithLocation
(24, 20),
7368
Diagnostic(ErrorCode.ERR_BadArgRef, "s").WithArguments("1", "out").
WithLocation
(25, 19),
7371
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var l").WithArguments("1", "out").
WithLocation
(30, 20),
7374
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "s").WithArguments("1", "ref").
WithLocation
(32, 20),
7377
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "s").WithArguments("1", "in").
WithLocation
(33, 19)
7396
Diagnostic(ErrorCode.ERR_BadDelArgCount, "a => a").WithArguments("System.Func<string>", "1").
WithLocation
(6, 15)
7429
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(a, b)").WithArguments("object", "Deconstruct").
WithLocation
(6, 25),
7432
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(a, b)").WithArguments("object", "2").
WithLocation
(6, 25),
7435
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(var c, var d)").WithArguments("object", "Deconstruct").
WithLocation
(7, 21),
7438
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(var c, var d)").WithArguments("object", "2").
WithLocation
(7, 21)
7495
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportUnmanagedDefaultCallConv, "unmanaged").
WithLocation
(7, 19),
7498
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportUnmanagedDefaultCallConv, "unmanaged").
WithLocation
(8, 19)
7554
Diagnostic(ErrorCode.ERR_TypeMustBePublic, "Test").WithArguments("System.Runtime.CompilerServices.CallConvTest").
WithLocation
(23, 29)
7574
Diagnostic(ErrorCode.ERR_TypeMustBePublic, "Test").WithArguments("System.Runtime.CompilerServices.CallConvTest").
WithLocation
(7, 29)
7623
Diagnostic(ErrorCode.ERR_TypeNotFound, "Test").WithArguments("CallConvTest").
WithLocation
(23, 29)
7643
Diagnostic(ErrorCode.ERR_TypeNotFound, "Test").WithArguments("CallConvTest").
WithLocation
(7, 29)
7710
Diagnostic(ErrorCode.ERR_TypeNotFound, "Test").WithArguments("CallConvTest").
WithLocation
(12, 29)
7728
Diagnostic(ErrorCode.ERR_TypeNotFound, "Test").WithArguments("CallConvTest").
WithLocation
(7, 29)
7829
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(6, 6),
7832
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(11, 10)
7894
Diagnostic(ErrorCode.ERR_InvalidUnmanagedCallersOnlyCallConv, "UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvTest) })").WithArguments("CallConvTest").
WithLocation
(26, 6)
7939
Diagnostic(ErrorCode.ERR_InvalidUnmanagedCallersOnlyCallConv, "UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvTestA.CallConvTestB) })").WithArguments("System.Runtime.CompilerServices.CallConvTestA.CallConvTestB").
WithLocation
(31, 6)
7965
Diagnostic(ErrorCode.ERR_InvalidUnmanagedCallersOnlyCallConv, "UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvTest) })").WithArguments("System.Runtime.CompilerServices.CallConvTest").
WithLocation
(12, 6)
7985
Diagnostic(ErrorCode.ERR_InvalidUnmanagedCallersOnlyCallConv, "UnmanagedCallersOnly(CallConvs = new[] { typeof(ExtensionAttribute) })").WithArguments("System.Runtime.CompilerServices.ExtensionAttribute").
WithLocation
(6, 6)
8009
Diagnostic(ErrorCode.ERR_InvalidUnmanagedCallersOnlyCallConv, "UnmanagedCallersOnly(CallConvs = new System.Type[] { null })").WithArguments("null").
WithLocation
(5, 6)
8048
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "C.M()").WithArguments("C.M()").
WithLocation
(6, 9)
8074
Diagnostic(ErrorCode.ERR_InvalidUnmanagedCallersOnlyCallConv, "UnmanagedCallersOnly(CallConvs = new System.Type[] { default })").WithArguments("null").
WithLocation
(5, 6)
8114
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "string").WithArguments("string", "return").
WithLocation
(6, 12),
8117
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "object o").WithArguments("object", "parameter").
WithLocation
(9, 20),
8120
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(11, 6),
8123
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "T").WithArguments("T", "return").
WithLocation
(12, 12),
8126
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(14, 6),
8129
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "T t").WithArguments("T", "parameter").
WithLocation
(15, 23),
8132
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(17, 6),
8135
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "T").WithArguments("T", "return").
WithLocation
(18, 12),
8138
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(20, 6),
8141
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "T t").WithArguments("T", "parameter").
WithLocation
(21, 23),
8144
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(23, 6),
8147
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(26, 6)
8178
Diagnostic(ErrorCode.ERR_CannotUseRefInUnmanagedCallersOnly, "ref int").
WithLocation
(6, 12),
8181
Diagnostic(ErrorCode.ERR_CannotUseRefInUnmanagedCallersOnly, "ref readonly int").
WithLocation
(9, 12),
8184
Diagnostic(ErrorCode.ERR_CannotUseRefInUnmanagedCallersOnly, "ref int o").
WithLocation
(12, 20),
8187
Diagnostic(ErrorCode.ERR_CannotUseRefInUnmanagedCallersOnly, "in int o").
WithLocation
(15, 20),
8190
Diagnostic(ErrorCode.ERR_CannotUseRefInUnmanagedCallersOnly, "out int o").
WithLocation
(18, 20)
8276
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(10, 6),
8279
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(13, 6),
8282
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(18, 10),
8285
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(23, 14),
8288
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(29, 14),
8291
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(36, 10)
8320
Diagnostic(ErrorCode.ERR_BindToBogus, "C.M<int>").WithArguments("C.M<T>()").
WithLocation
(4, 37)
8371
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(9, 6),
8374
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(12, 6),
8377
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(15, 6),
8380
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(18, 6),
8383
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(23, 10),
8386
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(29, 10),
8389
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(36, 10)
8448
Diagnostic(ErrorCode.ERR_BindToBogus, "C<int>.M1").WithArguments("C<T>.M1()").
WithLocation
(4, 39),
8451
Diagnostic(ErrorCode.ERR_BindToBogus, "C<int>.NestedClass.M2").WithArguments("C<T>.NestedClass.M2()").
WithLocation
(5, 39),
8454
Diagnostic(ErrorCode.ERR_BindToBogus, "C<int>.NestedStruct.M3").WithArguments("C<T>.NestedStruct.M3()").
WithLocation
(6, 39)
8473
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, "UnmanagedCallersOnly").
WithLocation
(5, 6)
8533
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "S<object>").WithArguments("S<object>", "return").
WithLocation
(10, 12),
8536
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "S<object> o").WithArguments("S<object>", "parameter").
WithLocation
(13, 20),
8539
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "S<S<object>>").WithArguments("S<S<object>>", "return").
WithLocation
(16, 12),
8542
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "S<S<object>> o").WithArguments("S<S<object>>", "parameter").
WithLocation
(19, 20)
8568
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "M1()", isSuppressed: false).WithArguments("C.M1()").
WithLocation
(10, 9),
8571
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "M1", isSuppressed: false).WithArguments("C.M1()", "Default").
WithLocation
(11, 31)
8601
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "E.M1()", isSuppressed: false).WithArguments("D.M1()").
WithLocation
(8, 9),
8604
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "E.M1", isSuppressed: false).WithArguments("D.M1()", "Default").
WithLocation
(9, 31)
8634
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "M1()", isSuppressed: false).WithArguments("D.M1()").
WithLocation
(8, 9),
8637
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "M1", isSuppressed: false).WithArguments("D.M1()", "Default").
WithLocation
(9, 31)
8673
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "C.M1()").WithArguments("C.M1()").
WithLocation
(6, 9),
8676
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M1", isSuppressed: false).WithArguments("C.M1()", "Default").
WithLocation
(7, 31),
8679
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportUnmanagedDefaultCallConv, "unmanaged").
WithLocation
(8, 19)
8724
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "C.M1()").WithArguments("C.M1()").
WithLocation
(6, 9)
8766
Diagnostic(ErrorCode.ERR_BindToBogus, "M1").WithArguments("C.M1()").
WithLocation
(6, 11)
8815
Diagnostic(ErrorCode.ERR_BindToBogus, "(int)x").WithArguments("C.implicit operator int(C)").
WithLocation
(6, 13)
8848
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(5, 6),
8851
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(10, 6)
8878
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(7, 10),
8881
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(8, 10)
8938
Diagnostic(ErrorCode.ERR_BindToBogus, "Prop").WithArguments("C.Prop.set").
WithLocation
(6, 11),
8941
Diagnostic(ErrorCode.ERR_BindToBogus, "Prop").WithArguments("C.Prop.get").
WithLocation
(7, 15)
8963
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(5, 28)
9007
Diagnostic(ErrorCode.ERR_BindToBogus, "Prop").WithArguments("C.Prop.get").
WithLocation
(6, 11)
9073
Diagnostic(ErrorCode.ERR_BindToBogus, "[1]").WithArguments("C.this[int].set").
WithLocation
(6, 10),
9076
Diagnostic(ErrorCode.ERR_BindToBogus, "[0]").WithArguments("C.this[int].get").
WithLocation
(7, 14)
9103
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(7, 10),
9106
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(8, 10)
9158
Diagnostic(ErrorCode.ERR_BindToBogus, "[1]").WithArguments("C.this[int].get").
WithLocation
(6, 10),
9161
Diagnostic(ErrorCode.ERR_BindToBogus, "[0]").WithArguments("C.this[int].get").
WithLocation
(7, 14)
9184
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(5, 6)
9223
Diagnostic(ErrorCode.ERR_BindToBogus, "c1 + c2").WithArguments("C.operator +(C, C)").
WithLocation
(6, 13)
9246
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(5, 6)
9284
Diagnostic(ErrorCode.ERR_BindToBogus, "+c1").WithArguments("C.operator +(C)").
WithLocation
(6, 13)
9322
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "c").WithArguments("C", "GetEnumerator").
WithLocation
(6, 27)
9353
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "foreach").WithArguments("CExt.GetEnumerator(S)").
WithLocation
(7, 9)
9384
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(12, 6)
9416
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(14, 6)
9447
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate, "M1").WithArguments("C.M1()").
WithLocation
(11, 20),
9450
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate, "local").WithArguments("local()").
WithLocation
(12, 13),
9453
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate, "M1").WithArguments("C.M1()").
WithLocation
(13, 24),
9456
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate, "local").WithArguments("local()").
WithLocation
(14, 24)
9483
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate, "M").WithArguments("C.M(int)").
WithLocation
(13, 25)
9511
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "s.Extension()").WithArguments("CExt.Extension(S)").
WithLocation
(8, 9),
9514
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "CExt.Extension(s)").WithArguments("CExt.Extension(S)").
WithLocation
(9, 9)
9545
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "s").WithArguments("CExt.Deconstruct(S, out int, out int)").
WithLocation
(9, 24),
9548
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "s").WithArguments("CExt.Deconstruct(S, out int, out int)").
WithLocation
(10, 20),
9551
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "ls").WithArguments("CExt.Deconstruct(S, out int, out int)").
WithLocation
(11, 32),
9554
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "(int _, int _)").WithArguments("CExt.Deconstruct(S, out int, out int)").
WithLocation
(12, 18),
9557
Diagnostic(ErrorCode.ERR_CannotUseRefInUnmanagedCallersOnly, "out int i1").
WithLocation
(18, 46),
9560
Diagnostic(ErrorCode.ERR_CannotUseRefInUnmanagedCallersOnly, "out int i2").
WithLocation
(18, 58)
9591
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "1").WithArguments("CExt.Add(S, int)").
WithLocation
(10, 23),
9594
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "2").WithArguments("CExt.Add(S, int)").
WithLocation
(10, 26),
9597
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "3").WithArguments("CExt.Add(S, int)").
WithLocation
(10, 29)
9630
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "await s").WithArguments("CExt.GetAwaiter(S)").
WithLocation
(8, 9)
9663
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "s").WithArguments("CExt.GetPinnableReference(S)").
WithLocation
(10, 29),
9666
Diagnostic(ErrorCode.ERR_CannotUseRefInUnmanagedCallersOnly, "ref int").
WithLocation
(20, 19)
9685
Diagnostic(ErrorCode.ERR_EntryPointCannotBeUnmanagedCallersOnly, "Main").
WithLocation
(6, 24)
9708
Diagnostic(ErrorCode.ERR_MultipleEntryPoints, "Main").
WithLocation
(5, 24),
9711
Diagnostic(ErrorCode.ERR_EntryPointCannotBeUnmanagedCallersOnly, "Main").
WithLocation
(10, 24)
9754
Diagnostic(ErrorCode.ERR_MultipleEntryPoints, "Main").
WithLocation
(6, 30),
9757
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(6, 30),
9760
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "Task").WithArguments("System.Threading.Tasks.Task", "return").
WithLocation
(11, 25),
9763
Diagnostic(ErrorCode.ERR_EntryPointCannotBeUnmanagedCallersOnly, "Main").
WithLocation
(11, 30),
9766
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(11, 30)
9790
Diagnostic(ErrorCode.ERR_CannotUseManagedTypeInUnmanagedCallersOnly, "Task").WithArguments("System.Threading.Tasks.Task", "return").
WithLocation
(11, 25),
9793
Diagnostic(ErrorCode.WRN_SyncAndAsyncEntryPoints, "Main").WithArguments("D.Main()", "C.Main()").
WithLocation
(11, 30),
9796
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(11, 30)
9820
Diagnostic(ErrorCode.ERR_EntryPointCannotBeUnmanagedCallersOnly, "Main", isSuppressed: false).
WithLocation
(6, 24)
9846
Diagnostic(ErrorCode.ERR_ModuleInitializerCannotBeUnmanagedCallersOnly, "ModuleInitializer").
WithLocation
(9, 28),
9849
Diagnostic(ErrorCode.ERR_ModuleInitializerCannotBeUnmanagedCallersOnly, "ModuleInitializer").
WithLocation
(12, 6)
9869
Diagnostic(ErrorCode.ERR_InvalidUnmanagedCallersOnlyCallConv, "UnmanagedCallersOnly(CallConvs = new[] { typeof(string) })").WithArguments("string").
WithLocation
(5, 6),
9872
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "UnmanagedCallersOnly").WithArguments("UnmanagedCallersOnly").
WithLocation
(6, 6)
9921
Diagnostic(ErrorCode.ERR_InvalidUnmanagedCallersOnlyCallConv, "UnmanagedCallersOnly(CallConvs = new[] { typeof(UnmanagedCallersOnlyAttribute) })").WithArguments("System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute").
WithLocation
(7, 10),
9924
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(7, 10)
9943
Diagnostic(ErrorCode.ERR_InvalidUnmanagedCallersOnlyCallConv, "UnmanagedCallersOnly(CallConvs = new[] { typeof(C) })").WithArguments("C").
WithLocation
(5, 6)
9963
Diagnostic(ErrorCode.ERR_InvalidUnmanagedCallersOnlyCallConv, "UnmanagedCallersOnly(CallConvs = new[] { typeof(B) })").WithArguments("A.B").
WithLocation
(6, 6)
9985
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "F()").WithArguments("C.F()").
WithLocation
(7, 39),
9988
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "F()").
WithLocation
(7, 39)
10016
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "Attr", isSuppressed: false).WithArguments("d", "delegate*<void>").
WithLocation
(12, 6)
10046
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "F()", isSuppressed: false).WithArguments("C.F()").
WithLocation
(12, 11),
10049
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "F()", isSuppressed: false).
WithLocation
(12, 11)
10070
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "G(&F)", isSuppressed: false).WithArguments("i").
WithLocation
(7, 27)
10090
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "F()", isSuppressed: false).WithArguments("C.F(int)").
WithLocation
(7, 26),
10093
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "F()", isSuppressed: false).WithArguments("i").
WithLocation
(7, 26)
10168
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M1").WithArguments("C.M1()", "Standard").
WithLocation
(27, 51)
10177
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M1").WithArguments("C.M1()", "Standard").
WithLocation
(6, 51)
10222
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M1").WithArguments("C.M1()", "Standard").
WithLocation
(27, 51)
10231
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M1").WithArguments("C.M1()", "Standard").
WithLocation
(6, 51)
10273
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M").WithArguments("C.M()", "CDecl").
WithLocation
(28, 50)
10284
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M").WithArguments("C.M()", "CDecl").
WithLocation
(7, 50)
10335
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M").WithArguments("C.M()", "Unmanaged").
WithLocation
(26, 43),
10338
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M").WithArguments("C.M()", "CDecl").
WithLocation
(27, 50)
10349
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M").WithArguments("C.M()", "Unmanaged").
WithLocation
(6, 43),
10352
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M").WithArguments("C.M()", "CDecl").
WithLocation
(7, 50)
10463
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "C.M").WithArguments("C.M()", "Standard").
WithLocation
(9, 52),
10466
Diagnostic(ErrorCode.ERR_AmbigMember, "CallConvs").WithArguments("System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute.CallConvs", "System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute.CallConvs").
WithLocation
(13, 27)
10496
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Bad", isSuppressed: false).WithArguments("Bad").
WithLocation
(5, 54),
10499
Diagnostic(ErrorCode.ERR_CloseParenExpected, ",", isSuppressed: false).
WithLocation
(5, 57),
10502
Diagnostic(ErrorCode.ERR_NameNotInContext, "Expression", isSuppressed: false).WithArguments("Expression").
WithLocation
(5, 59),
10505
Diagnostic(ErrorCode.ERR_SyntaxError, ")", isSuppressed: false).WithArguments(",").
WithLocation
(5, 69),
10508
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "F", isSuppressed: false).WithArguments("A.F()", "Unmanaged").
WithLocation
(9, 43)
10552
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "M", isSuppressed: false).WithArguments("C.M()", "Default").
WithLocation
(10, 39)
10560
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "M", isSuppressed: false).WithArguments("C.M()", "Unmanaged").
WithLocation
(11, 51)
10569
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "M", isSuppressed: false).WithArguments("C.M()", "CDecl").
WithLocation
(12, 54)
10578
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "M", isSuppressed: false).WithArguments("C.M()", "ThisCall").
WithLocation
(13, 60)
10587
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "M", isSuppressed: false).WithArguments("C.M()", "Standard").
WithLocation
(14, 58)
10596
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "M", isSuppressed: false).WithArguments("C.M()", "FastCall").
WithLocation
(15, 60)
10605
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "M", isSuppressed: false).WithArguments("C.M()", "Unmanaged").
WithLocation
(16, 72)
10647
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgumentType, "PropUnmanaged", isSuppressed: false).WithArguments("PropUnmanaged").
WithLocation
(20, 11),
10650
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgumentType, "PropManaged", isSuppressed: false).WithArguments("PropManaged").
WithLocation
(21, 11),
10653
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgumentType, "PropCdecl", isSuppressed: false).WithArguments("PropCdecl").
WithLocation
(22, 11)
10742
Diagnostic(ErrorCode.ERR_BadTypeArgument, "delegate*<int, void>", isSuppressed: false).WithArguments("delegate*<int, void>").
WithLocation
(11, 14),
10745
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "&M1", isSuppressed: false).WithArguments("lambda expression").
WithLocation
(11, 47),
10748
Diagnostic(ErrorCode.ERR_WrongFuncPtrCallingConvention, "M1", isSuppressed: false).WithArguments("C.M1(int)", "Default").
WithLocation
(11, 48),
10751
Diagnostic(ErrorCode.ERR_BadTypeArgument, "delegate* unmanaged<int, void>", isSuppressed: false).WithArguments("delegate* unmanaged<int, void>").
WithLocation
(12, 14)
10917
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "ptr(ref i)").
WithLocation
(8, 16)
10944
Diagnostic(ErrorCode.WRN_RefReturnLocal, "span").WithArguments("span").
WithLocation
(10, 28)
10951
Diagnostic(ErrorCode.WRN_RefReturnLocal, "span").WithArguments("span").
WithLocation
(10, 28)
11012
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "ptr(ref i)").WithArguments("method", "delegate*<ref int, ref readonly int>").
WithLocation
(8, 16)
11260
Diagnostic(ErrorCode.WRN_EscapeVariable, "s").WithArguments("s").
WithLocation
(10, 20)
11368
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "ptr(i)").
WithLocation
(6, 5)
11437
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "Attr(typeof(delegate*<void>))").
WithLocation
(4, 2),
11440
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "Attr(typeof(delegate*<void>[]))").
WithLocation
(5, 2),
11443
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "Attr(typeof(C<delegate*<void>[]>))").
WithLocation
(6, 2)
11468
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(11, 14));
11493
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(default(B<delegate*<void>[]>.E))").
WithLocation
(11, 2));
11517
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(11, 22));
11542
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, @"A(null, ""abc"", default(B<delegate*<void>[]>.E))").
WithLocation
(11, 2));
11567
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(P = default(B<delegate*<void>[]>.E))").
WithLocation
(11, 2));
11592
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(3, 16)
11674
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(P = default)").
WithLocation
(11, 2));
11728
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(P = default(B<delegate*<void>[]>.E))").
WithLocation
(11, 2));
11810
Diagnostic(ErrorCode.ERR_BadArgType, "default(delegate*<void>)").WithArguments("1", "delegate*<void>", "object").
WithLocation
(6, 4));
11836
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(B<delegate*<void>[]>.C)").
WithLocation
(12, 2));
11861
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(new B<delegate*<void>[]>.E[]{})").
WithLocation
(11, 2));
11888
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(new object[] { new B<delegate*<void>[]>.E() })").
WithLocation
(11, 2));
11911
Diagnostic(ErrorCode.ERR_BadArgType, "new B<delegate*<void>[]>.E[]{}").WithArguments("1", "B<delegate*<void>[]>.E[]", "object[]").
WithLocation
(11, 4));
11938
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, $"A(new B<delegate*<void>[]>.E{initializer})").
WithLocation
(11, 2));
11963
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(12, 14));
11989
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A<object>(B<delegate*<void>[]>.C)").
WithLocation
(12, 2));
12044
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(y: 1, x: B<delegate*<void>[]>.C)").
WithLocation
(12, 2));
12070
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(P = B<delegate*<void>[]>.C)").
WithLocation
(12, 2));
12095
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(P = new B<delegate*<void>[]>.E[]{})").
WithLocation
(11, 2));
12122
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(P = new object[] { new B<delegate*<void>[]>.E() })").
WithLocation
(11, 2));
12235
Diagnostic(ErrorCode.ERR_FunctionPointerTypesInAttributeNotSupported, "A(P = B<delegate*<void>[]>.C)").
WithLocation
(12, 2));
CodeGen\CodeGenImplicitImplementationTests.cs (1)
1756
Diagnostic(ErrorCode.WRN_MultipleRuntimeImplementationMatches, "Interface<int>").WithArguments("Derived<int, string>.Method(int)", "Interface<int>.Method(int)", "Derived").
WithLocation
(20, 58)); // No errors
CodeGen\CodeGenImplicitlyTypeArraysTests.cs (13)
131
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(15, 54),
134
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(15, 88),
137
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(15, 93),
140
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new [] {E.START, 0, 0U, 0u, 0L, 0l, 0UL, 0Ul, 0uL, 0ul, 0LU, 0Lu, 0lU, 0lu}").
WithLocation
(15, 21),
143
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(17, 84),
146
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(17, 118),
149
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(17, 123),
152
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "a").WithArguments("?[]", "SequenceEqual", "System.Linq.Queryable.SequenceEqual<Test.Program.E>(System.Linq.IQueryable<Test.Program.E>, System.Collections.Generic.IEnumerable<Test.Program.E>)", "System.Linq.IQueryable<Test.Program.E>").
WithLocation
(17, 35));
939
Diagnostic(ErrorCode.ERR_ArrayInitializerExpected, "3").
WithLocation
(8, 46),
942
Diagnostic(ErrorCode.ERR_ArrayInitializerExpected, "4").
WithLocation
(8, 49));
964
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(8, 46),
967
Diagnostic(ErrorCode.ERR_ArrayInitializerExpected, "4").
WithLocation
(8, 49));
998
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { E.FortyTwo, 0 }").
WithLocation
(16, 21));
CodeGen\CodeGenInParametersTests.cs (17)
1131
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "arg1").WithArguments("variable", "arg1").
WithLocation
(6, 9),
1134
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "arg2.Alice").WithArguments("variable", "arg2").
WithLocation
(7, 9),
1137
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "arg1").WithArguments("variable", "arg1").
WithLocation
(9, 9),
1140
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "arg2.Alice").WithArguments("variable", "arg2").
WithLocation
(10, 9),
1143
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "arg1").WithArguments("variable", "arg1").
WithLocation
(12, 9),
1146
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "arg2.Alice").WithArguments("variable", "arg2").
WithLocation
(13, 9));
1183
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "arg1").WithArguments("variable", "arg1").
WithLocation
(18, 20),
1186
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField2, "arg2.Alice").WithArguments("variable", "arg2").
WithLocation
(23, 20)
1208
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "arg1").WithArguments("variable", "arg1").
WithLocation
(6, 25),
1211
Diagnostic(ErrorCode.ERR_RefReadonlyNotField2, "arg2.Alice").WithArguments("variable", "arg2").
WithLocation
(7, 25));
1241
Diagnostic(ErrorCode.ERR_FixedNeeded, "& arg1").
WithLocation
(6, 18),
1244
Diagnostic(ErrorCode.ERR_FixedNeeded, "& arg2.Alice").
WithLocation
(7, 18)
1274
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "arg1").WithArguments("variable", "arg1").
WithLocation
(10, 24),
1277
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField2, "arg2.Alice").WithArguments("variable", "arg2").
WithLocation
(14, 24)
1393
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "arg11").WithArguments("variable", "arg11").
WithLocation
(12, 28),
1396
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField2, "arg21.Alice").WithArguments("variable", "arg21").
WithLocation
(16, 28)
1544
Diagnostic(ErrorCode.ERR_RefReturningCallAndAwait, "RefReturning(ref local)").WithArguments("Program.RefReturning(ref int)").
WithLocation
(14, 19)
CodeGen\CodeGenIterators.cs (17)
2395
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1));
2439
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
2442
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ yield return 42; }").WithArguments("System.IDisposable", "Dispose").
WithLocation
(31, 57),
2445
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "{ yield return 42; }").WithArguments("System.Collections.Generic.IEnumerator<T>.Current").
WithLocation
(31, 57),
2448
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ yield return 42; }").WithArguments("System.Collections.IEnumerator", "Current").
WithLocation
(31, 57),
2451
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ yield return 42; }").WithArguments("System.Collections.IEnumerator", "MoveNext").
WithLocation
(31, 57),
2454
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ yield return 42; }").WithArguments("System.Collections.IEnumerator", "Reset").
WithLocation
(31, 57),
2457
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ yield return 42; }").WithArguments("System.Collections.IEnumerable", "GetEnumerator").
WithLocation
(31, 57),
2460
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "{ yield return 42; }").WithArguments("System.Collections.Generic.IEnumerable`1").
WithLocation
(31, 57),
2463
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ yield return 42; }").WithArguments("System.Collections.Generic.IEnumerable`1", "GetEnumerator").
WithLocation
(31, 57));
2505
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ yield return 42; }").WithArguments("System.IDisposable", "Dispose").
WithLocation
(27, 57),
2508
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "{ yield return 42; }").WithArguments("System.Collections.Generic.IEnumerator`1").
WithLocation
(27, 57),
2511
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ yield return 42; }").WithArguments("System.Collections.Generic.IEnumerator`1", "Current").
WithLocation
(27, 57),
2514
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "{ yield return 42; }").WithArguments("System.Collections.IEnumerator.Current").
WithLocation
(27, 57),
2517
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ yield return 42; }").WithArguments("System.Collections.IEnumerator", "MoveNext").
WithLocation
(27, 57),
2520
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ yield return 42; }").WithArguments("System.Collections.IEnumerator", "Reset").
WithLocation
(27, 57),
2522
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1));
CodeGen\CodeGenLocalFunctionTests.cs (5)
5456
Diagnostic(ErrorCode.ERR_ConditionalOnLocalFunction, @"Conditional(""DEBUG"")").WithArguments("local1()").
WithLocation
(9, 10));
5491
Diagnostic(ErrorCode.ERR_BadArgumentToAttribute, @"""hello world""").WithArguments("Conditional").
WithLocation
(9, 22),
5494
Diagnostic(ErrorCode.ERR_ConditionalMustReturnVoid, @"Conditional(""DEBUG"")").WithArguments("local2()").
WithLocation
(12, 10),
5497
Diagnostic(ErrorCode.ERR_ConditionalWithOutParam, @"Conditional(""DEBUG"")").WithArguments("local3(out string)").
WithLocation
(18, 10));
5593
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local1").WithArguments("local1").
WithLocation
(11, 21));
CodeGen\CodeGenLockTests.cs (6)
1953
}").WithArguments("System.Threading.Monitor", "Enter").
WithLocation
(6, 9)
1981
}").WithArguments("System.Threading.Monitor", "Exit").
WithLocation
(6, 9)
2011
}").WithArguments("System.Threading.Monitor", "Exit").
WithLocation
(6, 9),
2017
}").WithArguments("System.Threading.Monitor", "Enter").
WithLocation
(6, 9)
2045
}").WithArguments("System.Threading.Monitor", "Exit").
WithLocation
(6, 9),
2051
}").WithArguments("System.Threading.Monitor", "Enter").
WithLocation
(6, 9)
CodeGen\CodeGenMscorlib.cs (7)
158
Diagnostic(ErrorCode.WRN_ManagedAddr, "&result").WithArguments("System.TypedReference").
WithLocation
(100, 34)
302
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "__makeref(result)").WithArguments("System.TypedReference").
WithLocation
(7, 25)
339
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "__makeref(result)").WithArguments("System.TypedReference").
WithLocation
(9, 25)
378
Diagnostic(ErrorCode.ERR_NoImplicitConv, "refresult").WithArguments("System.TypedReference", "object").
WithLocation
(10, 15),
381
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(object)__makeref(result)").WithArguments("System.TypedReference", "object").
WithLocation
(11, 15)
437
Diagnostic(ErrorCode.ERR_NoImplicitConv, "refresult").WithArguments("System.TypedReference", "object").
WithLocation
(10, 15),
440
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(object)__makeref(result)").WithArguments("System.TypedReference", "object").
WithLocation
(11, 15)
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (53)
675
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "c.WriteOnlyProperty").WithArguments("C.WriteOnlyProperty").
WithLocation
(10, 9),
678
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "c.ReadOnlyProperty").WithArguments("C.ReadOnlyProperty").
WithLocation
(11, 9),
681
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "GetInt()").
WithLocation
(12, 9),
684
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "GetInt").WithArguments("GetInt", "method group").
WithLocation
(13, 9),
687
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "() => {}").
WithLocation
(14, 9)
764
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "P1").WithArguments("C.P1").
WithLocation
(9, 15)
968
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "c.P1").WithArguments("property", "P1").
WithLocation
(24, 27),
971
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "c.GetF1()").WithArguments("method", "GetF1").
WithLocation
(26, 27)
989
Diagnostic(ErrorCode.ERR_BadBinaryOps, "i1 ??= 0").WithArguments("??=", "int", "int").
WithLocation
(7, 9)
1278
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref o2").WithArguments("ref").
WithLocation
(9, 16),
1281
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(9, 16),
1284
Diagnostic(ErrorCode.ERR_BadSKknown, "o1").WithArguments("o1", "variable", "type").
WithLocation
(10, 13),
1287
Diagnostic(ErrorCode.ERR_IdentifierExpected, "??=").
WithLocation
(10, 16),
1290
Diagnostic(ErrorCode.ERR_SemicolonExpected, "??=").
WithLocation
(10, 16),
1293
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "??=").WithArguments("??=").
WithLocation
(10, 16),
1296
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "").
WithLocation
(10, 16),
1299
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref o2").WithArguments("ref").
WithLocation
(10, 20),
1302
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(10, 20));
1360
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, @"o ??= ""Test String""").
WithLocation
(7, 15)
1657
Diagnostic(ErrorCode.ERR_BadBinaryOps, "i1 ??= 1.0").WithArguments("??=", "int?", "double").
WithLocation
(8, 9),
1660
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d1 ??= new C()").WithArguments("??=", "D", "C").
WithLocation
(12, 9),
1663
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c1 ??= new E()").WithArguments("??=", "C", "E").
WithLocation
(16, 9),
1666
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c2 ??= new F()").WithArguments("??=", "C", "F").
WithLocation
(20, 9)
1690
Diagnostic(ErrorCode.ERR_BadArgType, "d ??= 3.0").WithArguments("1", "double", "C").
WithLocation
(7, 12),
1693
Diagnostic(ErrorCode.ERR_BadArgType, "o ??= null").WithArguments("1", "object", "C").
WithLocation
(9, 12),
1696
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "o ??= null").
WithLocation
(10, 10)
2105
Diagnostic(ErrorCode.ERR_UseDefViolation, "c1").WithArguments("c1").
WithLocation
(7, 9),
2108
Diagnostic(ErrorCode.ERR_UseDefViolation, "c2").WithArguments("c2").
WithLocation
(10, 16),
2111
Diagnostic(ErrorCode.ERR_UseDefViolation, "y1").WithArguments("y1").
WithLocation
(16, 9),
2114
Diagnostic(ErrorCode.ERR_UseDefViolation, "y2").WithArguments("y2").
WithLocation
(22, 9)
2132
Diagnostic(ErrorCode.ERR_ObjectRequired, "P").WithArguments("C.P").
WithLocation
(7, 9)
2152
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(8, 15)
2295
Diagnostic(ErrorCode.ERR_BadBinaryOps, "t1 ??= t2").WithArguments("??=", "T", "T").
WithLocation
(6, 9)
2344
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "await t1").
WithLocation
(7, 9)
2451
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "this").WithArguments("this").
WithLocation
(6, 9),
2454
Diagnostic(ErrorCode.ERR_BadBinaryOps, "this ??= new S()").WithArguments("??=", "S", "S").
WithLocation
(13, 9)
2493
Diagnostic(ErrorCode.ERR_UseDefViolation, "o2").WithArguments("o2").
WithLocation
(14, 9),
2496
Diagnostic(ErrorCode.ERR_UseDefViolation, "o3").WithArguments("o3").
WithLocation
(17, 9)
2583
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "a ??= default(int?)").WithArguments("int?", "int").
WithLocation
(9, 14));
2602
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "o1").WithArguments("variable", "o1").
WithLocation
(6, 9),
2605
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "o2").WithArguments("o2").
WithLocation
(7, 9)
2638
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new D()").WithArguments("D.implicit operator C(D)", "D is obsolete").
WithLocation
(8, 15),
2641
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "new E()").WithArguments("E.implicit operator C(E)", "E is obsolete").
WithLocation
(9, 15)
2661
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "(x, y)").
WithLocation
(7, 9)
2687
Diagnostic(ErrorCode.ERR_NoTypeDef, "c ??= new B()").WithArguments("A", $"{aRef.Display}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 9),
2690
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c ??= new B()").WithArguments("??=", "C", "B").
WithLocation
(7, 9));
2711
Diagnostic(ErrorCode.ERR_BadBinaryOps, "s1 ??= new Span<byte>()").WithArguments("??=", "System.Span<byte>", "System.Span<byte>").
WithLocation
(8, 9),
2714
Diagnostic(ErrorCode.ERR_BadTypeArgument, "Span<byte>?").WithArguments("System.Span<byte>").
WithLocation
(9, 9));
2734
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainNullCoalescingAssignment, "x ??= null").
WithLocation
(8, 45),
2737
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainNullCoalescingAssignment, "o ??= null").
WithLocation
(9, 45));
2753
Diagnostic(ErrorCode.ERR_BadBinaryOps, "i1 ??= i2").WithArguments("??=", "int*", "int*").
WithLocation
(6, 9));
2775
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "i").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(7, 9));
2782
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "i").WithArguments("System.Nullable`1", "get_HasValue").
WithLocation
(7, 9));
CodeGen\CodeGenOperators.cs (18)
1597
Diagnostic(ErrorCode.ERR_BadBinaryOps, "M ?? a").WithArguments("??", "method group", "System.Action").
WithLocation
(7, 13));
2296
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System.Linq;").
WithLocation
(3, 1),
2299
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System.Collections.Generic;").
WithLocation
(4, 1),
2302
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "from x in src").WithArguments("from").
WithLocation
(23, 26)
5291
Diagnostic(ErrorCode.ERR_InsufficientStack, "a").
WithLocation
(10, 16)
5347
Diagnostic(ErrorCode.ERR_InsufficientStack, "1").
WithLocation
(17, 16)
5455
Diagnostic(ErrorCode.ERR_InsufficientStack, "a").
WithLocation
(10, 16)
5942
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(6, 16),
5945
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(6, 16)
5965
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "t1 ?? t2").WithArguments("unconstrained type parameters in null coalescing operator", "8.0").
WithLocation
(6, 14));
6181
Diagnostic(ErrorCode.WRN_EqualityOpWithoutEquals, "Wrapper").WithArguments("BadImageFormatExceptionRepro.Program.Wrapper<T>").
WithLocation
(9, 33),
6184
Diagnostic(ErrorCode.WRN_EqualityOpWithoutGetHashCode, "Wrapper").WithArguments("BadImageFormatExceptionRepro.Program.Wrapper<T>").
WithLocation
(9, 33)
6330
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "x == y").
WithLocation
(16, 71),
6333
Diagnostic(ErrorCode.WRN_EqualityOpWithoutEquals, "C").WithArguments("BadImageFormatExceptionRepro.C").
WithLocation
(29, 11),
6336
Diagnostic(ErrorCode.WRN_EqualityOpWithoutGetHashCode, "C").WithArguments("BadImageFormatExceptionRepro.C").
WithLocation
(29, 11)
6380
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "+x").
WithLocation
(16, 62)
6738
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "x && y").
WithLocation
(16, 68)
6794
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "x || y").
WithLocation
(16, 68)
CodeGen\CodeGenOptimizedNullableOperators.cs (10)
1101
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "new int?(N1()) == new short?()").WithArguments("false", "int", "short?").
WithLocation
(21, 16),
1104
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "default(double?) != new short?(N2())").WithArguments("true", "double", "double?").
WithLocation
(25, 16),
1107
Diagnostic(ErrorCode.WRN_CmpAlwaysFalse, "((int?)null) < new decimal?(N3())").WithArguments("int?").
WithLocation
(29, 16),
1110
Diagnostic(ErrorCode.WRN_CmpAlwaysFalse, "((S?)null) < new S?(N4())").WithArguments("S?").
WithLocation
(41, 16)
1116
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "new int?(N1()) == new short?()").WithArguments("false", "int", "short?").
WithLocation
(21, 16),
1119
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "default(double?) != new short?(N2())").WithArguments("true", "double", "double?").
WithLocation
(25, 16),
1122
Diagnostic(ErrorCode.WRN_CmpAlwaysFalse, "((int?)null) < new decimal?(N3())").WithArguments("int?").
WithLocation
(29, 16),
1125
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "new S?() == new S?(N4())").WithArguments("false", "S", "S?").
WithLocation
(33, 16),
1128
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "default(S?) != new S?(N4())").WithArguments("true", "S", "S?").
WithLocation
(37, 16),
1131
Diagnostic(ErrorCode.WRN_CmpAlwaysFalse, "((S?)null) < new S?(N4())").WithArguments("S?").
WithLocation
(41, 16)
CodeGen\CodeGenOverridingAndHiding.cs (11)
1226
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "Method").WithArguments("Base<int, int>.Method(ref System.Collections.Generic.List<int>, out System.Collections.Generic.List<int>)", "Derived.Method(ref System.Collections.Generic.List<int>, out System.Collections.Generic.List<int>)").
WithLocation
(5, 25)
1233
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "Method").WithArguments("Base<int, int>.Method(ref System.Collections.Generic.List<int>, out System.Collections.Generic.List<int>)", "Derived.Method(ref System.Collections.Generic.List<int>, out System.Collections.Generic.List<int>)").
WithLocation
(6, 25)
1738
Diagnostic(ErrorCode.WRN_NewRequired, "Method").WithArguments("Base.Derived.Method()", "Base.Method()").
WithLocation
(12, 21),
1741
Diagnostic(ErrorCode.WRN_NewRequired, "Field").WithArguments("Base2.Derived2.Field", "Base2.Field").
WithLocation
(62, 13),
1744
Diagnostic(ErrorCode.WRN_NewRequired, "Field2").WithArguments("Base2.Derived2.Field2", "Base2.Field2").
WithLocation
(63, 20),
1747
Diagnostic(ErrorCode.WRN_NewRequired, "Type2").WithArguments("Base2.Derived2.Type2<T>", "Base2.Type2<T>").
WithLocation
(74, 22),
1750
Diagnostic(ErrorCode.WRN_NewNotRequired, "Field").WithArguments("Derived3.Field").
WithLocation
(99, 13),
1753
Diagnostic(ErrorCode.WRN_NewRequired, "Field2").WithArguments("Derived3.Field2", "Base3.Field2").
WithLocation
(101, 26),
1756
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "Field").WithArguments("Base3.Field").
WithLocation
(92, 9),
1759
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "Field").WithArguments("Derived3.Field").
WithLocation
(99, 13));
4371
Diagnostic(ErrorCode.ERR_NoTypeDef, "B").WithArguments("A", "A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 21)
CodeGen\CodeGenReadonlyStructTests.cs (22)
642
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "this").WithArguments("this").
WithLocation
(27, 13),
645
Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").
WithLocation
(32, 26),
648
Diagnostic(ErrorCode.ERR_RefReadonly, "this.x").
WithLocation
(37, 26)
714
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "x").
WithLocation
(19, 24),
717
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "x").
WithLocation
(20, 32),
720
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(26, 24),
723
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(27, 32),
726
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(33, 24),
729
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(34, 32),
732
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(40, 37),
735
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(41, 45),
738
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(47, 37),
741
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(48, 45)
1725
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "M2").WithArguments("S.M2()", "this").
WithLocation
(9, 9));
2110
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "s1").WithArguments("S2.s1", "").
WithLocation
(9, 8)
2238
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "ToString").WithArguments("S.ToString()", "this").
WithLocation
(12, 9),
2241
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "GetHashCode").WithArguments("S.GetHashCode()", "this").
WithLocation
(13, 9),
2244
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "Equals").WithArguments("S.Equals(object)", "this").
WithLocation
(14, 9));
2391
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "GetType").WithArguments("S.GetType()", "this").
WithLocation
(12, 9),
2394
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "ToString").WithArguments("S.ToString()", "this").
WithLocation
(13, 9),
2397
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "GetHashCode").WithArguments("S.GetHashCode()", "this").
WithLocation
(14, 9),
2400
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "Equals").WithArguments("S.Equals(object)", "this").
WithLocation
(15, 9));
CodeGen\CodeGenRefConditionalOperatorTests.cs (14)
533
Diagnostic(ErrorCode.ERR_RefConditionalAndAwait, "b? ref val1: ref val2").
WithLocation
(16, 10)
578
Diagnostic(ErrorCode.ERR_RefConditionalAndAwait, "b? ref val1: ref val2").
WithLocation
(16, 10)
605
Diagnostic(ErrorCode.ERR_RefConditionalNeedsTwoRefs, "val2").
WithLocation
(8, 43),
608
Diagnostic(ErrorCode.ERR_RefConditionalNeedsTwoRefs, "val1").
WithLocation
(9, 37)
636
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "42").
WithLocation
(8, 27),
639
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "42").
WithLocation
(10, 46)
670
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "b? ref local1: ref local2").WithArguments("ref conditional expression", "7.2").
WithLocation
(15, 25)
700
Diagnostic(ErrorCode.ERR_RefReturnLocal, "local1").WithArguments("local1").
WithLocation
(15, 27)
731
Diagnostic(ErrorCode.ERR_RefReturnLocal, "local2").WithArguments("local2").
WithLocation
(14, 37)
767
Diagnostic(ErrorCode.ERR_RefReturnLocal, "local2").WithArguments("local2").
WithLocation
(14, 38)
804
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "temp").WithArguments("temp").
WithLocation
(15, 20)
951
Diagnostic(ErrorCode.ERR_RefConditionalDifferentTypes, "val2").WithArguments("int").
WithLocation
(8, 47)
976
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "()=>1").
WithLocation
(8, 47)
1202
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Bob").WithArguments("(int Alice, int)", "Bob").
WithLocation
(9, 32)
CodeGen\CodeGenRefLocalTests.cs (7)
3231
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(6, 9),
3234
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(6, 22)
3288
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "var").WithArguments("var").
WithLocation
(2, 7)
3372
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedArrayInitializer, "b = ref {4, 5, 6}").
WithLocation
(11, 17),
3375
Diagnostic(ErrorCode.ERR_ArrayInitToNonArrayType, "{7,8,9}").
WithLocation
(14, 28)
3409
Diagnostic(ErrorCode.ERR_InvalidObjectCreation, "ref[]").
WithLocation
(6, 28),
3412
Diagnostic(ErrorCode.ERR_TypeExpected, "[").
WithLocation
(6, 31)
CodeGen\CodeGenRefReadonlyReturnTests.cs (47)
506
Diagnostic(ErrorCode.ERR_TypeExpected, "ref").
WithLocation
(6, 25),
509
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("readonly").
WithLocation
(13, 25),
512
Diagnostic(ErrorCode.ERR_ObjectRequired, "M").WithArguments("Program.M(int)").
WithLocation
(15, 20),
515
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").
WithLocation
(15, 9)
546
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "M()").WithArguments("method", "M").
WithLocation
(6, 9),
549
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "M1().Alice").WithArguments("method", "M1").
WithLocation
(7, 9),
552
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "M()").WithArguments("method", "M").
WithLocation
(9, 9),
555
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "M1().Alice").WithArguments("method", "M1").
WithLocation
(10, 9),
558
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "M()").WithArguments("method", "M").
WithLocation
(12, 9),
561
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "M1().Alice").WithArguments("method", "M1").
WithLocation
(13, 9)
592
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "P").WithArguments("property", "P").
WithLocation
(6, 9),
595
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "P1.Alice").WithArguments("property", "P1").
WithLocation
(7, 9),
598
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "P").WithArguments("property", "P").
WithLocation
(9, 9),
601
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "P1.Alice").WithArguments("property", "P1").
WithLocation
(10, 9),
604
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "P").WithArguments("property", "P").
WithLocation
(12, 9),
607
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "P1.Alice").WithArguments("property", "P1").
WithLocation
(13, 9)
636
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "M()").WithArguments("method", "M").
WithLocation
(6, 25),
639
Diagnostic(ErrorCode.ERR_BadSKunknown, "M1").WithArguments("Program.M1()", "method").
WithLocation
(7, 25),
642
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "P").WithArguments("property", "P").
WithLocation
(8, 26),
645
Diagnostic(ErrorCode.ERR_RefReadonlyNotField2, "P1.Alice").WithArguments("property", "P1").
WithLocation
(9, 26)
692
Diagnostic(ErrorCode.ERR_FixedNeeded, "& M()").
WithLocation
(6, 18),
695
Diagnostic(ErrorCode.ERR_FixedNeeded, "& M1().Alice").
WithLocation
(7, 18),
698
Diagnostic(ErrorCode.ERR_FixedNeeded, "& P").
WithLocation
(9, 19),
701
Diagnostic(ErrorCode.ERR_FixedNeeded, "& P1.Alice").
WithLocation
(10, 19)
750
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "M()").WithArguments("method", "M").
WithLocation
(12, 28),
753
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField2, "M1().Alice").WithArguments("method", "M1").
WithLocation
(16, 28),
756
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "P").WithArguments("property", "P").
WithLocation
(23, 28),
759
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField2, "P1.Alice").WithArguments("property", "P1").
WithLocation
(27, 28)
977
Diagnostic(ErrorCode.ERR_RefReturnLocal, "local").WithArguments("local").
WithLocation
(11, 30),
980
Diagnostic(ErrorCode.ERR_EscapeCall, "M(ref local)").WithArguments("Program.M(ref int)", "x").
WithLocation
(11, 24),
983
Diagnostic(ErrorCode.ERR_RefReturnLocal, "local").WithArguments("local").
WithLocation
(15, 31),
986
Diagnostic(ErrorCode.ERR_EscapeCall2, "M1(out local)").WithArguments("Program.M1(out int)", "x").
WithLocation
(15, 24)
993
Diagnostic(ErrorCode.ERR_RefReturnLocal, "local").WithArguments("local").
WithLocation
(11, 30),
996
Diagnostic(ErrorCode.ERR_EscapeCall, "M(ref local)").WithArguments("Program.M(ref int)", "x").
WithLocation
(11, 24));
1021
Diagnostic(ErrorCode.ERR_RefReturnLocal, "local").WithArguments("local").
WithLocation
(8, 25),
1024
Diagnostic(ErrorCode.ERR_EscapeCall, "this[local]").WithArguments("Program.this[in int]", "x").
WithLocation
(8, 20)
1048
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "42").
WithLocation
(6, 25),
1051
Diagnostic(ErrorCode.ERR_EscapeCall, "this[42]").WithArguments("Program.this[in int]", "x").
WithLocation
(6, 20)
1078
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(8, 20),
1081
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "x").
WithLocation
(11, 44)
1104
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "42").
WithLocation
(6, 20)
1128
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "42").
WithLocation
(6, 22),
1131
Diagnostic(ErrorCode.ERR_EscapeCall, "M(42)").WithArguments("Program.M(in int)", "x").
WithLocation
(6, 20)
1155
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "M()").
WithLocation
(6, 20),
1158
Diagnostic(ErrorCode.ERR_EscapeCall, "M()").WithArguments("Program.M(in int)", "x").
WithLocation
(6, 20)
1183
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "b").
WithLocation
(7, 22),
1186
Diagnostic(ErrorCode.ERR_EscapeCall, "M(b)").WithArguments("Program.M(in int)", "x").
WithLocation
(7, 20)
CodeGen\CodeGenRefReturnTests.cs (67)
2308
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(4, 12),
2311
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(6, 16)
2343
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(4, 12),
2346
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(8, 9),
2349
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "N").WithArguments("local functions", "7.0").
WithLocation
(8, 17),
2352
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(10, 13),
2355
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "NN").WithArguments("local functions", "7.0").
WithLocation
(10, 21),
2358
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(10, 40),
2361
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(12, 13),
2364
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(12, 25),
2367
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(15, 20),
2370
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(18, 16)
2385
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(2, 10)
2406
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref int").WithArguments("ref for-loop variables", "7.3").
WithLocation
(6, 14),
2409
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(6, 26));
2435
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(2, 10),
2438
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(11, 19),
2441
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(12, 17)
2620
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(4, 36),
2623
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(5, 30),
2626
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(6, 31),
2629
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(10, 28),
2632
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(11, 25)
2672
Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "o.F()").
WithLocation
(24, 19)
2748
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "o.F()").
WithLocation
(24, 23)
2828
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "o.F").WithArguments("A<int>.F()", "D<int>").
WithLocation
(24, 13),
2831
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "o.F").WithArguments("A<int>.F()", "D<int>").
WithLocation
(26, 24)
2836
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "o.F").WithArguments("A<int>.F()", "D<int>").
WithLocation
(24, 13),
2839
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "o.F").WithArguments("A<int>.F()", "D<int>").
WithLocation
(26, 24)
2880
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "o.F").WithArguments("A<int>.F()", "D<int>").
WithLocation
(23, 13),
2883
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "o.F").WithArguments("A<int>.F()", "D<int>").
WithLocation
(25, 24)
2888
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "o.F").WithArguments("A<int>.F()", "D<int>").
WithLocation
(23, 13),
2891
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "o.F").WithArguments("A<int>.F()", "D<int>").
WithLocation
(25, 24)
2930
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "d.Length").
WithLocation
(18, 20)
3119
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "d[0]").
WithLocation
(17, 20)
3155
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "d.Length").
WithLocation
(14, 26),
3158
Diagnostic(ErrorCode.ERR_EscapeCall, "G(ref d.Length)").WithArguments("C.G(ref dynamic)", "d").
WithLocation
(14, 20)
3185
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref T").WithArguments("RefFunc3<T>.Invoke()", "T", "covariant", "invariantly").
WithLocation
(6, 10),
3188
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref T").WithArguments("RefFunc2<T>.Invoke()", "T", "contravariant", "invariantly").
WithLocation
(5, 10),
3191
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Func<T>").WithArguments("RefFunc3f<T>.Invoke()", "T", "covariant", "invariantly").
WithLocation
(14, 10),
3194
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Func<T>").WithArguments("RefFunc2f<T>.Invoke()", "T", "contravariant", "invariantly").
WithLocation
(13, 10),
3197
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Action<T>").WithArguments("RefFunc3a<T>.Invoke()", "T", "covariant", "invariantly").
WithLocation
(10, 10),
3200
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Action<T>").WithArguments("RefFunc2a<T>.Invoke()", "T", "contravariant", "invariantly").
WithLocation
(9, 10)
3228
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref T").WithArguments("IM3<T>.RefMethod()", "T", "covariant", "invariantly").
WithLocation
(6, 24),
3231
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Action<T>").WithArguments("IM3a<T>.RefMethod()", "T", "covariant", "invariantly").
WithLocation
(10, 25),
3234
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Action<T>").WithArguments("IM2a<T>.RefMethod()", "T", "contravariant", "invariantly").
WithLocation
(9, 24),
3237
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Func<T>").WithArguments("IM2f<T>.RefMethod()", "T", "contravariant", "invariantly").
WithLocation
(13, 24),
3240
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Func<T>").WithArguments("IM3f<T>.RefMethod()", "T", "covariant", "invariantly").
WithLocation
(14, 25),
3243
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref T").WithArguments("IM2<T>.RefMethod()", "T", "contravariant", "invariantly").
WithLocation
(5, 23)
3271
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref T").WithArguments("IP2<T>.RefProp", "T", "contravariant", "invariantly").
WithLocation
(5, 23),
3274
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Func<T>").WithArguments("IP2f<T>.RefProp", "T", "contravariant", "invariantly").
WithLocation
(13, 24),
3277
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Action<T>").WithArguments("IP2a<T>.RefProp", "T", "contravariant", "invariantly").
WithLocation
(9, 24),
3280
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Action<T>").WithArguments("IP3a<T>.RefProp", "T", "covariant", "invariantly").
WithLocation
(10, 25),
3283
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Func<T>").WithArguments("IP3f<T>.RefProp", "T", "covariant", "invariantly").
WithLocation
(14, 25),
3286
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref T").WithArguments("IP3<T>.RefProp", "T", "covariant", "invariantly").
WithLocation
(6, 24)
3314
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref T").WithArguments("IP3<T>.this[int]", "T", "covariant", "invariantly").
WithLocation
(6, 24),
3317
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref T").WithArguments("IP2<T>.this[int]", "T", "contravariant", "invariantly").
WithLocation
(5, 23),
3320
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Action<T>").WithArguments("IP2a<T>.this[int]", "T", "contravariant", "invariantly").
WithLocation
(9, 24),
3323
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Action<T>").WithArguments("IP3a<T>.this[int]", "T", "covariant", "invariantly").
WithLocation
(10, 25),
3326
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Func<T>").WithArguments("IP2f<T>.this[int]", "T", "contravariant", "invariantly").
WithLocation
(13, 24),
3329
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref Func<T>").WithArguments("IP3f<T>.this[int]", "T", "covariant", "invariantly").
WithLocation
(14, 25)
3364
Diagnostic(ErrorCode.ERR_BadRetType, "M1").WithArguments("Program.M1()", "string").
WithLocation
(13, 34)
3369
Diagnostic(ErrorCode.ERR_BadRetType, "M1").WithArguments("Program.M1()", "string").
WithLocation
(10, 30),
3372
Diagnostic(ErrorCode.ERR_BadRetType, "M1").WithArguments("Program.M1()", "string").
WithLocation
(13, 34)
3413
Diagnostic(ErrorCode.ERR_BadRetType, "M1").WithArguments("Program.M1(Derived1)", "Derived1").
WithLocation
(22, 38)
3501
Diagnostic(ErrorCode.ERR_AmbigCall, "Test").WithArguments("Program.Test(Program.RefFunc1<Derived2, Base>)", "Program.Test(Program.RefFunc1<Derived2, Derived1>)").
WithLocation
(25, 9),
3504
Diagnostic(ErrorCode.ERR_AmbigCall, "Test").WithArguments("Program.Test(Program.RefFunc1<Derived2, Base>)", "Program.Test(Program.RefFunc1<Derived2, Derived1>)").
WithLocation
(26, 9)
CodeGen\CodeGenScriptTests.cs (8)
607
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "").WithArguments("System.Threading.Tasks.Task<object>", "GetAwaiter").
WithLocation
(1, 1),
610
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "System.Console.WriteLine(1);").WithArguments("System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1").
WithLocation
(1, 1),
613
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "System.Console.WriteLine(1);").WithArguments("System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1", "Create").
WithLocation
(1, 1),
616
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "System.Console.WriteLine(1);").WithArguments("System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1", "Task").
WithLocation
(1, 1),
619
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "System.Console.WriteLine(1);").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "MoveNext").
WithLocation
(1, 1),
622
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "System.Console.WriteLine(1);").WithArguments("System.Runtime.CompilerServices.IAsyncStateMachine", "SetStateMachine").
WithLocation
(1, 1));
645
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1").WithArguments("I1.M()", "I1").
WithLocation
(7, 6)
653
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationInNonClassOrStruct, "M").WithArguments("M()").
WithLocation
(7, 9)
CodeGen\CodeGenShortCircuitOperatorTests.cs (12)
5375
Diagnostic(ErrorCode.ERR_NoImplicitConv, "c?.M()").WithArguments("void", "object").
WithLocation
(16, 32),
5378
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "c?.M()").WithArguments("lambda expression").
WithLocation
(16, 32),
5381
Diagnostic(ErrorCode.ERR_NoImplicitConv, "c?.M()").WithArguments("void", "object").
WithLocation
(19, 37),
5384
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(new C())?.M()").WithArguments("void", "object").
WithLocation
(21, 32)
5505
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".M()").WithArguments("T").
WithLocation
(15, 34),
5508
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".M()").WithArguments("T").
WithLocation
(18, 42),
5511
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".M()").WithArguments("T").
WithLocation
(20, 45)
5634
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".M()").WithArguments("void*").
WithLocation
(16, 41),
5637
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".M()").WithArguments("void*").
WithLocation
(19, 39),
5640
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".M()").WithArguments("void*").
WithLocation
(21, 42)
5771
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".M()").WithArguments("T").
WithLocation
(15, 18)
7565
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".SomeInfo()").WithArguments("TValue").
WithLocation
(15, 26)
CodeGen\CodeGenStructsAndEnum.cs (3)
1607
Diagnostic(ErrorCode.ERR_NoImplicitConv, "base").WithArguments("S", "System.ValueType").
WithLocation
(4, 48),
1610
Diagnostic(ErrorCode.ERR_NoImplicitConv, "base").WithArguments("S", "System.ValueType").
WithLocation
(6, 42),
1613
Diagnostic(ErrorCode.ERR_NoImplicitConv, "base").WithArguments("S", "System.ValueType").
WithLocation
(8, 42));
CodeGen\CodeGenTests.cs (30)
10848
Diagnostic(ErrorCode.ERR_FloatOverflow, "0E1M").WithArguments("decimal").
WithLocation
(6, 27),
10850
Diagnostic(ErrorCode.ERR_FloatOverflow, "0E10M").WithArguments("decimal").
WithLocation
(7, 27),
10852
Diagnostic(ErrorCode.ERR_FloatOverflow, "0E10M").WithArguments("decimal").
WithLocation
(8, 28),
10854
Diagnostic(ErrorCode.ERR_FloatOverflow, "0.00E10M").WithArguments("decimal").
WithLocation
(9, 27),
10856
Diagnostic(ErrorCode.ERR_FloatOverflow, "0.00E10M").WithArguments("decimal").
WithLocation
(10, 28),
10858
Diagnostic(ErrorCode.ERR_FloatOverflow, "0E100M").WithArguments("decimal").
WithLocation
(11, 27));
13496
Diagnostic(ErrorCode.ERR_InterfaceImplementedImplicitlyByVariadic, "IVarArgs").WithArguments("VarArgs.Invoke(__arglist)", "IVarArgs.Invoke(__arglist)", "MyVarArgs").
WithLocation
(7, 28)
13503
Diagnostic(ErrorCode.ERR_InterfaceImplementedImplicitlyByVariadic, "IVarArgs").WithArguments("VarArgs.Invoke(__arglist)", "IVarArgs.Invoke(__arglist)", "MyVarArgs").
WithLocation
(7, 28)
13566
Diagnostic(ErrorCode.ERR_InterfaceImplementedImplicitlyByVariadic, "Invoke").WithArguments("MyVarArgs2.Invoke(__arglist)", "IVarArgs.Invoke(__arglist)", "MyVarArgs2").
WithLocation
(15, 16),
13569
Diagnostic(ErrorCode.ERR_InterfaceImplementedImplicitlyByVariadic, "IVarArgs").WithArguments("VarArgs.Invoke(__arglist)", "IVarArgs.Invoke(__arglist)", "MyVarArgs").
WithLocation
(8, 28)
14554
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
14557
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""A""").WithArguments("System.String", "op_Equality").
WithLocation
(14, 27)
14591
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "typeof(C)").WithArguments("System.Type", "GetTypeFromHandle").
WithLocation
(13, 23));
14627
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "__reftype(__makeref(o))").WithArguments("System.Type", "GetTypeFromHandle").
WithLocation
(15, 16));
15682
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "Test").WithArguments("M.Test(object)").
WithLocation
(6, 16)
15773
Diagnostic(ErrorCode.ERR_ObjectRequired, "Test").WithArguments("M.Test(object)").
WithLocation
(16, 31)
15806
Diagnostic(ErrorCode.ERR_ObjectRequired, "Test").WithArguments("M.Test(object)").
WithLocation
(8, 31)
15834
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "Test").WithArguments("M.Test(object)").
WithLocation
(4, 31)
15893
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(16, 29),
15896
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(30, 30),
15899
Diagnostic(ErrorCode.ERR_ObjectRequired, "InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(21, 25),
15902
Diagnostic(ErrorCode.ERR_ObjectRequired, "InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(26, 21),
15905
Diagnostic(ErrorCode.ERR_ObjectRequired, "InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(31, 33),
15908
Diagnostic(ErrorCode.ERR_ObjectRequired, "InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(34, 28)
15972
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(16, 29),
15975
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(30, 30),
15978
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(21, 25),
15981
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(26, 21),
15984
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(31, 33),
15987
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.InstanceMethod").WithArguments("C.InstanceMethod(int)").
WithLocation
(34, 28)
CodeGen\CodeGenThrowTests.cs (2)
338
Diagnostic(ErrorCode.ERR_BadExceptionType, "x").
WithLocation
(6, 15)
402
Diagnostic(ErrorCode.ERR_NoImplicitConv, "t").WithArguments("T", "System.Exception").
WithLocation
(6, 15)
CodeGen\CodeGenTryFinally.cs (2)
3067
Diagnostic(ErrorCode.WRN_UnreachableGeneralCatch, "catch").
WithLocation
(7, 9));
3088
Diagnostic(ErrorCode.WRN_UnreachableGeneralCatch, "catch").
WithLocation
(9, 9));
CodeGen\CodeGenTupleEqualityTests.cs (144)
35
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "t == (1, 2)").WithArguments("tuple equality", "7.3").
WithLocation
(7, 30)
86
Diagnostic(ErrorCode.ERR_TupleSizesMismatchForBinOps, "(1, 1) == (2, 2, 2)").WithArguments("2", "3").
WithLocation
(6, 16)
107
Diagnostic(ErrorCode.ERR_TupleSizesMismatchForBinOps, "t1 == t2").WithArguments("2", "3").
WithLocation
(8, 16)
128
Diagnostic(ErrorCode.ERR_TupleSizesMismatchForBinOps, "t1 == t2").WithArguments("2", "3").
WithLocation
(8, 16)
151
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(1, 2)").WithArguments("System.ValueTuple`2").
WithLocation
(6, 16),
154
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(3, 4)").WithArguments("System.ValueTuple`2").
WithLocation
(6, 26)
176
Diagnostic(ErrorCode.ERR_TupleSizesMismatchForBinOps, "t1 == t2").WithArguments("2", "3").
WithLocation
(9, 16)
776
Diagnostic(ErrorCode.ERR_BadBinaryOps, "t1 + t1").WithArguments("+", "(int, int)", "(int, int)").
WithLocation
(7, 13),
779
Diagnostic(ErrorCode.ERR_BadBinaryOps, "t1 > t1").WithArguments(">", "(int, int)", "(int, int)").
WithLocation
(8, 13),
782
Diagnostic(ErrorCode.ERR_BadBinaryOps, "t1 >= t1").WithArguments(">=", "(int, int)", "(int, int)").
WithLocation
(9, 13),
785
Diagnostic(ErrorCode.ERR_BadUnaryOp, "!t1").WithArguments("!", "(int, int)").
WithLocation
(10, 13)
1202
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(null, ns) == (null, default)").WithArguments("==", "S?", "default").
WithLocation
(7, 13),
1205
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(ns, null) != (default, null)").WithArguments("!=", "S?", "default").
WithLocation
(8, 13)
1259
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "(default, default) == (default, default)").WithArguments("==", "default", "default").
WithLocation
(6, 30),
1262
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "(default, default) == (default, default)").WithArguments("==", "default", "default").
WithLocation
(6, 30),
1265
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "default == (default, default)").WithArguments("==", "default", "(default, default)").
WithLocation
(7, 30)
1284
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "(null, default) != (default, null)").WithArguments("!=", "<null>", "default").
WithLocation
(6, 13),
1287
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "(null, default) != (default, null)").WithArguments("!=", "default", "<null>").
WithLocation
(6, 13)
1306
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "(null, (default, default)) == (null, (default, default))").WithArguments("==", "default", "default").
WithLocation
(6, 30),
1309
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "(null, (default, default)) == (null, (default, default))").WithArguments("==", "default", "default").
WithLocation
(6, 30)
1360
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "(null, () => 1) == (default, default)").WithArguments("==", "<null>", "default").
WithLocation
(6, 30),
1363
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(null, () => 1) == (default, default)").WithArguments("==", "lambda expression", "default").
WithLocation
(6, 30),
1366
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "(null, () => 2) == default").WithArguments("==", "(<null>, lambda expression)", "default").
WithLocation
(7, 30)
1373
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "(null, () => 1) == (default, default)").WithArguments("==", "<null>", "default").
WithLocation
(6, 30),
1376
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "(null, () => 2) == default").WithArguments("==", "(<null>, lambda expression)", "default").
WithLocation
(7, 30)
1401
Diagnostic(ErrorCode.ERR_BadBinaryOps, "ns == default").WithArguments("==", "S?", "default").
WithLocation
(9, 13),
1404
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(ns, ns) == (default, default)").WithArguments("==", "S?", "default").
WithLocation
(11, 13),
1407
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(ns, ns) == (default, default)").WithArguments("==", "S?", "default").
WithLocation
(11, 13),
1410
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(ns, ns) == default").WithArguments("==", "S?", "S?").
WithLocation
(12, 13),
1413
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(ns, ns) == default").WithArguments("==", "S?", "S?").
WithLocation
(12, 13)
1466
Diagnostic(ErrorCode.ERR_BadBinaryOps, "ns == 1").WithArguments("==", "S?", "int").
WithLocation
(7, 13),
1469
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(ns, ns) == (default, default)").WithArguments("==", "S?", "default").
WithLocation
(8, 13),
1472
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(ns, ns) == (default, default)").WithArguments("==", "S?", "default").
WithLocation
(8, 13),
1475
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(ns, ns) == default").WithArguments("==", "S?", "S?").
WithLocation
(9, 13),
1478
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(ns, ns) == default").WithArguments("==", "S?", "S?").
WithLocation
(9, 13)
1674
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(null, null, null, null) == (null, x => x, Main, (int i) => { int j = 0; return i + j; })").WithArguments("==", "<null>", "lambda expression").
WithLocation
(6, 30),
1677
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(null, null, null, null) == (null, x => x, Main, (int i) => { int j = 0; return i + j; })").WithArguments("==", "<null>", "method group").
WithLocation
(6, 30),
1680
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(null, null, null, null) == (null, x => x, Main, (int i) => { int j = 0; return i + j; })").WithArguments("==", "<null>", "lambda expression").
WithLocation
(6, 30));
1687
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(null, null, null, null) == (null, x => x, Main, (int i) => { int j = 0; return i + j; })").WithArguments("==", "<null>", "lambda expression").
WithLocation
(6, 30));
1766
Diagnostic(ErrorCode.ERR_VoidInTuple, "Main()").
WithLocation
(6, 31),
1769
Diagnostic(ErrorCode.ERR_VoidInTuple, "Main()").
WithLocation
(6, 55)
1788
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(s, s) == (1, () => { })").WithArguments("==", "string", "int").
WithLocation
(6, 30),
1791
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(s, s) == (1, () => { })").WithArguments("==", "string", "lambda expression").
WithLocation
(6, 30)
1865
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(d1, 2) == (() => 1, d2)").WithArguments("==", "dynamic", "lambda expression").
WithLocation
(8, 30)
1968
Diagnostic(ErrorCode.ERR_BadTypeArgument, "s1").WithArguments("S").
WithLocation
(6, 35),
1971
Diagnostic(ErrorCode.ERR_BadBinaryOps, @"("""", s1) == (null, s2)").WithArguments("==", "S", "S").
WithLocation
(6, 30),
1974
Diagnostic(ErrorCode.ERR_BadTypeArgument, "s1").WithArguments("S").
WithLocation
(6, 35),
1977
Diagnostic(ErrorCode.ERR_BadTypeArgument, "s2").WithArguments("S").
WithLocation
(6, 49)
1996
Diagnostic(ErrorCode.ERR_NameNotInContext, "error1").WithArguments("error1").
WithLocation
(6, 13),
1999
Diagnostic(ErrorCode.ERR_NameNotInContext, "error2").WithArguments("error2").
WithLocation
(6, 24)
2020
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "t = (null, null)").WithArguments("(<null>, <null>)").
WithLocation
(6, 13),
2023
Diagnostic(ErrorCode.ERR_BadBinaryOps, "null == (() => {})").WithArguments("==", "<null>", "lambda expression").
WithLocation
(7, 13),
2026
Diagnostic(ErrorCode.ERR_BadBinaryOps, @""""" == 1").WithArguments("==", "string", "int").
WithLocation
(8, 13)
2033
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "t = (null, null)").WithArguments("(<null>, <null>)").
WithLocation
(6, 13),
2036
Diagnostic(ErrorCode.ERR_BadBinaryOps, @""""" == 1").WithArguments("==", "string", "int").
WithLocation
(8, 13)
2345
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(1, 2) == new C()").WithArguments("==", "(int, int)", "C").
WithLocation
(6, 18)
2573
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "0").WithArguments("(T1, T2)", "T1", "int").
WithLocation
(6, 30),
2576
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "0").WithArguments("(T1, T2)", "T1", "int").
WithLocation
(6, 30),
2579
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "1").WithArguments("(T1, T2)", "T2", "int").
WithLocation
(6, 33),
2582
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "1").WithArguments("(T1, T2)", "T2", "int").
WithLocation
(6, 33),
2585
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "this").WithArguments("(T1, T2)", "T1", "int").
WithLocation
(7, 30),
2588
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "this").WithArguments("(T1, T2)", "T2", "int").
WithLocation
(7, 36)
2653
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "t1").WithArguments("System.Nullable<T>", "IInterface", "T", "(int, int)").
WithLocation
(4, 24),
2656
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "t2").WithArguments("System.Nullable<T>", "IInterface", "T", "(long, long)").
WithLocation
(4, 42)
2883
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "(new A(), new A()) == (new X(), new Y())").WithArguments("A.operator ==(A, Y)", "obsolete").
WithLocation
(6, 37),
2886
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "(new A(), new A()) == (new X(), new Y())").WithArguments("A.operator ==(A, Y)", "obsolete").
WithLocation
(6, 37),
2889
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "(new A(), new A()) != (new X(), new Y())").WithArguments("A.operator !=(A, Y)", "obsolete too").
WithLocation
(7, 37),
2892
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "(new A(), new A()) != (new X(), new Y())").WithArguments("A.operator !=(A, Y)", "obsolete too").
WithLocation
(7, 37)
2916
Diagnostic(ErrorCode.ERR_UseDefViolation, "error1").WithArguments("error1").
WithLocation
(7, 41),
2919
Diagnostic(ErrorCode.ERR_UseDefViolation, "error2").WithArguments("error2").
WithLocation
(10, 35)
2942
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "z").WithArguments("z").
WithLocation
(7, 14)
2969
Diagnostic(ErrorCode.ERR_BadBinaryOps, "this == (1, 1)").WithArguments("==", "C", "(int, int)").
WithLocation
(7, 30),
2972
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(1, 1) == this").WithArguments("==", "(int, int)", "C").
WithLocation
(8, 30)
3057
Diagnostic(ErrorCode.ERR_BadBinaryOps, "new C() == new A()").WithArguments("==", "C", "A").
WithLocation
(7, 30),
3060
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(1, new C()) == (1, new A())").WithArguments("==", "C", "A").
WithLocation
(8, 30)
3082
Diagnostic(ErrorCode.ERR_BadBinaryOps, "s == 3").WithArguments("==", "string", "int").
WithLocation
(7, 30),
3085
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(1, s) == (1, e)").WithArguments("==", "string", "System.Exception").
WithLocation
(8, 30)
3110
Diagnostic(ErrorCode.WRN_BadRefCompareLeft, "o == s").WithArguments("string").
WithLocation
(10, 18)
3135
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "nt1").WithArguments("C.implicit operator int(C)", "obsolete").
WithLocation
(5, 12),
3138
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "nt1").WithArguments("C.implicit operator int(C)", "obsolete").
WithLocation
(5, 12),
3141
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "nt2").WithArguments("C.implicit operator int(C)", "obsolete").
WithLocation
(5, 19),
3144
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "nt2").WithArguments("C.implicit operator int(C)", "obsolete").
WithLocation
(5, 19),
3147
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "nt1").WithArguments("C.implicit operator int(C)", "obsolete").
WithLocation
(8, 12),
3150
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "nt1").WithArguments("C.implicit operator int(C)", "obsolete").
WithLocation
(8, 12),
3153
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "nt2").WithArguments("C.implicit operator int(C)", "obsolete").
WithLocation
(8, 19),
3156
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "nt2").WithArguments("C.implicit operator int(C)", "obsolete").
WithLocation
(8, 19)
3184
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t == t").WithArguments("NotBool.implicit operator bool(NotBool)", "obsolete").
WithLocation
(4, 49),
3187
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t == t").WithArguments("NotBool.implicit operator bool(NotBool)", "obsolete").
WithLocation
(4, 49),
3190
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t != t").WithArguments("NotBool.implicit operator bool(NotBool)", "obsolete").
WithLocation
(5, 52),
3193
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t != t").WithArguments("NotBool.implicit operator bool(NotBool)", "obsolete").
WithLocation
(5, 52)
3219
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t == t").WithArguments("A.operator ==(A, A)", "").
WithLocation
(4, 49),
3222
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t == t").WithArguments("A.operator ==(A, A)", "").
WithLocation
(4, 49),
3225
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t != t").WithArguments("A.operator !=(A, A)", "").
WithLocation
(5, 52),
3228
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t != t").WithArguments("A.operator !=(A, A)", "").
WithLocation
(5, 52)
3259
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t == t").WithArguments("NotBool.operator false(NotBool)", "obsolete").
WithLocation
(4, 49),
3262
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t == t").WithArguments("NotBool.operator false(NotBool)", "obsolete").
WithLocation
(4, 49),
3265
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t != t").WithArguments("NotBool.operator true(NotBool)", "obsolete").
WithLocation
(5, 52),
3268
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "t != t").WithArguments("NotBool.operator true(NotBool)", "obsolete").
WithLocation
(5, 52)
4286
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x1 == x1").WithArguments("==", "System.ValueTuple<int?>", "System.ValueTuple<int?>").
WithLocation
(8, 19),
4289
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x1 != x1").WithArguments("!=", "System.ValueTuple<int?>", "System.ValueTuple<int?>").
WithLocation
(9, 19),
4292
Diagnostic(ErrorCode.ERR_BadBinaryOps, "t.Rest == t.Rest").WithArguments("==", "System.ValueTuple<int?>", "System.ValueTuple<int?>").
WithLocation
(18, 16)
4329
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x1 == x1").WithArguments("==", "System.ValueTuple<int?>", "System.ValueTuple<int?>").
WithLocation
(9, 19),
4332
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x1 != x1").WithArguments("!=", "System.ValueTuple<int?>", "System.ValueTuple<int?>").
WithLocation
(10, 19)
4748
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(new A(1), new A(2)) == (new X(1), new Y(2))").WithArguments("NotBool", "bool").
WithLocation
(7, 18),
4751
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(new A(1), new A(2)) == (new X(1), new Y(2))").WithArguments("NotBool", "bool").
WithLocation
(7, 18)
4757
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(new A(1), 2) != (new X(1), 2)").WithArguments("NotBool", "bool").
WithLocation
(7, 18)
4822
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(new A(1), new A(2)) == (new X(1), new Y(2))").WithArguments("NotBool", "bool").
WithLocation
(7, 18),
4825
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(new A(1), new A(2)) == (new X(1), new Y(2))").WithArguments("NotBool", "bool").
WithLocation
(7, 18)
4860
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(a, a) == (a, a)").WithArguments("bool?", "bool").
WithLocation
(6, 13),
4863
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(a, a) == (a, a)").WithArguments("bool?", "bool").
WithLocation
(6, 13),
4866
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "a == a").WithArguments("bool?", "bool").
WithLocation
(7, 13),
4869
Diagnostic(ErrorCode.WRN_ComparisonToSelf, "a == a").
WithLocation
(7, 13)
4908
Diagnostic(ErrorCode.WRN_TupleBinopLiteralNameMismatch, "x: 1").WithArguments("x").
WithLocation
(16, 25),
4911
Diagnostic(ErrorCode.WRN_TupleBinopLiteralNameMismatch, "y: 2").WithArguments("y").
WithLocation
(16, 31)
4921
Diagnostic(ErrorCode.WRN_TupleBinopLiteralNameMismatch, "c: 3").WithArguments("c").
WithLocation
(16, 27),
4924
Diagnostic(ErrorCode.WRN_TupleBinopLiteralNameMismatch, "x: 2").WithArguments("x").
WithLocation
(16, 41)
4931
Diagnostic(ErrorCode.WRN_TupleBinopLiteralNameMismatch, "c: 1").WithArguments("c").
WithLocation
(16, 29)
4937
Diagnostic(ErrorCode.WRN_TupleBinopLiteralNameMismatch, "c: 1").WithArguments("c").
WithLocation
(16, 35),
4940
Diagnostic(ErrorCode.WRN_TupleBinopLiteralNameMismatch, "b: 2").WithArguments("b").
WithLocation
(16, 25)
4946
Diagnostic(ErrorCode.WRN_TupleBinopLiteralNameMismatch, "c: null").WithArguments("c").
WithLocation
(16, 32),
4949
Diagnostic(ErrorCode.WRN_TupleBinopLiteralNameMismatch, "d: 2").WithArguments("d").
WithLocation
(16, 41)
5024
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleBinOp, "(i, i) == (i, i)").
WithLocation
(8, 49),
5027
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleLiteral, "(i, i)").
WithLocation
(8, 49),
5030
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleLiteral, "(i, i)").
WithLocation
(8, 59),
5033
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleBinOp, "t != t").
WithLocation
(9, 57)
5132
Diagnostic(ErrorCode.WRN_TupleBinopLiteralNameMismatch, "Bob: 0").WithArguments("Bob").
WithLocation
(7, 55),
5135
Diagnostic(ErrorCode.WRN_TupleBinopLiteralNameMismatch, "Other: 2").WithArguments("Other").
WithLocation
(7, 67)
5245
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(t, t) == (t, t)").WithArguments("==", "T", "T").
WithLocation
(6, 13),
5248
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(t, t) == (t, t)").WithArguments("==", "T", "T").
WithLocation
(6, 13)
5269
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "(1, 2) == (3, 4)").
WithLocation
(6, 20)
5291
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "(1, 2) == (3, 4)").
WithLocation
(8, 15),
5294
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "(1, 2) == (3, 4)").
WithLocation
(8, 37)
5341
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(a, b) == (b, a)").WithArguments("==", "<anonymous type: int A>", "<anonymous type: int B>").
WithLocation
(9, 30),
5344
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(a, b) == (b, a)").WithArguments("==", "<anonymous type: int B>", "<anonymous type: int A>").
WithLocation
(9, 30)
5464
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p1").WithArguments("int*").
WithLocation
(10, 14),
5467
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p2").WithArguments("int*").
WithLocation
(10, 18),
5470
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p1").WithArguments("int*").
WithLocation
(10, 26),
5473
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p2").WithArguments("int*").
WithLocation
(10, 30),
5476
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p1").WithArguments("void*").
WithLocation
(10, 14),
5479
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p2").WithArguments("void*").
WithLocation
(10, 18),
5482
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p1").WithArguments("void*").
WithLocation
(10, 26),
5485
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p2").WithArguments("void*").
WithLocation
(10, 30)
5583
Diagnostic(ErrorCode.WRN_EqualityOpWithoutEquals, "B").WithArguments("B").
WithLocation
(22, 8),
5586
Diagnostic(ErrorCode.WRN_EqualityOpWithoutGetHashCode, "B").WithArguments("B").
WithLocation
(22, 8)
CodeGen\CodeGenTupleTest.cs (749)
234
Diagnostic(ErrorCode.WRN_UnreferencedField, "Item2").WithArguments("(T1, T2).Item2").
WithLocation
(7, 20),
237
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "ValueTuple").WithArguments("(T1, T2).Item2", "11.0").
WithLocation
(8, 16),
240
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "ValueTuple").WithArguments("(T1, T2).Item2", "11.0").
WithLocation
(8, 16),
243
Diagnostic(ErrorCode.ERR_AmbigMember, "Item2").WithArguments("(T1, T2).Item2", "(T1, T2).Item2").
WithLocation
(11, 18)
298
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "z: null").WithArguments("z", "(int a, string b)").
WithLocation
(11, 53),
301
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "a: default").WithArguments("a", "(int, string)").
WithLocation
(15, 35),
304
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "b: null").WithArguments("b", "(int, string)").
WithLocation
(15, 47),
307
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "a").WithArguments("(int, string)", "a").
WithLocation
(16, 12),
310
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "b").WithArguments("(int, string)", "b").
WithLocation
(17, 12)
1072
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int, int)").
WithLocation
(6, 21),
1075
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int, int)").
WithLocation
(9, 17)
1099
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int, int)").
WithLocation
(7, 21)
1130
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int a, int b)").
WithLocation
(6, 21),
1133
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int a, int b)").
WithLocation
(9, 22),
1136
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int a, (int b, int c) d)").
WithLocation
(12, 22),
1139
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int, int)").
WithLocation
(12, 55)
1175
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int a, int b)").
WithLocation
(6, 22),
1178
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int, int)").
WithLocation
(9, 22),
1181
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int, int)").
WithLocation
(12, 22),
1184
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int, int)").
WithLocation
(15, 22),
1187
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int, int)").
WithLocation
(18, 22),
1190
Diagnostic(ErrorCode.ERR_NoSuchMember, "a").WithArguments("(int, int)", "a").
WithLocation
(18, 40),
1193
Diagnostic(ErrorCode.ERR_NoSuchMember, "Item3").WithArguments("(int, int)", "Item3").
WithLocation
(18, 47)
1538
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"(1, ""hello"", 2)").WithArguments("(int, string, int)", "(int, string)").
WithLocation
(6, 27));
1558
Diagnostic(ErrorCode.ERR_ConversionNotTupleCompatible, "(1, null, 2)").WithArguments("3", "(int, string)").
WithLocation
(6, 27)
1580
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""Alice""").WithArguments("string", "int").
WithLocation
(6, 55),
1583
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(1, 2, 3, 4, 5, 6, 7, 8, 9)").WithArguments("(int, int, int, int, int, int, int, int, int)", "(int, int, int, int, int, int, int, int)").
WithLocation
(7, 54)
1605
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"(1, ""hello"", c: 2)").WithArguments("(int, string, int c)", "(int, string a)").
WithLocation
(6, 29)
2944
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(int, string)").WithArguments("System.ValueTuple`2").
WithLocation
(6, 9),
2947
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, @"(1, ""hello"")").WithArguments("System.ValueTuple`2").
WithLocation
(6, 27)
2972
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(11, 20),
2975
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "(1, 2)").WithArguments(".ctor", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(11, 24)
2996
Diagnostic(ErrorCode.ERR_TupleDuplicateElementName, "a").
WithLocation
(6, 24),
2999
Diagnostic(ErrorCode.ERR_TupleDuplicateElementName, "b").
WithLocation
(6, 38),
3002
Diagnostic(ErrorCode.ERR_TupleDuplicateElementName, "b").
WithLocation
(6, 50)
3024
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item1").WithArguments("Item1", "1").
WithLocation
(6, 28),
3027
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item1").WithArguments("Item1", "1").
WithLocation
(6, 50),
3030
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item2").WithArguments("Item2", "2").
WithLocation
(7, 14),
3033
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item2").WithArguments("Item2", "2").
WithLocation
(7, 40)
3054
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item10").WithArguments("Item10", "10").
WithLocation
(6, 37),
3057
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item1").WithArguments("Item1", "1").
WithLocation
(6, 61),
3060
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item10").WithArguments("Item10", "10").
WithLocation
(6, 71)
3101
Diagnostic(ErrorCode.ERR_TupleDuplicateElementName, "a").
WithLocation
(6, 24),
3104
Diagnostic(ErrorCode.ERR_TupleDuplicateElementName, "b").
WithLocation
(6, 50)
3125
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item3").WithArguments("Item3", "3").
WithLocation
(6, 28),
3128
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item2").WithArguments("Item2", "2").
WithLocation
(6, 42),
3131
Diagnostic(ErrorCode.ERR_TupleReservedElementNameAnyPosition, "Rest").WithArguments("Rest").
WithLocation
(6, 100),
3134
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item2").WithArguments("Item2", "2").
WithLocation
(6, 111),
3137
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item4").WithArguments("Item4", "4").
WithLocation
(6, 125),
3140
Diagnostic(ErrorCode.ERR_TupleReservedElementNameAnyPosition, "Rest").WithArguments("Rest").
WithLocation
(6, 189)
3161
Diagnostic(ErrorCode.ERR_TupleReservedElementNameAnyPosition, "CompareTo").WithArguments("CompareTo").
WithLocation
(6, 18),
3164
Diagnostic(ErrorCode.ERR_TupleReservedElementNameAnyPosition, "Deconstruct").WithArguments("Deconstruct").
WithLocation
(6, 43),
3167
Diagnostic(ErrorCode.ERR_TupleReservedElementNameAnyPosition, "Equals").WithArguments("Equals").
WithLocation
(6, 59),
3170
Diagnostic(ErrorCode.ERR_TupleReservedElementNameAnyPosition, "GetHashCode").WithArguments("GetHashCode").
WithLocation
(6, 70),
3173
Diagnostic(ErrorCode.ERR_TupleReservedElementNameAnyPosition, "Rest").WithArguments("Rest").
WithLocation
(6, 86),
3176
Diagnostic(ErrorCode.ERR_TupleReservedElementNameAnyPosition, "ToString").WithArguments("ToString").
WithLocation
(6, 95)
3333
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(T1 first, T2 second)").WithArguments("System.ValueTuple`2").
WithLocation
(10, 12),
3336
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(default(T1), default(T2))").WithArguments("System.ValueTuple`2").
WithLocation
(12, 16)
3412
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(T1, T2, T3, T4, T5, T6, T7, T8, T9)").WithArguments("System.ValueTuple`8").
WithLocation
(8, 12)
3565
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @"(42, ""Alice"")").WithArguments("y").
WithLocation
(4, 41));
3731
Diagnostic(ErrorCode.ERR_TupleInferredNamesNotAvailable, "a").WithArguments("a", "7.1").
WithLocation
(8, 32),
3734
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "a").WithArguments("(int, int)", "a").
WithLocation
(9, 41)
3818
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "a").WithArguments("Item1", "(T1, T2)", "UseSiteDiagnosticOnTupleField2_comp7, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 32)
3825
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "a").WithArguments("Item1", "(T1, T2)", "UseSiteDiagnosticOnTupleField2_comp7_1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 32)
3857
Diagnostic(ErrorCode.ERR_TupleInferredNamesNotAvailable, "a").WithArguments("a", "7.1").
WithLocation
(8, 32),
3883
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "b").WithArguments("(int a, int)", "b").
WithLocation
(9, 32)
3970
Diagnostic(ErrorCode.ERR_BadAccess, ".e").WithArguments("C.e").
WithLocation
(12, 27),
3973
Diagnostic(ErrorCode.ERR_BadAccess, "e").WithArguments("C.e").
WithLocation
(12, 41),
3976
Diagnostic(ErrorCode.ERR_BadAccess, "e").WithArguments("C.e").
WithLocation
(12, 76),
4318
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, "(1, 1)").WithArguments("System.ValueTuple`2", "comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "comp2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 17)
4341
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, "(int, int)").WithArguments("System.ValueTuple`2", "comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "comp2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 9),
4344
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, "(1, 1)").WithArguments("System.ValueTuple`2", "comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "comp2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 24)
4366
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, "(int, int)").WithArguments("System.ValueTuple`2", "comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "comp2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 19)
4459
Diagnostic(ErrorCode.ERR_AmbigMember, "Item1").WithArguments("(T1, T2).Item1", "(T1, T2).Item1").
WithLocation
(20, 18),
4462
Diagnostic(ErrorCode.ERR_AmbigMember, "Item2").WithArguments("(T1, T2).Item2", "(T1, T2).Item2").
WithLocation
(21, 18),
4465
Diagnostic(ErrorCode.ERR_AmbigMember, "Item1").WithArguments("(string, string).Item1", "(string, string).Item1").
WithLocation
(7, 39),
4468
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 13)
4567
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int a, int b)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(11, 13),
4570
Diagnostic(ErrorCode.ERR_AmbigMember, "Item2").WithArguments("(T1, T2).Item2", "(T1, T2).Item2").
WithLocation
(28, 18),
4573
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "Item1").WithArguments("Item1", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 39),
4576
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "Item1").WithArguments("Item1", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(13, 39),
4579
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "a").WithArguments("Item1", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(14, 39),
4582
Diagnostic(ErrorCode.ERR_AmbigMember, "Item2").WithArguments("(int a, int b).Item2", "(int a, int b).Item2").
WithLocation
(15, 39),
4585
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "b").WithArguments("Item2", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(16, 39)
4661
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "a").WithArguments("Item1", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 39),
4664
Diagnostic(ErrorCode.ERR_AmbigMember, "Item2").WithArguments("(T1, T2).Item2", "(T1, T2).Item2").
WithLocation
(19, 18)
4700
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "a").WithArguments("Item1", "System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 39),
4703
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "g").WithArguments("Item7", "System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 39),
4706
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "h").WithArguments("Item1", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(9, 39),
4709
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "i").WithArguments("Item2", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(10, 39)
4829
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "i1").WithArguments("(int, int)", "i1").
WithLocation
(19, 38)
4945
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("TC", "C1.M<TC>((CB, (CA, TC)))", "TC", "I<CB, CA>.M<TC>((CB, (CA, TC)))").
WithLocation
(15, 25),
4948
Diagnostic(ErrorCode.ERR_NoImplicitConv, "arg.Item2.Item1").WithArguments("CA", "CB").
WithLocation
(25, 17)
4975
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M").WithArguments("D.M((int g, int h))", "C.M((int c, int d))").
WithLocation
(11, 36)
5002
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M").WithArguments("D.M((int g, int h))", "C.M((int c, int d))").
WithLocation
(11, 32)
5029
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M").WithArguments("D.M((int, int))", "C.M((int c, int d))").
WithLocation
(11, 36)
5065
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "a").WithArguments("(int, int)", "a").
WithLocation
(21, 37)
5109
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "a").WithArguments("(int, int)", "a").
WithLocation
(22, 37)
5147
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "a").WithArguments("(int, int)", "a").
WithLocation
(14, 37),
5150
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "a").WithArguments("(int, int)", "a").
WithLocation
(15, 38)
5191
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "c").WithArguments("((int, int), int)", "c").
WithLocation
(12, 37),
5194
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(4, 65)
5262
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "C").
WithLocation
(9, 40)
5406
Diagnostic(ErrorCode.ERR_FeatureInPreview, "(int, int)").WithArguments("using type alias").
WithLocation
(2, 13),
5408
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
5411
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using VT2 = (int, int);").
WithLocation
(2, 1));
5415
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
5418
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using VT2 = (int, int);").
WithLocation
(2, 1));
5437
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(6, 15)
5523
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, "(1, 1)").WithArguments("System.ValueTuple`2", "comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "comp2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 14)
5607
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "d").WithArguments("(dynamic, dynamic)", "(int, int)").
WithLocation
(7, 24)
6960
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, @"((long, string))(1, ""hello"")").WithArguments("(long, string)", "(short, string)").
WithLocation
(10, 30),
6963
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, @"((long c, string d))(1, ""hello"")").WithArguments("(long c, string d)", "(short a, string b)").
WithLocation
(13, 34),
6966
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(7, 25),
6969
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x2").WithArguments("x2").
WithLocation
(10, 25),
6972
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x3").WithArguments("x3").
WithLocation
(13, 29)
7042
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(12, 20),
7045
Diagnostic(ErrorCode.ERR_ConversionNotTupleCompatible, "(null, null, null)").WithArguments("3", "(int, int)").
WithLocation
(8, 13),
7048
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(1, 1, 1)").WithArguments("(int, int, int)", "(int, int)").
WithLocation
(9, 13),
7051
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""string""").WithArguments("string", "int").
WithLocation
(10, 17),
7054
Diagnostic(ErrorCode.ERR_NameNotInContext, "garbage").WithArguments("garbage").
WithLocation
(11, 20),
7057
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(13, 14),
7060
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(13, 20),
7063
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(14, 17),
7066
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "(t)=>t").WithArguments("lambda expression", "int").
WithLocation
(15, 17),
7069
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("(int, int)").
WithLocation
(16, 13)
7099
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(12, 32),
7102
Diagnostic(ErrorCode.ERR_ConversionNotTupleCompatible, "((int, int))(null, null, null)").WithArguments("3", "(int, int)").
WithLocation
(8, 13),
7105
Diagnostic(ErrorCode.ERR_NoExplicitConv, "((int, int))(1, 1, 1)").WithArguments("(int, int, int)", "(int, int)").
WithLocation
(9, 13),
7108
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"""string""").WithArguments("string", "int").
WithLocation
(10, 29),
7111
Diagnostic(ErrorCode.ERR_NameNotInContext, "garbage").WithArguments("garbage").
WithLocation
(11, 32),
7114
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(13, 26),
7117
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(13, 32),
7120
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(14, 29),
7123
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "(t)=>t").WithArguments("lambda expression", "int").
WithLocation
(15, 29),
7126
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "((int, int))null").WithArguments("(int, int)").
WithLocation
(16, 13)
7157
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(12, 20),
7160
Diagnostic(ErrorCode.ERR_ConversionNotTupleCompatible, "(null, null, null)").WithArguments("3", "(int, int)").
WithLocation
(8, 13),
7163
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(1, 1, 1)").WithArguments("(int, int, int)", "(int, int)").
WithLocation
(9, 13),
7166
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""string""").WithArguments("string", "int").
WithLocation
(10, 17),
7169
Diagnostic(ErrorCode.ERR_NameNotInContext, "garbage").WithArguments("garbage").
WithLocation
(11, 20),
7172
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(13, 14),
7175
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(13, 20),
7178
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(14, 17),
7181
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "(t)=>t").WithArguments("lambda expression", "int").
WithLocation
(15, 17),
7184
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("(int, int)").
WithLocation
(16, 13)
7216
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(12, 20),
7219
Diagnostic(ErrorCode.ERR_ConversionNotTupleCompatible, "(null, null, null)").WithArguments("3", "(string, string)").
WithLocation
(8, 13),
7222
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(1, 1, 1)").WithArguments("(int, int, int)", "(string, string)").
WithLocation
(9, 13),
7225
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "string").
WithLocation
(10, 14),
7228
Diagnostic(ErrorCode.ERR_NameNotInContext, "garbage").WithArguments("garbage").
WithLocation
(11, 20),
7231
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "string").
WithLocation
(14, 14),
7234
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "string").
WithLocation
(15, 14),
7237
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "(t)=>t").WithArguments("lambda expression", "string").
WithLocation
(15, 17),
7240
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("(string, string)").
WithLocation
(16, 13)
7272
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(12, 21),
7275
Diagnostic(ErrorCode.ERR_ConversionNotTupleCompatible, "(null, null, null)").WithArguments("3", "(int, int)").
WithLocation
(8, 14),
7278
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(1, 1, 1)").WithArguments("(int, int, int)", "(int, int)").
WithLocation
(9, 14),
7281
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""string""").WithArguments("string", "int").
WithLocation
(10, 18),
7284
Diagnostic(ErrorCode.ERR_NameNotInContext, "garbage").WithArguments("garbage").
WithLocation
(11, 21),
7287
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(13, 15),
7290
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(13, 21),
7293
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(14, 18),
7296
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "(t)=>t").WithArguments("lambda expression", "int").
WithLocation
(15, 18),
7299
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("(int, int)").
WithLocation
(16, 14)
7334
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(13, 37),
7337
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(13, 37),
7340
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(14, 38),
7343
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(14, 38),
7346
Diagnostic(ErrorCode.ERR_NoImplicitConv, "0").WithArguments("int", "(int, int)").
WithLocation
(8, 14),
7349
Diagnostic(ErrorCode.ERR_NoImplicitConv, "0.0").WithArguments("double", "int").
WithLocation
(9, 18),
7352
Diagnostic(ErrorCode.ERR_NoImplicitConv, "((0, 0),1,2,3,4,5,6,7,8,9,10,11)").WithArguments("((int, int), int, int, int, int, int, int, int, int, int, int, int)", "((int, int) x0, int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8, int x9, int x10)").
WithLocation
(10, 13),
7355
Diagnostic(ErrorCode.ERR_NoImplicitConv, "((0, 0),1,2,3,4,5,6,7,8)").WithArguments("((int, int), int, int, int, int, int, int, int, int)", "((int, int) x0, int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8, int x9, int x10)").
WithLocation
(11, 13),
7358
Diagnostic(ErrorCode.ERR_NoImplicitConv, "9.1").WithArguments("double", "int").
WithLocation
(12, 37),
7361
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "((0, 0),1,2,3,4,5,6,7,8,").WithArguments("System.ValueTuple`3").
WithLocation
(13, 13),
7365
").WithArguments("System.ValueTuple`3").
WithLocation
(14, 13),
7368
Diagnostic(ErrorCode.ERR_NameNotInContext, "oops").WithArguments("oops").
WithLocation
(15, 29),
7371
Diagnostic(ErrorCode.ERR_NameNotInContext, "oopsss").WithArguments("oopsss").
WithLocation
(15, 38),
7374
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "((0, 0),1,2,3,4,5,6,7,8,9)").WithArguments("System.ValueTuple`3").
WithLocation
(17, 13),
7377
Diagnostic(ErrorCode.ERR_NoImplicitConv, "((0, 0),1,2,3,4,5,6,7,8,9)").WithArguments("System.ValueTuple<(int, int), int, int, int, int, int, int, (int, int, int)>", "((int, int) x0, int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8, int x9, int x10)").
WithLocation
(17, 13),
7380
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(1,1,1)").WithArguments("System.ValueTuple`3").
WithLocation
(18, 37));
7408
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "string").
WithLocation
(8, 30),
7411
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "1").WithArguments("lambda expression").
WithLocation
(8, 30),
7414
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "string").
WithLocation
(10, 47),
7417
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "1").WithArguments("lambda expression").
WithLocation
(10, 47),
7420
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1.1").WithArguments("double", "string").
WithLocation
(12, 48),
7423
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "(null, 1.1)").WithArguments("lambda expression").
WithLocation
(12, 41),
7426
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1.1").WithArguments("double", "string").
WithLocation
(14, 65),
7429
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "(null, 1.1)").WithArguments("lambda expression").
WithLocation
(14, 58)
7458
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "string").
WithLocation
(8, 45),
7461
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "1").WithArguments("lambda expression").
WithLocation
(8, 45),
7464
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "string").
WithLocation
(10, 73),
7467
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "1").WithArguments("lambda expression").
WithLocation
(10, 73),
7470
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1.1").WithArguments("double", "string").
WithLocation
(12, 73),
7473
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "(null, 1.1)").WithArguments("lambda expression").
WithLocation
(12, 66),
7476
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1.1").WithArguments("double", "string").
WithLocation
(14, 101),
7479
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "(null, 1.1)").WithArguments("lambda expression").
WithLocation
(14, 94)
7628
Diagnostic(ErrorCode.ERR_TypelessTupleInAs, "(1, null) as C").
WithLocation
(6, 18),
7631
Diagnostic(ErrorCode.ERR_TypelessTupleInAs, "(2, null) as C?").
WithLocation
(8, 18)
7726
Diagnostic(ErrorCode.ERR_AmbigCall, "Test").WithArguments("C.Test(System.Func<(System.Func<short>, int)>)", "C.Test(System.Func<(System.Func<byte>, int)>)").
WithLocation
(26, 9)
8010
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "e: 1").WithArguments("e", "(long c, long d)").
WithLocation
(7, 48),
8013
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "f:2").WithArguments("f", "(long c, long d)").
WithLocation
(7, 54),
8016
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "((long c, long d))(e: 1, f:2)").WithArguments("(long c, long d)", "(int a, int b)").
WithLocation
(7, 29),
8019
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "e: 1").WithArguments("e", "(int c, int d)").
WithLocation
(9, 50),
8022
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "f:2").WithArguments("f", "(int c, int d)").
WithLocation
(9, 56),
8025
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "((int c, int d))(e: 1, f:2)").WithArguments("(int c, int d)", "(short a, short b)").
WithLocation
(9, 33),
8028
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"""qq""").WithArguments("string", "long").
WithLocation
(12, 56),
8031
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(7, 24),
8034
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x2").WithArguments("x2").
WithLocation
(9, 28)
8055
Diagnostic(ErrorCode.ERR_ConversionNotTupleCompatible, "((long c, long d))(1, null, 2)").WithArguments("3", "(long c, long d)").
WithLocation
(6, 29)
8085
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "((int i, bool c))x").WithArguments("C.implicit operator bool(C)").
WithLocation
(5, 5),
8088
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()").WithArguments("C.implicit operator bool(C)").
WithLocation
(6, 26),
8091
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "x").WithArguments("C.implicit operator bool(C)").
WithLocation
(10, 5),
8094
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()").WithArguments("C.implicit operator bool(C)").
WithLocation
(11, 9)
8124
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "((int i, bool c)?)x").WithArguments("C.implicit operator bool(C)").
WithLocation
(5, 5),
8127
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()").WithArguments("C.implicit operator bool(C)").
WithLocation
(6, 27),
8130
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "x").WithArguments("C.implicit operator bool(C)").
WithLocation
(10, 5),
8133
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()").WithArguments("C.implicit operator bool(C)").
WithLocation
(11, 9)
8163
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "((int i, bool c)?)x").WithArguments("C.implicit operator bool(C)", "Obsolete error").
WithLocation
(5, 5),
8166
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new C()").WithArguments("C.implicit operator bool(C)", "Obsolete error").
WithLocation
(6, 27),
8169
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "x").WithArguments("C.implicit operator bool(C)", "Obsolete error").
WithLocation
(10, 5),
8172
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new C()").WithArguments("C.implicit operator bool(C)", "Obsolete error").
WithLocation
(11, 9)
8200
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "((int i, bool c)?)x").WithArguments("C.implicit operator bool(C)").
WithLocation
(5, 5),
8203
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "x").WithArguments("C.implicit operator bool(C)").
WithLocation
(9, 5)
8231
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "((int i, bool c)?)x").WithArguments("C.implicit operator bool(C)", "Obsolete error").
WithLocation
(5, 5),
8234
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "x").WithArguments("C.implicit operator bool(C)", "Obsolete error").
WithLocation
(9, 5)
8255
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "((int i, bool c))x").WithArguments("C.implicit operator bool(C)").
WithLocation
(3, 5)
8276
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "((int i, bool c))x").WithArguments("C.implicit operator bool(C)", "Obsolete error").
WithLocation
(3, 5)
9072
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"(""1"", ""qq"")").WithArguments("(string, string)", "C.C1").
WithLocation
(6, 16)
9367
Diagnostic(ErrorCode.ERR_NoImplicitConv, "M1()").WithArguments("(int, string)", "C.C1").
WithLocation
(6, 16)
9818
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("C.Test1<T>(ref T, T)").
WithLocation
(10, 9)
9855
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test3").WithArguments("C.Test3<T>(ref T, ref T)").
WithLocation
(17, 18)
10037
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("C.Test1<T>(ref T, T, T, T)").
WithLocation
(10, 18)
10244
Diagnostic(ErrorCode.ERR_BadArgType, "Nullable((a: 1, b: (a: 1, b: 2)))").WithArguments("1", "(int a, (int a, int b) b)?", "(int, object)").
WithLocation
(6, 15),
10247
Diagnostic(ErrorCode.ERR_BadArgType, "Nullable((a: 1, b: (object)1))").WithArguments("2", "(int a, object b)?", "(int, (int a, int b))").
WithLocation
(7, 40)
10276
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("C.Test1<T, U>((T, U)?, (T, U?))").
WithLocation
(7, 9),
10279
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("C.Test1<T, U>((T, U)?, (T, U?))").
WithLocation
(8, 9),
10282
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("C.Test1<T, U>((T, U)?, (T, U?))").
WithLocation
(9, 9)
10372
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "p").WithArguments("(T1, T2)", "T2", "int").
WithLocation
(14, 33),
10375
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "2").WithArguments("(T1, T2)", "T2", "int").
WithLocation
(16, 22),
10378
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("(T1, T2)", "T2", "int").
WithLocation
(17, 15)
10403
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p").WithArguments("int*").
WithLocation
(5, 31),
10406
Diagnostic(ErrorCode.ERR_BadTypeArgument, "q").WithArguments("int*").
WithLocation
(5, 56),
10409
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(7, 15),
10412
Diagnostic(ErrorCode.ERR_BadTypeArgument, "(int*)null").WithArguments("int*").
WithLocation
(8, 22),
10415
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(9, 38),
10418
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(10, 25),
10421
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t1").WithArguments("t1").
WithLocation
(8, 13)
10453
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "M").WithArguments("(T1, T2)", "T2", "U").
WithLocation
(15, 12),
10456
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "field").WithArguments("(T1, T2)", "T2", "T").
WithLocation
(14, 18),
10459
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "U").WithArguments("(T1, T2)", "T2", "U").
WithLocation
(19, 28),
10462
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field").WithArguments("C<T>.field").
WithLocation
(14, 18)
10494
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("C<T>", "T", "int").
WithLocation
(17, 24),
10497
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "M").WithArguments("C<T>.M<U>(U)", "U", "int").
WithLocation
(18, 18),
10500
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field").WithArguments("C<T>.field").
WithLocation
(14, 18)
10532
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M").WithArguments("(T1, T2)", "T2", "U").
WithLocation
(15, 12),
10535
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "field").WithArguments("(T1, T2)", "T2", "T").
WithLocation
(14, 18),
10538
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("C<T>", "T", "int").
WithLocation
(17, 24),
10541
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "M").WithArguments("C<T>.M<U>(U)", "U", "(int, int)").
WithLocation
(18, 18),
10544
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "U").WithArguments("(T1, T2)", "T2", "U").
WithLocation
(19, 28),
10547
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field").WithArguments("C<T>.field").
WithLocation
(14, 18)
10605
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "p").WithArguments("System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>", "TRest", "System.ValueTuple<int>").
WithLocation
(42, 53),
10608
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "p").WithArguments("System.ValueTuple<T1>", "T1", "int").
WithLocation
(42, 53),
10611
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "(1, 2, 3, 4, 5, 6, 7, 8)").WithArguments("System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>", "TRest", "System.ValueTuple<int>").
WithLocation
(44, 18),
10614
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "8").WithArguments("System.ValueTuple<T1>", "T1", "int").
WithLocation
(44, 40),
10617
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "(int, int, int, int, int, int, int, int)").WithArguments("System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>", "TRest", "System.ValueTuple<int>").
WithLocation
(45, 9),
10620
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("System.ValueTuple<T1>", "T1", "int").
WithLocation
(45, 45)
10652
Diagnostic(ErrorCode.ERR_BadTypeArgument, "q").WithArguments("int*").
WithLocation
(15, 102),
10655
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p").WithArguments("int*").
WithLocation
(5, 62),
10658
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(7, 45),
10661
Diagnostic(ErrorCode.ERR_BadTypeArgument, "(int*)null").WithArguments("int*").
WithLocation
(8, 40),
10664
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(9, 84),
10667
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(10, 74),
10670
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(11, 71),
10673
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(12, 61),
10676
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t2").WithArguments("t2").
WithLocation
(8, 13),
10679
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(17, 85),
10682
Diagnostic(ErrorCode.ERR_BadTypeArgument, "(int*)null").WithArguments("int*").
WithLocation
(18, 70),
10685
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "v2").WithArguments("v2").
WithLocation
(18, 13)
10708
Diagnostic(ErrorCode.ERR_BadTypeArgument, "new System.ArgIterator()").WithArguments("System.ArgIterator").
WithLocation
(6, 24),
10711
Diagnostic(ErrorCode.ERR_BadTypeArgument, "new System.ArgIterator()").WithArguments("System.ArgIterator").
WithLocation
(7, 38),
10714
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(1, 2, new System.ArgIterator())").WithArguments("(int, int, System.ArgIterator)", "(int x, object y)").
WithLocation
(7, 31),
10717
Diagnostic(ErrorCode.ERR_BadTypeArgument, "y").WithArguments("System.ArgIterator").
WithLocation
(8, 36),
10720
Diagnostic(ErrorCode.ERR_BadTypeArgument, "new System.ArgIterator()").WithArguments("System.ArgIterator").
WithLocation
(8, 50),
10723
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(1, 2, new System.ArgIterator())").WithArguments("(int, int, System.ArgIterator)", "(int x, System.ArgIterator y)").
WithLocation
(8, 43),
10726
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 13)
10747
Diagnostic(ErrorCode.ERR_BadTypeArgument, "y").WithArguments("System.ArgIterator").
WithLocation
(6, 36),
10750
Diagnostic(ErrorCode.WRN_UnreferencedVar, "y").WithArguments("y").
WithLocation
(6, 39)
10767
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(3, 21)
10924
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "M").WithArguments("C.M(((int, int), (int, int)))", "I<(int b, int a), (int a, int b)>.M(((int b, int a) paramA, (int a, int b) paramB))").
WithLocation
(9, 49),
10927
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M").WithArguments("D.M(((int a, int b), (int b, int a)))", "C.M(((int, int), (int, int)))").
WithLocation
(17, 54),
10930
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "M").WithArguments("D.M(((int a, int b), (int b, int a)))", "I<(int a, int b), (int c, int d)>.M(((int a, int b) paramA, (int c, int d) paramB))").
WithLocation
(17, 54)
10951
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(int, int)").WithArguments("tuples", "7.0").
WithLocation
(6, 9),
10954
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 20),
10957
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(1, 1)").WithArguments("tuples", "7.0").
WithLocation
(6, 24),
10960
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "}").WithArguments("}").
WithLocation
(8, 36));
12068
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "a4").WithArguments("(int, int)", "a4").
WithLocation
(8, 42),
12071
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "b4").WithArguments("(int, int)", "b4").
WithLocation
(9, 42),
12074
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "c4").WithArguments("(int, int)", "c4").
WithLocation
(10, 42),
12077
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "d4").WithArguments("(int, int)", "d4").
WithLocation
(11, 42),
12080
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "e4").WithArguments("(int, int)", "e4").
WithLocation
(12, 42),
12083
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "f4").WithArguments("(int, int)", "f4").
WithLocation
(13, 42),
12086
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "g4").WithArguments("(int, int)", "g4").
WithLocation
(14, 42),
12089
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "h4").WithArguments("(int, int)", "h4").
WithLocation
(15, 42),
12092
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "i4").WithArguments("(int, int)", "i4").
WithLocation
(16, 42)
12353
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item10").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item10").
WithLocation
(8, 42),
12356
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item11").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item11").
WithLocation
(9, 42),
12359
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item12").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item12").
WithLocation
(10, 42),
12362
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item13").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item13").
WithLocation
(11, 42),
12365
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item14").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item14").
WithLocation
(12, 42),
12368
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item15").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item15").
WithLocation
(13, 42),
12371
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item16").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item16").
WithLocation
(14, 42),
12374
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item3").WithArguments("(int, int)", "Item3").
WithLocation
(16, 47),
12377
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item4").WithArguments("(int, int)", "Item4").
WithLocation
(17, 47),
12380
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item5").WithArguments("(int, int)", "Item5").
WithLocation
(18, 47),
12383
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item6").WithArguments("(int, int)", "Item6").
WithLocation
(19, 47),
12386
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item7").WithArguments("(int, int)", "Item7").
WithLocation
(20, 47),
12389
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item8").WithArguments("(int, int)", "Item8").
WithLocation
(21, 47),
12392
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item9").WithArguments("(int, int)", "Item9").
WithLocation
(22, 47),
12395
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item10").WithArguments("(int, int)", "Item10").
WithLocation
(23, 47),
12398
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item11").WithArguments("(int, int)", "Item11").
WithLocation
(24, 47),
12401
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item12").WithArguments("(int, int)", "Item12").
WithLocation
(25, 47),
12404
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item13").WithArguments("(int, int)", "Item13").
WithLocation
(26, 47),
12407
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item14").WithArguments("(int, int)", "Item14").
WithLocation
(27, 47),
12410
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item15").WithArguments("(int, int)", "Item15").
WithLocation
(28, 47),
12413
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item16").WithArguments("(int, int)", "Item16").
WithLocation
(29, 47)
12439
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item9").WithArguments("Item9", "9").
WithLocation
(9, 17),
12442
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item1").WithArguments("Item1", "1").
WithLocation
(9, 28),
12445
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item2").WithArguments("Item2", "2").
WithLocation
(9, 39),
12448
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item3").WithArguments("Item3", "3").
WithLocation
(9, 50),
12451
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item4").WithArguments("Item4", "4").
WithLocation
(9, 61),
12454
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item5").WithArguments("Item5", "5").
WithLocation
(9, 72),
12457
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item6").WithArguments("Item6", "6").
WithLocation
(9, 83),
12460
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item7").WithArguments("Item7", "7").
WithLocation
(9, 94),
12463
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item8").WithArguments("Item8", "8").
WithLocation
(9, 105)
12542
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item1").WithArguments("Item1", "1").
WithLocation
(9, 73)
12929
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(10, 18),
12932
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(10, 23),
12935
Diagnostic(ErrorCode.ERR_BadTypeReference, "C9").WithArguments("C9", "(int, int).C9").
WithLocation
(10, 28)
13011
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 18),
13014
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 23),
13017
Diagnostic(ErrorCode.ERR_BadTypeReference, "C9").WithArguments("C9", "(int, int).C9").
WithLocation
(6, 28)
13146
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(int, int)").WithArguments("(T1, T2)").
WithLocation
(8, 19),
13149
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(int, int)").WithArguments("(int, int)").
WithLocation
(8, 19),
13152
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(int, int, int, int, int, int, int, int, int)").WithArguments("(T1, T2)").
WithLocation
(13, 12),
13155
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(int a, int b)").WithArguments("(T1, T2)").
WithLocation
(23, 12),
13158
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(int a, int b)").WithArguments("(int a, int b)").
WithLocation
(23, 12),
13161
Diagnostic(ErrorCode.ERR_TupleReservedElementName, "Item2").WithArguments("Item2", "2").
WithLocation
(35, 73),
13164
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(int a, int b, int c, int d, int e, int f, int g, int h, int Item2)").WithArguments("(T1, T2)").
WithLocation
(35, 12),
13167
Diagnostic(ErrorCode.ERR_StructOffsetOnBadStruct, "System.Runtime.InteropServices.FieldOffsetAttribute").
WithLocation
(55, 10),
13170
Diagnostic(ErrorCode.ERR_StructOffsetOnBadStruct, "System.Runtime.InteropServices.FieldOffsetAttribute").
WithLocation
(78, 10),
13173
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(101, 102)").WithArguments("(T1, T2)").
WithLocation
(10, 16),
13176
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(1, 1, 1, 1, 1, 1, 1, 1, 1)").WithArguments("(T1, T2)").
WithLocation
(15, 16),
13179
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(1, 1)").WithArguments("(T1, T2)").
WithLocation
(25, 16),
13182
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M10().Item1").WithArguments("(int, int).Item1").
WithLocation
(30, 34),
13185
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M10().Item20").WithArguments("(int, int).Item20").
WithLocation
(31, 34),
13188
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M102().a").WithArguments("(int a, int b).a").
WithLocation
(32, 34),
13191
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(1, 1, 1, 1, 1, 1, 1, 1, 1)").WithArguments("(T1, T2)").
WithLocation
(37, 16),
13194
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M10().M2()").WithArguments("(int, int).M2()").
WithLocation
(98, 9),
13197
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M10().P2").WithArguments("(int, int).P2").
WithLocation
(99, 17),
13200
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M10().E2").WithArguments("(int, int).E2").
WithLocation
(100, 9),
13203
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E2").WithArguments("(T1, T2).E2").
WithLocation
(90, 36)
13348
Diagnostic(ErrorCode.ERR_ModuleEmitFailure).WithArguments("test", "Unable to determine specific cause of the failure.").
WithLocation
(1, 1)
13380
Diagnostic(ErrorCode.ERR_ModuleEmitFailure).WithArguments("test", "Unable to determine specific cause of the failure.").
WithLocation
(1, 1)
13429
Diagnostic(ErrorCode.ERR_ModuleEmitFailure).WithArguments("test", "Unable to determine specific cause of the failure.").
WithLocation
(1, 1)
13450
Diagnostic(ErrorCode.ERR_ModuleEmitFailure).WithArguments("test", "Unable to determine specific cause of the failure.").
WithLocation
(1, 1)
14036
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 42),
14039
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 47),
14042
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int a").
WithLocation
(7, 42),
14045
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int b").
WithLocation
(7, 49),
14048
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "(int a, int b)").
WithLocation
(7, 41)
14408
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "ValueTuple<int, int, int, int, int, int, int, T>").WithArguments("System.ValueTuple<int, int, int, int, int, int, int, T>").
WithLocation
(35, 23),
14411
Diagnostic(ErrorCode.ERR_CantDeriveFromSealedType, "ValueTuple<int, int, int, int, int, int, int, T>").WithArguments("Test1<T>", "System.ValueTuple<int, int, int, int, int, int, int, T>").
WithLocation
(31, 18),
14414
Diagnostic(ErrorCode.WRN_ManagedAddr, "M5").WithArguments("System.ValueTuple<int, int, int, int, int, int, int, T>").
WithLocation
(25, 69),
14417
Diagnostic(ErrorCode.ERR_EventNotDelegate, "E1").WithArguments("Test<T>.E1").
WithLocation
(23, 74),
14420
Diagnostic(ErrorCode.ERR_BadEventUsage, "E1").WithArguments("Test<(int, int)>.E1", "Test<(int, int)>").
WithLocation
(7, 44),
14423
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item8").WithArguments("Test1<(int, int)>", "Item8").
WithLocation
(14, 37),
14426
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item8").WithArguments("ITest2<(int, int)>", "Item8").
WithLocation
(17, 37)
14516
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item8").WithArguments("System.ValueTuple<int, int, int, int, int, int, int, (int, int, int, int, int, int, int, int, int)>", "Item8").
WithLocation
(7, 37),
14519
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item9").WithArguments("System.ValueTuple<int, int, int, int, int, int, int, (int, int, int, int, int, int, int, int, int)>", "Item9").
WithLocation
(8, 37)
16158
Diagnostic(ErrorCode.ERR_BadEventUsage, "E1").WithArguments("(int, long).E1", "(int, long)").
WithLocation
(7, 12)
16179
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int, int)").WithArguments("object", "Deconstruct").
WithLocation
(6, 18),
16182
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int, int)").WithArguments("object", "2").
WithLocation
(6, 18),
16185
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(6, 19),
16188
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(6, 24));
16208
Diagnostic(ErrorCode.ERR_IllegalStatement, "(x, x)").
WithLocation
(6, 9)
16229
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int a, int b)").WithArguments("object", "Deconstruct").
WithLocation
(6, 18),
16232
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int a, int b)").WithArguments("object", "2").
WithLocation
(6, 18)
16253
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(1, 2)").WithArguments("object", "Deconstruct").
WithLocation
(6, 18),
16256
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(1, 2)").WithArguments("object", "2").
WithLocation
(6, 18)
16279
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int, int)").WithArguments("object", "Deconstruct").
WithLocation
(7, 18),
16282
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int, int)").WithArguments("object", "2").
WithLocation
(7, 18),
16285
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(7, 19),
16288
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(7, 24));
16310
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(1, 1)").WithArguments("object", "Deconstruct").
WithLocation
(7, 18),
16313
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(1, 1)").WithArguments("object", "2").
WithLocation
(7, 18)
16336
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(1, 1)").WithArguments("object", "Deconstruct").
WithLocation
(7, 18),
16339
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(1, 1)").WithArguments("object", "2").
WithLocation
(7, 18)
16359
Diagnostic(ErrorCode.ERR_IllegalStatement, "(1, 1)").
WithLocation
(6, 9)
16434
Diagnostic(ErrorCode.Unknown, "null").WithArguments("<null>").
WithLocation
(6, 32),
16437
Diagnostic(ErrorCode.Unknown, "null").WithArguments("<null>").
WithLocation
(6, 38),
16440
Diagnostic(ErrorCode.Unknown, @"(null, ""1"")").WithArguments("System.ValueType").
WithLocation
(8, 31),
16443
Diagnostic(ErrorCode.ERR_BadArgType, @"(null, ""2"")").WithArguments("1", "<tuple>", "(int, string)").
WithLocation
(11, 20),
16446
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "TestAttribute").WithArguments("val", "(int, string)").
WithLocation
(12, 6),
16449
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgumentType, "Val").WithArguments("Val").
WithLocation
(13, 20),
16452
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgumentType, "Val").WithArguments("Val").
WithLocation
(14, 20),
16455
Diagnostic(ErrorCode.Unknown, "null").WithArguments("<null>").
WithLocation
(19, 16),
16458
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, @"await (7, ""7"")").WithArguments("(int, string)", "GetAwaiter").
WithLocation
(20, 9),
16461
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "(8, null)").WithArguments("val1").
WithLocation
(23, 46),
16464
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @"(9, ""9"")").WithArguments("val2").
WithLocation
(24, 46),
16467
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @"(""10"", ""10"")").WithArguments("val3").
WithLocation
(25, 46),
16470
Diagnostic(ErrorCode.ERR_BadArgType, @"(""11"", ""11"")").WithArguments("1", "<tuple>", "(int, string)").
WithLocation
(28, 20),
16473
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgumentType, "Val").WithArguments("Val").
WithLocation
(29, 20),
16476
Diagnostic(ErrorCode.Unknown, "(13, null)").WithArguments("int").
WithLocation
(34, 14),
16479
Diagnostic(ErrorCode.Unknown, @"(14, ""14"")").WithArguments("int").
WithLocation
(35, 14),
16482
Diagnostic(ErrorCode.Unknown, @"(""15"", ""15"")").WithArguments("int").
WithLocation
(36, 14),
16485
Diagnostic(ErrorCode.Unknown, "null").WithArguments("<null>").
WithLocation
(41, 28),
16488
Diagnostic(ErrorCode.Unknown, "__refvalue((17, null), (int, string))").WithArguments("System.TypedReference").
WithLocation
(44, 17),
16491
Diagnostic(ErrorCode.Unknown, @"__refvalue((18, ""18""), (int, string))").WithArguments("System.TypedReference").
WithLocation
(45, 17),
16494
Diagnostic(ErrorCode.Unknown, @"__refvalue((""19"", ""19""), (int, string))").WithArguments("System.TypedReference").
WithLocation
(46, 17)
16540
Diagnostic(ErrorCode.ERR_NameNotInContext, "tuple").WithArguments("tuple").
WithLocation
(2, 31)
16672
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "d: 1").WithArguments("d", "(int c, int d)").
WithLocation
(7, 41),
16675
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 2").WithArguments("c", "(int c, int d)").
WithLocation
(7, 47)
16737
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int, int, int, int, int, int, int, int)").
WithLocation
(6, 21),
16740
Diagnostic(ErrorCode.ERR_NewWithTupleTypeSyntax, "(int, int, int, int, int, int, int, int, int)").
WithLocation
(7, 21)
16805
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, "(1, 1)").WithArguments("System.ValueTuple`2", "comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "comp2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 17)
16816
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, "(1, 1)").WithArguments("System.ValueTuple`2", "comp2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 17)
16867
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, "(1, null)").WithArguments("System.ValueTuple`2", "comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "comp2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 16)
16939
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, "(1, null, 1, null, 1, null, 1, null, 1, null)").WithArguments("System.ValueTuple`3", "comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "comp2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 16),
16942
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, "(1, null, 1, null, 1, null, 1, null, 1, null)").WithArguments("System.ValueTuple`8", "comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "comp2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 16)
17036
Diagnostic(ErrorCode.ERR_AmbigCall, "M1").WithArguments("NS2.C2.M1(string, (int, int))", "NS1.C1.M1(string, (int, int))").
WithLocation
(10, 13)
17969
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C1)x").WithArguments("(int, (int, (int, (int, (int, (int, int))))))", "C.C1").
WithLocation
(8, 16),
17972
Diagnostic(ErrorCode.ERR_NoExplicitConv, "((int, (int, int)))y").WithArguments("C.C1", "(int, (int, int))").
WithLocation
(13, 32),
17975
Diagnostic(ErrorCode.ERR_NoExplicitConv, "((int, (int, (int, (int, (int, (int, (int, (int, (int, (int, (int, int))))))))))))y").WithArguments("C.C1", "(int, (int, (int, (int, (int, (int, (int, (int, (int, (int, (int, int)))))))))))").
WithLocation
(16, 96)
18131
Diagnostic(ErrorCode.ERR_NoImplicitConv, "y").WithArguments("C.C1", "(int, (object, (byte, (int?, (long, System.IComparable)?))?))?").
WithLocation
(10, 70)
18183
(C1)y").WithArguments("C.C1", "(int, C.C1)?").
WithLocation
(14, 70)
18221
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "x").WithArguments("Item2", "(T1, T2)", "ImplicitConversions06Err, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 26)
18261
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "((byte, byte))x").WithArguments("Item2", "(T1, T2)", "ImplicitConversions06Err, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 26)
18672
Diagnostic(ErrorCode.ERR_AmbigUDConv, "(B)x").WithArguments("B.implicit operator B(long)", "A.implicit operator A(int)", "int", "B").
WithLocation
(28, 13),
18675
Diagnostic(ErrorCode.ERR_NoExplicitConv, "((B, B))xt").WithArguments("(int, int)", "(B, B)").
WithLocation
(31, 14),
18678
Diagnostic(ErrorCode.ERR_NoExplicitConv, "((B, B)?)xt").WithArguments("(int, int)", "(B, B)?").
WithLocation
(34, 14)
18833
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test").WithArguments("Program.Test<T>(System.Action<T>, System.Action<T>)").
WithLocation
(22, 9),
18836
Diagnostic(ErrorCode.ERR_BadArgType, "z").WithArguments("1", "(System.Action<System.Collections.IEnumerable> x, System.Action<System.Collections.IEnumerable> y)", "System.Action<(System.Collections.Generic.IEnumerable<int>, System.Collections.Generic.IEnumerable<int>)>").
WithLocation
(25, 54),
18839
Diagnostic(ErrorCode.ERR_BadArgType, "z1").WithArguments("2", "(System.Action<System.Collections.Generic.IEnumerable<int>> x, System.Action<System.Collections.Generic.IEnumerable<int>> y)", "System.Action<(System.Collections.Generic.IEnumerable<int>, System.Collections.Generic.IEnumerable<int>)>").
WithLocation
(25, 57)
19227
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "b: 2").WithArguments("b", "(int a, int)").
WithLocation
(7, 32),
19230
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 2").WithArguments("c", "(int a, int)").
WithLocation
(7, 47)
19282
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 3").WithArguments("c", "(int a, int b)").
WithLocation
(16, 32),
19285
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 3").WithArguments("c", "(int a, int b)").
WithLocation
(17, 32),
19288
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "a: 1").WithArguments("a", "(int, int)").
WithLocation
(18, 30),
19291
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 3").WithArguments("c", "(int, int)").
WithLocation
(18, 36)
19386
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "a: 1").WithArguments("a", "(int, int)").
WithLocation
(7, 26),
19389
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "b: 2").WithArguments("b", "(int, int)").
WithLocation
(7, 32),
19392
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "a: 1").WithArguments("a", "(int, int)").
WithLocation
(8, 35),
19395
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "b: 2").WithArguments("b", "(int, int)").
WithLocation
(8, 41)
19426
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 2").WithArguments("c", "(int a, long b)").
WithLocation
(7, 59)
19474
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "b: 2").WithArguments("b", "(int a, int)").
WithLocation
(11, 43),
19477
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 3").WithArguments("c", "(int a, int)").
WithLocation
(17, 47),
19480
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "d: 4").WithArguments("d", "(int a, int)").
WithLocation
(21, 47)
19532
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "b: 2").WithArguments("b", "(dynamic a, int)").
WithLocation
(12, 43),
19535
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 3").WithArguments("c", "(dynamic a, int)").
WithLocation
(18, 47),
19538
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "d: 4").WithArguments("d", "(dynamic a, int)").
WithLocation
(22, 47)
19587
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("C.M2<T>(System.Func<T>)").
WithLocation
(6, 18)
19608
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "b: 2").WithArguments("b", "(int a, int)").
WithLocation
(6, 31),
19611
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "b: null").WithArguments("b", "(int a, string)").
WithLocation
(7, 34),
19614
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(6, 22),
19617
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x2").WithArguments("x2").
WithLocation
(7, 25)
19646
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "b: 2").WithArguments("b", "(int a, int)").
WithLocation
(6, 27),
19649
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 3").WithArguments("c", "(int a, int)").
WithLocation
(6, 41),
19652
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "b").WithArguments("(int a, int)", "b").
WithLocation
(8, 32),
19655
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "c").WithArguments("(int a, int)", "c").
WithLocation
(9, 32),
19658
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 1").WithArguments("c", "(int, int)").
WithLocation
(10, 21),
19661
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "d: 3").WithArguments("d", "(int, int)").
WithLocation
(10, 27)
19699
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: (byte)3").WithArguments("c", "(int a, int b)").
WithLocation
(6, 39),
19702
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "c: 1").WithArguments("c", "(long, int b)").
WithLocation
(7, 30),
19705
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "d: (byte)3").WithArguments("d", "(long, int b)").
WithLocation
(7, 36)
19813
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M2").WithArguments("Derived.M2()", "Base.M2()").
WithLocation
(14, 42),
19816
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M3").WithArguments("Derived.M3()", "Base.M3()").
WithLocation
(15, 44),
19819
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M4").WithArguments("Derived.M4()", "Base.M4()").
WithLocation
(16, 59),
19822
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M5").WithArguments("Derived.M5()", "Base.M5()").
WithLocation
(17, 53),
19825
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M6").WithArguments("Derived.M6()", "Base.M6()").
WithLocation
(18, 45)
19861
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M2").WithArguments("Derived.M2<T>()", "Base.M2<T>()").
WithLocation
(14, 38),
19864
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M3").WithArguments("Derived.M3<T>()", "Base.M3<T>()").
WithLocation
(15, 40),
19867
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M4").WithArguments("Derived.M4<T>()", "Base.M4<T>()").
WithLocation
(16, 55),
19870
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M5").WithArguments("Derived.M5<T>()", "Base.M5<T>()").
WithLocation
(17, 47),
19873
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M6").WithArguments("Derived.M6<T>()", "Base.M6<T>()").
WithLocation
(18, 45)
19900
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M2").WithArguments("Derived.M2((int notA, int notB)[])", "Base.M2((int a, int b)[])").
WithLocation
(12, 26),
19903
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M3").WithArguments("Derived.M3((int notA, int notB)?)", "Base.M3((int a, int b)?)").
WithLocation
(13, 26),
19906
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M4").WithArguments("Derived.M4(((int notA, int notB) c, int d))", "Base.M4(((int a, int b) c, int d))").
WithLocation
(14, 26),
19909
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M1").WithArguments("Derived.M1((int notA, int notB))", "Base.M1((int a, int b))").
WithLocation
(11, 26)
19936
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M2").WithArguments("Derived.M2<T>((T notA, T notB)[])", "Base.M2<T>((T a, T b)[])").
WithLocation
(12, 26),
19939
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M3").WithArguments("Derived.M3<T>((T notA, T notB)?)", "Base.M3<T>((T a, T b)?)").
WithLocation
(13, 26),
19942
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M4").WithArguments("Derived.M4<T>(((T notA, T notB) c, T d))", "Base.M4<T>(((T a, T b) c, T d))").
WithLocation
(14, 26),
19945
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M1").WithArguments("Derived.M1<T>((T notA, T notB))", "Base.M1<T>((T a, T b))").
WithLocation
(11, 26)
19972
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "P2").WithArguments("Derived.P2", "Base.P2").
WithLocation
(12, 44),
19975
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "get").WithArguments("Derived.P2.get", "Base.P2.get").
WithLocation
(12, 49),
19978
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "set").WithArguments("Derived.P2.set", "Base.P2.set").
WithLocation
(12, 54),
19981
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "P3").WithArguments("Derived.P3", "Base.P3").
WithLocation
(13, 43),
19984
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "get").WithArguments("Derived.P3.get", "Base.P3.get").
WithLocation
(13, 48),
19987
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "set").WithArguments("Derived.P3.set", "Base.P3.set").
WithLocation
(13, 71),
19990
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "P4").WithArguments("Derived.P4", "Base.P4").
WithLocation
(14, 53),
19993
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "get").WithArguments("Derived.P4.get", "Base.P4.get").
WithLocation
(14, 58),
19996
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "set").WithArguments("Derived.P4.set", "Base.P4.set").
WithLocation
(14, 63),
19999
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "P1").WithArguments("Derived.P1", "Base.P1").
WithLocation
(11, 42),
20002
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "get").WithArguments("Derived.P1.get", "Base.P1.get").
WithLocation
(11, 47),
20005
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "set").WithArguments("Derived.P1.set", "Base.P1.set").
WithLocation
(11, 70)
20037
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "E2").WithArguments("Derived.E2", "Base.E2").
WithLocation
(15, 54),
20040
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "E2").WithArguments("Derived.E2.add", "Base.E2.add").
WithLocation
(15, 54),
20043
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "E2").WithArguments("Derived.E2.remove", "Base.E2.remove").
WithLocation
(15, 54),
20046
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "E3").WithArguments("Derived.E3", "Base.E3").
WithLocation
(16, 56),
20049
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "E3").WithArguments("Derived.E3.add", "Base.E3.add").
WithLocation
(16, 56),
20052
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "E3").WithArguments("Derived.E3.remove", "Base.E3.remove").
WithLocation
(16, 56),
20055
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "E4").WithArguments("Derived.E4", "Base.E4").
WithLocation
(17, 60),
20058
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "E4").WithArguments("Derived.E4.add", "Base.E4.add").
WithLocation
(17, 60),
20061
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "E4").WithArguments("Derived.E4.remove", "Base.E4.remove").
WithLocation
(17, 60)
20090
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M1").WithArguments("Derived.M1()", "Base.M1()").
WithLocation
(13, 27),
20093
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M2").WithArguments("Derived.M2()", "Base.M2()").
WithLocation
(14, 35),
20096
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M3").WithArguments("Derived.M3()", "Base.M3()").
WithLocation
(15, 50),
20099
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M4").WithArguments("Derived.M4()", "Base.M4()").
WithLocation
(16, 44),
20102
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M0").WithArguments("Derived.M0()", "Base.M0()").
WithLocation
(12, 19)
20124
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M1").WithArguments("Derived.M1()", "Base.M1()").
WithLocation
(8, 23)
20151
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M1").WithArguments("M1", "C").
WithLocation
(5, 17),
20154
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M2").WithArguments("M2", "C").
WithLocation
(8, 17),
20157
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M3").WithArguments("M3", "C").
WithLocation
(11, 17),
20160
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M4").WithArguments("M4", "C").
WithLocation
(14, 17)
20187
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M2").WithArguments("Derived.M2((int notA, int notB)[])", "Base.M2((int a, int b)[])").
WithLocation
(12, 17),
20190
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M3").WithArguments("Derived.M3((int notA, int notB)?)", "Base.M3((int a, int b)?)").
WithLocation
(13, 17),
20193
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M4").WithArguments("Derived.M4(((int notA, int notB) c, int d))", "Base.M4(((int a, int b) c, int d))").
WithLocation
(14, 17),
20196
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M1").WithArguments("Derived.M1((int notA, int notB))", "Base.M1((int a, int b))").
WithLocation
(11, 17)
20224
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "M2").WithArguments("C.I0.M2((int notA, int notB))", "I0.M2((int a, int b))").
WithLocation
(12, 13),
20227
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "MR1").WithArguments("C.I0.MR1()", "I0.MR1()").
WithLocation
(13, 32),
20230
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "MR2").WithArguments("C.I0.MR2()", "I0.MR2()").
WithLocation
(14, 29),
20233
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "M1").WithArguments("C.I0.M1((int notMissing, int b))", "I0.M1((int, int b))").
WithLocation
(11, 13)
20284
Diagnostic(ErrorCode.WRN_NewRequired, "MR2").WithArguments("I1.MR2()", "I0.MR2()").
WithLocation
(10, 26),
20287
Diagnostic(ErrorCode.WRN_NewRequired, "M2").WithArguments("I1.M2((int notA, int notB))", "I0.M2((int a, int b))").
WithLocation
(9, 10)
20318
Diagnostic(ErrorCode.WRN_NewRequired, "M6").WithArguments("I1.M6()", "I0.M6()").
WithLocation
(18, 20),
20321
Diagnostic(ErrorCode.WRN_NewRequired, "M2").WithArguments("I1.M2((int a, int b))", "I0.M2((int a, int b))").
WithLocation
(14, 10),
20324
Diagnostic(ErrorCode.WRN_NewRequired, "M5").WithArguments("I1.M5()", "I0.M5()").
WithLocation
(17, 26),
20327
Diagnostic(ErrorCode.WRN_NewRequired, "M1").WithArguments("I1.M1((int notA, int notB))", "I0.M1((int a, int b))").
WithLocation
(13, 10)
20346
Diagnostic(ErrorCode.ERR_DuplicateInterfaceInBaseList, "I0<int>").WithArguments("I0<int>").
WithLocation
(5, 28),
20349
Diagnostic(ErrorCode.ERR_DuplicateInterfaceInBaseList, "I0<(int a, int b)>").WithArguments("I0<(int a, int b)>").
WithLocation
(4, 39),
20352
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C1").WithArguments("I0<(int notA, int notB)>", "I0<(int a, int b)>", "C1").
WithLocation
(3, 14),
20355
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C4").WithArguments("C4<T, U>", "I0<(int a, int b)>", "I0<(T a, U b)>").
WithLocation
(6, 14),
20358
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C5").WithArguments("C5<T, U>", "I0<(int a, int b)>", "I0<(T notA, U notB)>").
WithLocation
(7, 14)
20420
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C1").WithArguments("I1<(int c, int d)>", "I1<(int a, int b)>", "C1").
WithLocation
(10, 14),
20423
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C1").WithArguments("I1<(int a, int b)>.M()").
WithLocation
(10, 14),
20426
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C1").WithArguments("I1<(int c, int d)>.M()").
WithLocation
(10, 14),
20429
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C2").WithArguments("I1<(int a, int b)>", "I1<(int c, int d)>", "C2").
WithLocation
(16, 14),
20432
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C2").WithArguments("I1<(int c, int d)>.M()").
WithLocation
(16, 14),
20435
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C2").WithArguments("I1<(int a, int b)>.M()").
WithLocation
(16, 14),
20438
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C3").WithArguments("I1<(int c, int d)>", "I1<(int a, int b)>", "C3").
WithLocation
(22, 14),
20441
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C3").WithArguments("I1<(int a, int b)>.M()").
WithLocation
(22, 14),
20444
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C3").WithArguments("I1<(int c, int d)>.M()").
WithLocation
(22, 14),
20447
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C4").WithArguments("I1<(int c, int d)>", "I1<(int a, int b)>", "C4").
WithLocation
(28, 14),
20450
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C4").WithArguments("I1<(int a, int b)>.M()").
WithLocation
(28, 14),
20453
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C4").WithArguments("I1<(int c, int d)>.M()").
WithLocation
(28, 14)
20634
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C1").WithArguments("I1<(T c, T d)>", "I1<(T a, T b)>", "C1<T>").
WithLocation
(10, 14),
20637
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C1").WithArguments("I1<(T a, T b)>.M()").
WithLocation
(10, 14),
20640
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C1").WithArguments("I1<(T c, T d)>.M()").
WithLocation
(10, 14),
20643
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C2").WithArguments("I1<(T a, T b)>", "I1<(T c, T d)>", "C2<T>").
WithLocation
(16, 14),
20646
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C2").WithArguments("I1<(T c, T d)>.M()").
WithLocation
(16, 14),
20649
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C2").WithArguments("I1<(T a, T b)>.M()").
WithLocation
(16, 14),
20652
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C3").WithArguments("I1<(T c, T d)>", "I1<(T a, T b)>", "C3<T>").
WithLocation
(22, 14),
20655
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C3").WithArguments("I1<(T a, T b)>.M()").
WithLocation
(22, 14),
20658
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C3").WithArguments("I1<(T c, T d)>.M()").
WithLocation
(22, 14),
20661
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C4").WithArguments("I1<(T c, T d)>", "I1<(T a, T b)>", "C4<T>").
WithLocation
(28, 14),
20664
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C4").WithArguments("I1<(T a, T b)>.M()").
WithLocation
(28, 14),
20667
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C4").WithArguments("I1<(T c, T d)>.M()").
WithLocation
(28, 14)
20749
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C3").WithArguments("C3<T, U>", "I1<(T a, T b)>", "I1<(U c, U d)>").
WithLocation
(7, 14)
20798
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1<(int c, int d)>").WithArguments("C3.I1<(int c, int d)>.M()", "I1<(int c, int d)>").
WithLocation
(9, 10)
20843
Diagnostic(ErrorCode.ERR_BadAccess, "C3").WithArguments("C2.C3").
WithLocation
(11, 9)
20868
Diagnostic(ErrorCode.ERR_BadVisReturnType, "M").WithArguments("C.M()", "(C.C2, int)").
WithLocation
(11, 22)
20896
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "set").WithArguments("C.set((int notA, int notB))", "I0<(int a, int b)>.set((int a, int b))").
WithLocation
(10, 17),
20899
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "get").WithArguments("C.get()", "I0<(int a, int b)>.get()").
WithLocation
(9, 33)
20937
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "set").WithArguments("D1.set((int notA, int notB))", "I0<(int a, int b)>.set((int a, int b))").
WithLocation
(20, 17),
20940
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "get").WithArguments("D1.get()", "I0<(int a, int b)>.get()").
WithLocation
(19, 33),
20943
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I0<(int a, int b)>").WithArguments("D2.I0<(int a, int b)>.set((int a, int b))", "I0<(int a, int b)>").
WithLocation
(25, 10),
20946
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I0<(int a, int b)>").WithArguments("D2.I0<(int a, int b)>.get()", "I0<(int a, int b)>").
WithLocation
(24, 20)
20985
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I0<(int, int)>").WithArguments("C2.I0<(int, int)>.set((int, int))", "I0<(int, int)>").
WithLocation
(15, 10),
20988
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I0<(int, int)>").WithArguments("C2.I0<(int, int)>.get()", "I0<(int, int)>").
WithLocation
(14, 16)
21013
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentTupleNames, "M1").WithArguments("C.M1((int a, int b))", "C.M1((int notA, int notB))").
WithLocation
(10, 18),
21016
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M1").WithArguments("void C.M1((int a, int b) x)", "void C.M1((int notA, int notB) y)").
WithLocation
(10, 18),
21019
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentTupleNames, "M2").WithArguments("C.M2((int a, int b))", "C.M2((int, int))").
WithLocation
(11, 18),
21022
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M2").WithArguments("void C.M2((int a, int b) x)", "void C.M2((int, int) y)").
WithLocation
(11, 18),
21025
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M3").WithArguments("void C.M3((int a, int b) x)", "void C.M3((int a, int b) y)").
WithLocation
(12, 18)
21045
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C").WithArguments("I0<(int notA, int notB)>", "I0<(int a, int b)>", "C").
WithLocation
(3, 22),
21048
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C").WithArguments("I0<(int, int)>", "I0<(int a, int b)>", "C").
WithLocation
(3, 22)
21068
Diagnostic(ErrorCode.ERR_PartialMultipleBases, "C2").WithArguments("C2").
WithLocation
(5, 22),
21071
Diagnostic(ErrorCode.ERR_PartialMultipleBases, "C1").WithArguments("C1").
WithLocation
(3, 22)
21091
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C").WithArguments("I0<(int notA, int notB)>", "I0<(int a, int b)>", "C").
WithLocation
(7, 14)
21109
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C4").WithArguments("C4<T2>", "I0<(int a, int b)>", "I0<(T2 a, T2 b)>").
WithLocation
(6, 14),
21112
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C1").WithArguments("C1<T2>", "I0<(int, int)>", "I0<(T2, T2)>").
WithLocation
(3, 14),
21115
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C3").WithArguments("C3<T2>", "I0<(int a, int b)>", "I0<(T2, T2)>").
WithLocation
(5, 14),
21118
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C2").WithArguments("C2<T2>", "I0<(int, int)>", "I0<(T2, T2)>").
WithLocation
(4, 14)
21143
Diagnostic(ErrorCode.ERR_ConversionWithBase, "Derived").WithArguments("Derived.explicit operator Derived(Base<(int, int)>)").
WithLocation
(9, 37),
21146
Diagnostic(ErrorCode.ERR_ConversionWithBase, "Base<(int, int)>").WithArguments("Derived.explicit operator Base<(int, int)>(Derived)").
WithLocation
(5, 37)
21192
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C1.M(string, (int, int))", "C2.M(string, (int a, int b))").
WithLocation
(18, 18),
21195
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C1.M(string, (int, int))", "C2.M(string, (int a, int b))").
WithLocation
(19, 18),
21198
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C1.M(string, (int, int))", "C2.M(string, (int a, int b))").
WithLocation
(20, 18)
21315
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M").WithArguments("C.M()", "Base2.M()").
WithLocation
(4, 36)
21388
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "P2").WithArguments("Derived.P2", "Base.P2").
WithLocation
(14, 42),
21391
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "get").WithArguments("Derived.P2.get", "Base.P2.get").
WithLocation
(14, 47),
21394
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "set").WithArguments("Derived.P2.set", "Base.P2.set").
WithLocation
(14, 52),
21397
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "P3").WithArguments("Derived.P3", "Base.P3").
WithLocation
(15, 44),
21400
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "get").WithArguments("Derived.P3.get", "Base.P3.get").
WithLocation
(15, 49),
21403
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "set").WithArguments("Derived.P3.set", "Base.P3.set").
WithLocation
(15, 54),
21406
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "P4").WithArguments("Derived.P4", "Base.P4").
WithLocation
(16, 59),
21409
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "get").WithArguments("Derived.P4.get", "Base.P4.get").
WithLocation
(16, 64),
21412
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "set").WithArguments("Derived.P4.set", "Base.P4.set").
WithLocation
(16, 69),
21415
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "P5").WithArguments("Derived.P5", "Base.P5").
WithLocation
(17, 53),
21418
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "get").WithArguments("Derived.P5.get", "Base.P5.get").
WithLocation
(17, 58),
21421
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "set").WithArguments("Derived.P5.set", "Base.P5.set").
WithLocation
(17, 63),
21424
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "P6").WithArguments("Derived.P6", "Base.P6").
WithLocation
(18, 45),
21427
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "get").WithArguments("Derived.P6.get", "Base.P6.get").
WithLocation
(18, 50),
21430
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "set").WithArguments("Derived.P6.set", "Base.P6.set").
WithLocation
(18, 55)
21935
string I8)").WithArguments("Rest", "System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 13),
21945
string I8)").WithArguments("Rest", "System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(30, 13),
21955
string I8)").WithArguments("Rest", "System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(52, 13),
21958
Diagnostic(ErrorCode.ERR_UseDefViolation, "ss").WithArguments("ss").
WithLocation
(70, 38)
22047
Diagnostic(ErrorCode.ERR_UseDefViolation, "ss").WithArguments("ss").
WithLocation
(48, 38),
22050
Diagnostic(ErrorCode.ERR_UseDefViolation, "ss").WithArguments("ss").
WithLocation
(70, 38)
22099
Diagnostic(ErrorCode.ERR_UseDefViolationField, "ss.Rest").WithArguments("Rest").
WithLocation
(31, 34)
22138
Diagnostic(ErrorCode.ERR_UseDefViolationField, "ss.I3").WithArguments("I3").
WithLocation
(21, 34)
22284
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "field").WithArguments("S.field", "(S, S)").
WithLocation
(4, 19)
22310
Diagnostic(ErrorCode.ERR_NoTypeDef, "A.M").WithArguments("(, )", "System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51").
WithLocation
(4, 24)
22350
Diagnostic(ErrorCode.ERR_NoTypeDef, "A.M").WithArguments("(, )", "System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51").
WithLocation
(4, 24)
22382
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(int, int)").WithArguments("System.ValueTuple`2").
WithLocation
(4, 5)
22433
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, "(1, 1)").WithArguments("System.ValueTuple`2", "comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "comp2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 14)
22462
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "e: 3").WithArguments("e", "(int d, int)").
WithLocation
(10, 42)
22517
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(int, int)").WithArguments("(T1, T2)").
WithLocation
(6, 9),
22520
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(int, int)").WithArguments("(int, int)").
WithLocation
(6, 9),
22523
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(1, 2)").WithArguments("(T1, T2)").
WithLocation
(6, 25),
22526
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(1, 2)").WithArguments("(T1, T2)").
WithLocation
(7, 18),
22529
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(1, 2, 3, 4, 5, 6, 7, 8, 9)").WithArguments("(T1, T2)").
WithLocation
(8, 18),
22532
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(1, 2, 3, 4, 5, 6, 7, 8, 9)").WithArguments("System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>").
WithLocation
(8, 18),
22535
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)").WithArguments("System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>").
WithLocation
(9, 19),
22538
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(1, 2)").WithArguments("(T1, T2)").
WithLocation
(10, 14),
22541
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(1, null)").WithArguments("(T1, T2)").
WithLocation
(11, 14)
22577
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(1, 2, 3, 4, 5, 6, 7, 8, 9)").WithArguments("(T1, T2)").
WithLocation
(6, 18)
22618
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "GetCoordinates()").WithArguments("Item1", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(25, 28),
22621
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "GetCoordinates()").WithArguments("Item2", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(25, 28),
22624
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "GetCoordinates2()").WithArguments("Item1", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(26, 28),
22627
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "GetCoordinates2()").WithArguments("Item2", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(26, 28)
22675
Diagnostic(ErrorCode.ERR_BadArgType, "(1, 2)").WithArguments("1", "(int, int)", "int").
WithLocation
(9, 11));
22697
Diagnostic(ErrorCode.ERR_BadArgType, "(1, null)").WithArguments("1", "(int, <null>)", "int").
WithLocation
(9, 11));
22726
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "first").WithArguments("string", "first").
WithLocation
(7, 37),
22729
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "second").WithArguments("string", "second").
WithLocation
(7, 48),
22732
Diagnostic(ErrorCode.ERR_NameNotInContext, "Console").WithArguments("Console").
WithLocation
(7, 13)
22749
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "System.ValueTuple<bool, T>").WithArguments("I<T>.M()", "T", "covariant", "invariantly").
WithLocation
(4, 5)
22766
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "(bool, T)[]").WithArguments("I<T>.M()", "T", "covariant", "invariantly").
WithLocation
(4, 5)
22783
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "(bool, T)[]").WithArguments("I<T>.M((bool, T)[])", "T", "contravariant", "invariantly").
WithLocation
(4, 12)
22934
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(7, 9),
22937
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").
WithLocation
(23, 9)
23003
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct, "x = (1,2,3,4,5,6,7,8,9)").WithArguments("ValueTuple`8").
WithLocation
(6, 13),
23006
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct, "x = (1,2,3,4,5,6,7,8,9)").WithArguments("ValueTuple`2").
WithLocation
(6, 13),
23009
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct, @"public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").
WithLocation
(19, 9)
23047
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").
WithLocation
(20, 9)
23080
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct).WithArguments("ValueTuple`2").
WithLocation
(1, 1),
23082
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct).WithArguments("ValueTuple`2").
WithLocation
(1, 1)
23123
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct, "x = null").WithArguments("ValueTuple`2").
WithLocation
(10, 22),
23126
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").
WithLocation
(23, 9)
23162
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct, "{ return (1, 1); }").WithArguments("ValueTuple`2").
WithLocation
(8, 35),
23165
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct, "(1, 1)").WithArguments("ValueTuple`2").
WithLocation
(8, 44),
23168
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct, "public ValueTuple(T1 item1, T2 item2) { this.Item1 = item1; this.Item2 = item2; }").WithArguments("ValueTuple`2").
WithLocation
(18, 9)
23184
Diagnostic(ErrorCode.ERR_NoTypeDef, "(int, int)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").
WithLocation
(3, 6),
23187
Diagnostic(ErrorCode.ERR_NoTypeDef, "(int, int)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").
WithLocation
(3, 18),
23190
Diagnostic(ErrorCode.ERR_NoTypeDef, "((int, int), (int, int))").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").
WithLocation
(3, 5));
23233
Diagnostic(ErrorCode.ERR_NoTypeDef).WithArguments("B", "92872377-08d1-4723-8906-a43b03e56ed3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1),
23235
Diagnostic(ErrorCode.ERR_NoTypeDef).WithArguments("B", "92872377-08d1-4723-8906-a43b03e56ed3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1),
23237
Diagnostic(ErrorCode.ERR_NoTypeDef).WithArguments("A", "92872377-08d1-4723-8906-a43b03e56ed3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1),
23239
Diagnostic(ErrorCode.ERR_NoTypeDef).WithArguments("A", "92872377-08d1-4723-8906-a43b03e56ed3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1));
23289
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct).WithArguments("ValueTuple`2").
WithLocation
(1, 1),
23291
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeMustBeStruct).WithArguments("ValueTuple`2").
WithLocation
(1, 1));
23966
Diagnostic(ErrorCode.ERR_NoTypeDef, "(1, 2)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").
WithLocation
(6, 17)
24022
Diagnostic(ErrorCode.ERR_NoTypeDef, "(int, int)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").
WithLocation
(7, 24),
24025
Diagnostic(ErrorCode.ERR_NoTypeDef, "(1, 2)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").
WithLocation
(9, 22)
24117
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(13, 18),
24120
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(13, 24),
24123
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p").WithArguments("int*").
WithLocation
(13, 36),
24126
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p").WithArguments("int*").
WithLocation
(13, 39),
24129
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(14, 26),
24132
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(15, 27),
24135
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(15, 33),
24138
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p").WithArguments("int*").
WithLocation
(15, 53),
24141
Diagnostic(ErrorCode.ERR_BadTypeArgument, "p").WithArguments("int*").
WithLocation
(15, 56),
24144
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t1").WithArguments("t1").
WithLocation
(13, 30),
24147
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t2").WithArguments("t2").
WithLocation
(14, 32),
24150
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t3").WithArguments("t3").
WithLocation
(15, 40),
24153
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t4").WithArguments("t4").
WithLocation
(19, 20),
24156
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t5").WithArguments("t5").
WithLocation
(20, 20),
24159
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t6").WithArguments("t6").
WithLocation
(22, 26),
24162
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t7").WithArguments("t7").
WithLocation
(23, 26),
24165
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t8").WithArguments("t8").
WithLocation
(24, 21),
24168
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t9").WithArguments("t9").
WithLocation
(26, 20),
24171
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t10").WithArguments("t10").
WithLocation
(27, 20),
24174
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t11").WithArguments("t11").
WithLocation
(28, 20),
24177
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t12").WithArguments("t12").
WithLocation
(30, 16),
24180
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t13").WithArguments("t13").
WithLocation
(31, 21),
24183
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t14").WithArguments("t14").
WithLocation
(32, 21)
24639
Diagnostic(ErrorCode.ERR_MultipleIEnumOfT, "collection").WithArguments("Derived<(string notA, string notB)>", "System.Collections.Generic.IEnumerable<T>").
WithLocation
(35, 27)
24742
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M").WithArguments("Derived.M()", "Base.M()").
WithLocation
(12, 42)
24795
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<(int notA, int notB)>").WithArguments("Derived1", "I<(int notA, int notB)>.M()").
WithLocation
(10, 24)
24826
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<(int notA, int notB)>").WithArguments("Derived1", "I<(int notA, int notB)>.M()").
WithLocation
(11, 24)
24854
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<(int a, int b)>").WithArguments("Base", "I<(int a, int b)>.M()").
WithLocation
(6, 14),
24857
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<(int notA, int notB)>").WithArguments("Derived1", "I<(int notA, int notB)>.M()").
WithLocation
(9, 24)
24878
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<(int a, int b)>").WithArguments("Base", "I<(int a, int b)>.M()").
WithLocation
(6, 21)
24894
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<(int notA, int notB)>").WithArguments("Derived1", "I<(int notA, int notB)>.M()").
WithLocation
(2, 24)
24924
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "I<(int notA, int notB)>").WithArguments("Base.M()", "I<(int notA, int notB)>.M()").
WithLocation
(10, 24)
24950
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "I<(int notA, int notB)>").WithArguments("Base.M()", "I<(int notA, int notB)>.M()").
WithLocation
(10, 23)
24976
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "I<(int notA, int notB)>").WithArguments("Base.M()", "I<(int notA, int notB)>.M()").
WithLocation
(10, 23)
25002
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "I<(int, int)>").WithArguments("Base.M()", "I<(int, int)>.M()").
WithLocation
(10, 23)
25082
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 20),
25085
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 31)
25116
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 25)
25229
Diagnostic(ErrorCode.ERR_NoSuchMember, "M").WithArguments("(string, (int, (<null>, int)))", "M").
WithLocation
(13, 64),
25232
Diagnostic(ErrorCode.ERR_NoSuchMember, "GetAwaiter").WithArguments("(string, lambda expression)", "GetAwaiter").
WithLocation
(15, 49)
25270
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "(1, 2)").WithArguments("(int, int)", "M", "C.M((int x, long y))", "(int x, long y)").
WithLocation
(10, 34),
25273
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "(First: 1, Second: 2L)").WithArguments("(int, long)", "M1", "C.M1((int x, long? y))", "(int x, long? y)").
WithLocation
(16, 34),
25279
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "notAliteral").WithArguments("(int A, int B)", "M", "C.M((int x, long y))", "(int x, long y)").
WithLocation
(23, 34)
25406
Diagnostic(ErrorCode.ERR_TypelessTupleInAs, "(0, null) as (int, T)?").
WithLocation
(6, 17)
25438
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "-1").WithArguments("-1", "byte").
WithLocation
(13, 39),
25441
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "-2").WithArguments("-2", "byte").
WithLocation
(14, 44));
25485
Diagnostic(ErrorCode.WRN_AlwaysNull, "(1, 1) as (int, long)?").WithArguments("(int, long)?").
WithLocation
(7, 17)
25506
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(6, 29),
25509
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 41),
25512
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(":").
WithLocation
(6, 41),
25515
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 41)
25536
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "(1, 1) is System.Nullable<(int, int a)>").WithArguments("(int, int a)?").
WithLocation
(6, 18)
25731
Diagnostic(ErrorCode.ERR_NoImplicitConv, "e").WithArguments("int?", "int").
WithLocation
(7, 28)
25776
Diagnostic(ErrorCode.ERR_NoImplicitConv, "e").WithArguments("int?", "int").
WithLocation
(7, 17)
25802
Diagnostic(ErrorCode.ERR_ConversionNotTupleCompatible, "(e, null)").WithArguments("2", "(int, string)?").
WithLocation
(7, 28)
25847
Diagnostic(ErrorCode.ERR_ConversionNotTupleCompatible, "(e, null)").WithArguments("2", "(int, string)?").
WithLocation
(7, 16)
25873
Diagnostic(ErrorCode.ERR_ConversionNotTupleCompatible, "(e, null)").WithArguments("2", "(int, string, int)").
WithLocation
(7, 32)
25912
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t1").WithArguments("t1").
WithLocation
(6, 20),
25915
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t2").WithArguments("t2").
WithLocation
(7, 13)
25945
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"(e, """")").WithArguments("(int? e, string)", "(int, string, int)").
WithLocation
(7, 32)
26166
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("C.M1<T1, T2, T3, T4, T5, T6, T7, TRest>(System.ValueTuple<System.Func<T1>, System.Func<T2>, System.Func<T3>, System.Func<T4>, System.Func<T5>, System.Func<T6>, System.Func<T7>, TRest>)").
WithLocation
(6, 9)
26236
Diagnostic(ErrorCode.ERR_AmbigCall, "M1").WithArguments("C.M1<T, U>((T, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, (U, int)))", "C.M1<T, U>(((T, int), int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, U))").
WithLocation
(7, 9)
26303
Diagnostic(ErrorCode.ERR_AssgReadonly, "tuple.Item1").
WithLocation
(8, 9));
26700
Diagnostic(ErrorCode.ERR_NoTypeDef, "ToString").WithArguments("A<>", "A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 11));
26758
Diagnostic(ErrorCode.ERR_NoTypeDef, "collectionA").WithArguments("(, )", "vt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 27),
26761
Diagnostic(ErrorCode.ERR_NoTypeDef, "collectionA").WithArguments("(, )", "vt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 27)
26769
Diagnostic(ErrorCode.ERR_MissingTypeInAssembly, "collectionA").WithArguments("(, )", "vt").
WithLocation
(7, 27),
26772
Diagnostic(ErrorCode.ERR_MissingTypeInAssembly, "collectionA").WithArguments("(, )", "vt").
WithLocation
(7, 27)
26840
Diagnostic(ErrorCode.ERR_NoTypeDef, "collectionA").WithArguments("System.ValueTuple<,,,,,,,>", "vt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 27),
26843
Diagnostic(ErrorCode.ERR_NoTypeDef, "collectionA").WithArguments("System.ValueTuple<,,,,,,,>", "vt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 27)
26851
Diagnostic(ErrorCode.ERR_MissingTypeInAssembly, "collectionA").WithArguments("System.ValueTuple<,,,,,,,>", "vt").
WithLocation
(7, 27),
26854
Diagnostic(ErrorCode.ERR_MissingTypeInAssembly, "collectionA").WithArguments("System.ValueTuple<,,,,,,,>", "vt").
WithLocation
(7, 27)
28012
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "Item1").WithArguments("Item1", "(T1, T2)", "emptyValueTuple, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 18)
28101
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "Item1").WithArguments("Item1", "(T1, T2)", "emptyValueTuple, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 18)
CodeGen\CodeGenUsingDeclarationTests.cs (2)
820
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "using S1 s1 = new S1();").WithArguments("S1").
WithLocation
(17, 13)
1349
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "await").WithArguments("System.Threading.Tasks.ValueTask").
WithLocation
(16, 9)
CodeGen\CodeGenUsingStatementTests.cs (9)
1158
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(17, 16)
1240
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(15, 15)
1270
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(15, 15)
1489
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "res").WithArguments("Program.MyManagedClass").
WithLocation
(7, 16)
1516
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "res").WithArguments("Program.MyManagedClass").
WithLocation
(7, 16)
2656
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(6, 8),
2659
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(6, 8),
2662
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 8),
2665
Diagnostic(ErrorCode.ERR_FixedMustInit, "").
WithLocation
(7, 1));
CodeGen\EventTests.cs (3)
674
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "e").WithArguments("System.Delegate", "Combine").
WithLocation
(7, 21),
677
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "e").WithArguments("System.Delegate", "Remove").
WithLocation
(7, 21),
680
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "e").WithArguments("C.e").
WithLocation
(7, 21)
CodeGen\FixedSizeBufferTests.cs (31)
331
Diagnostic(ErrorCode.ERR_IllegalFixedType, "S1").
WithLocation
(9, 18)
364
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "s.x").
WithLocation
(14, 34),
367
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "a[0].x").
WithLocation
(18, 34)
401
Diagnostic(ErrorCode.ERR_AssgReadonly2, "c.field.x[0]").WithArguments("S1.field").
WithLocation
(17, 9),
404
Diagnostic(ErrorCode.ERR_RefReadonly2, "c.field.x[0]").WithArguments("S1.field").
WithLocation
(19, 27)
668
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "(new S()).G").
WithLocation
(6, 18),
671
Diagnostic(ErrorCode.ERR_ObjectRequired, "G").WithArguments("S.G").
WithLocation
(4, 17),
674
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "G").
WithLocation
(4, 17)
695
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "default(S).G").
WithLocation
(5, 17),
698
Diagnostic(ErrorCode.ERR_ObjectRequired, "F").WithArguments("S.F").
WithLocation
(4, 17),
701
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "F").
WithLocation
(4, 17)
801
Diagnostic(ErrorCode.ERR_BadMemberFlag, "StartOfTables").WithArguments("readonly").
WithLocation
(8, 34)
830
Diagnostic(ErrorCode.ERR_BadMemberFlag, "StartOfTables").WithArguments("static").
WithLocation
(8, 32)
859
Diagnostic(ErrorCode.ERR_TypeExpected, "const").
WithLocation
(8, 18),
862
Diagnostic(ErrorCode.ERR_IdentifierExpected, "const").
WithLocation
(8, 18),
865
Diagnostic(ErrorCode.ERR_SyntaxError, "const").WithArguments("[").
WithLocation
(8, 18),
868
Diagnostic(ErrorCode.ERR_SyntaxError, "const").WithArguments("]").
WithLocation
(8, 18),
871
Diagnostic(ErrorCode.ERR_ValueExpected, "const").
WithLocation
(8, 18),
874
Diagnostic(ErrorCode.ERR_SemicolonExpected, "const").
WithLocation
(8, 18),
877
Diagnostic(ErrorCode.ERR_CStyleArray, "[ 16 ]").
WithLocation
(8, 44),
880
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "16").
WithLocation
(8, 46),
883
Diagnostic(ErrorCode.ERR_IllegalFixedType, "").
WithLocation
(8, 18),
886
Diagnostic(ErrorCode.ERR_BadAccess, "StartOfTables").WithArguments("AssemblyRecord.StartOfTables").
WithLocation
(15, 25)
915
Diagnostic(ErrorCode.ERR_TypeExpected, "fixed").
WithLocation
(8, 18),
918
Diagnostic(ErrorCode.ERR_IdentifierExpected, "fixed").
WithLocation
(8, 18),
921
Diagnostic(ErrorCode.ERR_ConstValueRequired, "fixed").
WithLocation
(8, 18),
924
Diagnostic(ErrorCode.ERR_SemicolonExpected, "fixed").
WithLocation
(8, 18),
927
Diagnostic(ErrorCode.ERR_BadAccess, "StartOfTables").WithArguments("AssemblyRecord.StartOfTables").
WithLocation
(15, 25)
956
Diagnostic(ErrorCode.ERR_BadMemberFlag, "StartOfTables").WithArguments("volatile").
WithLocation
(8, 34)
1070
Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.Bar[0]").
WithLocation
(6, 23),
1073
Diagnostic(ErrorCode.ERR_FixedNeeded, "&Bar[1]").
WithLocation
(7, 23));
CodeGen\GotoTest.cs (21)
842
Diagnostic(ErrorCode.ERR_LabelNotFound, "L0").WithArguments("L0").
WithLocation
(1, 6),
845
Diagnostic(ErrorCode.ERR_LabelNotFound, "L1").WithArguments("L1").
WithLocation
(3, 14),
848
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L0").
WithLocation
(3, 5),
851
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L1").
WithLocation
(6, 5));
897
Diagnostic(ErrorCode.ERR_LabelNotFound, "L").WithArguments("L").
WithLocation
(1, 6));
914
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L").
WithLocation
(5, 1),
917
Diagnostic(ErrorCode.ERR_LabelNotFound, "L").WithArguments("L").
WithLocation
(3, 17));
934
Diagnostic(ErrorCode.ERR_LabelNotFound, "L").WithArguments("L").
WithLocation
(6, 6),
937
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L").
WithLocation
(3, 1));
981
Diagnostic(ErrorCode.ERR_LabelShadow, "L").WithArguments("L").
WithLocation
(11, 1));
1024
Diagnostic(ErrorCode.ERR_LabelNotFound, "B").WithArguments("B").
WithLocation
(2, 9),
1027
Diagnostic(ErrorCode.ERR_LabelNotFound, "A").WithArguments("A").
WithLocation
(3, 9));
1068
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(3, 5));
1074
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(3, 5));
1083
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(3, 8));
1096
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 20),
1099
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L2").
WithLocation
(5, 1),
1102
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "EOF").
WithLocation
(6, 1));
1108
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 20),
1111
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "L2").
WithLocation
(5, 1),
1114
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "EOF").
WithLocation
(6, 1));
CodeGen\IndexAndRangeTests.cs (21)
75
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsPatternImplicitIndexer, "a[new Index(0, true)]").
WithLocation
(16, 55),
78
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsPatternImplicitIndexer, "a[new Index(0, true)]").
WithLocation
(17, 64),
81
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsPatternImplicitIndexer, "a[new Range(0, 1)]").
WithLocation
(19, 58),
84
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsPatternImplicitIndexer, "s[new Range(0, 1)]").
WithLocation
(20, 46)
108
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsFromEndIndexExpression, "^1").
WithLocation
(10, 43),
111
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsRangeExpression, "1..2").
WithLocation
(11, 44)
362
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Length.get", "this").
WithLocation
(24, 9),
365
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "this[^1]").WithArguments("this[^1]").
WithLocation
(24, 9)
1596
Diagnostic(ErrorCode.ERR_BadArgCount, "s[new Index(1, false), ^1]").WithArguments("this", "2").
WithLocation
(13, 27));
1619
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new Index(1, false)").WithArguments("System.Index", "int").
WithLocation
(12, 29),
1622
Diagnostic(ErrorCode.ERR_NoImplicitConv, "^1").WithArguments("System.Index", "int").
WithLocation
(12, 50));
3455
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 13),
3458
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 13),
3461
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 13),
3464
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M(o2)[^1]").
WithLocation
(15, 5),
3467
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M(o2)[..]").
WithLocation
(16, 5)
3498
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 13),
3501
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o1").
WithLocation
(6, 10),
3504
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 13),
3507
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o2").
WithLocation
(9, 10)
3582
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(10, 5)
CodeGen\PatternTests.cs (35)
103
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1)
156
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
159
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "int i").WithArguments("System.Nullable`1", "get_HasValue").
WithLocation
(14, 18),
162
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "int i").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(14, 18),
165
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "int i").WithArguments("System.Nullable`1", "get_Value").
WithLocation
(14, 18),
168
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "int i").WithArguments("System.Nullable`1", "get_HasValue").
WithLocation
(17, 36),
171
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "int i").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(17, 36),
174
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "int i").WithArguments("System.Nullable`1", "get_Value").
WithLocation
(17, 36)
204
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
207
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "int i").WithArguments("System.Nullable`1", "get_HasValue").
WithLocation
(14, 18),
210
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "int i").WithArguments("System.Nullable`1", "get_HasValue").
WithLocation
(17, 36)
1977
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "name").
WithLocation
(19, 66));
3319
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("0").
WithLocation
(9, 38)
3323
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
3326
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "public static bool M(int i) => i switch { 1 => true };").WithArguments("System.Byte").
WithLocation
(9, 5),
3329
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "public static bool M(int i) => i switch { 1 => true };").WithArguments("System.Byte").
WithLocation
(9, 5),
3332
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "public static bool M(int i) => i switch { 1 => true };").WithArguments("System.Int16").
WithLocation
(9, 5),
3335
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "public static bool M(int i) => i switch { 1 => true };").WithArguments("System.Int16").
WithLocation
(9, 5),
3338
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "public static bool M(int i) => i switch { 1 => true };").WithArguments("System.Int64").
WithLocation
(9, 5),
3341
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "public static bool M(int i) => i switch { 1 => true };").WithArguments("System.Int64").
WithLocation
(9, 5),
3344
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "i switch { 1 => true }").WithArguments("System.InvalidOperationException", ".ctor").
WithLocation
(9, 36),
3347
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("0").
WithLocation
(9, 38)
4555
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(7, 23));
4589
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(7, 23));
4855
Diagnostic(ErrorCode.ERR_AmbigCall, "M2").WithArguments("Program.M2(System.Exception)", "Program.M2(int)").
WithLocation
(12, 16)
5001
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "1 switch { 1 => 1, _ => 2 }").
WithLocation
(5, 9),
5004
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "1 switch { 1 => new A(), _ => new B() }").
WithLocation
(8, 9),
5007
Diagnostic(ErrorCode.ERR_BadArgType, "1 switch { 1 => 1, _ => string.Empty }").WithArguments("1", "<switch expression>", "int").
WithLocation
(11, 9)
5127
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "1 switch { 1 => 1, _ => 2 }").
WithLocation
(5, 17),
5130
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "1 switch { 1 => new A(), _ => new B() }").
WithLocation
(8, 17),
5133
Diagnostic(ErrorCode.ERR_NoImplicitConv, "string.Empty").WithArguments("string", "int").
WithLocation
(11, 41)
5276
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Value").WithArguments("Value").
WithLocation
(5, 9),
5279
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Value").WithArguments("Value").
WithLocation
(8, 9),
5282
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Value").WithArguments("Value").
WithLocation
(11, 9)
5409
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(7, 15)
CodeGen\SwitchTests.cs (19)
2628
Diagnostic(ErrorCode.ERR_ConstantExpected, "i").
WithLocation
(8, 18)
7676
Diagnostic(ErrorCode.WRN_UnreachableCode, "ret").
WithLocation
(11, 17)
7726
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(19, 5));
7765
Diagnostic(ErrorCode.WRN_UnreachableCode, "ret").
WithLocation
(11, 9)
7806
Diagnostic(ErrorCode.WRN_EmptySwitch, "{").
WithLocation
(7, 23)
9444
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("System.ValueType", "T", "7.0", "7.1").
WithLocation
(13, 21),
9447
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("System.ValueType", "T", "7.0", "7.1").
WithLocation
(19, 18)
9575
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "int").WithArguments("T", "int", "7.0", "7.1").
WithLocation
(13, 21),
9578
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "int").WithArguments("T", "int", "7.0", "7.1").
WithLocation
(19, 18)
9768
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("A", "T", "7.0", "7.1").
WithLocation
(14, 21),
9771
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("A", "T", "7.0", "7.1").
WithLocation
(20, 18)
9823
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("A", "T", "7.0", "7.1").
WithLocation
(14, 21),
9826
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("A", "T", "7.0", "7.1").
WithLocation
(20, 18)
9876
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("A", "T", "7.0", "7.1").
WithLocation
(13, 21),
9879
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("A", "T", "7.0", "7.1").
WithLocation
(19, 18)
9928
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("A", "T", "7.0", "7.1").
WithLocation
(13, 21),
9931
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("A", "T", "7.0", "7.1").
WithLocation
(19, 18)
9976
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case Generic<dynamic>.Color.Red:").WithArguments("1").
WithLocation
(18, 13),
9979
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case Generic<(int z, int w)>.Color.Blue:").WithArguments("2").
WithLocation
(19, 13)
CodeGen\UnsafeTests.cs (30)
4147
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "new Fixable()").WithArguments("extensible fixed statement", "7.3").
WithLocation
(6, 25)
4348
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "f").
WithLocation
(8, 25)
4400
Diagnostic(ErrorCode.ERR_AmbigCall, "new Fixable(1)").WithArguments("FixableExt.GetPinnableReference(in Fixable)", "FixableExt1.GetPinnableReference(in Fixable)").
WithLocation
(6, 25),
4403
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "new Fixable(1)").
WithLocation
(6, 25),
4406
Diagnostic(ErrorCode.ERR_AmbigCall, "f").WithArguments("FixableExt.GetPinnableReference(in Fixable)", "FixableExt1.GetPinnableReference(in Fixable)").
WithLocation
(12, 25),
4409
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "f").
WithLocation
(12, 25)
4447
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "(dynamic)(new Fixable(1))").
WithLocation
(6, 25)
4485
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "HocusPocus").WithArguments("HocusPocus").
WithLocation
(6, 26)
4658
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "arg").WithArguments("FixableClass.GetPinnableReference()").
WithLocation
(14, 29)
5038
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new Fixable(1)").
WithLocation
(6, 25),
5041
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "new Fixable(1)").
WithLocation
(6, 25)
5080
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "new Fixable(1)").
WithLocation
(6, 25)
5119
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "new Fixable(1)").
WithLocation
(6, 25)
5155
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "new Fixable(1)").
WithLocation
(6, 25),
5158
Diagnostic(ErrorCode.ERR_ObjectProhibited, "new Fixable(1)").WithArguments("Fixable.GetPinnableReference()").
WithLocation
(6, 25)
5191
Diagnostic(ErrorCode.ERR_NonInvocableMemberCalled, "new Fixable(1)").WithArguments("Fixable.GetPinnableReference").
WithLocation
(6, 25),
5194
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "new Fixable(1)").
WithLocation
(6, 25)
5227
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "new Fixable(1)").WithArguments("Fixable.GetPinnableReference<T>()").
WithLocation
(6, 25),
5230
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "new Fixable(1)").
WithLocation
(6, 25)
5266
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Fixable(1)").WithArguments("Fixable.GetPinnableReference()", "hi").
WithLocation
(8, 25)
5304
Diagnostic(ErrorCode.ERR_NoTypeDef, "new Fixable(1)").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 26),
5307
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "new Fixable(1)").
WithLocation
(6, 26)
5340
Diagnostic(ErrorCode.WRN_PatternBadSignature, "new Fixable(1)").WithArguments("Fixable", "fixed", "Fixable.GetPinnableReference(int)").
WithLocation
(6, 25),
5343
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "new Fixable(1)").
WithLocation
(6, 25)
5369
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "string.Empty").WithArguments("System.Runtime.CompilerServices.RuntimeHelpers", "get_OffsetToStringData").
WithLocation
(6, 26)
5485
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "new Fixable()").
WithLocation
(6, 25)
9645
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "c.Field").
WithLocation
(3, 5)
10454
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "FS").WithArguments("OuterStruct.FS", "").
WithLocation
(8, 17),
10457
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "ES").WithArguments("OuterStruct.ES", "").
WithLocation
(7, 17)
11299
Diagnostic(ErrorCode.ERR_BindToBogus, "AddressOf").WithArguments("AddressHelper.AddressOf<T>(?)").
WithLocation
(7, 35)
Emit\CompilationEmitTests.cs (28)
165
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(13, 13),
168
Diagnostic(ErrorCode.ERR_FileScopedNamespaceNotBeforeAllMembers, "N.").
WithLocation
(13, 11),
171
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Blah").WithArguments("Blah").
WithLocation
(4, 16),
174
Diagnostic(ErrorCode.ERR_AssgReadonlyStatic, "ro").
WithLocation
(8, 13),
177
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field").WithArguments("N.X.field", "null").
WithLocation
(4, 21));
372
Diagnostic(ErrorCode.WRN_XMLParseError, "").WithArguments("summary").
WithLocation
(5, 1),
375
Diagnostic(ErrorCode.WRN_MissingXMLComment, "SayHello").WithArguments("Goo.Bar.Test1.SayHello()").
WithLocation
(7, 28));
426
Diagnostic(ErrorCode.WRN_BadXMLRef, "T").WithArguments("T").
WithLocation
(4, 29),
429
Diagnostic(ErrorCode.WRN_MissingXMLComment, "SayHello").WithArguments("Goo.Bar.Test1.SayHello()").
WithLocation
(7, 28));
482
Diagnostic(ErrorCode.WRN_MissingXMLComment, "SayHello").WithArguments("Goo.Bar.Test1.SayHello()").
WithLocation
(7, 28));
810
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "private").
WithLocation
(4, 47),
813
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "private").
WithLocation
(5, 57)
1380
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "y").WithArguments("variable", "y").
WithLocation
(12, 9),
1383
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "1").
WithLocation
(13, 9)
1410
Diagnostic(ErrorCode.WRN_ManagedAddr, "S*").WithArguments("S").
WithLocation
(7, 45)
1526
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("I<Base>", "I<Derived>").
WithLocation
(7, 16)
1587
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("I<Derived>", "I<Base>").
WithLocation
(7, 16)
1791
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("Usage.x", "Container<Usage>").
WithLocation
(3, 29)
1852
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(6, 16)
4231
Diagnostic(ErrorCode.ERR_InvalidOutputName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1));
5165
Diagnostic(ErrorCode.ERR_PeWritingFailure).WithArguments(output.ThrownException.ToString()).
WithLocation
(1, 1));
5192
Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments("I/O error occurred.").
WithLocation
(1, 1)
5456
Diagnostic(ErrorCode.ERR_PeWritingFailure).WithArguments(broken.ThrownException.ToString()).
WithLocation
(1, 1));
5478
Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments("I/O error occurred.").
WithLocation
(1, 1));
5532
Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "Method").WithArguments("DerivingClass<T>.Method(T)", "BaseClass<T>.Method(T)").
WithLocation
(11, 26),
5535
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "Method").WithArguments("DerivingClass<T>.Method(T)", "BaseClass<T>.Method(T)", "int").
WithLocation
(11, 26));
5604
Diagnostic(ErrorCode.WRN_UnreferencedField, "_f").WithArguments("X._f").
WithLocation
(4, 9).WithWarningAsError(true));
5649
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Y").WithArguments("Y").
WithLocation
(4, 19).WithWarningAsError(true));
Emit\CovariantReturnTests.cs (3)
363
Diagnostic(ERR_InvalidOverrideDueToReturn2, "M").WithArguments("Public Overrides Function M() As Object", "Public Overridable Overloads Function M() As String").
WithLocation
(3, 31),
367
Diagnostic(ERR_InvalidOverrideDueToReturn2, "P").WithArguments("Public Overrides ReadOnly Property P As Object", "Public Overridable Overloads ReadOnly Property P As String").
WithLocation
(6, 40),
371
Diagnostic(ERR_InvalidOverrideDueToReturn2, "Item").WithArguments("Public Overrides ReadOnly Default Property Item(i As Integer) As Object", "Public Overridable Overloads ReadOnly Default Property Item(i As Integer) As String").
WithLocation
(11, 48)
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (4)
474
verifier.VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").
WithLocation
(16, 9));
1130
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(14, 13),
1131
Diagnostic(ErrorCode.WRN_UnreferencedVar, "a").WithArguments("a").
WithLocation
(15, 13),
1132
Diagnostic(ErrorCode.WRN_UnreferencedVar, "b").WithArguments("b").
WithLocation
(15, 16));
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (5)
9722
Diagnostic(ErrorCode.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("C.F()", "System.Runtime.CompilerServices.IteratorStateMachineAttribute").
WithLocation
(7, 29));
9790
Diagnostic(ErrorCode.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("C.F()", "System.Runtime.CompilerServices.IteratorStateMachineAttribute").
WithLocation
(12, 29));
9975
Diagnostic(ErrorCode.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("C.F()", "System.Runtime.CompilerServices.AsyncStateMachineAttribute").
WithLocation
(6, 28));
10199
Diagnostic(ErrorCode.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("C.F()", "System.Runtime.CompilerServices.AsyncStateMachineAttribute").
WithLocation
(6, 28));
10250
Diagnostic(ErrorCode.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("C.F()", "System.Runtime.CompilerServices.IteratorStateMachineAttribute").
WithLocation
(6, 29));
Emit\EditAndContinue\EditAndContinueTests.cs (16)
173
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 4),
176
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(15, 25));
298
Diagnostic(ErrorCode.ERR_NameNotInContext, "Unknown").WithArguments("Unknown").
WithLocation
(6, 17));
366
Diagnostic(ErrorCode.ERR_CircularBase, "Bad").WithArguments("Bad", "Bad").
WithLocation
(10, 7));
1447
Diagnostic(ErrorCode.ERR_EncUpdateFailedDelegateTypeChanged).
WithLocation
(1, 1));
1496
Diagnostic(ErrorCode.ERR_EncUpdateFailedDelegateTypeChanged).
WithLocation
(1, 1));
1574
Diagnostic(ErrorCode.ERR_EncUpdateFailedDelegateTypeChanged).
WithLocation
(1, 1));
1689
Diagnostic(ErrorCode.ERR_EncUpdateFailedDelegateTypeChanged).
WithLocation
(1, 1));
11480
Diagnostic(ErrorCode.ERR_PeWritingFailure).WithArguments(badStream.ThrownException.ToString()).
WithLocation
(1, 1)
11495
Diagnostic(ErrorCode.ERR_PeWritingFailure).WithArguments(badStream.ThrownException.ToString()).
WithLocation
(1, 1)
11510
Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments("I/O error occurred.").
WithLocation
(1, 1)
11565
Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments("I/O error occurred.").
WithLocation
(1, 1)
11729
Diagnostic(ErrorCode.ERR_EncReferenceToAddedMember, "X").WithArguments("X", "LibA").
WithLocation
(7, 14),
11732
Diagnostic(ErrorCode.ERR_EncReferenceToAddedMember, "M").WithArguments("M", "LibA").
WithLocation
(4, 17));
11945
Diagnostic(ErrorCode.ERR_InvalidDebugInfo, "F").WithArguments("C.F()", "100663297", "PdbReadingErrorsAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 14));
14641
Diagnostic(ErrorCode.ERR_AmbigContext, "Timer").WithArguments("Timer", "System.Threading.Timer", "System.Timers.Timer").
WithLocation
(9, 21));
Emit\EmitErrorTests.cs (2)
174
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "p").WithArguments("int", "S").
WithLocation
(9, 27));
340
Diagnostic(ErrorCode.ERR_TooManyUserStrings).
WithLocation
(1, 1)
Emit\EntryPointTests.cs (12)
129
Diagnostic(ErrorCode.WRN_SyncAndAsyncEntryPoints, "Main").WithArguments("C.Main()", "C.Main(string[])").
WithLocation
(6, 28));
166
Diagnostic(ErrorCode.WRN_SyncAndAsyncEntryPoints, "Main").WithArguments("C.Main()", "C.Main(string[])").
WithLocation
(6, 28));
193
Diagnostic(ErrorCode.WRN_SyncAndAsyncEntryPoints, "Main").WithArguments("C.Main()", "C.Main(string[])").
WithLocation
(6, 28));
218
Diagnostic(ErrorCode.WRN_SyncAndAsyncEntryPoints, "Main").WithArguments("C.Main()", "C.Main(string[])").
WithLocation
(6, 28),
220
Diagnostic(ErrorCode.WRN_SyncAndAsyncEntryPoints, "Main").WithArguments("D.Main()", "C.Main(string[])").
WithLocation
(12, 28));
263
Diagnostic(ErrorCode.WRN_SyncAndAsyncEntryPoints, "Main").WithArguments("C.Main()", "C.Main(string[])").
WithLocation
(8, 28));
870
Diagnostic(ErrorCode.ERR_NoMainInClass, "I").WithArguments("I").
WithLocation
(4, 11)
1496
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("extension.Main(B, string[])").
WithLocation
(7, 24),
1499
Diagnostic(ErrorCode.ERR_NoMainInClass, "@extension").WithArguments("extension").
WithLocation
(5, 14));
1602
Diagnostic(ErrorCode.ERR_MultipleEntryPoints, "Main").
WithLocation
(4, 24)
1621
Diagnostic(ErrorCode.WRN_InvalidMainSig, "Main").WithArguments("Program.Main()").
WithLocation
(4, 27),
1623
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1));
Emit\InAttributeModifierTests.cs (45)
637
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("TestRef.M(in int)").
WithLocation
(8, 13));
693
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("TestRef.M()").
WithLocation
(7, 38));
752
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "P").WithArguments("TestRef.P", "TestRef.get_P()").
WithLocation
(7, 38));
767
Diagnostic(ErrorCode.ERR_BindToBogus, "get_P").WithArguments("TestRef.get_P()").
WithLocation
(7, 38));
823
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "obj[value]").WithArguments("TestRef.this[in int]", "TestRef.set_Item(in int, int)").
WithLocation
(8, 9));
839
Diagnostic(ErrorCode.ERR_BindToBogus, "set_Item").WithArguments("TestRef.set_Item(in int, int)").
WithLocation
(8, 13));
902
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "obj[0]").WithArguments("TestRef.this[int]", "TestRef.get_Item(int)").
WithLocation
(7, 34));
917
Diagnostic(ErrorCode.ERR_BindToBogus, "get_Item").WithArguments("TestRef.get_Item(int)").
WithLocation
(7, 38));
974
Diagnostic(ErrorCode.ERR_BindToBogus, "(in int p) => System.Console.WriteLine(p)").WithArguments("D.Invoke(in int)").
WithLocation
(6, 17),
977
Diagnostic(ErrorCode.ERR_BindToBogus, "func(value)").WithArguments("D.Invoke(in int)").
WithLocation
(12, 9));
1033
Diagnostic(ErrorCode.ERR_BindToBogus, "() => ref value").WithArguments("D.Invoke()").
WithLocation
(8, 17),
1036
Diagnostic(ErrorCode.ERR_BindToBogus, "func()").WithArguments("D.Invoke()").
WithLocation
(13, 34));
1088
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("TestRef.M(in int)").
WithLocation
(8, 13));
1144
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("TestRef.M()").
WithLocation
(7, 38));
1203
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "P").WithArguments("TestRef.P", "TestRef.get_P()").
WithLocation
(7, 38));
1218
Diagnostic(ErrorCode.ERR_BindToBogus, "get_P").WithArguments("TestRef.get_P()").
WithLocation
(7, 38));
1274
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "obj[value]").WithArguments("TestRef.this[in int]", "TestRef.set_Item(in int, int)").
WithLocation
(8, 9));
1290
Diagnostic(ErrorCode.ERR_BindToBogus, "set_Item").WithArguments("TestRef.set_Item(in int, int)").
WithLocation
(8, 13));
1353
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "obj[0]").WithArguments("TestRef.this[int]", "TestRef.get_Item(int)").
WithLocation
(7, 34));
1368
Diagnostic(ErrorCode.ERR_BindToBogus, "get_Item").WithArguments("TestRef.get_Item(int)").
WithLocation
(7, 38)
1426
Diagnostic(ErrorCode.ERR_BindToBogus, "(in int p) => System.Console.WriteLine(p)").WithArguments("D.Invoke(in int)").
WithLocation
(6, 17),
1429
Diagnostic(ErrorCode.ERR_BindToBogus, "func(value)").WithArguments("D.Invoke(in int)").
WithLocation
(12, 9));
1485
Diagnostic(ErrorCode.ERR_BindToBogus, "() => ref value").WithArguments("D.Invoke()").
WithLocation
(8, 17),
1488
Diagnostic(ErrorCode.ERR_BindToBogus, "func()").WithArguments("D.Invoke()").
WithLocation
(13, 34));
1508
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in object x").WithArguments("System.Runtime.InteropServices.InAttribute").
WithLocation
(9, 27));
1529
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "ref readonly object").WithArguments("System.Runtime.InteropServices.InAttribute").
WithLocation
(10, 20));
1550
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "ref readonly object").WithArguments("System.Runtime.InteropServices.InAttribute").
WithLocation
(10, 20));
1570
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in object p").WithArguments("System.Runtime.InteropServices.InAttribute").
WithLocation
(9, 32));
1591
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "ref readonly object").WithArguments("System.Runtime.InteropServices.InAttribute").
WithLocation
(10, 20));
1612
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in int p").WithArguments("System.Runtime.InteropServices.InAttribute").
WithLocation
(11, 24));
1633
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "ref readonly int").WithArguments("System.Runtime.InteropServices.InAttribute").
WithLocation
(11, 17));
2152
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("TestRef.M(ref int)").
WithLocation
(8, 13));
2203
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("TestRef.M()").
WithLocation
(7, 25));
2253
Diagnostic(ErrorCode.ERR_BindToBogus, "P").WithArguments("TestRef.P").
WithLocation
(7, 25));
2305
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "obj[value]").WithArguments("TestRef.this[ref int]", "TestRef.set_Item(ref int, int)").
WithLocation
(8, 9));
2321
Diagnostic(ErrorCode.ERR_BindToBogus, "set_Item").WithArguments("TestRef.set_Item(ref int, int)").
WithLocation
(8, 13));
2373
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[5]").WithArguments("TestRef.this[int]").
WithLocation
(7, 21));
2422
Diagnostic(ErrorCode.ERR_BindToBogus, "(in int p) => System.Console.WriteLine(p)").WithArguments("D.Invoke(ref int)").
WithLocation
(6, 17),
2425
Diagnostic(ErrorCode.ERR_BindToBogus, "func(value)").WithArguments("D.Invoke(ref int)").
WithLocation
(12, 9));
2475
Diagnostic(ErrorCode.ERR_BindToBogus, "() => ref value").WithArguments("D.Invoke()").
WithLocation
(8, 17),
2478
Diagnostic(ErrorCode.ERR_BindToBogus, "func()").WithArguments("D.Invoke()").
WithLocation
(13, 34));
3824
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "ITest").WithArguments("Test", "ITest.M()", "Test.M()").
WithLocation
(6, 21));
3853
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "M").WithArguments("Test.M()", "ParentTest.M()").
WithLocation
(8, 25));
4471
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "ref readonly int").WithArguments("System.Runtime.InteropServices.InAttribute").
WithLocation
(4, 12));
4515
Diagnostic(ErrorCode.WRN_NewRequired, "M").WithArguments("Child.M(in int)", "Parent.M(in int)").
WithLocation
(12, 17));
Emit\NoPiaEmbedTypes.cs (10)
2060
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "ITest28").WithArguments("ITest28", "1").
WithLocation
(10, 20)
2127
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "new ITest28()").WithArguments("System.Guid", ".ctor").
WithLocation
(20, 16)
2464
Diagnostic(ErrorCode.ERR_MissingSourceInterface, "x1.E += Handler").WithArguments("Interface1_Event", "Interface1_Event.E").
WithLocation
(6, 6),
2467
Diagnostic(ErrorCode.ERR_MissingSourceInterface, "x4.E += Handler").WithArguments("Interface4_Event", "Interface4_Event.E").
WithLocation
(16, 6)
4869
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound).WithArguments("ITest33").
WithLocation
(1, 1),
4871
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound).WithArguments("ITest33").
WithLocation
(1, 1),
4873
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound).WithArguments("ITest33").
WithLocation
(1, 1));
4920
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "y.M2").WithArguments("ITest33").
WithLocation
(10, 9)
5063
Diagnostic(ErrorCode.ERR_GenericsUsedAcrossAssemblies, "ITest34").WithArguments("System.Collections.Generic.List<ValueTuple<ITest33, ITest33>>", "Pia2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(5, 24)
5610
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x.Goo += Handler").WithArguments("System.Runtime.InteropServices.ComAwareEventInfo", ".ctor").
WithLocation
(10, 6)
Emit\OptionalArgumentsTests.cs (20)
260
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").
WithLocation
(5, 14),
263
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").
WithLocation
(6, 14),
266
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2").
WithLocation
(6, 51),
269
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2").
WithLocation
(7, 57),
272
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").
WithLocation
(8, 35),
275
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DecimalConstant(0, 0, 0, 0, 1)").
WithLocation
(8, 61),
278
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "1").
WithLocation
(8, 100),
281
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DecimalConstant(0, 0, 0, 0, 2)").
WithLocation
(9, 35),
284
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").
WithLocation
(9, 67),
287
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2").
WithLocation
(9, 104),
290
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").
WithLocation
(10, 25),
293
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2").
WithLocation
(10, 58),
296
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DecimalConstant(0, 0, 0, 0, 0)").
WithLocation
(11, 44),
299
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DateTimeConstant(0)").
WithLocation
(11, 76),
302
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2").
WithLocation
(5, 47),
305
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "4").
WithLocation
(13, 61)
357
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DecimalConstantAttribute(0, 0, 0, 0, 0)").
WithLocation
(7, 40),
360
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C").WithArguments("C").
WithLocation
(6, 84),
363
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C").WithArguments("C").
WithLocation
(5, 43),
366
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DecimalConstantAttribute(0, 0, 0, 0, 0)").
WithLocation
(5, 48)
Emit\ResourceTests.cs (1)
908
Diagnostic(ErrorCode.ERR_CantReadResource).WithArguments("res", "Resource stream ended at 4 bytes, expected 6 bytes.").
WithLocation
(1, 1));
PDB\PDBSourceLinkTests.cs (1)
126
Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments("Error!").
WithLocation
(1, 1));
PDB\PDBTests.cs (4)
48
Diagnostic(ErrorCode.ERR_EncodinglessSyntaxTree, "class A { }").
WithLocation
(1, 1),
50
Diagnostic(ErrorCode.ERR_EncodinglessSyntaxTree, "class C { }").
WithLocation
(1, 1));
11413
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "G").WithArguments("C.G(out int)").
WithLocation
(9, 13),
11416
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "base").WithArguments("object", "1").
WithLocation
(13, 7));
PDB\PDBUsingTests.cs (12)
880
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Y = B::N;").
WithLocation
(5, 1),
883
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = A::N;").
WithLocation
(4, 1),
886
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Z = global::N;").
WithLocation
(6, 1));
2481
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "F<int>").WithArguments("F<>").
WithLocation
(6, 11),
2484
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "E").WithArguments("E", "A").
WithLocation
(5, 14),
2487
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInAgg, "D").WithArguments("D", "C").
WithLocation
(4, 13),
2490
Diagnostic(ErrorCode.ERR_BadExternAlias, "A").WithArguments("A").
WithLocation
(2, 14),
2493
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(3, 7),
2496
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Y = A::E;").
WithLocation
(5, 1),
2499
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using B;").
WithLocation
(3, 1),
2502
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = C.D;").
WithLocation
(4, 1),
2505
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Z = F<int>;").
WithLocation
(6, 1)
PDB\PortablePdbTests.cs (1)
385
Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments("Error!").
WithLocation
(1, 1));
PrivateProtected.cs (78)
42
Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field1").
WithLocation
(3, 26),
45
Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field2").
WithLocation
(4, 26),
48
Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field3").
WithLocation
(5, 36),
51
Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field4").
WithLocation
(6, 36),
54
Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field5").
WithLocation
(7, 34)
144
Diagnostic(ErrorCode.ERR_BadAccess, "Field1").WithArguments("Base.Field1").
WithLocation
(5, 9),
147
Diagnostic(ErrorCode.ERR_BadAccess, "Constant").WithArguments("Base.Constant").
WithLocation
(5, 18),
150
Diagnostic(ErrorCode.ERR_BadAccess, "Field2").WithArguments("Base.Field2").
WithLocation
(6, 9),
153
Diagnostic(ErrorCode.ERR_BadAccess, "Constant").WithArguments("Base.Constant").
WithLocation
(6, 18),
156
Diagnostic(ErrorCode.ERR_BadAccess, "Method").WithArguments("Base.Method()").
WithLocation
(7, 9),
159
Diagnostic(ErrorCode.ERR_BadAccess, "Event1").WithArguments("Base.Event1").
WithLocation
(8, 9),
162
Diagnostic(ErrorCode.ERR_BadAccess, "Event1 += null").WithArguments("Base.Event1.add").
WithLocation
(8, 9),
165
Diagnostic(ErrorCode.ERR_BadAccess, "Property1").WithArguments("Base.Property1").
WithLocation
(9, 9),
168
Diagnostic(ErrorCode.ERR_BadAccess, "Constant").WithArguments("Base.Constant").
WithLocation
(9, 21),
171
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "Property2").WithArguments("Base.Property2").
WithLocation
(10, 9),
174
Diagnostic(ErrorCode.ERR_BadAccess, "Constant").WithArguments("Base.Constant").
WithLocation
(10, 21),
177
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "string").
WithLocation
(11, 14),
180
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "this[string.Empty]").WithArguments("Base.this[string]").
WithLocation
(12, 9),
183
Diagnostic(ErrorCode.ERR_BadAccess, "base").WithArguments("Base.Base()").
WithLocation
(14, 22),
186
Diagnostic(ErrorCode.ERR_BadAccess, "Derived").WithArguments("Base.Base()").
WithLocation
(15, 5)
195
Diagnostic(ErrorCode.ERR_BadAccess, "Field1").WithArguments("Base.Field1").
WithLocation
(5, 9),
198
Diagnostic(ErrorCode.ERR_BadAccess, "Constant").WithArguments("Base.Constant").
WithLocation
(5, 18),
201
Diagnostic(ErrorCode.ERR_BadAccess, "Field2").WithArguments("Base.Field2").
WithLocation
(6, 9),
204
Diagnostic(ErrorCode.ERR_BadAccess, "Constant").WithArguments("Base.Constant").
WithLocation
(6, 18),
207
Diagnostic(ErrorCode.ERR_BadAccess, "Method").WithArguments("Base.Method()").
WithLocation
(7, 9),
210
Diagnostic(ErrorCode.ERR_BadAccess, "Event1").WithArguments("Base.Event1").
WithLocation
(8, 9),
213
Diagnostic(ErrorCode.ERR_BadAccess, "Event1 += null").WithArguments("Base.Event1.add").
WithLocation
(8, 9),
216
Diagnostic(ErrorCode.ERR_BadAccess, "Property1").WithArguments("Base.Property1").
WithLocation
(9, 9),
219
Diagnostic(ErrorCode.ERR_BadAccess, "Constant").WithArguments("Base.Constant").
WithLocation
(9, 21),
222
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "Property2").WithArguments("Base.Property2").
WithLocation
(10, 9),
225
Diagnostic(ErrorCode.ERR_BadAccess, "Constant").WithArguments("Base.Constant").
WithLocation
(10, 21),
228
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "string").
WithLocation
(11, 14),
231
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "this[string.Empty]").WithArguments("Base.this[string]").
WithLocation
(12, 9),
234
Diagnostic(ErrorCode.ERR_BadAccess, "base").WithArguments("Base.Base()").
WithLocation
(14, 22),
237
Diagnostic(ErrorCode.ERR_BadAccess, "Derived").WithArguments("Base.Base()").
WithLocation
(15, 5)
278
Diagnostic(ErrorCode.ERR_BadAccess, "Field1").WithArguments("Base.Field1").
WithLocation
(12, 11),
281
Diagnostic(ErrorCode.ERR_BadAccess, "Field2").WithArguments("Base.Field2").
WithLocation
(13, 11)
298
Diagnostic(ErrorCode.ERR_NoNamespacePrivate, "Struct").
WithLocation
(1, 26),
301
Diagnostic(ErrorCode.ERR_ProtectedInStruct, "Field1").WithArguments("Struct.Field1").
WithLocation
(3, 27)
322
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "Field2").WithArguments("D.Field2").
WithLocation
(7, 34),
325
Diagnostic(ErrorCode.ERR_ProtectedInStatic, "Field1").WithArguments("C.Field1").
WithLocation
(3, 34)
364
Diagnostic(ErrorCode.ERR_ProtectedInStruct, "Inner").WithArguments("Struct.Inner").
WithLocation
(23, 29),
367
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(11, 21),
370
Diagnostic(ErrorCode.ERR_BadAccess, "Inner").WithArguments("Outer.Inner").
WithLocation
(18, 15)
404
Diagnostic(ErrorCode.ERR_InvalidPropertyAccessMod, "set").WithArguments("Class.Prop1.set", "Class.Prop1").
WithLocation
(3, 58),
407
Diagnostic(ErrorCode.ERR_InvalidPropertyAccessMod, "set").WithArguments("Class.Prop2.set", "Class.Prop2").
WithLocation
(4, 48)
423
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M").WithArguments("private protected", "7.2", "8.0").
WithLocation
(3, 27),
426
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "M").
WithLocation
(3, 27)
472
Diagnostic(ErrorCode.ERR_BadVisParamType, "M2").WithArguments("Container.M2(Container.PrivateProtected)", "Container.PrivateProtected").
WithLocation
(6, 20),
475
Diagnostic(ErrorCode.ERR_BadVisParamType, "M1").WithArguments("Container.M1(Container.PrivateProtected)", "Container.PrivateProtected").
WithLocation
(5, 19)
502
Diagnostic(ErrorCode.ERR_BadMemberProtection, "C").
WithLocation
(7, 26),
505
Diagnostic(ErrorCode.ERR_BadMemberProtection, "S").
WithLocation
(8, 27),
508
Diagnostic(ErrorCode.ERR_BadMemberProtection, "E").
WithLocation
(9, 25),
511
Diagnostic(ErrorCode.ERR_BadMemberProtection, "I").
WithLocation
(11, 30),
514
Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field").
WithLocation
(4, 24),
517
Diagnostic(ErrorCode.ERR_BadMemberProtection, "Property").
WithLocation
(5, 24),
520
Diagnostic(ErrorCode.ERR_BadMemberProtection, "M").
WithLocation
(6, 24),
523
Diagnostic(ErrorCode.ERR_BadMemberProtection, "V").
WithLocation
(10, 40),
526
Diagnostic(ErrorCode.ERR_BadMemberProtection, "this").
WithLocation
(12, 24),
529
Diagnostic(ErrorCode.ERR_BadMemberProtection, "1").
WithLocation
(12, 43)
556
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "C").WithArguments("private protected", "7.2").
WithLocation
(7, 29),
559
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "S").WithArguments("private protected", "7.2").
WithLocation
(8, 30),
562
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "E").WithArguments("private protected", "7.2").
WithLocation
(9, 28),
565
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "I").WithArguments("private protected", "7.2").
WithLocation
(11, 33),
568
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "Field").WithArguments("private protected", "7.2").
WithLocation
(4, 27),
571
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "Property").WithArguments("private protected", "7.2").
WithLocation
(5, 27),
574
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "M").WithArguments("private protected", "7.2").
WithLocation
(6, 27),
577
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "V").WithArguments("private protected", "7.2").
WithLocation
(10, 43),
580
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "this").WithArguments("private protected", "7.2").
WithLocation
(12, 27)
620
Diagnostic(ErrorCode.ERR_PartialModifierConflict, "Inner").WithArguments("Outer.Inner").
WithLocation
(3, 37)
665
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "M").WithArguments("Base.M()", "Base", "Derived").
WithLocation
(16, 12),
668
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "M").WithArguments("Base.M()", "Other", "Derived").
WithLocation
(18, 15)
712
Diagnostic(ErrorCode.WRN_NewNotRequired, "F").WithArguments("B.F()").
WithLocation
(3, 14)
738
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.F()").
WithLocation
(1, 7)
765
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F").WithArguments("B.F()").
WithLocation
(3, 37),
768
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.F()").
WithLocation
(1, 7)
793
Diagnostic(ErrorCode.ERR_ProtectedInStatic, "SomeExtension").WithArguments("Extensions.SomeExtension(string)").
WithLocation
(4, 35),
796
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "SomeExtension").WithArguments("string", "SomeExtension").
WithLocation
(11, 11)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6018)
Attributes\AttributeTests.cs (275)
44
Diagnostic(ErrorCode.ERR_InvalidVersionFormat, "null").WithArguments("<null>").
WithLocation
(2, 55)
156
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "System.Type").
WithLocation
(3, 60)
163
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "System.Type").
WithLocation
(3, 60)
196
Diagnostic(ErrorCode.ERR_MissingTypeInSource, "RefersToLib").WithArguments("C").
WithLocation
(2, 12)
203
Diagnostic(ErrorCode.ERR_MissingTypeInSource, "RefersToLib").WithArguments("C").
WithLocation
(2, 12)
529
Diagnostic(ErrorCode.ERR_BadAttributeArgument, @"Mark(b: new string[] { ""Hello"", ""World"" }, a: true)").
WithLocation
(11, 2),
532
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "b").WithArguments("b").
WithLocation
(12, 7)
648
Diagnostic(ErrorCode.ERR_BadAccess, "A(1, 2, 3)").WithArguments("AAttribute.AAttribute(params int[])").
WithLocation
(9, 2));
680
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "M()").
WithLocation
(8, 11));
1060
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "i").WithArguments("i").
WithLocation
(10, 7),
1063
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "i").WithArguments("i").
WithLocation
(11, 7));
1714
Diagnostic(ErrorCode.WRN_AttributesOnBackingFieldsNotAvailable, "field:").WithArguments("7.2", "7.3").
WithLocation
(7, 6),
1717
Diagnostic(ErrorCode.WRN_AttributesOnBackingFieldsNotAvailable, "field:").WithArguments("7.2", "7.3").
WithLocation
(8, 6),
1720
Diagnostic(ErrorCode.WRN_AttributesOnBackingFieldsNotAvailable, "field:").WithArguments("7.2", "7.3").
WithLocation
(11, 6)
1975
Diagnostic(ErrorCode.ERR_StructOffsetOnBadField, "System.Runtime.InteropServices.FieldOffset").
WithLocation
(4, 13)
1993
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("System.Runtime.InteropServices.FieldOffset").
WithLocation
(4, 56),
1996
Diagnostic(ErrorCode.ERR_StructOffsetOnBadStruct, "System.Runtime.InteropServices.FieldOffset").
WithLocation
(4, 13)
2017
Diagnostic(ErrorCode.ERR_StructOffsetOnBadStruct, "FieldOffset").
WithLocation
(7, 13)
2037
Diagnostic(ErrorCode.ERR_StructOffsetOnBadStruct, "FieldOffset").
WithLocation
(6, 13)
2057
Diagnostic(ErrorCode.ERR_MissingStructOffset, "P").WithArguments("Test.P").
WithLocation
(7, 16)
2075
Diagnostic(ErrorCode.ERR_DoNotUseFixedBufferAttrOnProperty, "System.Runtime.CompilerServices.FixedBuffer").
WithLocation
(4, 13)
2093
Diagnostic(ErrorCode.ERR_ExplicitDynamicAttr, "System.Runtime.CompilerServices.DynamicAttribute()").
WithLocation
(4, 13)
2115
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "System.Runtime.CompilerServices.IsReadOnlyAttribute()").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(8, 13)
2137
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "System.Runtime.CompilerServices.IsByRefLikeAttribute()").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(8, 13)
2267
Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, @"System.Runtime.CompilerServices.TupleElementNamesAttribute(new[] { ""hello"" })").
WithLocation
(11, 13)
2336
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "property").
WithLocation
(9, 6),
2339
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "property").
WithLocation
(6, 6)
2360
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "method, return").
WithLocation
(6, 21),
2363
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "method, return").
WithLocation
(7, 22),
2366
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "method, return").
WithLocation
(8, 22)
2393
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "Single").WithArguments("Single").
WithLocation
(11, 13)
2469
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "A").WithArguments("A", "property, indexer").
WithLocation
(10, 13),
2472
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "A").WithArguments("A", "property, indexer").
WithLocation
(7, 13)
2501
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ClassAllowed").WithArguments("ClassAllowed", "class").
WithLocation
(14, 13),
2504
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ClassAllowed").WithArguments("ClassAllowed", "class").
WithLocation
(10, 13)
2531
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "property").
WithLocation
(10, 6),
2534
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "A").WithArguments("A", "property, indexer").
WithLocation
(13, 13),
2537
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "property").
WithLocation
(7, 6)
5596
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "XDoesNotExist").WithArguments("XDoesNotExistAttribute").
WithLocation
(33, 2),
5599
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "XDoesNotExist").WithArguments("XDoesNotExist").
WithLocation
(33, 2),
5602
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "X").WithArguments("d", "decimal").
WithLocation
(34, 2),
5605
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "X").WithArguments("d", "decimal").
WithLocation
(35, 2),
5608
Diagnostic(ErrorCode.ERR_AmbigCall, "X(A.dyn)").WithArguments("XAttribute.XAttribute(ref int)", "XAttribute.XAttribute(e1)").
WithLocation
(37, 2),
5611
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "X").WithArguments("d", "decimal").
WithLocation
(38, 2));
5703
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "@BaseAttribute").WithArguments("BaseAttribute").
WithLocation
(4, 2),
5706
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Derived").WithArguments("Derived", "struct, method, parameter").
WithLocation
(7, 6),
5709
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "Derived").WithArguments("Derived").
WithLocation
(8, 6),
5712
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "Base").WithArguments("Base").
WithLocation
(13, 6));
5745
Diagnostic(ErrorCode.ERR_AmbiguousAttribute, "X").WithArguments("X", "X", "XAttribute").
WithLocation
(10, 2));
5772
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "@X").WithArguments("X").
WithLocation
(13, 2));
5913
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "AttributeUsage").WithArguments("AttributeUsage", "class").
WithLocation
(4, 6),
5916
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "AttributeUsage").WithArguments("AttributeUsage", "class").
WithLocation
(6, 6),
5918
Diagnostic(ErrorCode.ERR_AttributeUsageOnNonAttributeClass, "AttributeUsage").WithArguments("AttributeUsage").
WithLocation
(9, 2));
5944
Diagnostic(ErrorCode.ERR_DuplicateNamedAttributeArgument, "AllowMultiple = false").WithArguments("AllowMultiple").
WithLocation
(3, 39),
5947
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "AttributeUsage(AllowMultiple = true, AllowMultiple = false)").WithArguments("validOn", "System.AttributeUsageAttribute.AttributeUsageAttribute(System.AttributeTargets)").
WithLocation
(3, 2)
5994
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Goo<int>").WithArguments("Goo<T>").
WithLocation
(2, 2),
5997
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Goo<int>").WithArguments("generic attributes", "11.0").
WithLocation
(2, 2));
6003
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Goo<int>").WithArguments("Goo<T>").
WithLocation
(2, 2));
6054
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Goo<int>").WithArguments("Goo<T>").
WithLocation
(2, 2),
6057
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Goo<int>").WithArguments("generic attributes", "11.0").
WithLocation
(2, 2));
6063
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Goo<int>").WithArguments("Goo<T>").
WithLocation
(2, 2));
6087
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "A").WithArguments("A", "class").
WithLocation
(2, 10),
6089
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "B").WithArguments("B", "method").
WithLocation
(1, 10));
6116
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "A").WithArguments("A", "class").
WithLocation
(11, 12),
6119
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "B").WithArguments("B", "method").
WithLocation
(1, 13));
6147
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "A").WithArguments("A", "struct").
WithLocation
(10, 2),
6149
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "B").WithArguments("B", "method").
WithLocation
(14, 2));
6177
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "A").WithArguments("A", "struct").
WithLocation
(11, 20),
6180
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "B").WithArguments("B", "method").
WithLocation
(14, 20));
6320
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new int[][] { new int[] { 1 } }").
WithLocation
(4, 4));
6348
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "My").WithArguments("x", "int[][*,*]").
WithLocation
(8, 2));
6405
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(E)").
WithLocation
(14, 12),
6408
Diagnostic(ErrorCode.ERR_AttrArgWithTypeVars, "typeof(E2)").WithArguments("C<T>.E2").
WithLocation
(17, 12));
6426
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "var").WithArguments("varAttribute").
WithLocation
(2, 2),
6429
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "var").WithArguments("var").
WithLocation
(2, 2));
6466
Diagnostic(ErrorCode.ERR_NamedArgumentExpected, "1").
WithLocation
(7, 27),
6469
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "1").WithArguments("7.2").
WithLocation
(8, 17),
6472
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "z").WithArguments("z").
WithLocation
(8, 11),
6475
Diagnostic(ErrorCode.ERR_NamedArgumentExpected, "5").
WithLocation
(9, 24),
6478
Diagnostic(ErrorCode.ERR_NamedArgumentExpected, "0").
WithLocation
(10, 15),
6481
Diagnostic(ErrorCode.ERR_NamedArgumentExpected, "0").
WithLocation
(11, 18)
6516
Diagnostic(ErrorCode.ERR_BadArgType, "Invoke").WithArguments("1", "method group", "int").
WithLocation
(11, 8),
6519
Diagnostic(ErrorCode.ERR_BadArgType, "Invoke").WithArguments("1", "method group", "int").
WithLocation
(14, 22));
7085
Diagnostic(ErrorCode.ERR_AmbiguousAttribute, "A").WithArguments("A", "A1", "A2").
WithLocation
(5, 2));
7110
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new B()").
WithLocation
(8, 16),
7112
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new B()").
WithLocation
(10, 12),
7114
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new B()").
WithLocation
(11, 19));
7132
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(E)").
WithLocation
(7, 19),
7135
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(E)").
WithLocation
(7, 31)
7154
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(E)").
WithLocation
(7, 19),
7157
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(E)").
WithLocation
(7, 31),
7160
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(E)").
WithLocation
(7, 60),
7163
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(E)").
WithLocation
(7, 72)
7181
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new decimal()").
WithLocation
(2, 8));
7361
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "Goo6").WithArguments("C.Goo6<T>()").
WithLocation
(25, 25),
7364
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Goo2").WithArguments("Goo2", "C").
WithLocation
(11, 17),
7367
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Goo3").WithArguments("C", "Goo3").
WithLocation
(15, 17),
7370
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "A").WithArguments("A").
WithLocation
(18, 34),
7373
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "A").WithArguments("A").
WithLocation
(25, 34),
7376
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "A").WithArguments("A").
WithLocation
(7, 30),
7379
Diagnostic(ErrorCode.WRN_UnreferencedField, "Goo3").WithArguments("C.Goo3").
WithLocation
(15, 17));
7420
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "Goo6").WithArguments("C.Goo6(int)").
WithLocation
(25, 25),
7423
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Goo2").WithArguments("Goo2", "C").
WithLocation
(11, 17),
7426
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Goo3").WithArguments("C", "Goo3").
WithLocation
(15, 17),
7429
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "A").WithArguments("A").
WithLocation
(18, 41),
7432
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "A").WithArguments("A").
WithLocation
(25, 34),
7435
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "A").WithArguments("A").
WithLocation
(6, 37),
7438
Diagnostic(ErrorCode.WRN_UnreferencedField, "Goo3").WithArguments("C.Goo3").
WithLocation
(15, 17));
7589
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TypeAttribute").WithArguments("TypeAttributeAttribute").
WithLocation
(4, 6),
7592
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TypeAttribute").WithArguments("TypeAttribute").
WithLocation
(4, 6),
7595
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "L1").WithArguments("L1").
WithLocation
(4, 27),
7598
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Fld6").WithArguments("Gen<T>.Fld6", "").
WithLocation
(4, 55));
7626
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "System.Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(3, 16),
7629
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Gen").WithArguments("Gen<T>").
WithLocation
(5, 2),
7632
Diagnostic(ErrorCode.ERR_BadArity, "Gen2").WithArguments("Gen2<T>", "type", "1").
WithLocation
(6, 2));
7664
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Gen").WithArguments("Gen<T>").
WithLocation
(6, 2),
7667
Diagnostic(ErrorCode.ERR_BadArity, "Gen2").WithArguments("Gen2<T>", "type", "1").
WithLocation
(7, 2),
7670
Diagnostic(ErrorCode.ERR_BadArity, "Gen2").WithArguments("Gen2<T>", "type", "1").
WithLocation
(8, 2),
7673
Diagnostic(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, "Gen2<U>").WithArguments("U").
WithLocation
(9, 2),
7676
Diagnostic(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, "Gen2<System.Collections.Generic.List<U>>").WithArguments("U").
WithLocation
(10, 2),
7679
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "Gen2<System.Collections.Generic.List<U>>").WithArguments("Gen2<>").
WithLocation
(10, 2),
7682
Diagnostic(ErrorCode.ERR_BadArity, "Gen3").WithArguments("Gen3<T>", "type", "1").
WithLocation
(11, 2));
7708
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Gen").WithArguments("Gen<T>").
WithLocation
(2, 2),
7711
Diagnostic(ErrorCode.ERR_BadArity, "Gen2").WithArguments("Gen2<T>", "type", "1").
WithLocation
(3, 2));
7718
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Gen").WithArguments("Gen<T>").
WithLocation
(2, 2),
7721
Diagnostic(ErrorCode.ERR_BadArity, "Gen2").WithArguments("Gen2<T>", "type", "1").
WithLocation
(3, 2));
7813
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new Array[] { new[] { 1 } }").
WithLocation
(4, 8));
7831
Diagnostic(ErrorCode.ERR_BadAttributeArgument, @"(int)(object)""ABC""").
WithLocation
(3, 4));
7856
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "(object[])(object)( new [] { 1 })").
WithLocation
(3, 4),
7859
Diagnostic(ErrorCode.ERR_BadAttributeArgument, @"(object[])(object)(new string[] { ""a"", null })").
WithLocation
(9, 4));
7902
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "C<T>.E.V").
WithLocation
(11, 12));
7962
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgumentType, "d").WithArguments("d").
WithLocation
(14, 9));
8132
Diagnostic(ErrorCode.ERR_BadUsingNamespace, "System").WithArguments("System").
WithLocation
(2, 7),
8284
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "B").WithArguments("", "N1.B", "A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "N1.B").
WithLocation
(14, 2),
8287
Diagnostic(ErrorCode.ERR_AmbigContext, "C").WithArguments("C", "N2.C", "N1.C").
WithLocation
(15, 2));
8314
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "A").WithArguments("A").
WithLocation
(4, 2),
8317
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "B").WithArguments("B<U>").
WithLocation
(5, 2),
8320
Diagnostic(ErrorCode.ERR_BadArity, "C").WithArguments("C<U>", "type", "1").
WithLocation
(6, 2));
8345
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "IndexerName").WithArguments("IndexerName").
WithLocation
(6, 3));
8598
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "A<>").WithArguments("A", "type").
WithLocation
(4, 2),
8601
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "A<>").WithArguments("generic attributes", "11.0").
WithLocation
(4, 2),
8604
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "A<int>").WithArguments("A", "type").
WithLocation
(5, 2),
8607
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "A<int>").WithArguments("generic attributes", "11.0").
WithLocation
(5, 2),
8610
Diagnostic(ErrorCode.ERR_BadArity, "B").WithArguments("B<T>", "type", "1").
WithLocation
(6, 2),
8613
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "B<>").
WithLocation
(7, 2),
8616
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "B<>").WithArguments("generic attributes", "11.0").
WithLocation
(7, 2),
8619
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "B<int>").WithArguments("generic attributes", "11.0").
WithLocation
(8, 2),
8622
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "B<int>").WithArguments("B<>").
WithLocation
(8, 2),
8625
Diagnostic(ErrorCode.ERR_BadArity, "C").WithArguments("C<T, U>", "type", "2").
WithLocation
(9, 2),
8628
Diagnostic(ErrorCode.ERR_BadArity, "C<>").WithArguments("C<T, U>", "type", "2").
WithLocation
(10, 2),
8631
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "C<>").WithArguments("generic attributes", "11.0").
WithLocation
(10, 2),
8634
Diagnostic(ErrorCode.ERR_BadArity, "C<int>").WithArguments("C<T, U>", "type", "2").
WithLocation
(11, 2),
8637
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "C<int>").WithArguments("generic attributes", "11.0").
WithLocation
(11, 2),
8640
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "C<,>").
WithLocation
(12, 2),
8643
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "C<,>").WithArguments("generic attributes", "11.0").
WithLocation
(12, 2),
8646
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "C<int, int>").WithArguments("generic attributes", "11.0").
WithLocation
(13, 2),
8649
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "C<int, int>").WithArguments("C<,>").
WithLocation
(13, 2),
8652
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(22, 21),
8655
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(26, 24));
8661
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "A<>").WithArguments("A", "type").
WithLocation
(4, 2),
8664
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "A<int>").WithArguments("A", "type").
WithLocation
(5, 2),
8667
Diagnostic(ErrorCode.ERR_BadArity, "B").WithArguments("B<T>", "type", "1").
WithLocation
(6, 2),
8670
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "B<>").
WithLocation
(7, 2),
8673
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "B<int>").WithArguments("B<>").
WithLocation
(8, 2),
8676
Diagnostic(ErrorCode.ERR_BadArity, "C").WithArguments("C<T, U>", "type", "2").
WithLocation
(9, 2),
8679
Diagnostic(ErrorCode.ERR_BadArity, "C<>").WithArguments("C<T, U>", "type", "2").
WithLocation
(10, 2),
8682
Diagnostic(ErrorCode.ERR_BadArity, "C<int>").WithArguments("C<T, U>", "type", "2").
WithLocation
(11, 2),
8685
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "C<,>").
WithLocation
(12, 2),
8688
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "C<int, int>").WithArguments("C<,>").
WithLocation
(13, 2));
8715
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(12, 21),
8718
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "Alias<>").WithArguments("Alias", "using alias").
WithLocation
(6, 2),
8721
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "Alias<int>").WithArguments("Alias", "using alias").
WithLocation
(7, 2),
8724
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Alias").WithArguments("generic attributes", "11.0").
WithLocation
(5, 2),
8727
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Alias<>").WithArguments("generic attributes", "11.0").
WithLocation
(6, 2),
8730
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Alias<int>").WithArguments("generic attributes", "11.0").
WithLocation
(7, 2));
8736
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "Alias<>").WithArguments("Alias", "using alias").
WithLocation
(6, 2),
8739
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "Alias<int>").WithArguments("Alias", "using alias").
WithLocation
(7, 2));
8777
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Alias").WithArguments("generic attributes", "11.0").
WithLocation
(4, 2),
8780
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "Alias<>").WithArguments("Alias", "using alias").
WithLocation
(5, 2),
8783
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Alias<>").WithArguments("generic attributes", "11.0").
WithLocation
(5, 2),
8786
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "Alias<int>").WithArguments("Alias", "using alias").
WithLocation
(6, 2),
8789
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Alias<int>").WithArguments("generic attributes", "11.0").
WithLocation
(6, 2));
8797
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "Alias<>").WithArguments("Alias", "using alias").
WithLocation
(5, 2),
8800
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "Alias<int>").WithArguments("Alias", "using alias").
WithLocation
(6, 2));
8832
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "InnerAlias").WithArguments("Outer<int>.Inner").
WithLocation
(5, 2),
8835
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "InnerAlias").WithArguments("generic attributes", "11.0").
WithLocation
(5, 2),
8838
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Inner").WithArguments("Outer<int>.Inner").
WithLocation
(8, 17),
8841
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "OuterAlias.Inner").WithArguments("generic attributes", "11.0").
WithLocation
(8, 6));
8847
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "InnerAlias").WithArguments("Outer<int>.Inner").
WithLocation
(5, 2),
8850
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Inner").WithArguments("Outer<int>.Inner").
WithLocation
(8, 17));
9725
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "xyz").WithArguments("xyz").
WithLocation
(10, 18));
9742
Diagnostic(ErrorCode.ERR_ModuleEmitFailure).WithArguments("Test.dll", "Module has invalid attributes.").
WithLocation
(1, 1));
9750
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CSharp").WithArguments("xyz").
WithLocation
(2, 35));
9757
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CSharp").WithArguments("xyz").
WithLocation
(2, 35));
9795
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "Command").WithArguments("Fx", "a.Class1.CommandAttribute.FxCommand").
WithLocation
(22, 4));
9829
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "C.M(null)").
WithLocation
(20, 6));
9855
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M").WithArguments("C.M()").
WithLocation
(12, 20),
9858
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M").WithArguments("C.M()").
WithLocation
(13, 24)
9879
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "F").WithArguments("C.F()").
WithLocation
(7, 35),
9882
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "F").
WithLocation
(8, 28)
9917
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate, "F").WithArguments("C.F()").
WithLocation
(8, 35),
9920
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "F").
WithLocation
(9, 28)
9969
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "System.Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(2, 14)
10091
Diagnostic(ErrorCode.ERR_AmbiguousAttribute, "A<int>").WithArguments("A<>", "A<T>", "AAttribute<T>").
WithLocation
(5, 2)
10098
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "System.Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(2, 30),
10101
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "System.Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(3, 21),
10104
Diagnostic(ErrorCode.ERR_AmbiguousAttribute, "A<int>").WithArguments("A<>", "A<T>", "AAttribute<T>").
WithLocation
(5, 2),
10107
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "A<int>").WithArguments("generic attributes", "11.0").
WithLocation
(5, 2));
10127
Diagnostic(ErrorCode.ERR_AmbiguousAttribute, "@A<int>").WithArguments("A<>", "A<T>", "AAttribute<T>").
WithLocation
(5, 2)
10134
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "System.Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(2, 30),
10137
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "System.Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(3, 21),
10140
Diagnostic(ErrorCode.ERR_AmbiguousAttribute, "@A<int>").WithArguments("A<>", "A<T>", "AAttribute<T>").
WithLocation
(5, 2),
10143
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "@A<int>").WithArguments("generic attributes", "11.0").
WithLocation
(5, 2),
10146
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "AAttribute<int>").WithArguments("generic attributes", "11.0").
WithLocation
(6, 2));
10165
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "System.Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(2, 21));
10236
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "System.Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(4, 26));
10262
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "object").WithArguments("C<T>", "T", "object").
WithLocation
(4, 4));
10280
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "System.Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(2, 21),
10283
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "C<ERROR>").WithArguments("generic attributes", "11.0").
WithLocation
(4, 2),
10286
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(4, 4),
10289
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "C<System>").WithArguments("generic attributes", "11.0").
WithLocation
(5, 2),
10292
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "C<System>").WithArguments("C<>").
WithLocation
(5, 2),
10295
Diagnostic(ErrorCode.ERR_BadSKknown, "System").WithArguments("System", "namespace", "type").
WithLocation
(5, 4),
10298
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "C<>").
WithLocation
(6, 2),
10301
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "C<>").WithArguments("generic attributes", "11.0").
WithLocation
(6, 2),
10304
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "C<>").WithArguments("C<>").
WithLocation
(6, 2));
10310
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(4, 4),
10313
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "C<System>").WithArguments("C<>").
WithLocation
(5, 2),
10316
Diagnostic(ErrorCode.ERR_BadSKknown, "System").WithArguments("System", "namespace", "type").
WithLocation
(5, 4),
10319
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "C<>").
WithLocation
(6, 2),
10322
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "C<>").WithArguments("C<>").
WithLocation
(6, 2));
10364
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "Attr<object>").WithArguments("Attr<>").
WithLocation
(8, 2),
10367
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "Attr<int>").WithArguments("Attr<>").
WithLocation
(9, 2));
10493
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "Attr<dynamic>").WithArguments("dynamic").
WithLocation
(10, 2),
10496
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "Attr<List<dynamic>>").WithArguments("dynamic").
WithLocation
(11, 2),
10499
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "Attr<nint>").WithArguments("nint").
WithLocation
(12, 2),
10502
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "Attr<List<nint>>").WithArguments("nint").
WithLocation
(13, 2),
10505
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "Attr<string?>").WithArguments("string").
WithLocation
(14, 2),
10508
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "Attr<List<string?>>").WithArguments("string").
WithLocation
(15, 2),
10511
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "Attr<(int a, int b)>").WithArguments("(int a, int b)").
WithLocation
(16, 2),
10514
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "Attr<List<(int a, int b)>>").WithArguments("(int a, int b)").
WithLocation
(17, 2),
10517
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "Attr<(int a, string? b)>").WithArguments("(int a, string? b)").
WithLocation
(18, 2));
10540
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(5, 7),
10543
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(5, 7),
10546
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(8, 7),
10549
Diagnostic(ErrorCode.ERR_BadTypeArgument, "delegate*<int, void>").WithArguments("delegate*<int, void>").
WithLocation
(8, 7),
10552
Diagnostic(ErrorCode.ERR_BadTypeArgument, "TypedReference").WithArguments("System.TypedReference").
WithLocation
(11, 7));
10578
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(7, 11),
10581
Diagnostic(ErrorCode.ERR_BadTypeArgument, "delegate*<int, void>").WithArguments("delegate*<int, void>").
WithLocation
(10, 11),
10584
Diagnostic(ErrorCode.ERR_BadTypeArgument, "TypedReference").WithArguments("System.TypedReference").
WithLocation
(13, 11));
10601
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(5, 7));
10607
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(5, 7));
10745
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C.M2()").
WithLocation
(15, 18));
10804
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M").
WithLocation
(8, 26),
10807
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "I1").WithArguments("I1", "I1.M()").
WithLocation
(18, 8),
10810
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "I1").WithArguments("I1", "I1.M()").
WithLocation
(19, 8),
10813
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "I2").WithArguments("I2", "I1.M()").
WithLocation
(22, 8),
10816
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "I2").WithArguments("I2", "I1.M()").
WithLocation
(23, 8)
10876
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(T2)").
WithLocation
(7, 26),
10879
Diagnostic(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, "Attr<T2>").WithArguments("T2").
WithLocation
(10, 6),
10882
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(T2)").
WithLocation
(10, 22));
10980
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(T2)").
WithLocation
(7, 19),
10983
Diagnostic(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, "Attr<T2>").WithArguments("T2").
WithLocation
(10, 6),
10986
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "default(T2)").
WithLocation
(10, 15));
11134
Diagnostic(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, "Attr<T>").WithArguments("T").
WithLocation
(6, 6),
11137
Diagnostic(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, "AttrContainer<T>.Attr").WithArguments("T").
WithLocation
(11, 6),
11140
Diagnostic(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, "AttrContainer<T>.B.Attr").WithArguments("T").
WithLocation
(16, 6),
11143
Diagnostic(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, "Attr<T[]>").WithArguments("T").
WithLocation
(21, 6));
11178
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "A<(int A, int B)>.B").WithArguments("(int A, int B)").
WithLocation
(4, 2),
11181
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "global::A<(int A, int B)>.B").WithArguments("(int A, int B)").
WithLocation
(9, 2),
11184
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "A<(int A, int B)[]>.B").WithArguments("(int A, int B)").
WithLocation
(14, 2));
11214
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "A<(int A, int B)>.B").WithArguments("(int A, int B)").
WithLocation
(4, 2),
11217
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "global::A<(int A, int B)>.B").WithArguments("(int A, int B)").
WithLocation
(9, 2));
11242
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "N2::A<(int A, int B)>.B").WithArguments("(int A, int B)").
WithLocation
(4, 2));
11267
Diagnostic(ErrorCode.ERR_AttrDependentTypeNotAllowed, "AB").WithArguments("(int A, int B)").
WithLocation
(4, 2));
Attributes\AttributeTests_Assembly.cs (12)
102
Diagnostic(ErrorCode.ERR_InvalidVersionFormat, @"""1.*""").WithArguments("1.*").
WithLocation
(1, 46));
109
Diagnostic(ErrorCode.ERR_InvalidVersionFormat, @"""-1""").WithArguments("-1").
WithLocation
(1, 46));
121
Diagnostic(ErrorCode.ERR_InvalidVersionFormatDeterministic, @"""1.1.1.*""").WithArguments("1.1.1.*").
WithLocation
(1, 46)
134
Diagnostic(ErrorCode.ERR_InvalidVersionFormat, "null").WithArguments("<null>").
WithLocation
(1, 46)
177
Diagnostic(ErrorCode.WRN_InvalidVersionFormat, @"""1.2.*""").WithArguments("1.2.*").
WithLocation
(1, 50)
196
Diagnostic(ErrorCode.WRN_InvalidVersionFormat, "null").WithArguments("<null>").
WithLocation
(1, 50)
209
Diagnostic(ErrorCode.WRN_InvalidVersionFormat, @"""1.65536""").WithArguments("1.65536").
WithLocation
(1, 50)
230
Diagnostic(ErrorCode.ERR_InvalidVersionFormat2, @"""1.2.3.A""").WithArguments("1.2.3.A").
WithLocation
(1, 63)
239
Diagnostic(ErrorCode.ERR_InvalidVersionFormat2, @"""1.2.*""").WithArguments("1.2.*").
WithLocation
(1, 63)
257
Diagnostic(ErrorCode.ERR_InvalidVersionFormat2, "null").WithArguments("<null>").
WithLocation
(1, 63)
338
Diagnostic(ErrorCode.ERR_InvalidAssemblyCultureForExe, @"""pt-BR""").
WithLocation
(1, 46));
365
Diagnostic(ErrorCode.ERR_InvalidAssemblyCulture, @"""\0""").
WithLocation
(1, 55));
Attributes\AttributeTests_CallerInfoAttributes.cs (93)
207
Diagnostic(ErrorCode.ERR_BadCallerArgumentExpressionParamWithoutDefaultValue, "CallerArgumentExpression").
WithLocation
(29, 22),
210
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "EndInvoke").WithArguments("s1", "Program.D.EndInvoke(ref string, System.IAsyncResult)").
WithLocation
(38, 11)
263
Diagnostic(ErrorCode.ERR_BadCallerArgumentExpressionParamWithoutDefaultValue, "CallerArgumentExpression").
WithLocation
(28, 33),
266
Diagnostic(ErrorCode.ERR_RefOutDefaultValue, "ref").
WithLocation
(28, 63),
269
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "EndInvoke").WithArguments("s2", "Program.D.EndInvoke(ref string, System.IAsyncResult)").
WithLocation
(38, 11));
322
Diagnostic(ErrorCode.ERR_BadCallerArgumentExpressionParamWithoutDefaultValue, "CallerArgumentExpression").
WithLocation
(29, 33),
325
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "EndInvoke").WithArguments("s2", "Program.D.EndInvoke(ref string, System.IAsyncResult)").
WithLocation
(39, 11));
379
Diagnostic(ErrorCode.WRN_CallerArgumentExpressionAttributeHasInvalidParameterName, "CallerArgumentExpression").WithArguments("s2").
WithLocation
(29, 33)
771
Diagnostic(ErrorCode.WRN_CallerArgumentExpressionAttributeHasInvalidParameterName, "CallerArgumentExpression").WithArguments("arg").
WithLocation
(12, 22)
800
Diagnostic(ErrorCode.WRN_CallerMemberNamePreferredOverCallerArgumentExpression, "CallerArgumentExpression").WithArguments("arg").
WithLocation
(12, 29)
829
Diagnostic(ErrorCode.WRN_CallerMemberNamePreferredOverCallerArgumentExpression, "CallerArgumentExpression").WithArguments("arg").
WithLocation
(12, 29)
858
Diagnostic(ErrorCode.ERR_NoImplicitConv, "Log(default(int))").WithArguments("int", "string").
WithLocation
(9, 9),
861
Diagnostic(ErrorCode.WRN_CallerLineNumberPreferredOverCallerArgumentExpression, "CallerArgumentExpression").WithArguments("arg").
WithLocation
(12, 29),
864
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").WithArguments("int", "string").
WithLocation
(12, 59)
893
Diagnostic(ErrorCode.ERR_NoImplicitConv, "Log(default(int))").WithArguments("int", "string").
WithLocation
(9, 9),
896
Diagnostic(ErrorCode.WRN_CallerLineNumberPreferredOverCallerArgumentExpression, "CallerArgumentExpression").WithArguments("arg").
WithLocation
(12, 29),
899
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").WithArguments("int", "string").
WithLocation
(12, 59)
928
Diagnostic(ErrorCode.ERR_NoConversionForCallerArgumentExpressionParam, "CallerArgumentExpression").WithArguments("string", "int").
WithLocation
(12, 29)
957
Diagnostic(ErrorCode.ERR_NoConversionForCallerArgumentExpressionParam, "CallerArgumentExpression").WithArguments("string", "int").
WithLocation
(12, 29)
986
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Log").WithArguments("arg", "Program.Log(int, string)").
WithLocation
(9, 9),
989
Diagnostic(ErrorCode.ERR_BadCallerArgumentExpressionParamWithoutDefaultValue, "CallerArgumentExpression").
WithLocation
(12, 29)
1018
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Log").WithArguments("arg", "Program.Log(int, string)").
WithLocation
(9, 9),
1021
Diagnostic(ErrorCode.ERR_BadCallerArgumentExpressionParamWithoutDefaultValue, "CallerArgumentExpression").
WithLocation
(12, 29)
1102
Diagnostic(ErrorCode.ERR_NoConversionForCallerArgumentExpressionParam, "CallerArgumentExpression").WithArguments("string", "C").
WithLocation
(19, 29)
1181
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "first").WithArguments("first").
WithLocation
(29, 14),
1184
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "last").WithArguments("last").
WithLocation
(29, 21),
1187
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "p").WithArguments("Person", "2").
WithLocation
(29, 29)
1351
Diagnostic(ErrorCode.WRN_CallerArgumentExpressionAttributeSelfReferential, "CallerArgumentExpression").WithArguments("p").
WithLocation
(11, 10)
1617
Diagnostic(ErrorCode.WRN_CallerArgumentExpressionAttributeHasInvalidParameterName, "CallerArgumentExpression").WithArguments("arg").
WithLocation
(9, 25)
1652
Diagnostic(ErrorCode.WRN_CallerMemberNamePreferredOverCallerArgumentExpression, "CallerArgumentExpression").WithArguments("arg").
WithLocation
(9, 32)
1854
Diagnostic(ErrorCode.WRN_CallerArgumentExpressionAttributeSelfReferential, "CallerArgumentExpression").WithArguments("p").
WithLocation
(10, 10)
2241
Diagnostic(ErrorCode.ERR_NoConversionForCallerArgumentExpressionParam, "CallerArgumentExpression").WithArguments("string", "int").
WithLocation
(8, 36)
2549
Diagnostic(ErrorCode.ERR_BadCallerLineNumberParamWithoutDefaultValue, @"CallerLineNumber").
WithLocation
(5, 38),
2553
Diagnostic(ErrorCode.ERR_BadCallerFilePathParamWithoutDefaultValue, @"CallerFilePath").
WithLocation
(7, 36),
2557
Diagnostic(ErrorCode.ERR_BadCallerMemberNameParamWithoutDefaultValue, @"CallerMemberName").
WithLocation
(9, 38));
2786
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(5, 39).WithArguments("int", "string"),
2787
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(6, 39).WithArguments("int", "char"),
2788
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(7, 39).WithArguments("int", "bool"),
2789
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(8, 39).WithArguments("int", "short"),
2790
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(9, 39).WithArguments("int", "ushort"),
2792
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(11, 37).WithArguments("string", "int"),
2793
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(12, 37).WithArguments("string", "long"),
2794
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(13, 37).WithArguments("string", "double"),
2795
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(14, 37).WithArguments("string", "float"),
2796
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(15, 37).WithArguments("string", "int?"),
2798
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(17, 39).WithArguments("string", "int"),
2799
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(18, 39).WithArguments("string", "long"),
2800
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(19, 39).WithArguments("string", "double"),
2801
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(20, 39).WithArguments("string", "float"),
2802
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(21, 39).WithArguments("string", "int?"));
3198
Diagnostic(ErrorCode.WRN_CallerLineNumberParamForUnconsumedLocation, "CallerLineNumber").WithArguments("x").
WithLocation
(11, 23));
3311
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(7, 48).WithArguments("string", "int"),
3312
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(7, 64).WithArguments("string", "int"),
3313
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(8, 48).WithArguments("string", "int"),
3314
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(8, 66).WithArguments("string", "int"),
3315
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(9, 30).WithArguments("string", "int"),
3316
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(9, 66).WithArguments("string", "int"),
3317
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(10, 30).WithArguments("string", "int"),
3318
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(10, 48).WithArguments("string", "int"),
3319
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(11, 30).WithArguments("string", "int"),
3320
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(11, 46).WithArguments("string", "int"),
3321
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(12, 30).WithArguments("string", "int"),
3322
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(12, 64).WithArguments("string", "int"),
3324
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(14, 30).WithArguments("int", "string"),
3325
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(15, 30).WithArguments("int", "string"),
3326
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(16, 48).WithArguments("int", "string"),
3327
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(17, 65).WithArguments("int", "string"),
3328
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(18, 65).WithArguments("int", "string"),
3329
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(19, 47).WithArguments("int", "string"),
3331
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(24, 31).WithArguments("int", "string"),
3332
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(25, 47).WithArguments("int", "string"),
3334
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(27, 49).WithArguments("int", "string"),
3335
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").
WithLocation
(28, 31).WithArguments("int", "string"),
3337
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(30, 31).WithArguments("string", "int"),
3338
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(30, 47).WithArguments("string", "int"),
3339
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(31, 31).WithArguments("string", "int"),
3340
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(31, 49).WithArguments("string", "int"),
3342
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(33, 49).WithArguments("string", "int"),
3343
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").
WithLocation
(34, 31).WithArguments("string", "int"),
3345
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(36, 31).WithArguments("string", "int"),
3346
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").
WithLocation
(37, 49).WithArguments("string", "int"));
3443
Diagnostic(ErrorCode.WRN_CallerLineNumberParamForUnconsumedLocation, "CallerLineNumber").WithArguments("x").
WithLocation
(11, 23));
3477
Diagnostic(ErrorCode.WRN_CallerMemberNameParamForUnconsumedLocation, "CallerMemberName").WithArguments("x").
WithLocation
(12, 23));
5282
Diagnostic(ErrorCode.ERR_NoConversionForCallerFilePathParam, "CallerFilePath").WithArguments("string", "int").
WithLocation
(7, 38),
5285
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").WithArguments("string", "int").
WithLocation
(7, 53),
5288
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").WithArguments("int", "string").
WithLocation
(8, 21),
5291
Diagnostic(ErrorCode.WRN_CallerLineNumberPreferredOverCallerFilePath, "CallerFilePath").WithArguments("s").
WithLocation
(8, 38),
5294
Diagnostic(ErrorCode.WRN_CallerLineNumberPreferredOverCallerMemberName, "CallerMemberName").WithArguments("s").
WithLocation
(8, 53),
5297
Diagnostic(ErrorCode.ERR_NoImplicitConv, "M2()").WithArguments("int", "string").
WithLocation
(13, 9));
5771
Diagnostic(ErrorCode.ERR_BadCallerArgumentExpressionParamWithoutDefaultValue, "CallerArgumentExpression").
WithLocation
(5, 16)
5793
Diagnostic(ErrorCode.ERR_BadCallerArgumentExpressionParamWithoutDefaultValue, "CallerArgumentExpression").
WithLocation
(5, 16),
5796
Diagnostic(ErrorCode.ERR_RefOutDefaultValue, refType).
WithLocation
(5, 47)
5837
Diagnostic(ErrorCode.ERR_BadCallerArgumentExpressionParamWithoutDefaultValue, "CallerArgumentExpression").
WithLocation
(5, 51));
Attributes\AttributeTests_Conditional.cs (1)
708
Diagnostic(ErrorCode.ERR_BadArgumentToAttribute, "null").WithArguments("Conditional").
WithLocation
(5, 18));
Attributes\AttributeTests_Dynamic.cs (105)
566
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(6, 31),
569
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(14, 32),
572
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(8, 38),
575
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(10, 44),
578
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(26, 37),
581
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(78, 17),
584
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(78, 38),
587
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(30, 33),
590
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(30, 54),
593
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(30, 74),
596
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(30, 102),
599
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(30, 122),
602
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(71, 58),
605
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(71, 79),
608
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(71, 99),
611
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(71, 132),
614
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(71, 152),
617
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(75, 25),
620
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(75, 40),
623
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(37, 18),
626
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(38, 18),
629
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(39, 18),
632
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(40, 18),
635
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(54, 30),
638
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(54, 19),
641
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(55, 34),
644
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(55, 19),
647
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(56, 32),
650
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(56, 19),
653
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(57, 136),
656
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(57, 157),
659
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(57, 177),
662
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(57, 205),
665
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(57, 225),
668
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(57, 25),
671
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(57, 46),
674
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(57, 66),
677
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(57, 94),
680
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(57, 114),
683
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(59, 19),
686
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(60, 25),
689
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(60, 46),
692
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(60, 66),
695
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(60, 94),
698
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(60, 114),
701
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(62, 25),
704
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(62, 12),
707
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(68, 50),
710
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(68, 67),
713
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(68, 20),
716
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(68, 37),
719
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(34, 19),
722
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(35, 19),
725
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(42, 52),
728
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(43, 18),
731
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(44, 24),
734
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(44, 42),
737
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(44, 58),
740
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(45, 27),
743
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(45, 36),
746
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(46, 50),
749
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(46, 68),
752
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(47, 18),
755
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(47, 57),
758
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(48, 18),
761
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(48, 33),
764
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(48, 42),
767
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(48, 62),
770
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(50, 18),
773
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(50, 39),
776
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(50, 63),
779
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(51, 18),
782
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(51, 39),
785
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(51, 57),
788
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(51, 83),
791
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(51, 105),
794
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(52, 25),
797
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(52, 46),
800
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(52, 66),
803
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(52, 94),
806
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(52, 114),
809
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(33, 19)
874
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(21, 5)
933
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "X").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(20, 1));
947
Diagnostic(ErrorCode.ERR_FeatureInPreview, "dynamic[]").WithArguments("using type alias").
WithLocation
(1, 11),
950
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "X").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(20, 1));
1051
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "dynamic").WithArguments("dynamicAttribute").
WithLocation
(2, 2),
1054
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "dynamic").WithArguments("dynamic").
WithLocation
(2, 2),
1057
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "dynamic").WithArguments("dynamicAttribute").
WithLocation
(6, 6),
1060
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "dynamic").WithArguments("dynamic").
WithLocation
(6, 6),
1063
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "dynamic").WithArguments("dynamicAttribute").
WithLocation
(5, 14),
1066
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "dynamic").WithArguments("dynamic").
WithLocation
(5, 14),
1069
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "dynamic").WithArguments("dynamicAttribute").
WithLocation
(7, 26),
1072
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "dynamic").WithArguments("dynamic").
WithLocation
(7, 26));
1317
Diagnostic(ErrorCode.ERR_BadDynamicTypeof, "typeof(dynamic)").
WithLocation
(2, 7),
1320
Diagnostic(ErrorCode.ERR_BadDynamicTypeof, "typeof(dynamic)").
WithLocation
(5, 21),
1323
Diagnostic(ErrorCode.ERR_BadDynamicTypeof, "typeof(dynamic)").
WithLocation
(12, 16));
1339
Diagnostic(ErrorCode.ERR_BadDynamicTypeof, "typeof(dynamic)").
WithLocation
(20, 26)
1400
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "X").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(21, 24),
1403
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "X").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(25, 20),
1406
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "X").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(25, 11),
1409
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "X").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(30, 11),
1412
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "X").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(32, 18),
1415
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "X").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(32, 11),
1418
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "X").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(23, 10)
Attributes\AttributeTests_Embedded.cs (39)
82
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "TestType1").WithArguments("TestType1", "TestReference").
WithLocation
(6, 38),
85
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "TestType2").WithArguments("TestType2", "TestReference").
WithLocation
(7, 38));
123
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "TestType1").WithArguments("TestType1", "TestReference").
WithLocation
(6, 38),
126
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "TestType2").WithArguments("TestType2", "TestReference").
WithLocation
(7, 38));
162
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "TestType1").WithArguments("TestType1", "TestReference").
WithLocation
(6, 38),
165
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "TestType2").WithArguments("TestType2", "TestReference").
WithLocation
(7, 38));
215
Diagnostic(ErrorCode.ERR_TypeReserved, "EmbeddedAttribute").WithArguments("Microsoft.CodeAnalysis.EmbeddedAttribute").
WithLocation
(4, 18));
240
Diagnostic(ErrorCode.ERR_ExportedTypeConflictsWithDeclaration).WithArguments("Microsoft.CodeAnalysis.EmbeddedAttribute", "testModule.netmodule").
WithLocation
(1, 1));
264
Diagnostic(ErrorCode.ERR_ForwardedTypeConflictsWithDeclaration).WithArguments("Microsoft.CodeAnalysis.EmbeddedAttribute").
WithLocation
(1, 1));
322
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
324
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
326
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
328
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
330
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
332
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1));
363
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "Attribute").WithArguments("System.Object").
WithLocation
(4, 18),
366
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "ValueType").WithArguments("System.Object").
WithLocation
(11, 18),
369
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "Void").WithArguments("System.Object").
WithLocation
(14, 18),
372
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "Test").WithArguments("System.Object").
WithLocation
(18, 14),
375
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object").WithArguments("System.Object").
WithLocation
(20, 24),
378
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object").WithArguments("System.Object").
WithLocation
(20, 12),
381
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "AttributeTargets").WithArguments("System.Object").
WithLocation
(7, 40),
384
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Void").WithArguments("object", "0").
WithLocation
(14, 18),
387
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Attribute").WithArguments("object", "0").
WithLocation
(4, 18),
390
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "ValueType").WithArguments("object", "0").
WithLocation
(11, 18),
393
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Test").WithArguments("object", "0").
WithLocation
(18, 14));
424
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "set;").WithArguments("System.Void").
WithLocation
(8, 42),
427
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "set;").WithArguments("System.Void").
WithLocation
(9, 38),
430
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "public AttributeUsageAttribute(AttributeTargets t) { }").WithArguments("System.Void").
WithLocation
(7, 9),
433
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "Attribute").WithArguments("System.Void").
WithLocation
(4, 18),
436
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "ValueType").WithArguments("System.Void").
WithLocation
(11, 18),
439
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "Test").WithArguments("System.Void").
WithLocation
(18, 14),
442
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "AttributeUsageAttribute").WithArguments("System.Void").
WithLocation
(7, 16),
444
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Void").
WithLocation
(1, 1),
446
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Void").
WithLocation
(1, 1),
448
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Void").
WithLocation
(1, 1));
482
Diagnostic(ErrorCode.ERR_BadCtorArgCount).WithArguments("System.Attribute", "0").
WithLocation
(1, 1),
484
Diagnostic(ErrorCode.ERR_BadCtorArgCount).WithArguments("System.Attribute", "0").
WithLocation
(1, 1),
486
Diagnostic(ErrorCode.ERR_BadCtorArgCount).WithArguments("System.Attribute", "0").
WithLocation
(1, 1));
Attributes\AttributeTests_Experimental.cs (55)
70
Diagnostic(ErrorCode.WRN_Experimental, "B").WithArguments("N.A<T>.B").
WithLocation
(11, 17),
73
Diagnostic(ErrorCode.WRN_Experimental, "D<int>").WithArguments("N.D<int>").
WithLocation
(12, 13));
93
Diagnostic(ErrorCode.WRN_Experimental, "B").WithArguments("N.A<int>.B").
WithLocation
(8, 24),
96
Diagnostic(ErrorCode.WRN_Experimental, "S").WithArguments("N.S").
WithLocation
(9, 21),
99
Diagnostic(ErrorCode.WRN_Experimental, "E").WithArguments("N.E").
WithLocation
(10, 25),
102
Diagnostic(ErrorCode.WRN_Experimental, "E").WithArguments("N.E").
WithLocation
(11, 13));
108
Diagnostic(ErrorCode.WRN_Experimental, "B").WithArguments("N.A<int>.B").
WithLocation
(8, 24),
111
Diagnostic(ErrorCode.WRN_Experimental, "S").WithArguments("N.S").
WithLocation
(9, 21),
114
Diagnostic(ErrorCode.WRN_Experimental, "E").WithArguments("N.E").
WithLocation
(10, 25),
117
Diagnostic(ErrorCode.WRN_Experimental, "E").WithArguments("N.E").
WithLocation
(11, 13));
168
Diagnostic(ErrorCode.WRN_Experimental, "E.A").WithArguments("E.A").
WithLocation
(7, 13),
171
Diagnostic(ErrorCode.WRN_Experimental, "((I)o).F()").WithArguments("I.F()").
WithLocation
(11, 9));
211
Diagnostic(ErrorCode.WRN_Experimental, "A").WithArguments("A").
WithLocation
(20, 19),
214
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "a.F1()").WithArguments("A.F1()", "").
WithLocation
(23, 9),
217
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "a.F2()").WithArguments("A.F2()", "").
WithLocation
(24, 9),
220
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "a.F3()").WithArguments("A.F3()", "").
WithLocation
(25, 9),
223
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "a.F4()").WithArguments("A.F4()", "").
WithLocation
(26, 9),
226
Diagnostic(ErrorCode.WRN_Experimental, "A").WithArguments("A").
WithLocation
(27, 14),
229
Diagnostic(ErrorCode.WRN_Experimental, "A.B").WithArguments("A.B").
WithLocation
(27, 14));
265
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "local1()").WithArguments("local1()", "").
WithLocation
(7, 9),
268
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "local2()").WithArguments("local2()", "").
WithLocation
(8, 9));
310
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "a.F1()").WithArguments("A.F1()", "").
WithLocation
(23, 9),
313
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "a.F2()").WithArguments("A.F2()", "").
WithLocation
(24, 9),
316
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "a.F3()").WithArguments("A.F3()", "").
WithLocation
(25, 9),
319
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "a.F4()").WithArguments("A.F4()", "").
WithLocation
(26, 9),
322
Diagnostic(ErrorCode.WRN_Experimental, "A.B").WithArguments("A.B").
WithLocation
(27, 14));
375
Diagnostic(ErrorCode.WRN_Experimental, "B").WithArguments("B").
WithLocation
(9, 31));
404
Diagnostic(ErrorCode.WRN_Experimental, "A").WithArguments("A").
WithLocation
(14, 5));
430
Diagnostic(ErrorCode.WRN_Experimental, "MyAttribute").WithArguments("MyAttribute").
WithLocation
(8, 2),
433
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A").WithArguments("A").
WithLocation
(14, 5));
461
Diagnostic(ErrorCode.WRN_Experimental, "A").WithArguments("AAttribute").
WithLocation
(9, 2),
464
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "B").WithArguments("BAttribute").
WithLocation
(4, 2),
467
Diagnostic(ErrorCode.WRN_Experimental, "A").WithArguments("AAttribute").
WithLocation
(13, 2),
470
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "B").WithArguments("BAttribute").
WithLocation
(14, 2));
498
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A").WithArguments("AAttribute").
WithLocation
(9, 2),
501
Diagnostic(ErrorCode.WRN_Experimental, "B").WithArguments("BAttribute").
WithLocation
(4, 2),
504
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A").WithArguments("AAttribute").
WithLocation
(13, 2),
507
Diagnostic(ErrorCode.WRN_Experimental, "B").WithArguments("BAttribute").
WithLocation
(14, 2));
563
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "SA").WithArguments("SA", "DA").
WithLocation
(6, 19),
566
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "SB").WithArguments("SB", "DB").
WithLocation
(7, 19),
569
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "SC").WithArguments("SC", "OC").
WithLocation
(8, 19),
572
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "SD").WithArguments("SD", "DC").
WithLocation
(9, 19),
575
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "SE").WithArguments("SE", "DD").
WithLocation
(10, 19),
578
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "SF").WithArguments("SF", "OF").
WithLocation
(11, 19),
581
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "IG").WithArguments("IG", "DG").
WithLocation
(12, 19),
584
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "IH").WithArguments("IH", "DH").
WithLocation
(13, 19),
587
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "II").WithArguments("II", "DI").
WithLocation
(14, 19),
590
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "IJ").WithArguments("IJ", "DJ").
WithLocation
(15, 19),
593
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "IK").WithArguments("IK", "DK").
WithLocation
(16, 19),
596
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "EM").WithArguments("EM", "OM").
WithLocation
(17, 19),
599
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "EN").WithArguments("EN", "ON").
WithLocation
(18, 19),
602
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "EO").WithArguments("EO", "DO").
WithLocation
(19, 19),
605
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "EP").WithArguments("EP", "DP").
WithLocation
(20, 19));
638
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "CB").WithArguments("B").
WithLocation
(19, 21),
641
Diagnostic(ErrorCode.WRN_Experimental, "CD").WithArguments("D").
WithLocation
(20, 21));
Attributes\AttributeTests_IsByRefLike.cs (32)
176
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(4, 2),
179
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(5, 37));
205
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(4, 2));
234
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(6, 6));
263
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(8, 6));
294
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(6, 6),
297
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(7, 14),
300
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(8, 37));
327
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(6, 6),
330
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(7, 35));
346
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IsByRefLike").WithArguments("IsByRefLikeAttribute").
WithLocation
(2, 2),
349
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IsByRefLike").WithArguments("IsByRefLike").
WithLocation
(2, 2)
401
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "S1").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(2, 19)
418
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "S2").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(5, 23),
421
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "S1").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(4, 23)
519
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "S1").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute", ".ctor").
WithLocation
(11, 23)
542
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "S1").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute", ".ctor").
WithLocation
(11, 22)
565
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "S1").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute", ".ctor").
WithLocation
(11, 23)
646
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "S1").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute", ".ctor").
WithLocation
(11, 23)
851
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Test.S1").WithArguments("Test.S1", "Types with embedded references are not supported in this version of your compiler.").
WithLocation
(7, 9),
854
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Test.S2").WithArguments("Test.S2", "Types with embedded references are not supported in this version of your compiler.").
WithLocation
(8, 9),
857
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "v1").WithArguments("v1").
WithLocation
(7, 17),
860
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "v2").WithArguments("v2").
WithLocation
(8, 17)
917
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Test.S2").WithArguments("Test.S2", "Types with embedded references are not supported in this version of your compiler.").
WithLocation
(10, 9),
920
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Test.field").WithArguments("Test.field", "Types with embedded references are not supported in this version of your compiler.").
WithLocation
(13, 17),
923
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "v1").WithArguments("v1").
WithLocation
(7, 17),
926
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "v2").WithArguments("v2").
WithLocation
(10, 17)
932
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Test.S1").WithArguments("Test.S1", "Types with embedded references are not supported in this version of your compiler.").
WithLocation
(7, 9),
935
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Test.S2").WithArguments("Test.S2", "Types with embedded references are not supported in this version of your compiler.").
WithLocation
(10, 9),
938
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Test.field").WithArguments("Test.field", "Types with embedded references are not supported in this version of your compiler.").
WithLocation
(13, 17),
941
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "v1").WithArguments("v1").
WithLocation
(7, 17),
944
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "v2").WithArguments("v2").
WithLocation
(10, 17)
Attributes\AttributeTests_IsUnmanaged.cs (19)
466
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(9, 2),
469
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(10, 25));
492
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(9, 2));
516
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(11, 6));
540
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(11, 6));
568
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(11, 6),
571
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(12, 14),
574
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(13, 24));
598
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(11, 6),
601
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(12, 22));
617
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IsUnmanaged").WithArguments("IsUnmanagedAttribute").
WithLocation
(2, 2),
620
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IsUnmanaged").WithArguments("IsUnmanaged").
WithLocation
(2, 2));
668
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(2, 19));
683
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(4, 19));
705
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(6, 16));
716
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(1, 24));
774
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "T").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute", ".ctor").
WithLocation
(9, 12));
797
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "T").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute", ".ctor").
WithLocation
(9, 12));
817
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "T").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute", ".ctor").
WithLocation
(6, 12));
Attributes\AttributeTests_LifetimeAnnotation.cs (11)
95
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "scoped ref int i").WithArguments("System.Runtime.CompilerServices.ScopedRefAttribute", ".ctor").
WithLocation
(3, 26));
116
Diagnostic(ErrorCode.ERR_ExplicitScopedRef, "ScopedRef").
WithLocation
(2, 18),
119
Diagnostic(ErrorCode.ERR_ExplicitScopedRef, "ScopedRef").
WithLocation
(5, 30),
122
Diagnostic(ErrorCode.ERR_ExplicitScopedRef, "ScopedRef").
WithLocation
(7, 17)
155
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("Program.F").
WithLocation
(6, 24),
158
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("Program.E").
WithLocation
(7, 36));
175
Diagnostic(ErrorCode.ERR_ExplicitScopedRef, "ScopedRef").
WithLocation
(3, 19),
178
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(3, 30),
181
Diagnostic(ErrorCode.ERR_ExplicitScopedRef, "ScopedRef").
WithLocation
(4, 19),
184
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "R").WithArguments("R").
WithLocation
(4, 30)
258
Diagnostic(ErrorCode.ERR_BindToBogus, "F2").WithArguments("A.F2(int)").
WithLocation
(7, 11));
Attributes\AttributeTests_Locations.cs (11)
584
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "assembly").WithArguments("assembly", "field, property").
WithLocation
(10, 6),
586
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "module").WithArguments("module", "field, property").
WithLocation
(11, 6),
588
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "type").WithArguments("type", "field, property").
WithLocation
(12, 6),
590
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "method").WithArguments("method", "field, property").
WithLocation
(13, 6),
592
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "event").WithArguments("event", "field, property").
WithLocation
(16, 6),
594
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "return").WithArguments("return", "field, property").
WithLocation
(17, 6),
596
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "param").WithArguments("param", "field, property").
WithLocation
(18, 6),
598
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "typevar").WithArguments("typevar", "field, property").
WithLocation
(19, 6),
600
Diagnostic(ErrorCode.WRN_InvalidAttributeLocation, "delegate").WithArguments("delegate", "field, property").
WithLocation
(20, 6));
1232
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("XAttribute").
WithLocation
(1, 20),
1235
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("X").
WithLocation
(1, 20));
Attributes\AttributeTests_MarshalAs.cs (4)
1406
Diagnostic(ErrorCode.ERR_MarshalUnmanagedTypeOnlyValidForFields, "UnmanagedType.ByValArray").WithArguments("ByValArray").
WithLocation
(11, 24),
1409
Diagnostic(ErrorCode.ERR_MarshalUnmanagedTypeOnlyValidForFields, "UnmanagedType.ByValTStr").WithArguments("ByValTStr").
WithLocation
(14, 24),
1412
Diagnostic(ErrorCode.ERR_MarshalUnmanagedTypeOnlyValidForFields, "UnmanagedType.ByValArray").WithArguments("ByValArray").
WithLocation
(20, 28),
1415
Diagnostic(ErrorCode.ERR_MarshalUnmanagedTypeOnlyValidForFields, "UnmanagedType.ByValTStr").WithArguments("ByValTStr").
WithLocation
(23, 28));
Attributes\AttributeTests_NativeInteger.cs (49)
106
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "F1").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute", ".ctor").
WithLocation
(3, 17),
109
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "F2").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute", ".ctor").
WithLocation
(4, 20));
132
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "F1").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute", ".ctor").
WithLocation
(3, 17),
135
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "F2").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute", ".ctor").
WithLocation
(4, 20));
176
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NativeInteger").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute").
WithLocation
(5, 2),
179
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NativeInteger").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute").
WithLocation
(7, 6),
182
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NativeInteger").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute").
WithLocation
(8, 6),
185
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NativeInteger").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute").
WithLocation
(9, 6),
188
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NativeInteger(new[] { false, true })").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute").
WithLocation
(11, 14),
191
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NativeInteger").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute").
WithLocation
(12, 21));
208
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
210
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
212
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1));
260
Diagnostic(ErrorCode.ERR_BindToBogus, "F0").WithArguments("B.F0(?, ?)").
WithLocation
(5, 11),
263
Diagnostic(ErrorCode.ERR_BindToBogus, "F1").WithArguments("B.F1(?)").
WithLocation
(6, 11));
270
Diagnostic(ErrorCode.ERR_BindToBogus, "F0").WithArguments("B.F0(?, ?)").
WithLocation
(5, 11),
273
Diagnostic(ErrorCode.ERR_BindToBogus, "F1").WithArguments("B.F1(?)").
WithLocation
(6, 11));
423
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nuint").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 25),
426
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nint").WithArguments("native-sized integers", "9.0").
WithLocation
(7, 20));
594
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nint").WithArguments("native-sized integers", "9.0").
WithLocation
(3, 21),
597
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nuint").WithArguments("native-sized integers", "9.0").
WithLocation
(3, 27),
600
Diagnostic(ErrorCode.ERR_BindToBogus, "F").WithArguments("B.F(?)").
WithLocation
(5, 11),
603
Diagnostic(ErrorCode.ERR_BindToBogus, "F0").WithArguments("B.F0(?)").
WithLocation
(6, 11),
606
Diagnostic(ErrorCode.ERR_BindToBogus, "F1").WithArguments("B.F1(?)").
WithLocation
(7, 11),
609
Diagnostic(ErrorCode.ERR_BindToBogus, "F3").WithArguments("B.F3(?)").
WithLocation
(9, 11));
616
Diagnostic(ErrorCode.ERR_BindToBogus, "F").WithArguments("B.F(?)").
WithLocation
(5, 11),
619
Diagnostic(ErrorCode.ERR_BindToBogus, "F0").WithArguments("B.F0(?)").
WithLocation
(6, 11),
622
Diagnostic(ErrorCode.ERR_BindToBogus, "F1").WithArguments("B.F1(?)").
WithLocation
(7, 11),
625
Diagnostic(ErrorCode.ERR_BindToBogus, "F3").WithArguments("B.F3(?)").
WithLocation
(9, 11));
710
Diagnostic(ErrorCode.ERR_BindToBogus, "F1").WithArguments("B.F1(?)").
WithLocation
(5, 11),
713
Diagnostic(ErrorCode.ERR_BindToBogus, "F2").WithArguments("B.F2(?)").
WithLocation
(6, 11),
716
Diagnostic(ErrorCode.ERR_BindToBogus, "F3").WithArguments("B.F3(?)").
WithLocation
(7, 11),
719
Diagnostic(ErrorCode.ERR_BindToBogus, "F4").WithArguments("B.F4(?)").
WithLocation
(8, 11)
726
Diagnostic(ErrorCode.ERR_BindToBogus, "F1").WithArguments("B.F1(?)").
WithLocation
(5, 11),
729
Diagnostic(ErrorCode.ERR_BindToBogus, "F2").WithArguments("B.F2(?)").
WithLocation
(6, 11),
732
Diagnostic(ErrorCode.ERR_BindToBogus, "F3").WithArguments("B.F3(?)").
WithLocation
(7, 11),
735
Diagnostic(ErrorCode.ERR_BindToBogus, "F4").WithArguments("B.F4(?)").
WithLocation
(8, 11)
861
Diagnostic(ErrorCode.ERR_NoTypeDef, "F1").WithArguments("B<>", "95d36b13-f2e1-495d-9ab6-62e8cc63ac22, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 15),
864
Diagnostic(ErrorCode.ERR_NoTypeDef, "F2").WithArguments("A", "95d36b13-f2e1-495d-9ab6-62e8cc63ac22, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 15));
1178
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "nint n").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute").
WithLocation
(5, 19),
1181
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "=>").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute").
WithLocation
(7, 29));
1202
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "nint n").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute").
WithLocation
(5, 17),
1205
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "nuint[]").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute").
WithLocation
(7, 9));
1234
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "nint n").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute", ".ctor").
WithLocation
(5, 19),
1237
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=>").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute", ".ctor").
WithLocation
(7, 29));
1266
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "nint n").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute", ".ctor").
WithLocation
(5, 17),
1269
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "nuint[]").WithArguments("System.Runtime.CompilerServices.NativeIntegerAttribute", ".ctor").
WithLocation
(7, 9));
1425
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F2").WithArguments("void Program.F2(nuint x)", "void Program.F2(UIntPtr x)").
WithLocation
(4, 25),
1428
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F1").WithArguments("void Program.F1(IntPtr x)", "void Program.F1(nint x)").
WithLocation
(5, 25));
Attributes\AttributeTests_Nullable.cs (170)
33
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1)
267
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "I0").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(2, 18)
272
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "I0").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(2, 18)
329
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "C1").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(34, 14),
332
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(object a, object b)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(34, 21),
335
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(object a, object b)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(36, 24)
402
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "byte[] b").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(5, 34),
405
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object? x").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(10, 19),
408
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?[] y").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(10, 30));
430
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object? x").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(10, 19),
433
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?[] y").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(10, 30));
455
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "string[] b").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(5, 34),
458
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object? x").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(10, 19),
461
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?[] y").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(10, 30));
502
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "Nullable(0)").
WithLocation
(5, 2),
505
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "Nullable(0)").
WithLocation
(8, 6),
508
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "Nullable(0)").
WithLocation
(10, 14),
511
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "Nullable(0)").
WithLocation
(11, 21));
612
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 11),
614
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
616
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
618
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
620
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
622
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
624
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
626
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
628
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
631
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "").WithArguments("System.Int32").
WithLocation
(1, 1));
660
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 11),
662
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
664
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
666
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
668
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
670
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
672
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
674
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
676
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
678
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1));
713
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 11),
715
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
717
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
719
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
721
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
723
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
725
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
727
Diagnostic(ErrorCode.ERR_BadCtorArgCount).WithArguments("System.Attribute", "0").
WithLocation
(1, 1),
729
Diagnostic(ErrorCode.ERR_BadCtorArgCount).WithArguments("System.Attribute", "0").
WithLocation
(1, 1),
731
Diagnostic(ErrorCode.ERR_BadCtorArgCount).WithArguments("System.Attribute", "0").
WithLocation
(1, 1),
733
Diagnostic(ErrorCode.ERR_BadCtorArgCount).WithArguments("System.Attribute", "0").
WithLocation
(1, 1));
751
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
753
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
755
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
757
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
759
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
761
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1));
767
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
769
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1));
775
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
777
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1));
783
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
785
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1));
997
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "F").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 20));
1107
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B1", "A<object?>", "y", "void C.F(A<object> x, A<object?> y)").
WithLocation
(8, 14),
1110
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("B2", "A<object>", "x", "void C.F(A<object> x, A<object?> y)").
WithLocation
(9, 11));
1162
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("A", "I<object?>", "y", "void C.F(I<object> x, I<object?> y)").
WithLocation
(9, 14),
1165
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("B", "I<object>", "x", "void C.F(I<object> x, I<object?> y)").
WithLocation
(10, 11));
1212
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "b").WithArguments("B", "I<(object, object)>", "a", "void C.F(I<(object, object)> a, I<(object, object?)> b)").
WithLocation
(9, 11));
1376
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A?").WithArguments("D<T>", "A", "T", "A?").
WithLocation
(10, 15),
1379
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "B?").WithArguments("D<T>", "A", "T", "B?").
WithLocation
(12, 15));
1385
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A?").WithArguments("D<T>", "A", "T", "A?").
WithLocation
(10, 15),
1388
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "B?").WithArguments("D<T>", "A", "T", "B?").
WithLocation
(12, 15));
1484
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<object>").WithArguments("B<T>", "A<object?>", "T", "A<object>").
WithLocation
(6, 15),
1487
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<object?>").WithArguments("C<T>", "A<object>", "T", "A<object?>").
WithLocation
(7, 15));
1493
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<object>").WithArguments("B<T>", "A<object?>", "T", "A<object>").
WithLocation
(6, 15),
1496
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<object?>").WithArguments("C<T>", "A<object>", "T", "A<object?>").
WithLocation
(7, 15));
1538
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "object?").WithArguments("C<T, U>", "T", "object?").
WithLocation
(5, 15),
1541
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "object?").WithArguments("C<T, U>", "T", "object?").
WithLocation
(6, 15)
2327
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object x").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(6, 19),
2330
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "=>").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(8, 31));
2354
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object? x").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(6, 17),
2357
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "string[]?").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(8, 9));
2387
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object x").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(6, 19),
2390
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=>").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(8, 31));
2420
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object? x").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(6, 17),
2423
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "string[]?").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(8, 9));
3522
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "F").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(6, 21),
3525
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(7, 20),
3528
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object arg").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(7, 30),
3531
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(8, 13),
3534
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(9, 13),
3537
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object x").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(9, 26),
3540
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object? y").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(9, 36),
3543
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "E").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(10, 30),
3546
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E").WithArguments("event", "E").
WithLocation
(10, 30),
3549
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(13, 9),
3552
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object arg").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(13, 19),
3555
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(14, 9),
3558
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object arg").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(14, 19),
3561
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=>").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(15, 26),
3564
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "T").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(18, 19),
3567
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "T").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(18, 23),
3570
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "T").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(19, 22),
3573
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "B").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(20, 16),
3576
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(22, 19),
3579
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "B b").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(22, 36),
3582
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "E").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(23, 29),
3585
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E").WithArguments("event", "E").
WithLocation
(23, 29),
3588
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "F").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(24, 31));
3594
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(8, 13),
3597
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(9, 13),
3600
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object x").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(9, 26),
3603
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object? y").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(9, 36),
3606
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "E").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(10, 30),
3609
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E").WithArguments("event", "E").
WithLocation
(10, 30),
3612
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E").WithArguments("event", "E").
WithLocation
(23, 29)
3638
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 19),
3641
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "F").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(4, 21),
3644
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(5, 13),
3647
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 19));
3653
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 19),
3656
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute", ".ctor").
WithLocation
(5, 13),
3659
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 19));
4433
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(1, 9),
4436
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(4, 7));
4453
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "I").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(1, 11),
4456
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(1, 13),
4459
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "C").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(4, 7));
4474
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 5),
4477
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "F").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(3, 13));
4492
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object?[] c").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 12));
4507
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object?[] c").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 7));
4522
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "C").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(1, 7),
4525
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 5));
4540
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "C").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(1, 7),
4543
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 5),
4546
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object x").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 17),
4549
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object? y").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 27));
4564
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 19),
4567
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "+").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(3, 35),
4570
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "C a").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 37),
4573
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "C b").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 42)
4589
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 19),
4592
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "+").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(3, 34),
4595
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "C a").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 36),
4598
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object?[] b").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(3, 41));
4610
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object?").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(1, 10),
4613
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "D").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(1, 18));
4625
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object?[] o").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(1, 17));
4673
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "D").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(1, 15),
4676
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(1, 17),
4679
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T t").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(1, 20),
4682
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "F").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(4, 17),
4685
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(4, 19),
4688
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "D<T> d").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(4, 22),
4691
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object? o").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(9, 12));
4710
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object?[]").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(5, 9));
4729
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object? x").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(5, 16),
4732
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "object y").WithArguments("System.Runtime.CompilerServices.NullableAttribute").
WithLocation
(5, 27));
4798
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "A.Nested._1.Item1").
WithLocation
(5, 9),
4801
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "A.Nested._2").
WithLocation
(7, 9),
4804
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "A.Nested._4.Item1.Item1[0]").
WithLocation
(10, 9),
4807
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "A.Nested._4.Item2").
WithLocation
(12, 9),
4810
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "A.Long._1").
WithLocation
(13, 9),
4813
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "A.Long._3").
WithLocation
(15, 9),
4816
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "A.Long._5").
WithLocation
(17, 9),
4819
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "A.Long._7").
WithLocation
(19, 9),
4822
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "A.Long._9").
WithLocation
(21, 9));
4928
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Field._9").
WithLocation
(6, 9),
4931
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Method(default)._9").
WithLocation
(8, 9),
4934
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Property._9").
WithLocation
(10, 9));
Attributes\AttributeTests_NullableContext.cs (11)
99
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "F").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute", ".ctor").
WithLocation
(3, 19));
140
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NullableContext(0)").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(4, 10),
143
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NullableContext(0)").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(5, 2),
146
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NullableContext(0)").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(9, 6));
235
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
237
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
239
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
241
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
243
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
245
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1));
292
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "B.FB").
WithLocation
(7, 9));
Attributes\AttributeTests_NullablePublicOnly.cs (9)
92
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.Runtime.CompilerServices.NullablePublicOnlyAttribute", ".ctor").
WithLocation
(1, 1));
258
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "A.F").WithArguments("o", "void A.M(object o)").
WithLocation
(6, 13));
418
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NullablePublicOnly(false)").WithArguments("System.Runtime.CompilerServices.NullablePublicOnlyAttribute").
WithLocation
(3, 10));
526
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
528
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
530
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
532
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
534
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
536
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1));
Attributes\AttributeTests_ReadOnlyStruct.cs (19)
166
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(4, 2),
169
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(5, 37));
195
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(4, 2));
224
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(6, 6));
253
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(8, 6));
284
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(6, 6),
287
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(7, 14),
290
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(8, 37));
317
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(6, 6),
320
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(7, 35));
336
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IsReadOnly").WithArguments("IsReadOnlyAttribute").
WithLocation
(2, 2),
339
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IsReadOnly").WithArguments("IsReadOnly").
WithLocation
(2, 2)
391
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "S1").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(2, 24)
408
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "S2").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(5, 28),
411
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "S1").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(4, 28)
511
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "S1").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 28)
534
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "S1").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 27)
557
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "S1").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 28)
638
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "S1").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 28)
Attributes\AttributeTests_RefReadOnly.cs (47)
853
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(4, 2),
856
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(5, 37));
882
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(4, 2));
911
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(6, 6));
940
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(8, 6));
971
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(6, 6),
974
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(7, 14),
977
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(8, 37));
1004
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(6, 6),
1007
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(7, 35));
1023
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Embedded").WithArguments("EmbeddedAttribute").
WithLocation
(2, 2),
1026
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Embedded").WithArguments("Embedded").
WithLocation
(2, 2));
1042
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IsReadOnly").WithArguments("IsReadOnlyAttribute").
WithLocation
(2, 2),
1045
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IsReadOnly").WithArguments("IsReadOnly").
WithLocation
(2, 2));
1098
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(4, 19));
1114
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(4, 20),
1117
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(5, 20));
1138
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in int p").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(6, 20));
1236
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 19));
1258
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 19));
1280
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 19));
1539
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in int p").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(8, 18));
1563
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(7, 20));
1938
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "ref readonly int").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(6, 9),
1941
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(6, 33));
2131
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "ref readonly int").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(4, 21),
2134
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(4, 58));
2156
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 17));
2178
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "ref readonly int").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 12),
2181
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 36));
2213
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "ref readonly int").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(15, 9),
2216
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int p").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(15, 32));
2248
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=>").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(14, 23),
2251
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(14, 13));
2274
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "ref readonly int").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(12, 12));
2297
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "ref readonly int").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(12, 12),
2300
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(12, 34));
2322
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in Test x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 35),
2325
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in Test y").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(11, 46));
2442
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(5, 19),
2445
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "=>").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(9, 39));
2468
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in int y").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(5, 28),
2471
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "ref readonly int").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(9, 9));
2502
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int x").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(5, 19),
2505
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=>").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(9, 39));
2536
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "in int y").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(5, 28),
2539
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "ref readonly int").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(9, 9));
Attributes\AttributeTests_RefSafetyRules.cs (2)
76
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.Runtime.CompilerServices.RefSafetyRulesAttribute", ".ctor").
WithLocation
(1, 1));
99
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "RefSafetyRules(11)").WithArguments("System.Runtime.CompilerServices.RefSafetyRulesAttribute").
WithLocation
(3, 10));
Attributes\AttributeTests_Security.cs (17)
189
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "PrincipalPermission()").WithArguments("action", "System.Security.Permissions.PrincipalPermissionAttribute.PrincipalPermissionAttribute(System.Security.Permissions.SecurityAction)").
WithLocation
(9, 6),
192
Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "(SecurityAction)0").WithArguments("PrincipalPermission", "(SecurityAction)0").
WithLocation
(6, 26),
195
Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "(SecurityAction)11").WithArguments("PrincipalPermission", "(SecurityAction)11").
WithLocation
(7, 26),
198
Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "(SecurityAction)(-1)").WithArguments("PrincipalPermission", "(SecurityAction)(-1)").
WithLocation
(8, 26),
201
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "PrincipalPermission").WithArguments("PrincipalPermission", "class, method").
WithLocation
(12, 10));
233
Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "(SecurityAction)0").WithArguments("MySecurityAttribute", "(SecurityAction)0").
WithLocation
(12, 26),
236
Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "(SecurityAction)11").WithArguments("MySecurityAttribute", "(SecurityAction)11").
WithLocation
(13, 26),
239
Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "(SecurityAction)(-1)").WithArguments("MySecurityAttribute", "(SecurityAction)(-1)").
WithLocation
(14, 26),
242
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "MySecurityAttribute()").WithArguments("action", "MySecurityAttribute.MySecurityAttribute(System.Security.Permissions.SecurityAction)").
WithLocation
(15, 6),
245
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "MySecurityAttribute").WithArguments("MySecurityAttribute", "assembly, class, struct, constructor, method").
WithLocation
(18, 10));
1559
Diagnostic(ErrorCode.ERR_PermissionSetAttributeInvalidFile, @"File = @""NonExistentFile.xml""").WithArguments("NonExistentFile.xml", "File").
WithLocation
(4, 46),
1562
Diagnostic(ErrorCode.ERR_PermissionSetAttributeInvalidFile, "File = null").WithArguments("<null>", "File").
WithLocation
(5, 46));
1595
Diagnostic(ErrorCode.ERR_PermissionSetAttributeInvalidFile, @"File = @""NonExistentFile.xml""").WithArguments("NonExistentFile.xml", "File").
WithLocation
(4, 46),
1598
Diagnostic(ErrorCode.ERR_PermissionSetAttributeInvalidFile, "File = null").WithArguments("<null>", "File").
WithLocation
(5, 46));
1700
Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "A").WithArguments("A", "0").
WithLocation
(4, 2),
1703
Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "A()").WithArguments("A", "0").
WithLocation
(5, 2),
1706
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "A").WithArguments("A", "System.Security.Permissions.SecurityAttribute.CreatePermission()").
WithLocation
(6, 7));
Attributes\AttributeTests_StructLayout.cs (11)
502
Diagnostic(ErrorCode.ERR_StructOffsetOnBadStruct, "FieldOffset").
WithLocation
(7, 6),
505
Diagnostic(ErrorCode.ERR_StructOffsetOnBadStruct, "FieldOffset").
WithLocation
(14, 6),
508
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("FieldOffset").
WithLocation
(17, 18),
511
Diagnostic(ErrorCode.ERR_StructOffsetOnBadStruct, "FieldOffset").
WithLocation
(17, 6),
514
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "-1").WithArguments("FieldOffset").
WithLocation
(24, 18),
517
Diagnostic(ErrorCode.ERR_StructOffsetOnBadField, "FieldOffset").
WithLocation
(27, 6),
520
Diagnostic(ErrorCode.ERR_MissingStructOffset, "c1").WithArguments("E.c1").
WithLocation
(30, 9),
523
Diagnostic(ErrorCode.ERR_MissingStructOffset, "c2").WithArguments("E.c2").
WithLocation
(30, 13),
526
Diagnostic(ErrorCode.ERR_StructOffsetOnBadField, "FieldOffset").
WithLocation
(39, 6),
529
Diagnostic(ErrorCode.ERR_StructOffsetOnBadField, "FieldOffset").
WithLocation
(42, 6),
532
Diagnostic(ErrorCode.ERR_StructOffsetOnBadField, "FieldOffset").
WithLocation
(48, 6));
Attributes\AttributeTests_Tuples.cs (54)
185
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "(int x, int y)").WithArguments("System.String").
WithLocation
(6, 11),
188
Diagnostic(ErrorCode.ERR_NoTypeDef, "(int x, int y)").WithArguments("System.ValueType", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").
WithLocation
(6, 11),
191
Diagnostic(ErrorCode.ERR_NoTypeDef, "(0, 0)").WithArguments("System.ValueType", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").
WithLocation
(7, 11)
223
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "(int x, int y)").WithArguments("System.String").
WithLocation
(4, 12),
226
Diagnostic(ErrorCode.ERR_NoTypeDef, "(int x, int y)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").
WithLocation
(4, 12),
229
Diagnostic(ErrorCode.ERR_NoTypeDef, "(0, 0)").WithArguments("System.ValueType", "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").
WithLocation
(4, 34)
662
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int key, int val)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(8, 31),
665
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e2, int e3)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(16, 42),
668
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, (int e2, int e3) e4)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(16, 33),
671
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e5, int e6)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(17, 11),
674
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e7, int e8)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(17, 35),
677
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e9, int e10)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(17, 55),
680
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e11, int e12)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(18, 6),
683
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "((int e11, int e12) e13, int e14)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(18, 5),
686
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e15, int e16)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(19, 18),
689
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e19, int e20)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(19, 58),
692
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e18, Base1<(int e19, int e20)> e21)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(19, 42),
695
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "((int e15, int e16) e17, (int e18, Base1<(int e19, int e20)> e21) e22)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(19, 17),
698
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int key2, int val2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(10, 38),
701
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int key3, int val3)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(12, 44),
704
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(dynamic e2, dynamic e3)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(72, 47),
708
ValueTuple<(dynamic e2, dynamic e3)> e4)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(71, 35),
711
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, int e2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(41, 19),
714
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, int e2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(42, 32),
717
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e3, int e4)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(43, 44),
720
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, int e2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(43, 19),
723
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e3, int e4)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(44, 48),
726
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, int e2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(44, 19),
730
int e6, int e7, int e8, int e9)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(53, 19),
733
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, int e2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(57, 19),
736
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, int e2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(58, 19),
739
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e3, int e4)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(60, 34),
742
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, int e2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(60, 12),
745
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(dynamic e1, dynamic e2, object e3)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(68, 14),
748
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "((dynamic e1, dynamic e2, object e3) e4, dynamic e5)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(68, 13),
751
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, int e2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(22, 19),
754
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e2, int e3)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(23, 34),
757
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, (int e2, int e3) e4)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(23, 25),
760
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, (int, (dynamic, dynamic)) e2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(25, 36),
763
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(object e1, dynamic e2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(27, 25),
766
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(dynamic e3, object e4)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(28, 16),
770
int e6, int e7, int e8, int e9)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(36, 19),
774
int e6, int e7, int e8, int e9)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(38, 25),
777
Diagnostic(ErrorCode.ERR_TupleElementNamesAttributeMissing, "(int e1, int e2)").WithArguments("System.Runtime.CompilerServices.TupleElementNamesAttribute").
WithLocation
(21, 19));
821
Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, @"TupleElementNames(new[] { ""a"", ""b"" })").
WithLocation
(31, 2),
824
Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, @"TupleElementNames(new[] { ""a"", ""b"" })").
WithLocation
(5, 2),
827
Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, @"TupleElementNames(new[] { ""x"" })").
WithLocation
(18, 10),
830
Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, @"TupleElementNames(new[] { ""x"", ""y"" })").
WithLocation
(11, 6),
833
Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, "TupleElementNames(new string[] { null, null })").
WithLocation
(14, 14),
836
Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, "TupleElementNames(new string[] { null})").
WithLocation
(15, 36),
839
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "TupleElementNames").WithArguments("TupleElementNames", "class, struct, property, indexer, field, parameter, return").
WithLocation
(20, 6),
842
Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, @"TupleElementNames(new[] { ""a"", ""b"" })").
WithLocation
(27, 6),
845
Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, "TupleElementNames").
WithLocation
(28, 33),
848
Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, "TupleElementNames(new string[] { null, null })").
WithLocation
(8, 6));
Attributes\AttributeTests_WellKnownAttributes.cs (314)
571
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Method").WithArguments("p1", "Bar.Method(System.DateTime)").
WithLocation
(6, 19)
580
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Method").WithArguments("p1", "Bar.Method(System.DateTime)").
WithLocation
(6, 19)
614
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "default(DateTime)").
WithLocation
(7, 60)
646
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "default(DateTime)").
WithLocation
(7, 60)
1439
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Optional").WithArguments("", "System.Runtime.InteropServices.OptionalAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Runtime.InteropServices.OptionalAttribute").
WithLocation
(15, 17),
1442
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Goo").WithArguments("y", "Goo.Goo(int)").
WithLocation
(15, 41));
1501
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Optional").WithArguments("", "System.Runtime.InteropServices.OptionalAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Runtime.InteropServices.OptionalAttribute").
WithLocation
(16, 17),
1504
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Goo").WithArguments("y", "Goo.Goo(int)").
WithLocation
(16, 30),
1507
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Goo").WithArguments("y", "Goo.Goo(int)").
WithLocation
(16, 38));
1796
Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "x").WithArguments("x", "object").
WithLocation
(63, 65),
1799
Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "x").WithArguments("x", "object").
WithLocation
(76, 42),
1802
Diagnostic(ErrorCode.ERR_DefaultValueTypeMustMatch, "DefaultParameterValueAttribute").
WithLocation
(101, 46),
1805
Diagnostic(ErrorCode.ERR_DefaultValueTypeMustMatch, "DefaultParameterValueAttribute").
WithLocation
(113, 46),
1808
Diagnostic(ErrorCode.ERR_BadAttributeParamDefaultArgument, "MyPermission(SecurityAction.Demand)").WithArguments("x").
WithLocation
(137, 2),
1811
Diagnostic(ErrorCode.ERR_BadAttributeParamDefaultArgument, "MyPermission2(SecurityAction.Demand)").WithArguments("x").
WithLocation
(140, 2),
1814
Diagnostic(ErrorCode.ERR_BadAttributeParamDefaultArgument, "MyPermission3()").WithArguments("x").
WithLocation
(143, 2),
1817
Diagnostic(ErrorCode.ERR_BadArgType, "null").WithArguments("1", "<null>", "System.Security.Permissions.SecurityAction").
WithLocation
(149, 16),
1820
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "MyPermission5(SecurityAction.Demand)").
WithLocation
(151, 2),
1823
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "MyPermission6()").
WithLocation
(154, 2),
1826
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "MyPermission8()").
WithLocation
(161, 2),
1829
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "MyPermission9()").
WithLocation
(164, 2),
1832
Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "MyPermission10(SecurityAction.Demand)").WithArguments("y", "object").
WithLocation
(167, 2),
1835
Diagnostic(ErrorCode.ERR_SecurityAttributeMissingAction, "MyPermission3").
WithLocation
(145, 2),
1838
Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "MyPermission4()").WithArguments("MyPermission4", "0").
WithLocation
(147, 2),
1841
Diagnostic(ErrorCode.ERR_SecurityAttributeMissingAction, "MyPermission6").
WithLocation
(156, 2));
1867
Diagnostic(ErrorCode.ERR_NoImplicitConv, "Goo()").WithArguments("int", "System.Enum").
WithLocation
(13, 9));
2132
Diagnostic(ErrorCode.ERR_OutAttrOnRefParam, "p").
WithLocation
(5, 39));
2157
Diagnostic(ErrorCode.ERR_InAttrOnOutParam, "p").
WithLocation
(5, 38));
2182
Diagnostic(ErrorCode.ERR_InAttrOnOutParam, "p").
WithLocation
(5, 43));
2207
Diagnostic(ErrorCode.ERR_OutAttrOnInParam, "p").
WithLocation
(5, 38));
2221
Diagnostic(ErrorCode.ERR_OutAttrOnInParam, "p").
WithLocation
(5, 42));
3535
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "F2").WithArguments("C.F2(int, string)").
WithLocation
(13, 9),
3538
Diagnostic(ErrorCode.ERR_DllImportOnInvalidMethod, "DllImport").
WithLocation
(6, 6),
3541
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").
WithLocation
(9, 6),
3544
Diagnostic(ErrorCode.ERR_DllImportOnInvalidMethod, "DllImport").
WithLocation
(12, 6),
3547
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").
WithLocation
(15, 6),
3550
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").
WithLocation
(18, 6),
3553
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "DllImport").WithArguments("DllImport").
WithLocation
(21, 26),
3556
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, @"[DllImport(""d.dll"")]").
WithLocation
(26, 8),
3559
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").
WithLocation
(31, 2),
3562
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DllImport").WithArguments("DllImport", "method").
WithLocation
(34, 2));
3910
Diagnostic(ErrorCode.ERR_BadAccess, "IWorksheet").WithArguments("Wrapper.IWorksheet").
WithLocation
(22, 29));
3948
Diagnostic(ErrorCode.ERR_BadAccess, "IWorksheet").WithArguments("Wrapper.IWorksheet").
WithLocation
(6, 29));
3954
Diagnostic(ErrorCode.ERR_BadAccess, "IWorksheet").WithArguments("Wrapper.IWorksheet").
WithLocation
(6, 29));
3988
Diagnostic(ErrorCode.ERR_BadAccess, "Wrapper.IWorksheet").WithArguments("Wrapper.WorksheetClass.WorksheetClass()").
WithLocation
(22, 21));
4027
Diagnostic(ErrorCode.ERR_BadAccess, "Wrapper.IWorksheet").WithArguments("Wrapper.WorksheetClass.WorksheetClass()").
WithLocation
(6, 21));
4033
Diagnostic(ErrorCode.ERR_BadAccess, "Wrapper.IWorksheet").WithArguments("Wrapper.WorksheetClass.WorksheetClass()").
WithLocation
(6, 21));
4065
Diagnostic(ErrorCode.WRN_CoClassWithoutComImport, "CoClass(typeof(WorksheetClass))").WithArguments("IWorksheet").
WithLocation
(10, 6),
4068
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").
WithLocation
(20, 17));
4105
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").
WithLocation
(6, 17));
4118
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new Wrapper.IWorksheet()").WithArguments("Wrapper.IWorksheet").
WithLocation
(6, 17));
4152
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").
WithLocation
(22, 17));
4190
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").
WithLocation
(6, 17));
4196
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").
WithLocation
(6, 17));
4230
Diagnostic(ErrorCode.ERR_BadAccess, "WorksheetClass").WithArguments("Wrapper.WorksheetClass").
WithLocation
(6, 25),
4233
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").
WithLocation
(22, 17));
4332
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new IWorksheet()").WithArguments("IWorksheet").
WithLocation
(6, 17));
4372
Diagnostic(ErrorCode.ERR_MissingCoClass, "new IWorksheet()").WithArguments("YorksheetClass", "IWorksheet").
WithLocation
(6, 17));
4412
Diagnostic(ErrorCode.ERR_BadCoClassSig, "new IWorksheet()").WithArguments("WorksheetClass<>", "IWorksheet").
WithLocation
(6, 17));
4448
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new InterfaceType()").WithArguments("InterfaceType").
WithLocation
(16, 13));
4474
Diagnostic(ErrorCode.ERR_NoExplicitConv, "new I()").WithArguments("System.StackOverflowException", "I").
WithLocation
(14, 17));
4507
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0-BB0F-4FE3-9860-ED714C51075""").WithArguments("Guid").
WithLocation
(9, 7),
4510
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0BB0F--4FE3-9860-ED714C510756""").WithArguments("Guid").
WithLocation
(12, 7),
4513
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""""").WithArguments("Guid").
WithLocation
(15, 7),
4516
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "null").WithArguments("Guid").
WithLocation
(18, 7));
4544
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0BB0F4FE39860ED714C510756""").WithArguments("Guid").
WithLocation
(7, 7),
4547
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""{69D3E2A0-BB0F-4FE3-9860-ED714C510756}""").WithArguments("Guid").
WithLocation
(10, 7),
4550
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""(69D3E2A0-BB0F-4FE3-9860-ED714C510756)""").WithArguments("Guid").
WithLocation
(13, 7),
4553
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""{0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}""").WithArguments("Guid").
WithLocation
(16, 7));
4568
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, @"""69D3E2A0BB0F--4FE3-9860-ED714C510756""").WithArguments("Guid").
WithLocation
(5, 17));
5020
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "AttributeUsage").WithArguments("test.cs", "System.AttributeUsageAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.AttributeUsageAttribute").
WithLocation
(4, 6),
5023
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "AttributeUsage").WithArguments("test.cs", "System.AttributeUsageAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.AttributeUsageAttribute").
WithLocation
(5, 6),
5026
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "AttributeUsage").WithArguments("AttributeUsage").
WithLocation
(5, 6));
5513
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, @"ComCompatibleVersionAttribute(""str"", 0)").WithArguments("build", "System.Runtime.InteropServices.ComCompatibleVersionAttribute.ComCompatibleVersionAttribute(int, int, int, int)").
WithLocation
(4, 12));
5783
Diagnostic(ErrorCode.ERR_DuplicateNameInNS, "TypeClashWithNS").WithArguments("TypeClashWithNS", "<global namespace>").
WithLocation
(78, 7),
5786
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "AnotherAttribute").WithArguments("AnotherAttribute").
WithLocation
(53, 29),
5789
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "G<int, AnotherAttribute>").WithArguments("G<int, AnotherAttribute>").
WithLocation
(53, 22),
5792
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").
WithLocation
(7, 5),
5795
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "SelfReferenceInBase").WithArguments("SelfReferenceInBase").
WithLocation
(87, 35),
5798
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").
WithLocation
(6, 5),
5801
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "A1").WithArguments("A1", "Do not use A1").
WithLocation
(37, 2),
5804
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").
WithLocation
(8, 18),
5807
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").
WithLocation
(12, 9),
5810
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Do not use this type").
WithLocation
(16, 23),
5813
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Mydeleg").WithArguments("Mydeleg").
WithLocation
(18, 9));
5951
Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").
WithLocation
(98, 10),
5954
Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").
WithLocation
(99, 10),
5957
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ObsoleteMethod1()").WithArguments("Test.ObsoleteMethod1()").
WithLocation
(8, 9),
5960
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "ObsoleteMethod2()").WithArguments("Test.ObsoleteMethod2()", "Do not call this method").
WithLocation
(9, 9),
5963
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "ObsoleteMethod3()").WithArguments("Test.ObsoleteMethod3()", "").
WithLocation
(10, 9),
5966
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ObsoleteMethod5()").WithArguments("Test.ObsoleteMethod5()").
WithLocation
(11, 9),
5969
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteMethod4()").WithArguments("Test.ObsoleteMethod4()", "Do not call this method").
WithLocation
(15, 9),
5972
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.field1").WithArguments("Test.field1", "Do not use this field").
WithLocation
(16, 17),
5975
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.Property1").WithArguments("Test.Property1", "Do not use this property").
WithLocation
(17, 18),
5978
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.Property2").WithArguments("Test.Property2", "Do not use this property").
WithLocation
(18, 18),
5981
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop2").WithArguments("Test.Prop2.get").
WithLocation
(20, 18),
5984
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop3").WithArguments("Test.Prop3.set").
WithLocation
(24, 9),
5987
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop4").WithArguments("Test.Prop4.get").
WithLocation
(26, 18),
5990
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t.Prop4").WithArguments("Test.Prop4.set").
WithLocation
(27, 9),
5993
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteExtensionMethod1()").WithArguments("TestExtension.ObsoleteExtensionMethod1(Test)", "Do not call this extension method").
WithLocation
(32, 9),
5996
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteMethod4").WithArguments("Test.ObsoleteMethod4(int)", "Do not call this method").
WithLocation
(34, 28),
5999
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.ObsoleteMethod4").WithArguments("Test.ObsoleteMethod4()", "Do not call this method").
WithLocation
(36, 24),
6002
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Property1").WithArguments("Test.Property1", "Do not use this property").
WithLocation
(38, 30),
6005
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Property2").WithArguments("Test.Property2", "Do not use this property").
WithLocation
(38, 46),
6008
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "t1[10]").WithArguments("Test.this[int]").
WithLocation
(39, 18),
6011
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "gt.ObsoleteMethod1<double>()").WithArguments("GenericTest<int>.ObsoleteMethod1<U>()").
WithLocation
(42, 9),
6014
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "gt.field1").WithArguments("GenericTest<int>.field1", "Do not use this field").
WithLocation
(43, 18),
6017
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "gt.Property1").WithArguments("GenericTest<int>.Property1", "Do not use this property").
WithLocation
(44, 19),
6020
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "t.event1").WithArguments("Test.event1", "Do not use this event").
WithLocation
(30, 9),
6023
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "gt.event1").WithArguments("GenericTest<int>.event1", "Do not use this event").
WithLocation
(45, 9),
6026
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "event1").WithArguments("GenericTest<T>.event1").
WithLocation
(121, 28));
6169
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "TestClass2").WithArguments("TestClass2", "TestClass2 is obsolete").
WithLocation
(5, 29),
6172
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "TestClass3").WithArguments("TestClass3", "Do not use TestClass3").
WithLocation
(6, 29),
6175
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "TestClass4").WithArguments("TestClass4", "TestClass4 is obsolete").
WithLocation
(7, 29),
6178
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "TestClass1").WithArguments("TestClass1").
WithLocation
(4, 29),
6181
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c.TestMethod()").WithArguments("TestClass.TestMethod()", "Do not use TestMethod").
WithLocation
(12, 9),
6184
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c.Prop1").WithArguments("TestClass.Prop1", "Do not use Prop1").
WithLocation
(13, 17),
6187
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.field1").WithArguments("TestClass.field1", "Do not use field1").
WithLocation
(14, 13),
6190
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.event1").WithArguments("TestClass.event1", "Do not use event").
WithLocation
(15, 9),
6193
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.event1").WithArguments("TestClass.event1", "Do not use event").
WithLocation
(16, 9),
6196
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "c.Prop2").WithArguments("TestClass.Prop2.get", "Do not use Prop2.Get").
WithLocation
(18, 13),
6199
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "c.Prop3").WithArguments("TestClass.Prop3.set", "Do not use Prop3.Get").
WithLocation
(19, 9));
6316
Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "goo").WithArguments("C2.goo()", "C1.goo()").
WithLocation
(10, 26),
6319
Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "get").WithArguments("F2.Goo.get", "F1.Goo.get").
WithLocation
(90, 30),
6322
Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("E5.Goo.get", "E1.Goo.get").
WithLocation
(77, 42),
6325
Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "goo").WithArguments("D5.goo()", "D1.goo()").
WithLocation
(51, 26),
6328
Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "goo").WithArguments("D2.goo()", "D1.goo()").
WithLocation
(38, 26),
6331
Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "goo").WithArguments("C5.goo()", "C1.goo()").
WithLocation
(24, 26),
6334
Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "get").WithArguments("F5.Goo.get", "F1.Goo.get").
WithLocation
(102, 30),
6337
Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("E2.Goo.get", "E1.Goo.get").
WithLocation
(65, 42));
6379
Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "get").WithArguments("Derived.Boo.get", "Base.Boo.get").
WithLocation
(14, 31),
6382
Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("Derived.Goo.get", "Base.Goo.get").
WithLocation
(15, 42),
6385
Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "Koo").WithArguments("Derived.Koo", "Base.Koo").
WithLocation
(18, 25),
6388
Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "get").WithArguments("Derived.Koo.get", "Base.Koo.get").
WithLocation
(18, 69),
6391
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "derived.Boo").WithArguments("Base.Boo.get").
WithLocation
(26, 7),
6394
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "derived.Hoo").WithArguments("Base.Hoo.get", "Base.Hoo is Obsolete").
WithLocation
(28, 13),
6397
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "derived.Joo").WithArguments("Base.Joo.get", "Base.Joo is Obsolete").
WithLocation
(29, 13),
6400
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "derived.Koo").WithArguments("Base.Koo", "Base.Koo is Obsolete").
WithLocation
(30, 13));
6468
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F1").WithArguments("Test.F1", "F1 is obsolete").
WithLocation
(7, 15),
6471
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F2").WithArguments("Test.F2", "F2 is obsolete").
WithLocation
(15, 15),
6474
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F3").WithArguments("Test.F3", "F3 is obsolete").
WithLocation
(11, 15),
6477
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F4").WithArguments("Test.F4", "blah").
WithLocation
(18, 15),
6480
Diagnostic(ErrorCode.ERR_ObjectRequired, "F5").WithArguments("Test.F5").
WithLocation
(21, 15),
6483
Diagnostic(ErrorCode.ERR_ObjectRequired, "P1").WithArguments("Test.P1").
WithLocation
(24, 15),
6486
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "P2").WithArguments("Test.P2").
WithLocation
(28, 15),
6489
Diagnostic(ErrorCode.ERR_ObjectRequired, "P2").WithArguments("Test.P2").
WithLocation
(28, 15),
6492
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "SomeAttr(P2, true)").WithArguments("SomeAttr", "2").
WithLocation
(28, 6),
6495
Diagnostic(ErrorCode.ERR_BadArgType, "Method1").WithArguments("1", "method group", "string").
WithLocation
(31, 15),
6498
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Method2").WithArguments("Test.Method2()").
WithLocation
(35, 16),
6501
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "SomeAttr1").WithArguments("x", "System.Action").
WithLocation
(35, 6),
6504
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F7").WithArguments("Test.F7", "F7 is obsolete").
WithLocation
(43, 15),
6507
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F6").WithArguments("Test.F6", "F6 is obsolete").
WithLocation
(44, 15),
6510
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F7").WithArguments("Test.F7", "F7 is obsolete").
WithLocation
(45, 15),
6513
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F6").WithArguments("Test.F6", "F6 is obsolete").
WithLocation
(38, 15),
6516
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F6").WithArguments("Test.F6", "F6 is obsolete").
WithLocation
(39, 15),
6519
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "F7").WithArguments("Test.F7", "F7 is obsolete").
WithLocation
(40, 15));
6625
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "SomeType").WithArguments("SomeType").
WithLocation
(27, 19),
6628
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "someEvent").WithArguments("Test.someEvent").
WithLocation
(20, 28));
6793
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att").WithArguments("Att.Att()", "Constructor").
WithLocation
(37, 2),
6796
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Field = 1").WithArguments("Att.Field", "Field").
WithLocation
(38, 6),
6799
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Field = 1)").WithArguments("Att.Att()", "Constructor").
WithLocation
(38, 2),
6802
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop = 1").WithArguments("Att.Prop", "Property").
WithLocation
(39, 6),
6805
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop = 1)").WithArguments("Att.Att()", "Constructor").
WithLocation
(39, 2),
6808
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop2 = 1").WithArguments("Att.Prop2", "Property").
WithLocation
(40, 6),
6811
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop2 = 1)").WithArguments("Att.Att()", "Constructor").
WithLocation
(40, 2),
6814
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop3 = 1").WithArguments("Att.Prop3.set", "setter").
WithLocation
(41, 6),
6817
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop3 = 1)").WithArguments("Att.Att()", "Constructor").
WithLocation
(41, 2),
6820
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop4 = 1").WithArguments("Att.Prop4", "Property").
WithLocation
(42, 6),
6823
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop4 = 1").WithArguments("Att.Prop4.set", "setter").
WithLocation
(42, 6),
6826
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop4 = 1)").WithArguments("Att.Att()", "Constructor").
WithLocation
(42, 2),
6829
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att(Prop5 = 1)").WithArguments("Att.Att()", "Constructor").
WithLocation
(43, 2),
6832
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Att()").WithArguments("Att.Att()", "Constructor").
WithLocation
(46, 6));
6908
Diagnostic(ErrorCode.WRN_NonObsoleteOverridingObsolete, "set").WithArguments("DerivedAtt.Prop1.set", "BaseAtt.Prop1.set").
WithLocation
(43, 9),
6911
Diagnostic(ErrorCode.WRN_ObsoleteOverridingNonObsolete, "set").WithArguments("DerivedAtt.Prop3.set", "BaseAtt.Prop3.set").
WithLocation
(55, 36),
6914
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop = 1").WithArguments("BaseAtt.Prop.set", "setter").
WithLocation
(59, 13),
6917
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop1 = 1").WithArguments("BaseAtt.Prop1.set", "setter").
WithLocation
(60, 13),
6920
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop2 = 1").WithArguments("BaseAtt.Prop2.set", "base setter").
WithLocation
(61, 13));
6953
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c1[0]").WithArguments("C1.this[int].get").
WithLocation
(19, 17),
6956
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "c2[0]").WithArguments("C2.this[int].set").
WithLocation
(21, 9));
7251
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A").WithArguments("A").
WithLocation
(7, 33));
7302
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "A").WithArguments("A").
WithLocation
(11, 24),
7305
Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter").
WithLocation
(21, 10));
7336
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Z").WithArguments("N.A", "Do not use").
WithLocation
(12, 22),
7339
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").
WithLocation
(13, 27),
7342
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "X").WithArguments("N.A", "Do not use").
WithLocation
(10, 22),
7345
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").
WithLocation
(11, 22),
7348
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").
WithLocation
(16, 16),
7351
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Y").WithArguments("N.A", "Do not use").
WithLocation
(17, 21),
7354
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Z").WithArguments("N.A", "Do not use").
WithLocation
(18, 16),
7357
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "X").WithArguments("N.A", "Do not use").
WithLocation
(15, 16));
8219
Diagnostic("TEST1", "M1()").WithArguments("C.M1()").
WithLocation
(12, 9));
8250
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C.M1()").
WithLocation
(12, 9));
8281
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C.M1()").
WithLocation
(12, 9));
8312
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C.M1()").
WithLocation
(12, 9));
8349
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "DiagnosticId").WithArguments("System.ObsoleteAttribute", "DiagnosticId").
WithLocation
(10, 23),
8352
Diagnostic(ErrorCode.ERR_AmbigMember, "DiagnosticId").WithArguments("System.ObsoleteAttribute.DiagnosticId", "System.ObsoleteAttribute.DiagnosticId").
WithLocation
(16, 15));
8385
Diagnostic("TEST1", "M1()").WithArguments("C.M1()", "don't use").
WithLocation
(12, 9));
8417
Diagnostic(ErrorCode.ERR_DuplicateNamedAttributeArgument, @"DiagnosticId = ""B""").WithArguments("DiagnosticId").
WithLocation
(9, 9),
8420
Diagnostic(ErrorCode.ERR_DuplicateNamedAttributeArgument, @"UrlFormat = ""D""").WithArguments("UrlFormat").
WithLocation
(11, 9),
8423
Diagnostic("A", "M1()").WithArguments("C.M1()").
WithLocation
(16, 9));
8465
Diagnostic("TEST1", "M1()").WithArguments("C.M1()", "don't use").
WithLocation
(15, 9),
8468
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C.M2()").
WithLocation
(16, 9),
8471
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C.M2()").
WithLocation
(20, 9),
8474
Diagnostic("TEST1", "M1()").WithArguments("C.M1()", "don't use").
WithLocation
(24, 9));
8524
Diagnostic("TEST1", "M1()").WithArguments("C1.M1()", "don't use").
WithLocation
(6, 9),
8527
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C1.M2()").
WithLocation
(7, 9),
8530
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M2()").WithArguments("C1.M2()").
WithLocation
(11, 9),
8533
Diagnostic("TEST1", "M1()").WithArguments("C1.M1()", "don't use").
WithLocation
(15, 9));
8579
Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9),
8582
Diagnostic("TEST2", "M2()").WithArguments("C1.M2()", "don't use").
WithLocation
(7, 9),
8585
Diagnostic("TEST3", "M3()").WithArguments("C1.M3()", "don't use").
WithLocation
(8, 9));
8628
Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9));
8671
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9));
8704
Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").
WithLocation
(6, 9)
8710
Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").
WithLocation
(6, 9).WithWarningAsError(true)
8716
Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").
WithLocation
(6, 9));
8724
Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").
WithLocation
(6, 9)
8730
Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").
WithLocation
(6, 9).WithWarningAsError(true)
8736
Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").
WithLocation
(6, 9)
8745
Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").
WithLocation
(6, 9)
8751
Diagnostic("TEST1", "M1()", isSuppressed: false).WithArguments("C1.M1()").
WithLocation
(6, 9)
8819
Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9));
8867
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9));
8946
Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9));
9001
Diagnostic("TEST1", "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9));
9050
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9));
9101
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9));
9242
Diagnostic("A", "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9));
9380
Diagnostic("A", "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9));
9430
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "M1()").WithArguments("C1.M1()").
WithLocation
(6, 9));
9761
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Class1").WithArguments("Class1", "Class1 is deprecated.").
WithLocation
(8, 9),
9764
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Class2").WithArguments("Class2", "Class2 is deprecated.").
WithLocation
(9, 9),
9767
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class3").WithArguments("Class3", "Class3 is deprecated.").
WithLocation
(10, 9),
9770
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Class4").WithArguments("Class4", "Class4 is deprecated.").
WithLocation
(11, 9),
9773
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "x6.P1").WithArguments("Class6.P1.get", "P1.get is deprecated.").
WithLocation
(19, 14),
9776
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "x6.P2").WithArguments("Class6.P2.set", "P1.get is deprecated.").
WithLocation
(22, 9),
9779
Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").
WithLocation
(52, 10)
9815
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "F()").WithArguments("C.F()", "Deprecated").
WithLocation
(12, 9),
9818
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "G()").WithArguments("C.G()", "Removed").
WithLocation
(13, 9));
9886
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").
WithLocation
(8, 13),
9889
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").
WithLocation
(9, 13)
9897
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").
WithLocation
(8, 13),
9900
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").
WithLocation
(9, 13)
9969
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").
WithLocation
(8, 13),
9972
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").
WithLocation
(9, 13)
9980
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Goo()").WithArguments("Test.Goo()", "hello").
WithLocation
(8, 13),
9983
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Test.Bar()").WithArguments("Test.Bar()", "hi").
WithLocation
(9, 13)
10078
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "a.Goo()").WithArguments("IGoo1.Goo()", "IGoo1.Goo has been deprecated").
WithLocation
(12, 9),
10081
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "b.Goo()").WithArguments("ConcreteGoo2.Goo()", "ConcreteGoo2.Goo has been deprecated").
WithLocation
(19, 9),
10084
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "a.Goo()").WithArguments("IGoo3.Goo()", "IGoo3.Goo has been deprecated").
WithLocation
(24, 9),
10087
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "b.Goo()").WithArguments("ConcreteGoo3.Goo()", "ConcreteGoo3.Goo has been deprecated").
WithLocation
(25, 9)
10131
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "i.ExceptionalProp").WithArguments("IExceptionalInterface.ExceptionalProp.set", "Changed my mind; don't put this prop.").
WithLocation
(8, 9),
10134
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "i.ExceptionalProp").WithArguments("IExceptionalInterface.ExceptionalProp.get", "Actually, don't even use the prop at all.").
WithLocation
(9, 27)
10191
Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").
WithLocation
(12, 29),
10194
Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").
WithLocation
(4, 12),
10197
Diagnostic(ErrorCode.ERR_BogusType, "Scenario1").WithArguments("Scenario1").
WithLocation
(7, 18) };
10299
Diagnostic(ErrorCode.ERR_BindToBogus, "sc1_field").WithArguments("RequiredAttr.ReqAttrUsage.sc1_field").
WithLocation
(9, 11),
10302
Diagnostic(ErrorCode.ERR_BindToBogus, "sc1_prop").WithArguments("RequiredAttr.ReqAttrUsage.sc1_prop").
WithLocation
(10, 19),
10305
Diagnostic(ErrorCode.ERR_BindToBogus, "sc1_method").WithArguments("RequiredAttr.ReqAttrUsage.sc1_method()").
WithLocation
(11, 11) };
10363
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").
WithLocation
(4, 10),
10366
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").
WithLocation
(13, 2),
10369
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").
WithLocation
(16, 6),
10372
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "SkipLocalsInitAttribute").
WithLocation
(20, 6)
13227
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "TestError").WithArguments("TestError", "Broken Error Class").
WithLocation
(3, 14),
13230
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "TestWarning").WithArguments("TestWarning", "Broken Warning Class").
WithLocation
(4, 14));
13292
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ActiveParent.ObsoleteChild").WithArguments("ActiveParent.ObsoleteChild").
WithLocation
(3, 14),
13295
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "ObsoleteParent").WithArguments("ObsoleteParent").
WithLocation
(4, 14),
13298
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "BothObsoleteParent").WithArguments("BothObsoleteParent").
WithLocation
(5, 14),
13301
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "BothObsoleteParent.BothObsoleteChild").WithArguments("BothObsoleteParent.BothObsoleteChild").
WithLocation
(5, 14));
13324
Diagnostic(ErrorCode.ERR_NotAnAttributeClass).WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(1, 1));
13393
Diagnostic(ErrorCode.ERR_NotAnAttributeClass).WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(1, 1));
13420
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "IsReadOnlyAttribute").
WithLocation
(4, 19),
13423
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute.F").
WithLocation
(6, 21));
13502
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop").
WithLocation
(5, 24),
13505
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop.set").
WithLocation
(5, 24),
13508
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop").
WithLocation
(5, 31),
13511
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Prop").WithArguments("C.Prop.get").
WithLocation
(5, 31));
13528
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "Obsolete").WithArguments("obsolete on property accessor", "8.0").
WithLocation
(5, 24));
13545
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, @"Deprecated(""don't use this"", DeprecationType.Remove, 50331648u)").WithArguments("obsolete on property accessor", "8.0").
WithLocation
(5, 24));
13571
Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Obsolete").WithArguments("System.ObsoleteAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").
WithLocation
(7, 10));
13597
Diagnostic(ErrorCode.ERR_AttributeNotOnEventAccessor, "Deprecated").WithArguments("Windows.Foundation.Metadata.DeprecatedAttribute", "class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate").
WithLocation
(7, 10));
13628
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[^1]").WithArguments("C.this[int]", "error").
WithLocation
(17, 13),
13631
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[^1]").WithArguments("C.Count", "error").
WithLocation
(17, 13),
13634
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[..]").WithArguments("C.Slice(int, int)", "error").
WithLocation
(18, 13),
13637
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[..]").WithArguments("C.Count", "error").
WithLocation
(18, 13)
13675
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[^1]").WithArguments("C.Count.get", "error").
WithLocation
(23, 13),
13678
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[^1]").WithArguments("C.this[int].get", "error").
WithLocation
(23, 13),
13681
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[..]").WithArguments("C.Count.get", "error").
WithLocation
(24, 13),
13684
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[..]").WithArguments("C.Slice(int, int)", "error").
WithLocation
(24, 13)
13725
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[^1]").WithArguments("C.this[System.Index].get", "error").
WithLocation
(26, 13),
13728
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "this[..]").WithArguments("C.this[System.Range].get", "error").
WithLocation
(27, 13)
13751
Diagnostic(ErrorCode.ERR_InvalidNamedArgument, "MethodCodeType = System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining").WithArguments("MethodCodeType").
WithLocation
(6, 53),
13754
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining").WithArguments("System.Runtime.CompilerServices.MethodImplOptions", "System.Runtime.CompilerServices.MethodCodeType").
WithLocation
(6, 70)
13777
Diagnostic(ErrorCode.ERR_InvalidNamedArgument, "MethodCodeType = (System.Runtime.CompilerServices.MethodCodeType)System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining").WithArguments("MethodCodeType").
WithLocation
(6, 117)
13797
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "StructLayout(CharSet=0)").WithArguments("System.Runtime.InteropServices.StructLayoutAttribute", "0").
WithLocation
(4, 2),
13800
Diagnostic(ErrorCode.ERR_InvalidNamedArgument, "CharSet=0").WithArguments("CharSet").
WithLocation
(7, 38)
13833
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "LegacyObject1").WithArguments("LegacyObject1", "Do not use LegacyObject1").
WithLocation
(7, 27),
13836
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "LegacyObject2").WithArguments("LegacyObject2", "Do not useLegacyObject2").
WithLocation
(8, 27)
13863
Diagnostic(ErrorCode.ERR_BadAttributeArgument, @"$""Do not use {nameof(LegacyObject)}{string.Empty}""").
WithLocation
(11, 11));
13883
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "var").WithArguments("var", "error").
WithLocation
(3, 1),
13886
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "var").WithArguments("var").
WithLocation
(6, 14)
13908
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "var").WithArguments("var").
WithLocation
(2, 7),
13911
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "var").WithArguments("Legacy", "error").
WithLocation
(4, 1),
13914
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "var").WithArguments("Legacy", "error").
WithLocation
(4, 1)
13946
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "unmanaged").WithArguments("unmanaged", "error").
WithLocation
(3, 30),
13949
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "notnull").WithArguments("notnull", "error").
WithLocation
(7, 30),
13952
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "unmanaged").WithArguments("unmanaged").
WithLocation
(12, 14),
13955
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "notnull").WithArguments("notnull").
WithLocation
(17, 14)
13989
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "unmanaged").WithArguments("unmanaged").
WithLocation
(2, 7),
13992
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "notnull").WithArguments("notnull").
WithLocation
(3, 7),
13995
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "unmanaged").WithArguments("Legacy1", "error").
WithLocation
(5, 30),
13998
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "unmanaged").WithArguments("Legacy1", "error").
WithLocation
(5, 30),
14001
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "notnull").WithArguments("Legacy2", "error").
WithLocation
(9, 30),
14004
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "notnull").WithArguments("Legacy2", "error").
WithLocation
(9, 30)
Attributes\EmitTestStrongNameProvider.cs (2)
40
Diagnostic(ErrorCode.ERR_PublicKeyFileFailure).WithArguments(keyFile, ex.Message).
WithLocation
(1, 1));
60
Diagnostic(ErrorCode.ERR_PublicKeyContainerFailure).WithArguments("RoslynTestContainer", ex.Message).
WithLocation
(1, 1));
Attributes\InternalsVisibleToAndStrongNameTests.cs (67)
205
Diagnostic(ErrorCode.ERR_PublicKeyFileFailure).WithArguments("..\\" + keyFileName, "aaa.dll not found.").
WithLocation
(1, 1)
451
Diagnostic(ErrorCode.WRN_AttributeIgnoredWhenPublicSigning).WithArguments("System.Reflection.AssemblyKeyNameAttribute").
WithLocation
(1, 1),
453
Diagnostic(ErrorCode.WRN_AttributeIgnoredWhenPublicSigning).WithArguments("System.Reflection.AssemblyKeyFileAttribute").
WithLocation
(1, 1)
468
Diagnostic(ErrorCode.ERR_PublicSignNetModule).
WithLocation
(1, 1)
475
Diagnostic(ErrorCode.ERR_CmdOptionConflictsSource).WithArguments("System.Reflection.AssemblyKeyFileAttribute", "CryptoKeyFile").
WithLocation
(1, 1),
477
Diagnostic(ErrorCode.ERR_PublicSignNetModule).
WithLocation
(1, 1)
491
Diagnostic(ErrorCode.ERR_PublicSignNetModule).
WithLocation
(1, 1)
507
Diagnostic(ErrorCode.WRN_AttributeIgnoredWhenPublicSigning).WithArguments("System.Reflection.AssemblyKeyFileAttribute").
WithLocation
(1, 1),
509
Diagnostic(ErrorCode.ERR_PublicSignButNoKey).
WithLocation
(1, 1)
527
Diagnostic(ErrorCode.WRN_AttributeIgnoredWhenPublicSigning).WithArguments("System.Reflection.AssemblyKeyNameAttribute").
WithLocation
(1, 1),
529
Diagnostic(ErrorCode.ERR_PublicSignButNoKey).
WithLocation
(1, 1)
609
Diagnostic(ErrorCode.WRN_CmdOptionConflictsSource).WithArguments("PublicSign", "System.Reflection.AssemblyDelaySignAttribute").
WithLocation
(1, 1));
631
Diagnostic(ErrorCode.ERR_MutuallyExclusiveOptions).WithArguments("PublicSign", "CryptoKeyContainer").
WithLocation
(1, 1),
633
Diagnostic(ErrorCode.ERR_PublicSignButNoKey).
WithLocation
(1, 1));
648
Diagnostic(ErrorCode.ERR_MutuallyExclusiveOptions).WithArguments("PublicSign", "CryptoKeyContainer").
WithLocation
(1, 1),
650
Diagnostic(ErrorCode.ERR_PublicSignButNoKey).
WithLocation
(1, 1));
673
Diagnostic(ErrorCode.ERR_MutuallyExclusiveOptions).WithArguments("PublicSign", "DelaySign").
WithLocation
(1, 1));
708
Diagnostic(ErrorCode.ERR_PublicSignButNoKey).
WithLocation
(1, 1));
727
Diagnostic(ErrorCode.ERR_MutuallyExclusiveOptions).WithArguments("CryptoPublicKey", "CryptoKeyFile").
WithLocation
(1, 1),
729
Diagnostic(ErrorCode.ERR_MutuallyExclusiveOptions).WithArguments("CryptoPublicKey", "CryptoKeyContainer").
WithLocation
(1, 1),
731
Diagnostic(ErrorCode.ERR_BadCompilationOptionValue).WithArguments("CryptoPublicKey", "01-02-03").
WithLocation
(1, 1));
768
Diagnostic(ErrorCode.ERR_BadAccess, "Goo").WithArguments("C.Goo()").
WithLocation
(7, 15)
939
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "InternalMethod").WithArguments("Paul, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(7, 15),
942
Diagnostic(ErrorCode.ERR_BadAccess, "ProtectedMethod").WithArguments("PublicClass.ProtectedMethod()").
WithLocation
(8, 21),
945
Diagnostic(ErrorCode.ERR_NoSuchMember, "PrivateMethod").WithArguments("PublicClass", "PrivateMethod").
WithLocation
(9, 21),
948
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "InternalProtectedMethod").WithArguments("Paul, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(10, 21),
951
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PrivateProtectedMethod").WithArguments("Paul, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(11, 21)
985
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "FriendClass").WithArguments("Paul, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(7, 3)
1150
Diagnostic(ErrorCode.ERR_BadAccess, "C").WithArguments("CAttribute").
WithLocation
(2, 12)
1188
.
WithLocation
(1, 1),
1191
Diagnostic(ErrorCode.ERR_BadAccess, "AssemblyKeyName").WithArguments("AssemblyKeyNameAttribute").
WithLocation
(2, 12)
1257
Diagnostic(ErrorCode.ERR_BadAccess, "C").WithArguments("CAttribute").
WithLocation
(3, 12)
1296
.
WithLocation
(1, 1),
1299
Diagnostic(ErrorCode.ERR_BadAccess, "AssemblyKeyName").WithArguments("AssemblyKeyNameAttribute").
WithLocation
(3, 12)
1979
Diagnostic(ErrorCode.ERR_BadAccess, "Base").WithArguments("Base").
WithLocation
(2, 17)
2330
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "F").WithArguments("a", "B.F(int[])").
WithLocation
(7, 11),
2332
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Bar").WithArguments("object", "Bar").
WithLocation
(8, 20),
2334
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "c[1]").WithArguments("a", "B.this[int, int[]]").
WithLocation
(10, 17));
2743
Diagnostic(ErrorCode.WRN_InvalidAssemblyName, @"System.Runtime.CompilerServices.InternalsVisibleTo(""System.Runtime.Serialization, PublicKey = 10000000000000000400000000000000"")").WithArguments("System.Runtime.Serialization, PublicKey = 10000000000000000400000000000000").
WithLocation
(1, 12));
2785
Diagnostic(ErrorCode.ERR_PublicSignButNoKey).
WithLocation
(1, 1));
2796
Diagnostic(ErrorCode.ERR_PublicSignButNoKey).
WithLocation
(1, 1));
2860
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Class1").WithArguments("Class1").
WithLocation
(2, 12)
2926
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_01_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(2, 40)
2961
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_02_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(4, 45)
3002
Diagnostic(ErrorCode.ERR_PublicKeyFileFailure).WithArguments("somethingSomething", "Assembly signing not supported.").
WithLocation
(1, 1),
3004
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis).WithArguments("Issue57742_03_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "Issue57742_03, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1),
3007
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_03_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(4, 40),
3010
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_03_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(5, 42)
3035
Diagnostic(ErrorCode.ERR_PublicKeyContainerFailure).WithArguments("somethingSomething", "Assembly signing not supported.").
WithLocation
(1, 1),
3037
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis).WithArguments("Issue57742_03_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "Issue57742_03, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1),
3040
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_03_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(4, 40),
3043
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_03_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(5, 42)
3061
Diagnostic(ErrorCode.ERR_PublicKeyFileFailure).WithArguments("somethingSomething", "Assembly signing not supported.").
WithLocation
(1, 1),
3063
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis).WithArguments("Issue57742_03_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "Issue57742_03, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1),
3066
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_03_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(4, 42)
3084
Diagnostic(ErrorCode.ERR_PublicKeyContainerFailure).WithArguments("somethingSomething", "Assembly signing not supported.").
WithLocation
(1, 1),
3086
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis).WithArguments("Issue57742_03_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "Issue57742_03, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1),
3089
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_03_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(4, 42)
3126
Diagnostic(ErrorCode.ERR_PublicKeyFileFailure).WithArguments("somethingSomething", "Assembly signing not supported.").
WithLocation
(1, 1),
3128
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis).WithArguments("Issue57742_04_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "Issue57742_04, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1),
3131
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_04_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(5, 45),
3134
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_04_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(6, 42)
3155
Diagnostic(ErrorCode.ERR_PublicKeyContainerFailure).WithArguments("somethingSomething", "Assembly signing not supported.").
WithLocation
(1, 1),
3157
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis).WithArguments("Issue57742_04_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "Issue57742_04, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1),
3160
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_04_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(5, 45),
3163
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "PublicKeyConstants").WithArguments("Issue57742_04_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(6, 42)
3193
Diagnostic(ErrorCode.ERR_FriendRefNotEqualToThis, "C").WithArguments("Issue57742_05_Lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "").
WithLocation
(2, 67)
CodeGen\CodeGenLengthBasedSwitchTests.cs (27)
1060
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "null").
WithLocation
(8, 13)
1534
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "").WithArguments("System.String", "get_Length").
WithLocation
(1, 1)
1542
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "").WithArguments("System.String", "get_Length").
WithLocation
(1, 1)
1673
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""a""").WithArguments("System.Span`1", "get_Length").
WithLocation
(7, 13),
1676
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""ab""").WithArguments("System.Span`1", "get_Length").
WithLocation
(8, 13),
1679
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abc""").WithArguments("System.Span`1", "get_Length").
WithLocation
(9, 13),
1682
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcd""").WithArguments("System.Span`1", "get_Length").
WithLocation
(10, 13),
1685
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcde""").WithArguments("System.Span`1", "get_Length").
WithLocation
(11, 13),
1688
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcdef""").WithArguments("System.Span`1", "get_Length").
WithLocation
(12, 13),
1691
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcdefg""").WithArguments("System.Span`1", "get_Length").
WithLocation
(13, 13),
1694
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcdefgh""").WithArguments("System.Span`1", "get_Length").
WithLocation
(14, 13)
1938
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""a""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(7, 13),
1941
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""ab""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(8, 13),
1944
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abc""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(9, 13),
1947
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcd""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(10, 13),
1950
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcde""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(11, 13),
1953
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcdef""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(12, 13),
1956
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcdefg""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(13, 13),
1959
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcdefgh""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(14, 13)
1991
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""a""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(7, 13),
1994
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""ab""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(8, 13),
1997
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abc""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(9, 13),
2000
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcd""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(10, 13),
2003
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcde""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(11, 13),
2006
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcdef""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(12, 13),
2009
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcdefg""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(13, 13),
2012
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""abcdefgh""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(14, 13)
Diagnostics\CompilationEventTests.cs (4)
100
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("void C<T1>.M(int x1)", "void C<T1>.M(int x2)").
WithLocation
(12, 18)
106
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("void C<T1>.M(int x1)", "void C<T1>.M(int x2)").
WithLocation
(12, 18)
158
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("void C<T1>.M(int x1)", "void C<T1>.M(int x2)").
WithLocation
(12, 18)
169
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("void C<T1>.M(int x1)", "void C<T1>.M(int x2)").
WithLocation
(12, 18)
Diagnostics\DiagnosticAnalyzerTests.cs (372)
642
Diagnostic("MethodSymbolDiagnostic", "0").WithArguments("B.Property.get").
WithLocation
(4, 28),
643
Diagnostic("MethodSymbolDiagnostic", "Method").WithArguments("B.Method()").
WithLocation
(5, 16),
644
Diagnostic("MethodSymbolDiagnostic", "0").WithArguments("B.this[int].get").
WithLocation
(6, 31));
685
Diagnostic("MyFieldDiagnostic", @"public string field = ""field"";").
WithLocation
(4, 5));
703
Diagnostic("MyFieldDiagnostic", @"public string field1, field2;").
WithLocation
(4, 5),
704
Diagnostic("MyFieldDiagnostic", @"public int field3 = 0, field4 = 1;").
WithLocation
(5, 5),
705
Diagnostic("MyFieldDiagnostic", @"public int field5, field6 = 1;").
WithLocation
(6, 5));
865
.
WithLocation
(1, 1));
937
.
WithLocation
(1, 1));
973
.
WithLocation
(1, 1));
989
.VerifyAnalyzerDiagnostics(analyzers, null, null, Diagnostic("CS101").
WithLocation
(1, 1));
1000
.VerifyAnalyzerDiagnostics(analyzers, null, null, Diagnostic("BC101").
WithLocation
(1, 1));
1087
.
WithLocation
(1, 1)
1123
.
WithLocation
(1, 1)
1171
Diagnostic(CodeBlockActionAnalyzer.CodeBlockTopLevelRule.Id, "M").WithArguments("M").
WithLocation
(4, 17),
1172
Diagnostic(CodeBlockActionAnalyzer.CodeBlockPerCompilationRule.Id, "M").WithArguments("M").
WithLocation
(4, 17)
1189
.VerifyAnalyzerDiagnostics(analyzers, null, null, expected: Diagnostic(CodeBlockActionAnalyzer.CodeBlockTopLevelRule.Id, "M").WithArguments("M").
WithLocation
(4, 17));
1219
Diagnostic(CSharpGenericNameAnalyzer.DiagnosticId, @"Nullable<int>").
WithLocation
(9, 17));
1233
Diagnostic(CSharpNamespaceDeclarationAnalyzer.DiagnosticId, @"namespace Goo.Bar.GooBar { }").
WithLocation
(2, 1));
1367
Diagnostic(CSharpCodeBlockObjectCreationAnalyzer.DiagnosticDescriptor.Id, "new C()").
WithLocation
(5, 18)
1433
.
WithLocation
(i + 2, 7);
1618
expected: Diagnostic("GeneratedCodeAnalyzer2Warning", "TypeInUserFile").WithArguments("TypeInUserFile", "2").
WithLocation
(2, 7));
1687
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "0").
WithLocation
(12, 17),
1688
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "x").
WithLocation
(13, 17),
1689
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "12").
WithLocation
(16, 29));
1859
var diagnostic = Diagnostic(GeneratedCodeAnalyzer.Warning.Id, squiggledText).WithArguments(arguments).
WithLocation
(line, column);
1862
diagnostic = Diagnostic(GeneratedCodeAnalyzer.Error.Id, squiggledText).WithArguments(arguments).
WithLocation
(line, column);
1874
var diagnostic = Diagnostic(diagnosticId, squiggledText).WithArguments(arguments).
WithLocation
(line, column);
1915
Diagnostic("UserCodeDiagnostic").WithArguments("Source1_File1.cs").
WithLocation
(1, 1),
1916
Diagnostic("UniqueTextFileDiagnostic").WithArguments("Source1_File1.cs").
WithLocation
(1, 1),
1917
Diagnostic("GeneratedCodeDiagnostic", "C33").WithArguments("C33").
WithLocation
(2, 22),
1918
Diagnostic("UserCodeDiagnostic", "C2").WithArguments("C2").
WithLocation
(2, 22),
1919
Diagnostic("UserCodeDiagnostic", "C").WithArguments("C").
WithLocation
(2, 22),
1920
Diagnostic("UserCodeDiagnostic").WithArguments("Source1_File2.cs").
WithLocation
(1, 1),
1921
Diagnostic("UniqueTextFileDiagnostic").WithArguments("Source1_File2.cs").
WithLocation
(1, 1),
1922
Diagnostic("UserCodeDiagnostic").WithArguments("Source2_File3.cs").
WithLocation
(1, 1),
1923
Diagnostic("UniqueTextFileDiagnostic").WithArguments("Source2_File3.cs").
WithLocation
(1, 1),
1924
Diagnostic("GeneratedCodeDiagnostic").WithArguments("Source3_File4.generated.cs").
WithLocation
(1, 1),
1925
Diagnostic("UniqueTextFileDiagnostic").WithArguments("Source3_File4.generated.cs").
WithLocation
(1, 1),
1926
Diagnostic("GeneratedCodeDiagnostic").WithArguments("Source3_File5.designer.cs").
WithLocation
(1, 1),
1927
Diagnostic("UniqueTextFileDiagnostic").WithArguments("Source3_File5.designer.cs").
WithLocation
(1, 1),
1928
Diagnostic("NumberOfUniqueTextFileDescriptor").WithArguments("3").
WithLocation
(1, 1));
1948
Diagnostic("Parameter_ID", "a").
WithLocation
(4, 18),
1949
Diagnostic("Parameter_ID", "b").
WithLocation
(4, 25));
1969
Diagnostic("Parameter_ID", "a").
WithLocation
(4, 20),
1970
Diagnostic("Parameter_ID", "b").
WithLocation
(4, 30));
1992
Diagnostic("Parameter_ID", "index").
WithLocation
(4, 25));
2013
Diagnostic("Local_ID", "x").
WithLocation
(6, 36),
2014
Diagnostic("Parameter_ID", "a").
WithLocation
(6, 45),
2015
Diagnostic("Parameter_ID", "b").
WithLocation
(6, 52));
2038
Diagnostic("Parameter_ID", "a").
WithLocation
(9, 37),
2039
Diagnostic("Parameter_ID", "x").
WithLocation
(6, 26),
2040
Diagnostic("Parameter_ID", "y").
WithLocation
(6, 33));
2058
Diagnostic("Parameter_ID", "x").
WithLocation
(4, 25),
2059
Diagnostic("Parameter_ID", "y").
WithLocation
(4, 35));
2077
Diagnostic("Parameter_ID", "c").
WithLocation
(4, 44));
2100
Diagnostic("Parameter_ID", "c").
WithLocation
(9, 18),
2101
Diagnostic("Parameter_ID", "d").
WithLocation
(9, 25),
2102
Diagnostic("Parameter_ID", "a").
WithLocation
(4, 16),
2103
Diagnostic("Parameter_ID", "b").
WithLocation
(4, 23));
2121
Diagnostic("Parameter_ID", "x").
WithLocation
(4, 28),
2122
Diagnostic("Parameter_ID", "y").
WithLocation
(4, 35));
2147
Diagnostic("Parameter_ID", "a").
WithLocation
(4, 18), // ctor
2148
Diagnostic("Parameter_ID", "b").
WithLocation
(4, 25),
2149
Diagnostic("Local_ID", "c").
WithLocation
(6, 13),
2150
Diagnostic("Local_ID", "d").
WithLocation
(6, 20),
2151
Diagnostic("Parameter_ID", "a").
WithLocation
(10, 20), // M1
2152
Diagnostic("Parameter_ID", "b").
WithLocation
(10, 30),
2153
Diagnostic("Local_ID", "c").
WithLocation
(12, 11),
2154
Diagnostic("Local_ID", "x").
WithLocation
(18, 36), // M2
2155
Diagnostic("Parameter_ID", "a").
WithLocation
(26, 37), // M4
2156
Diagnostic("Parameter_ID", "index").
WithLocation
(28, 25)); // indexer
2180
Diagnostic("GeneratedCodeAnalyzerWarning", "}").WithArguments("Source.cs").
WithLocation
(11, 1),
2181
Diagnostic("GeneratedCodeAnalyzerError", "}").WithArguments("Source.cs").
WithLocation
(11, 1),
2182
Diagnostic("GeneratedCodeAnalyzerWarning", "RegularClass").WithArguments("RegularClass").
WithLocation
(9, 14),
2183
Diagnostic("GeneratedCodeAnalyzerError", "RegularClass").WithArguments("RegularClass").
WithLocation
(9, 14),
2184
Diagnostic("GeneratedCodeAnalyzerSummary").WithArguments("RegularClass(IsGeneratedCode:False)", "Source.cs(IsGeneratedCode:False)").
WithLocation
(1, 1));
2188
Diagnostic("GeneratedCodeAnalyzerWarning", "}").WithArguments("Source.cs").
WithLocation
(11, 1),
2189
Diagnostic("GeneratedCodeAnalyzerError", "}").WithArguments("Source.cs").
WithLocation
(11, 1),
2190
Diagnostic("GeneratedCodeAnalyzerWarning", "RegularClass").WithArguments("RegularClass").
WithLocation
(9, 14),
2191
Diagnostic("GeneratedCodeAnalyzerError", "RegularClass").WithArguments("RegularClass").
WithLocation
(9, 14),
2192
Diagnostic("GeneratedCodeAnalyzerSummary").WithArguments("HiddenClass(IsGeneratedCode:True),RegularClass(IsGeneratedCode:False)", "Source.cs(IsGeneratedCode:False)").
WithLocation
(1, 1));
2196
Diagnostic("GeneratedCodeAnalyzerWarning", "}").WithArguments("Source.cs").
WithLocation
(11, 1),
2197
Diagnostic("GeneratedCodeAnalyzerError", "}").WithArguments("Source.cs").
WithLocation
(11, 1),
2198
Diagnostic("GeneratedCodeAnalyzerWarning", "HiddenClass").WithArguments("HiddenClass").
WithLocation
(4, 14),
2199
Diagnostic("GeneratedCodeAnalyzerError", "HiddenClass").WithArguments("HiddenClass").
WithLocation
(4, 14),
2200
Diagnostic("GeneratedCodeAnalyzerWarning", "RegularClass").WithArguments("RegularClass").
WithLocation
(9, 14),
2201
Diagnostic("GeneratedCodeAnalyzerError", "RegularClass").WithArguments("RegularClass").
WithLocation
(9, 14),
2202
Diagnostic("GeneratedCodeAnalyzerSummary").WithArguments("HiddenClass(IsGeneratedCode:True),RegularClass(IsGeneratedCode:False)", "Source.cs(IsGeneratedCode:False)").
WithLocation
(1, 1));
2248
Diagnostic("GeneratedCodeAnalyzerWarning", "var userVar = 0").WithArguments("Node: var userVar = 0").
WithLocation
(17, 9),
2249
Diagnostic("GeneratedCodeAnalyzerWarning", "var mixMethodUserVar = 0").WithArguments("Node: var mixMethodUserVar = 0").
WithLocation
(26, 9),
2250
Diagnostic("GeneratedCodeAnalyzerWarning", "userVar = 0").WithArguments("Operation: NonHiddenMethod").
WithLocation
(17, 13),
2251
Diagnostic("GeneratedCodeAnalyzerWarning", "mixMethodUserVar = 0").WithArguments("Operation: MixMethod").
WithLocation
(26, 13),
2252
Diagnostic("GeneratedCodeAnalyzerSummary").WithArguments("Node: var mixMethodUserVar = 0,Node: var userVar = 0,Operation: MixMethod,Operation: NonHiddenMethod").
WithLocation
(1, 1));
2256
Diagnostic("GeneratedCodeAnalyzerWarning", "var userVar = 0").WithArguments("Node: var userVar = 0").
WithLocation
(17, 9),
2257
Diagnostic("GeneratedCodeAnalyzerWarning", "userVar = 0").WithArguments("Operation: NonHiddenMethod").
WithLocation
(17, 13),
2258
Diagnostic("GeneratedCodeAnalyzerWarning", "var mixMethodUserVar = 0").WithArguments("Node: var mixMethodUserVar = 0").
WithLocation
(26, 9),
2259
Diagnostic("GeneratedCodeAnalyzerWarning", "mixMethodUserVar = 0").WithArguments("Operation: MixMethod").
WithLocation
(26, 13),
2260
Diagnostic("GeneratedCodeAnalyzerSummary").WithArguments("Node: var hiddenVar = 0,Node: var mixMethodHiddenVar = 0,Node: var mixMethodUserVar = 0,Node: var userVar = 0,Operation: HiddenMethod,Operation: MixMethod,Operation: NonHiddenMethod").
WithLocation
(1, 1));
2264
Diagnostic("GeneratedCodeAnalyzerWarning", "var hiddenVar = 0").WithArguments("Node: var hiddenVar = 0").
WithLocation
(10, 9),
2265
Diagnostic("GeneratedCodeAnalyzerWarning", "hiddenVar = 0").WithArguments("Operation: HiddenMethod").
WithLocation
(10, 13),
2266
Diagnostic("GeneratedCodeAnalyzerWarning", "var userVar = 0").WithArguments("Node: var userVar = 0").
WithLocation
(17, 9),
2267
Diagnostic("GeneratedCodeAnalyzerWarning", "userVar = 0").WithArguments("Operation: NonHiddenMethod").
WithLocation
(17, 13),
2268
Diagnostic("GeneratedCodeAnalyzerWarning", "var mixMethodHiddenVar = 0").WithArguments("Node: var mixMethodHiddenVar = 0").
WithLocation
(24, 9),
2269
Diagnostic("GeneratedCodeAnalyzerWarning", "var mixMethodUserVar = 0").WithArguments("Node: var mixMethodUserVar = 0").
WithLocation
(26, 9),
2270
Diagnostic("GeneratedCodeAnalyzerWarning", "mixMethodHiddenVar = 0").WithArguments("Operation: MixMethod").
WithLocation
(24, 13),
2271
Diagnostic("GeneratedCodeAnalyzerWarning", "mixMethodUserVar = 0").WithArguments("Operation: MixMethod").
WithLocation
(26, 13),
2272
Diagnostic("GeneratedCodeAnalyzerSummary").WithArguments("Node: var hiddenVar = 0,Node: var mixMethodHiddenVar = 0,Node: var mixMethodUserVar = 0,Node: var userVar = 0,Operation: HiddenMethod,Operation: MixMethod,Operation: NonHiddenMethod").
WithLocation
(1, 1));
2461
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("C.MyEvent").
WithLocation
(51, 32),
2464
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field2").WithArguments("C.field2").
WithLocation
(34, 17),
2467
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field3").WithArguments("C.field3").
WithLocation
(34, 29));
2479
Diagnostic("ID", "FieldForPropertyInitSetter").WithArguments("FieldForPropertyInitSetter", "30").
WithLocation
(92, 22),
2480
Diagnostic("ID", "FieldForClass").WithArguments("FieldForClass", "1").
WithLocation
(17, 14),
2481
Diagnostic("ID", "FieldForStruct").WithArguments("FieldForStruct", "2").
WithLocation
(27, 18),
2482
Diagnostic("ID", "FieldForInterface").WithArguments("FieldForInterface", "3").
WithLocation
(30, 18),
2483
Diagnostic("ID", "FieldForField").WithArguments("FieldForField", "4").
WithLocation
(33, 18),
2484
Diagnostic("ID", "FieldForField").WithArguments("FieldForField", "4").
WithLocation
(33, 18),
2485
Diagnostic("ID", "FieldForMethod").WithArguments("FieldForMethod", "5").
WithLocation
(37, 18),
2486
Diagnostic("ID", "FieldForEnum").WithArguments("FieldForEnum", "6").
WithLocation
(40, 18),
2487
Diagnostic("ID", "FieldForEnumMember").WithArguments("FieldForEnumMember", "7").
WithLocation
(43, 22),
2488
Diagnostic("ID", "FieldForDelegate").WithArguments("FieldForDelegate", "8").
WithLocation
(47, 18),
2489
Diagnostic("ID", "FieldForEventField").WithArguments("FieldForEventField", "9").
WithLocation
(50, 18),
2490
Diagnostic("ID", "FieldForEvent").WithArguments("FieldForEvent", "10").
WithLocation
(53, 18),
2491
Diagnostic("ID", "FieldForAddHandler").WithArguments("FieldForAddHandler", "11").
WithLocation
(56, 22),
2492
Diagnostic("ID", "FieldForRemoveHandler").WithArguments("FieldForRemoveHandler", "12").
WithLocation
(60, 22),
2493
Diagnostic("ID", "FieldForProperty").WithArguments("FieldForProperty", "13").
WithLocation
(66, 18),
2494
Diagnostic("ID", "FieldForPropertyGetter").WithArguments("FieldForPropertyGetter", "14").
WithLocation
(69, 22),
2495
Diagnostic("ID", "FieldForPropertySetter").WithArguments("FieldForPropertySetter", "15").
WithLocation
(71, 22),
2496
Diagnostic("ID", "FieldForIndexer").WithArguments("FieldForIndexer", "16").
WithLocation
(75, 18),
2497
Diagnostic("ID", "FieldForIndexerGetter").WithArguments("FieldForIndexerGetter", "17").
WithLocation
(78, 22),
2498
Diagnostic("ID", "FieldForIndexerSetter").WithArguments("FieldForIndexerSetter", "18").
WithLocation
(80, 22),
2499
Diagnostic("ID", "FieldForExpressionBodiedMethod").WithArguments("FieldForExpressionBodiedMethod", "19").
WithLocation
(84, 18),
2500
Diagnostic("ID", "FieldForExpressionBodiedProperty").WithArguments("FieldForExpressionBodiedProperty", "20").
WithLocation
(87, 18),
2501
Diagnostic("ID", "FieldForMethodParameter").WithArguments("FieldForMethodParameter", "21").
WithLocation
(38, 79),
2502
Diagnostic("ID", "FieldForDelegateParameter").WithArguments("FieldForDelegateParameter", "22").
WithLocation
(48, 95),
2503
Diagnostic("ID", "FieldForIndexerParameter").WithArguments("FieldForIndexerParameter", "23").
WithLocation
(76, 35),
2504
Diagnostic("ID", "FieldForMethodTypeParameter").WithArguments("FieldForMethodTypeParameter", "24").
WithLocation
(38, 34),
2505
Diagnostic("ID", "FieldForTypeTypeParameter").WithArguments("FieldForTypeTypeParameter", "25").
WithLocation
(28, 35),
2506
Diagnostic("ID", "FieldForDelegateTypeParameter").WithArguments("FieldForDelegateTypeParameter", "26").
WithLocation
(48, 48),
2507
Diagnostic("ID", "FieldForMethodReturnType").WithArguments("FieldForMethodReturnType", "27").
WithLocation
(36, 26),
2508
Diagnostic("ID", "C.FieldForAssembly").WithArguments("FieldForAssembly", "28").
WithLocation
(4, 24),
2509
Diagnostic("ID", "C.FieldForModule").WithArguments("FieldForModule", "29").
WithLocation
(5, 22));
2546
Diagnostic("ID", "Field").WithArguments("Field", "0").
WithLocation
(11, 29));
2575
Diagnostic("ID", "Flag").WithArguments("Flag", "").
WithLocation
(5, 19),
2576
Diagnostic("ID", "Flag").WithArguments("Flag", "").
WithLocation
(6, 13));
2594
expected: Diagnostic("ID", squiggledText: "public void M() { }").WithArguments("M").
WithLocation
(4, 5));
2612
expected: Diagnostic("ID", squiggledText: "public void M(int p = 0) { }").WithArguments("M").
WithLocation
(4, 5));
2629
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "public int M() { return 0; } => 0;").
WithLocation
(4, 5));
2633
expected: Diagnostic("ID", squiggledText: "public int M() { return 0; } => 0;").WithArguments("M").
WithLocation
(4, 5));
2659
Diagnostic("ID", squiggledText: "protected Base(int i) { }").WithArguments(".ctor").
WithLocation
(4, 5),
2660
Diagnostic("ID", squiggledText: "public Derived() : base(Field) { }").WithArguments(".ctor").
WithLocation
(11, 5)
2674
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(1, 35));
2734
Diagnostic("ID", "0").WithArguments("Operation").
WithLocation
(1, 26),
2735
Diagnostic("ID", "1").WithArguments("Operation").
WithLocation
(1, 39),
2736
Diagnostic("ID", "2").WithArguments("Operation").
WithLocation
(1, 43)
2743
Diagnostic("ID", "0").WithArguments("OperationInOperationBlockStart").
WithLocation
(1, 26),
2744
Diagnostic("ID", "1").WithArguments("OperationInOperationBlockStart").
WithLocation
(1, 39),
2745
Diagnostic("ID", "2").WithArguments("OperationInOperationBlockStart").
WithLocation
(1, 43)
2752
Diagnostic("ID", "M").WithArguments("OperationBlock").
WithLocation
(1, 16)
2759
Diagnostic("ID", "M").WithArguments("OperationBlockEnd").
WithLocation
(1, 16)
2859
Diagnostic("SymbolStartRuleId").WithArguments("NestedType", "Analyzer1").
WithLocation
(1, 1),
2860
Diagnostic("SymbolStartRuleId").WithArguments("C1", "Analyzer1").
WithLocation
(1, 1),
2861
Diagnostic("SymbolStartRuleId").WithArguments("C2", "Analyzer1").
WithLocation
(1, 1),
2862
Diagnostic("SymbolStartRuleId").WithArguments("C3", "Analyzer1").
WithLocation
(1, 1),
2863
Diagnostic("SymbolStartRuleId").WithArguments("C4", "Analyzer1").
WithLocation
(1, 1),
2864
Diagnostic("SymbolStartRuleId").WithArguments("C5", "Analyzer1").
WithLocation
(1, 1),
2865
Diagnostic("SymbolStartRuleId").WithArguments("C6", "Analyzer1").
WithLocation
(1, 1),
2866
Diagnostic("SymbolStartRuleId").WithArguments("C7", "Analyzer1").
WithLocation
(1, 1));
2873
Diagnostic("SymbolStartRuleId").WithArguments("N1", "Analyzer1").
WithLocation
(1, 1),
2874
Diagnostic("SymbolStartRuleId").WithArguments("N2", "Analyzer1").
WithLocation
(1, 1),
2875
Diagnostic("SymbolStartRuleId").WithArguments("N3", "Analyzer1").
WithLocation
(1, 1),
2876
Diagnostic("SymbolStartRuleId").WithArguments("N4", "Analyzer1").
WithLocation
(1, 1),
2877
Diagnostic("SymbolStartRuleId").WithArguments("N5", "Analyzer1").
WithLocation
(1, 1));
2884
Diagnostic("SymbolStartRuleId").WithArguments("M1", "Analyzer1").
WithLocation
(1, 1),
2885
Diagnostic("SymbolStartRuleId").WithArguments("M2", "Analyzer1").
WithLocation
(1, 1),
2886
Diagnostic("SymbolStartRuleId").WithArguments("M3", "Analyzer1").
WithLocation
(1, 1),
2887
Diagnostic("SymbolStartRuleId").WithArguments("M4", "Analyzer1").
WithLocation
(1, 1),
2888
Diagnostic("SymbolStartRuleId").WithArguments("M5", "Analyzer1").
WithLocation
(1, 1),
2889
Diagnostic("SymbolStartRuleId").WithArguments("M6", "Analyzer1").
WithLocation
(1, 1),
2890
Diagnostic("SymbolStartRuleId").WithArguments("M7", "Analyzer1").
WithLocation
(1, 1),
2891
Diagnostic("SymbolStartRuleId").WithArguments("M8", "Analyzer1").
WithLocation
(1, 1),
2892
Diagnostic("SymbolStartRuleId").WithArguments("M9", "Analyzer1").
WithLocation
(1, 1),
2893
Diagnostic("SymbolStartRuleId").WithArguments("M10", "Analyzer1").
WithLocation
(1, 1),
2894
Diagnostic("SymbolStartRuleId").WithArguments("get_P1", "Analyzer1").
WithLocation
(1, 1),
2895
Diagnostic("SymbolStartRuleId").WithArguments("set_P1", "Analyzer1").
WithLocation
(1, 1));
2902
Diagnostic("SymbolStartRuleId").WithArguments("f1", "Analyzer1").
WithLocation
(1, 1));
2909
Diagnostic("SymbolStartRuleId").WithArguments("P1", "Analyzer1").
WithLocation
(1, 1));
2916
Diagnostic("SymbolStartRuleId").WithArguments("e1", "Analyzer1").
WithLocation
(1, 1));
2932
Diagnostic("SymbolStartRuleId").WithArguments("N1", "Analyzer1").
WithLocation
(1, 1),
2933
Diagnostic("SymbolStartRuleId").WithArguments("N2", "Analyzer1").
WithLocation
(1, 1),
2934
Diagnostic("SymbolStartRuleId").WithArguments("N3", "Analyzer1").
WithLocation
(1, 1),
2935
Diagnostic("SymbolStartRuleId").WithArguments("N4", "Analyzer1").
WithLocation
(1, 1),
2936
Diagnostic("SymbolStartRuleId").WithArguments("N5", "Analyzer1").
WithLocation
(1, 1),
2937
Diagnostic("SymbolStartRuleId").WithArguments("M1", "Analyzer2").
WithLocation
(1, 1),
2938
Diagnostic("SymbolStartRuleId").WithArguments("M2", "Analyzer2").
WithLocation
(1, 1),
2939
Diagnostic("SymbolStartRuleId").WithArguments("M3", "Analyzer2").
WithLocation
(1, 1),
2940
Diagnostic("SymbolStartRuleId").WithArguments("M4", "Analyzer2").
WithLocation
(1, 1),
2941
Diagnostic("SymbolStartRuleId").WithArguments("M5", "Analyzer2").
WithLocation
(1, 1),
2942
Diagnostic("SymbolStartRuleId").WithArguments("M6", "Analyzer2").
WithLocation
(1, 1),
2943
Diagnostic("SymbolStartRuleId").WithArguments("M7", "Analyzer2").
WithLocation
(1, 1),
2944
Diagnostic("SymbolStartRuleId").WithArguments("M8", "Analyzer2").
WithLocation
(1, 1),
2945
Diagnostic("SymbolStartRuleId").WithArguments("M9", "Analyzer2").
WithLocation
(1, 1),
2946
Diagnostic("SymbolStartRuleId").WithArguments("M10", "Analyzer2").
WithLocation
(1, 1),
2947
Diagnostic("SymbolStartRuleId").WithArguments("get_P1", "Analyzer2").
WithLocation
(1, 1),
2948
Diagnostic("SymbolStartRuleId").WithArguments("set_P1", "Analyzer2").
WithLocation
(1, 1));
2958
Diagnostic("SymbolStartRuleId").WithArguments("NestedType", "Analyzer1").
WithLocation
(1, 1),
2959
Diagnostic("SymbolStartRuleId").WithArguments("C1", "Analyzer1").
WithLocation
(1, 1),
2960
Diagnostic("SymbolStartRuleId").WithArguments("C2", "Analyzer1").
WithLocation
(1, 1),
2961
Diagnostic("SymbolStartRuleId").WithArguments("C3", "Analyzer1").
WithLocation
(1, 1),
2962
Diagnostic("SymbolStartRuleId").WithArguments("C4", "Analyzer1").
WithLocation
(1, 1),
2963
Diagnostic("SymbolStartRuleId").WithArguments("C5", "Analyzer1").
WithLocation
(1, 1),
2964
Diagnostic("SymbolStartRuleId").WithArguments("C6", "Analyzer1").
WithLocation
(1, 1),
2965
Diagnostic("SymbolStartRuleId").WithArguments("C7", "Analyzer1").
WithLocation
(1, 1),
2966
Diagnostic("SymbolStartRuleId").WithArguments("M1", "Analyzer2").
WithLocation
(1, 1),
2967
Diagnostic("SymbolStartRuleId").WithArguments("M2", "Analyzer2").
WithLocation
(1, 1),
2968
Diagnostic("SymbolStartRuleId").WithArguments("M3", "Analyzer2").
WithLocation
(1, 1),
2969
Diagnostic("SymbolStartRuleId").WithArguments("M4", "Analyzer2").
WithLocation
(1, 1),
2970
Diagnostic("SymbolStartRuleId").WithArguments("M5", "Analyzer2").
WithLocation
(1, 1),
2971
Diagnostic("SymbolStartRuleId").WithArguments("M6", "Analyzer2").
WithLocation
(1, 1),
2972
Diagnostic("SymbolStartRuleId").WithArguments("M7", "Analyzer2").
WithLocation
(1, 1),
2973
Diagnostic("SymbolStartRuleId").WithArguments("M8", "Analyzer2").
WithLocation
(1, 1),
2974
Diagnostic("SymbolStartRuleId").WithArguments("M9", "Analyzer2").
WithLocation
(1, 1),
2975
Diagnostic("SymbolStartRuleId").WithArguments("M10", "Analyzer2").
WithLocation
(1, 1),
2976
Diagnostic("SymbolStartRuleId").WithArguments("get_P1", "Analyzer2").
WithLocation
(1, 1),
2977
Diagnostic("SymbolStartRuleId").WithArguments("set_P1", "Analyzer2").
WithLocation
(1, 1));
2998
Diagnostic(ruleId).WithArguments("NestedType", "Analyzer1").
WithLocation
(1, 1),
2999
Diagnostic(ruleId).WithArguments("C1", "Analyzer1").
WithLocation
(1, 1),
3000
Diagnostic(ruleId).WithArguments("C2", "Analyzer1").
WithLocation
(1, 1),
3001
Diagnostic(ruleId).WithArguments("C3", "Analyzer1").
WithLocation
(1, 1),
3002
Diagnostic(ruleId).WithArguments("C4", "Analyzer1").
WithLocation
(1, 1),
3003
Diagnostic(ruleId).WithArguments("C5", "Analyzer1").
WithLocation
(1, 1),
3004
Diagnostic(ruleId).WithArguments("C6", "Analyzer1").
WithLocation
(1, 1),
3005
Diagnostic(ruleId).WithArguments("C7", "Analyzer1").
WithLocation
(1, 1),
3006
Diagnostic(ruleId).WithArguments("N1", "Analyzer2").
WithLocation
(1, 1),
3007
Diagnostic(ruleId).WithArguments("N2", "Analyzer2").
WithLocation
(1, 1),
3008
Diagnostic(ruleId).WithArguments("N3", "Analyzer2").
WithLocation
(1, 1),
3009
Diagnostic(ruleId).WithArguments("N4", "Analyzer2").
WithLocation
(1, 1),
3010
Diagnostic(ruleId).WithArguments("N5", "Analyzer2").
WithLocation
(1, 1),
3011
Diagnostic(ruleId).WithArguments("M1", "Analyzer3").
WithLocation
(1, 1),
3012
Diagnostic(ruleId).WithArguments("M2", "Analyzer3").
WithLocation
(1, 1),
3013
Diagnostic(ruleId).WithArguments("M3", "Analyzer3").
WithLocation
(1, 1),
3014
Diagnostic(ruleId).WithArguments("M4", "Analyzer3").
WithLocation
(1, 1),
3015
Diagnostic(ruleId).WithArguments("M5", "Analyzer3").
WithLocation
(1, 1),
3016
Diagnostic(ruleId).WithArguments("M6", "Analyzer3").
WithLocation
(1, 1),
3017
Diagnostic(ruleId).WithArguments("M7", "Analyzer3").
WithLocation
(1, 1),
3018
Diagnostic(ruleId).WithArguments("M8", "Analyzer3").
WithLocation
(1, 1),
3019
Diagnostic(ruleId).WithArguments("M9", "Analyzer3").
WithLocation
(1, 1),
3020
Diagnostic(ruleId).WithArguments("M10", "Analyzer3").
WithLocation
(1, 1),
3021
Diagnostic(ruleId).WithArguments("get_P1", "Analyzer3").
WithLocation
(1, 1),
3022
Diagnostic(ruleId).WithArguments("set_P1", "Analyzer3").
WithLocation
(1, 1),
3023
Diagnostic(ruleId).WithArguments("P1", "Analyzer4").
WithLocation
(1, 1),
3024
Diagnostic(ruleId).WithArguments("e1", "Analyzer5").
WithLocation
(1, 1),
3025
Diagnostic(ruleId).WithArguments("f1", "Analyzer6").
WithLocation
(1, 1));
3033
Diagnostic("SymbolStartRuleId").WithArguments("N1", "Analyzer1").
WithLocation
(1, 1),
3034
Diagnostic("SymbolStartRuleId").WithArguments("N2", "Analyzer1").
WithLocation
(1, 1),
3035
Diagnostic("SymbolStartRuleId").WithArguments("N3", "Analyzer1").
WithLocation
(1, 1),
3036
Diagnostic("SymbolStartRuleId").WithArguments("N4", "Analyzer1").
WithLocation
(1, 1),
3037
Diagnostic("SymbolStartRuleId").WithArguments("N5", "Analyzer1").
WithLocation
(1, 1),
3038
Diagnostic("OperationRuleId").WithArguments("N3", "M3", "int localInTypeInNamespace = 0;", "Analyzer1").
WithLocation
(1, 1));
3045
Diagnostic("SymbolStartRuleId").WithArguments("NestedType", "Analyzer1").
WithLocation
(1, 1),
3046
Diagnostic("SymbolStartRuleId").WithArguments("C1", "Analyzer1").
WithLocation
(1, 1),
3047
Diagnostic("SymbolStartRuleId").WithArguments("C2", "Analyzer1").
WithLocation
(1, 1),
3048
Diagnostic("SymbolStartRuleId").WithArguments("C3", "Analyzer1").
WithLocation
(1, 1),
3049
Diagnostic("SymbolStartRuleId").WithArguments("C4", "Analyzer1").
WithLocation
(1, 1),
3050
Diagnostic("SymbolStartRuleId").WithArguments("C5", "Analyzer1").
WithLocation
(1, 1),
3051
Diagnostic("SymbolStartRuleId").WithArguments("C6", "Analyzer1").
WithLocation
(1, 1),
3052
Diagnostic("SymbolStartRuleId").WithArguments("C7", "Analyzer1").
WithLocation
(1, 1),
3053
Diagnostic("OperationRuleId").WithArguments("C1", "M1", "int localInTypeInGlobalNamespace = 0;", "Analyzer1").
WithLocation
(1, 1),
3054
Diagnostic("OperationRuleId").WithArguments("NestedType", "M2", "int localInNestedType = 0;", "Analyzer1").
WithLocation
(1, 1),
3055
Diagnostic("OperationRuleId").WithArguments("C3", "M3", "int localInTypeInNamespace = 0;", "Analyzer1").
WithLocation
(1, 1));
3062
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("M1", "Analyzer1").
WithLocation
(1, 1),
3063
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("M2", "Analyzer1").
WithLocation
(1, 1),
3064
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("M3", "Analyzer1").
WithLocation
(1, 1),
3065
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("M4", "Analyzer1").
WithLocation
(1, 1),
3066
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("M5", "Analyzer1").
WithLocation
(1, 1),
3067
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("M6", "Analyzer1").
WithLocation
(1, 1),
3068
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("M7", "Analyzer1").
WithLocation
(1, 1),
3069
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("M8", "Analyzer1").
WithLocation
(1, 1),
3070
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("M9", "Analyzer1").
WithLocation
(1, 1),
3071
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("M10", "Analyzer1").
WithLocation
(1, 1),
3072
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("get_P1", "Analyzer1").
WithLocation
(1, 1),
3073
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("set_P1", "Analyzer1").
WithLocation
(1, 1),
3074
Diagnostic("OperationRuleId").WithArguments("M1", "M1", "int localInTypeInGlobalNamespace = 0;", "Analyzer1").
WithLocation
(1, 1),
3075
Diagnostic("OperationRuleId").WithArguments("M2", "M2", "int localInNestedType = 0;", "Analyzer1").
WithLocation
(1, 1),
3076
Diagnostic("OperationRuleId").WithArguments("M3", "M3", "int localInTypeInNamespace = 0;", "Analyzer1").
WithLocation
(1, 1));
3092
Diagnostic("SymbolStartRuleId").WithArguments("NestedType", "Analyzer1").
WithLocation
(1, 1),
3093
Diagnostic("SymbolStartRuleId").WithArguments("C1", "Analyzer1").
WithLocation
(1, 1),
3094
Diagnostic("SymbolStartRuleId").WithArguments("C2", "Analyzer1").
WithLocation
(1, 1),
3095
Diagnostic("SymbolStartRuleId").WithArguments("C3", "Analyzer1").
WithLocation
(1, 1),
3096
Diagnostic("SymbolStartRuleId").WithArguments("C4", "Analyzer1").
WithLocation
(1, 1),
3097
Diagnostic("SymbolStartRuleId").WithArguments("C5", "Analyzer1").
WithLocation
(1, 1),
3098
Diagnostic("SymbolStartRuleId").WithArguments("C6", "Analyzer1").
WithLocation
(1, 1),
3099
Diagnostic("SymbolStartRuleId").WithArguments("C7", "Analyzer1").
WithLocation
(1, 1),
3100
Diagnostic("OperationRuleId").WithArguments("C1", "M1", "int localInTypeInGlobalNamespace = 0;", "Analyzer1").
WithLocation
(1, 1),
3101
Diagnostic("OperationRuleId").WithArguments("NestedType", "M2", "int localInNestedType = 0;", "Analyzer1").
WithLocation
(1, 1),
3102
Diagnostic("OperationRuleId").WithArguments("C3", "M3", "int localInTypeInNamespace = 0;", "Analyzer1").
WithLocation
(1, 1),
3103
Diagnostic("SymbolStartRuleId").WithArguments("N1", "Analyzer2").
WithLocation
(1, 1),
3104
Diagnostic("SymbolStartRuleId").WithArguments("N2", "Analyzer2").
WithLocation
(1, 1),
3105
Diagnostic("SymbolStartRuleId").WithArguments("N3", "Analyzer2").
WithLocation
(1, 1),
3106
Diagnostic("SymbolStartRuleId").WithArguments("N4", "Analyzer2").
WithLocation
(1, 1),
3107
Diagnostic("SymbolStartRuleId").WithArguments("N5", "Analyzer2").
WithLocation
(1, 1),
3108
Diagnostic("OperationRuleId").WithArguments("N3", "M3", "int localInTypeInNamespace = 0;", "Analyzer2").
WithLocation
(1, 1),
3109
Diagnostic("SymbolStartRuleId").WithArguments("M1", "Analyzer3").
WithLocation
(1, 1),
3110
Diagnostic("SymbolStartRuleId").WithArguments("M2", "Analyzer3").
WithLocation
(1, 1),
3111
Diagnostic("SymbolStartRuleId").WithArguments("M3", "Analyzer3").
WithLocation
(1, 1),
3112
Diagnostic("SymbolStartRuleId").WithArguments("M4", "Analyzer3").
WithLocation
(1, 1),
3113
Diagnostic("SymbolStartRuleId").WithArguments("M5", "Analyzer3").
WithLocation
(1, 1),
3114
Diagnostic("SymbolStartRuleId").WithArguments("M6", "Analyzer3").
WithLocation
(1, 1),
3115
Diagnostic("SymbolStartRuleId").WithArguments("M7", "Analyzer3").
WithLocation
(1, 1),
3116
Diagnostic("SymbolStartRuleId").WithArguments("M8", "Analyzer3").
WithLocation
(1, 1),
3117
Diagnostic("SymbolStartRuleId").WithArguments("M9", "Analyzer3").
WithLocation
(1, 1),
3118
Diagnostic("SymbolStartRuleId").WithArguments("M10", "Analyzer3").
WithLocation
(1, 1),
3119
Diagnostic("SymbolStartRuleId").WithArguments("get_P1", "Analyzer3").
WithLocation
(1, 1),
3120
Diagnostic("SymbolStartRuleId").WithArguments("set_P1", "Analyzer3").
WithLocation
(1, 1),
3121
Diagnostic("OperationRuleId").WithArguments("M1", "M1", "int localInTypeInGlobalNamespace = 0;", "Analyzer3").
WithLocation
(1, 1),
3122
Diagnostic("OperationRuleId").WithArguments("M2", "M2", "int localInNestedType = 0;", "Analyzer3").
WithLocation
(1, 1),
3123
Diagnostic("OperationRuleId").WithArguments("M3", "M3", "int localInTypeInNamespace = 0;", "Analyzer3").
WithLocation
(1, 1),
3124
Diagnostic("SymbolStartRuleId").WithArguments("P1", "Analyzer4").
WithLocation
(1, 1),
3125
Diagnostic("SymbolStartRuleId").WithArguments("e1", "Analyzer5").
WithLocation
(1, 1),
3126
Diagnostic("SymbolStartRuleId").WithArguments("f1", "Analyzer6").
WithLocation
(1, 1));
3152
Diagnostic("SymbolStartRuleId").WithArguments("get_P1", "Analyzer3").
WithLocation
(1, 1),
3153
Diagnostic("SymbolStartRuleId").WithArguments("IsExternalInit", "Analyzer1").
WithLocation
(1, 1),
3154
Diagnostic("SymbolStartRuleId").WithArguments("P2", "Analyzer4").
WithLocation
(1, 1),
3155
Diagnostic("SymbolStartRuleId").WithArguments("P1", "Analyzer4").
WithLocation
(1, 1),
3156
Diagnostic("SymbolStartRuleId").WithArguments("get_P2", "Analyzer3").
WithLocation
(1, 1),
3157
Diagnostic("SymbolStartRuleId").WithArguments("set_P1", "Analyzer3").
WithLocation
(1, 1),
3158
Diagnostic("SymbolStartRuleId").WithArguments("set_P2", "Analyzer3").
WithLocation
(1, 1),
3159
Diagnostic("SymbolStartRuleId").WithArguments("C", "Analyzer1").
WithLocation
(1, 1),
3160
Diagnostic("SymbolStartRuleId").WithArguments("CompilerServices", "Analyzer2").
WithLocation
(1, 1),
3161
Diagnostic("SymbolStartRuleId").WithArguments("Runtime", "Analyzer2").
WithLocation
(1, 1),
3162
Diagnostic("SymbolStartRuleId").WithArguments("System", "Analyzer2").
WithLocation
(1, 1)
3193
Diagnostic("OperationRuleId").WithArguments("B", "PartialMethod", "M()", "Analyzer1").
WithLocation
(1, 1),
3194
Diagnostic("SymbolStartRuleId").WithArguments("B", "Analyzer1").
WithLocation
(1, 1)
3225
Diagnostic("OperationRuleId").WithArguments("B", "PartialMethod", "_field", "Analyzer1").
WithLocation
(1, 1),
3226
Diagnostic("SymbolStartTopLevelRuleId").WithArguments("B", "Analyzer1").
WithLocation
(1, 1)
3285
Diagnostic(NamedTypeAnalyzer.RuleId, "A").WithArguments("A").
WithLocation
(1, 15),
3286
Diagnostic(NamedTypeAnalyzer.RuleId, "B").WithArguments("B").
WithLocation
(1, 33)
3300
Diagnostic(NamedTypeAnalyzer.RuleId, "A").WithArguments("A").
WithLocation
(1, 15)
3309
Diagnostic(NamedTypeAnalyzer.RuleId, "A").WithArguments("A").
WithLocation
(1, 15),
3310
Diagnostic(NamedTypeAnalyzer.RuleId, "B").WithArguments("B").
WithLocation
(1, 33)
3328
Diagnostic(NamedTypeAnalyzer.RuleId, "A").WithArguments("A").
WithLocation
(1, 15),
3329
Diagnostic(NamedTypeAnalyzer.RuleId, "B").WithArguments("B").
WithLocation
(1, 33)
3344
Diagnostic(NamedTypeAnalyzer.RuleId, "A").WithArguments("A").
WithLocation
(1, 15)
3353
Diagnostic(NamedTypeAnalyzer.RuleId, "A").WithArguments("A").
WithLocation
(1, 15)
3362
Diagnostic(NamedTypeAnalyzer.RuleId, "A").WithArguments("A").
WithLocation
(1, 15),
3363
Diagnostic(NamedTypeAnalyzer.RuleId, "B").WithArguments("B").
WithLocation
(1, 33)
3381
Diagnostic(NamedTypeAnalyzer.RuleId).WithArguments("A, B").
WithLocation
(1, 1)
3396
Diagnostic(NamedTypeAnalyzer.RuleId).WithArguments("A, B").
WithLocation
(1, 1)
3405
Diagnostic(NamedTypeAnalyzer.RuleId).WithArguments("A").
WithLocation
(1, 1)
3414
Diagnostic(NamedTypeAnalyzer.RuleId).WithArguments("A, B").
WithLocation
(1, 1)
3432
Diagnostic(NamedTypeAnalyzer.RuleId, "A").WithArguments("A").
WithLocation
(1, 15),
3433
Diagnostic(NamedTypeAnalyzer.RuleId, "B").WithArguments("B").
WithLocation
(1, 33)
3453
Diagnostic(NamedTypeAnalyzer.RuleId, "A").WithArguments("A").
WithLocation
(1, 15),
3454
Diagnostic(NamedTypeAnalyzer.RuleId, "B").WithArguments("B").
WithLocation
(1, 33)
3468
Diagnostic(NamedTypeAnalyzer.RuleId, "A").WithArguments("A").
WithLocation
(1, 15)
3506
expected: Diagnostic("ID0001", "M").
WithLocation
(4, 17));
3517
diagnostics.Verify(Diagnostic("ID0001", "M").
WithLocation
(4, 17));
3535
expected: Diagnostic("ID0001", "C").
WithLocation
(4, 5));
3555
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "B").WithArguments("B.B()").
WithLocation
(5, 12),
3558
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(5, 25));
3564
Diagnostic("ID0001", "B").
WithLocation
(5, 12),
3565
Diagnostic("ID0001", "B").
WithLocation
(7, 12)
3674
Diagnostic("ID0001", "int local1 = 1").
WithLocation
(6, 9));
3680
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "local1").WithArguments("local1").
WithLocation
(6, 13));
3689
Diagnostic("ID0001", "int local1 = 1").
WithLocation
(6, 9),
3690
Diagnostic("ID0001", "int local2 = 1").
WithLocation
(11, 9));
3696
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "local1").WithArguments("local1").
WithLocation
(6, 13),
3699
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "local2").WithArguments("local2").
WithLocation
(11, 13));
3730
Diagnostic("MyDiagnostic", "System.Console.WriteLine(1 + 1)").
WithLocation
(6, 9),
3731
Diagnostic("MyDiagnostic", "1 + 1").
WithLocation
(6, 34));
4010
Diagnostic("MyDiagnostic", @"public record A(int X, int Y);").
WithLocation
(2, 1));
4052
Diagnostic("ID1", "C1").
WithLocation
(1, 7));
Diagnostics\DiagnosticSuppressorTests.cs (26)
61
Diagnostic(ErrorCode.WRN_EmptySwitch, "{", isSuppressed: false).
WithLocation
(7, 9));
68
Diagnostic("CS1522", "{", isSuppressed: true).
WithLocation
(7, 9));
86
Diagnostic(ErrorCode.WRN_UnreferencedField, "f", isSuppressed: false).WithArguments("C.f").
WithLocation
(5, 26));
93
Diagnostic("CS0169", "f", isSuppressed: true).WithArguments("C.f").
WithLocation
(5, 26));
109
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(2, 7));
130
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UndefinedType").WithArguments("UndefinedType").
WithLocation
(4, 12));
147
Diagnostic(analyzer.Descriptor.Id, source1, isSuppressed: false).
WithLocation
(1, 1),
148
Diagnostic(analyzer.Descriptor.Id, source2, isSuppressed: false).
WithLocation
(1, 1),
154
Diagnostic(analyzer.Descriptor.Id, source1, isSuppressed: true).
WithLocation
(1, 1),
155
Diagnostic(analyzer.Descriptor.Id, source2, isSuppressed: true).
WithLocation
(1, 1),
169
var expectedDiagnostic = Diagnostic(analyzer.Descriptor.Id, source, isSuppressed: false).
WithLocation
(1, 1);
173
expectedDiagnostic = Diagnostic(analyzer.Descriptor.Id, source, isSuppressed: true).
WithLocation
(1, 1);
192
Diagnostic(ErrorCode.WRN_UnreferencedField, "f").WithArguments("C1.f").
WithLocation
(1, 33));
203
Diagnostic("CS0169", "f", isSuppressed: true).WithArguments("C1.f").
WithLocation
(1, 33),
249
.
WithLocation
(2, 1)
254
.
WithLocation
(2, 1)
323
Diagnostic("AD0001").WithArguments(suppressor.ToString(), typeof(NotImplementedException).FullName, new NotImplementedException().Message, context).
WithLocation
(1, 1),
324
Diagnostic("ID1000", "class C { }").
WithLocation
(1, 1));
367
Diagnostic("AD0001").WithArguments(suppressor.ToString(), typeof(NotImplementedException).FullName, new NotImplementedException().Message, context).
WithLocation
(1, 1),
368
Diagnostic("ID1000", "class C { }").
WithLocation
(1, 1));
422
.
WithLocation
(1, 1),
423
Diagnostic("ID1000", "class C { }").
WithLocation
(2, 1));
475
.
WithLocation
(1, 1),
476
Diagnostic("ID1000", "class C { }").
WithLocation
(2, 1));
528
.
WithLocation
(1, 1),
529
Diagnostic("ID1000", "class C { }").
WithLocation
(2, 1));
Diagnostics\GetDiagnosticsTests.cs (81)
329
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol, "").WithArguments("1").
WithLocation
(1, 1));
342
Diagnostic(ErrorCode.ERR_BadSourceCodeKind, "").WithArguments("Interactive").
WithLocation
(1, 1));
352
Diagnostic(ErrorCode.ERR_BadLanguageVersion, "").WithArguments("10000").
WithLocation
(1, 1));
362
Diagnostic(ErrorCode.ERR_BadDocumentationMode, "").WithArguments("100").
WithLocation
(1, 1));
378
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol, "").WithArguments("1").
WithLocation
(1, 1),
381
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol, "").WithArguments("2").
WithLocation
(1, 1),
384
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol, "").WithArguments("3").
WithLocation
(1, 1));
407
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol, "").WithArguments("1").
WithLocation
(1, 1),
410
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol, "").WithArguments("2").
WithLocation
(1, 1));
454
var expected = Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(11, 13);
508
var expected = Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 13);
556
var expected = Diagnostic(NamedTypeAnalyzer.RuleId, "C").WithArguments("C").
WithLocation
(1, 7);
785
Diagnostic("ID0001", "M1").WithArguments("M1").
WithLocation
(14, 9),
786
Diagnostic("ID0001", "C").WithArguments(".ctor").
WithLocation
(15, 5),
787
Diagnostic("ID0001", "C").WithArguments("Finalize").
WithLocation
(16, 6),
788
Diagnostic("ID0001", "+").WithArguments("op_UnaryPlus").
WithLocation
(17, 32),
789
Diagnostic("ID0001", "M2").WithArguments("M2").
WithLocation
(28, 9),
790
Diagnostic("ID0001", "D").WithArguments(".ctor").
WithLocation
(29, 5),
791
Diagnostic("ID0001", "D").WithArguments("Finalize").
WithLocation
(30, 6),
792
Diagnostic("ID0001", "-").WithArguments("op_UnaryNegation").
WithLocation
(31, 32));
798
Diagnostic("ID0002", "=> 0").
WithLocation
(9, 12),
799
Diagnostic("ID0002", "get => 0;").
WithLocation
(10, 14),
800
Diagnostic("ID0002", "set => value = 0;").
WithLocation
(10, 24),
801
Diagnostic("ID0002", "=> 0").
WithLocation
(11, 21),
802
Diagnostic("ID0002", "get => 0;").
WithLocation
(12, 24),
803
Diagnostic("ID0002", "set => value = 0;").
WithLocation
(12, 34),
804
Diagnostic("ID0002", "add => _ = 0;").
WithLocation
(13, 29),
805
Diagnostic("ID0002", "remove => _ = 0;").
WithLocation
(13, 43),
806
Diagnostic("ID0002", "int M1() => 0;").
WithLocation
(14, 5),
807
Diagnostic("ID0002", "C() => _field = 0;").
WithLocation
(15, 5),
808
Diagnostic("ID0002", "~C() => _field = 0;").
WithLocation
(16, 5),
809
Diagnostic("ID0002", "public static int operator +(C p) => 0;").
WithLocation
(17, 5),
810
Diagnostic("ID0002", "get { return 0; }").
WithLocation
(25, 14),
811
Diagnostic("ID0002", "set { value = 0; }").
WithLocation
(25, 32),
812
Diagnostic("ID0002", "get { return 0; }").
WithLocation
(26, 24),
813
Diagnostic("ID0002", "set { value = 0; }").
WithLocation
(26, 42),
814
Diagnostic("ID0002", "add { _ = 0; }").
WithLocation
(27, 29),
815
Diagnostic("ID0002", "remove => _ = 0;").
WithLocation
(27, 44),
816
Diagnostic("ID0002", "int M2() { return 0; }").
WithLocation
(28, 5),
817
Diagnostic("ID0002", "D() { _field = 0; }").
WithLocation
(29, 5),
818
Diagnostic("ID0002", "~D() { _field = 0; }").
WithLocation
(30, 5),
819
Diagnostic("ID0002", "public static int operator -(D p) { return 0; }").
WithLocation
(31, 5));
824
Diagnostic("ID0002", "=> 0").
WithLocation
(9, 12),
825
Diagnostic("ID0002", "=> 0").
WithLocation
(10, 18),
826
Diagnostic("ID0002", "=> value = 0").
WithLocation
(10, 28),
827
Diagnostic("ID0002", "=> 0").
WithLocation
(11, 21),
828
Diagnostic("ID0002", "=> 0").
WithLocation
(12, 28),
829
Diagnostic("ID0002", "=> value = 0").
WithLocation
(12, 38),
830
Diagnostic("ID0002", "=> _ = 0").
WithLocation
(13, 33),
831
Diagnostic("ID0002", "=> _ = 0").
WithLocation
(13, 50),
832
Diagnostic("ID0002", "=> 0").
WithLocation
(14, 14),
833
Diagnostic("ID0002", "=> _field = 0").
WithLocation
(15, 9),
834
Diagnostic("ID0002", "=> _field = 0").
WithLocation
(16, 10),
835
Diagnostic("ID0002", "=> 0").
WithLocation
(17, 39),
836
Diagnostic("ID0002", "{ return 0; }").
WithLocation
(25, 18),
837
Diagnostic("ID0002", "{ value = 0; }").
WithLocation
(25, 36),
838
Diagnostic("ID0002", "{ return 0; }").
WithLocation
(26, 28),
839
Diagnostic("ID0002", "{ value = 0; }").
WithLocation
(26, 46),
840
Diagnostic("ID0002", "{ _ = 0; }").
WithLocation
(27, 33),
841
Diagnostic("ID0002", "=> _ = 0").
WithLocation
(27, 51),
842
Diagnostic("ID0002", "{ return 0; }").
WithLocation
(28, 14),
843
Diagnostic("ID0002", "{ _field = 0; }").
WithLocation
(29, 9),
844
Diagnostic("ID0002", "{ _field = 0; }").
WithLocation
(30, 10),
845
Diagnostic("ID0002", "{ return 0; }").
WithLocation
(31, 39));
849
Diagnostic("ID0001", "P1").WithArguments("get_P1").
WithLocation
(9, 9),
850
Diagnostic("ID0001", "P2").WithArguments("get_P2").
WithLocation
(10, 9),
851
Diagnostic("ID0001", "P2").WithArguments("set_P2").
WithLocation
(10, 9),
852
Diagnostic("ID0001", "this").WithArguments("get_Item").
WithLocation
(11, 9),
853
Diagnostic("ID0001", "this").WithArguments("get_Item").
WithLocation
(12, 9),
854
Diagnostic("ID0001", "this").WithArguments("set_Item").
WithLocation
(12, 9),
855
Diagnostic("ID0001", "E1").WithArguments("add_E1").
WithLocation
(13, 24),
856
Diagnostic("ID0001", "E1").WithArguments("remove_E1").
WithLocation
(13, 24),
857
Diagnostic("ID0001", "P3").WithArguments("get_P3").
WithLocation
(25, 9),
858
Diagnostic("ID0001", "P3").WithArguments("set_P3").
WithLocation
(25, 9),
859
Diagnostic("ID0001", "this").WithArguments("get_Item").
WithLocation
(26, 9),
860
Diagnostic("ID0001", "this").WithArguments("set_Item").
WithLocation
(26, 9),
861
Diagnostic("ID0001", "E2").WithArguments("remove_E2").
WithLocation
(27, 24),
862
Diagnostic("ID0001", "E2").WithArguments("add_E2").
WithLocation
(27, 24));
1009
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(6, 13));
1017
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(6, 13));
1047
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "property").WithArguments("property", "field").
WithLocation
(5, 6));
Diagnostics\MethodGroupConversion.cs (6)
53
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(I1)", "Program.M(I2)").
WithLocation
(7, 13),
56
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(I1)", "Program.M(I2)").
WithLocation
(8, 19),
59
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(I1)", "Program.M(I2)").
WithLocation
(9, 12),
62
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "M3").WithArguments("M3", "D").
WithLocation
(11, 13),
65
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new D(M3)").WithArguments("M3", "D").
WithLocation
(12, 13),
68
Diagnostic(ErrorCode.ERR_BadArgType, "M3").WithArguments("1", "method group", "D").
WithLocation
(13, 12)
Diagnostics\OperationAnalyzerTests.cs (254)
49
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "new int[0]").
WithLocation
(6, 22),
50
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "{ }").
WithLocation
(7, 23),
51
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "new C[] { }").
WithLocation
(8, 20),
52
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "new int[0][]").
WithLocation
(12, 24),
53
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "new int[0][][][]").
WithLocation
(13, 28),
54
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "new int[0][,]").
WithLocation
(15, 26)
111
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "3").
WithLocation
(9, 25),
112
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "v1").
WithLocation
(9, 34),
113
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "v3").
WithLocation
(10, 22),
114
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "3").
WithLocation
(13, 21),
115
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "v3").
WithLocation
(17, 21),
116
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "p1").
WithLocation
(35, 9),
117
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "this").
WithLocation
(36, 13),
118
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "33").
WithLocation
(45, 21)
141
Diagnostic(BadStuffTestAnalyzer.InvalidExpressionDescriptor.Id, "Framitz()").
WithLocation
(6, 9),
142
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "Framitz()").
WithLocation
(6, 9),
143
Diagnostic(BadStuffTestAnalyzer.InvalidExpressionDescriptor.Id, "Framitz").
WithLocation
(6, 9),
144
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "Framitz").
WithLocation
(6, 9),
145
Diagnostic(BadStuffTestAnalyzer.InvalidExpressionDescriptor.Id, "Bexley()").
WithLocation
(7, 17),
146
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "Bexley()").
WithLocation
(7, 17),
147
Diagnostic(BadStuffTestAnalyzer.InvalidExpressionDescriptor.Id, "Bexley").
WithLocation
(7, 17),
148
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "Bexley").
WithLocation
(7, 17),
149
Diagnostic(BadStuffTestAnalyzer.InvalidExpressionDescriptor.Id, "M1(y + d)").
WithLocation
(10, 9),
150
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "M1(y + d)").
WithLocation
(10, 9),
151
Diagnostic(BadStuffTestAnalyzer.InvalidStatementDescriptor.Id, "goto;").
WithLocation
(11, 9),
152
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "goto;").
WithLocation
(11, 9),
153
Diagnostic(BadStuffTestAnalyzer.InvalidStatementDescriptor.Id, "").
WithLocation
(11, 13),
154
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "").
WithLocation
(11, 13)
218
Diagnostic(BigForTestAnalyzer.BigForDescriptor.Id, "for (x = 0; x < 2000000; x++) {}").
WithLocation
(9, 9),
219
Diagnostic(BigForTestAnalyzer.BigForDescriptor.Id, "for (x = 3000000; x > 0; x -= 2) {}").
WithLocation
(13, 9),
220
Diagnostic(BigForTestAnalyzer.BigForDescriptor.Id, "for (x = 0; x < 2000000; x = x + 1) {}").
WithLocation
(17, 9));
280
Diagnostic(ErrorCode.WRN_EmptySwitch, "{").
WithLocation
(40, 20),
281
Diagnostic(ErrorCode.ERR_ConstantExpected, ":").
WithLocation
(44, 18))
283
Diagnostic(SwitchTestAnalyzer.SparseSwitchDescriptor.Id, "y").
WithLocation
(16, 17),
284
Diagnostic(SwitchTestAnalyzer.SparseSwitchDescriptor.Id, "x").
WithLocation
(26, 17),
285
Diagnostic(SwitchTestAnalyzer.NoDefaultSwitchDescriptor.Id, "x").
WithLocation
(26, 17),
286
Diagnostic(SwitchTestAnalyzer.OnlyDefaultSwitchDescriptor.Id, "y").
WithLocation
(34, 17),
287
Diagnostic(SwitchTestAnalyzer.SparseSwitchDescriptor.Id, "y").
WithLocation
(40, 17),
288
Diagnostic(SwitchTestAnalyzer.NoDefaultSwitchDescriptor.Id, "y").
WithLocation
(40, 17));
348
Diagnostic(InvocationTestAnalyzer.BigParamArrayArgumentsDescriptor.Id, "M0(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)").
WithLocation
(19, 9),
349
Diagnostic(InvocationTestAnalyzer.BigParamArrayArgumentsDescriptor.Id, "M0(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)").
WithLocation
(20, 9),
350
Diagnostic(InvocationTestAnalyzer.OutOfNumericalOrderArgumentsDescriptor.Id, "3").
WithLocation
(23, 21),
351
Diagnostic(InvocationTestAnalyzer.UseDefaultArgumentDescriptor.Id, "M3(0)").WithArguments("y").
WithLocation
(33, 9),
352
Diagnostic(InvocationTestAnalyzer.UseDefaultArgumentDescriptor.Id, "M3(y: null)").WithArguments("x").
WithLocation
(34, 9),
353
Diagnostic(InvocationTestAnalyzer.UseDefaultArgumentDescriptor.Id, "M3(x: 0)").WithArguments("y").
WithLocation
(35, 9),
354
Diagnostic(InvocationTestAnalyzer.UseDefaultArgumentDescriptor.Id, "M3()").WithArguments("x").
WithLocation
(36, 9),
355
Diagnostic(InvocationTestAnalyzer.UseDefaultArgumentDescriptor.Id, "M3()").WithArguments("y").
WithLocation
(36, 9),
356
Diagnostic(InvocationTestAnalyzer.UseDefaultArgumentDescriptor.Id, "M5(b: new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11})").WithArguments("x").
WithLocation
(47, 9));
425
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F5").
WithLocation
(8, 9),
426
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F6").
WithLocation
(9, 9),
427
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F10").
WithLocation
(13, 8));
497
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F5").
WithLocation
(8, 16),
498
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F6").
WithLocation
(9, 16),
499
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F10").
WithLocation
(13, 15));
552
Diagnostic(LocalCouldBeConstAnalyzer.LocalCouldBeConstDescriptor.Id, "e").
WithLocation
(13, 13),
553
Diagnostic(LocalCouldBeConstAnalyzer.LocalCouldBeConstDescriptor.Id, "s").
WithLocation
(14, 16));
723
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "a").WithArguments("a", "Middle").
WithLocation
(6, 16),
724
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "b").WithArguments("b", "Value").
WithLocation
(7, 16),
725
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "c").WithArguments("c", "Base").
WithLocation
(8, 16),
726
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "d").WithArguments("d", "Derived").
WithLocation
(10, 14),
727
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "e").WithArguments("e", "Middle").
WithLocation
(11, 14),
728
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "g").WithArguments("g", "Base").
WithLocation
(15, 16),
729
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "i").WithArguments("i", "int").
WithLocation
(20, 16),
730
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "k").WithArguments("k", "Derived").
WithLocation
(24, 16),
731
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "ia").WithArguments("ia", "IMiddle").
WithLocation
(34, 16),
732
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "ic").WithArguments("ic", "IBase1").
WithLocation
(35, 16),
733
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "id").WithArguments("id", "IDerived").
WithLocation
(37, 16),
734
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "ie").WithArguments("ie", "IMiddle").
WithLocation
(38, 16),
735
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "ig").WithArguments("ig", "IBase1").
WithLocation
(42, 16),
736
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "ik").WithArguments("ik", "IDerived").
WithLocation
(47, 17),
737
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "im").WithArguments("im", "IDerived").
WithLocation
(51, 16),
738
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fa").WithArguments("C.fa", "Middle").
WithLocation
(56, 12),
739
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fb").WithArguments("C.fb", "Value").
WithLocation
(57, 12),
740
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fc").WithArguments("C.fc", "Base").
WithLocation
(58, 12),
741
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fd").WithArguments("C.fd", "Derived").
WithLocation
(59, 10),
742
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fe").WithArguments("C.fe", "Middle").
WithLocation
(60, 10),
743
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fg").WithArguments("C.fg", "Base").
WithLocation
(62, 12),
744
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fi").WithArguments("C.fi", "int").
WithLocation
(64, 12),
745
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fk").WithArguments("C.fk", "Derived").
WithLocation
(66, 12),
746
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fia").WithArguments("C.fia", "IMiddle").
WithLocation
(75, 12),
747
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fic").WithArguments("C.fic", "IBase1").
WithLocation
(76, 12),
748
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fid").WithArguments("C.fid", "IDerived").
WithLocation
(77, 12),
749
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fie").WithArguments("C.fie", "IMiddle").
WithLocation
(78, 12),
750
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fig").WithArguments("C.fig", "IBase1").
WithLocation
(80, 12),
751
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fik").WithArguments("C.fik", "IDerived").
WithLocation
(82, 13),
752
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fim").WithArguments("C.fim", "IDerived").
WithLocation
(86, 12));
788
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "17").
WithLocation
(4, 40),
789
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "17").
WithLocation
(9, 21),
790
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "17").
WithLocation
(14, 16),
791
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "17").
WithLocation
(24, 9),
792
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "M0()").
WithLocation
(16, 9));
828
Diagnostic(NullArgumentTestAnalyzer.NullArgumentsDescriptor.Id, "null").
WithLocation
(16, 12),
829
Diagnostic(NullArgumentTestAnalyzer.NullArgumentsDescriptor.Id, "null").
WithLocation
(17, 16),
830
Diagnostic(NullArgumentTestAnalyzer.NullArgumentsDescriptor.Id, "null").
WithLocation
(18, 12),
831
Diagnostic(NullArgumentTestAnalyzer.NullArgumentsDescriptor.Id, "null").
WithLocation
(18, 18),
832
Diagnostic(NullArgumentTestAnalyzer.NullArgumentsDescriptor.Id, "null").
WithLocation
(24, 26));
870
Diagnostic(ErrorCode.ERR_NewlineInConst, "").
WithLocation
(25, 30),
873
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(26, 6),
876
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(27, 2),
879
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "Bar").
WithLocation
(24, 42))
881
Diagnostic(MemberInitializerTestAnalyzer.DoNotUseFieldInitializerDescriptor.Id, "Field").
WithLocation
(19, 30),
882
Diagnostic(MemberInitializerTestAnalyzer.DoNotUsePropertyInitializerDescriptor.Id, "Property1").
WithLocation
(20, 30),
883
Diagnostic(MemberInitializerTestAnalyzer.DoNotUsePropertyInitializerDescriptor.Id, "Property1").
WithLocation
(21, 30),
884
Diagnostic(MemberInitializerTestAnalyzer.DoNotUseFieldInitializerDescriptor.Id, "Field").
WithLocation
(21, 46),
885
Diagnostic(MemberInitializerTestAnalyzer.DoNotUsePropertyInitializerDescriptor.Id, "Property2").
WithLocation
(22, 30),
886
Diagnostic(MemberInitializerTestAnalyzer.DoNotUseFieldInitializerDescriptor.Id, "Field").
WithLocation
(22, 52),
887
Diagnostic(MemberInitializerTestAnalyzer.DoNotUsePropertyInitializerDescriptor.Id, "Property2").
WithLocation
(24, 30));
931
Diagnostic("DoNotUseMemberAssignment", "Property2 = new Bar { Field = true }").
WithLocation
(27, 30),
932
Diagnostic("DoNotUseMemberAssignment", "Field = true").
WithLocation
(27, 52),
933
Diagnostic("DoNotUseMemberAssignment", "x1.Field = 10").
WithLocation
(28, 9),
934
Diagnostic("DoNotUseMemberAssignment", "x1.Property1 = null").
WithLocation
(29, 9),
935
Diagnostic("DoNotUseMemberAssignment", "x2.Field = true").
WithLocation
(32, 9),
936
Diagnostic("DoNotUseMemberAssignment", "Field = 2").
WithLocation
(19, 30),
937
Diagnostic("DoNotUseMemberAssignment", @"Property1 = """"").
WithLocation
(20, 30),
938
Diagnostic("DoNotUseMemberAssignment", @"Property1 = """"").
WithLocation
(21, 30),
939
Diagnostic("DoNotUseMemberAssignment", "Field = 2").
WithLocation
(21, 46),
940
Diagnostic("DoNotUseMemberAssignment", "Property2 = new Bar { Field = true }").
WithLocation
(22, 30),
941
Diagnostic("DoNotUseMemberAssignment", "Field = true").
WithLocation
(22, 52));
980
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{ 1, 2, 3, 4, 5, 6 }").
WithLocation
(14, 32),
981
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{ 1, 2, 3, 4, 5, 6 }").
WithLocation
(15, 23),
982
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{ null, null, null, null, null, null }").
WithLocation
(16, 28),
983
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{ 1, 2, 3, 4, 5, 6 }").
WithLocation
(18, 37),
984
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{ 1, 2, 3, 4, 5, 6 }").
WithLocation
(20, 27),
985
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{ 7, 8, 9, 10, 11, 12 }").
WithLocation
(21, 27),
986
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{ null, null, null, null, null, null }").
WithLocation
(24, 33),
987
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{ 1, 2, 3, 4, 5, 6 }").
WithLocation
(28, 66)
1013
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(12, 25),
1014
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(13, 29))
1016
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "int c1, c2, c3, c4;").
WithLocation
(9, 9),
1017
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "C[] d1, d2, d3, d4 = { null, null };").
WithLocation
(10, 9),
1018
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "d4 = { null, null }").
WithLocation
(10, 25),
1019
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "int e1 = 1, e2, e3, e4 = 10;").
WithLocation
(11, 9),
1020
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "e1 = 1").
WithLocation
(11, 13),
1021
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "e4 = 10").
WithLocation
(11, 29),
1022
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "int f1, f2, f3, ;").
WithLocation
(12, 9),
1023
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "int g1, g2, g3, g4 =;").
WithLocation
(13, 9));
1077
.VerifyDiagnostics(Diagnostic(ErrorCode.WRN_EmptySwitch, "{").
WithLocation
(37, 20),
1078
Diagnostic(ErrorCode.ERR_ConstantExpected, ":").
WithLocation
(41, 18))
1083
break;").
WithLocation
(7, 13),
1084
Diagnostic(CaseTestAnalyzer.HasDefaultCaseDescriptor.Id, "default:").
WithLocation
(10, 13),
1088
break;").
WithLocation
(18, 13),
1089
Diagnostic(CaseTestAnalyzer.HasDefaultCaseDescriptor.Id, "default:").
WithLocation
(19, 13),
1090
Diagnostic(CaseTestAnalyzer.HasDefaultCaseDescriptor.Id, "default:").
WithLocation
(33, 13));
1121
Diagnostic(ExplicitVsImplicitInstanceAnalyzer.ExplicitInstanceDescriptor.Id, "this").
WithLocation
(6, 9),
1122
Diagnostic(ExplicitVsImplicitInstanceAnalyzer.ImplicitInstanceDescriptor.Id, "M1").
WithLocation
(7, 9),
1123
Diagnostic(ExplicitVsImplicitInstanceAnalyzer.ExplicitInstanceDescriptor.Id, "base").
WithLocation
(18, 9),
1124
Diagnostic(ExplicitVsImplicitInstanceAnalyzer.ImplicitInstanceDescriptor.Id, "M1").
WithLocation
(19, 9),
1125
Diagnostic(ExplicitVsImplicitInstanceAnalyzer.ImplicitInstanceDescriptor.Id, "M2").
WithLocation
(20, 9));
1158
Diagnostic(MemberReferenceAnalyzer.HandlerAddedDescriptor.Id, "Mumble += new MumbleEventHandler(Mumbler)").
WithLocation
(10, 9),
1159
Diagnostic(MemberReferenceAnalyzer.EventReferenceDescriptor.Id, "Mumble").
WithLocation
(10, 9),
1160
Diagnostic(MemberReferenceAnalyzer.MethodBindingDescriptor.Id, "Mumbler").
WithLocation
(10, 42),
1161
Diagnostic(MemberReferenceAnalyzer.HandlerAddedDescriptor.Id, "Mumble += (s, a) => {}").
WithLocation
(11, 9),
1162
Diagnostic(MemberReferenceAnalyzer.EventReferenceDescriptor.Id, "Mumble").
WithLocation
(11, 9),
1163
Diagnostic(MemberReferenceAnalyzer.HandlerAddedDescriptor.Id, "Mumble += new MumbleEventHandler((s, a) => {})").
WithLocation
(12, 9),
1164
Diagnostic(MemberReferenceAnalyzer.EventReferenceDescriptor.Id, "Mumble").
WithLocation
(12, 9),
1165
Diagnostic(MemberReferenceAnalyzer.EventReferenceDescriptor.Id, "Mumble").
WithLocation
(13, 9),
1166
Diagnostic(MemberReferenceAnalyzer.EventReferenceDescriptor.Id, "Mumble").
WithLocation
(14, 20),
1167
Diagnostic(MemberReferenceAnalyzer.MethodBindingDescriptor.Id, "Mumbler").
WithLocation
(15, 32),
1168
Diagnostic(MemberReferenceAnalyzer.HandlerRemovedDescriptor.Id, "Mumble -= new MumbleEventHandler(Mumbler)").
WithLocation
(17, 9),
1169
Diagnostic(MemberReferenceAnalyzer.EventReferenceDescriptor.Id, "Mumble").
WithLocation
(17, 9),
1170
Diagnostic(MemberReferenceAnalyzer.MethodBindingDescriptor.Id, "Mumbler").
WithLocation
(17, 42));
1220
Diagnostic(ParamsArrayTestAnalyzer.LongParamsDescriptor.Id, "M0(1, 2, 3, 4, 5)").
WithLocation
(13, 9),
1221
Diagnostic(ParamsArrayTestAnalyzer.LongParamsDescriptor.Id, "M0(1, 2, 3, 4, 5, 6)").
WithLocation
(14, 9),
1224
Diagnostic(ParamsArrayTestAnalyzer.LongParamsDescriptor.Id, @"new D(""Hello"", 1, 2, 3, 4)").
WithLocation
(20, 13),
1245
Diagnostic(EqualsValueTestAnalyzer.EqualsValueDescriptor.Id, "= 44").
WithLocation
(4, 19),
1246
Diagnostic(EqualsValueTestAnalyzer.EqualsValueDescriptor.Id, "= \"Hello\"").
WithLocation
(5, 22),
1247
Diagnostic(EqualsValueTestAnalyzer.EqualsValueDescriptor.Id, "= Goo()").
WithLocation
(6, 19),
1248
Diagnostic(EqualsValueTestAnalyzer.EqualsValueDescriptor.Id, "= 33").
WithLocation
(9, 40));
1276
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "0").
WithLocation
(12, 17),
1277
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "x").
WithLocation
(13, 17),
1278
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "12").
WithLocation
(16, 29)
1340
Diagnostic(AssignmentOperationSyntaxTestAnalyzer.AssignmentOperationDescriptor.Id, $"x = {expr}").
WithLocation
(7, 9),
1341
Diagnostic(AssignmentOperationSyntaxTestAnalyzer.AssignmentSyntaxDescriptor.Id, $"x = {expr}").
WithLocation
(7, 9));
1387
.VerifyDiagnostics(Diagnostic(ErrorCode.ERR_InvalidAddrOp, "a + b").
WithLocation
(7, 18))
1389
Diagnostic("AddressOfOperation", "&(a + b)").
WithLocation
(7, 16),
1390
Diagnostic("InvalidAddressOfReference", "a + b").
WithLocation
(7, 18),
1391
Diagnostic("AddressOfOperation", "&a").
WithLocation
(9, 16),
1392
Diagnostic("AddressOfOperation", "&i").
WithLocation
(28, 22),
1393
Diagnostic("AddressOfOperation", "&_i").
WithLocation
(31, 25),
1394
Diagnostic("AddressOfOperation", "&i").
WithLocation
(33, 23),
1395
Diagnostic("AddressOfOperation", "&x").
WithLocation
(15, 17),
1396
Diagnostic("AddressOfOperation", "&(*p)").
WithLocation
(16, 12),
1397
Diagnostic("AddressOfOperation", "&p[0]").
WithLocation
(17, 12));
1433
Diagnostic(LambdaTestAnalyzer.LambdaExpressionDescriptor.Id, "input => { }").
WithLocation
(8, 31),
1434
Diagnostic(LambdaTestAnalyzer.LambdaExpressionDescriptor.Id, "input => input++").
WithLocation
(9, 31),
1435
Diagnostic(LambdaTestAnalyzer.LambdaExpressionDescriptor.Id, "input => { input++; input++; if (input > 0) return true; return false; }").
WithLocation
(10, 32),
1436
Diagnostic(LambdaTestAnalyzer.TooManyStatementsInLambdaExpressionDescriptor.Id, "input => { input++; input++; if (input > 0) return true; return false; }").
WithLocation
(10, 32),
1437
Diagnostic(LambdaTestAnalyzer.LambdaExpressionDescriptor.Id, "(s, e) => { }").
WithLocation
(22, 42),
1438
Diagnostic(LambdaTestAnalyzer.LambdaExpressionDescriptor.Id, "(s, e) => { int i = 0; i++; i++; i++; }").
WithLocation
(23, 19),
1439
Diagnostic(LambdaTestAnalyzer.TooManyStatementsInLambdaExpressionDescriptor.Id, "(s, e) => { int i = 0; i++; i++; i++; }").
WithLocation
(23, 19));
1480
.VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("D.E").
WithLocation
(6, 32))
1482
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "C.E").
WithLocation
(23, 9),
1483
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "D.Method").
WithLocation
(23, 16),
1484
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "C.E").
WithLocation
(24, 9),
1485
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "C.Bar()").
WithLocation
(25, 9),
1486
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "D.E").
WithLocation
(27, 9),
1487
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "D.Field").
WithLocation
(28, 9),
1488
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "D.Property").
WithLocation
(29, 17),
1489
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "D.Method()").
WithLocation
(30, 9));
1508
Diagnostic(LabelOperationsTestAnalyzer.LabelDescriptor.Id, "Wilma: goto Betty;").
WithLocation
(6, 9),
1509
Diagnostic(LabelOperationsTestAnalyzer.GotoDescriptor.Id, "goto Betty;").
WithLocation
(6, 16),
1510
Diagnostic(LabelOperationsTestAnalyzer.LabelDescriptor.Id, "Betty: goto Wilma;").
WithLocation
(7, 9),
1511
Diagnostic(LabelOperationsTestAnalyzer.GotoDescriptor.Id, "goto Wilma;").
WithLocation
(7, 16));
1567
Diagnostic(UnaryAndBinaryOperationsTestAnalyzer.BooleanNotDescriptor.Id, "!b").
WithLocation
(41, 13),
1568
Diagnostic(UnaryAndBinaryOperationsTestAnalyzer.DoubleMultiplyDescriptor.Id, "d * 100").
WithLocation
(42, 13),
1569
Diagnostic(UnaryAndBinaryOperationsTestAnalyzer.OperatorAddMethodDescriptor.Id, "a1 + a2").
WithLocation
(43, 14),
1570
Diagnostic(UnaryAndBinaryOperationsTestAnalyzer.OperatorMinusMethodDescriptor.Id, "-a2").
WithLocation
(44, 14));
1611
.VerifyDiagnostics(Diagnostic(ErrorCode.ERR_BadBinaryOps, "x + 10", new object[] { "+", "A", "int" }).
WithLocation
(29, 13),
1612
Diagnostic(ErrorCode.ERR_BadUnaryOp, "-x", new object[] { "-", "A" }).
WithLocation
(31, 13))
1642
Diagnostic(NullOperationSyntaxTestAnalyzer.ParamsArrayOperationDescriptor.Id, "M0(1)").
WithLocation
(11, 9),
1643
Diagnostic(NullOperationSyntaxTestAnalyzer.ParamsArrayOperationDescriptor.Id, "M0(1, 2)").
WithLocation
(12, 9));
1668
Diagnostic(ErrorCode.ERR_BadUnaryOp, "null.Length").WithArguments(".", "<null>").
WithLocation
(8, 17),
1671
Diagnostic(ErrorCode.ERR_NoImplicitConv, "string.Empty").WithArguments("string", "int").
WithLocation
(10, 17),
1674
Diagnostic(ErrorCode.ERR_GlobalSingleTypeNameNotFound, "MyType").WithArguments("MyType").
WithLocation
(12, 25))
1676
Diagnostic(ConversionExpressionCSharpTestAnalyzer.InvalidConversionExpressionDescriptor.Id, "null.Length").
WithLocation
(8, 17),
1677
Diagnostic(ConversionExpressionCSharpTestAnalyzer.InvalidConversionExpressionDescriptor.Id, "string.Empty").
WithLocation
(10, 17),
1678
Diagnostic(ConversionExpressionCSharpTestAnalyzer.InvalidConversionExpressionDescriptor.Id, "global::MyType()").
WithLocation
(12, 17));
1706
Diagnostic(ErrorCode.ERR_NoSuchMember, "Nan").WithArguments("float", "Nan").
WithLocation
(6, 27),
1707
Diagnostic(ErrorCode.ERR_BadUnaryOp, "-f").WithArguments("-", "string").
WithLocation
(11, 16),
1708
Diagnostic(ErrorCode.ERR_BadUnaryOp, "f++").WithArguments("++", "string").
WithLocation
(16, 9))
1710
Diagnostic(InvalidOperatorExpressionTestAnalyzer.InvalidBinaryDescriptor.Id, "f == float.Nan").
WithLocation
(6, 16),
1711
Diagnostic(InvalidOperatorExpressionTestAnalyzer.InvalidUnaryDescriptor.Id, "-f").
WithLocation
(11, 16),
1712
Diagnostic(InvalidOperatorExpressionTestAnalyzer.InvalidIncrementDescriptor.Id, "f++").
WithLocation
(16, 9));
1735
Diagnostic(ErrorCode.ERR_ParamsMustBeArray, "params").
WithLocation
(4, 28),
1738
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Goo").WithArguments("a", "A.Goo(params int)").
WithLocation
(8, 9))
1783
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "p?.Prop").
WithLocation
(24, 17),
1784
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "p").
WithLocation
(24, 17),
1785
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "p?.Field").
WithLocation
(25, 13),
1786
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "p").
WithLocation
(25, 13),
1787
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "p?[0]").
WithLocation
(26, 13),
1788
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "p").
WithLocation
(26, 13),
1789
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "p?.M0(null)").
WithLocation
(27, 9),
1790
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "p").
WithLocation
(27, 9),
1791
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "Field1?.Prop").
WithLocation
(29, 13),
1792
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "Field1").
WithLocation
(29, 13),
1793
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "Field1?.Field").
WithLocation
(30, 13),
1794
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "Field1").
WithLocation
(30, 13),
1795
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "Field1?[0]").
WithLocation
(31, 13),
1796
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "Field1").
WithLocation
(31, 13),
1797
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "Field1?.M0(null)").
WithLocation
(32, 9),
1798
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "Field1").
WithLocation
(32, 9));
1826
.VerifyDiagnostics(Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").
WithLocation
(6, 16))
1827
.VerifyAnalyzerDiagnostics(new DiagnosticAnalyzer[] { new LiteralTestAnalyzer() }, null, null, Diagnostic("Literal", "null").WithArguments("null").
WithLocation
(6, 20),
1828
Diagnostic("Literal", "1").WithArguments("1").
WithLocation
(13, 17),
1829
Diagnostic("Literal", @"""hello""").WithArguments(@"""hello""").
WithLocation
(14, 22),
1830
Diagnostic("Literal", "null").WithArguments("null").
WithLocation
(15, 20),
1831
Diagnostic("Literal", "M()").WithArguments("M()").
WithLocation
(18, 9),
1832
Diagnostic("Literal", "M()").WithArguments("M()").
WithLocation
(18, 9));
1874
Diagnostic(TrueFalseUnaryOperationTestAnalyzer.UnaryTrueDescriptor.Id, "x && y").
WithLocation
(29, 13),
1875
Diagnostic(TrueFalseUnaryOperationTestAnalyzer.UnaryTrueDescriptor.Id, "x").
WithLocation
(30, 18));
1900
Diagnostic("ID", "M2").WithArguments("M2", "Block").
WithLocation
(8, 17),
1901
Diagnostic("ID", "M").WithArguments("M", "Block").
WithLocation
(4, 17),
1902
Diagnostic("ID", "M3").WithArguments("M3", "ParameterInitializer").
WithLocation
(12, 17),
1903
Diagnostic("ID", "M3").WithArguments("M3", "Block").
WithLocation
(12, 17));
Emit\NumericIntPtrTests.cs (156)
433
Diagnostic(ErrorCode.WRN_EqualityOpWithoutEquals, "IntPtr").WithArguments("nint").
WithLocation
(12, 26),
436
Diagnostic(ErrorCode.WRN_EqualityOpWithoutGetHashCode, "IntPtr").WithArguments("nint").
WithLocation
(12, 26),
439
Diagnostic(ErrorCode.WRN_EqualityOpWithoutEquals, "UIntPtr").WithArguments("nuint").
WithLocation
(28, 26),
442
Diagnostic(ErrorCode.WRN_EqualityOpWithoutGetHashCode, "UIntPtr").WithArguments("nuint").
WithLocation
(28, 26));
674
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("nint", "P").
WithLocation
(16, 15),
677
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("nint", "F").
WithLocation
(17, 15),
680
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("nuint", "P").
WithLocation
(23, 15),
683
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("nuint", "F").
WithLocation
(24, 15),
686
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("nint", "P").
WithLocation
(30, 15),
689
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("nint", "F").
WithLocation
(31, 15),
692
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("nuint", "P").
WithLocation
(37, 15),
695
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("nuint", "F").
WithLocation
(38, 15));
848
Diagnostic(ErrorCode.ERR_BadAccess, "F1").WithArguments("nint.F1()").
WithLocation
(6, 18),
851
Diagnostic(ErrorCode.ERR_BadAccess, "F2").WithArguments("nint.F2()").
WithLocation
(7, 15),
854
Diagnostic(ErrorCode.ERR_BadAccess, "F1").WithArguments("nuint.F1()").
WithLocation
(12, 19),
857
Diagnostic(ErrorCode.ERR_BadAccess, "F2").WithArguments("nuint.F2()").
WithLocation
(13, 15),
860
Diagnostic(ErrorCode.ERR_BadAccess, "F1").WithArguments("nint.F1()").
WithLocation
(18, 20),
863
Diagnostic(ErrorCode.ERR_BadAccess, "F2").WithArguments("nint.F2()").
WithLocation
(19, 15),
866
Diagnostic(ErrorCode.ERR_BadAccess, "F1").WithArguments("nuint.F1()").
WithLocation
(24, 21),
869
Diagnostic(ErrorCode.ERR_BadAccess, "F2").WithArguments("nuint.F2()").
WithLocation
(25, 15));
876
Diagnostic(ErrorCode.ERR_NoSuchMember, "F1").WithArguments("nint", "F1").
WithLocation
(6, 18),
879
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F2").WithArguments("nint", "F2").
WithLocation
(7, 15),
882
Diagnostic(ErrorCode.ERR_NoSuchMember, "F1").WithArguments("nuint", "F1").
WithLocation
(12, 19),
885
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F2").WithArguments("nuint", "F2").
WithLocation
(13, 15),
888
Diagnostic(ErrorCode.ERR_NoSuchMember, "F1").WithArguments("nint", "F1").
WithLocation
(18, 20),
891
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F2").WithArguments("nint", "F2").
WithLocation
(19, 15),
894
Diagnostic(ErrorCode.ERR_NoSuchMember, "F1").WithArguments("nuint", "F1").
WithLocation
(24, 21),
897
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F2").WithArguments("nuint", "F2").
WithLocation
(25, 15));
983
Diagnostic(ErrorCode.WRN_NewRequired, "F1").WithArguments("B2.F1(nint)", "A.F1(nint)").
WithLocation
(8, 17),
986
Diagnostic(ErrorCode.WRN_NewRequired, "F2").WithArguments("B2.F2(nuint)", "A.F2(nuint)").
WithLocation
(9, 17),
989
Diagnostic(ErrorCode.WRN_NewNotRequired, "F1").WithArguments("B3.F1(nuint)").
WithLocation
(13, 21),
992
Diagnostic(ErrorCode.WRN_NewNotRequired, "F2").WithArguments("B3.F2(nint)").
WithLocation
(14, 21)
1043
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "i + j").WithArguments("+", "nuint", "int").
WithLocation
(6, 36)
1073
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "i + j").WithArguments("+", "nuint", "int").
WithLocation
(4, 32)
1080
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "i + j").WithArguments("+", "nuint", "int").
WithLocation
(4, 32)
1219
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "nint").WithArguments("nintAttribute").
WithLocation
(1, 2),
1222
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "nint").WithArguments("nint").
WithLocation
(1, 2),
1225
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "nuint").WithArguments("nuintAttribute").
WithLocation
(2, 5),
1228
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "nuint").WithArguments("nuint").
WithLocation
(2, 5)
1256
Diagnostic(ErrorCode.ERR_NameNotInContext, "nint").WithArguments("nint").
WithLocation
(6, 34),
1259
Diagnostic(ErrorCode.ERR_NameNotInContext, "nuint").WithArguments("nuint").
WithLocation
(7, 34));
1301
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(System.IntPtr)").WithArguments("nint").
WithLocation
(5, 13),
1304
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(System.UIntPtr)").WithArguments("nuint").
WithLocation
(6, 13),
1307
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(nint)").WithArguments("nint").
WithLocation
(7, 13),
1310
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(nuint)").WithArguments("nuint").
WithLocation
(8, 13));
1366
Diagnostic(ErrorCode.ERR_IllegalInnerUnsafe, "sizeof(nint)").
WithLocation
(6, 22),
1369
Diagnostic(ErrorCode.ERR_IllegalInnerUnsafe, "sizeof(nuint)").
WithLocation
(7, 22),
1372
Diagnostic(ErrorCode.ERR_IllegalInnerUnsafe, "sizeof(System.IntPtr)").
WithLocation
(8, 22),
1375
Diagnostic(ErrorCode.ERR_IllegalInnerUnsafe, "sizeof(System.UIntPtr)").
WithLocation
(9, 22));
2019
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "uint.MaxValue").WithArguments("uint", "nint").
WithLocation
(15, 17),
2022
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "long.MaxValue").WithArguments("long", "nint").
WithLocation
(16, 17),
2025
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "ulong.MaxValue").WithArguments("ulong", "nint").
WithLocation
(17, 17),
2028
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "float.MaxValue").WithArguments("float", "nint").
WithLocation
(18, 17),
2031
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "double.MaxValue").WithArguments("double", "nint").
WithLocation
(19, 17),
2034
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(decimal)int.MaxValue").WithArguments("decimal", "nint").
WithLocation
(20, 17),
2037
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(nuint)uint.MaxValue").WithArguments("nuint", "nint").
WithLocation
(22, 17),
2040
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "sbyte.MaxValue").WithArguments("sbyte", "nuint").
WithLocation
(30, 17),
2043
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "short.MaxValue").WithArguments("short", "nuint").
WithLocation
(33, 17),
2046
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "long.MaxValue").WithArguments("long", "nuint").
WithLocation
(37, 17),
2049
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "ulong.MaxValue").WithArguments("ulong", "nuint").
WithLocation
(38, 17),
2052
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "float.MaxValue").WithArguments("float", "nuint").
WithLocation
(39, 17),
2055
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "double.MaxValue").WithArguments("double", "nuint").
WithLocation
(40, 17),
2058
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(decimal)uint.MaxValue").WithArguments("decimal", "nuint").
WithLocation
(41, 17),
2061
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(nint)int.MaxValue").WithArguments("nint", "nuint").
WithLocation
(42, 17));
2121
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "sbyte").
WithLocation
(9, 24),
2124
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "byte").
WithLocation
(10, 22),
2127
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "char").
WithLocation
(11, 22),
2130
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "short").
WithLocation
(12, 23),
2133
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "ushort").
WithLocation
(13, 25),
2136
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "int").
WithLocation
(14, 21),
2139
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "uint").
WithLocation
(15, 22),
2142
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "ulong").
WithLocation
(17, 24),
2145
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "nuint").
WithLocation
(21, 24),
2148
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "sbyte").
WithLocation
(29, 24),
2151
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "byte").
WithLocation
(30, 22),
2154
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "char").
WithLocation
(31, 22),
2157
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "short").
WithLocation
(32, 23),
2160
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "ushort").
WithLocation
(33, 25),
2163
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "int").
WithLocation
(34, 21),
2166
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "uint").
WithLocation
(35, 22),
2169
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "long").
WithLocation
(36, 22),
2172
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "nint").
WithLocation
(41, 22));
2194
Diagnostic(ErrorCode.ERR_NotConstantExpression, "checked((IntPtr)x)").WithArguments("y").
WithLocation
(7, 26),
2197
Diagnostic(ErrorCode.WRN_ConstOutOfRangeChecked, "(IntPtr)x").WithArguments("1152921504606846975", "nint").
WithLocation
(7, 34));
2221
Diagnostic(ErrorCode.WRN_ConstOutOfRangeChecked, "(nint)x").WithArguments("1152921504606846975", "nint").
WithLocation
(9, 30));
2245
Diagnostic(ErrorCode.ERR_NotConstantExpression, "unchecked((IntPtr)x)").WithArguments("y").
WithLocation
(7, 26));
2681
Diagnostic(ErrorCode.ERR_BadArgType, "sbyte.MaxValue").WithArguments("1", "sbyte", "ushort").
WithLocation
(5, 19),
2684
Diagnostic(ErrorCode.ERR_BadArgType, "short.MaxValue").WithArguments("1", "short", "ushort").
WithLocation
(6, 19),
2687
Diagnostic(ErrorCode.ERR_BadArgType, "int.MaxValue").WithArguments("1", "int", "ushort").
WithLocation
(7, 19),
2690
Diagnostic(ErrorCode.ERR_BadArgType, "long.MaxValue").WithArguments("1", "long", "ushort").
WithLocation
(8, 19),
2693
Diagnostic(ErrorCode.ERR_BadArgType, "sbyte.MaxValue").WithArguments("1", "sbyte", "uint").
WithLocation
(9, 17),
2696
Diagnostic(ErrorCode.ERR_BadArgType, "short.MaxValue").WithArguments("1", "short", "uint").
WithLocation
(10, 17),
2699
Diagnostic(ErrorCode.ERR_BadArgType, "long.MaxValue").WithArguments("1", "long", "uint").
WithLocation
(12, 17),
2702
Diagnostic(ErrorCode.ERR_BadArgType, "sbyte.MaxValue").WithArguments("1", "sbyte", "nuint").
WithLocation
(13, 27),
2705
Diagnostic(ErrorCode.ERR_BadArgType, "short.MaxValue").WithArguments("1", "short", "nuint").
WithLocation
(14, 27),
2708
Diagnostic(ErrorCode.ERR_BadArgType, "long.MaxValue").WithArguments("1", "long", "nuint").
WithLocation
(16, 27),
2711
Diagnostic(ErrorCode.ERR_BadArgType, "sbyte.MaxValue").WithArguments("1", "sbyte", "nuint").
WithLocation
(17, 18),
2714
Diagnostic(ErrorCode.ERR_BadArgType, "short.MaxValue").WithArguments("1", "short", "nuint").
WithLocation
(18, 18),
2717
Diagnostic(ErrorCode.ERR_BadArgType, "long.MaxValue").WithArguments("1", "long", "nuint").
WithLocation
(20, 18),
2720
Diagnostic(ErrorCode.ERR_BadArgType, "sbyte.MaxValue").WithArguments("1", "sbyte", "ulong").
WithLocation
(21, 18),
2723
Diagnostic(ErrorCode.ERR_BadArgType, "short.MaxValue").WithArguments("1", "short", "ulong").
WithLocation
(22, 18)
2890
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "(IntPtr)1").
WithLocation
(8, 4),
2893
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new IntPtr[0]").
WithLocation
(9, 4),
2896
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "(IntPtr)3").
WithLocation
(10, 12),
2899
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new[] { (IntPtr)4 }").
WithLocation
(11, 12));
2923
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "A").WithArguments("value", "nint").
WithLocation
(8, 2),
2926
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgumentType, "Value").WithArguments("Value").
WithLocation
(9, 4));
2953
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "(IntPtr)(-1)").WithArguments("x").
WithLocation
(7, 31),
2956
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "(UIntPtr)2").WithArguments("y").
WithLocation
(7, 57),
2959
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "(IntPtr)(-3)").WithArguments("x").
WithLocation
(13, 32),
2962
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "(UIntPtr)4").WithArguments("y").
WithLocation
(13, 59));
6890
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "++x").WithArguments("long", "MyInt").
WithLocation
(5, 9),
6893
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x++").WithArguments("long", "MyInt").
WithLocation
(6, 9),
6896
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "--x").WithArguments("long", "MyInt").
WithLocation
(7, 9),
6899
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x--").WithArguments("long", "MyInt").
WithLocation
(8, 9)
6905
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "++x").WithArguments("long?", "MyInt").
WithLocation
(5, 9),
6908
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x++").WithArguments("long?", "MyInt").
WithLocation
(6, 9),
6911
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "--x").WithArguments("long?", "MyInt").
WithLocation
(7, 9),
6914
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x--").WithArguments("long?", "MyInt").
WithLocation
(8, 9)
6920
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "++x").WithArguments("ulong", "MyInt").
WithLocation
(5, 9),
6923
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x++").WithArguments("ulong", "MyInt").
WithLocation
(6, 9),
6926
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "--x").WithArguments("ulong", "MyInt").
WithLocation
(7, 9),
6929
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x--").WithArguments("ulong", "MyInt").
WithLocation
(8, 9),
6932
Diagnostic(ErrorCode.ERR_AmbigUnaryOp, "-x").WithArguments("-", "MyInt").
WithLocation
(10, 13)
6938
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "++x").WithArguments("ulong?", "MyInt").
WithLocation
(5, 9),
6941
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x++").WithArguments("ulong?", "MyInt").
WithLocation
(6, 9),
6944
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "--x").WithArguments("ulong?", "MyInt").
WithLocation
(7, 9),
6947
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x--").WithArguments("ulong?", "MyInt").
WithLocation
(8, 9),
6950
Diagnostic(ErrorCode.ERR_AmbigUnaryOp, "-x").WithArguments("-", "MyInt").
WithLocation
(10, 13)
9060
Diagnostic(ErrorCode.ERR_NotConstantExpression, "unchecked(uint.MaxValue + (UIntPtr)42)").WithArguments("x").
WithLocation
(8, 27),
9063
Diagnostic(ErrorCode.ERR_NotConstantExpression, "checked(uint.MaxValue + (UIntPtr)42)").WithArguments("y").
WithLocation
(9, 27),
9066
Diagnostic(ErrorCode.WRN_CompileTimeCheckedOverflow, "uint.MaxValue + (UIntPtr)42").WithArguments("nuint").
WithLocation
(9, 35)
9091
Diagnostic(ErrorCode.WRN_CompileTimeCheckedOverflow, "uint.MaxValue + (UIntPtr)42").WithArguments("nuint").
WithLocation
(10, 29)
9127
Diagnostic(ErrorCode.ERR_NotConstantExpression, "unchecked(-(IntPtr)int.MinValue)").WithArguments("x").
WithLocation
(8, 26),
9130
Diagnostic(ErrorCode.ERR_NotConstantExpression, "checked(-(IntPtr)int.MinValue)").WithArguments("y").
WithLocation
(9, 26),
9133
Diagnostic(ErrorCode.WRN_CompileTimeCheckedOverflow, "-(IntPtr)int.MinValue").WithArguments("nint").
WithLocation
(9, 34)
9158
Diagnostic(ErrorCode.WRN_CompileTimeCheckedOverflow, "-(IntPtr)int.MinValue").WithArguments("nint").
WithLocation
(10, 29)
9616
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "i1").WithArguments("nint", "E").
WithLocation
(10, 13),
9619
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "u1").WithArguments("nuint", "E").
WithLocation
(18, 13),
9622
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "default(E)").WithArguments("E", "nint").
WithLocation
(23, 13),
9625
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "E.A").WithArguments("E", "nint").
WithLocation
(24, 13),
9628
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "E.B").WithArguments("E", "nint").
WithLocation
(25, 13),
9631
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "default(E)").WithArguments("E", "nuint").
WithLocation
(30, 13),
9634
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "E.A").WithArguments("E", "nuint").
WithLocation
(31, 13),
9637
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "E.B").WithArguments("E", "nuint").
WithLocation
(32, 13));
9887
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<nint>").WithArguments("I<nint>", "U").
WithLocation
(2, 35),
9890
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<System.IntPtr>").WithArguments("I<nint>", "U").
WithLocation
(3, 35),
9893
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<nuint>").WithArguments("I<nuint>", "U").
WithLocation
(4, 63));
9909
Diagnostic(ErrorCode.ERR_DuplicateInterfaceInBaseList, "I<nint>").WithArguments("I<nint>").
WithLocation
(2, 21),
9912
Diagnostic(ErrorCode.ERR_DuplicateInterfaceInBaseList, "I<System.IntPtr>").WithArguments("I<nint>").
WithLocation
(3, 21),
9915
Diagnostic(ErrorCode.ERR_DuplicateInterfaceInBaseList, "I<nuint>").WithArguments("I<nuint>").
WithLocation
(4, 49));
10728
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("> (nint)int.MaxValue").
WithLocation
(3, 7),
10731
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("< (nint)int.MinValue").
WithLocation
(8, 7),
10734
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("> (nuint)uint.MaxValue").
WithLocation
(14, 7)
10922
Diagnostic(ErrorCode.ERR_NoTypeDef, "Base").WithArguments("System.Object", "System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").
WithLocation
(1, 24)
11239
Diagnostic(ErrorCode.WRN_BadXMLRef, type).WithArguments(type).
WithLocation
(1, 33)
Emit\UnmanagedTypeModifierTests.cs (33)
76
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M2<int>").WithArguments("TestRef.M2<T>()", "?", "T", "int").
WithLocation
(9, 13),
79
Diagnostic(ErrorCode.ERR_BindToBogus, "M2<int>").WithArguments("T").
WithLocation
(9, 13),
82
Diagnostic(ErrorCode.ERR_BogusType, "M2<int>").WithArguments("").
WithLocation
(9, 13)
145
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M2<int>").WithArguments("TestRef.M2<T>()", "?", "T", "int").
WithLocation
(9, 13),
148
Diagnostic(ErrorCode.ERR_BindToBogus, "M2<int>").WithArguments("T").
WithLocation
(9, 13),
151
Diagnostic(ErrorCode.ERR_BogusType, "M2<int>").WithArguments("").
WithLocation
(9, 13)
214
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M2<int>").WithArguments("TestRef.M2<T>()", "?", "T", "int").
WithLocation
(9, 13),
217
Diagnostic(ErrorCode.ERR_BindToBogus, "M2<int>").WithArguments("T").
WithLocation
(9, 13),
220
Diagnostic(ErrorCode.ERR_BogusType, "M2<int>").WithArguments("").
WithLocation
(9, 13)
281
Diagnostic(ErrorCode.ERR_BindToBogus, "M2<int>").WithArguments("T").
WithLocation
(9, 13)
344
Diagnostic(ErrorCode.ERR_BindToBogus, "M2<int>").WithArguments("T").
WithLocation
(9, 13)
365
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "unmanaged").WithArguments("System.Runtime.InteropServices.UnmanagedType").
WithLocation
(8, 25));
386
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "unmanaged").WithArguments("System.Runtime.InteropServices.UnmanagedType").
WithLocation
(10, 34));
406
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "unmanaged").WithArguments("System.Runtime.InteropServices.UnmanagedType").
WithLocation
(10, 39));
438
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "unmanaged").WithArguments("System.Runtime.InteropServices.UnmanagedType").
WithLocation
(16, 31));
465
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "unmanaged").WithArguments("System.ValueType").
WithLocation
(15, 25));
493
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "unmanaged").WithArguments("System.ValueType").
WithLocation
(17, 34));
520
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "unmanaged").WithArguments("System.ValueType").
WithLocation
(17, 39));
556
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "Int32").WithArguments("System.ValueType").
WithLocation
(6, 19),
559
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "unmanaged").WithArguments("System.ValueType").
WithLocation
(20, 31));
1099
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "unmanaged").WithArguments("System.Runtime.InteropServices.UnmanagedType").
WithLocation
(2, 32));
1148
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "M<int>").WithArguments("TestRef.M<T>()", "T", "int").
WithLocation
(6, 23),
1151
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<string>").WithArguments("TestRef.M<T>()", "System.ValueType", "T", "string").
WithLocation
(7, 23),
1154
Diagnostic(ErrorCode.ERR_BindToBogus, "M<string>").WithArguments("T").
WithLocation
(7, 23)
1204
Diagnostic(ErrorCode.ERR_BindToBogus, "M<int>").WithArguments("T").
WithLocation
(6, 23),
1207
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<string>").WithArguments("TestRef.M<T>()", "System.ValueType", "T", "string").
WithLocation
(7, 23),
1210
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<string>").WithArguments("TestRef.M<T>()", "T", "string").
WithLocation
(7, 23),
1213
Diagnostic(ErrorCode.ERR_BindToBogus, "M<string>").WithArguments("T").
WithLocation
(7, 23));
1262
Diagnostic(ErrorCode.ERR_BindToBogus, "M<int>").WithArguments("T").
WithLocation
(6, 23),
1265
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<string>").WithArguments("TestRef.M<T>()", "System.ValueType", "T", "string").
WithLocation
(7, 23),
1268
Diagnostic(ErrorCode.ERR_BindToBogus, "M<string>").WithArguments("T").
WithLocation
(7, 23));
1322
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M<S1>").WithArguments("TestRef.M<T>()", "System.IComparable", "T", "Test.S1").
WithLocation
(10, 23)
1379
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M<S1>").WithArguments("TestRef.M<T>()", "System.IComparable", "T", "Test.S1").
WithLocation
(10, 23)
FlowAnalysis\FlowDiagnosticTests.cs (86)
929
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "a").WithArguments("struct field initializers", "10.0").
WithLocation
(4, 7),
932
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "A").
WithLocation
(2, 15),
935
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "a").WithArguments("A.a", "A").
WithLocation
(4, 7),
938
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").
WithLocation
(7, 11),
941
Diagnostic(ErrorCode.WRN_UnreferencedField, "a").WithArguments("A.a").
WithLocation
(4, 7));
972
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("C<T>.x", "D<T>").
WithLocation
(14, 17),
975
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("D<T>.x", "C<D<T>>").
WithLocation
(18, 20),
978
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("A<T>.x", "A<A<T>>").
WithLocation
(4, 20),
981
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("B<T>.x").
WithLocation
(9, 20),
984
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("A<T>.x").
WithLocation
(4, 20),
987
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("D<T>.x").
WithLocation
(18, 20),
990
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("C<T>.x").
WithLocation
(14, 17)
1213
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("S.y", "11.0").
WithLocation
(5, 5),
1216
Diagnostic(ErrorCode.WRN_UnreferencedField, "y").WithArguments("S.y").
WithLocation
(4, 12)
1223
Diagnostic(ErrorCode.WRN_UnreferencedField, "y").WithArguments("S.y").
WithLocation
(4, 12));
1277
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "Program").WithArguments("Program.X", "11.0").
WithLocation
(5, 12));
1308
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "P").WithArguments("struct field initializers", "10.0").
WithLocation
(3, 16),
1311
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "R").WithArguments("struct field initializers", "10.0").
WithLocation
(5, 20));
1336
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "R").WithArguments("struct field initializers", "10.0").
WithLocation
(5, 20));
1378
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").
WithLocation
(16, 9),
1381
Diagnostic(ErrorCode.ERR_UseDefViolationFieldUnsupportedVersion, "x.i").WithArguments("i", "11.0").
WithLocation
(16, 9),
1384
Diagnostic(ErrorCode.ERR_UseDefViolationPropertyUnsupportedVersion, "x2").WithArguments("x2", "11.0").
WithLocation
(17, 34),
1387
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "Program").WithArguments("Program.x", "11.0").
WithLocation
(14, 12),
1390
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "Program").WithArguments("Program.x2", "11.0").
WithLocation
(14, 12));
1396
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").
WithLocation
(16, 9));
1435
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").
WithLocation
(16, 9),
1438
Diagnostic(ErrorCode.ERR_UseDefViolationFieldUnsupportedVersion, "x.i").WithArguments("i", "11.0").
WithLocation
(16, 9),
1441
Diagnostic(ErrorCode.ERR_UseDefViolationPropertyUnsupportedVersion, "x2").WithArguments("x2", "11.0").
WithLocation
(17, 34),
1444
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "Program").WithArguments("Program.x", "11.0").
WithLocation
(14, 12),
1447
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "Program").WithArguments("Program.x2", "11.0").
WithLocation
(14, 12));
1453
Diagnostic(ErrorCode.WRN_UnassignedThisAutoPropertySupportedVersion, "Program").WithArguments("Program.x").
WithLocation
(14, 12),
1456
Diagnostic(ErrorCode.WRN_UnassignedThisAutoPropertySupportedVersion, "Program").WithArguments("Program.x2").
WithLocation
(14, 12),
1459
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").
WithLocation
(16, 9),
1462
Diagnostic(ErrorCode.WRN_UseDefViolationFieldSupportedVersion, "x.i").WithArguments("i").
WithLocation
(16, 9),
1465
Diagnostic(ErrorCode.WRN_UseDefViolationPropertySupportedVersion, "x2").WithArguments("x2").
WithLocation
(17, 34));
1471
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").
WithLocation
(16, 9));
1513
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").
WithLocation
(17, 9),
1516
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x2").WithArguments("Program.x2").
WithLocation
(20, 9)
1565
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(20, 13),
1568
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(25, 13),
1571
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("Program.S1.i", "0").
WithLocation
(6, 20)
1618
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "this.x2").WithArguments("Program.x2").
WithLocation
(23, 13),
1621
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("Program.S1.i", "0").
WithLocation
(6, 20)
1660
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("Program.S1.i", "0").
WithLocation
(6, 20)
1743
Diagnostic(ErrorCode.ERR_RefProperty, "x1").
WithLocation
(15, 17),
1746
Diagnostic(ErrorCode.ERR_RefProperty, "x1").
WithLocation
(16, 17),
1749
Diagnostic(ErrorCode.ERR_RefProperty, "x2").
WithLocation
(17, 17),
1752
Diagnostic(ErrorCode.ERR_RefProperty, "x2").
WithLocation
(18, 17),
1755
Diagnostic(ErrorCode.ERR_BadArgRef, "x3").WithArguments("1", "out").
WithLocation
(20, 17),
1758
Diagnostic(ErrorCode.ERR_UseDefViolationPropertyUnsupportedVersion, "x1").WithArguments("x1", "11.0").
WithLocation
(15, 17),
1761
Diagnostic(ErrorCode.ERR_UseDefViolationThisUnsupportedVersion, "Goo").WithArguments("11.0").
WithLocation
(16, 9),
1764
Diagnostic(ErrorCode.ERR_UseDefViolationPropertyUnsupportedVersion, "x2").WithArguments("x2", "11.0").
WithLocation
(17, 17),
1767
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("Program.S1.x", "0").
WithLocation
(6, 20)
1774
Diagnostic(ErrorCode.ERR_RefProperty, "x1").
WithLocation
(15, 17),
1777
Diagnostic(ErrorCode.ERR_RefProperty, "x1").
WithLocation
(16, 17),
1780
Diagnostic(ErrorCode.ERR_RefProperty, "x2").
WithLocation
(17, 17),
1783
Diagnostic(ErrorCode.ERR_RefProperty, "x2").
WithLocation
(18, 17),
1786
Diagnostic(ErrorCode.ERR_BadArgRef, "x3").WithArguments("1", "out").
WithLocation
(20, 17),
1789
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("Program.S1.x", "0").
WithLocation
(6, 20)
1837
Diagnostic(ErrorCode.WRN_UnreferencedField, "s3").WithArguments("T.s3").
WithLocation
(13, 15),
1840
Diagnostic(ErrorCode.WRN_UnreferencedField, "s2").WithArguments("T.s2").
WithLocation
(13, 11),
1843
Diagnostic(ErrorCode.WRN_UnreferencedField, "s1").WithArguments("T.s1").
WithLocation
(13, 7)
2133
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Kind").WithArguments("AbstractType.Kind", "0").
WithLocation
(4, 16));
2400
Diagnostic(ErrorCode.ERR_BadArgCount, "Goo").WithArguments("Goo", "2").
WithLocation
(8, 13),
2403
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("C.S.x", "11.0").
WithLocation
(6, 9),
2406
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("C.S.x").
WithLocation
(5, 13)
2413
Diagnostic(ErrorCode.ERR_BadArgCount, "Goo").WithArguments("Goo", "2").
WithLocation
(8, 13),
2416
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("C.S.x").
WithLocation
(5, 13)
2557
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "Derived").WithArguments("Derived.x", "11.0").
WithLocation
(3, 5),
2560
Diagnostic(ErrorCode.ERR_NameNotInContext, "p2").WithArguments("p2").
WithLocation
(4, 28),
2563
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("Derived.x").
WithLocation
(8, 17)
2570
Diagnostic(ErrorCode.ERR_NameNotInContext, "p2").WithArguments("p2").
WithLocation
(4, 28),
2573
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("Derived.x").
WithLocation
(8, 17)
2598
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 1:").WithArguments("case 1:").
WithLocation
(8, 9),
2601
Diagnostic(ErrorCode.ERR_UseDefViolation, "k").WithArguments("k").
WithLocation
(10, 20)
2623
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(5, 39)
2666
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(9, 14));
2688
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("S.F", "11.0").
WithLocation
(6, 12),
2691
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "F").
WithLocation
(8, 28));
2697
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "F").
WithLocation
(8, 28));
2718
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("S.F", "11.0").
WithLocation
(5, 12),
2721
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").
WithLocation
(7, 14),
2724
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "F").
WithLocation
(7, 20));
2730
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").
WithLocation
(7, 14),
2733
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "F").
WithLocation
(7, 20));
2759
Diagnostic(ErrorCode.ERR_ImplicitlyTypedOutVariableUsedInTheSameArgumentList, "x").WithArguments("x").
WithLocation
(6, 25)
FlowAnalysis\FlowTests.cs (324)
162
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(40, 17),
165
Diagnostic(ErrorCode.ERR_ReturnExpected, "M5").WithArguments("C.M5()").
WithLocation
(46, 26),
168
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(51, 17));
173
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(40, 17),
176
Diagnostic(ErrorCode.ERR_ReturnExpected, "M5").WithArguments("C.M5()").
WithLocation
(46, 26),
179
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(51, 17));
399
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(106, 51),
402
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(107, 49),
405
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(110, 62),
408
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(111, 60),
411
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(112, 57),
414
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(113, 55),
417
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(114, 68),
420
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(115, 66),
423
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(116, 72),
426
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(117, 70),
433
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(129, 55),
436
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(130, 50),
439
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(131, 61),
446
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(136, 51),
449
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(137, 46),
452
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(138, 57),
456
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(141, 39),
459
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(142, 39),
462
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(144, 45),
465
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(145, 56),
469
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(149, 51),
472
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(150, 49),
475
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(151, 51),
478
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(152, 49),
481
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(153, 62),
484
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(154, 60),
487
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(155, 57),
490
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(156, 55),
493
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(157, 68),
496
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(158, 66),
499
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(159, 72),
502
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(160, 70),
506
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(163, 43),
509
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(164, 43),
515
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(166, 49),
518
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(167, 60)
582
Diagnostic(ErrorCode.WRN_UnreachableCode, "F").
WithLocation
(121, 86),
585
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(76, 33),
588
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(77, 50),
591
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(78, 75),
594
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(83, 64),
597
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(86, 88)
1608
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "delegate").WithArguments("anonymous method", "DI").
WithLocation
(78, 15),
1611
Diagnostic(ErrorCode.WRN_UnreachableCode, "(").
WithLocation
(78, 9)
1663
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "delegate").WithArguments("anonymous method", "DI").
WithLocation
(78, 15),
1666
Diagnostic(ErrorCode.WRN_UnreachableCode, "(").
WithLocation
(78, 9)
1831
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(87, 58),
1834
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(89, 58),
1837
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(94, 65),
1840
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(95, 65),
1843
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(101, 95),
1846
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(102, 107),
1849
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(103, 95),
1852
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(104, 107),
1855
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(105, 95),
1858
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(106, 107),
1861
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(107, 95),
1864
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(108, 107),
1867
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(109, 95),
1870
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(110, 107),
1873
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(112, 107),
1876
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(113, 95),
1879
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(114, 107),
1882
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(116, 107),
1885
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(117, 95),
1888
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(118, 107),
1891
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(119, 95),
1894
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(120, 107),
1897
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(121, 95),
1900
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(123, 95),
1903
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(125, 95),
1906
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(126, 107),
1909
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(128, 107),
1912
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(129, 95),
1915
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(132, 95),
1918
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(133, 107),
1921
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(135, 107),
1924
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(136, 95),
1927
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(139, 95),
1930
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(140, 107),
1933
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(142, 107),
1936
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(143, 95),
1939
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(146, 95),
1942
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(147, 107),
1945
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(149, 107),
1948
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(150, 95),
1951
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(153, 95),
1954
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(154, 107),
1957
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(156, 107),
1960
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(157, 95),
1963
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(160, 95),
1966
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(161, 107),
1969
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(162, 95),
1972
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(163, 107),
1975
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(164, 95),
1978
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(165, 107),
1981
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(166, 107),
1984
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(167, 107),
1987
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(169, 107),
1990
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(171, 107),
1993
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(173, 107),
1996
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(175, 107),
1999
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(176, 95),
2002
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(178, 95),
2005
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(180, 95),
2008
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(182, 95)
2067
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(8, 15),
2070
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(17, 15));
2101
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(8, 15),
2104
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(17, 15));
2136
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(9, 15),
2139
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(17, 15));
2171
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(9, 15),
2174
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(17, 15));
2206
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(9, 15),
2209
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(16, 15),
2212
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(17, 15));
2243
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(8, 15),
2246
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(17, 15));
2269
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(8, 15),
2272
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(9, 15));
2311
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(9, 15),
2314
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(17, 15),
2317
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(25, 15));
2349
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(10, 15),
2352
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(17, 15));
2384
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(10, 15),
2387
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(17, 15));
2420
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(21, 30)
2443
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(10, 33)
2484
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(8, 15),
2487
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(9, 15),
2490
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(24, 15));
2681
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(15, 9));
2712
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(11, 9));
2792
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(13, 9));
2873
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(23, 21),
2876
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(35, 21)
2925
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(11, 15),
2928
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(18, 15),
2931
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(26, 15),
2934
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(35, 15));
2986
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15),
2989
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(20, 15),
2992
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(28, 15),
2995
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(37, 15)
3048
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15),
3051
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(20, 15),
3054
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(28, 15),
3057
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(37, 15)
3099
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15),
3102
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(21, 15),
3105
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(29, 15)
3149
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(10, 15),
3152
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(16, 15),
3155
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(23, 15),
3158
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(31, 15)
3202
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(10, 15),
3205
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(16, 15),
3208
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(23, 15),
3211
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(31, 15)
3228
Diagnostic(ErrorCode.ERR_UseDefViolation, "di").WithArguments("di").
WithLocation
(6, 23)
3250
Diagnostic(ErrorCode.ERR_UseDefViolation, "c1").WithArguments("c1").
WithLocation
(6, 7),
3253
Diagnostic(ErrorCode.ERR_UseDefViolation, "d1").WithArguments("d1").
WithLocation
(7, 7),
3256
Diagnostic(ErrorCode.ERR_UseDefViolation, "c2").WithArguments("c2").
WithLocation
(10, 7),
3259
Diagnostic(ErrorCode.ERR_UseDefViolation, "d2").WithArguments("d2").
WithLocation
(11, 7)
3312
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15),
3315
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(20, 15),
3318
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(29, 15),
3321
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(36, 15)
3373
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15),
3376
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(20, 15),
3379
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(29, 15),
3382
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(36, 15)
3435
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15),
3438
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(20, 15),
3441
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(29, 15),
3444
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(36, 15)
3494
Diagnostic(ErrorCode.ERR_UseDefViolation, "y1").WithArguments("y1").
WithLocation
(13, 15),
3497
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(20, 15),
3500
Diagnostic(ErrorCode.ERR_UseDefViolation, "y1").WithArguments("y1").
WithLocation
(29, 15),
3503
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(36, 15)
3542
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(17, 15),
3545
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(18, 15),
3548
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(25, 15),
3551
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(26, 15)
3577
Diagnostic(ErrorCode.ERR_UseDefViolation, "y2").WithArguments("y2").
WithLocation
(13, 31)
3632
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(18, 15),
3635
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(25, 15),
3638
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(34, 15),
3641
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(41, 15)
3696
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(17, 15),
3699
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(26, 15),
3702
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(33, 15),
3705
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(42, 15)
3760
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(17, 15),
3763
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(18, 15),
3766
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(25, 15),
3769
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(26, 15),
3772
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(33, 15),
3775
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(34, 15),
3778
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(41, 15),
3781
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(42, 15)
3822
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(17, 15),
3825
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(18, 15),
3828
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(25, 15),
3831
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(26, 15)
3890
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(21, 15),
3893
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(30, 15),
3896
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(37, 15),
3899
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(46, 15)
3941
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(12, 15),
3944
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15),
3947
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(20, 15),
3950
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(28, 15)
3975
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(12, 15)
4000
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(11, 15),
4003
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(12, 15)
4028
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(12, 15)
4084
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(10, 15),
4087
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(11, 15)
4142
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(17, 15),
4145
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(18, 15),
4148
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(25, 15),
4151
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(26, 15),
4154
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(33, 15),
4157
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(34, 15),
4160
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(41, 15),
4163
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(42, 15)
4197
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(11, 37),
4200
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(12, 15),
4203
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(19, 13),
4206
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(20, 15)
4248
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(13, 15),
4251
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(13, 30),
4254
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(21, 15),
4257
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(21, 30),
4260
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(29, 15),
4263
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(29, 30)
4324
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "(" + conversionParams + ")").
WithLocation
(6, 38),
4327
Diagnostic(ErrorCode.ERR_BadBinaryOps, "t?.M0(out x, out y) != new S()").WithArguments("!=", "T?", "S").
WithLocation
(20, 13),
4330
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(21, 15),
4333
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(22, 15),
4336
Diagnostic(ErrorCode.ERR_BadBinaryOps, "t?.M0(out x, out y) == new S()").WithArguments("==", "T?", "S").
WithLocation
(28, 13),
4339
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(29, 15),
4342
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(30, 15),
4345
Diagnostic(ErrorCode.ERR_BadBinaryOps, "new S() != t?.M0(out x, out y)").WithArguments("!=", "S", "T?").
WithLocation
(36, 13),
4348
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(37, 15),
4351
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(38, 15),
4354
Diagnostic(ErrorCode.ERR_BadBinaryOps, "new S() == t?.M0(out x, out y)").WithArguments("==", "S", "T?").
WithLocation
(44, 13),
4357
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(45, 15),
4360
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(46, 15)
4386
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "(b && M0(x = y = 0)) is bool").WithArguments("bool").
WithLocation
(11, 13),
4389
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(12, 15),
4392
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15)
4429
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15),
4432
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(20, 15)
4458
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(12, 15)
4549
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(13, 15),
4552
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(21, 15),
4555
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "(b && M0(x = y = 0)) is true and false").WithArguments("bool").
WithLocation
(28, 13),
4558
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(30, 15),
4561
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(38, 15),
4564
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(46, 15),
4567
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(53, 15),
4570
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(61, 15),
4573
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "z").
WithLocation
(68, 41),
4576
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(69, 15),
4579
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(78, 15)
4613
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15),
4616
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(21, 15)
4698
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(12, 15),
4701
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(20, 15),
4704
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(29, 15),
4707
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(37, 15),
4710
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(45, 15),
4713
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(53, 15),
4716
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(60, 15),
4719
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(68, 15)
4778
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15),
4781
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(21, 15),
4784
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(29, 15),
4787
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(36, 15),
4790
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(44, 15),
4793
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(45, 15)
4868
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(13, 15),
4871
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(21, 15),
4874
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(30, 15),
4877
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(37, 15),
4880
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(45, 15),
4883
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(54, 15),
4886
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(62, 15)
4954
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15),
4957
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(21, 15),
4960
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(29, 15),
4963
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(37, 15),
4966
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(44, 15),
4969
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(53, 15)
4995
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(13, 15)
5028
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(12, 15),
5031
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(19, 15)
5064
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(11, 15),
5067
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(20, 15)
5100
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(11, 15),
5103
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(19, 15)
5205
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(9, 33));
5342
Diagnostic(ErrorCode.ERR_UseDefViolation, "o").WithArguments("o").
WithLocation
(17, 34)
5514
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("System.ValueType", "T", "7.0", "7.1").
WithLocation
(5, 21));
5560
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(28, 17)
5584
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "Unused").WithArguments("Unused").
WithLocation
(8, 19));
5607
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "Unused").WithArguments("Unused").
WithLocation
(8, 19));
5634
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "Unused").WithArguments("Unused").
WithLocation
(12, 19));
5661
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "Unused").WithArguments("Unused").
WithLocation
(12, 19));
5692
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "N6").WithArguments("N6").
WithLocation
(16, 19));
5716
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "T").WithArguments("T").
WithLocation
(10, 20));
5746
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "Z").WithArguments("Z").
WithLocation
(9, 26));
5777
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "N6").WithArguments("N6").
WithLocation
(16, 19));
5807
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "Z").WithArguments("Z").
WithLocation
(9, 26));
FlowAnalysis\LocalFunctions.cs (66)
40
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(12, 17),
43
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "L").WithArguments("L").
WithLocation
(7, 14));
73
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(14, 21),
76
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "L1").WithArguments("L1").
WithLocation
(7, 14));
99
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(10, 30),
102
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "L").WithArguments("L").
WithLocation
(7, 14));
124
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "L2").WithArguments("L2").
WithLocation
(9, 18),
127
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "L1").WithArguments("L1").
WithLocation
(6, 14));
150
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x").WithArguments("x").
WithLocation
(9, 21));
169
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x").WithArguments("x").
WithLocation
(7, 20));
188
Diagnostic(ErrorCode.ERR_ConstValueRequired, "x").
WithLocation
(7, 19));
248
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(10, 7));
295
Diagnostic(ErrorCode.ERR_UseDefViolation, "Local()").WithArguments("x").
WithLocation
(12, 9));
359
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "https").
WithLocation
(10, 5));
395
Diagnostic(ErrorCode.ERR_NoBreakOrCont, "break;").
WithLocation
(19, 13),
398
Diagnostic(ErrorCode.ERR_NoBreakOrCont, "continue;").
WithLocation
(24, 13),
401
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto").WithArguments("label1").
WithLocation
(14, 13));
433
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(11, 9),
436
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(12, 9),
439
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(13, 9));
476
Diagnostic(ErrorCode.WRN_UnreachableCode, "y").
WithLocation
(24, 13),
479
Diagnostic(ErrorCode.ERR_UseDefViolation, "w").WithArguments("w").
WithLocation
(13, 9),
482
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(14, 9),
485
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(15, 9),
488
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(16, 9));
539
Diagnostic(ErrorCode.ERR_UseDefViolation, "Local()").WithArguments("x").
WithLocation
(8, 9)
560
Diagnostic(ErrorCode.ERR_UseDefViolation, "Local2()").WithArguments("x").
WithLocation
(9, 9)
664
Diagnostic(ErrorCode.ERR_UseDefViolation, "L1").WithArguments("x").
WithLocation
(8, 31));
687
Diagnostic(ErrorCode.ERR_UseDefViolation, "Local2()").WithArguments("x").
WithLocation
(10, 13));
705
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local").WithArguments("Local").
WithLocation
(7, 14));
729
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "_x").
WithLocation
(10, 20),
732
Diagnostic(ErrorCode.ERR_UseDefViolationThisUnsupportedVersion, "this").WithArguments("11.0").
WithLocation
(7, 17)
739
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "_x").
WithLocation
(10, 20));
803
Diagnostic(ErrorCode.ERR_UseDefViolation, "s1").WithArguments("s1").
WithLocation
(14, 16),
806
Diagnostic(ErrorCode.ERR_UseDefViolation, "s1").WithArguments("s1").
WithLocation
(37, 16),
809
Diagnostic(ErrorCode.ERR_UseDefViolationField, "Local()").WithArguments("y").
WithLocation
(48, 9));
887
Diagnostic(ErrorCode.ERR_UseDefViolationProperty, "Local1()").WithArguments("y").
WithLocation
(19, 9),
890
Diagnostic(ErrorCode.ERR_UseDefViolationProperty, "Local2()").WithArguments("y").
WithLocation
(28, 9),
893
Diagnostic(ErrorCode.ERR_UseDefViolation, "b1").WithArguments("b1").
WithLocation
(41, 16),
896
Diagnostic(ErrorCode.ERR_UseDefViolation, "b1").WithArguments("b1").
WithLocation
(52, 16),
899
Diagnostic(ErrorCode.ERR_UseDefViolationProperty, "Local()").WithArguments("y").
WithLocation
(61, 9),
902
Diagnostic(ErrorCode.ERR_UseDefViolation, "b1").WithArguments("b1").
WithLocation
(62, 16));
927
Diagnostic(ErrorCode.ERR_UseDefViolation, "Local()").WithArguments("x").
WithLocation
(8, 9));
993
Diagnostic(ErrorCode.ERR_UseDefViolation, "s1").WithArguments("s1").
WithLocation
(18, 16),
996
Diagnostic(ErrorCode.ERR_UseDefViolation, "s3").WithArguments("s3").
WithLocation
(54, 16),
999
Diagnostic(ErrorCode.ERR_UseDefViolationField, "Local2()").WithArguments("Event").
WithLocation
(55, 9));
1024
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "i").WithArguments("i", "foreach iteration variable").
WithLocation
(11, 17));
1059
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(11, 34),
1062
Diagnostic(ErrorCode.ERR_UseDefViolation, "Local2()").WithArguments("x3").
WithLocation
(21, 13));
1111
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(38, 13));
1168
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(19, 17));
1203
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(21, 21),
1206
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(23, 18));
1243
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(26, 17));
1305
Diagnostic(ErrorCode.ERR_UseDefViolation, "Goo()").WithArguments("x").
WithLocation
(7, 13),
1308
Diagnostic(ErrorCode.ERR_UseDefViolation, "Goo").WithArguments("x").
WithLocation
(12, 31));
1334
Diagnostic(ErrorCode.ERR_UseDefViolation, "Goo()").WithArguments("x").
WithLocation
(9, 17));
1437
Diagnostic(ErrorCode.ERR_UseDefViolationField, "Local2()").WithArguments("x").
WithLocation
(30, 9),
1440
Diagnostic(ErrorCode.ERR_UseDefViolation, "s5").WithArguments("s5").
WithLocation
(41, 17));
1469
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "_x").
WithLocation
(12, 13),
1472
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(13, 20));
1500
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(12, 20)
1507
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").
WithLocation
(12, 20));
1535
Diagnostic(ErrorCode.ERR_ParamUnassigned, "getGoo").WithArguments("output").
WithLocation
(6, 56));
1568
Diagnostic(ErrorCode.ERR_ParamUnassigned, "getGoo").WithArguments("output").
WithLocation
(6, 56));
1592
Diagnostic(ErrorCode.ERR_UseDefViolation, "local1(out s0)").WithArguments("s0").
WithLocation
(7, 9));
FlowAnalysis\RegionAnalysisTests.cs (12)
5529
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "x").WithArguments("x").
WithLocation
(9, 48)
5570
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "x").WithArguments("x").
WithLocation
(11, 21),
5573
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "x").WithArguments("x").
WithLocation
(12, 13)
6469
Diagnostic(ErrorCode.ERR_UseDefViolationFieldUnsupportedVersion, "value").WithArguments("value", "11.0").
WithLocation
(6, 18)
8095
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "() => { return 0; }").
WithLocation
(4, 42));
8123
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "() => { return 0; }").
WithLocation
(8, 22));
9259
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(8, 49)
9392
Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i").
WithLocation
(4, 42)
9438
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.M").WithArguments("C.M()").
WithLocation
(23, 24),
9441
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c.M").WithArguments("C.M()").
WithLocation
(29, 24)
9474
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "this.M").WithArguments("Extension.M(C)", "C").
WithLocation
(8, 24),
9477
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "c.M").WithArguments("Extension.M(C)", "C").
WithLocation
(14, 24)
FlowAnalysis\StructTests.cs (20)
54
Diagnostic(ErrorCode.ERR_UseDefViolationField, "t.y").WithArguments("y").
WithLocation
(16, 23),
57
Diagnostic(ErrorCode.ERR_UseDefViolationField, "t.Item2").WithArguments("Item2").
WithLocation
(24, 23));
219
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "P").WithArguments("S<T>.P", "S<T[]>?").
WithLocation
(3, 13));
254
Diagnostic(ErrorCode.WRN_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18),
257
Diagnostic(ErrorCode.ERR_UseDefViolation, "v1").WithArguments("v1").
WithLocation
(9, 18)
264
Diagnostic(ErrorCode.WRN_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18),
267
Diagnostic(ErrorCode.ERR_UseDefViolation, "v1").WithArguments("v1").
WithLocation
(9, 18)
274
Diagnostic(ErrorCode.ERR_UseDefViolation, "v1").WithArguments("v1").
WithLocation
(9, 18)
281
Diagnostic(ErrorCode.ERR_UseDefViolation, "v1").WithArguments("v1").
WithLocation
(9, 18)
309
Diagnostic(ErrorCode.ERR_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
314
Diagnostic(ErrorCode.ERR_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
346
Diagnostic(ErrorCode.WRN_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
351
Diagnostic(ErrorCode.WRN_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
391
Diagnostic(ErrorCode.WRN_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
396
Diagnostic(ErrorCode.WRN_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
431
Diagnostic(ErrorCode.ERR_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
436
Diagnostic(ErrorCode.ERR_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
474
Diagnostic(ErrorCode.ERR_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
479
Diagnostic(ErrorCode.ERR_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
509
Diagnostic(ErrorCode.WRN_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
Semantics\PatternMatchingTests.cs (321)
52
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "").WithArguments("binary literals", "7.0").
WithLocation
(7, 18),
55
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "").WithArguments("digit separators", "7.0").
WithLocation
(8, 18),
58
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(13, 9),
61
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "ref").WithArguments("byref locals and returns", "7.0").
WithLocation
(13, 22),
64
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "f").WithArguments("local functions", "7.0").
WithLocation
(12, 13),
67
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "is").WithArguments("pattern matching", "7.0").
WithLocation
(14, 22),
70
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").
WithLocation
(12, 13));
76
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i2").WithArguments("i2").
WithLocation
(8, 13),
79
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").
WithLocation
(12, 13)
145
Diagnostic(ErrorCode.ERR_PatternNullableType, "Nullable<int>").WithArguments("int").
WithLocation
(11, 18)
216
Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").
WithLocation
(10, 13),
219
Diagnostic(ErrorCode.ERR_PatternNullableType, "NullableInt").WithArguments("int").
WithLocation
(11, 18),
222
Diagnostic(ErrorCode.ERR_PatternWrongType, "long").WithArguments("string", "long").
WithLocation
(12, 18),
225
Diagnostic(ErrorCode.ERR_ConstOutOfRange, "1000").WithArguments("1000", "byte").
WithLocation
(13, 18),
228
Diagnostic(ErrorCode.ERR_UseDefViolation, "t").WithArguments("t").
WithLocation
(9, 55)
469
Diagnostic(ErrorCode.ERR_BadAttributeArgument, @""""" is string s ? s : """"").
WithLocation
(2, 11),
472
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @""""" is object o ? o.ToString() : """"").WithArguments("p").
WithLocation
(8, 38)
610
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(8, 45),
613
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(9, 50),
616
Diagnostic(ErrorCode.ERR_UseDefViolation, "x4").WithArguments("x4").
WithLocation
(14, 35)
982
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(9, 34)
1075
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(9, 41)
1166
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(12, 40),
1169
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(17, 32)
3034
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(6, 1)
3081
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(15, 1)
3116
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "1L is string").WithArguments("string").
WithLocation
(7, 27),
3119
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "1 is int[]").WithArguments("int[]").
WithLocation
(8, 27),
3122
Diagnostic(ErrorCode.ERR_PatternWrongType, "string").WithArguments("long", "string").
WithLocation
(10, 33),
3125
Diagnostic(ErrorCode.ERR_PatternWrongType, "int[]").WithArguments("int", "int[]").
WithLocation
(11, 32)
3166
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "1 is 1").
WithLocation
(7, 27),
3169
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1L is int.MaxValue").
WithLocation
(8, 27),
3172
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1 is int.MaxValue").
WithLocation
(9, 27),
3175
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "int.MaxValue is int.MaxValue").
WithLocation
(10, 27),
3178
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, @"""goo"" is System.String").WithArguments("string").
WithLocation
(11, 27),
3181
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "Int32.MaxValue is Int32.MaxValue").
WithLocation
(12, 27)
3226
Diagnostic(ErrorCode.ERR_ConstantExpected, "typeof(string)").
WithLocation
(9, 18),
3229
Diagnostic(ErrorCode.ERR_ConstantExpected, "typeof(string[])").
WithLocation
(12, 18)
3258
Diagnostic(ErrorCode.ERR_IdentifierExpected, "is").
WithLocation
(11, 22),
3261
Diagnostic(ErrorCode.ERR_NameNotInContext, "obj").WithArguments("obj").
WithLocation
(7, 17)
3364
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "case").WithArguments("pattern matching", "7.0").
WithLocation
(7, 13));
3391
Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "StaticType").WithArguments("StaticType").
WithLocation
(8, 18)
3493
Diagnostic(ErrorCode.ERR_FixedBufferTooManyDimensions, "[3 is var x2 ? 3 : 3, x2]").
WithLocation
(5, 17),
3496
Diagnostic(ErrorCode.ERR_NotConstantExpression, "3 is var x2 ? 3 : 3").WithArguments("S.F2").
WithLocation
(5, 18),
3499
Diagnostic(ErrorCode.ERR_NotConstantExpression, "3 is var x1 ? x1 : 3").WithArguments("S.F1").
WithLocation
(4, 18)
3523
Diagnostic(ErrorCode.ERR_BadSKunknown, "T1").WithArguments("CS7.T1", "type").
WithLocation
(8, 17)
3547
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "M is T").
WithLocation
(8, 17)
3570
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "o.Equals is()").
WithLocation
(7, 17),
3573
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "object.Equals is()").
WithLocation
(8, 17)
3613
Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").
WithLocation
(7, 17),
3616
Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, object.Equals) is()").WithArguments("is", "(int, method group)").
WithLocation
(8, 17)
3644
Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").
WithLocation
(6, 13),
3647
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "Main is 2").
WithLocation
(7, 13),
3650
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate {} is 3").
WithLocation
(8, 13),
3653
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "is").WithArguments("is").
WithLocation
(8, 25),
3656
Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, null) is 4").WithArguments("is", "(int, <null>)").
WithLocation
(9, 13),
3659
Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").
WithLocation
(10, 13),
3662
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "Main is var x2").
WithLocation
(11, 13),
3665
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate {} is var x3").
WithLocation
(12, 13),
3668
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "is").WithArguments("is").
WithLocation
(12, 25),
3671
Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, null) is var x4").WithArguments("is", "(int, <null>)").
WithLocation
(13, 13)
3692
Diagnostic(ErrorCode.ERR_BadUnaryOp, "(1, null) is Program").WithArguments("is", "(int, <null>)").
WithLocation
(6, 13)
4068
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "is").WithArguments("pattern matching", "7.0").
WithLocation
(15, 29),
4071
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "3 is One + 2").
WithLocation
(15, 27),
4074
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "is").WithArguments("pattern matching", "7.0").
WithLocation
(16, 35),
4077
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "One + 2 is 3").
WithLocation
(16, 27));
4088
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "3 is One + 2").
WithLocation
(15, 27),
4091
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "One + 2 is 3").
WithLocation
(16, 27)
4177
Diagnostic(ErrorCode.ERR_UnexpectedToken, "A as B < C, D >").WithArguments("E").
WithLocation
(1, 1)
4184
Diagnostic(ErrorCode.ERR_UnexpectedToken, "A is B < C").WithArguments(",").
WithLocation
(1, 1)
4342
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").
WithLocation
(8, 29),
4345
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(11, 18)
4350
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").
WithLocation
(8, 29),
4353
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(11, 18)
4383
Diagnostic(ErrorCode.ERR_BadSKknown, "_").WithArguments("_", "variable", "type").
WithLocation
(9, 29),
4386
Diagnostic(ErrorCode.ERR_ConstantExpected, "_").
WithLocation
(12, 18)
4422
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(8, 33),
4425
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(9, 33),
4428
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(13, 23),
4431
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(19, 23)
4466
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(8, 22),
4469
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(13, 31),
4472
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("var").
WithLocation
(5, 42),
4475
Diagnostic(ErrorCode.WRN_ManagedAddr, "e").WithArguments("Typ").
WithLocation
(5, 50),
4478
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(8, 27),
4481
Diagnostic(ErrorCode.ERR_BadSKunknown, "var").WithArguments("var", "type").
WithLocation
(9, 22),
4484
Diagnostic(ErrorCode.ERR_NameNotInContext, "d").WithArguments("d").
WithLocation
(9, 27),
4487
Diagnostic(ErrorCode.ERR_BadSKunknown, "Typ").WithArguments("Typ", "type").
WithLocation
(10, 22),
4490
Diagnostic(ErrorCode.ERR_NameNotInContext, "f").WithArguments("f").
WithLocation
(10, 27),
4493
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(13, 36),
4496
Diagnostic(ErrorCode.ERR_BadSKunknown, "var").WithArguments("var", "type").
WithLocation
(14, 31),
4499
Diagnostic(ErrorCode.ERR_NameNotInContext, "d").WithArguments("d").
WithLocation
(14, 36),
4502
Diagnostic(ErrorCode.ERR_BadSKunknown, "Typ").WithArguments("Typ", "type").
WithLocation
(15, 31),
4505
Diagnostic(ErrorCode.ERR_NameNotInContext, "f").WithArguments("f").
WithLocation
(15, 36)
4622
Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").
WithLocation
(6, 30),
4625
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").
WithLocation
(6, 38),
4628
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").
WithLocation
(7, 38),
4631
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "null").WithArguments("<null>").
WithLocation
(8, 16),
4634
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(10, 18),
4637
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").
WithLocation
(11, 18)
4665
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "(() => 1)").WithArguments("lambda expression").
WithLocation
(6, 17),
4668
Diagnostic(ErrorCode.ERR_ConstantExpected, "M").
WithLocation
(10, 18),
4671
Diagnostic(ErrorCode.ERR_ConstantExpected, "(int)M()").
WithLocation
(11, 19)
4695
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "(() => 1)").WithArguments("lambda expression").
WithLocation
(6, 17),
4698
Diagnostic(ErrorCode.ERR_ConstantExpected, "M").
WithLocation
(8, 18)
4718
Diagnostic(ErrorCode.ERR_BadPatternExpression, "null").WithArguments("<null>").
WithLocation
(6, 13),
4721
Diagnostic(ErrorCode.ERR_ConstantExpected, "M").
WithLocation
(6, 21)
4751
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "double.NaN").WithArguments("double", "int?").
WithLocation
(10, 18),
4754
Diagnostic(ErrorCode.ERR_PatternWrongType, "string").WithArguments("int?", "string").
WithLocation
(13, 18)
4778
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("break").
WithLocation
(9, 32),
4781
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(9, 32),
4784
Diagnostic(ErrorCode.ERR_BadSKknown, "Color").WithArguments("Color", "variable", "type").
WithLocation
(8, 18),
4787
Diagnostic(ErrorCode.ERR_NameNotInContext, "Color2").WithArguments("Color2").
WithLocation
(9, 25)
4820
Diagnostic(ErrorCode.ERR_ConstantExpected, "true ? x3 : 4").
WithLocation
(9, 18),
4823
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(9, 25)
4865
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "NotFound").WithArguments("NotFound").
WithLocation
(6, 13),
4868
Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").
WithLocation
(6, 37),
4871
Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").
WithLocation
(6, 37),
4874
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "int _ ").
WithLocation
(6, 37),
4877
Diagnostic(ErrorCode.WRN_UnreferencedVar, "_").WithArguments("_").
WithLocation
(6, 41),
4880
Diagnostic(ErrorCode.ERR_SemicolonExpected, "or").
WithLocation
(6, 43),
4883
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "or").WithArguments("or").
WithLocation
(6, 43),
4886
Diagnostic(ErrorCode.ERR_SemicolonExpected, "_").
WithLocation
(6, 55),
4889
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(6, 55),
4892
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(6, 56),
4895
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(6, 56),
4898
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(6, 62)
5144
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "TDerived td").
WithLocation
(12, 18)
5170
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "IEnumerable<object> s").
WithLocation
(11, 18)
5251
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "U").WithArguments("string", "U", "7.0", "7.1").
WithLocation
(8, 18),
5254
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("string", "T", "7.0", "7.1").
WithLocation
(10, 18)
5259
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "T tt").
WithLocation
(10, 18)
5319
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "12L").WithArguments("long", "byte").
WithLocation
(7, 32),
5322
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(8, 32)
5651
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "0f/0f").WithArguments("System.Single", "IsNaN").
WithLocation
(7, 18)
5679
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "default:").WithArguments("default").
WithLocation
(9, 13)
5717
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "2").
WithLocation
(9, 18),
5720
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "int _").
WithLocation
(19, 18)
5812
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived").WithArguments("T", "Derived", "7.0", "7.1").
WithLocation
(13, 28),
5815
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived").WithArguments("T", "Derived", "7.0", "7.1").
WithLocation
(16, 18)
5855
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "T").WithArguments("Base", "T", "7.0", "7.1").
WithLocation
(13, 28),
5898
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived<T>").WithArguments("T", "Derived<T>", "7.0", "7.1").
WithLocation
(13, 28),
5901
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Derived<T>").WithArguments("T", "Derived<T>", "7.0", "7.1").
WithLocation
(16, 18)
5944
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived").WithArguments("T", "Container<T>.Derived", "7.0", "7.1").
WithLocation
(16, 28),
5947
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived").WithArguments("T", "Container<T>.Derived", "7.0", "7.1").
WithLocation
(19, 18)
5990
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived[]").WithArguments("T[]", "Container<T>.Derived[]", "7.0", "7.1").
WithLocation
(16, 28),
5993
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Container<T>.Derived[]").WithArguments("T[]", "Container<T>.Derived[]", "7.0", "7.1").
WithLocation
(19, 18)
6027
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "s is string").WithArguments("string").
WithLocation
(8, 13),
6030
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "s is string s2").
WithLocation
(9, 13),
6033
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "i is long").WithArguments("long").
WithLocation
(14, 13),
6036
Diagnostic(ErrorCode.ERR_PatternWrongType, "long").WithArguments("int?", "long").
WithLocation
(15, 18),
6039
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(16, 17)
6129
Diagnostic(ErrorCode.ERR_PatternWrongGenericTypeInVersion, "Packet<T>").WithArguments("T", "Packet<T>", "7.0", "7.1").
WithLocation
(12, 52)
6161
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 23),
6164
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref int").WithArguments("ref").
WithLocation
(7, 23),
6167
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(7, 27),
6170
Diagnostic(ErrorCode.ERR_SemicolonExpected, "z0").
WithLocation
(7, 31),
6173
Diagnostic(ErrorCode.ERR_NameNotInContext, "p0").WithArguments("p0").
WithLocation
(6, 28),
6176
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(7, 23),
6179
Diagnostic(ErrorCode.ERR_NameNotInContext, "z0").WithArguments("z0").
WithLocation
(7, 31),
6182
Diagnostic(ErrorCode.ERR_IllegalStatement, "z0").
WithLocation
(7, 31),
6185
Diagnostic(ErrorCode.ERR_PatternWrongType, "object").WithArguments("System.TypedReference", "object").
WithLocation
(9, 23),
6188
Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "object").
WithLocation
(10, 23)
6300
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, @"Console.Write(""Hello"") is object").WithArguments("object").
WithLocation
(6, 13)
6323
Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, @"Console.WriteLine(""world!"") as object").WithArguments("void", "object").
WithLocation
(6, 17)
6349
Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, @"Console.WriteLine(""Hello"") as T").WithArguments("void", "T").
WithLocation
(10, 17)
6370
Diagnostic(ErrorCode.ERR_BadPatternExpression, @"Console.WriteLine(""Hello"")").WithArguments("void").
WithLocation
(6, 13)
6391
Diagnostic(ErrorCode.ERR_BadPatternExpression, @"Console.WriteLine(""Hello"")").WithArguments("void").
WithLocation
(6, 13)
6416
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, @"Console.WriteLine(""Hello"")").WithArguments("void").
WithLocation
(6, 17)
6440
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "s is string").WithArguments("string").
WithLocation
(7, 13),
6443
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "s is string t").
WithLocation
(8, 13)
6549
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(6, 18),
6552
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(7, 19),
6555
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(8, 21),
6558
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(9, 27),
6561
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(10, 28),
6564
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(11, 27),
6567
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(12, 28)
6608
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(9, 65)
6740
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(10, 24));
6765
Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is ({} and var x) and Span<int> inner").WithArguments("System.Span<int>").
WithLocation
(8, 13),
6768
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(10, 24)
6796
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(12, 28));
6823
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(12, 28));
6900
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(16, 42),
6903
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(24, 40),
6906
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(32, 41),
6909
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(40, 37),
6912
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(48, 37),
6915
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(56, 32),
6918
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(64, 35)
6996
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(16, 76),
6999
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(24, 74),
7002
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(32, 92),
7005
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(40, 88),
7008
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(48, 54),
7011
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(56, 49),
7014
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(64, 86)
7078
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(14, 46),
7081
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(20, 44),
7084
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(26, 45),
7087
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(32, 41),
7090
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(38, 41),
7093
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(44, 36),
7096
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(50, 39)
7159
Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and { Prop: var _ and {} and var x }").WithArguments("R").
WithLocation
(14, 13),
7162
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(14, 80),
7165
Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and { Prop: var _ and {} and R x }").WithArguments("R").
WithLocation
(20, 13),
7168
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(20, 78),
7171
Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and (var _ and {} and var x, var _ and {} and var y)").WithArguments("R").
WithLocation
(26, 13),
7174
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(26, 96),
7177
Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and (var _ and {} and R x, var _ and {} and R y)").WithArguments("R").
WithLocation
(32, 13),
7180
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(32, 92),
7183
Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and var (x, y)").WithArguments("R").
WithLocation
(38, 13),
7186
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(38, 58),
7189
Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and { } x").WithArguments("R").
WithLocation
(44, 13),
7192
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(44, 53),
7195
Diagnostic(ErrorCode.WRN_IsPatternAlways, "outer is var _ and {} and (_, _) x").WithArguments("R").
WithLocation
(50, 13),
7198
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(50, 56)
7236
Diagnostic(ErrorCode.ERR_EscapeVariable, "rr0").WithArguments("rr0").
WithLocation
(19, 52),
7239
Diagnostic(ErrorCode.ERR_EscapeVariable, "rr1").WithArguments("rr1").
WithLocation
(23, 56));
7317
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "new System.NullReferenceException()").WithArguments("System.Exception").
WithLocation
(7, 21),
7320
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "null").WithArguments("System.Exception").
WithLocation
(8, 21),
7323
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "null").WithArguments("System.Exception").
WithLocation
(10, 15),
7326
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "d").WithArguments("System.Exception").
WithLocation
(11, 27)
7334
Diagnostic(ErrorCode.ERR_BadExceptionType, "new System.NullReferenceException()").
WithLocation
(7, 21),
7337
Diagnostic(ErrorCode.ERR_BadExceptionType, "d").
WithLocation
(11, 27)
8492
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(5, 57),
8495
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(5, 57));
8521
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(8, 13),
8524
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(8, 13),
8527
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""string 1""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(9, 13),
8530
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""string 1""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(9, 13),
8533
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""string 2""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(10, 13),
8536
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""string 2""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(10, 13));
8574
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""str""").WithArguments("System.ReadOnlySpan`1", "get_Length").
WithLocation
(7, 18),
8577
Diagnostic(ErrorCode.ERR_NoSuchMember, "Length").WithArguments("System.ReadOnlySpan<char>", "Length").
WithLocation
(8, 20),
8580
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""""").WithArguments("System.ReadOnlySpan`1", "get_Length").
WithLocation
(8, 36),
8583
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""str""").WithArguments("System.ReadOnlySpan`1", "get_Length").
WithLocation
(9, 24));
8608
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, @"""""").WithArguments("pattern matching ReadOnly/Span<char> on constant string", "11.0").
WithLocation
(5, 57));
8650
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, @"""""").WithArguments("pattern matching ReadOnly/Span<char> on constant string", "11.0").
WithLocation
(4, 63));
8694
Diagnostic(ErrorCode.ERR_ConstantExpected, "null").
WithLocation
(5, 58),
8697
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(6, 58));
8713
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(object)null").WithArguments("object", "System.ReadOnlySpan<char>").
WithLocation
(4, 57));
8730
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "(string)null").WithArguments("System.ReadOnlySpan<char>").
WithLocation
(4, 58),
8733
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "default(string)").WithArguments("System.ReadOnlySpan<char>").
WithLocation
(5, 58));
8750
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "NullString").WithArguments("System.ReadOnlySpan<char>").
WithLocation
(5, 57));
8767
Diagnostic(ErrorCode.ERR_ConstantExpected, "null").
WithLocation
(5, 63));
8783
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(object)null").WithArguments("object", "System.ReadOnlySpan<char>").
WithLocation
(4, 63));
8799
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "(string)null").WithArguments("System.ReadOnlySpan<char>").
WithLocation
(4, 63));
8816
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "NullString").WithArguments("System.ReadOnlySpan<char>").
WithLocation
(5, 63));
8838
Diagnostic(ErrorCode.ERR_IsPatternImpossible, @"chars is """" and "" """).WithArguments("System.ReadOnlySpan<char>").
WithLocation
(7, 13),
8841
Diagnostic(ErrorCode.ERR_IsPatternImpossible, @"chars is """" and not """"").WithArguments("System.ReadOnlySpan<char>").
WithLocation
(8, 13),
8844
Diagnostic(ErrorCode.ERR_IsPatternImpossible, @"chars is """" and ("" "" or not """")").WithArguments("System.ReadOnlySpan<char>").
WithLocation
(9, 13));
8874
Diagnostic(ErrorCode.WRN_IsPatternAlways, @"chars is """" or not """"").WithArguments("System.ReadOnlySpan<char>").
WithLocation
(16, 35));
8956
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, @"""""").
WithLocation
(7, 9));
10091
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(5, 49),
10094
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(5, 49));
10120
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(8, 13),
10123
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(8, 13),
10126
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""string 1""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(9, 13),
10129
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""string 1""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(9, 13),
10132
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""string 2""").WithArguments("System.MemoryExtensions", "SequenceEqual").
WithLocation
(10, 13),
10135
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""string 2""").WithArguments("System.MemoryExtensions", "AsSpan").
WithLocation
(10, 13));
10177
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""str""").WithArguments("System.Span`1", "get_Length").
WithLocation
(7, 18),
10180
Diagnostic(ErrorCode.ERR_NoSuchMember, "Length").WithArguments("System.Span<char>", "Length").
WithLocation
(8, 20),
10183
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""""").WithArguments("System.Span`1", "get_Length").
WithLocation
(8, 36),
10186
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""str""").WithArguments("System.Span`1", "get_Length").
WithLocation
(9, 24));
10210
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, @"""""").WithArguments("pattern matching ReadOnly/Span<char> on constant string", "11.0").
WithLocation
(5, 49));
10251
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, @"""""").WithArguments("pattern matching ReadOnly/Span<char> on constant string", "11.0").
WithLocation
(5, 55));
10294
Diagnostic(ErrorCode.ERR_ConstantExpected, "null").
WithLocation
(5, 50),
10297
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(6, 50));
10313
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(object)null").WithArguments("object", "System.Span<char>").
WithLocation
(4, 49));
10330
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "(string)null").WithArguments("System.Span<char>").
WithLocation
(4, 50),
10333
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "default(string)").WithArguments("System.Span<char>").
WithLocation
(5, 50));
10350
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "NullString").WithArguments("System.Span<char>").
WithLocation
(5, 49));
10367
Diagnostic(ErrorCode.ERR_ConstantExpected, "null").
WithLocation
(5, 55));
10383
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(object)null").WithArguments("object", "System.Span<char>").
WithLocation
(4, 55));
10399
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "(string)null").WithArguments("System.Span<char>").
WithLocation
(4, 55));
10416
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "NullString").WithArguments("System.Span<char>").
WithLocation
(5, 55));
10438
Diagnostic(ErrorCode.ERR_IsPatternImpossible, @"chars is """" and "" """).WithArguments("System.Span<char>").
WithLocation
(7, 13),
10441
Diagnostic(ErrorCode.ERR_IsPatternImpossible, @"chars is """" and not """"").WithArguments("System.Span<char>").
WithLocation
(8, 13),
10444
Diagnostic(ErrorCode.ERR_IsPatternImpossible, @"chars is """" and ("" "" or not """")").WithArguments("System.Span<char>").
WithLocation
(9, 13));
10476
Diagnostic(ErrorCode.WRN_IsPatternAlways, @"chars is """" or not """"").WithArguments("System.Span<char>").
WithLocation
(18, 35));
10558
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, @"""""").
WithLocation
(7, 9));
10575
Diagnostic(ErrorCode.ERR_PatternWrongType, @"""""").WithArguments("System.ReadOnlySpan<T>", "string").
WithLocation
(4, 56),
10578
Diagnostic(ErrorCode.ERR_PatternWrongType, @"""""").WithArguments("System.Span<T>", "string").
WithLocation
(5, 48));
10606
Diagnostic(ErrorCode.ERR_PatternWrongType, "ReadOnlySpan<char>").WithArguments("System.ReadOnlySpan<T>", "System.ReadOnlySpan<char>").
WithLocation
(5, 56),
10609
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<char>").WithArguments("System.Span<T>", "System.Span<char>").
WithLocation
(6, 48));
10626
Diagnostic(ErrorCode.ERR_PatternWrongType, "ReadOnlySpan<char>").WithArguments("System.ReadOnlySpan<T>", "System.ReadOnlySpan<char>").
WithLocation
(4, 56),
10629
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<char>").WithArguments("System.Span<T>", "System.Span<char>").
WithLocation
(5, 48));
10648
Diagnostic(ErrorCode.ERR_PatternWrongType, "ReadOnlySpan<char>").WithArguments("object", "System.ReadOnlySpan<char>").
WithLocation
(4, 41),
10651
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<char>").WithArguments("object", "System.Span<char>").
WithLocation
(5, 41),
10654
Diagnostic(ErrorCode.ERR_PatternWrongType, "ReadOnlySpan<char>").WithArguments("System.ValueType", "System.ReadOnlySpan<char>").
WithLocation
(6, 44),
10657
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<char>").WithArguments("System.ValueType", "System.Span<char>").
WithLocation
(7, 44));
10676
Diagnostic(ErrorCode.ERR_PatternWrongType, "ReadOnlySpan<char>").WithArguments("object", "System.ReadOnlySpan<char>").
WithLocation
(4, 41),
10679
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<char>").WithArguments("object", "System.Span<char>").
WithLocation
(5, 41),
10682
Diagnostic(ErrorCode.ERR_PatternWrongType, "ReadOnlySpan<char>").WithArguments("System.ValueType", "System.ReadOnlySpan<char>").
WithLocation
(6, 44),
10685
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<char>").WithArguments("System.ValueType", "System.Span<char>").
WithLocation
(7, 44));
10703
Diagnostic(ErrorCode.ERR_ConstantExpected, @"$""{123}""").
WithLocation
(5, 56),
10706
Diagnostic(ErrorCode.ERR_ConstantExpected, @"$""{n}""").
WithLocation
(6, 48));
10752
Diagnostic(ErrorCode.ERR_ConstantExpected, @"b ? """" : ""ABC""").
WithLocation
(4, 65),
10755
Diagnostic(ErrorCode.ERR_ConstantExpected, @"b ? """" : ""123""").
WithLocation
(5, 57));
10800
Diagnostic(ErrorCode.ERR_ConstantExpected, @"b switch { true => """", false => ""ABC"" }").
WithLocation
(4, 64),
10803
Diagnostic(ErrorCode.ERR_ConstantExpected, @"b switch { false => """", true => ""123"" }").
WithLocation
(5, 56));
10824
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsIsMatch, @"new ReadOnlySpan<char>(null) is ""123""").
WithLocation
(7, 43),
10827
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "new ReadOnlySpan<char>(null)").WithArguments("ReadOnlySpan").
WithLocation
(7, 43),
10830
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsIsMatch, @"new Span<char>(null) is ""ABC""").
WithLocation
(8, 43),
10833
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "new Span<char>(null)").WithArguments("Span").
WithLocation
(8, 43));
10854
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsSwitchExpression, @"new ReadOnlySpan<char>(null) switch { ""123"" => true, _ => false }").
WithLocation
(7, 43),
10857
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "new ReadOnlySpan<char>(null)").WithArguments("ReadOnlySpan").
WithLocation
(7, 43),
10860
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsSwitchExpression, @"new Span<char>(null) switch { ""ABC"" => true, _ => false }").
WithLocation
(8, 43),
10863
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "new Span<char>(null)").WithArguments("Span").
WithLocation
(8, 43));
10910
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "(string)null").WithArguments("System.ReadOnlySpan<char>").
WithLocation
(8, 13),
10913
Diagnostic(ErrorCode.ERR_PatternSpanCharCannotBeStringNull, "default(string)").WithArguments("System.Span<char>").
WithLocation
(28, 13));
12241
Diagnostic(ErrorCode.ERR_BadBinaryOps, "this is G<int>").WithArguments("is", "G<T>", "G<int>").
WithLocation
(13, 13),
12244
Diagnostic(ErrorCode.ERR_BadBinaryOps, "this is G<object>").WithArguments("is", "G<T>", "G<object>").
WithLocation
(17, 18),
12247
Diagnostic(ErrorCode.ERR_PatternWrongType, "G<int>").WithArguments("G<T>", "G<int>").
WithLocation
(32, 13),
12250
Diagnostic(ErrorCode.ERR_PatternWrongType, "G<object>").WithArguments("G<T>", "G<object>").
WithLocation
(33, 13)
12274
Diagnostic(ErrorCode.ERR_AsMustHaveReferenceType, "x1 as G<object>").WithArguments("G<object>").
WithLocation
(6, 18),
12277
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x2 as T").WithArguments("as", "G<object>", "T").
WithLocation
(11, 18)
Semantics\PatternMatchingTests_Global.cs (739)
58
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 18),
61
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
64
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 20),
67
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
70
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
73
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
105
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 18),
108
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
111
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
114
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 20),
117
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(19, 1)
180
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 18),
183
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
186
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 20),
189
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
192
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
195
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
227
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 18),
230
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
233
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
236
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 20),
239
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(19, 1)
350
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 15),
353
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
356
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 24),
359
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(30, 17),
362
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(30, 21),
365
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(30, 25)
404
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 15),
407
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
410
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
413
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 24),
416
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 28),
419
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x6").WithArguments("x6").
WithLocation
(21, 5),
422
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x6").WithArguments("x6").
WithLocation
(24, 12),
425
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(33, 1)
502
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 15),
505
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
508
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 24),
511
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
514
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
517
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
556
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 15),
559
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
562
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 24),
565
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x5").WithArguments("x5").
WithLocation
(16, 29),
568
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(21, 25),
571
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(26, 1),
574
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8)
727
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 24),
730
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
733
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 33),
736
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(2, 1),
739
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(6, 1),
742
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(8, 1),
745
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(11, 1),
748
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
751
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
754
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
786
Diagnostic(ErrorCode.ERR_BadIteratorReturn, "yield return (1 is int x1);").WithArguments("<top-level-statements-entry-point>", "void").
WithLocation
(2, 1),
789
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 24),
792
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
795
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
798
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 33),
801
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(19, 1)
864
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 24),
867
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
870
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 33),
873
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(2, 1),
876
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(6, 1),
879
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(8, 1),
882
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(11, 1),
885
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
888
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
891
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
924
Diagnostic(ErrorCode.ERR_BadIteratorReturn, "yield return (1 is var x1);").WithArguments("<top-level-statements-entry-point>", "void").
WithLocation
(2, 1),
927
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 24),
930
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
933
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
936
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 33),
939
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(19, 1)
1000
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 18),
1003
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
1006
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 27),
1009
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
1012
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
1015
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
1018
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
1050
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1 is int x1").WithArguments("bool", "int").
WithLocation
(2, 9),
1053
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
1056
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 18),
1059
Diagnostic(ErrorCode.ERR_NoImplicitConv, "3 is int x3").WithArguments("bool", "int").
WithLocation
(8, 9),
1062
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
1065
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
1068
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 27),
1071
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(14, 6)
1132
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 18),
1135
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
1138
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 27),
1141
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
1144
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
1147
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
1150
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
1182
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1 is var x1").WithArguments("bool", "int").
WithLocation
(2, 9),
1185
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
1188
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 18),
1191
Diagnostic(ErrorCode.ERR_NoImplicitConv, "3 is var x3").WithArguments("bool", "int").
WithLocation
(8, 9),
1194
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
1197
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
1200
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 27),
1203
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(14, 6)
1306
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 24),
1309
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
1312
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 26),
1315
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
1318
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
1321
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
1324
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
1356
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
1359
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 24),
1362
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
1365
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
1368
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 26)
1431
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 24),
1434
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
1437
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 26),
1440
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
1443
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
1446
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
1449
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
1482
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
1485
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 24),
1488
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
1491
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
1494
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 26)
1566
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 19),
1569
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
1572
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 28),
1575
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(25, 17),
1578
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(25, 21),
1581
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(25, 25)
1620
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 19),
1623
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
1626
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
1629
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 28),
1632
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(17, 28),
1635
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(28, 1)
1714
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 19),
1717
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
1720
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 28),
1723
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(25, 17),
1726
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(25, 21),
1729
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(25, 25)
1768
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 19),
1771
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
1774
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
1777
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 28),
1780
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(17, 25),
1783
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(28, 1)
1903
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
1906
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 27),
1909
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 28),
1912
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(19, 9),
1915
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
1918
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
1921
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29)
1967
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
1970
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(6, 18),
1973
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(8, 18),
1976
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 27),
1979
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 28),
1982
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(19, 9),
1985
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
1988
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
1991
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29)
2074
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
2077
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 27),
2080
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 25),
2083
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(19, 9),
2086
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
2089
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
2092
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29)
2138
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
2141
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(6, 18),
2144
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(8, 18),
2147
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 27),
2150
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 25),
2153
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(19, 9),
2156
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
2159
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
2162
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29)
2277
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
2280
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 33),
2283
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 28),
2286
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 9),
2289
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(24, 13),
2292
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(24, 25),
2295
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(24, 29)
2341
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
2344
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(6, 24),
2347
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(8, 24),
2350
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 33),
2353
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 28),
2356
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 9),
2359
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(24, 13),
2362
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(24, 25),
2365
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(24, 29)
2449
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
2452
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 33),
2455
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 25),
2458
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 9),
2461
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(24, 13),
2464
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(24, 25),
2467
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(24, 29)
2513
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
2516
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(6, 24),
2519
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(8, 24),
2522
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 33),
2525
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 25),
2528
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 9),
2531
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(24, 13),
2534
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(24, 25),
2537
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(24, 29)
2661
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 24),
2664
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
2667
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 26),
2670
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
2673
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
2676
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25)
2715
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 24),
2718
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
2721
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
2724
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 26),
2727
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 28),
2730
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(26, 1)
2807
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 24),
2810
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
2813
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 26),
2816
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
2819
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
2822
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25)
2861
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 24),
2864
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
2867
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
2870
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 26),
2873
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 25),
2876
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(26, 1)
3038
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 30),
3041
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
3044
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 32),
3047
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(14, 33),
3050
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(15, 33),
3053
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(19, 17),
3056
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(19, 21),
3059
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(19, 25),
3062
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(19, 29),
3065
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(19, 33)
3106
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 30),
3109
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
3112
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
3115
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 32),
3118
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(14, 33),
3121
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(15, 33),
3124
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(22, 1)
3197
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 21),
3200
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
3203
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 23),
3206
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
3209
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(6, 1),
3212
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(8, 1),
3215
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").
WithLocation
(11, 1),
3218
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
3221
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
3224
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
3256
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
3259
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(6, 1),
3262
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 21),
3265
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(8, 1),
3268
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
3271
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
3274
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").
WithLocation
(11, 1),
3277
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 23),
3280
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(19, 1)
3343
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 21),
3346
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
3349
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 23),
3352
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
3355
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(6, 1),
3358
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(8, 1),
3361
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").
WithLocation
(11, 1),
3364
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
3367
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
3370
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
3402
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
3405
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(6, 1),
3408
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 21),
3411
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(8, 1),
3414
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
3417
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
3420
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").
WithLocation
(11, 1),
3423
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 23),
3426
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(19, 1)
3480
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(3, 1),
3483
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(3, 3),
3486
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(3, 5)
3537
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 20),
3540
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
3543
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 29),
3546
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
3549
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(6, 1),
3552
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").
WithLocation
(8, 1),
3555
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").
WithLocation
(11, 1),
3558
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").
WithLocation
(14, 1),
3561
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(20, 17),
3564
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(20, 21),
3567
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(20, 25)
3604
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
3607
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(6, 1),
3610
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(7, 20),
3613
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").
WithLocation
(8, 1),
3616
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(10, 8),
3619
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(10, 8),
3622
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").
WithLocation
(11, 1),
3625
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 29),
3628
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").
WithLocation
(14, 1),
3631
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(15, 21),
3634
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(23, 1)
3708
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 20),
3711
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
3714
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 29),
3717
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
3720
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(6, 1),
3723
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").
WithLocation
(8, 1),
3726
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").
WithLocation
(11, 1),
3729
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").
WithLocation
(14, 1),
3732
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(20, 17),
3735
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(20, 21),
3738
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(20, 25)
3775
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
3778
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(6, 1),
3781
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(7, 20),
3784
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").
WithLocation
(8, 1),
3787
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(10, 8),
3790
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(10, 8),
3793
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").
WithLocation
(11, 1),
3796
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 29),
3799
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").
WithLocation
(14, 1),
3802
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(15, 21),
3805
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(23, 1)
3863
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(3, 1),
3866
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(3, 3),
3869
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(3, 5)
3921
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 30),
3924
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
3927
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 32),
3930
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(14, 33),
3933
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(15, 33),
3936
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").
WithLocation
(1, 1),
3939
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").
WithLocation
(5, 1),
3942
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").
WithLocation
(7, 1),
3945
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").
WithLocation
(10, 1),
3948
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").
WithLocation
(13, 1),
3951
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(19, 17),
3954
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(19, 21),
3957
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(19, 25),
3960
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(19, 29),
3963
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(19, 33)
4006
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").
WithLocation
(1, 1),
4009
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").
WithLocation
(5, 1),
4012
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 30),
4015
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").
WithLocation
(7, 1),
4018
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
4021
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
4024
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").
WithLocation
(10, 1),
4027
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 32),
4030
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").
WithLocation
(13, 1),
4033
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(14, 33),
4036
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(15, 33),
4039
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(22, 1)
4119
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 30),
4122
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
4125
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 32),
4128
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(14, 33),
4131
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(15, 33),
4134
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").
WithLocation
(1, 1),
4137
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").
WithLocation
(5, 1),
4140
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").
WithLocation
(7, 1),
4143
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").
WithLocation
(10, 1),
4146
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").
WithLocation
(13, 1),
4149
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(19, 17),
4152
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(19, 21),
4155
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(19, 25),
4158
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(19, 29),
4161
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(19, 33)
4204
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").
WithLocation
(1, 1),
4207
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").
WithLocation
(5, 1),
4210
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 30),
4213
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").
WithLocation
(7, 1),
4216
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
4219
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
4222
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").
WithLocation
(10, 1),
4225
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 32),
4228
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").
WithLocation
(13, 1),
4231
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(14, 33),
4234
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(15, 33),
4237
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(22, 1)
4302
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(3, 1),
4305
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(3, 3),
4308
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(3, 5)
4362
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 20),
4365
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
4368
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 29),
4371
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 21),
4374
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(19, 10),
4377
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
4380
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
4383
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25),
4386
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(23, 29),
4389
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(23, 33)
4429
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(7, 20),
4432
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(10, 8),
4435
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(10, 8),
4438
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 29),
4441
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(16, 21),
4444
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(19, 10),
4447
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x6").WithArguments("x6").
WithLocation
(19, 10),
4450
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(26, 1)
4529
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 20),
4532
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
4535
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 29),
4538
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 21),
4541
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(19, 10),
4544
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
4547
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
4550
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25),
4553
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(23, 29),
4556
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(23, 33)
4596
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(7, 20),
4599
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(10, 8),
4602
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(10, 8),
4605
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 29),
4608
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(16, 21),
4611
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(19, 10),
4614
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x6").WithArguments("x6").
WithLocation
(19, 10),
4617
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(26, 1)
4754
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
4757
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
4793
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
4796
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
4882
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 29),
4885
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
4888
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 38),
4891
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 21),
4894
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(20, 17),
4897
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(20, 21),
4900
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(20, 25),
4903
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(20, 29)
4939
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").
WithLocation
(3, 6),
4942
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
4945
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").
WithLocation
(7, 6),
4948
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").
WithLocation
(9, 6),
4951
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").
WithLocation
(12, 6),
4954
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 38),
4957
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").
WithLocation
(15, 6),
4960
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(20, 13),
4963
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(20, 25),
4966
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 29),
4969
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(23, 1),
4972
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x3").
WithLocation
(23, 1)
5048
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 29),
5051
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
5054
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 38),
5057
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 21),
5060
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(20, 17),
5063
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(20, 21),
5066
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(20, 25),
5069
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(20, 29)
5105
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").
WithLocation
(3, 6),
5108
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
5111
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").
WithLocation
(7, 6),
5114
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").
WithLocation
(9, 6),
5117
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").
WithLocation
(12, 6),
5120
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 38),
5123
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").
WithLocation
(15, 6),
5126
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(20, 13),
5129
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(20, 25),
5132
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 29),
5135
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(23, 1),
5138
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x3").
WithLocation
(23, 1)
5275
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
5278
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
5314
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
5317
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
5369
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 42),
5372
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
5375
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 36),
5378
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 28),
5381
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(19, 10),
5384
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
5387
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
5390
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25),
5393
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(23, 29),
5396
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(23, 33)
5436
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").
WithLocation
(3, 21),
5439
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
5442
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").
WithLocation
(7, 21),
5445
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").
WithLocation
(9, 21),
5448
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").
WithLocation
(12, 21),
5451
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 36),
5454
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").
WithLocation
(15, 21),
5457
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "i").
WithLocation
(18, 21),
5460
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(21, 6),
5463
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
5466
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
5469
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29),
5472
Diagnostic(ErrorCode.ERR_NameNotInContext, "x6").WithArguments("x6").
WithLocation
(23, 33)
5554
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 42),
5557
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
5560
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 36),
5563
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 28),
5566
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(19, 10),
5569
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
5572
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
5575
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25),
5578
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(23, 29),
5581
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(23, 33)
5621
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").
WithLocation
(3, 21),
5624
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
5627
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").
WithLocation
(7, 21),
5630
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").
WithLocation
(9, 21),
5633
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").
WithLocation
(12, 21),
5636
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 36),
5639
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").
WithLocation
(15, 21),
5642
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "i").
WithLocation
(18, 21),
5645
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(21, 6),
5648
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
5651
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
5654
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29),
5657
Diagnostic(ErrorCode.ERR_NameNotInContext, "x6").WithArguments("x6").
WithLocation
(23, 33)
5809
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
5812
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
5848
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
5851
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
5928
Diagnostic(ErrorCode.ERR_BadVarDecl, @"(""5948"" is var x1").
WithLocation
(3, 10),
5931
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 10),
5934
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 27)
5954
Diagnostic(ErrorCode.WRN_UnreferencedVar, "a").WithArguments("a").
WithLocation
(3, 6),
5957
Diagnostic(ErrorCode.WRN_UnreferencedVar, "b").WithArguments("b").
WithLocation
(3, 9),
5960
Diagnostic(ErrorCode.ERR_BadVarDecl, @"(""5948"" is var x1").
WithLocation
(3, 10),
5963
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 10),
5966
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 27),
5969
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(4, 9),
5972
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(6, 6)
6013
Diagnostic(ErrorCode.ERR_BadVarDecl, "((1 is var x1)").
WithLocation
(3, 10),
6016
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 10),
6019
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 24),
6022
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").
WithLocation
(2, 1)
6041
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").
WithLocation
(2, 1),
6044
Diagnostic(ErrorCode.WRN_UnreferencedVar, "a").WithArguments("a").
WithLocation
(3, 6),
6047
Diagnostic(ErrorCode.WRN_UnreferencedVar, "b").WithArguments("b").
WithLocation
(3, 9),
6050
Diagnostic(ErrorCode.ERR_BadVarDecl, "((1 is var x1)").
WithLocation
(3, 10),
6053
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 10),
6056
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 24),
6059
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(4, 9)
6100
Diagnostic(ErrorCode.ERR_BadVarDecl, "(H.Dummy(1 is var x1)").
WithLocation
(3, 25),
6103
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 25),
6106
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 46)
6126
Diagnostic(ErrorCode.ERR_BadVarDecl, "(H.Dummy(1 is var x1)").
WithLocation
(3, 25),
6129
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 25),
6132
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 46),
6135
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
6138
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(8, 13)
6183
Diagnostic(ErrorCode.ERR_FixedNotInStruct, "b").
WithLocation
(3, 18),
6186
Diagnostic(ErrorCode.ERR_NotConstantExpression, "H.Dummy(1 is var x1)").WithArguments("b").
WithLocation
(3, 20),
6189
Diagnostic(ErrorCode.ERR_FixedNotInStruct, "a").
WithLocation
(3, 12),
6192
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "a[2]").
WithLocation
(3, 12)
6212
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "a").
WithLocation
(3, 12),
6215
Diagnostic(ErrorCode.ERR_FixedNotInStruct, "b").
WithLocation
(3, 18),
6218
Diagnostic(ErrorCode.ERR_FixedNotInStruct, "a").
WithLocation
(3, 12),
6221
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "a[2]").
WithLocation
(3, 12),
6224
Diagnostic(ErrorCode.ERR_NotConstantExpression, "H.Dummy(1 is var x1)").WithArguments("<invalid-global-code>.b").
WithLocation
(3, 20),
6227
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
6230
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(8, 13)
6265
Diagnostic(ErrorCode.ERR_FieldCantBeRefAny, "System.ArgIterator").WithArguments("System.ArgIterator").
WithLocation
(3, 17)
6294
Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "x1").WithArguments("StaticType").
WithLocation
(2, 28)
6345
Diagnostic(ErrorCode.ERR_VarMayNotBindToType, "var").WithArguments("var").
WithLocation
(4, 14)
6491
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(20, 13),
6494
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(28, 9),
6497
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(38, 26),
6500
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(45, 28),
6503
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(52, 13),
6506
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(67, 32),
6509
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x15").WithArguments("x15").
WithLocation
(75, 32)
6576
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(14, 24),
6579
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(20, 13),
6582
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(28, 9),
6585
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(38, 26),
6588
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(45, 28),
6591
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(52, 13),
6594
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(67, 32),
6597
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x15").WithArguments("x15").
WithLocation
(75, 32)
6724
Diagnostic(ErrorCode.ERR_NameNotInContext, "x3").WithArguments("x3").
WithLocation
(15, 9)
6751
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x2").WithArguments("x2").
WithLocation
(7, 8),
6754
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(9, 22),
6757
Diagnostic(ErrorCode.ERR_NameNotInContext, "x3").WithArguments("x3").
WithLocation
(15, 9)
6910
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(74, 5),
6913
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(25, 15),
6916
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(33, 9),
6919
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(42, 26),
6922
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(50, 31),
6925
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(56, 15),
6928
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(72, 15),
6931
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(83, 22),
6934
Diagnostic(ErrorCode.WRN_UnreachableCode, "for").
WithLocation
(11, 1),
6937
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(74, 9)
7005
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(20, 27),
7008
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(74, 5),
7011
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(25, 15),
7014
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(33, 9),
7017
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(42, 26),
7020
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(50, 31),
7023
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(56, 15),
7026
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(72, 15),
7029
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(83, 22),
7032
Diagnostic(ErrorCode.WRN_UnreachableCode, "for").
WithLocation
(11, 1),
7035
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(74, 9)
7227
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(52, 5),
7230
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(18, 25),
7233
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(23, 9),
7236
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(30, 26),
7239
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(35, 42),
7242
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(39, 25),
7245
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(51, 25),
7248
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(58, 34),
7251
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x15").WithArguments("x15").
WithLocation
(64, 14),
7254
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(52, 9)
7328
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(15, 37),
7331
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(52, 5),
7334
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(18, 25),
7337
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(23, 9),
7340
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(30, 26),
7343
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(35, 42),
7346
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(39, 25),
7349
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(51, 25),
7352
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(58, 34),
7355
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x15").WithArguments("x15").
WithLocation
(64, 14),
7358
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(52, 9)
7508
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(6, 39),
7511
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(9, 67),
7514
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(14, 7),
7517
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 7),
7520
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(17, 9),
7523
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(18, 7)
7599
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(6, 39),
7602
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(9, 67),
7605
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(14, 7),
7608
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 7),
7611
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(17, 9),
7614
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(18, 7),
7617
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x12").WithArguments("x12").
WithLocation
(37, 9)
7841
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(14, 21),
7844
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(21, 25),
7847
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(28, 29),
7850
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u4").WithArguments("u4").
WithLocation
(30, 29),
7853
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(32, 25),
7856
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(32, 29),
7859
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(41, 29),
7862
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u5").WithArguments("u5").
WithLocation
(43, 29),
7865
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(46, 25),
7868
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(46, 29),
7871
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(55, 21),
7874
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(61, 21),
7877
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(63, 21),
7880
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(65, 21),
7883
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(65, 26),
7886
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(80, 17),
7889
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(77, 17),
7892
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(16, 7),
7895
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(23, 7),
7898
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(35, 7),
7901
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(36, 7),
7904
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(49, 7),
7907
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(50, 7),
7910
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(57, 7),
7913
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(67, 7),
7916
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(68, 7),
7919
Diagnostic(ErrorCode.ERR_NameNotInContext, "z8").WithArguments("z8").
WithLocation
(73, 7),
7922
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(82, 7),
7925
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(83, 7)
8094
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(14, 21),
8097
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(21, 25),
8100
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(28, 29),
8103
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u4").WithArguments("u4").
WithLocation
(30, 29),
8106
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(32, 25),
8109
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(32, 29),
8112
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(41, 29),
8115
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u5").WithArguments("u5").
WithLocation
(43, 29),
8118
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(46, 25),
8121
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(46, 29),
8124
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(55, 21),
8127
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(61, 21),
8130
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(63, 21),
8133
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(65, 21),
8136
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(65, 26),
8139
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(80, 17),
8142
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(77, 17),
8145
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(16, 7),
8148
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(23, 7),
8151
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(35, 7),
8154
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(36, 7),
8157
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(49, 7),
8160
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(50, 7),
8163
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(57, 7),
8166
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(67, 7),
8169
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(68, 7),
8172
Diagnostic(ErrorCode.ERR_NameNotInContext, "z8").WithArguments("z8").
WithLocation
(73, 7),
8175
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(82, 7),
8178
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(83, 7),
8181
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y10").WithArguments("y10").
WithLocation
(86, 18),
8184
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y11").WithArguments("y11").
WithLocation
(90, 17)
8452
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(52, 5),
8455
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(18, 14),
8458
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(23, 9),
8461
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(30, 26),
8464
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(35, 30),
8467
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(39, 14),
8470
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(51, 14),
8473
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(58, 26),
8476
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(52, 9)
8548
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(15, 26),
8551
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(18, 14),
8554
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(23, 9),
8557
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(30, 26),
8560
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(35, 30),
8563
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(39, 14),
8566
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(51, 14),
8569
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(52, 5),
8572
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(52, 9),
8575
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(58, 26)
Semantics\PatternMatchingTests_ListPatterns.cs (484)
456
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "[]").WithArguments("list pattern", "11.0").
WithLocation
(2, 16),
459
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "[.. var x]").WithArguments("list pattern", "11.0").
WithLocation
(3, 16),
462
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, ".. var y").
WithLocation
(4, 16)
469
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, ".. var y").
WithLocation
(4, 16)
975
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[1]").WithArguments("System.Index", ".ctor").
WithLocation
(20, 24),
978
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[.. 1]").WithArguments("System.Index", ".ctor").
WithLocation
(21, 24),
981
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, ".. 1").WithArguments("System.Range", ".ctor").
WithLocation
(21, 25),
984
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "^1").WithArguments("System.Index", ".ctor").
WithLocation
(22, 21)
1008
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[0]").WithArguments("System.Array", "Length").
WithLocation
(6, 18),
1011
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[.._]").WithArguments("System.Array", "Length").
WithLocation
(7, 18));
1038
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[0]").WithArguments("System.Index", ".ctor").
WithLocation
(10, 21),
1041
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[.., 0]").WithArguments("System.Index", ".ctor").
WithLocation
(11, 21),
1044
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "^1").WithArguments("System.Index", ".ctor").
WithLocation
(12, 18)
1087
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, ".._").WithArguments("System.Range", ".ctor").
WithLocation
(12, 22),
1090
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, ".._").WithArguments("System.Range", ".ctor").
WithLocation
(13, 25),
1093
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, ".._").WithArguments("System.Range", ".ctor").
WithLocation
(14, 22),
1096
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, ".._").WithArguments("System.Range", ".ctor").
WithLocation
(15, 25),
1099
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "..").WithArguments("System.Range", ".ctor").
WithLocation
(19, 18),
1102
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "1..").WithArguments("System.Range", ".ctor").
WithLocation
(20, 18),
1105
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "..^1").WithArguments("System.Range", ".ctor").
WithLocation
(21, 18),
1108
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "1..^1").WithArguments("System.Range", ".ctor").
WithLocation
(22, 18)
1130
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, ".. var slice").WithArguments("System.String", "Substring").
WithLocation
(6, 19),
1133
Diagnostic(ErrorCode.ERR_BadArgType, ".. var slice").WithArguments("1", "System.Range", "int").
WithLocation
(6, 19),
1136
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "s[..]").WithArguments("System.String", "Substring").
WithLocation
(7, 13),
1139
Diagnostic(ErrorCode.ERR_BadArgType, "..").WithArguments("1", "System.Range", "int").
WithLocation
(7, 15)
1160
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, ".. var slice").WithArguments("System.Runtime.CompilerServices.RuntimeHelpers", "GetSubArray").
WithLocation
(6, 19),
1163
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "..").WithArguments("System.Runtime.CompilerServices.RuntimeHelpers", "GetSubArray").
WithLocation
(7, 15)
1184
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, ".. var slice").WithArguments("System.Runtime.CompilerServices.RuntimeHelpers", "GetSubArray").
WithLocation
(6, 19),
1187
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "..").WithArguments("System.Runtime.CompilerServices.RuntimeHelpers", "GetSubArray").
WithLocation
(7, 15)
1229
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Test1.Count", "error3").
WithLocation
(25, 28),
1232
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Test1.Count", "error3").
WithLocation
(25, 28),
1235
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Test1.this[int]", "error2").
WithLocation
(25, 28),
1238
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Test1.Count", "error3").
WithLocation
(26, 28),
1241
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Test1.Count", "error3").
WithLocation
(26, 28),
1244
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Test1.this[int]", "error2").
WithLocation
(26, 28),
1247
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "..0").WithArguments("Test1.Count", "error3").
WithLocation
(26, 29),
1250
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "..0").WithArguments("Test1.Slice(int, int)", "error1").
WithLocation
(26, 29),
1253
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Test2.Length", "error6").
WithLocation
(27, 28),
1256
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Test2.this[System.Index]", "error4").
WithLocation
(27, 28),
1259
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Test2.Length", "error6").
WithLocation
(28, 28),
1262
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Test2.this[System.Index]", "error4").
WithLocation
(28, 28),
1265
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "..0").WithArguments("Test2.this[System.Range]", "error5").
WithLocation
(28, 29)
1329
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Test1.Count.get", "error2").
WithLocation
(40, 28),
1332
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Test1.Count.get", "error2").
WithLocation
(40, 28),
1335
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Test1.this[int].get", "error1").
WithLocation
(40, 28),
1339
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test1()[^1]").WithArguments("Test1.Count.get", "error2").
WithLocation
(41, 13),
1342
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test1()[^1]").WithArguments("Test1.this[int].get", "error1").
WithLocation
(41, 13),
1346
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Test1.Count.get", "error2").
WithLocation
(43, 28),
1349
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Test1.Count.get", "error2").
WithLocation
(43, 28),
1352
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Test1.this[int].get", "error1").
WithLocation
(43, 28),
1355
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "..0").WithArguments("Test1.Slice(int, int)", "error1").
WithLocation
(43, 29),
1358
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "..0").WithArguments("Test1.Count.get", "error2").
WithLocation
(43, 29),
1362
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test1()[..0]").WithArguments("Test1.Slice(int, int)", "error1").
WithLocation
(44, 13),
1365
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test1()[..0]").WithArguments("Test1.Count.get", "error2").
WithLocation
(44, 13),
1369
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Test2.Length.get", "error5").
WithLocation
(46, 28),
1372
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Test2.this[System.Index].get", "error3").
WithLocation
(46, 28),
1376
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test2()[^1]").WithArguments("Test2.this[System.Index].get", "error3").
WithLocation
(47, 13),
1380
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Test2.Length.get", "error5").
WithLocation
(49, 28),
1383
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Test2.this[System.Index].get", "error3").
WithLocation
(49, 28),
1386
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "..0").WithArguments("Test2.this[System.Range].get", "error4").
WithLocation
(49, 29),
1390
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test2()[..0]").WithArguments("Test2.this[System.Range].get", "error4").
WithLocation
(50, 13)
1485
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Base1.Count.get", "error3").
WithLocation
(73, 28),
1488
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Base1.Count.get", "error3").
WithLocation
(73, 28),
1491
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Base1.this[int].get", "error2").
WithLocation
(73, 28),
1495
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Base1.Count.get", "error3").
WithLocation
(74, 28),
1498
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Base1.Count.get", "error3").
WithLocation
(74, 28),
1501
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Base1.this[int].get", "error2").
WithLocation
(74, 28),
1504
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "..0").WithArguments("Base1.Count.get", "error3").
WithLocation
(74, 29),
1507
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "..0").WithArguments("Base1.Slice(int, int)", "error1").
WithLocation
(74, 29),
1511
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Base2.Length.get", "error6").
WithLocation
(75, 28),
1514
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[0]").WithArguments("Base2.this[System.Index].get", "error4").
WithLocation
(75, 28),
1518
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Base2.Length.get", "error6").
WithLocation
(76, 28),
1521
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "[..0]").WithArguments("Base2.this[System.Index].get", "error4").
WithLocation
(76, 28),
1524
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "..0").WithArguments("Base2.this[System.Range].get", "error5").
WithLocation
(76, 29),
1528
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test1()[^1]").WithArguments("Base1.Count.get", "error3").
WithLocation
(78, 13),
1531
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test1()[^1]").WithArguments("Base1.this[int].get", "error2").
WithLocation
(78, 13),
1535
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test1()[..0]").WithArguments("Base1.Count.get", "error3").
WithLocation
(79, 13),
1538
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test1()[..0]").WithArguments("Base1.Slice(int, int)", "error1").
WithLocation
(79, 13),
1542
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test2()[^1]").WithArguments("Base2.this[System.Index].get", "error4").
WithLocation
(80, 13),
1546
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new Test2()[..0]").WithArguments("Base2.this[System.Range].get", "error5").
WithLocation
(81, 13)
1572
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, "..").
WithLocation
(6, 23),
1575
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, "..").
WithLocation
(7, 29),
1578
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, "..").
WithLocation
(8, 20),
1581
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, "..").
WithLocation
(9, 18),
1584
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, "..").
WithLocation
(11, 24),
1587
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, "..").
WithLocation
(12, 27)
1656
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[0]").WithArguments("Test1").
WithLocation
(6, 28),
1659
Diagnostic(ErrorCode.ERR_BadIndexLHS, "new Test1()[0]").WithArguments("Test1").
WithLocation
(7, 13));
1765
Diagnostic(ErrorCode.ERR_ObjectProhibited, "[42]").WithArguments("Test1.this[System.Index]").
WithLocation
(2, 38),
1768
Diagnostic(ErrorCode.ERR_ObjectProhibited, "new Test1()[0]").WithArguments("Test1.this[System.Index]").
WithLocation
(2, 44)
1832
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[42]").WithArguments("Test1").
WithLocation
(2, 38),
1835
Diagnostic(ErrorCode.ERR_BadIndexLHS, "new Test1()[0]").WithArguments("Test1").
WithLocation
(2, 44)
1858
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "[0]").WithArguments("Test1.this[System.Index]").
WithLocation
(4, 20),
1861
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "new Test1()[^1]").WithArguments("Test1.this[System.Index]").
WithLocation
(5, 5)
1884
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "[0]").WithArguments("Test1.this[System.Index]").
WithLocation
(4, 20),
1887
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "new Test1()[^1]").WithArguments("Test1.this[System.Index]").
WithLocation
(5, 5)
1910
Diagnostic(ErrorCode.ERR_BadArgType, "[0]").WithArguments("1", "System.Index", "int").
WithLocation
(4, 20),
1913
Diagnostic(ErrorCode.ERR_BadArgType, "^1").WithArguments("1", "System.Index", "int").
WithLocation
(5, 17)
1936
Diagnostic(ErrorCode.ERR_BadArgType, "[0]").WithArguments("1", "System.Index", "long").
WithLocation
(4, 20),
1939
Diagnostic(ErrorCode.ERR_BadArgType, "^1").WithArguments("1", "System.Index", "long").
WithLocation
(5, 17)
1962
Diagnostic(ErrorCode.ERR_BadArgType, "[0]").WithArguments("1", "System.Index", "long").
WithLocation
(4, 20),
1965
Diagnostic(ErrorCode.ERR_BadArgType, "^1").WithArguments("1", "System.Index", "long").
WithLocation
(5, 17)
1988
Diagnostic(ErrorCode.ERR_BadArgType, "[0]").WithArguments("1", "System.Index", "int").
WithLocation
(4, 20),
1991
Diagnostic(ErrorCode.ERR_BadArgType, "^1").WithArguments("1", "System.Index", "int").
WithLocation
(5, 17)
2014
Diagnostic(ErrorCode.ERR_BadAccess, "[0]").WithArguments("Test1.this[System.Index]").
WithLocation
(4, 20),
2017
Diagnostic(ErrorCode.ERR_BadAccess, "new Test1()[^1]").WithArguments("Test1.this[System.Index]").
WithLocation
(5, 5)
2042
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "..var p").WithArguments("Test1.this[System.Range]").
WithLocation
(4, 21),
2045
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "new Test1()[..]").WithArguments("Test1.this[System.Range]").
WithLocation
(6, 5)
2070
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "..var p").WithArguments("Test1.this[System.Range]").
WithLocation
(4, 21),
2073
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "new Test1()[..]").WithArguments("Test1.this[System.Range]").
WithLocation
(6, 5)
2098
Diagnostic(ErrorCode.ERR_BadArgType, "..var p").WithArguments("1", "System.Range", "int").
WithLocation
(4, 21),
2101
Diagnostic(ErrorCode.ERR_BadArgType, "..").WithArguments("1", "System.Range", "int").
WithLocation
(6, 17)
2126
Diagnostic(ErrorCode.ERR_BadArgType, "..var p").WithArguments("1", "System.Range", "int").
WithLocation
(4, 21),
2129
Diagnostic(ErrorCode.ERR_BadArgType, "..").WithArguments("1", "System.Range", "int").
WithLocation
(6, 17)
2154
Diagnostic(ErrorCode.ERR_BadArgType, "..var p").WithArguments("1", "System.Range", "int").
WithLocation
(4, 21),
2157
Diagnostic(ErrorCode.ERR_BadArgType, "..").WithArguments("1", "System.Range", "int").
WithLocation
(6, 17)
2182
Diagnostic(ErrorCode.ERR_BadArgType, "..var p").WithArguments("1", "System.Range", "int").
WithLocation
(4, 21),
2185
Diagnostic(ErrorCode.ERR_BadArgType, "..").WithArguments("1", "System.Range", "int").
WithLocation
(6, 17)
2210
Diagnostic(ErrorCode.ERR_BadArgType, "..var p").WithArguments("1", "System.Range", "int").
WithLocation
(4, 21),
2213
Diagnostic(ErrorCode.ERR_BadArgType, "..").WithArguments("1", "System.Range", "int").
WithLocation
(6, 17)
2238
Diagnostic(ErrorCode.ERR_BadArgType, "..var p").WithArguments("1", "System.Range", "int").
WithLocation
(4, 21),
2241
Diagnostic(ErrorCode.ERR_BadArgType, "..").WithArguments("1", "System.Range", "int").
WithLocation
(6, 17)
2648
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is [] and [1]").WithArguments("int[]").
WithLocation
(7, 13),
2651
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is {Length:0} and [1]").WithArguments("int[]").
WithLocation
(9, 13),
2654
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is [1,2,3] and [1,2,4]").WithArguments("int[]").
WithLocation
(11, 13),
2657
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is ([>0]) and ([<0])").WithArguments("int[]").
WithLocation
(13, 13),
2660
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is [>0] and [<0]").WithArguments("int[]").
WithLocation
(15, 13),
2663
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is {Length:-1}").WithArguments("int[]").
WithLocation
(17, 13),
2666
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is [.., >0] and [<0]").WithArguments("int[]").
WithLocation
(18, 13),
2668
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "new { a } is { a.Length:-1 }").WithArguments("<anonymous type: int[] a>").
WithLocation
(20, 13),
2671
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is [..{ Length: -1 }]").WithArguments("int[]").
WithLocation
(21, 13),
2674
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is [..{ Length: < -1 }]").WithArguments("int[]").
WithLocation
(22, 13),
2677
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is [..{ Length: <= -1 }]").WithArguments("int[]").
WithLocation
(23, 13),
2680
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is [_, _, ..{ Length: int.MaxValue - 1 }]").WithArguments("int[]").
WithLocation
(26, 13),
2683
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is [_, _, ..{ Length: >= int.MaxValue - 1 }]").WithArguments("int[]").
WithLocation
(28, 13),
2686
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is [_, _, ..{ Length: > int.MaxValue - 1 }]").WithArguments("int[]").
WithLocation
(30, 13)
2746
Diagnostic(ErrorCode.ERR_BadIndexLHS, "t[^1]").WithArguments("T").
WithLocation
(20, 13),
2749
Diagnostic(ErrorCode.ERR_BadIndexLHS, "t[^1]").WithArguments("T").
WithLocation
(26, 13),
2752
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "t is { Count: -1 }").WithArguments("T").
WithLocation
(30, 13),
2755
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "new { t } is { t.Count: -1 }").WithArguments("<anonymous type: T t>").
WithLocation
(31, 13),
2758
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "t is { Length: -1 }").WithArguments("T").
WithLocation
(36, 13),
2761
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "new { t } is { t.Length: -1 }").WithArguments("<anonymous type: T t>").
WithLocation
(37, 13),
2764
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "t is { Length: -1 }").WithArguments("T").
WithLocation
(42, 13),
2767
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "new { t } is { t.Length: -1 }").WithArguments("<anonymous type: T t>").
WithLocation
(44, 13)
2793
Diagnostic(ErrorCode.WRN_IsPatternAlways, "new S() is [..var y]").WithArguments("S").
WithLocation
(2, 5),
2796
Diagnostic(ErrorCode.WRN_IsPatternAlways, "new S() is [..]").WithArguments("S").
WithLocation
(5, 5),
2799
Diagnostic(ErrorCode.WRN_IsPatternAlways, "new S() is [..[..]]").WithArguments("S").
WithLocation
(6, 5),
2802
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "new S() is not [..]").WithArguments("S").
WithLocation
(7, 5)
2853
Diagnostic(ErrorCode.ERR_EscapeVariable, "list").WithArguments("list").
WithLocation
(15, 35),
2856
Diagnostic(ErrorCode.ERR_EscapeVariable, "element").WithArguments("element").
WithLocation
(22, 17),
2859
Diagnostic(ErrorCode.ERR_EscapeVariable, "slice").WithArguments("slice").
WithLocation
(23, 17),
2862
Diagnostic(ErrorCode.ERR_EscapeVariable, "list").WithArguments("list").
WithLocation
(24, 17));
2889
Diagnostic(ErrorCode.ERR_NoImplicitConv, "a").WithArguments("int[]", "int").
WithLocation
(7, 25));
3005
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "y").
WithLocation
(8, 26),
3008
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "z").
WithLocation
(8, 35),
3011
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "x").
WithLocation
(8, 38),
3014
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(8, 46),
3017
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(8, 49),
3020
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(8, 52),
3023
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[not {} y, .. not {} z] x").
WithLocation
(9, 18),
3026
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "y").
WithLocation
(9, 26),
3029
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "z").
WithLocation
(9, 39),
3032
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(9, 53),
3035
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(9, 56)
3065
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(7, 19),
3068
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(7, 22),
3071
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(7, 25),
3074
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is [not {} y, .. not {} z] x").WithArguments("int[]").
WithLocation
(13, 13),
3077
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "y").
WithLocation
(13, 26),
3080
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "z").
WithLocation
(13, 39),
3083
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(16, 19),
3086
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(16, 22),
3089
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(16, 25)
3289
Diagnostic(ErrorCode.ERR_NoTypeDef, "[var item]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 18),
3292
Diagnostic(ErrorCode.ERR_NoTypeDef, "[var item]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 18),
3295
Diagnostic(ErrorCode.ERR_NoTypeDef, "[..var rest]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 18),
3298
Diagnostic(ErrorCode.ERR_NoTypeDef, "[..var rest]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 18),
3301
Diagnostic(ErrorCode.ERR_NoTypeDef, "..var rest").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 19),
3304
Diagnostic(ErrorCode.ERR_NoTypeDef, "..var rest").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 19),
3307
Diagnostic(ErrorCode.ERR_NoTypeDef, "c[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 21),
3310
Diagnostic(ErrorCode.ERR_NoTypeDef, "c[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 21),
3313
Diagnostic(ErrorCode.ERR_NoTypeDef, "c[1..^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(9, 21),
3316
Diagnostic(ErrorCode.ERR_NoTypeDef, "c[1..^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(9, 21)
3384
Diagnostic(ErrorCode.ERR_NoTypeDef, "[var item]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 10),
3387
Diagnostic(ErrorCode.ERR_NoTypeDef, "[..var slice]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 29),
3390
Diagnostic(ErrorCode.ERR_NoTypeDef, "..var slice").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 30),
3393
Diagnostic(ErrorCode.ERR_NoTypeDef, "c[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 17),
3396
Diagnostic(ErrorCode.ERR_NoTypeDef, "c[..]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 18)
3487
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "[var x]").WithArguments("C.Length").
WithLocation
(2, 16),
3490
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "[var x]").WithArguments("C.Length").
WithLocation
(2, 16),
3493
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "[var x]").WithArguments("C.this[int]").
WithLocation
(2, 16),
3496
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "[.. var y]").WithArguments("C.Length").
WithLocation
(3, 16),
3499
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "[.. var y]").WithArguments("C.Length").
WithLocation
(3, 16),
3502
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "[.. var y]").WithArguments("C.this[int]").
WithLocation
(3, 16),
3505
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, ".. var y").WithArguments("C.Length").
WithLocation
(3, 17),
3508
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, ".. var y").WithArguments("C.Slice(int, int)").
WithLocation
(3, 17),
3511
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C().Slice(0, 0)").WithArguments("C.Slice(int, int)").
WithLocation
(4, 1),
3514
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()[^1]").WithArguments("C.Length").
WithLocation
(5, 5),
3517
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()[^1]").WithArguments("C.this[int]").
WithLocation
(5, 5),
3520
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()[..]").WithArguments("C.Length").
WithLocation
(6, 5),
3523
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()[..]").WithArguments("C.Slice(int, int)").
WithLocation
(6, 5)
3561
Diagnostic(ErrorCode.ERR_NoTypeDef, "[var x]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 16),
3564
Diagnostic(ErrorCode.ERR_NoTypeDef, "[var x]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 16),
3567
Diagnostic(ErrorCode.ERR_NoTypeDef, "[.. var y]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(3, 16),
3570
Diagnostic(ErrorCode.ERR_NoTypeDef, "[.. var y]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(3, 16),
3573
Diagnostic(ErrorCode.ERR_NoTypeDef, ".. var y").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(3, 17),
3576
Diagnostic(ErrorCode.ERR_NoTypeDef, ".. var y").WithArguments("Missing2", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(3, 17),
3579
Diagnostic(ErrorCode.ERR_NoTypeDef, "new C().Slice").WithArguments("Missing2", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 1),
3582
Diagnostic(ErrorCode.ERR_NoTypeDef, "new C()[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(5, 5),
3585
Diagnostic(ErrorCode.ERR_NoTypeDef, "new C()[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(5, 5),
3588
Diagnostic(ErrorCode.ERR_NoTypeDef, "new C()[..]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 5),
3591
Diagnostic(ErrorCode.ERR_NoTypeDef, "new C()[..]").WithArguments("Missing2", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 5)
3714
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[var item, ..var slice]").WithArguments("System.Index").
WithLocation
(7, 25),
3717
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "..var slice").WithArguments("System.Range").
WithLocation
(7, 36)
3780
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Length.get", "this").
WithLocation
(11, 13),
3783
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.this[int].get", "this").
WithLocation
(11, 13),
3786
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Length.get", "this").
WithLocation
(12, 13),
3789
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Slice(int, int)", "this").
WithLocation
(12, 13)
3836
Diagnostic(ErrorCode.ERR_PropertyCantHaveVoidType, "Length").WithArguments("C.Length").
WithLocation
(4, 17),
3839
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[1]").WithArguments("C").
WithLocation
(8, 21),
3842
Diagnostic(ErrorCode.ERR_BadArgType, "[1]").WithArguments("1", "System.Index", "int").
WithLocation
(8, 21),
3845
Diagnostic(ErrorCode.ERR_BadArgType, "^1").WithArguments("1", "System.Index", "int").
WithLocation
(9, 18)
3869
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[1]").WithArguments("C").
WithLocation
(9, 21),
3872
Diagnostic(ErrorCode.ERR_BadArgType, "[1]").WithArguments("1", "System.Index", "int").
WithLocation
(9, 21),
3875
Diagnostic(ErrorCode.ERR_BadArgType, "^1").WithArguments("1", "System.Index", "int").
WithLocation
(10, 18)
3899
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[1]").WithArguments("C").
WithLocation
(9, 21)
3930
Diagnostic(ErrorCode.ERR_BadArgType, ".._").WithArguments("1", "System.Range", "int").
WithLocation
(11, 22),
3933
Diagnostic(ErrorCode.ERR_BadArgType, "..var unused").WithArguments("1", "System.Range", "int").
WithLocation
(12, 22),
3936
Diagnostic(ErrorCode.ERR_BadArgType, "..var used").WithArguments("1", "System.Range", "int").
WithLocation
(13, 22),
3939
Diagnostic(ErrorCode.ERR_BadArgType, "..").WithArguments("1", "System.Range", "int").
WithLocation
(17, 18)
4002
Diagnostic(ErrorCode.ERR_BadArgType, "[var item]").WithArguments("1", "System.Index", "int").
WithLocation
(10, 29),
4005
Diagnostic(ErrorCode.ERR_BadArgType, "[var item2]").WithArguments("1", "System.Index", "int?").
WithLocation
(13, 30),
4008
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Value").WithArguments("int", "Value").
WithLocation
(14, 19),
4011
Diagnostic(ErrorCode.ERR_BadArgType, "^1").WithArguments("1", "System.Index", "int?").
WithLocation
(15, 36),
4014
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Value").WithArguments("int", "Value").
WithLocation
(16, 16)
4059
Diagnostic(ErrorCode.ERR_UseDefViolation, "item").WithArguments("item").
WithLocation
(13, 13),
4062
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "item2").
WithLocation
(16, 13),
4065
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "item2").
WithLocation
(18, 13),
4068
Diagnostic(ErrorCode.ERR_UseDefViolation, "item2").WithArguments("item2").
WithLocation
(18, 13),
4071
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item3").
WithLocation
(21, 13),
4074
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item3").
WithLocation
(23, 13),
4077
Diagnostic(ErrorCode.ERR_UseDefViolation, "item3").WithArguments("item3").
WithLocation
(23, 13),
4080
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item4").
WithLocation
(31, 13),
4083
Diagnostic(ErrorCode.ERR_UseDefViolation, "item4").WithArguments("item4").
WithLocation
(31, 13)
4146
Diagnostic(ErrorCode.ERR_UseDefViolation, "item").WithArguments("item").
WithLocation
(14, 13),
4149
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "item2").
WithLocation
(17, 13),
4152
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "item2").
WithLocation
(19, 13),
4155
Diagnostic(ErrorCode.ERR_UseDefViolation, "item2").WithArguments("item2").
WithLocation
(19, 13),
4158
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item3").
WithLocation
(22, 13),
4161
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item3").
WithLocation
(24, 13),
4164
Diagnostic(ErrorCode.ERR_UseDefViolation, "item3").WithArguments("item3").
WithLocation
(24, 13),
4167
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item4").
WithLocation
(32, 13),
4170
Diagnostic(ErrorCode.ERR_UseDefViolation, "item4").WithArguments("item4").
WithLocation
(32, 13)
4229
Diagnostic(ErrorCode.ERR_UseDefViolation, "item").WithArguments("item").
WithLocation
(10, 13),
4232
Diagnostic(ErrorCode.ERR_UseDefViolation, "item2").WithArguments("item2").
WithLocation
(15, 13),
4235
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item3").
WithLocation
(18, 13),
4238
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item3").
WithLocation
(20, 13),
4241
Diagnostic(ErrorCode.ERR_UseDefViolation, "item3").WithArguments("item3").
WithLocation
(20, 13),
4244
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item4").
WithLocation
(28, 13),
4247
Diagnostic(ErrorCode.ERR_UseDefViolation, "item4").WithArguments("item4").
WithLocation
(28, 13)
4291
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(13, 13)
4343
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest").WithArguments("rest").
WithLocation
(14, 13),
4346
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "rest2").
WithLocation
(19, 13),
4349
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest2").WithArguments("rest2").
WithLocation
(19, 13),
4352
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "rest3").
WithLocation
(24, 13),
4355
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest3").WithArguments("rest3").
WithLocation
(24, 13),
4358
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "rest4").
WithLocation
(32, 13),
4361
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest4").WithArguments("rest4").
WithLocation
(32, 13)
4473
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest").WithArguments("rest").
WithLocation
(15, 13),
4476
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "rest2").
WithLocation
(20, 13),
4479
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest2").WithArguments("rest2").
WithLocation
(20, 13),
4482
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "rest3").
WithLocation
(25, 13),
4485
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest3").WithArguments("rest3").
WithLocation
(25, 13),
4488
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "rest4").
WithLocation
(33, 13),
4491
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest4").WithArguments("rest4").
WithLocation
(33, 13)
4533
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "rest").
WithLocation
(13, 13),
4536
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest").WithArguments("rest").
WithLocation
(13, 13),
4539
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "rest2").
WithLocation
(18, 13),
4542
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest2").WithArguments("rest2").
WithLocation
(18, 13),
4545
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "rest3").
WithLocation
(23, 13),
4548
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest3").WithArguments("rest3").
WithLocation
(23, 13),
4551
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "rest4").
WithLocation
(28, 13),
4554
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest4").WithArguments("rest4").
WithLocation
(28, 13)
4599
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(14, 13)
4632
Diagnostic(ErrorCode.ERR_UseDefViolation, "item").WithArguments("item").
WithLocation
(17, 13),
4635
Diagnostic(ErrorCode.ERR_UseDefViolation, "rest").WithArguments("rest").
WithLocation
(18, 13)
4698
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[var item, ..var rest]").WithArguments("C").
WithLocation
(6, 24),
4701
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[var item, ..var rest]").WithArguments("C").
WithLocation
(6, 24),
4704
Diagnostic(ErrorCode.ERR_BadIndexLHS, "..var rest").WithArguments("C").
WithLocation
(6, 35),
4707
Diagnostic(ErrorCode.ERR_BadIndexLHS, "new C()[^1]").WithArguments("C").
WithLocation
(7, 13),
4710
Diagnostic(ErrorCode.ERR_BadIndexLHS, "new C()[..]").WithArguments("C").
WithLocation
(8, 13)
4925
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[var item, ..var rest]").WithArguments("C").
WithLocation
(6, 24),
4928
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[var item, ..var rest]").WithArguments("C").
WithLocation
(6, 24),
4931
Diagnostic(ErrorCode.ERR_BadIndexLHS, "..var rest").WithArguments("C").
WithLocation
(6, 35)
5034
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("null").
WithLocation
(13, 7),
5037
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("[null]").
WithLocation
(20, 7),
5040
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("[not null]").
WithLocation
(27, 7),
5043
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("[null]").
WithLocation
(42, 7),
5046
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("[not null]").
WithLocation
(49, 7),
5049
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("[_, null]").
WithLocation
(64, 7),
5052
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("[null, _]").
WithLocation
(72, 7),
5055
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Length: 0 }").
WithLocation
(80, 7),
5058
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("[null]").
WithLocation
(86, 7)
5128
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("[.. null, _]").
WithLocation
(20, 18),
5131
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("[.. not null, _]").
WithLocation
(27, 18)
5169
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(12, 18)
5264
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(27, 18),
5267
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(33, 18),
5270
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("_").
WithLocation
(40, 18),
5273
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("_").
WithLocation
(46, 18),
5276
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("_").
WithLocation
(58, 18),
5279
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("_").
WithLocation
(64, 18),
5282
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("_").
WithLocation
(70, 18)
5314
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, "..").
WithLocation
(16, 24)
5335
Diagnostic(ErrorCode.ERR_UnsupportedTypeForListPattern, "[_, .._]").WithArguments("dynamic").
WithLocation
(7, 18),
5338
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, ".._").WithArguments("System.Range").
WithLocation
(7, 22)
5381
Diagnostic(ErrorCode.ERR_NoTypeDef, "[var item]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 18),
5384
Diagnostic(ErrorCode.ERR_NoTypeDef, "[..var rest]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 18),
5387
Diagnostic(ErrorCode.ERR_NoTypeDef, "..var rest").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 19),
5390
Diagnostic(ErrorCode.ERR_NoTypeDef, "c[^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 21),
5393
Diagnostic(ErrorCode.ERR_NoTypeDef, "c[1..^1]").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(9, 21)
5419
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(5, 21),
5422
Diagnostic(ErrorCode.ERR_BadArgRef, "[var item, ..var rest]").WithArguments("1", "ref").
WithLocation
(10, 21),
5425
Diagnostic(ErrorCode.ERR_BadArgRef, "..var rest").WithArguments("1", "ref").
WithLocation
(10, 32),
5428
Diagnostic(ErrorCode.ERR_BadArgRef, "^1").WithArguments("1", "ref").
WithLocation
(11, 18),
5431
Diagnostic(ErrorCode.ERR_BadArgRef, "1..^1").WithArguments("1", "ref").
WithLocation
(12, 18)
5458
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(6, 21),
5461
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(7, 21),
5464
Diagnostic(ErrorCode.ERR_BadArgRef, "[var item, ..var rest]").WithArguments("1", "ref").
WithLocation
(11, 21),
5467
Diagnostic(ErrorCode.ERR_BadArgRef, "..var rest").WithArguments("1", "ref").
WithLocation
(11, 32),
5470
Diagnostic(ErrorCode.ERR_BadArgRef, "^1").WithArguments("1", "ref").
WithLocation
(12, 18),
5473
Diagnostic(ErrorCode.ERR_BadArgRef, "1..^1").WithArguments("1", "ref").
WithLocation
(13, 18)
5499
Diagnostic(ErrorCode.ERR_BadArgType, "[var item, ..var rest]").WithArguments("1", "System.Index", "in int").
WithLocation
(10, 21),
5502
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "..var rest").WithArguments("System.Range").
WithLocation
(10, 32),
5505
Diagnostic(ErrorCode.ERR_BadArgType, "^1").WithArguments("1", "System.Index", "in int").
WithLocation
(11, 18),
5508
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "1..^1").WithArguments("System.Range").
WithLocation
(12, 18)
5695
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsIsMatch, "array is [_, ..]").
WithLocation
(9, 44)
5744
Diagnostic(ErrorCode.ERR_BadArgType, "..var y").WithArguments("1", "System.Range", "int").
WithLocation
(2, 17),
5747
Diagnostic(ErrorCode.ERR_BadArgType, "..").WithArguments("1", "System.Range", "int").
WithLocation
(3, 13)
5807
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Count: 2 }").
WithLocation
(2, 13),
5810
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Count: 1 }").
WithLocation
(9, 13),
5813
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Count: 1 }").
WithLocation
(16, 13)
5820
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Count: 2 }").
WithLocation
(2, 13),
5823
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[_]").WithArguments("System.Index").
WithLocation
(5, 5),
5826
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[_]").WithArguments("System.Index", "GetOffset").
WithLocation
(5, 5),
5829
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Count: 1 }").
WithLocation
(9, 13),
5832
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[ _, _, .. ]").WithArguments("System.Index").
WithLocation
(13, 5),
5835
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[ _, _, .. ]").WithArguments("System.Index", "GetOffset").
WithLocation
(13, 5),
5838
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Count: 1 }").
WithLocation
(16, 13),
5841
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[_, _]").WithArguments("System.Index").
WithLocation
(20, 5),
5844
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[_, _]").WithArguments("System.Index", "GetOffset").
WithLocation
(20, 5),
5847
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[_, _, ..]").WithArguments("System.Index").
WithLocation
(21, 5),
5850
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[_, _, ..]").WithArguments("System.Index", "GetOffset").
WithLocation
(21, 5),
5853
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[_, _]").WithArguments("System.Index").
WithLocation
(28, 5),
5856
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[_, _]").WithArguments("System.Index", "GetOffset").
WithLocation
(28, 5)
5894
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Count: 0 }").
WithLocation
(2, 13),
5897
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("[0]").
WithLocation
(8, 13)
5943
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("[null]").
WithLocation
(3, 13),
5946
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("null").
WithLocation
(18, 13)
5970
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("[_, 0]").
WithLocation
(2, 13)
5994
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("[0, _]").
WithLocation
(2, 13)
6033
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("[0]").
WithLocation
(2, 13),
6036
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("[_, _, 0]").
WithLocation
(9, 13),
6039
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("[1, _, 0]").
WithLocation
(16, 13)
6063
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Length: 0 }").
WithLocation
(2, 13)
6131
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(2, 13)
6155
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[..]").WithArguments("C").
WithLocation
(4, 5),
6158
Diagnostic(ErrorCode.ERR_BadArgType, "[..]").WithArguments("1", "System.Index", "int").
WithLocation
(4, 5),
6161
Diagnostic(ErrorCode.ERR_BadArgType, "^1").WithArguments("1", "System.Index", "int").
WithLocation
(7, 13)
6185
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[..]").WithArguments("C").
WithLocation
(4, 5),
6188
Diagnostic(ErrorCode.ERR_BadArgType, "[..]").WithArguments("1", "System.Index", "int").
WithLocation
(4, 5),
6191
Diagnostic(ErrorCode.ERR_BadArgType, "^1").WithArguments("1", "System.Index", "int").
WithLocation
(7, 13)
6215
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[42]").
WithLocation
(9, 18)
6257
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "([42], [43])").
WithLocation
(9, 18));
6317
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "{ Length: 1 } and [1, ..]").
WithLocation
(9, 18),
6320
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "{ Length: 1 } and [.., 1]").
WithLocation
(15, 18)
6344
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[1, 2, 3]").
WithLocation
(9, 18)
6491
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[var unreachable]").
WithLocation
(10, 18));
6522
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[var unreachable]").
WithLocation
(10, 18),
6525
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[var unreachable]").
WithLocation
(17, 18));
6623
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[{Y:0, X:> 0}]").
WithLocation
(12, 18),
6626
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[..[{F.Y: 0, X:> 0}]]").
WithLocation
(18, 18)
6662
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[(_, { X: 0 })]").
WithLocation
(20, 18));
6693
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "[_]").
WithLocation
(11, 13),
6696
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "[_]").
WithLocation
(18, 13)
6766
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "[var unreachable]").
WithLocation
(12, 13));
6819
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "[var unreachable, var unreachable2]").
WithLocation
(14, 13));
6843
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[[42]]").
WithLocation
(9, 18));
7092
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[Derived s]").
WithLocation
(11, 18),
7095
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[Derived s]").
WithLocation
(19, 18),
7098
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[Derived s]").
WithLocation
(27, 18),
7101
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[int and 1]").
WithLocation
(34, 18),
7104
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[ValueType and int and 1]").
WithLocation
(41, 18),
7107
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[Derived s]").
WithLocation
(49, 18),
7110
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[Derived { F1: 1 } s]").
WithLocation
(61, 18),
7113
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[Derived { P1: 1 } s]").
WithLocation
(73, 18),
7116
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[Derived(1, _) s]").
WithLocation
(85, 18),
7119
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[Derived { F3: (1, _) } s]").
WithLocation
(95, 18),
7122
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[Base and I2]").
WithLocation
(103, 18),
7125
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[I2 and Base]").
WithLocation
(111, 18),
7128
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "Derived and [Derived s]").
WithLocation
(120, 18),
7131
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "Derived and [Derived s]").
WithLocation
(136, 18),
7134
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[[Derived]]").
WithLocation
(145, 18)
7160
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[_]").
WithLocation
(11, 18));
7238
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, case2).
WithLocation
(9, 18)
7262
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[..[var v]]").
WithLocation
(9, 18));
7297
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[..[10],20]").
WithLocation
(9, 10)
7328
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[.. null]").
WithLocation
(15, 18)
7497
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is { Length: -1 }").WithArguments("int[]").
WithLocation
(3, 5),
7500
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(7, 7),
7503
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "{ Length: -1 }").
WithLocation
(9, 5),
7506
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Length: 0 }").
WithLocation
(12, 7),
7509
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Length: 0 }").
WithLocation
(17, 7),
7512
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Length: 0 }").
WithLocation
(22, 7),
7515
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "{ Length: -1 }").
WithLocation
(24, 5)
7536
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("not null").
WithLocation
(5, 7),
7539
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "{ Length: -1 }").
WithLocation
(8, 5)
7561
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is { Length: -1 } or { Length: -1 }").WithArguments("int[]").
WithLocation
(3, 5),
7564
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "{ Length: -1 }").
WithLocation
(7, 5),
7567
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "{ Length: -1 }").
WithLocation
(8, 5)
7587
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "a is { Length: < 0 }").WithArguments("int[]").
WithLocation
(3, 5),
7590
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(5, 7),
7593
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "{ Length: < 0 }").
WithLocation
(7, 5)
7613
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "{ Length: <= 0 }").
WithLocation
(6, 5)
7820
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Length: 2, Count: 0 }").
WithLocation
(2, 13)
7841
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("C").
WithLocation
(2, 16),
7844
Diagnostic(ErrorCode.ERR_BadArgType, "[]").WithArguments("1", "System.Index", "int").
WithLocation
(2, 16),
7847
Diagnostic(ErrorCode.ERR_BadArgType, "^1").WithArguments("1", "System.Index", "int").
WithLocation
(3, 13)
7877
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[var x]").WithArguments("System.Index").
WithLocation
(12, 21),
7880
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[var x]").WithArguments("System.Index", "GetOffset").
WithLocation
(12, 21),
7883
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[.. var y]").WithArguments("System.Index").
WithLocation
(12, 40),
7886
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[.. var y]").WithArguments("System.Index", "GetOffset").
WithLocation
(12, 40),
7889
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, ".. var y").WithArguments("System.Range").
WithLocation
(12, 41),
7892
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, ".. var y").WithArguments("System.Range", "get_Start").
WithLocation
(12, 41),
7895
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, ".. var y").WithArguments("System.Range", "get_End").
WithLocation
(12, 41),
7898
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, ".. var y").WithArguments("System.Index", "GetOffset").
WithLocation
(12, 41)
7965
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(7, 23),
7968
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(8, 23)
7991
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[var x, .. var y]").WithArguments("C").
WithLocation
(2, 16),
7994
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "[var x, .. var y]").WithArguments("C.this[System.Index]").
WithLocation
(2, 16),
7997
Diagnostic(ErrorCode.ERR_PropertyLacksGet, ".. var y").WithArguments("C.this[System.Range]").
WithLocation
(2, 24),
8000
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "new C()[^1]").WithArguments("C.this[System.Index]").
WithLocation
(3, 5),
8003
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "new C()[..]").WithArguments("C.this[System.Range]").
WithLocation
(4, 5)
8026
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "[var x, .. var y]").WithArguments("C.this[System.Index]").
WithLocation
(2, 16),
8029
Diagnostic(ErrorCode.ERR_PropertyLacksGet, ".. var y").WithArguments("C.this[System.Range]").
WithLocation
(2, 24),
8032
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "new C()[^1]").WithArguments("C.this[System.Index]").
WithLocation
(3, 5),
8035
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "new C()[..]").WithArguments("C.this[System.Range]").
WithLocation
(4, 5)
8207
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[var x]").WithArguments("System.Index").
WithLocation
(2, 16),
8210
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "[var x]").WithArguments("System.Index", "GetOffset").
WithLocation
(2, 16)
8527
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[var x, .. var y]").WithArguments("INotCountable").
WithLocation
(2, 34),
8530
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[var x, .. var y]").WithArguments("INotCountable").
WithLocation
(2, 34),
8533
Diagnostic(ErrorCode.ERR_BadIndexLHS, ".. var y").WithArguments("INotCountable").
WithLocation
(2, 42)
8585
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[var x, .. var y]").WithArguments("(int, int)").
WithLocation
(2, 15),
8588
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[var x, .. var y]").WithArguments("(int, int)").
WithLocation
(2, 15),
8591
Diagnostic(ErrorCode.ERR_BadIndexLHS, ".. var y").WithArguments("(int, int)").
WithLocation
(2, 23),
8594
Diagnostic(ErrorCode.ERR_BadArgType, "..var y2").WithArguments("1", "System.Range", "int").
WithLocation
(6, 16)
8623
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[1,2,3]").
WithLocation
(7, 10),
8626
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "[1,2,3]").
WithLocation
(15, 10)
8648
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("S").
WithLocation
(2, 16),
8651
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[..]").WithArguments("S").
WithLocation
(3, 16),
8654
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[0, .. var x, 1]").WithArguments("S").
WithLocation
(4, 16)
8673
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("S").
WithLocation
(2, 16),
8676
Diagnostic(ErrorCode.ERR_BadArgType, "[]").WithArguments("1", "System.Index", "int").
WithLocation
(2, 16)
8696
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("S").
WithLocation
(2, 16)
8716
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("S").
WithLocation
(2, 16)
8736
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("S").
WithLocation
(2, 16)
8756
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("S").
WithLocation
(2, 16)
8776
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("S").
WithLocation
(2, 16)
8796
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("S").
WithLocation
(2, 16)
8816
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("S").
WithLocation
(2, 16)
8836
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("S").
WithLocation
(2, 16),
8839
Diagnostic(ErrorCode.ERR_BadArgType, "[]").WithArguments("1", "System.Index", "int").
WithLocation
(2, 16)
8866
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("int", "int[]").
WithLocation
(4, 22),
8869
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[1]").WithArguments("bool").
WithLocation
(4, 27),
8872
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[1]").WithArguments("bool").
WithLocation
(4, 27),
8875
Diagnostic(ErrorCode.ERR_NoImplicitConv, "y").WithArguments("int", "int[]").
WithLocation
(8, 23),
8878
Diagnostic(ErrorCode.ERR_BadIndexLHS, ".. 1").WithArguments("bool").
WithLocation
(8, 29),
8881
Diagnostic(ErrorCode.ERR_NoImplicitConv, "z").WithArguments("bool", "bool[]").
WithLocation
(13, 23),
8884
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[true]").WithArguments("bool").
WithLocation
(13, 29),
8887
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[true]").WithArguments("bool").
WithLocation
(13, 29)
8916
Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i").
WithLocation
(7, 5),
8919
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, ".. 1").
WithLocation
(9, 24),
8922
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "int[]").
WithLocation
(9, 27)
8937
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Length: 1000 }").
WithLocation
(2, 7));
Semantics\PatternMatchingTests_Scope.cs (773)
71
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x14").WithArguments("x14").
WithLocation
(14, 52),
74
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x14").WithArguments("x14").
WithLocation
(24, 40));
175
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(14, 31),
178
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(16, 27),
181
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(21, 15),
184
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(26, 27),
187
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(33, 27),
190
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(39, 13),
193
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(39, 13),
196
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(59, 48),
199
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x11").WithArguments("x11").
WithLocation
(79, 15)
367
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(15, 9)
446
Diagnostic(ErrorCode.ERR_LocalDuplicate, "@i").WithArguments("i").
WithLocation
(13, 25),
449
Diagnostic(ErrorCode.ERR_UseDefViolation, "@i").WithArguments("i").
WithLocation
(13, 31)
551
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(14, 38),
554
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(16, 34),
557
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(14, 13),
560
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(21, 22),
563
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(26, 34),
566
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(33, 34),
569
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(39, 13),
572
Diagnostic(ErrorCode.WRN_UnreachableCode, "var").
WithLocation
(39, 9),
575
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(39, 13),
578
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(59, 55),
581
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x11").WithArguments("x11").
WithLocation
(79, 15),
584
Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").
WithLocation
(86, 9)
672
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(15, 9)
824
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(14, 37),
827
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(16, 33),
830
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(21, 21),
833
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(26, 33),
836
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(33, 33),
839
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(39, 13),
842
Diagnostic(ErrorCode.WRN_UnreachableCode, "var").
WithLocation
(39, 9),
845
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(39, 13),
848
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(59, 54),
851
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x11").WithArguments("x11").
WithLocation
(79, 15),
854
Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").
WithLocation
(86, 9)
941
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(15, 9)
1122
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(110, 13),
1125
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(36, 17),
1128
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(46, 25),
1131
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(52, 25),
1134
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(58, 13),
1137
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(66, 17),
1140
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(83, 19),
1143
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(84, 29),
1146
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(91, 13),
1149
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(109, 13),
1152
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(110, 17)
1245
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(17, 9)
1394
Diagnostic(ErrorCode.ERR_SemicolonExpected, "x1").
WithLocation
(12, 27),
1397
Diagnostic(ErrorCode.ERR_SemicolonExpected, "var").
WithLocation
(17, 27),
1400
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(12, 23),
1403
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(12, 23),
1406
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(12, 27),
1409
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(12, 32),
1412
Diagnostic(ErrorCode.WRN_UnreachableCode, "x1").
WithLocation
(12, 27),
1415
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(17, 23),
1418
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(17, 23),
1421
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(17, 36),
1424
Diagnostic(ErrorCode.WRN_UnreachableCode, "var").
WithLocation
(17, 27),
1427
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(27, 49),
1430
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(33, 74),
1433
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(44, 15),
1436
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(45, 15),
1439
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(47, 15),
1442
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(48, 15),
1445
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x12").WithArguments("x12").
WithLocation
(82, 15)
1452
Diagnostic(ErrorCode.ERR_SemicolonExpected, "x1").
WithLocation
(12, 27),
1455
Diagnostic(ErrorCode.ERR_SemicolonExpected, "var").
WithLocation
(17, 27),
1458
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(12, 23),
1461
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(12, 23),
1464
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(12, 27),
1467
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(12, 32),
1470
Diagnostic(ErrorCode.WRN_UnreachableCode, "x1").
WithLocation
(12, 27),
1473
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(17, 23),
1476
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(17, 23),
1479
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(17, 36),
1482
Diagnostic(ErrorCode.WRN_UnreachableCode, "var").
WithLocation
(17, 27),
1485
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(27, 49),
1488
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(33, 74),
1491
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(44, 15),
1494
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(45, 15),
1497
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(47, 15),
1500
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(48, 15),
1503
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(59, 58),
1506
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x10").WithArguments("x10").
WithLocation
(65, 58),
1509
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x11").WithArguments("x11").
WithLocation
(74, 58),
1512
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x12").WithArguments("x12").
WithLocation
(80, 58),
1515
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x12").WithArguments("x12").
WithLocation
(82, 15)
1725
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(25, 26),
1728
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(27, 15),
1731
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(35, 32),
1734
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(37, 15),
1737
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(45, 35),
1740
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u4").WithArguments("u4").
WithLocation
(47, 35),
1743
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(49, 32),
1746
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(49, 36),
1749
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(52, 15),
1752
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(53, 15),
1755
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(61, 35),
1758
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u5").WithArguments("u5").
WithLocation
(63, 35),
1761
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(66, 32),
1764
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(66, 36),
1767
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(69, 15),
1770
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(70, 15),
1773
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(78, 26),
1776
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(80, 15),
1779
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(87, 27),
1782
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(89, 27),
1785
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(91, 26),
1788
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(91, 31),
1791
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(93, 15),
1794
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(94, 15),
1797
Diagnostic(ErrorCode.ERR_NameNotInContext, "z8").WithArguments("z8").
WithLocation
(102, 15),
1800
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(112, 25),
1803
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(109, 25),
1806
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(114, 15),
1809
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(115, 15),
1812
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y10").WithArguments("y10").
WithLocation
(121, 24),
1815
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y11").WithArguments("y11").
WithLocation
(128, 23)
2033
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(18, 35),
2036
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u4").WithArguments("u4").
WithLocation
(20, 35),
2039
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(22, 32),
2042
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(22, 36),
2045
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(25, 15),
2048
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(26, 15),
2051
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(35, 35),
2054
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u5").WithArguments("u5").
WithLocation
(37, 35),
2057
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(40, 32),
2060
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(40, 36),
2063
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(43, 15),
2066
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(44, 15)
2169
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y1").WithArguments("y1").
WithLocation
(16, 47),
2172
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y3").WithArguments("y3").
WithLocation
(18, 47)
2179
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y1").WithArguments("y1").
WithLocation
(16, 47),
2182
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y2").WithArguments("y2").
WithLocation
(17, 47),
2185
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y3").WithArguments("y3").
WithLocation
(18, 47),
2188
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y4").WithArguments("y4").
WithLocation
(19, 36),
2191
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y5").WithArguments("y5").
WithLocation
(20, 43),
2194
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y6").WithArguments("y6").
WithLocation
(21, 34),
2197
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y7").WithArguments("y7").
WithLocation
(22, 36),
2200
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y8").WithArguments("y8").
WithLocation
(23, 36),
2203
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y10").WithArguments("y10").
WithLocation
(25, 32),
2206
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y9").WithArguments("y9").
WithLocation
(24, 34),
2209
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y11").WithArguments("y11").
WithLocation
(27, 39),
2212
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y12").WithArguments("y12").
WithLocation
(28, 36)
2305
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y1").WithArguments("y1").
WithLocation
(26, 47),
2308
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y3").WithArguments("y3").
WithLocation
(28, 47)
2315
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y1").WithArguments("y1").
WithLocation
(26, 47),
2318
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y2").WithArguments("y2").
WithLocation
(27, 47),
2321
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y3").WithArguments("y3").
WithLocation
(28, 47),
2324
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y4").WithArguments("y4").
WithLocation
(29, 36),
2327
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y5").WithArguments("y5").
WithLocation
(30, 43),
2330
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y6").WithArguments("y6").
WithLocation
(31, 34),
2333
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y7").WithArguments("y7").
WithLocation
(32, 36),
2336
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y8").WithArguments("y8").
WithLocation
(33, 36),
2339
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y10").WithArguments("y10").
WithLocation
(35, 32),
2342
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y9").WithArguments("y9").
WithLocation
(34, 34),
2345
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y11").WithArguments("y11").
WithLocation
(37, 39),
2348
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y12").WithArguments("y12").
WithLocation
(38, 36)
2413
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y3").WithArguments("y3").
WithLocation
(18, 47)
2467
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y1").WithArguments("y1").
WithLocation
(19, 24),
2470
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y2").WithArguments("y2").
WithLocation
(20, 24),
2473
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y3").WithArguments("y3").
WithLocation
(22, 23),
2476
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y4").WithArguments("y4").
WithLocation
(25, 24)
2534
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y1").WithArguments("y1").
WithLocation
(14, 24),
2537
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y2").WithArguments("y2").
WithLocation
(15, 24),
2540
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y3").WithArguments("y3").
WithLocation
(17, 23),
2543
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y4").WithArguments("y4").
WithLocation
(20, 24),
2546
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y5").WithArguments("y5").
WithLocation
(23, 24)
2675
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y1").WithArguments("y1").
WithLocation
(15, 47),
2678
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y2").WithArguments("y2").
WithLocation
(23, 36),
2681
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y3").WithArguments("y3").
WithLocation
(33, 40),
2684
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y4").WithArguments("y4").
WithLocation
(40, 34),
2687
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y5").WithArguments("y5").
WithLocation
(47, 36),
2690
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y6").WithArguments("y6").
WithLocation
(56, 36),
2693
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y7").WithArguments("y7").
WithLocation
(63, 34),
2696
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y8").WithArguments("y8").
WithLocation
(71, 31),
2699
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y9").WithArguments("y9").
WithLocation
(77, 37),
2702
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y10").WithArguments("y10").
WithLocation
(84, 36)
2775
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y2").WithArguments("y2").
WithLocation
(26, 45)
2782
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y1").WithArguments("y1").
WithLocation
(17, 47),
2785
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y2").WithArguments("y2").
WithLocation
(26, 45)
2896
Diagnostic(ErrorCode.ERR_SemicolonExpected, "x1").
WithLocation
(12, 33),
2899
Diagnostic(ErrorCode.ERR_SemicolonExpected, "var").
WithLocation
(18, 33),
2902
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(12, 29),
2905
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(12, 29),
2908
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(12, 33),
2911
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(12, 38),
2914
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(18, 29),
2917
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(18, 29),
2920
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(18, 42),
2923
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(30, 30),
2926
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(37, 52),
2929
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(51, 15),
2932
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(55, 15)
2939
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(12, 29),
2942
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(12, 29),
2945
Diagnostic(ErrorCode.ERR_SemicolonExpected, "x1").
WithLocation
(12, 33),
2948
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(12, 33),
2951
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(12, 38),
2954
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(18, 29),
2957
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(18, 29),
2960
Diagnostic(ErrorCode.ERR_SemicolonExpected, "var").
WithLocation
(18, 33),
2963
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(18, 42),
2966
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(30, 30),
2969
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(37, 52),
2972
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(51, 15),
2975
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(55, 15),
2978
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x11").WithArguments("x11").
WithLocation
(63, 39),
2981
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x12").WithArguments("x12").
WithLocation
(70, 39)
3102
Diagnostic(ErrorCode.ERR_SemicolonExpected, "x1").
WithLocation
(9, 33),
3105
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(9, 36),
3108
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(9, 36),
3111
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(9, 39),
3114
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(9, 39),
3117
Diagnostic(ErrorCode.ERR_SemicolonExpected, "var").
WithLocation
(11, 33),
3120
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(11, 33),
3123
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(11, 42),
3126
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(9, 29),
3129
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(9, 29),
3132
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(11, 29),
3135
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(11, 29),
3138
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(15, 29),
3141
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(18, 52),
3144
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(24, 28),
3147
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(25, 27),
3150
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x11").WithArguments("x11").
WithLocation
(27, 41)
3229
Diagnostic(ErrorCode.ERR_SemicolonExpected, "x1").
WithLocation
(9, 23),
3232
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(9, 26),
3235
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(9, 26),
3238
Diagnostic(ErrorCode.ERR_SemicolonExpected, "var").
WithLocation
(11, 29),
3241
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(11, 29),
3244
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(11, 38),
3247
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(9, 19),
3250
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(11, 25),
3253
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(15, 19),
3256
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(18, 29),
3259
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(24, 26),
3262
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(25, 27),
3265
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x11").WithArguments("x11").
WithLocation
(27, 39)
3339
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(10, 18),
3342
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(13, 28),
3345
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(19, 25),
3348
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 27),
3351
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(22, 41),
3354
Diagnostic(ErrorCode.ERR_NameNotInContext, "x9").WithArguments("x9").
WithLocation
(23, 19)
3424
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(6, 13),
3427
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(9, 23),
3430
Diagnostic(ErrorCode.ERR_NotConstantExpression, "6 is int x6 && x6 > 0 ? 1 : 0").WithArguments("X.Test61").
WithLocation
(12, 14),
3433
Diagnostic(ErrorCode.ERR_NotConstantExpression, "6 is int x6 && x6 > 0 ? 1 : 0").WithArguments("X.Test62").
WithLocation
(12, 54),
3436
Diagnostic(ErrorCode.ERR_NotConstantExpression, "7 is int x7 && x7 > 0 ? 1 : 0").WithArguments("X.Test71").
WithLocation
(14, 14),
3439
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 14),
3442
Diagnostic(ErrorCode.ERR_NotConstantExpression, "3 is int x3 ? x3 : 0").WithArguments("X.Test3").
WithLocation
(4, 13)
3508
Diagnostic(ErrorCode.ERR_NotConstantExpression, "3 is int x3 && x3 > 0").WithArguments("X.Test3").
WithLocation
(8, 24),
3511
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(10, 24),
3514
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(13, 34),
3517
Diagnostic(ErrorCode.ERR_NotConstantExpression, "6 is int x6 && x6 > 0").WithArguments("X.Test61").
WithLocation
(16, 25),
3520
Diagnostic(ErrorCode.ERR_NotConstantExpression, "6 is int x6 && x6 > 0").WithArguments("X.Test62").
WithLocation
(16, 57),
3523
Diagnostic(ErrorCode.ERR_NotConstantExpression, "7 is int x7 && x7 > 0").WithArguments("X.Test71").
WithLocation
(18, 25),
3526
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(19, 25),
3529
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 27)
3596
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(10, 25),
3599
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(13, 28),
3602
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(19, 32),
3605
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 27)
3681
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "3 is int x3 && x3 > 0").WithArguments("p").
WithLocation
(8, 25),
3684
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(11, 25),
3687
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(15, 35),
3690
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "6 is int x6 && x6 > 0").WithArguments("p1").
WithLocation
(19, 27),
3693
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "6 is int x6 && x6 > 0").WithArguments("p2").
WithLocation
(19, 60),
3696
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "7 is int x7 && x7 > 0").WithArguments("p").
WithLocation
(22, 26),
3699
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(26, 26),
3702
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(29, 27)
3772
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "3 is int x3 && x3 > 0").
WithLocation
(8, 15),
3775
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(9, 15),
3778
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(11, 25),
3781
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(13, 53),
3784
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "6 is int x6 && x6 > 0").
WithLocation
(13, 16),
3787
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "7 is int x7 && x7 > 0").
WithLocation
(14, 15),
3790
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 15),
3793
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(16, 27)
3862
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "3 is int x3 && x3 > 0").
WithLocation
(8, 11),
3865
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(9, 11),
3868
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(11, 21),
3871
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(13, 43),
3874
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "6 is int x6 && x6 > 0").
WithLocation
(13, 11),
3877
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "7 is int x7 && x7 > 0").
WithLocation
(14, 11),
3880
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 11),
3883
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(16, 27)
3963
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(13, 16),
3966
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(18, 26),
3969
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(23, 48),
3972
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(30, 16),
3975
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(32, 27)
4059
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(13, 16),
4062
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(18, 26),
4065
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(23, 48),
4068
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(30, 16),
4071
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(32, 27)
4134
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(15, 27)
4169
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(15, 27)
4211
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(9, 25),
4214
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(15, 13),
4217
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(21, 24)
4451
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(30, 31),
4454
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(40, 43),
4457
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(51, 43),
4460
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(62, 43),
4463
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(102, 64),
4466
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(112, 31),
4469
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(119, 43),
4472
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(144, 17),
4475
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(146, 31),
4478
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(147, 23),
4481
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(157, 17),
4484
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(162, 31),
4487
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(163, 23),
4490
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x13").WithArguments("x13").
WithLocation
(175, 43),
4493
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x14").WithArguments("x14").
WithLocation
(185, 43),
4496
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x15").WithArguments("x15").
WithLocation
(198, 43),
4499
Diagnostic(ErrorCode.ERR_UseDefViolation, "x15").WithArguments("x15").
WithLocation
(198, 48)
4836
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(30, 31),
4839
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(32, 23),
4842
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(41, 22),
4845
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(52, 22),
4848
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(65, 22),
4851
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(106, 49),
4854
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(116, 31),
4857
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(123, 22),
4860
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(148, 17),
4863
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(150, 31),
4866
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(151, 23),
4869
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(161, 17),
4872
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(166, 31),
4875
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(167, 23),
4878
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x13").WithArguments("x13").
WithLocation
(179, 22),
4881
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x14").WithArguments("x14").
WithLocation
(189, 22),
4884
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x15").WithArguments("x15").
WithLocation
(202, 23),
4887
Diagnostic(ErrorCode.ERR_UseDefViolation, "x15").WithArguments("x15").
WithLocation
(202, 38),
4890
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x16").WithArguments("x16").
WithLocation
(213, 43),
4893
Diagnostic(ErrorCode.ERR_UseDefViolation, "x16").WithArguments("x16").
WithLocation
(213, 48),
4896
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x17").WithArguments("x17").
WithLocation
(224, 22),
4899
Diagnostic(ErrorCode.ERR_UseDefViolation, "x17").WithArguments("x17").
WithLocation
(224, 37)
5172
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(27, 26),
5175
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(37, 26),
5178
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(47, 17),
5181
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(60, 21),
5184
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(71, 23),
5187
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(72, 34),
5190
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 17),
5193
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "y10").WithArguments("y10").
WithLocation
(87, 25),
5196
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "y10").WithArguments("y10").
WithLocation
(89, 18),
5199
Diagnostic(ErrorCode.ERR_ConstantExpected, "y10").
WithLocation
(89, 18),
5202
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(112, 28),
5205
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "y15").WithArguments("y15").
WithLocation
(125, 25),
5208
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "y15").WithArguments("y15").
WithLocation
(127, 18)
5301
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(19, 15)
5469
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
5472
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 34),
5475
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 22),
5478
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
5481
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
5484
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 38),
5487
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 22),
5490
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 22),
5493
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
5496
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 31)
5676
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
5679
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 42),
5682
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 30),
5685
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
5688
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
5691
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 46),
5694
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 30),
5697
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 30),
5700
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
5703
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 39)
5883
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
5886
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 57),
5889
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 45),
5892
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
5895
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
5898
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 61),
5901
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 45),
5904
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 45),
5907
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
5910
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 54)
6010
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(12, 43),
6013
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(12, 47),
6016
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 58),
6019
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(20, 62)
6094
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 35),
6097
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(22, 58),
6100
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(39, 46)
6177
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(19, 35),
6180
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(24, 23),
6183
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(36, 32)
6264
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(19, 38),
6267
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(24, 26),
6270
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(36, 35)
6335
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 36),
6338
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(13, 40),
6341
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 39),
6344
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(20, 43)
6408
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 16),
6411
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 39),
6414
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(31, 27)
6511
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var d = true is var x1;").
WithLocation
(11, 13),
6514
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(13, 9)
6578
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(19, 37),
6581
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(24, 24),
6584
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(36, 33)
6667
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(19, 47),
6670
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(24, 34),
6673
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(36, 33)
6740
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 37),
6743
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(13, 42),
6746
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 40),
6749
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(20, 45)
6815
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(12, 53),
6818
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(12, 58),
6821
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 40),
6824
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(31, 41)
6924
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(13, 9)
7054
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
7057
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 28),
7060
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 16),
7063
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
7066
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
7069
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 32),
7072
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 16),
7075
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 16),
7078
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
7081
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 31)
7171
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(17, 9)
7352
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(97, 13),
7355
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(14, 19),
7358
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(22, 19),
7361
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(33, 28),
7364
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(32, 19),
7367
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(40, 16),
7370
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(39, 19),
7373
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(47, 17),
7376
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x8").WithArguments("x8").
WithLocation
(56, 19),
7379
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(59, 34),
7382
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(66, 19),
7385
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(69, 32),
7388
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(68, 23),
7391
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(81, 16),
7394
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(98, 16),
7397
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(97, 17),
7400
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(115, 31),
7403
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x14").WithArguments("x14").
WithLocation
(112, 19)
7494
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(18, 9)
7688
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
7691
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 32),
7694
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
7697
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(53, 17),
7700
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
7703
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(65, 9),
7706
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(76, 36),
7709
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 20),
7712
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 20),
7715
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
7718
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 29)
7920
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
7923
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 32),
7926
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
7929
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(53, 17),
7932
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
7935
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(76, 36),
7938
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 20),
7941
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 20),
7944
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
7947
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 29)
8149
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
8152
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(16, 19),
8155
Diagnostic(ErrorCode.ERR_NameNotInContext, "x2").WithArguments("x2").
WithLocation
(25, 19),
8158
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 32),
8161
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
8164
Diagnostic(ErrorCode.ERR_NameNotInContext, "x6").WithArguments("x6").
WithLocation
(44, 19),
8167
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(63, 19),
8170
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
8173
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(65, 9),
8176
Diagnostic(ErrorCode.ERR_NameNotInContext, "x9").WithArguments("x9").
WithLocation
(74, 19),
8179
Diagnostic(ErrorCode.ERR_NameNotInContext, "x9").WithArguments("x9").
WithLocation
(78, 23),
8182
Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").
WithLocation
(71, 14),
8185
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 20),
8188
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 20),
8191
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
8194
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 29),
8197
Diagnostic(ErrorCode.ERR_NameNotInContext, "x14").WithArguments("x14").
WithLocation
(128, 19)
8407
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
8410
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 32),
8413
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
8416
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(53, 17),
8419
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
8422
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(65, 9),
8425
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(76, 36),
8428
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 20),
8431
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 20),
8434
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
8437
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 29)
8639
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
8642
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 32),
8645
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
8648
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(53, 17),
8651
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
8654
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(65, 9),
8657
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(76, 36),
8660
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 20),
8663
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 20),
8666
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
8669
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 29)
8877
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 32),
8880
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(13, 38),
8883
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(21, 32),
8886
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x2").WithArguments("x2").
WithLocation
(20, 18),
8889
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(29, 32),
8892
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x3").WithArguments("x3").
WithLocation
(28, 18),
8895
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(37, 32),
8898
Diagnostic(ErrorCode.ERR_UseDefViolation, "x4").WithArguments("x4").
WithLocation
(37, 38),
8901
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(45, 32),
8904
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(44, 19),
8907
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x6").WithArguments("x6").
WithLocation
(53, 32),
8910
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x6").WithArguments("x6").
WithLocation
(52, 19),
8913
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x7").WithArguments("x7").
WithLocation
(61, 32),
8916
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(69, 37),
8919
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x8").WithArguments("x8").
WithLocation
(70, 32),
8922
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x8").WithArguments("x8").
WithLocation
(71, 32),
8925
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(77, 23),
8928
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(79, 32),
8931
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(80, 32),
8934
Diagnostic(ErrorCode.ERR_NameNotInContext, "x10").WithArguments("x10").
WithLocation
(86, 22),
8937
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x10").WithArguments("x10").
WithLocation
(88, 32),
8940
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x10").WithArguments("x10").
WithLocation
(89, 32),
8943
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(95, 23),
8946
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x11").WithArguments("x11").
WithLocation
(97, 32),
8949
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x11").WithArguments("x11").
WithLocation
(98, 32),
8952
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(104, 20),
8955
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x12").WithArguments("x12").
WithLocation
(105, 20),
8958
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x12").WithArguments("x12").
WithLocation
(107, 32),
8961
Diagnostic(ErrorCode.ERR_NameNotInContext, "x13").WithArguments("x13").
WithLocation
(113, 22),
8964
Diagnostic(ErrorCode.ERR_NameNotInContext, "x13").WithArguments("x13").
WithLocation
(114, 20),
8967
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x13").WithArguments("x13").
WithLocation
(116, 32),
8970
Diagnostic(ErrorCode.ERR_NameNotInContext, "x14").WithArguments("x14").
WithLocation
(122, 23),
8973
Diagnostic(ErrorCode.ERR_NameNotInContext, "x14").WithArguments("x14").
WithLocation
(123, 20),
8976
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(125, 32),
8979
Diagnostic(ErrorCode.ERR_NameNotInContext, "x15").WithArguments("x15").
WithLocation
(131, 20),
8982
Diagnostic(ErrorCode.ERR_NameNotInContext, "x15").WithArguments("x15").
WithLocation
(132, 20),
8985
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x15").WithArguments("x15").
WithLocation
(133, 20)
9125
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(13, 20),
9128
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(22, 32)
9270
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
9273
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 45),
9276
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 33),
9279
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
9282
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
9285
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 50),
9288
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 33),
9291
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 33),
9294
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
9297
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 42),
9300
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x15").WithArguments("x15").
WithLocation
(108, 22)
9482
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
9485
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(29, 33),
9488
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 21),
9491
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
9494
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(60, 19),
9497
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 37),
9500
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 21),
9503
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 21),
9506
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
9509
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 30)
9600
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(17, 9)
9768
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
9771
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 43),
9774
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 31),
9777
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
9780
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
9783
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 48),
9786
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 31),
9789
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 31),
9792
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
9795
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 40)
9912
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(14, 44),
9915
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(14, 50),
9918
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(23, 21),
9921
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(32, 43),
9924
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(41, 44)
10048
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(16, 44),
10051
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(18, 40),
10054
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(23, 28),
10057
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(28, 40),
10060
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(35, 40),
10063
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(41, 13),
10066
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(41, 13),
10069
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(61, 61),
10072
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x11").WithArguments("x11").
WithLocation
(72, 15)
10160
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(17, 9)
10341
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(25, 33),
10344
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(34, 21),
10347
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(45, 17),
10350
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(58, 34),
10353
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(68, 37),
10356
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(78, 21),
10359
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 36),
10362
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x15").WithArguments("x15").
WithLocation
(110, 36)
10520
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(14, 31),
10523
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(16, 27),
10526
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(12, 1),
10529
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(14, 1),
10532
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(16, 1),
10535
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(21, 15),
10538
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(26, 27),
10541
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(26, 1),
10544
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(33, 27),
10547
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(33, 1),
10550
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(39, 13),
10553
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(38, 1),
10556
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(39, 13),
10559
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(59, 48),
10562
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(59, 1),
10565
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "a: Dummy(true is var x9, x9);").
WithLocation
(65, 1),
10568
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(65, 1),
10571
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "a: Dummy(true is var x10, x10);").
WithLocation
(73, 1),
10574
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(73, 1),
10577
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x11").WithArguments("x11").
WithLocation
(79, 15),
10580
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(80, 1),
10583
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(85, 1)
10673
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "a: Dummy(true is var x1);").
WithLocation
(13, 1),
10676
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(15, 9),
10679
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(13, 1)
10948
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(32, 31),
10951
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(42, 49),
10954
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(53, 49),
10957
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(64, 49),
10960
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(104, 76),
10963
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(114, 31),
10966
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(121, 49),
10969
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(146, 17),
10972
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(148, 31),
10975
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(149, 23),
10978
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(159, 17),
10981
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(164, 31),
10984
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(165, 23),
10987
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x13").WithArguments("x13").
WithLocation
(177, 49),
10990
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x14").WithArguments("x14").
WithLocation
(187, 49),
10993
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x15").WithArguments("x15").
WithLocation
(200, 49),
10996
Diagnostic(ErrorCode.ERR_UseDefViolation, "x15").WithArguments("x15").
WithLocation
(200, 55)
11544
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(17, 17));
11607
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(19, 21));
11792
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(19, 35),
11795
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(24, 23),
11798
Diagnostic(ErrorCode.ERR_UseDefViolation, "x8").WithArguments("x8").
WithLocation
(30, 34),
11801
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(36, 32)
11883
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableWithNoInitializer, "d").
WithLocation
(12, 13),
11886
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 36),
11889
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 39),
11892
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(21, 15),
11895
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(27, 39),
11898
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(28, 15)
11978
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 16),
11981
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(14, 15),
11984
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 39),
11987
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(31, 27)
12070
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 16),
12073
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(13, 27),
12076
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 39),
12079
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(20, 43),
12082
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(26, 27),
12085
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(31, 27)
12192
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var d,e(string.Empty is var x1 && x1 != null);").
WithLocation
(11, 13),
12195
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableWithNoInitializer, "d").
WithLocation
(11, 17),
12198
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(13, 9)
12407
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
12410
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 32),
12413
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
12416
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(53, 17),
12419
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
12422
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(65, 9),
12425
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(76, 36),
12428
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 20),
12431
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 20),
12434
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
12437
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 29)
12566
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 32),
12569
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x7").WithArguments("x7").
WithLocation
(21, 32),
12572
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x7").WithArguments("x7").
WithLocation
(20, 19),
12575
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(29, 37),
12578
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x8").WithArguments("x8").
WithLocation
(30, 32),
12581
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x8").WithArguments("x8").
WithLocation
(31, 32),
12584
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(37, 23),
12587
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(39, 32),
12590
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(40, 32)
12753
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
12756
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 42),
12759
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 30),
12762
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
12765
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
12768
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 46),
12771
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 30),
12774
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 30),
12777
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
12780
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 39)
12898
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(12, 43),
12901
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 58)
12987
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 35),
12990
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(22, 58),
12993
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(39, 46)
13148
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
13151
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 43),
13154
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 31),
13157
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
13160
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
13163
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 48),
13166
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 31),
13169
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 31),
13172
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
13175
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 40)
13309
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(14, 44),
13312
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(23, 21),
13315
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(32, 43),
13318
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(41, 44)
13392
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 27)
13471
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(10, 18),
13474
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(13, 28),
13477
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 25),
13480
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(21, 27)
13557
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(21, 27)
13636
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(21, 27)
13697
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(8, 28),
13700
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(8, 51),
13703
Diagnostic(ErrorCode.ERR_NoImplicitConv, "string.Empty is var x3").WithArguments("bool", "int").
WithLocation
(8, 29)
13733
Diagnostic(ErrorCode.ERR_NoImplicitConv, "string.Empty is var x3").WithArguments("bool", "int").
WithLocation
(8, 22)
13762
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(i is var x1, x1)").
WithLocation
(6, 27),
13765
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x1").WithArguments("int", "string").
WithLocation
(7, 21),
13768
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(7, 21)
13872
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x1, x1]").
WithLocation
(10, 12),
13875
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x1, x1]").
WithLocation
(12, 16),
13878
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(12, 29),
13881
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x1, x1]").
WithLocation
(14, 12),
13884
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(14, 25),
13887
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[x2, true is var x2]").
WithLocation
(19, 12),
13890
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(19, 13),
13893
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x3, x3]").
WithLocation
(24, 12),
13896
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(24, 25),
13899
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x4").WithArguments("x4").
WithLocation
(29, 13),
13902
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[x4]").
WithLocation
(30, 12),
13905
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x4, x4]").
WithLocation
(31, 12),
13908
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(31, 25),
13911
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x5, x5]").
WithLocation
(36, 12),
13914
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(37, 13),
13917
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(37, 13),
13920
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[x5]").
WithLocation
(38, 12),
13923
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x6, x6, false is var x6, x6]").
WithLocation
(43, 12),
13926
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(43, 46),
13929
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "int[true is var x7, x7] _11;").
WithLocation
(49, 13),
13932
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x7, x7]").
WithLocation
(49, 16),
13935
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "int[true is var x8, x8] _12;").
WithLocation
(57, 25),
13938
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x8, x8]").
WithLocation
(57, 28),
13941
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[x9]").
WithLocation
(63, 12),
13944
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(63, 13),
13947
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x9, x9]").
WithLocation
(64, 12),
13950
Diagnostic(ErrorCode.ERR_LocalDuplicate, "_13").WithArguments("_13").
WithLocation
(64, 33),
13953
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x10, x10]").
WithLocation
(69, 12),
13956
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[x10]").
WithLocation
(70, 12),
13959
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[true is var x11, x11]").
WithLocation
(75, 12),
13962
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x11").WithArguments("x11").
WithLocation
(75, 35),
13965
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[x11]").
WithLocation
(76, 12)
Semantics\PatternMatchingTests2.cs (175)
161
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "p is (1, 4) { x: 3 }").WithArguments("(int x, int y)").
WithLocation
(9, 22),
164
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "p is (3, 1) { y: 4 }").WithArguments("(int x, int y)").
WithLocation
(10, 22),
167
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "p is (3, 4) { x: 1 }").WithArguments("(int x, int y)").
WithLocation
(11, 22),
170
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "p is (1, 4) { x: 3 }").WithArguments("(int x, int y)").
WithLocation
(13, 22),
173
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "p is (3, 4) { x: 1 }").WithArguments("(int x, int y)").
WithLocation
(15, 22)
273
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "(_, _)").
WithLocation
(12, 18)
373
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(6, 18),
376
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(7, 19),
379
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(8, 27),
382
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(9, 27),
385
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(10, 36),
388
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(12, 20),
391
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(13, 29),
394
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(14, 22),
397
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(15, 31),
400
Diagnostic(ErrorCode.ERR_IllegalSuppression, "default!").
WithLocation
(17, 18),
403
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(17, 18),
406
Diagnostic(ErrorCode.ERR_IllegalSuppression, "default!").
WithLocation
(18, 19),
409
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(18, 19),
412
Diagnostic(ErrorCode.ERR_IllegalSuppression, "(default)!").
WithLocation
(19, 21),
415
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(19, 22),
418
Diagnostic(ErrorCode.ERR_IllegalSuppression, "default!!").
WithLocation
(20, 18),
421
Diagnostic(ErrorCode.ERR_IllegalSuppression, "default!").
WithLocation
(20, 18),
424
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(20, 18),
427
Diagnostic(ErrorCode.ERR_IllegalSuppression, "default!!").
WithLocation
(21, 19),
430
Diagnostic(ErrorCode.ERR_IllegalSuppression, "default!").
WithLocation
(21, 19),
433
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(21, 19),
436
Diagnostic(ErrorCode.ERR_IllegalSuppression, "(default)!!").
WithLocation
(22, 21),
439
Diagnostic(ErrorCode.ERR_IllegalSuppression, "(default)!").
WithLocation
(22, 21),
442
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "default").
WithLocation
(22, 22),
445
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(22, 22),
448
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(25, 19),
451
Diagnostic(ErrorCode.ERR_CloseParenExpected, "!").
WithLocation
(25, 27),
454
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(25, 28),
457
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(25, 28),
460
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(25, 28),
463
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "((default)!)").WithArguments("int", "2").
WithLocation
(26, 18),
466
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(26, 20),
469
Diagnostic(ErrorCode.ERR_SyntaxError, "!").WithArguments(",").
WithLocation
(26, 28),
472
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(26, 29)
491
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "switch").WithArguments("recursive patterns", "8.0").
WithLocation
(5, 19),
494
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "_").WithArguments("recursive patterns", "8.0").
WithLocation
(5, 28));
516
Diagnostic(ErrorCode.ERR_BadPatternExpression, "(1, null)").WithArguments("(int, <null>)").
WithLocation
(5, 18),
519
Diagnostic(ErrorCode.ERR_BadPatternExpression, "System.Console.Write(1)").WithArguments("void").
WithLocation
(6, 18)
543
Diagnostic(ErrorCode.ERR_SyntaxError, "?").WithArguments("=>").
WithLocation
(6, 34),
546
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "?").WithArguments("?").
WithLocation
(6, 34),
549
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(6, 48),
552
Diagnostic(ErrorCode.ERR_MissingPattern, "=>").
WithLocation
(6, 48)
605
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(5, 19),
608
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(5, 19));
629
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("3").
WithLocation
(5, 19)
671
Diagnostic(ErrorCode.ERR_UseDefViolation, "u").WithArguments("u").
WithLocation
(8, 34)
694
Diagnostic(ErrorCode.ERR_UseDefViolation, "u").WithArguments("u").
WithLocation
(7, 47)
720
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithWhen, "switch").WithArguments("_").
WithLocation
(7, 19)
756
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").
WithLocation
(6, 18)
785
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "(").WithArguments("parenthesized pattern", "9.0").
WithLocation
(8, 18),
788
Diagnostic(ErrorCode.ERR_PatternWrongType, "int").WithArguments("System.ValueTuple<int>", "int").
WithLocation
(8, 19),
791
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "(").WithArguments("parenthesized pattern", "9.0").
WithLocation
(9, 27),
794
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "(").WithArguments("parenthesized pattern", "9.0").
WithLocation
(10, 28),
797
Diagnostic(ErrorCode.ERR_PatternWrongType, "int").WithArguments("System.ValueTuple<int>", "int").
WithLocation
(10, 29));
857
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(1, 2)").WithArguments("(int, int)", "N.var").
WithLocation
(9, 21),
860
Diagnostic(ErrorCode.ERR_VarMayNotBindToType, "var").WithArguments("N.var").
WithLocation
(10, 32),
863
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(x, y)").WithArguments("N.var", "Deconstruct").
WithLocation
(10, 36),
866
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(x, y)").WithArguments("N.var", "2").
WithLocation
(10, 36),
869
Diagnostic(ErrorCode.ERR_VarMayNotBindToType, "var").WithArguments("N.var").
WithLocation
(11, 33),
872
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(x, y)").WithArguments("N.var", "Deconstruct").
WithLocation
(11, 37),
875
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(x, y)").WithArguments("N.var", "2").
WithLocation
(11, 37),
878
Diagnostic(ErrorCode.ERR_VarMayNotBindToType, "var").WithArguments("N.var").
WithLocation
(12, 32)
975
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "var _").
WithLocation
(20, 18)
1041
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, @"""foo""").
WithLocation
(6, 61)
1161
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(1, 2)").WithArguments("object", "Deconstruct").
WithLocation
(8, 18),
1164
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(1, 2)").WithArguments("object", "2").
WithLocation
(8, 18)
1190
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").
WithLocation
(5, 31),
1193
Diagnostic(ErrorCode.WRN_IsTypeNamedUnderscore, "_").WithArguments("Program1._").
WithLocation
(11, 31)
1206
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").
WithLocation
(5, 31),
1209
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "switch").WithArguments("recursive patterns", "8.0").
WithLocation
(6, 28),
1212
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "_").WithArguments("recursive patterns", "8.0").
WithLocation
(6, 48),
1215
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "switch").WithArguments("recursive patterns", "8.0").
WithLocation
(12, 28),
1218
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "_").WithArguments("recursive patterns", "8.0").
WithLocation
(12, 48));
1279
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using _ = System.Int32;").
WithLocation
(1, 1)
1324
Diagnostic(ErrorCode.ERR_NoImplicitConv, "0").WithArguments("int", "string").
WithLocation
(7, 41)
1348
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(8, 74)
1368
Diagnostic(ErrorCode.ERR_IsPatternImpossible, @"""frog"" is string { Length: 4, Length: 5 }").WithArguments("string").
WithLocation
(5, 34)
1388
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "3 is 4").
WithLocation
(5, 34)
1409
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "s is string { Length: 3 }").
WithLocation
(6, 34)
1431
Diagnostic(ErrorCode.ERR_UseDefViolation, "j").WithArguments("j").
WithLocation
(7, 34)
1477
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "s is string { Length: 3 }").
WithLocation
(7, 13)
1506
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, "N is M").
WithLocation
(8, 13)
1564
Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "c").WithArguments("c", "Item1").
WithLocation
(7, 19),
1567
Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "d").WithArguments("d", "Item2").
WithLocation
(7, 25)
1591
Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "a").WithArguments("a", "Item2").
WithLocation
(7, 25)
1648
Diagnostic(ErrorCode.ERR_DeconstructParameterNameMismatch, "c").WithArguments("c", "a").
WithLocation
(7, 19),
1651
Diagnostic(ErrorCode.ERR_DeconstructParameterNameMismatch, "d").WithArguments("d", "b").
WithLocation
(7, 25)
1685
Diagnostic(ErrorCode.ERR_DeconstructParameterNameMismatch, "c").WithArguments("c", "a").
WithLocation
(7, 19),
1688
Diagnostic(ErrorCode.ERR_DeconstructParameterNameMismatch, "d").WithArguments("d", "b").
WithLocation
(7, 25)
1719
Diagnostic(ErrorCode.ERR_DeconstructParameterNameMismatch, "a").WithArguments("a", "b").
WithLocation
(7, 25)
1753
Diagnostic(ErrorCode.ERR_DeconstructParameterNameMismatch, "a").WithArguments("a", "b").
WithLocation
(7, 25)
1846
Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "Item2").WithArguments("Item2", "Item1").
WithLocation
(7, 19)
1872
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("Blah", "X").
WithLocation
(6, 25)
1899
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "X:").WithArguments("Blah.X").
WithLocation
(6, 25)
1927
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("Blah", "X").
WithLocation
(8, 25)
1956
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "X:").WithArguments("Blah.X").
WithLocation
(8, 25)
1978
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("C<T>.S").
WithLocation
(6, 21)
1999
Diagnostic(ErrorCode.ERR_PatternWrongType, "1").WithArguments("C<T>", "int").
WithLocation
(5, 21)
2101
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "()").WithArguments("X", "Point.Deconstruct(out int, out int)").
WithLocation
(6, 23),
2104
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "()").WithArguments("Point", "0").
WithLocation
(6, 23)
2153
Diagnostic(ErrorCode.ERR_MissingPattern, ",").
WithLocation
(10, 24),
2156
Diagnostic(ErrorCode.ERR_BadArgCount, "({ }, { }, { })").WithArguments("Deconstruct", "3").
WithLocation
(9, 23),
2159
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "({ }, { }, { })").WithArguments("Point", "3").
WithLocation
(9, 23)
2190
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(a: 1)").WithArguments("C", "Deconstruct").
WithLocation
(4, 21),
2193
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(a: 1)").WithArguments("C", "1").
WithLocation
(4, 21)
2212
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(a: 1)").WithArguments("C", "Deconstruct").
WithLocation
(4, 22),
2215
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(a: 1)").WithArguments("C", "1").
WithLocation
(4, 22)
2335
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Point").WithArguments("Point").
WithLocation
(6, 18),
2338
Diagnostic(ErrorCode.ERR_NameNotInContext, "Xyzzy").WithArguments("Xyzzy").
WithLocation
(6, 43),
2341
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Q7").WithArguments("Q7").
WithLocation
(7, 18)
2407
Diagnostic(ErrorCode.ERR_ConstantPatternVsOpenType, "null").WithArguments("T", "<null>", "8.0").
WithLocation
(5, 21),
2410
Diagnostic(ErrorCode.ERR_ConstantPatternVsOpenType, "1").WithArguments("T", "int", "8.0").
WithLocation
(13, 21),
2413
Diagnostic(ErrorCode.ERR_ConstantPatternVsOpenType, @"""frog""").WithArguments("T", "string", "8.0").
WithLocation
(17, 21));
2468
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1 is < 0").
WithLocation
(5, 13),
2471
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1 is < 1").
WithLocation
(6, 13),
2474
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is < 2").
WithLocation
(7, 13),
2477
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1 is <= 0").
WithLocation
(8, 13),
2480
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is <= 1").
WithLocation
(9, 13),
2483
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is <= 2").
WithLocation
(10, 13),
2486
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is > 0").
WithLocation
(11, 13),
2489
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1 is > 1").
WithLocation
(12, 13),
2492
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1 is > 2").
WithLocation
(13, 13),
2495
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is >= 0").
WithLocation
(14, 13),
2498
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "1 is >= 1").
WithLocation
(15, 13),
2501
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "1 is >= 2").
WithLocation
(16, 13)
2526
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(7, 23),
2529
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(8, 23),
2532
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(10, 23)
2567
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "< int.MinValue").
WithLocation
(7, 18),
2570
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "> int.MaxValue").
WithLocation
(9, 18),
2573
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "< 0").
WithLocation
(17, 18),
2576
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "> uint.MaxValue").
WithLocation
(19, 18)
2605
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "i is < int.MinValue").WithArguments("int").
WithLocation
(5, 13),
2608
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "i is > int.MaxValue").WithArguments("int").
WithLocation
(7, 13),
2611
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "i is < 0").WithArguments("uint").
WithLocation
(12, 13),
2614
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "i is > uint.MaxValue").WithArguments("uint").
WithLocation
(14, 13)
2643
Diagnostic(ErrorCode.WRN_IsPatternAlways, "i is >= int.MinValue").WithArguments("int").
WithLocation
(6, 13),
2646
Diagnostic(ErrorCode.WRN_IsPatternAlways, "i is <= int.MaxValue").WithArguments("int").
WithLocation
(8, 13),
2649
Diagnostic(ErrorCode.WRN_IsPatternAlways, "i is >= 0").WithArguments("uint").
WithLocation
(13, 13),
2652
Diagnostic(ErrorCode.WRN_IsPatternAlways, "i is <= uint.MaxValue").WithArguments("uint").
WithLocation
(15, 13)
2673
Diagnostic(ErrorCode.ERR_PatternWrongType, "System.Delegate").WithArguments("string", "System.Delegate").
WithLocation
(5, 19),
2676
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "s is not _").WithArguments("string").
WithLocation
(6, 13),
2679
Diagnostic(ErrorCode.ERR_IsPatternImpossible, @"s is ""a"" and ""b""").WithArguments("string").
WithLocation
(7, 13)
2708
Diagnostic(ErrorCode.ERR_PatternNullableType, "string?").WithArguments("string").
WithLocation
(4, 22),
2711
Diagnostic(ErrorCode.ERR_PatternNullableType, "string?").WithArguments("string").
WithLocation
(7, 23),
2714
Diagnostic(ErrorCode.ERR_IsNullableType, "string?").WithArguments("string").
WithLocation
(10, 22),
2717
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(13, 30),
2720
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(":").
WithLocation
(13, 31),
2723
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(13, 31),
2726
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(string? _)").WithArguments("object", "2").
WithLocation
(16, 22),
2729
Diagnostic(ErrorCode.ERR_SyntaxError, "?").WithArguments(",").
WithLocation
(16, 29),
2732
Diagnostic(ErrorCode.ERR_SyntaxError, "_").WithArguments(",").
WithLocation
(16, 31)
2753
Diagnostic(ErrorCode.ERR_PatternWrongType, "System.Delegate").WithArguments("string", "System.Delegate").
WithLocation
(6, 22),
2756
Diagnostic(ErrorCode.WRN_IsPatternAlways, "s is string or null").WithArguments("string").
WithLocation
(7, 13)
2872
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(11, 15),
2875
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new E()").WithArguments("E", "D").
WithLocation
(25, 18),
2878
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new F()").WithArguments("F", "D").
WithLocation
(26, 18),
2881
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new E()").WithArguments("E", "D").
WithLocation
(63, 18),
2884
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new F()").WithArguments("F", "D").
WithLocation
(64, 18)
3005
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "is").WithArguments("is").
WithLocation
(6, 13)
3023
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "switch").WithArguments("switch").
WithLocation
(6, 13),
3026
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "switch").WithArguments("switch").
WithLocation
(6, 13)
3045
Diagnostic(ErrorCode.ERR_PatternNullableType, "int?").WithArguments("int").
WithLocation
(6, 25),
3048
Diagnostic(ErrorCode.ERR_PatternNullableType, "int?").WithArguments("int").
WithLocation
(7, 24)
3291
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Int32").
WithLocation
(1, 1),
3304
}").WithArguments("System.Int32").
WithLocation
(6, 9),
3317
}").WithArguments("System.Int32").
WithLocation
(6, 9),
3320
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"case not ""one"" when b1:").WithArguments("System.Int32").
WithLocation
(8, 13)
3675
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "< (uint)0").
WithLocation
(8, 12)
Semantics\PatternMatchingTests3.cs (195)
101
Diagnostic(ErrorCode.ERR_AmbigMember, "X").WithArguments("I1.X", "I2.X").
WithLocation
(8, 34),
104
Diagnostic(ErrorCode.ERR_AmbigMember, "Y").WithArguments("I1.Y", "I2.Y").
WithLocation
(8, 40)
155
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("Point", "X").
WithLocation
(8, 34)
248
Diagnostic(ErrorCode.ERR_DeconstructParameterNameMismatch, "X").WithArguments("X", "Z").
WithLocation
(8, 33),
251
Diagnostic(ErrorCode.ERR_DeconstructParameterNameMismatch, "Y").WithArguments("Y", "W").
WithLocation
(8, 39)
338
Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "X").WithArguments("X", "Item1").
WithLocation
(8, 33),
341
Diagnostic(ErrorCode.ERR_TupleElementNameMismatch, "Y").WithArguments("Y", "Item2").
WithLocation
(8, 39)
505
Diagnostic(ErrorCode.ERR_EscapeCall, "new RGBColor(span)").WithArguments("Program.RGBColor.RGBColor(System.Span<int>)", "span").
WithLocation
(17, 18),
508
Diagnostic(ErrorCode.ERR_EscapeVariable, "span").WithArguments("span").
WithLocation
(17, 31));
526
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "b switch { true => x, false => y }").
WithLocation
(6, 21));
544
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref x").WithArguments("ref").
WithLocation
(6, 40),
547
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(6, 40),
550
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref y").WithArguments("ref").
WithLocation
(6, 56),
553
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(6, 56));
906
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s1").WithArguments("Source1", "Ultimate").
WithLocation
(10, 42),
909
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s1").WithArguments("Source1", "Ultimate").
WithLocation
(10, 54),
912
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s1").WithArguments("Source1", "Ultimate").
WithLocation
(12, 33),
915
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s1").WithArguments("Source1", "Ultimate").
WithLocation
(12, 45));
965
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s1").WithArguments("Source1", "Ultimate").
WithLocation
(11, 42),
968
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s2").WithArguments("Source2", "Ultimate").
WithLocation
(11, 54),
971
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s1").WithArguments("Source1", "Ultimate").
WithLocation
(13, 33),
974
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s2").WithArguments("Source2", "Ultimate").
WithLocation
(13, 45));
993
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(6, 18));
1232
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "null").WithArguments("null pointer constant pattern", "8.0").
WithLocation
(6, 29),
1235
Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "var _").
WithLocation
(7, 29),
1238
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "null").WithArguments("null pointer constant pattern", "8.0").
WithLocation
(12, 18),
1241
Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "var _").
WithLocation
(20, 18)
1330
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(6, 27)
1398
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "o").WithArguments("field", "o").
WithLocation
(4, 19),
1401
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "o").WithArguments("C.o", "null").
WithLocation
(4, 19),
1404
Diagnostic(ErrorCode.ERR_ConvertToStaticClass, "(C)(o switch { _ => default })").WithArguments("C").
WithLocation
(7, 12),
1407
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C)(o switch { _ => default })").
WithLocation
(7, 12),
1410
Diagnostic(ErrorCode.ERR_ConvertToStaticClass, "(C)(o switch { _ => throw null! })").WithArguments("C").
WithLocation
(8, 12)
1629
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("1").
WithLocation
(5, 41),
1632
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "=>").WithArguments("lambda expression", "System.Func<int, decimal>").
WithLocation
(5, 57)
1650
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("1").
WithLocation
(5, 41),
1653
Diagnostic(ErrorCode.ERR_BadRetType, "M").WithArguments("C.M(int)", "void").
WithLocation
(5, 55)
1730
Diagnostic(ErrorCode.ERR_AmbigUDConv, "new A()").WithArguments("A.implicit operator B(A)", "B.implicit operator B(A)", "A", "B").
WithLocation
(16, 33),
1733
Diagnostic(ErrorCode.ERR_AmbigUDConv, "new A()").WithArguments("A.implicit operator B(A)", "B.implicit operator B(A)", "A", "B").
WithLocation
(16, 42)
1765
Diagnostic(ErrorCode.ERR_AmbigUDConv, "new A()").WithArguments("A.implicit operator B(A)", "B.implicit operator B(A)", "A", "B").
WithLocation
(16, 29)
1797
Diagnostic(ErrorCode.ERR_AmbigUDConv, "new A()").WithArguments("A.implicit operator B(A)", "B.implicit operator B(A)", "A", "B").
WithLocation
(16, 27)
1829
Diagnostic(ErrorCode.ERR_AmbigUDConv, "new A()").WithArguments("A.implicit operator B(A)", "B.implicit operator B(A)", "A", "B").
WithLocation
(16, 43)
1856
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case (string str, int[] arr) _:").WithArguments("case (string str, int[] arr) _:").
WithLocation
(8, 13),
1859
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "str").WithArguments("str").
WithLocation
(8, 26),
1862
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "arr").WithArguments("arr").
WithLocation
(8, 37),
1865
Diagnostic(ErrorCode.ERR_ConstantExpected, "goto case (string str, decimal[] arr);").
WithLocation
(9, 17),
1868
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "string str").
WithLocation
(9, 28),
1871
Diagnostic(ErrorCode.ERR_UseDefViolation, "string str").WithArguments("str").
WithLocation
(9, 28),
1874
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "decimal[] arr").
WithLocation
(9, 40),
1877
Diagnostic(ErrorCode.ERR_UseDefViolation, "decimal[] arr").WithArguments("arr").
WithLocation
(9, 40),
1880
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "str").WithArguments("str").
WithLocation
(10, 26),
1883
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "arr").WithArguments("arr").
WithLocation
(10, 41)
1922
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case (string str, int[] arr) _:").WithArguments("case (string str, int[] arr) _:").
WithLocation
(8, 13),
1925
Diagnostic(ErrorCode.ERR_NoImplicitConv, "goto case a is (var x1, var x2);").WithArguments("bool", "(object a, object b)").
WithLocation
(9, 17),
1928
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(var x1, var x2)").WithArguments("object", "Deconstruct").
WithLocation
(9, 32),
1931
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(var x1, var x2)").WithArguments("object", "2").
WithLocation
(9, 32)
2001
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "y1").
WithLocation
(19, 22),
2004
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "y2").
WithLocation
(20, 22),
2007
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "y3").
WithLocation
(21, 27),
2010
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "y4").
WithLocation
(22, 34),
2013
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "y5").
WithLocation
(23, 33),
2016
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "y6").
WithLocation
(24, 28),
2019
Diagnostic(ErrorCode.WRN_IsPatternAlways, "o is object or (1 or var y7)").WithArguments("object").
WithLocation
(25, 13),
2022
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "y7").
WithLocation
(25, 38)
2474
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "1L or 2L").
WithLocation
(9, 18),
2477
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("0").
WithLocation
(14, 15),
2480
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "1L or 2L").
WithLocation
(17, 13)
2505
Diagnostic(ErrorCode.ERR_UnsupportedTypeForRelationalPattern, @"<""0""").WithArguments("string").
WithLocation
(8, 13),
2508
Diagnostic(ErrorCode.ERR_UnsupportedTypeForRelationalPattern, ">null").WithArguments("string").
WithLocation
(10, 13)
2612
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, ">= 0m").
WithLocation
(14, 18)
2670
Diagnostic(ErrorCode.ERR_RelationalPatternWithNaN, "(0.0d / 0.0d)").
WithLocation
(4, 33),
2673
Diagnostic(ErrorCode.ERR_RelationalPatternWithNaN, "(0.0f / 0.0f)").
WithLocation
(5, 33));
2696
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "'a'").
WithLocation
(7, 9),
2699
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "> 'k' and < 'o'").
WithLocation
(8, 9)
2724
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "_").
WithLocation
(12, 9)
2747
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("|").
WithLocation
(5, 6),
2750
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("||").
WithLocation
(6, 18),
2753
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "5").
WithLocation
(8, 11),
2756
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("&&").
WithLocation
(8, 18)
2925
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("E.Five").
WithLocation
(15, 28)
2982
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("E.Five").
WithLocation
(15, 28)
3004
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "==").WithArguments("==").
WithLocation
(6, 9),
3007
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "!=").WithArguments("!=").
WithLocation
(7, 9)
3075
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "_").
WithLocation
(23, 9)
5097
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case 0:").WithArguments("case 0:").
WithLocation
(8, 13),
5100
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case string s:").WithArguments("case string s:").
WithLocation
(10, 13),
5103
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case int i:").WithArguments("case int i:").
WithLocation
(12, 13),
5106
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case long l when l != 0:").WithArguments("case long l when l != 0:").
WithLocation
(14, 13)
5540
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("0").
WithLocation
(7, 21),
5543
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("0").
WithLocation
(15, 17)
5567
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("Color.Greed").
WithLocation
(4, 33)
5589
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("Color.Blue").
WithLocation
(4, 33)
5633
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue, "switch", isSuppressed: false).WithArguments("(Color)3").
WithLocation
(4, 33)
5658
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue, "switch", isSuppressed: false).WithArguments("(_, (Color)3)").
WithLocation
(4, 21)
5684
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue, "switch", isSuppressed: false).WithArguments("{ Color: (Color)3 }").
WithLocation
(4, 21)
5708
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue, "switch", isSuppressed: false).WithArguments("(_, (Color)3)").
WithLocation
(4, 37)
5729
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(false, false)").
WithLocation
(4, 37)
5757
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(null, null)").
WithLocation
(4, 43),
5760
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(not null, _)").
WithLocation
(11, 20),
5763
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(not null, not null)").
WithLocation
(12, 20),
5766
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(_, null)").
WithLocation
(13, 20),
5769
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(null, null)").
WithLocation
(14, 20)
5795
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("> (nint)int.MaxValue").
WithLocation
(4, 25),
5798
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("< (nint)int.MinValue").
WithLocation
(5, 25),
5801
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("> (nuint)uint.MaxValue").
WithLocation
(6, 26)
5824
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("float.NaN").
WithLocation
(4, 26),
5827
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("float.NegativeInfinity").
WithLocation
(5, 26),
5830
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("float.PositiveInfinity").
WithLocation
(6, 26),
5833
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("double.NaN").
WithLocation
(7, 27),
5836
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("double.NegativeInfinity").
WithLocation
(8, 27),
5839
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("double.PositiveInfinity").
WithLocation
(9, 27)
5857
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("\"B\"").
WithLocation
(4, 27)
5878
Diagnostic(ErrorCode.ERR_ConstantExpected, "a").
WithLocation
(5, 18),
5881
Diagnostic(ErrorCode.ERR_NoImplicitConv, "0").WithArguments("int", "bool").
WithLocation
(5, 25),
5884
Diagnostic(ErrorCode.ERR_NoImplicitConv, "500").WithArguments("int", "bool").
WithLocation
(5, 33),
5887
Diagnostic(ErrorCode.ERR_UnsupportedTypeForRelationalPattern, "< 0").WithArguments("bool").
WithLocation
(6, 21),
5890
Diagnostic(ErrorCode.ERR_NoImplicitConv, "0").WithArguments("int", "bool").
WithLocation
(6, 23),
5893
Diagnostic(ErrorCode.ERR_NoImplicitConv, "0").WithArguments("int", "bool").
WithLocation
(7, 21)
5913
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "is").WithArguments("is").
WithLocation
(5, 13)
5942
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(6, 18),
5945
Diagnostic(ErrorCode.ERR_MissingPattern, "=>").
WithLocation
(6, 18),
5948
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(13, 18),
5951
Diagnostic(ErrorCode.ERR_MissingPattern, "=>").
WithLocation
(13, 18)
5971
Diagnostic(ErrorCode.ERR_MissingPattern, ";").
WithLocation
(3, 26),
5974
Diagnostic(ErrorCode.ERR_MissingPattern, ";").
WithLocation
(6, 26)
5992
Diagnostic(ErrorCode.ERR_IntDivByZero, "0/0").
WithLocation
(3, 22),
5995
Diagnostic(ErrorCode.ERR_IntDivByZero, "0/0").
WithLocation
(4, 22)
6080
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(10, 21),
6083
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(14, 21),
6086
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(22, 21),
6089
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(26, 21)
6132
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(10, 21),
6135
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(14, 21),
6138
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(22, 21),
6141
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(26, 21)
6184
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(10, 21),
6187
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(14, 21),
6190
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(22, 21),
6193
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(26, 21)
6493
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "s is string t").
WithLocation
(12, 15),
6496
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, "s is not string t").
WithLocation
(17, 13));
6701
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(6, 28),
6704
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(11, 29),
6707
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(17, 18),
6710
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(21, 37));
6727
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("null").
WithLocation
(4, 28)
6765
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, $"i is {pattern}").
WithLocation
(12, 15),
6768
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, $"i is not ({pattern})").
WithLocation
(17, 13)
6823
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, $"i is {pattern}").
WithLocation
(12, 15),
6826
Diagnostic(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, $"i is not ({pattern})").
WithLocation
(17, 13)
6864
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("Q(1, 2.5D)").
WithLocation
(4, 27),
6867
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("Q(1L, 2.5F)").
WithLocation
(5, 27),
6870
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("Q((byte)1, (short)2)").
WithLocation
(6, 27),
6873
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("Q(1U, 2UL)").
WithLocation
(7, 27),
6876
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("Q(1L, (sbyte)2)").
WithLocation
(8, 27)
6905
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("I").
WithLocation
(4, 27),
6908
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("Q(1, 2.5D) and (3, 4, 5) { P1: 1, P2: 2 }").
WithLocation
(5, 27)
6930
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("null").
WithLocation
(4, 23),
6933
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("not null").
WithLocation
(5, 23)
6957
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(1, 2)").
WithLocation
(4, 35),
6960
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(1, 2)").
WithLocation
(5, 35),
6963
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("null").
WithLocation
(6, 36),
6966
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("not null").
WithLocation
(7, 36)
6990
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ P1: 10 }").
WithLocation
(4, 22),
6993
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ P1: -100 }").
WithLocation
(5, 22)
7017
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ P1: 10 }").
WithLocation
(4, 22),
7020
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ P1: -100 }").
WithLocation
(5, 22)
7042
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("Q").
WithLocation
(4, 27),
7045
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("Q").
WithLocation
(5, 27),
7048
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("W").
WithLocation
(6, 27)
7071
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(1) { }").
WithLocation
(4, 22),
7074
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(1) { }").
WithLocation
(5, 43)
7101
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(false, true, false, true)").
WithLocation
(4, 44)
7128
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(4, 26)
7162
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ A: false, B: true, C: false, D: true }").
WithLocation
(4, 21)
7196
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ A: false, D: true, B: true, C: false }").
WithLocation
(4, 21)
7229
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments(@"(0, ""A"")").
WithLocation
(4, 21)
7253
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(1) { } and (2, 3)").
WithLocation
(4, 22),
7256
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(2, 3) and (1) { }").
WithLocation
(5, 22)
7277
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments(@"""0""").
WithLocation
(3, 33)
7300
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments(@"""20""").
WithLocation
(3, 33)
7319
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Length: 1 }").
WithLocation
(3, 33)
7365
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ x: 1, y: 2, Extra: 3 }").
WithLocation
(3, 41)
7394
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithWhen, "switch").WithArguments("(false, true, false, true)").
WithLocation
(4, 44)
7422
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNullWithWhen, "switch").WithArguments("(null, true, false, true)").
WithLocation
(4, 47)
7454
Diagnostic(ErrorCode.ERR_NotConstantExpression, "Color.Red.ToArgb()").WithArguments("red").
WithLocation
(13, 25),
7457
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(14, 31));
7489
Diagnostic(ErrorCode.ERR_NotConstantExpression, "Color.Red.ToArgb()").WithArguments("red").
WithLocation
(13, 25),
7492
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("1").
WithLocation
(14, 31));
7523
Diagnostic(ErrorCode.ERR_NotConstantExpression, "Color.Red.ToArgb()").WithArguments("red").
WithLocation
(13, 25));
7559
Diagnostic(ErrorCode.ERR_NameNotInContext, "shape").WithArguments("shape").
WithLocation
(5, 13),
7562
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "100.0").WithArguments("double", type).
WithLocation
(5, 42));
7591
Diagnostic(ErrorCode.ERR_NameNotInContext, "shape").WithArguments("shape").
WithLocation
(5, 13));
7617
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Radius").WithArguments("Circle.Radius").
WithLocation
(3, 38),
7620
Diagnostic(ErrorCode.ERR_NameNotInContext, "shape").WithArguments("shape").
WithLocation
(5, 13));
Semantics\PatternMatchingTests4.cs (104)
38
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(8, 18));
60
Diagnostic(ErrorCode.ERR_ConstantExpected, "default(T)").
WithLocation
(8, 18));
94
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "M1").WithArguments("M1", "object").
WithLocation
(6, 18),
97
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "M1").WithArguments("M1", "object").
WithLocation
(9, 18),
100
Diagnostic(ErrorCode.ERR_ConstantExpected, "M2").
WithLocation
(15, 18),
103
Diagnostic(ErrorCode.ERR_ConstantExpected, "M2").
WithLocation
(18, 18));
109
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "M1").WithArguments("M1", "object").
WithLocation
(6, 18),
112
Diagnostic(ErrorCode.ERR_ConstantExpected, "M1").
WithLocation
(6, 18),
115
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "M1").WithArguments("M1", "object").
WithLocation
(9, 18),
118
Diagnostic(ErrorCode.ERR_ConstantExpected, "M1").
WithLocation
(9, 18),
121
Diagnostic(ErrorCode.ERR_ConstantExpected, "M2").
WithLocation
(15, 18),
124
Diagnostic(ErrorCode.ERR_ConstantExpected, "M2").
WithLocation
(18, 18));
150
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(() => 0)").WithArguments("T", "2").
WithLocation
(8, 18),
153
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(8, 22),
156
Diagnostic(ErrorCode.ERR_SyntaxError, "0").WithArguments(",").
WithLocation
(8, 25),
159
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "stackalloc int[1] { 0 }").WithArguments("System.Span`1").
WithLocation
(10, 18),
162
Diagnostic(ErrorCode.ERR_ConstantExpected, "stackalloc int[1] { 0 }").
WithLocation
(10, 18),
165
Diagnostic(ErrorCode.ERR_ConstantExpected, "new { X = 0 }").
WithLocation
(12, 18)
245
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(3, 4, 5)").WithArguments("object", "Deconstruct").
WithLocation
(7, 32),
248
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(3, 4, 5)").WithArguments("object", "3").
WithLocation
(7, 32)
280
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(3, 4, 5)").WithArguments("object", "Deconstruct").
WithLocation
(15, 32),
283
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(3, 4, 5)").WithArguments("object", "3").
WithLocation
(15, 32)
571
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(3, 4)").WithArguments("T", "Deconstruct").
WithLocation
(13, 32),
574
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(3, 4)").WithArguments("T", "2").
WithLocation
(13, 32),
577
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(3, 4, 5)").WithArguments("T", "Deconstruct").
WithLocation
(14, 32),
580
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(3, 4, 5)").WithArguments("T", "3").
WithLocation
(14, 32),
583
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(3, 0, 5)").WithArguments("T", "Deconstruct").
WithLocation
(15, 32),
586
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(3, 0, 5)").WithArguments("T", "3").
WithLocation
(15, 32),
589
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(3, 4, 5, 6)").WithArguments("T", "Deconstruct").
WithLocation
(16, 32),
592
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(3, 4, 5, 6)").WithArguments("T", "4").
WithLocation
(16, 32)
690
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "()").WithArguments("T", "0").
WithLocation
(13, 32)
871
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(3, 4, 5)").WithArguments("object", "Deconstruct").
WithLocation
(17, 32),
874
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(3, 4, 5)").WithArguments("object", "3").
WithLocation
(17, 32)
908
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(3, 4, 5)").WithArguments("object", "Deconstruct").
WithLocation
(17, 32),
911
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(3, 4, 5)").WithArguments("object", "3").
WithLocation
(17, 32)
946
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "System.Runtime.CompilerServices.ITuple").WithArguments("System.Runtime.CompilerServices.ITuple", "WarningOnly").
WithLocation
(11, 18)
969
Diagnostic(ErrorCode.ERR_ArgumentNameInITuplePattern, "X:").
WithLocation
(6, 23),
972
Diagnostic(ErrorCode.ERR_ArgumentNameInITuplePattern, "Y:").
WithLocation
(6, 29),
975
Diagnostic(ErrorCode.ERR_ArgumentNameInITuplePattern, "Z:").
WithLocation
(6, 35)
1346
Diagnostic(ErrorCode.WRN_CaseConstantNamedUnderscore, "_").
WithLocation
(11, 22)
1375
Diagnostic(ErrorCode.WRN_CaseConstantNamedUnderscore, "_").
WithLocation
(11, 22)
1404
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "_").WithArguments("_").
WithLocation
(6, 19)
1433
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "_").WithArguments("_").
WithLocation
(6, 19)
1514
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(":").
WithLocation
(9, 20),
1517
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "x").
WithLocation
(9, 20)
1570
Diagnostic(ErrorCode.WRN_IsTypeNamedUnderscore, "_").WithArguments("_").
WithLocation
(9, 32)
1597
Diagnostic(ErrorCode.WRN_IsTypeNamedUnderscore, "_").WithArguments("_").
WithLocation
(9, 32),
1600
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(9, 34),
1603
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(9, 34)
1684
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "_").WithArguments("_").
WithLocation
(6, 19)
1715
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "_").WithArguments("_").
WithLocation
(6, 19),
1718
Diagnostic(ErrorCode.ERR_WrongNumberOfSubpatterns, "(_ x, _)").WithArguments("(object, object)", "2", "3").
WithLocation
(10, 22),
1721
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(10, 25),
1724
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(10, 25)
1806
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(true, false)").
WithLocation
(6, 25)
1883
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "(null, true)").
WithLocation
(13, 13)
2003
Diagnostic(ErrorCode.ERR_AmbigCall, "(x, y)").WithArguments("I1.Deconstruct(out int, out int)", "I2.Deconstruct(out int, out int)").
WithLocation
(8, 22)
2049
Diagnostic(ErrorCode.ERR_AmbigCall, "(var x, var y)").WithArguments("I1.Deconstruct(out int, out int)", "I2.Deconstruct(out int, out int)").
WithLocation
(8, 18)
2088
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(0, _)").
WithLocation
(9, 19)
2224
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(0, _)").
WithLocation
(9, 19)
2229
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(0, _)").
WithLocation
(9, 19)
2379
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(0, _)").
WithLocation
(9, 19)
2424
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(0, _)").
WithLocation
(8, 24)
2429
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(0, _)").
WithLocation
(8, 24)
2578
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(0, _)").
WithLocation
(9, 19)
2619
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(0, _)").
WithLocation
(9, 19)
2624
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "t switch { (3, 4) => 1 }").WithArguments("System.InvalidOperationException", ".ctor").
WithLocation
(9, 17),
2627
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(0, _)").
WithLocation
(9, 19)
3032
Diagnostic(ErrorCode.ERR_WrongNumberOfSubpatterns, "(_, _, _)").WithArguments("(int, int)", "2", "3").
WithLocation
(5, 27)
3052
Diagnostic(ErrorCode.ERR_PropertyPatternNameMissing, "1").WithArguments("1").
WithLocation
(5, 25)
3082
Diagnostic(ErrorCode.ERR_IndexedPropertyMustHaveAllOptionalParams, "P").WithArguments("I.P").
WithLocation
(5, 20)
3114
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "P").WithArguments("P").
WithLocation
(5, 20)
3218
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("((0, _), _)").
WithLocation
(7, 32)
3246
Diagnostic(ErrorCode.ERR_NoImplicitConv, "goto case string.Empty;").WithArguments("string", "int").
WithLocation
(10, 21)
3273
Diagnostic(ErrorCode.ERR_ConstantExpected, "goto case string.Empty.Length;").
WithLocation
(10, 21)
3294
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("not null").
WithLocation
(6, 15)
3333
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("false").
WithLocation
(22, 18)
3435
Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "{}").
WithLocation
(5, 18),
3438
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1").WithArguments("int", "int*").
WithLocation
(6, 18),
3441
Diagnostic(ErrorCode.ERR_ConstantExpected, "1").
WithLocation
(6, 18),
3444
Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "var (x, y)").
WithLocation
(7, 18)
3470
Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "{ }").
WithLocation
(11, 24)
3511
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(0, _)").
WithLocation
(17, 23)
3606
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(x, y)").WithArguments("System.ValueTuple`2").
WithLocation
(9, 16)
3647
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(0, _, _, _, _, _, _, _, _)").
WithLocation
(17, 44)
3718
Diagnostic(ErrorCode.ERR_IsNullableType, "A?").WithArguments("A").
WithLocation
(7, 18),
3721
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(":").
WithLocation
(8, 23),
3724
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(8, 23),
3727
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(":").
WithLocation
(9, 28),
3730
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(9, 28),
3733
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(":").
WithLocation
(10, 25),
3736
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(10, 25),
3739
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(":").
WithLocation
(11, 30),
3742
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(11, 30),
3745
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(":").
WithLocation
(12, 27),
3748
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(12, 27),
3751
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(":").
WithLocation
(13, 32),
3754
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(13, 32),
3757
Diagnostic(ErrorCode.ERR_IsNullableType, "A?").WithArguments("A").
WithLocation
(14, 18),
3760
Diagnostic(ErrorCode.ERR_IsNullableType, "A[][]?").WithArguments("A[][]").
WithLocation
(15, 18),
3763
Diagnostic(ErrorCode.ERR_AsNullableType, "A[][]?").WithArguments("A[][]").
WithLocation
(16, 18)
3783
Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "var v").
WithLocation
(7, 20)
4028
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "(< 10, object)").WithArguments("i3", "C.Deconstruct(out int, out string, out int?)").
WithLocation
(26, 18),
4031
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(< 10, object)").WithArguments("C", "2").
WithLocation
(26, 18)
Semantics\PatternMatchingTests5.cs (178)
176
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "new C() is { Prop1: null } and { Prop1.Prop2: null }").WithArguments("C").
WithLocation
(9, 13),
179
Diagnostic(ErrorCode.ERR_IsPatternImpossible, "new C() is { Prop1: null, Prop1.Prop2: null }").WithArguments("C").
WithLocation
(10, 13)
295
Diagnostic(ErrorCode.ERR_InvalidNameInSubpattern, "Prop1<int>").
WithLocation
(6, 26),
298
Diagnostic(ErrorCode.ERR_InvalidNameInSubpattern, "Prop1->Prop2").
WithLocation
(7, 26),
301
Diagnostic(ErrorCode.ERR_InvalidNameInSubpattern, "Prop1!").
WithLocation
(8, 26),
304
Diagnostic(ErrorCode.ERR_InvalidNameInSubpattern, "Prop1?.Prop2").
WithLocation
(9, 26),
307
Diagnostic(ErrorCode.ERR_PropertyPatternNameMissing, "Prop1[0]").WithArguments("Prop1[0]").
WithLocation
(10, 26),
310
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Prop1").WithArguments("Prop1").
WithLocation
(10, 26),
313
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[0]").
WithLocation
(10, 31),
316
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(10, 34),
319
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(10, 36),
322
Diagnostic(ErrorCode.ERR_InvalidNameInSubpattern, "1").
WithLocation
(11, 26));
343
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field1").WithArguments("C.Field1", "null").
WithLocation
(4, 7),
346
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field2").WithArguments("C.Field2", "null").
WithLocation
(4, 15),
349
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field3").WithArguments("C.Field3", "null").
WithLocation
(4, 23),
352
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field4").WithArguments("C.Field4", "null").
WithLocation
(4, 31)
373
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field1").WithArguments("C.Field1", "null").
WithLocation
(4, 7),
376
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field2").WithArguments("C.Field2", "null").
WithLocation
(4, 15),
379
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field3").WithArguments("C.Field3", "null").
WithLocation
(4, 23),
382
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field4").WithArguments("C.Field4", "null").
WithLocation
(4, 31)
548
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field1").WithArguments("A.Field1", "").
WithLocation
(9, 22),
551
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field4").WithArguments("A.Field4", "").
WithLocation
(9, 40),
554
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field2").WithArguments("B.Field2", "").
WithLocation
(10, 22),
557
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field3").WithArguments("C.Field3", "null").
WithLocation
(11, 26)
721
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ BProp: { BoolProp: false } }").
WithLocation
(6, 15),
724
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ BProp: { IntProp: 1 } }").
WithLocation
(11, 15)
749
Diagnostic(ErrorCode.WRN_UnreferencedField, "Field1").WithArguments("C.Field1").
WithLocation
(4, 7),
752
Diagnostic(ErrorCode.WRN_UnreferencedField, "Field2").WithArguments("C.Field2").
WithLocation
(4, 15),
755
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field3").WithArguments("C.Field3", "null").
WithLocation
(4, 23),
758
Diagnostic(ErrorCode.ERR_InvalidNameInSubpattern, "Field1?.Field2").
WithLocation
(7, 26),
761
Diagnostic(ErrorCode.ERR_InvalidNameInSubpattern, "Field1!").
WithLocation
(8, 26),
764
Diagnostic(ErrorCode.ERR_NoSuchMember, "Missing").WithArguments("C", "Missing").
WithLocation
(9, 26),
767
Diagnostic(ErrorCode.ERR_NoSuchMember, "Missing").WithArguments("C", "Missing").
WithLocation
(10, 33),
770
Diagnostic(ErrorCode.ERR_NoSuchMember, "Missing1").WithArguments("C", "Missing1").
WithLocation
(11, 26)
790
Diagnostic(ErrorCode.ERR_NoSuchMember, "Missing").WithArguments("C", "Missing").
WithLocation
(6, 23)
836
Diagnostic(ErrorCode.ERR_NoSuchMember, "Missing").WithArguments("int", "Missing").
WithLocation
(7, 32)
890
Diagnostic(ErrorCode.ERR_NoSuchMember, "Missing1").WithArguments("C", "Missing1").
WithLocation
(6, 23)
979
Diagnostic(ErrorCode.ERR_IllegalSuppression, "c!").
WithLocation
(10, 22),
982
Diagnostic(ErrorCode.ERR_IllegalSuppression, "1!").
WithLocation
(11, 22),
985
Diagnostic(ErrorCode.ERR_IllegalSuppression, "c!").
WithLocation
(12, 23),
988
Diagnostic(ErrorCode.ERR_IllegalSuppression, "1!").
WithLocation
(13, 23),
991
Diagnostic(ErrorCode.ERR_IllegalSuppression, "Type!").
WithLocation
(14, 22),
994
Diagnostic(ErrorCode.ERR_IllegalSuppression, "ContainerType").
WithLocation
(15, 22),
997
Diagnostic(ErrorCode.ERR_IllegalSuppression, "ContainerType.Type!").
WithLocation
(16, 22),
1000
Diagnostic(ErrorCode.ERR_IllegalSuppression, "c!").
WithLocation
(17, 24),
1003
Diagnostic(ErrorCode.ERR_IllegalSuppression, "c!").
WithLocation
(21, 22),
1006
Diagnostic(ErrorCode.ERR_IllegalSuppression, "1!").
WithLocation
(22, 22),
1009
Diagnostic(ErrorCode.ERR_IllegalSuppression, "c!").
WithLocation
(23, 23),
1012
Diagnostic(ErrorCode.ERR_IllegalSuppression, "1!").
WithLocation
(24, 23),
1015
Diagnostic(ErrorCode.ERR_IllegalSuppression, "Type!").
WithLocation
(25, 22),
1018
Diagnostic(ErrorCode.ERR_IllegalSuppression, "ContainerType").
WithLocation
(26, 22),
1021
Diagnostic(ErrorCode.ERR_IllegalSuppression, "ContainerType.Type!").
WithLocation
(27, 22),
1024
Diagnostic(ErrorCode.ERR_IllegalSuppression, "c!").
WithLocation
(28, 24),
1027
Diagnostic(ErrorCode.ERR_IllegalSuppression, "c!").
WithLocation
(33, 17),
1030
Diagnostic(ErrorCode.ERR_IllegalSuppression, "1!").
WithLocation
(34, 17),
1033
Diagnostic(ErrorCode.ERR_IllegalSuppression, "c!").
WithLocation
(35, 18),
1036
Diagnostic(ErrorCode.ERR_IllegalSuppression, "1!").
WithLocation
(36, 18),
1039
Diagnostic(ErrorCode.ERR_IllegalSuppression, "Type!").
WithLocation
(37, 17),
1042
Diagnostic(ErrorCode.ERR_IllegalSuppression, "ContainerType").
WithLocation
(38, 17),
1045
Diagnostic(ErrorCode.ERR_IllegalSuppression, "ContainerType.Type!").
WithLocation
(39, 17),
1048
Diagnostic(ErrorCode.ERR_IllegalSuppression, "c!").
WithLocation
(40, 19)
1073
Diagnostic(ErrorCode.ERR_ConstantExpected, "s->X").
WithLocation
(6, 18)
1101
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Y").WithArguments("P.Y", "null").
WithLocation
(14, 14)
1178
Diagnostic(ErrorCode.ERR_AmbigMember, "X").WithArguments("I1.X", "I2.X").
WithLocation
(8, 34),
1181
Diagnostic(ErrorCode.ERR_AmbigMember, "Y").WithArguments("I1.Y", "I2.Y").
WithLocation
(8, 43)
1232
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("P", "X").
WithLocation
(8, 34)
1284
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Y").WithArguments("S.Y", "null").
WithLocation
(17, 14)
1431
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "this.Prop.Prop").
WithLocation
(9, 13),
1434
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "this.Prop.Prop").
WithLocation
(20, 13),
1437
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "this.Prop").
WithLocation
(25, 13),
1440
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "this.Prop.Prop").
WithLocation
(26, 13));
1481
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.Prop1.Prop2").
WithLocation
(8, 13),
1484
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.Prop1.Prop2").
WithLocation
(19, 13),
1487
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.Prop1").
WithLocation
(24, 13),
1490
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.Prop1.Prop2").
WithLocation
(25, 13)
1562
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.Prop1.Prop2").
WithLocation
(10, 13),
1565
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.Prop1.Prop2").
WithLocation
(34, 13),
1568
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.Prop1").
WithLocation
(38, 13),
1571
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.Prop1").
WithLocation
(48, 13),
1574
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.Prop1.Prop2").
WithLocation
(49, 13)
1599
Diagnostic(ErrorCode.ERR_IdentifierExpected, "Property.Property").
WithLocation
(8, 22),
1602
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, ":").WithArguments("extended property patterns", "10.0").
WithLocation
(8, 39),
1605
Diagnostic(ErrorCode.ERR_DeconstructParameterNameMismatch, "Property").WithArguments("Property", "c2").
WithLocation
(8, 47));
1633
Diagnostic(ErrorCode.ERR_IdentifierExpected, "X.Y").
WithLocation
(7, 23),
1636
Diagnostic(ErrorCode.ERR_IdentifierExpected, "Y.Z").
WithLocation
(7, 31)
1664
Diagnostic(ErrorCode.ERR_IdentifierExpected, "X.Y").
WithLocation
(6, 24),
1667
Diagnostic(ErrorCode.ERR_IdentifierExpected, "Y.Z").
WithLocation
(6, 32)
1699
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop1").WithArguments("C1.Prop1", "error Prop1").
WithLocation
(7, 21),
1702
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop2").WithArguments("C2.Prop2", "error Prop2").
WithLocation
(7, 27)
1742
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "Prop1.Prop2").WithArguments("C1.Prop1.get", "error Prop1").
WithLocation
(7, 21)
1772
Diagnostic(ErrorCode.ERR_BadAccess, "Prop1").WithArguments("C1.Prop1").
WithLocation
(7, 21)
1804
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsIsMatch, "c1 is { Prop1.Prop2: null }").
WithLocation
(9, 48)
1877
Diagnostic(ErrorCode.ERR_ObjectProhibited, "Static").WithArguments("C.Static").
WithLocation
(2, 18),
1880
Diagnostic(ErrorCode.ERR_ObjectProhibited, "Static").WithArguments("C.Static").
WithLocation
(3, 27),
1883
Diagnostic(ErrorCode.ERR_ObjectProhibited, "Static").WithArguments("C.Static").
WithLocation
(4, 18)
1918
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Prop: { True: false } }").
WithLocation
(2, 13),
1921
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("{ Prop: { Prop: not null } }").
WithLocation
(14, 13)
1940
Diagnostic(ErrorCode.ERR_NoSuchMember, "Error").WithArguments("string", "Error").
WithLocation
(4, 12),
1943
Diagnostic(ErrorCode.ERR_NoSuchMember, "Error").WithArguments("string", "Error").
WithLocation
(5, 12),
1946
Diagnostic(ErrorCode.ERR_NoSuchMember, "Error").WithArguments("int", "Error").
WithLocation
(6, 22),
1949
Diagnostic(ErrorCode.ERR_NoSuchMember, "Error").WithArguments("int", "Error").
WithLocation
(7, 19)
1986
Diagnostic(ErrorCode.ERR_CannotMatchOnINumberBase, "1").WithArguments("T").
WithLocation
(8, 9),
1989
Diagnostic(ErrorCode.ERR_CannotMatchOnINumberBase, "> 1").WithArguments("T").
WithLocation
(9, 9),
1992
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("T").
WithLocation
(11, 9),
1995
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[]").WithArguments("System.Index").
WithLocation
(11, 9),
1998
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[]").WithArguments("T").
WithLocation
(11, 9)
2030
Diagnostic(ErrorCode.ERR_CannotMatchOnINumberBase, "1").WithArguments("T").
WithLocation
(8, 9),
2033
Diagnostic(ErrorCode.ERR_CannotMatchOnINumberBase, "> 1").WithArguments("T").
WithLocation
(9, 9),
2036
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("T").
WithLocation
(11, 9),
2039
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[]").WithArguments("System.Index").
WithLocation
(11, 9),
2042
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[]").WithArguments("T").
WithLocation
(11, 9),
2045
Diagnostic(ErrorCode.ERR_PatternWrongType, @"""""").WithArguments("T", "string").
WithLocation
(13, 9)
2080
Diagnostic(ErrorCode.ERR_SameFullNameAggAgg, "INumberBase<T>").WithArguments("A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "System.Numerics.INumberBase<T>", "B, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 34),
2083
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("T").
WithLocation
(11, 9),
2086
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[]").WithArguments("System.Index").
WithLocation
(11, 9),
2089
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[]").WithArguments("T").
WithLocation
(11, 9),
2092
Diagnostic(ErrorCode.ERR_PatternWrongType, @"""""").WithArguments("T", "string").
WithLocation
(13, 9)
2127
Diagnostic(ErrorCode.ERR_CannotMatchOnINumberBase, "1").WithArguments("T").
WithLocation
(8, 9),
2130
Diagnostic(ErrorCode.ERR_CannotMatchOnINumberBase, "> 1").WithArguments("T").
WithLocation
(9, 9),
2133
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("T").
WithLocation
(11, 9),
2136
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[]").WithArguments("System.Index").
WithLocation
(11, 9),
2139
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[]").WithArguments("T").
WithLocation
(11, 9),
2142
Diagnostic(ErrorCode.ERR_PatternWrongType, @"""""").WithArguments("T", "string").
WithLocation
(13, 9)
2179
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "C").
WithLocation
(7, 5),
2182
Diagnostic(ErrorCode.ERR_UnsupportedTypeForRelationalPattern, "> 1").WithArguments("C").
WithLocation
(8, 5),
2185
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "C").
WithLocation
(8, 7),
2188
Diagnostic(ErrorCode.ERR_PatternWrongType, "int").WithArguments("C", "int").
WithLocation
(9, 5),
2191
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("C").
WithLocation
(10, 5),
2194
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[]").WithArguments("System.Index").
WithLocation
(10, 5),
2197
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[]").WithArguments("C").
WithLocation
(10, 5),
2200
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""""").WithArguments("string", "C").
WithLocation
(12, 5)
2241
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "C").
WithLocation
(7, 5),
2244
Diagnostic(ErrorCode.ERR_UnsupportedTypeForRelationalPattern, "> 1").WithArguments("C").
WithLocation
(8, 5),
2247
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "C").
WithLocation
(8, 7),
2250
Diagnostic(ErrorCode.ERR_PatternWrongType, "int").WithArguments("C", "int").
WithLocation
(9, 5),
2253
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("C").
WithLocation
(10, 5),
2256
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[]").WithArguments("System.Index").
WithLocation
(10, 5),
2259
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[]").WithArguments("C").
WithLocation
(10, 5),
2262
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""""").WithArguments("string", "C").
WithLocation
(12, 5),
2265
Diagnostic(ErrorCode.ERR_SameFullNameAggAgg, "INumberBase<C>").WithArguments("A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "System.Numerics.INumberBase<T>", "B, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(19, 5)
2305
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "C").
WithLocation
(7, 5),
2308
Diagnostic(ErrorCode.ERR_UnsupportedTypeForRelationalPattern, "> 1").WithArguments("C").
WithLocation
(8, 5),
2311
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "C").
WithLocation
(8, 7),
2314
Diagnostic(ErrorCode.ERR_PatternWrongType, "int").WithArguments("C", "int").
WithLocation
(9, 5),
2317
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("C").
WithLocation
(10, 5),
2320
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[]").WithArguments("System.Index").
WithLocation
(10, 5),
2323
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[]").WithArguments("C").
WithLocation
(10, 5),
2326
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""""").WithArguments("string", "C").
WithLocation
(12, 5)
2436
Diagnostic(ErrorCode.ERR_CannotMatchOnINumberBase, "1").WithArguments("System.Numerics.INumberBase<int>").
WithLocation
(5, 5),
2439
Diagnostic(ErrorCode.ERR_CannotMatchOnINumberBase, "> 1").WithArguments("System.Numerics.INumberBase<int>").
WithLocation
(6, 5)
2473
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", $"System.Numerics.INumberBase<{inputType}>").
WithLocation
(5, 5),
2476
Diagnostic(ErrorCode.ERR_UnsupportedTypeForRelationalPattern, "> 1").WithArguments($"System.Numerics.INumberBase<{inputType}>").
WithLocation
(6, 5),
2479
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", $"System.Numerics.INumberBase<{inputType}>").
WithLocation
(6, 7)
2649
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One)").
WithLocation
(12, 25)
2687
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithWhen, "switch").WithArguments("(Enum.One, Enum.One)").
WithLocation
(12, 25)
2725
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue, "switch").WithArguments("(Enum.One, (Enum)-1, _)").
WithLocation
(12, 28)
2873
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue, "switch").WithArguments("(Enum.Zero, (Enum)-1, not null)").
WithLocation
(14, 28),
2876
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, \"A\")").
WithLocation
(29, 28),
2879
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(Enum.One, Enum.One, null)").
WithLocation
(44, 28),
2882
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue, "switch").WithArguments("(Enum.Zero, (Enum)-1, not null)").
WithLocation
(59, 28),
2885
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue, "switch").WithArguments("(Enum.Zero, (Enum)-1, \"A\")").
WithLocation
(73, 28),
2888
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, _)").
WithLocation
(87, 28)
3039
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("null").
WithLocation
(12, 21),
3042
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("null").
WithLocation
(27, 21),
3045
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(Enum.One, Enum.One, null)").
WithLocation
(43, 21),
3048
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, false)").
WithLocation
(60, 21),
3051
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, _)").
WithLocation
(76, 21),
3054
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, _)").
WithLocation
(90, 21),
3057
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, _)").
WithLocation
(105, 21),
3060
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue, "switch").WithArguments("(Enum.Zero, (Enum)-1, false)").
WithLocation
(121, 21)
3068
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, false)").
WithLocation
(60, 21),
3071
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, _)").
WithLocation
(76, 21),
3074
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, _)").
WithLocation
(90, 21),
3077
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, _)").
WithLocation
(105, 21),
3080
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithUnnamedEnumValue, "switch").WithArguments("(Enum.Zero, (Enum)-1, false)").
WithLocation
(121, 21)
3136
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, false)").
WithLocation
(12, 28),
3139
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(Enum.One, Enum.One, null)").
WithLocation
(27, 28)
3147
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("(Enum.One, Enum.One, false)").
WithLocation
(12, 28)
Semantics\PatternSwitchTests.cs (153)
43
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 1:").WithArguments("1").
WithLocation
(11, 13),
46
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(10, 17)
72
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "1").
WithLocation
(9, 18)
99
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "1").
WithLocation
(11, 18),
102
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(8, 17)
129
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, @"""goo""").
WithLocation
(10, 18),
132
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "null").
WithLocation
(11, 18),
135
Diagnostic(ErrorCode.ERR_SwitchFallThrough, @"case ""goo"":").WithArguments("case \"goo\":").
WithLocation
(10, 13),
138
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case null:").WithArguments("case null:").
WithLocation
(11, 13)
165
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""goo""").WithArguments("string", "bool").
WithLocation
(10, 18)
193
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "string s").
WithLocation
(11, 18)
221
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "IEnumerable<string> i").
WithLocation
(12, 18)
249
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "X list").
WithLocation
(11, 18)
276
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "var x").
WithLocation
(11, 18)
303
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "var x").
WithLocation
(11, 18)
351
Diagnostic(ErrorCode.ERR_PatternWrongType, "int").WithArguments("string", "int").
WithLocation
(8, 18)
429
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("bool").
WithLocation
(10, 18)
455
Diagnostic(ErrorCode.ERR_NoImplicitConv, "3").WithArguments("int", "bool").
WithLocation
(10, 18)
481
Diagnostic(ErrorCode.ERR_ConstOutOfRange, "1000").WithArguments("1000", "byte").
WithLocation
(10, 18)
506
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "11").
WithLocation
(9, 18)
534
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "bool b").
WithLocation
(10, 18),
537
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(13, 17)
560
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(8, 17)
583
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(8, 17)
606
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(8, 17)
629
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(8, 17)
694
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "null").
WithLocation
(9, 18),
697
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(8, 17)
844
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "Derived s").
WithLocation
(11, 18),
847
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "Derived s").
WithLocation
(19, 18),
850
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "Derived s").
WithLocation
(27, 18),
853
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "int and 1").
WithLocation
(34, 18),
856
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "ValueType and int and 1").
WithLocation
(41, 18),
859
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "Derived s").
WithLocation
(49, 18),
862
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "Derived { F1: 1 } s").
WithLocation
(61, 18),
865
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "Derived { P1: 1 } s").
WithLocation
(73, 18),
868
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "Derived(1, _) s").
WithLocation
(85, 18),
871
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "Derived { F3: (1, _) } s").
WithLocation
(95, 18),
874
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "Base and I2").
WithLocation
(103, 18),
877
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "I2 and Base").
WithLocation
(111, 18)
903
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "int").
WithLocation
(8, 18)
931
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "string s").
WithLocation
(11, 18)
980
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""goo""").WithArguments("string", "bool").
WithLocation
(11, 18)
985
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""goo""").WithArguments("string", "bool").
WithLocation
(11, 18)
1018
Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 1;").WithArguments("Color").
WithLocation
(11, 17),
1021
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "2").WithArguments("int", "Color").
WithLocation
(14, 18),
1024
Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 3;").WithArguments("Color").
WithLocation
(15, 17),
1027
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto case 3;").WithArguments("case 3:").
WithLocation
(15, 17),
1030
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "case").WithArguments("pattern matching", "7.0").
WithLocation
(18, 13));
1035
Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 1;").WithArguments("Color").
WithLocation
(11, 17),
1038
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "2").WithArguments("int", "Color").
WithLocation
(14, 18),
1041
Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 3;").WithArguments("Color").
WithLocation
(15, 17),
1044
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto case 3;").WithArguments("case 3:").
WithLocation
(15, 17)
1081
Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 1;").WithArguments("Color").
WithLocation
(17, 17)
1350
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 1.01:").WithArguments(1.01.ToString()).
WithLocation
(13, 13),
1353
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case -0.0:").WithArguments((-0.0).ToString()).
WithLocation
(34, 13),
1356
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case -double.NaN:").WithArguments((-double.NaN).ToString()).
WithLocation
(35, 13),
1359
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 1.01f:").WithArguments(1.01f.ToString()).
WithLocation
(46, 13),
1362
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case -0.0f:").WithArguments((-0.0f).ToString()).
WithLocation
(67, 13),
1365
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case -float.NaN:").WithArguments((-float.NaN).ToString()).
WithLocation
(68, 13),
1368
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 1.01m:").WithArguments(1.01m.ToString()).
WithLocation
(78, 13),
1371
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case -0.0m:").WithArguments((-0.0m).ToString()).
WithLocation
(99, 13)
1590
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "bool b").
WithLocation
(11, 18)
1690
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int, int)").WithArguments("object", "Deconstruct").
WithLocation
(21, 18),
1693
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int, int)").WithArguments("object", "2").
WithLocation
(21, 18),
1696
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(21, 19),
1699
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(21, 24),
1702
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int x, int y)").WithArguments("object", "Deconstruct").
WithLocation
(22, 18),
1705
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int x, int y)").WithArguments("object", "2").
WithLocation
(22, 18),
1708
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int, int)").WithArguments("object", "Deconstruct").
WithLocation
(23, 18),
1711
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int, int)").WithArguments("object", "2").
WithLocation
(23, 18),
1714
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(23, 19),
1717
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(23, 24),
1720
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int a, int b)").WithArguments("object", "Deconstruct").
WithLocation
(24, 18),
1723
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int a, int b)").WithArguments("object", "2").
WithLocation
(24, 18),
1726
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(long, long)").WithArguments("object", "Deconstruct").
WithLocation
(25, 18),
1729
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(long, long)").WithArguments("object", "2").
WithLocation
(25, 18),
1732
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "long").WithArguments("type pattern", "9.0").
WithLocation
(25, 19),
1735
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "long").WithArguments("type pattern", "9.0").
WithLocation
(25, 25),
1738
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int, int)").WithArguments("object", "Deconstruct").
WithLocation
(30, 18),
1741
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int, int)").WithArguments("object", "2").
WithLocation
(30, 18),
1744
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(30, 19),
1747
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(30, 24),
1750
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(long, long)").WithArguments("object", "Deconstruct").
WithLocation
(32, 18),
1753
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(long, long)").WithArguments("object", "2").
WithLocation
(32, 18),
1756
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "long").WithArguments("type pattern", "9.0").
WithLocation
(32, 19),
1759
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "long").WithArguments("type pattern", "9.0").
WithLocation
(32, 25),
1762
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").
WithLocation
(37, 18),
1765
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(System.Int32, System.Int32)").WithArguments("object", "2").
WithLocation
(37, 18),
1768
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(System.Int64, System.Int64)").WithArguments("object", "Deconstruct").
WithLocation
(39, 18),
1771
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(System.Int64, System.Int64)").WithArguments("object", "2").
WithLocation
(39, 18),
1774
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int, int)").WithArguments("object", "Deconstruct").
WithLocation
(43, 22),
1777
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int, int)").WithArguments("object", "2").
WithLocation
(43, 22),
1780
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(43, 23),
1783
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(43, 28),
1786
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int x, int y)").WithArguments("object", "Deconstruct").
WithLocation
(44, 22),
1789
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int x, int y)").WithArguments("object", "2").
WithLocation
(44, 22),
1792
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int, int)").WithArguments("object", "Deconstruct").
WithLocation
(45, 22),
1795
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int, int)").WithArguments("object", "2").
WithLocation
(45, 22),
1798
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(45, 23),
1801
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "int").WithArguments("type pattern", "9.0").
WithLocation
(45, 28),
1804
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(int a, int b)").WithArguments("object", "Deconstruct").
WithLocation
(46, 22),
1807
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int a, int b)").WithArguments("object", "2").
WithLocation
(46, 22),
1810
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").
WithLocation
(49, 22),
1813
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(System.Int32, System.Int32)").WithArguments("object", "2").
WithLocation
(49, 22),
1816
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(System.Int32 x, System.Int32 y)").WithArguments("object", "Deconstruct").
WithLocation
(50, 22),
1819
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(System.Int32 x, System.Int32 y)").WithArguments("object", "2").
WithLocation
(50, 22),
1822
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").
WithLocation
(51, 22),
1825
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(System.Int32, System.Int32)").WithArguments("object", "2").
WithLocation
(51, 22),
1828
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(System.Int32 a, System.Int32 b)").WithArguments("object", "Deconstruct").
WithLocation
(52, 22),
1831
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(System.Int32 a, System.Int32 b)").WithArguments("object", "2").
WithLocation
(52, 22));
1888
Diagnostic(ErrorCode.ERR_ConstantExpected, "new object() is int x1").
WithLocation
(8, 18),
1891
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(9, 42)
1923
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "is").WithArguments("is").
WithLocation
(7, 18),
1926
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "EnvDTE").WithArguments("EnvDTE").
WithLocation
(7, 21)
2665
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "SendMessageAsync").
WithLocation
(12, 38)
2780
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "List<(int z, int w)> list2").
WithLocation
(13, 18)
2896
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "var x").
WithLocation
(13, 18)
2927
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "List<dynamic> list2").
WithLocation
(13, 18)
2992
Diagnostic(ErrorCode.ERR_PatternDynamicType, "dynamic").
WithLocation
(12, 18)
3055
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "var z").
WithLocation
(11, 18),
3058
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "var y").
WithLocation
(18, 18),
3061
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "1").
WithLocation
(24, 18),
3064
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "int y").
WithLocation
(30, 18),
3067
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case (string)null:").WithArguments("null").
WithLocation
(37, 13)
3102
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "2").
WithLocation
(12, 18),
3105
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "int n").
WithLocation
(14, 18),
3108
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "var i").
WithLocation
(16, 18),
3111
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(19, 17)
3140
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "System.ValueTuple<int, int> x").
WithLocation
(10, 18),
3143
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(13, 17)
3231
Diagnostic(ErrorCode.ERR_SyntaxError, "=").WithArguments(":").
WithLocation
(10, 15),
3234
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(10, 15),
3237
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(13, 2),
3240
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "case").WithArguments("pattern matching", "7.0").
WithLocation
(8, 13),
3247
var q ").
WithLocation
(8, 13));
3278
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "case").WithArguments("pattern matching", "7.0").
WithLocation
(7, 13));
3382
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "true").
WithLocation
(8, 16),
3385
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "false").
WithLocation
(9, 16),
3388
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "true").
WithLocation
(16, 16),
3391
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "false").
WithLocation
(17, 16),
3394
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "true").
WithLocation
(24, 16),
3397
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "false").
WithLocation
(25, 16),
3400
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "true").
WithLocation
(32, 16),
3403
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "false").
WithLocation
(33, 16),
3406
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "true").
WithLocation
(40, 16),
3409
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "false").
WithLocation
(41, 16),
3412
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "true").
WithLocation
(48, 16),
3415
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "false").
WithLocation
(49, 16)
3441
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithWhen, "switch").WithArguments("0").
WithLocation
(5, 15)
3466
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithWhen, "switch").WithArguments("0").
WithLocation
(5, 15)
3493
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithWhen, "switch").WithArguments("0").
WithLocation
(5, 15)
3535
Diagnostic(ErrorCode.ERR_RefReturningCallAndAwait, "GetRef()").WithArguments("Program.<<Main>$>g__GetRef|0_0()").
WithLocation
(2, 1)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (8)
DebuggerDisplayAttributeTests.cs (3)
300
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using A = int;").
WithLocation
(2, 1),
303
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using B = (int, int);").
WithLocation
(3, 1),
306
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using C = int[];").
WithLocation
(4, 1));
ExpressionCompilerTests.cs (1)
5726
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "A", "B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1));
LocalsTests.cs (2)
2431
Diagnostic(ErrorCode.ERR_NoTypeDef).WithArguments("A", "Comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1)
2475
Diagnostic(ErrorCode.ERR_NoTypeDef).WithArguments("I", "Comp1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1)
ReferencedModulesTests.cs (2)
1098
Diagnostic(ErrorCode.ERR_SameFullNameAggAgg, "Console").WithArguments("System.Console, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "System.Console", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").
WithLocation
(5, 31),
1101
Diagnostic(ErrorCode.ERR_SameFullNameAggAgg, "ReadOnlyDictionary<object, object>").WithArguments("System.ObjectModel, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "System.Collections.ObjectModel.ReadOnlyDictionary<K, V>", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").
WithLocation
(6, 49));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1253)
IOperation\FunctionPointerOperations.cs (9)
70
Diagnostic(ErrorCode.ERR_FuncPtrMethMustBeStatic, "M1").WithArguments("C.M1()").
WithLocation
(7, 42)
100
Diagnostic(ErrorCode.ERR_FuncPtrMethMustBeStatic, "c.M1").WithArguments("C.M1()").
WithLocation
(7, 42)
155
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(6, 42)
185
Diagnostic(ErrorCode.ERR_BadRetType, "M1").WithArguments("C.M1()", "string").
WithLocation
(7, 42)
306
Diagnostic(ErrorCode.ERR_BadFuncPointerArgCount, "ptr(Prop)").WithArguments("delegate*<string, string, void>", "1").
WithLocation
(7, 19)
337
Diagnostic(ErrorCode.ERR_BadFuncPointerArgCount, "ptr(Prop)").WithArguments("delegate*<void>", "1").
WithLocation
(7, 19)
368
Diagnostic(ErrorCode.ERR_BadArgType, "Prop").WithArguments("1", "string", "int").
WithLocation
(7, 23)
436
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ptr(Prop)").WithArguments("int", "string").
WithLocation
(7, 20),
439
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ptr(Prop)").WithArguments("int", "string").
WithLocation
(8, 13)
IOperation\IOperationTests.cs (2)
95
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(7, 10)
409
Diagnostic(ErrorCode.ERR_BadArgType, "new object()").WithArguments("1", "object", "int").
WithLocation
(7, 15)
IOperation\IOperationTests_ArrayCreationAndInitializer.cs (23)
259
Diagnostic(ErrorCode.ERR_ArrayInitializerIncorrectLength, "{ string.Empty }").WithArguments("2").
WithLocation
(6, 41)
291
Diagnostic(ErrorCode.ERR_ConstantExpected, "dimension").
WithLocation
(6, 38)
417
Diagnostic(ErrorCode.ERR_LbraceExpected, ";").
WithLocation
(6, 43),
420
Diagnostic(ErrorCode.ERR_RbraceExpected, ";").
WithLocation
(6, 43),
423
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[]/*</bind>*/").
WithLocation
(6, 27)
452
Diagnostic(ErrorCode.ERR_InvalidArray, "2").
WithLocation
(6, 31),
455
Diagnostic(ErrorCode.ERR_LbraceExpected, ";").
WithLocation
(6, 44),
458
Diagnostic(ErrorCode.ERR_RbraceExpected, ";").
WithLocation
(6, 44),
461
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[2]/*</bind>*/").
WithLocation
(6, 27)
722
Diagnostic(ErrorCode.ERR_MissingArraySize, "[]").
WithLocation
(6, 37)
755
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "string").
WithLocation
(6, 42)
786
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "b").WithArguments("object", "int").
WithLocation
(6, 38)
883
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "M()").WithArguments("object", "int").
WithLocation
(6, 38)
919
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(int)M()").WithArguments("C", "int").
WithLocation
(6, 38)
950
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "0.0").WithArguments("double", "int").
WithLocation
(6, 38)
1321
Diagnostic(ErrorCode.ERR_ConstantExpected, "d1 ?? d2").
WithLocation
(8, 22)
1542
Diagnostic(ErrorCode.ERR_ConstantExpected, "d1 ?? d2").
WithLocation
(8, 25)
1693
Diagnostic(ErrorCode.ERR_ConstantExpected, "d1 ?? d2").
WithLocation
(7, 22),
1696
Diagnostic(ErrorCode.ERR_ConstantExpected, "d3 ?? d4").
WithLocation
(7, 32)
2297
Diagnostic(ErrorCode.ERR_ArrayInitializerExpected, "v3").
WithLocation
(8, 32)
2803
Diagnostic(ErrorCode.ERR_ConstantExpected, "d1 ?? d2").
WithLocation
(7, 22)
3041
Diagnostic(ErrorCode.ERR_ConstantExpected, "d1 ?? d2").
WithLocation
(7, 22),
3044
Diagnostic(ErrorCode.ERR_ConstantExpected, "d3 ?? d4").
WithLocation
(7, 32)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (4)
277
Diagnostic(ErrorCode.ERR_BadDelArgCount, "() => F()").WithArguments("System.Action<int>", "0").
WithLocation
(8, 35)
331
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(Action)(() => F())").WithArguments("System.Action", "System.Action<int>").
WithLocation
(8, 35)
379
Diagnostic(ErrorCode.ERR_BadDelArgCount, "() => F()").WithArguments("System.Action<int>", "0").
WithLocation
(8, 49)
475
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(8, 30)
IOperation\IOperationTests_IAnonymousObjectCreationOperation.cs (6)
998
Diagnostic(ErrorCode.ERR_AnonymousTypeDuplicatePropertyName, "i").
WithLocation
(8, 22)
1072
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(8, 23)
1156
Diagnostic(ErrorCode.ERR_InvalidAnonymousTypeMemberDeclarator, "M2() = i").
WithLocation
(8, 19),
1159
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "M2()").
WithLocation
(8, 19)
1240
Diagnostic(ErrorCode.ERR_InvalidAnonymousTypeMemberDeclarator, "a[i] = j").
WithLocation
(8, 19),
1243
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(8, 19)
IOperation\IOperationTests_IArgument.cs (111)
1243
Diagnostic(ErrorCode.ERR_NoConversionForCallerLineNumberParam, "CallerLineNumber").WithArguments("int", "string").
WithLocation
(6, 28),
1246
Diagnostic(ErrorCode.ERR_NoImplicitConv, "C0.M0()").WithArguments("int", "string").
WithLocation
(6, 19),
1255
Diagnostic(ErrorCode.ERR_NoImplicitConv, "C0.M0()").WithArguments("int", "string").
WithLocation
(6, 19)
1288
Diagnostic(ErrorCode.ERR_BadArgCount, "M2").WithArguments("M2", "2").
WithLocation
(6, 19)
1320
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 24)
1351
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "string").
WithLocation
(6, 22)
1463
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "x").WithArguments("string", "int").
WithLocation
(4, 31)
1803
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "this[10]").WithArguments("P.this[int]").
WithLocation
(12, 27)
1842
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "this[10]").WithArguments("P.this[int]").
WithLocation
(12, 19)
2392
Diagnostic(ErrorCode.ERR_NoImplicitConv, "p.M1()").WithArguments("string", "int").
WithLocation
(7, 20)
2432
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "void").WithArguments("System.Void").
WithLocation
(4, 12),
2435
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "bool").WithArguments("System.Boolean").
WithLocation
(9, 20),
2438
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "bool?").WithArguments("System.Nullable`1").
WithLocation
(9, 20),
2441
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "void").WithArguments("System.Void").
WithLocation
(9, 12),
2444
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(2, 7),
2447
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "true").WithArguments("System.Boolean").
WithLocation
(9, 30),
2450
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "M2").WithArguments("System.Object").
WithLocation
(6, 19),
2453
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "P").WithArguments("object", "0").
WithLocation
(2, 7)
2494
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(4, 12),
2497
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "bool").WithArguments("System.Boolean").
WithLocation
(9, 7),
2500
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "bool?").WithArguments("System.Nullable`1").
WithLocation
(9, 7),
2505
}").WithArguments("System.Void").
WithLocation
(9, 5),
2508
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(2, 7),
2511
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "true").WithArguments("System.Boolean").
WithLocation
(9, 17),
2514
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(6, 30),
2517
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "P").WithArguments("object", "0").
WithLocation
(9, 5)
2566
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(5, 13),
2569
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(6, 12),
2572
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(6, 21),
2575
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(6, 28),
2578
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int?").WithArguments("System.Nullable`1").
WithLocation
(6, 28),
2581
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "set { _number = value; }").WithArguments("System.Void").
WithLocation
(9, 9),
2584
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "void").WithArguments("System.Void").
WithLocation
(12, 5),
2587
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(3, 7),
2590
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "5").WithArguments("System.Int32").
WithLocation
(6, 37),
2593
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "0").WithArguments("System.Int32").
WithLocation
(5, 27),
2596
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "0").WithArguments("System.Int32").
WithLocation
(14, 24),
2599
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "9").WithArguments("System.Int32").
WithLocation
(14, 40),
2602
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "P").WithArguments("object", "0").
WithLocation
(3, 7)
2640
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "void").WithArguments("System.Void").
WithLocation
(4, 12),
2643
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "bool").WithArguments("System.Boolean").
WithLocation
(9, 20),
2646
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "bool?").WithArguments("System.Nullable`1").
WithLocation
(9, 20),
2649
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "void").WithArguments("System.Void").
WithLocation
(9, 12),
2652
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(2, 7),
2655
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "M2").WithArguments("System.Object").
WithLocation
(6, 19),
2658
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "P").WithArguments("object", "0").
WithLocation
(2, 7)
2696
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(2, 7),
2699
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(4, 12),
2702
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "bool").WithArguments("System.Boolean").
WithLocation
(9, 7),
2705
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "bool?").WithArguments("System.Nullable`1").
WithLocation
(9, 7),
2710
}").WithArguments("System.Void").
WithLocation
(9, 5),
2713
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(6, 30),
2716
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "P").WithArguments("object", "0").
WithLocation
(9, 5)
2762
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(16, 1),
2765
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(4, 13),
2768
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(5, 12),
2771
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(5, 21),
2774
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(5, 28),
2777
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int?").WithArguments("System.Nullable`1").
WithLocation
(5, 28),
2780
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "set { _number = value; }").WithArguments("System.Void").
WithLocation
(8, 9),
2783
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "void").WithArguments("System.Void").
WithLocation
(11, 5),
2786
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(2, 7),
2789
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "0").WithArguments("System.Int32").
WithLocation
(4, 27),
2792
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "0").WithArguments("System.Int32").
WithLocation
(13, 24),
2795
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "9").WithArguments("System.Int32").
WithLocation
(13, 40),
2798
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "P").WithArguments("object", "0").
WithLocation
(2, 7)
2840
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "S").WithArguments("S").
WithLocation
(9, 27),
2843
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "s").WithArguments("int", "S").
WithLocation
(9, 29)
2886
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "S").WithArguments("S").
WithLocation
(9, 14),
2889
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "s").WithArguments("int", "S").
WithLocation
(9, 16)
2935
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "S").WithArguments("S").
WithLocation
(5, 32),
2938
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "s").WithArguments("int", "S").
WithLocation
(5, 34)
2988
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "S").WithArguments("S").
WithLocation
(9, 29)
3036
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "S").WithArguments("S").
WithLocation
(9, 29)
3168
Diagnostic(ErrorCode.ERR_ParamUnassigned, "M2").WithArguments("i").
WithLocation
(9, 17)
3367
Diagnostic(ErrorCode.ERR_ParamUnassigned, "P").WithArguments("i").
WithLocation
(9, 12)
3708
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "[0]").WithArguments("P.this[int]").
WithLocation
(12, 36)
3752
Diagnostic(ErrorCode.ERR_BadArgType, "0").WithArguments("1", "int", "string").
WithLocation
(13, 37)
3807
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(4, 13),
3810
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(5, 12),
3813
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(5, 21),
3816
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(5, 28),
3819
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int?").WithArguments("System.Nullable`1").
WithLocation
(5, 28),
3822
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "set { _number = value; }").WithArguments("System.Void").
WithLocation
(8, 9),
3825
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(11, 5),
3828
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(2, 7),
3831
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "0").WithArguments("System.Int32").
WithLocation
(5, 37),
3834
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "0").WithArguments("System.Int32").
WithLocation
(4, 27),
3837
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(13, 30),
3840
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "0").WithArguments("System.Int32").
WithLocation
(13, 37),
3843
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "1").WithArguments("System.Int32").
WithLocation
(13, 42),
3846
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Void").
WithLocation
(13, 30),
3849
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "P").WithArguments("object", "0").
WithLocation
(2, 7)
3902
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(4, 13),
3905
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(5, 12),
3908
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(5, 21),
3911
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(5, 28),
3914
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int?").WithArguments("System.Nullable`1").
WithLocation
(5, 28),
3917
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "set { _number = value; }").WithArguments("System.Void").
WithLocation
(8, 9),
3920
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(11, 5),
3923
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(2, 7),
3926
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "0").WithArguments("System.Int32").
WithLocation
(4, 27),
3929
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Object").
WithLocation
(13, 30),
3932
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "0").WithArguments("System.Int32").
WithLocation
(13, 37),
3935
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "1").WithArguments("System.Int32").
WithLocation
(13, 42),
3938
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "P").WithArguments("System.Void").
WithLocation
(13, 30),
3941
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "P").WithArguments("object", "0").
WithLocation
(2, 7)
3995
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "S").WithArguments("S").
WithLocation
(5, 28),
3998
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "s").WithArguments("int", "S").
WithLocation
(5, 30)
4036
Diagnostic(ErrorCode.ERR_NoConversionForNubDefaultParam, "s").WithArguments("MyStruct", "s").
WithLocation
(4, 30)
4116
Diagnostic(ErrorCode.ERR_NameNotInContext, "M2").WithArguments("M2").
WithLocation
(6, 19)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (21)
462
Diagnostic(ErrorCode.ERR_NoImplicitConv, "c").WithArguments("C", "int").
WithLocation
(6, 32)
499
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "c").WithArguments("C", "int").
WithLocation
(6, 32)
530
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(6, 27)
560
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(6, 32)
590
Diagnostic(ErrorCode.ERR_BadIndexLHS, "c[0]").WithArguments("C").
WithLocation
(6, 27)
620
Diagnostic(ErrorCode.ERR_BadIndexCount, "args[0, 0]").WithArguments("1").
WithLocation
(6, 27)
653
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(6, 35)
682
Diagnostic(ErrorCode.ERR_NameNotInContext, "ErrorExpression").WithArguments("ErrorExpression").
WithLocation
(6, 27)
715
Diagnostic(ErrorCode.ERR_NameNotInContext, "ErrorExpression").WithArguments("ErrorExpression").
WithLocation
(6, 32)
746
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(6, 34)
774
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("]").
WithLocation
(6, 43),
777
Diagnostic(ErrorCode.ERR_BadIndexCount, "args[/*</bind>*/").WithArguments("1").
WithLocation
(6, 27)
806
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("]").
WithLocation
(6, 44)
850
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(6, 35),
853
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(6, 37),
856
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(6, 39)
885
Diagnostic(ErrorCode.ERR_NamedArgumentForArray, "args[name: 0]").
WithLocation
(6, 27)
915
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "x").WithArguments("1", "ref").
WithLocation
(6, 36),
918
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").
WithLocation
(6, 43),
921
Diagnostic(ErrorCode.ERR_ParamUnassigned, "F").WithArguments("y").
WithLocation
(4, 17)
952
Diagnostic(ErrorCode.WRN_NegativeArrayIndex, "-1").
WithLocation
(6, 32)
IOperation\IOperationTests_IAttributeOperation.cs (11)
199
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "My").WithArguments("MyAttribute").
WithLocation
(4, 12),
202
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "My").WithArguments("My").
WithLocation
(4, 12),
291
Diagnostic(ErrorCode.ERR_BadArgType, "0").WithArguments("1", "int", "string").
WithLocation
(9, 15)
503
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "1 switch { 1 => 1, _ => 2 }").
WithLocation
(5, 19),
552
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "Boom").WithArguments("x", "int?").
WithLocation
(2, 12)
589
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "Boom").WithArguments("x", "int?").
WithLocation
(2, 12)
718
Diagnostic(ErrorCode.ERR_SecurityAttributeInvalidAction, "A").WithArguments("A", "0").
WithLocation
(4, 12),
721
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "A").WithArguments("A", "System.Security.Permissions.SecurityAttribute.CreatePermission()").
WithLocation
(5, 7)
756
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "My").WithArguments("x", "int[][*,*]").
WithLocation
(4, 12)
806
Diagnostic(ErrorCode.WRN_CLS_NotOnModules, "CLSCompliant(true)").
WithLocation
(3, 20),
1148
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[/*<bind>*/My(10)/*</bind>*/]").
WithLocation
(15, 9),
IOperation\IOperationTests_IAwaitExpression.cs (8)
124
Diagnostic(ErrorCode.ERR_NameNotInContext, "UndefinedTask").WithArguments("UndefinedTask").
WithLocation
(9, 25)
154
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "await i").WithArguments("int", "GetAwaiter").
WithLocation
(9, 19)
185
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(9, 36)
220
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "await").WithArguments("await").
WithLocation
(9, 19),
223
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "t").WithArguments("t").
WithLocation
(9, 25),
226
Diagnostic(ErrorCode.WRN_UnreferencedVar, "t").WithArguments("t").
WithLocation
(9, 25)
253
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "ValueTask<bool>").WithArguments("ValueTask<>", "System.Threading.Tasks").
WithLocation
(24, 32),
256
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "ValueTask").WithArguments("ValueTask", "System.Threading.Tasks").
WithLocation
(32, 32)
IOperation\IOperationTests_IBinaryOperatorExpression.cs (23)
3473
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a || b").WithArguments("||", "bool?", "bool?").
WithLocation
(6, 18)
3523
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a && b").WithArguments("&&", "bool?", "bool?").
WithLocation
(6, 18)
3635
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a || (b ?? c).F").WithArguments("||", "bool?", "bool?").
WithLocation
(6, 18)
3743
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(b ?? c).F && a").WithArguments("&&", "bool?", "bool?").
WithLocation
(6, 18)
4271
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a || b").WithArguments("||", "C", "C").
WithLocation
(6, 18)
4327
Diagnostic(ErrorCode.ERR_BadBoolOp, "a || b").WithArguments("C.operator |(C, C)").
WithLocation
(7, 18)
4380
Diagnostic(ErrorCode.ERR_MustHaveOpTF, "a && b").WithArguments("C.operator &(C, C)", "C").
WithLocation
(6, 18)
4441
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "a && b").WithArguments("&&", "C.B3", "C.B2").
WithLocation
(6, 18)
4496
Diagnostic(ErrorCode.ERR_MustHaveOpTF, "a || b").WithArguments("C.operator |(C, C)", "C").
WithLocation
(6, 18)
4650
Diagnostic(ErrorCode.ERR_MustHaveOpTF, "a && b").WithArguments("C.operator &(C, C)", "C").
WithLocation
(6, 18)
4814
Diagnostic(ErrorCode.ERR_BadBoolOp, "a || b").WithArguments("C.operator |(C?, C?)").
WithLocation
(6, 18)
4975
Diagnostic(ErrorCode.ERR_MustHaveOpTF, "a || b").WithArguments("C.operator |(C?, C?)", "C").
WithLocation
(6, 18)
5032
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a || b").WithArguments("||", "C?", "C?").
WithLocation
(6, 18)
5137
Diagnostic(ErrorCode.ERR_OpTFRetType, "true").
WithLocation
(11, 34),
5140
Diagnostic(ErrorCode.ERR_OpTFRetType, "false").
WithLocation
(12, 34)
5302
Diagnostic(ErrorCode.ERR_MustHaveOpTF, "a || b").WithArguments("B.operator |(B, B)", "B").
WithLocation
(11, 18)
6355
Diagnostic(ErrorCode.ERR_InvalidDynamicCondition, "a").WithArguments("C", "false").
WithLocation
(6, 18)
6867
Diagnostic(ErrorCode.ERR_InvalidDynamicCondition, "a").WithArguments("C?", "false").
WithLocation
(6, 18)
7588
Diagnostic(ErrorCode.ERR_InvalidDynamicCondition, "a").WithArguments("C?", "false").
WithLocation
(6, 18)
7697
Diagnostic(ErrorCode.ERR_InvalidDynamicCondition, "a").WithArguments("C?", "false").
WithLocation
(6, 18)
7910
Diagnostic(ErrorCode.ERR_OpTFRetType, "true").
WithLocation
(9, 34),
7913
Diagnostic(ErrorCode.ERR_OpTFRetType, "false").
WithLocation
(10, 34)
8019
Diagnostic(ErrorCode.ERR_InvalidDynamicCondition, "a").WithArguments("bool?", "false").
WithLocation
(6, 18)
IOperation\IOperationTests_IBranchOperation.cs (32)
35
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label1").
WithLocation
(6, 1)
331
Diagnostic(ErrorCode.ERR_LabelNotFound, "label1").WithArguments("label1").
WithLocation
(6, 14)
374
Diagnostic(ErrorCode.ERR_LabelNotFound, "label1").WithArguments("label1").
WithLocation
(6, 14),
377
Diagnostic(ErrorCode.ERR_LabelNotFound, "label1").WithArguments("label1").
WithLocation
(7, 14)
425
Diagnostic(ErrorCode.ERR_LabelNotFound, "label2").WithArguments("label2").
WithLocation
(6, 21)
475
Diagnostic(ErrorCode.ERR_LabelNotFound, "label2").WithArguments("label2").
WithLocation
(6, 21),
478
Diagnostic(ErrorCode.ERR_LabelNotFound, "label2").WithArguments("label2").
WithLocation
(7, 21)
546
Diagnostic(ErrorCode.ERR_LabelNotFound, "label1").WithArguments("label1").
WithLocation
(7, 14)
599
Diagnostic(ErrorCode.ERR_LabelNotFound, "label1").WithArguments("label1").
WithLocation
(7, 14),
602
Diagnostic(ErrorCode.ERR_LabelNotFound, "label1").WithArguments("label1").
WithLocation
(9, 14)
726
Diagnostic(ErrorCode.ERR_NoBreakOrCont, "break;").
WithLocation
(6, 9)
936
Diagnostic(ErrorCode.ERR_NoBreakOrCont, "continue;").
WithLocation
(6, 9)
1095
Diagnostic(ErrorCode.ERR_LabelNotFound, "finallyLabel").WithArguments("finallyLabel").
WithLocation
(6, 14),
1098
Diagnostic(ErrorCode.ERR_LabelNotFound, "catchlabel").WithArguments("catchlabel").
WithLocation
(7, 14),
1101
Diagnostic(ErrorCode.ERR_LabelNotFound, "trylabel").WithArguments("trylabel").
WithLocation
(8, 14),
1104
Diagnostic(ErrorCode.ERR_LabelNotFound, "finallyLabel").WithArguments("finallyLabel").
WithLocation
(13, 18),
1107
Diagnostic(ErrorCode.ERR_LabelNotFound, "catchlabel").WithArguments("catchlabel").
WithLocation
(14, 18),
1110
Diagnostic(ErrorCode.ERR_LabelNotFound, "finallyLabel").WithArguments("finallyLabel").
WithLocation
(20, 18),
1113
Diagnostic(ErrorCode.ERR_LabelNotFound, "trylabel").WithArguments("trylabel").
WithLocation
(21, 18),
1116
Diagnostic(ErrorCode.ERR_LabelNotFound, "catchlabel").WithArguments("catchlabel").
WithLocation
(27, 18),
1119
Diagnostic(ErrorCode.ERR_LabelNotFound, "trylabel").WithArguments("trylabel").
WithLocation
(28, 18),
1122
Diagnostic(ErrorCode.ERR_BadFinallyLeave, "goto").
WithLocation
(29, 13),
1125
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(32, 9),
1128
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "trylabel").
WithLocation
(12, 1),
1131
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "catchlabel").
WithLocation
(19, 1),
1134
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "finallyLabel").
WithLocation
(26, 1)
1253
Diagnostic(ErrorCode.ERR_DuplicateLabel, "label1").WithArguments("label1").
WithLocation
(10, 1)
1316
Diagnostic(ErrorCode.ERR_DuplicateLabel, "label1").WithArguments("label1").
WithLocation
(9, 1)
1410
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto").WithArguments("label").
WithLocation
(9, 13),
1477
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto").WithArguments("label").
WithLocation
(11, 13),
1543
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto").WithArguments("label").
WithLocation
(10, 13),
1546
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").
WithLocation
(13, 1)
IOperation\IOperationTests_ICoalesceAssignmentOperation.cs (7)
91
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c1 ??= s1").WithArguments("??=", "C", "string").
WithLocation
(6, 19)
119
Diagnostic(ErrorCode.ERR_BadBinaryOps, "i1 ??= s1").WithArguments("??=", "int", "string").
WithLocation
(6, 19)
150
Diagnostic(ErrorCode.ERR_NameNotInContext, "o1").WithArguments("o1").
WithLocation
(6, 19),
153
Diagnostic(ErrorCode.ERR_NameNotInContext, "o2").WithArguments("o2").
WithLocation
(6, 26)
244
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("??=").
WithLocation
(5, 6),
247
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 33)
723
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "o1 ?? o2").
WithLocation
(6, 10)
IOperation\IOperationTests_ICoalesceOperation.cs (2)
489
Diagnostic(ErrorCode.ERR_BadBinaryOps, "input ?? alternative").WithArguments("??", "int?", "System.DateTime").
WithLocation
(6, 18)
833
Diagnostic(ErrorCode.ERR_BadBinaryOps, "null ?? alternative").WithArguments("??", "<null>", "int").
WithLocation
(6, 18)
IOperation\IOperationTests_ICompoundAssignmentOperation.cs (4)
195
Diagnostic(ErrorCode.ERR_NoImplicitConv, "c += x").WithArguments("int", "C").
WithLocation
(8, 19)
233
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c += x").WithArguments("+=", "C", "int").
WithLocation
(8, 19)
451
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c += x").WithArguments("+=", "C", "int").
WithLocation
(8, 19)
494
Diagnostic(ErrorCode.ERR_NoImplicitConv, "c += x").WithArguments("int", "C").
WithLocation
(8, 19)
IOperation\IOperationTests_IConditionalAccessExpression.cs (4)
1069
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "x?.P1").
WithLocation
(6, 9)
1170
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "x?.P1").
WithLocation
(6, 9)
1584
Diagnostic(ErrorCode.ERR_BadUnaryOp, "?").WithArguments("?", "int").
WithLocation
(6, 16)
1674
Diagnostic(ErrorCode.ERR_BadUnaryOp, "?").WithArguments("?", "int").
WithLocation
(6, 16)
IOperation\IOperationTests_IConstructorBodyOperation.cs (12)
31
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 15),
34
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "C").WithArguments("C.C()").
WithLocation
(4, 12)
60
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 24),
63
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "C").WithArguments("C.C()").
WithLocation
(4, 12)
394
=> throw null;").
WithLocation
(4, 5)
481
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "C").WithArguments("C.C()").
WithLocation
(4, 12)
511
=> j1 = j2;").
WithLocation
(4, 5));
585
=> throw null;").
WithLocation
(4, 5)
790
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 26),
793
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "C").WithArguments("C.C()").
WithLocation
(4, 5));
862
=> j2 = i2;").
WithLocation
(4, 5));
1066
Diagnostic(ErrorCode.WRN_ExternCtorNoImplementation, "C").WithArguments("C.C()").
WithLocation
(4, 19)
IOperation\IOperationTests_IConversionExpression.cs (79)
134
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "f1").WithArguments("float", "int").
WithLocation
(7, 28)
165
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(8, 38)
215
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "e1").WithArguments("e1").
WithLocation
(5, 25)
252
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "i1").WithArguments("int", "Enum1").
WithLocation
(7, 30)
287
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1").WithArguments("int", "Enum1").
WithLocation
(5, 30),
290
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "e1").WithArguments("e1").
WithLocation
(5, 25)
323
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 40)
411
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(8, 30)
443
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s1").WithArguments("s1").
WithLocation
(6, 26)
479
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s1").WithArguments("s1").
WithLocation
(10, 23)
511
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(6, 28)
545
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1").
WithLocation
(8, 24)
580
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1").
WithLocation
(8, 24)
614
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1").
WithLocation
(8, 26)
645
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1").
WithLocation
(6, 24)
736
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "i1").WithArguments("int?", "int").
WithLocation
(7, 28)
919
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C2()").WithArguments("C2", "C1").
WithLocation
(8, 27)
954
Diagnostic(ErrorCode.ERR_BadNewExpr, ";").
WithLocation
(8, 41)
1032
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "new C1()").WithArguments("C1", "I1").
WithLocation
(12, 27)
1071
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new I1()").WithArguments("I1").
WithLocation
(12, 27)
1153
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "i2").WithArguments("I2", "I1").
WithLocation
(17, 27)
1227
Diagnostic(ErrorCode.ERR_NoImplicitConv, "c2arr").WithArguments("C2[]", "C1[][]").
WithLocation
(9, 34)
1266
Diagnostic(ErrorCode.ERR_NoImplicitConv, "c2arr").WithArguments("C2[]", "C1[]").
WithLocation
(9, 32)
1312
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new S1[10]").WithArguments("S1[]", "I1[]").
WithLocation
(8, 32)
1417
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "new object()").WithArguments("object", "System.Array").
WithLocation
(8, 30)
1488
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "new object()").WithArguments("object", "System.Collections.Generic.IList<int>").
WithLocation
(8, 35)
1567
Diagnostic(ErrorCode.ERR_NoImplicitConv, "d1()").WithArguments("void", "System.Delegate").
WithLocation
(10, 33)
1603
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(9, 43)
1736
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "c2").WithArguments("C2<C4>", "I1<C3>").
WithLocation
(11, 31)
1830
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "c2").WithArguments("C2<C3>", "I1<C4>").
WithLocation
(11, 31)
1939
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new T()").WithArguments("T", "C1").
WithLocation
(7, 27)
2013
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "new T()").WithArguments("T", "I1").
WithLocation
(11, 27)
2089
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new T()").WithArguments("T", "U").
WithLocation
(12, 25)
2126
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t").WithArguments("t").
WithLocation
(11, 21)
2163
Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").
WithLocation
(11, 25)
2295
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C1()").WithArguments("C1", "System.ValueType").
WithLocation
(8, 34)
2369
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new S1()").WithArguments("S1", "I1").
WithLocation
(10, 27)
2439
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s1").WithArguments("S1?", "I1").
WithLocation
(11, 27)
2517
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "System.Enum").
WithLocation
(13, 28)
2608
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s1").WithArguments("s1").
WithLocation
(7, 31)
2641
Diagnostic(ErrorCode.ERR_ConstOutOfRange, "i1").WithArguments("4096", "sbyte").
WithLocation
(7, 36),
2644
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s1").WithArguments("s1").
WithLocation
(7, 31)
2677
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "i1").WithArguments("int", "sbyte").
WithLocation
(7, 36)
2808
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1").
WithLocation
(6, 13)
2853
Diagnostic(ErrorCode.ERR_NoImplicitConv, "this").WithArguments("C1", "C2").
WithLocation
(7, 27),
2856
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1").
WithLocation
(6, 13)
2997
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "v1").WithArguments("void*", "int*").
WithLocation
(9, 29)
3032
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "0").WithArguments("int", "void*").
WithLocation
(8, 30),
3108
Diagnostic(ErrorCode.ERR_NoImplicitConv, "num").WithArguments("int", "bool").
WithLocation
(9, 60),
3111
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "num").WithArguments("lambda expression").
WithLocation
(9, 60)
3153
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(9, 70)
3213
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "f").WithArguments("float", "int").
WithLocation
(7, 26)
3256
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "o").WithArguments("o").
WithLocation
(10, 34)
3328
Diagnostic(ErrorCode.ERR_NoImplicitConv, "objectAction").WithArguments("System.Action<object>", "System.Action<int>").
WithLocation
(8, 43)
3405
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 23)
3440
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 24)
3469
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 13)
3503
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(float)1.0").WithArguments("float", "int").
WithLocation
(6, 27),
3506
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 23)
3541
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 44)
3577
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "e1").WithArguments("e1").
WithLocation
(6, 22)
3615
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 23)
3658
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "e2").WithArguments("e2").
WithLocation
(6, 22)
3704
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(E2)E1.One").WithArguments("1000", "E2").
WithLocation
(6, 27),
3707
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "e2").WithArguments("e2").
WithLocation
(6, 22)
3887
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C2)c1").WithArguments("C1", "C2").
WithLocation
(7, 27)
3981
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C1)i1").WithArguments("I1", "C1").
WithLocation
(9, 27)
4047
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(8, 32)
4111
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C2[])c1arr").WithArguments("C1[]", "C2[]").
WithLocation
(7, 32)
4143
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C1[][])c1arr").WithArguments("C1[]", "C1[][]").
WithLocation
(7, 34)
4239
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(IList<C1>)c1arr").WithArguments("C1[][]", "System.Collections.Generic.IList<C1>").
WithLocation
(10, 38)
4305
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C1[][])c1List").WithArguments("System.Collections.Generic.IList<C1>", "C1[][]").
WithLocation
(10, 34)
4577
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(E1?)e").WithArguments("E1?", "int?").
WithLocation
(9, 29)
4649
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(S1)i").WithArguments("I1", "S1").
WithLocation
(9, 27)
4746
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(T)u").WithArguments("U", "T").
WithLocation
(8, 25)
4965
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(int)""""").WithArguments("string", "int").
WithLocation
(8, 26)
4998
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(8, 31)
5040
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "o").WithArguments("o").
WithLocation
(10, 34)
5096
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(Action<int>)objectAction").WithArguments("System.Action<object>", "System.Action<int>").
WithLocation
(8, 43)
IOperation\IOperationTests_IDeclarationExpression.cs (6)
37
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(6, 16),
40
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(":").
WithLocation
(6, 16),
43
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(6, 16),
46
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(6, 16),
49
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(6, 27),
52
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(6, 29)
IOperation\IOperationTests_IDeconstructionAssignmentOperation.cs (1)
649
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "c1?.fI1").
WithLocation
(7, 10),
IOperation\IOperationTests_IDefaultValueOperation.cs (1)
97
Diagnostic(ErrorCode.ERR_AmbigCall, "M2").WithArguments("C.M2(int)", "C.M2(string)").
WithLocation
(6, 9)
IOperation\IOperationTests_IDelegateCreationExpression.cs (43)
116
Diagnostic(ErrorCode.ERR_IllegalStatement, "1").
WithLocation
(7, 36)
153
Diagnostic(ErrorCode.ERR_BadDelArgCount, "(int i) => { }").WithArguments("System.Action", "1").
WithLocation
(7, 30)
216
Diagnostic(ErrorCode.ERR_IllegalStatement, "1").
WithLocation
(7, 45)
245
Diagnostic(ErrorCode.ERR_BadDelArgCount, "(int i) => { }").WithArguments("System.Action", "1").
WithLocation
(7, 39)
321
Diagnostic(ErrorCode.ERR_RetNoObjectRequiredLambda, "return").
WithLocation
(7, 43)
358
Diagnostic(ErrorCode.ERR_BadDelArgCount, "delegate(int i) { }").WithArguments("System.Action", "1").
WithLocation
(7, 30)
458
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(7, 30)
487
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(7, 30)
526
Diagnostic(ErrorCode.ERR_BadRetType, "M1").WithArguments("Program.M1()", "int").
WithLocation
(7, 30)
557
Diagnostic(ErrorCode.ERR_BadRetType, "M1").WithArguments("Program.M1()", "int").
WithLocation
(7, 30)
567
Diagnostic(ErrorCode.ERR_BadRetType, "M1").WithArguments("Program.M1()", "int").
WithLocation
(7, 30)
604
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "M1").WithArguments("M1", "System.Action").
WithLocation
(7, 30)
635
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "M1").WithArguments("M1", "System.Action").
WithLocation
(7, 30)
692
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(7, 38)
723
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M1").WithArguments("object", "M1").
WithLocation
(8, 40)
755
Diagnostic(ErrorCode.ERR_BadRetType, "(Action)M1").WithArguments("Program.M1()", "int").
WithLocation
(7, 30)
786
Diagnostic(ErrorCode.ERR_BadRetType, "(Action)p.M1").WithArguments("Program.M1()", "int").
WithLocation
(8, 30)
797
Diagnostic(ErrorCode.ERR_BadRetType, "p.M1").WithArguments("Program.M1()", "int").
WithLocation
(8, 38)
827
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "(Action)M1").WithArguments("M1", "System.Action").
WithLocation
(7, 30)
859
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "(Action)p.M1").WithArguments("M1", "System.Action").
WithLocation
(8, 30)
922
Diagnostic(ErrorCode.ERR_IllegalStatement, "1").
WithLocation
(7, 47)
954
Diagnostic(ErrorCode.ERR_BadDelArgCount, "(int i) => { }").WithArguments("System.Action", "1").
WithLocation
(7, 41)
988
Diagnostic(ErrorCode.ERR_MethodNameExpected, "(o) => { }, new object()").
WithLocation
(8, 46)
1081
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.M1").WithArguments("Program.M1()").
WithLocation
(7, 41)
1139
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(7, 41)
1170
Diagnostic(ErrorCode.ERR_BadRetType, "M1").WithArguments("Program.M1()", "int").
WithLocation
(7, 41)
1181
Diagnostic(ErrorCode.ERR_BadRetType, "M1").WithArguments("Program.M1()", "int").
WithLocation
(7, 41)
1212
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Action(M1)").WithArguments("M1", "System.Action").
WithLocation
(7, 30)
1253
Diagnostic(ErrorCode.ERR_MethodNameExpected, "M2, M3").
WithLocation
(8, 46)
1284
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new Action(M1)").WithArguments("System.Action", "System.Action<string>").
WithLocation
(7, 38)
1315
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new Action(M1)").WithArguments("System.Action", "System.Func<string>").
WithLocation
(7, 36)
1382
Diagnostic(ErrorCode.ERR_IllegalStatement, "1").
WithLocation
(7, 56)
1413
Diagnostic(ErrorCode.ERR_BadDelArgCount, "(int i) => { }").WithArguments("System.Action", "1").
WithLocation
(7, 50)
1474
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(7, 49)
1507
Diagnostic(ErrorCode.ERR_BadRetType, "(Action)M1").WithArguments("Program.M1()", "int").
WithLocation
(7, 41)
1541
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "(Action)M1").WithArguments("M1", "System.Action").
WithLocation
(7, 41)
1575
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new Action((Action)M1)").WithArguments("System.Action", "System.Action<string>").
WithLocation
(7, 38)
1609
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new Action((Action)M1)").WithArguments("System.Action", "System.Func<string>").
WithLocation
(7, 36)
1643
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Action<int>((Action)M1)").WithArguments("System.Action.Invoke()", "System.Action<int>").
WithLocation
(7, 35)
1682
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(7, 46)
1723
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "M1").WithArguments("M1", "System.Action<int>").
WithLocation
(7, 35)
1823
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Action<int>(M1)").WithArguments("M1", "System.Action<int>").
WithLocation
(7, 35)
2049
Diagnostic(ErrorCode.ERR_BadTypeArgument, "delegate*<void>").WithArguments("delegate*<void>").
WithLocation
(3, 56)
IOperation\IOperationTests_IDiscardOperation.cs (2)
212
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "b ? i1 : i2").
WithLocation
(6, 14) };
515
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(7, 18) };
IOperation\IOperationTests_IDynamicIndexerAccessExpression.cs (7)
174
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(9, 28)
302
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(10, 21),
305
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(11, 21)
346
Diagnostic(ErrorCode.ERR_BadDynamicMethodArgLambda, "delegate { }").
WithLocation
(9, 29)
379
Diagnostic(ErrorCode.ERR_BadArgCount, "c[d]").WithArguments("this", "1").
WithLocation
(8, 27)
478
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(9, 23),
481
Diagnostic(ErrorCode.ERR_BadSKunknown, "C").WithArguments("C", "type").
WithLocation
(6, 13)
IOperation\IOperationTests_IDynamicInvocationExpression.cs (4)
240
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "F").WithArguments("C.F", "null").
WithLocation
(6, 27)
417
Diagnostic(ErrorCode.ERR_BadDynamicMethodArgLambda, "delegate { }").
WithLocation
(9, 32)
453
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M2").WithArguments("j", "C.M2(int, int)").
WithLocation
(6, 29),
456
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "x = /*<bind>*/c.M2(d)").WithArguments("void").
WithLocation
(6, 13)
IOperation\IOperationTests_IDynamicMemberReferenceExpression.cs (7)
73
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(11, 44)
145
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(9, 25)
182
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(9, 45)
285
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "GetValue<int, C1>").WithArguments("GetValue", "property").
WithLocation
(9, 25),
288
Diagnostic(ErrorCode.ERR_IllegalStatement, "d.GetValue<int, C1>").
WithLocation
(9, 23)
327
Diagnostic(ErrorCode.ERR_TypeExpected, ">").
WithLocation
(9, 38)
689
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "Prop1<int>").WithArguments("Prop1", "property").
WithLocation
(10, 28)
IOperation\IOperationTests_IDynamicObjectCreationExpression.cs (2)
324
Diagnostic(ErrorCode.ERR_BadDynamicMethodArgLambda, "delegate { }").
WithLocation
(9, 25)
359
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "C").WithArguments("j", "C.C(int, int)").
WithLocation
(14, 31)
IOperation\IOperationTests_IEventAssignmentExpression.cs (15)
57
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").
WithLocation
(6, 31)
96
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").
WithLocation
(6, 31)
138
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").
WithLocation
(6, 31)
184
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").
WithLocation
(6, 38)
230
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").
WithLocation
(6, 38)
277
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "t.MyEvent += Handler").WithArguments("Handler", "System.EventHandler").
WithLocation
(18, 19),
280
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").
WithLocation
(6, 31)
327
Diagnostic(ErrorCode.ERR_ObjectProhibited, "t.MyEvent").WithArguments("Test.MyEvent").
WithLocation
(18, 19),
330
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").
WithLocation
(6, 38)
377
Diagnostic(ErrorCode.ERR_ObjectRequired, "Test.MyEvent").WithArguments("Test.MyEvent").
WithLocation
(17, 19),
380
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").
WithLocation
(6, 31)
423
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "MyEvent").WithArguments("Test.MyEvent").
WithLocation
(6, 31)
619
Diagnostic(ErrorCode.ERR_ObjectProhibited, "(c1 ?? c2).MyEvent").WithArguments("C.MyEvent").
WithLocation
(12, 9)
993
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "c.MyEvent += handler").
WithLocation
(11, 10)
1105
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "c.MyEvent += handler").
WithLocation
(11, 10)
IOperation\IOperationTests_IEventReferenceOperation.cs (9)
41
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("C.Event").
WithLocation
(7, 31)
73
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.Event").WithArguments("C.Event").
WithLocation
(11, 19),
76
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("C.Event").
WithLocation
(7, 24)
109
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c.Event").WithArguments("C.Event").
WithLocation
(12, 19),
112
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("C.Event").
WithLocation
(7, 31)
170
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.Event").WithArguments("C.Event").
WithLocation
(10, 19)
202
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c.Event").WithArguments("C.Event").
WithLocation
(11, 19)
433
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c1.Event1").WithArguments("C.Event1").
WithLocation
(12, 20),
436
Diagnostic(ErrorCode.ERR_ObjectProhibited, "(c1 ?? c2).Event1").WithArguments("C.Event1").
WithLocation
(13, 20)
IOperation\IOperationTests_IFieldReferenceExpression.cs (9)
362
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c.i").WithArguments("C.i").
WithLocation
(9, 28),
365
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("C.i", "0").
WithLocation
(4, 16)
393
Diagnostic(ErrorCode.ERR_StaticMemberInObjectInitializer, "i1").WithArguments("C.i1").
WithLocation
(7, 35),
396
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "i1").WithArguments("C.i1").
WithLocation
(4, 16)
425
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("C.i", "0").
WithLocation
(4, 16)
454
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.i").WithArguments("C.i").
WithLocation
(8, 28),
457
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("C.i", "0").
WithLocation
(4, 9)
672
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c1.i").WithArguments("C.i").
WithLocation
(7, 14),
675
Diagnostic(ErrorCode.ERR_ObjectProhibited, "(c1 ?? c2).i").WithArguments("C.i").
WithLocation
(8, 14)
IOperation\IOperationTests_IFixedStatement.cs (6)
310
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(11, 39),
378
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "&p1").WithArguments("int**", "int").
WithLocation
(15, 22)
405
Diagnostic(ErrorCode.ERR_NoImplicitConv, "p").WithArguments("int*", "object").
WithLocation
(9, 46)
492
Diagnostic(ErrorCode.ERR_NoImplicitConv, "p").WithArguments("int*", "object").
WithLocation
(11, 50)
587
Diagnostic(ErrorCode.ERR_FixedNeeded, "&i1").
WithLocation
(7, 29),
590
Diagnostic(ErrorCode.ERR_FixedNeeded, "&i2").
WithLocation
(7, 35)
IOperation\IOperationTests_IForEachLoopStatement.cs (40)
1209
Diagnostic(ErrorCode.ERR_InExpected, ",").
WithLocation
(6, 19),
1212
Diagnostic(ErrorCode.ERR_BadForeachDecl, ",").
WithLocation
(6, 19),
1215
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(6, 19),
1218
Diagnostic(ErrorCode.ERR_CloseParenExpected, ",").
WithLocation
(6, 19),
1221
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(6, 19),
1224
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(6, 19),
1227
Diagnostic(ErrorCode.ERR_RbraceExpected, ",").
WithLocation
(6, 19),
1230
Diagnostic(ErrorCode.ERR_SemicolonExpected, "in").
WithLocation
(6, 23),
1233
Diagnostic(ErrorCode.ERR_RbraceExpected, "in").
WithLocation
(6, 23),
1236
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(6, 27),
1239
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(6, 27),
1242
Diagnostic(ErrorCode.ERR_NameNotInContext, "j").WithArguments("j").
WithLocation
(6, 21)
1279
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(6, 23)
1320
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "i").WithArguments("i").
WithLocation
(7, 32),
1323
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 13)
1369
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(7, 36)
1418
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(7, 42)
1458
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(7, 39)
1831
Diagnostic(ErrorCode.ERR_NoSuchMember, "new Program()").WithArguments("bool", "Current").
WithLocation
(6, 47),
1834
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new Program()").WithArguments("bool", "Extensions.GetAsyncEnumerator(Program)").
WithLocation
(6, 47));
3549
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "e").WithArguments("MyClass", "GetEnumerator").
WithLocation
(6, 27)
3892
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(6, 32)
4450
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "a ?? b").
WithLocation
(6, 42),
4453
Diagnostic(ErrorCode.ERR_MustDeclareForeachIteration, "(var x, (var y, var z), a ?? b)").
WithLocation
(6, 18)
4843
Diagnostic(ErrorCode.ERR_NoSuchMember, "new Program()").WithArguments("bool", "Current").
WithLocation
(7, 31),
4846
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new Program()").WithArguments("bool", "Extensions.GetEnumerator(Program)").
WithLocation
(7, 31)
5361
Diagnostic(ErrorCode.ERR_NoSuchMember, "new Program()").WithArguments("bool", "Current").
WithLocation
(7, 37),
5364
Diagnostic(ErrorCode.ERR_BadGetAsyncEnumerator, "new Program()").WithArguments("bool", "Extensions.GetAsyncEnumerator(Program)").
WithLocation
(7, 37)
5785
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IAsyncEnumerable<string>").WithArguments("IAsyncEnumerable<>", "System.Collections.Generic").
WithLocation
(7, 55)
6947
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "c").WithArguments("arr", "CExt.GetEnumerator(C, params int[], int)").
WithLocation
(6, 27),
6950
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "c").WithArguments("C", "GetEnumerator").
WithLocation
(6, 27),
6953
Diagnostic(ErrorCode.ERR_ParamsLast, "params int[] arr").
WithLocation
(18, 54)
7041
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "c").WithArguments("i", "CExt.GetEnumerator(C, params int)").
WithLocation
(6, 27),
7044
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "c").WithArguments("C", "GetEnumerator").
WithLocation
(6, 27),
7047
Diagnostic(ErrorCode.ERR_ParamsMustBeArray, "params").
WithLocation
(18, 54),
7050
Diagnostic(ErrorCode.ERR_DefaultValueForParamsParameter, "params").
WithLocation
(18, 54)
7165
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "c").WithArguments("i", "CExt.GetEnumerator(C, params int)").
WithLocation
(6, 27),
7168
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "c").WithArguments("C", "GetEnumerator").
WithLocation
(6, 27)
7282
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "c").WithArguments("i2", "CExt.GetEnumerator(C, int, int)").
WithLocation
(6, 27),
7285
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "c").WithArguments("C", "GetEnumerator").
WithLocation
(6, 27)
IOperation\IOperationTests_IIfStatement.cs (53)
53
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "condition").WithArguments("condition").
WithLocation
(6, 14)
106
Diagnostic(ErrorCode.WRN_UnreachableCode, "condition").
WithLocation
(13, 13),
109
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "condition").WithArguments("condition").
WithLocation
(6, 14)
156
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "condition").WithArguments("condition").
WithLocation
(6, 14)
931
Diagnostic(ErrorCode.ERR_ElseCannotStartStatement, "").
WithLocation
(7, 6),
934
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(7, 6),
937
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(7, 6),
940
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(7, 6),
943
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(7, 6),
946
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 6)
1036
Diagnostic(ErrorCode.ERR_ElseCannotStartStatement, "").
WithLocation
(20, 14),
1039
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(20, 14),
1042
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(20, 14),
1045
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(20, 14),
1048
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(20, 14),
1051
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(20, 14)
1108
Diagnostic(ErrorCode.ERR_ElseCannotStartStatement, "").
WithLocation
(12, 28),
1111
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(12, 28),
1114
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(12, 28),
1117
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(12, 28),
1120
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(12, 28),
1123
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(12, 28)
1190
Diagnostic(ErrorCode.ERR_ElseCannotStartStatement, "").
WithLocation
(12, 20),
1193
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(12, 20),
1196
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(12, 20),
1199
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(12, 20),
1202
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(12, 20),
1205
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(12, 20),
1208
Diagnostic(ErrorCode.ERR_ElseCannotStartStatement, "").
WithLocation
(15, 14),
1211
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(15, 14),
1214
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(15, 14),
1217
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(15, 14),
1220
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(15, 14),
1223
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(15, 14)
1279
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("}").
WithLocation
(14, 13),
1282
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(14, 13)
1338
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(9, 23),
1341
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").
WithLocation
(8, 13)
1395
Diagnostic(ErrorCode.ERR_ElseCannotStartStatement, "").
WithLocation
(10, 30),
1398
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(10, 30),
1401
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(10, 30),
1404
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(10, 30),
1407
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("else").
WithLocation
(10, 30),
1410
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(10, 30),
1413
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("}").
WithLocation
(11, 13),
1416
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(11, 13)
1470
Diagnostic(ErrorCode.WRN_UnreachableCode, "B").
WithLocation
(11, 13)
1606
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "condition").WithArguments("condition").
WithLocation
(6, 14)
1678
Diagnostic(ErrorCode.WRN_UnreachableCode, "condition").
WithLocation
(13, 13),
1681
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "condition").WithArguments("condition").
WithLocation
(6, 14)
2544
Diagnostic(ErrorCode.ERR_NoImplicitConv, "a ? b : c").WithArguments("P", "bool").
WithLocation
(6, 13)
3043
Diagnostic(ErrorCode.ERR_NoImplicitConv, "a ?? b").WithArguments("P", "bool").
WithLocation
(6, 13)
3409
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(6, 13)
IOperation\IOperationTests_IInstanceReferenceTests.cs (1)
64
Diagnostic(ErrorCode.ERR_NoSuchMember, "M1").WithArguments("object", "M1").
WithLocation
(8, 35)
IOperation\IOperationTests_IInterpolatedStringOperation.cs (19)
138
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(8, 40)
459
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(8, 47),
462
Diagnostic(ErrorCode.ERR_BadSKunknown, "Class").WithArguments("Class", "type").
WithLocation
(8, 65)
1347
Diagnostic(ErrorCode.ERR_ConstantExpected, "(a ? b : c)").
WithLocation
(8, 18)
1443
Diagnostic(ErrorCode.ERR_NoImplicitConv, "a ? b : c").WithArguments("string", "int").
WithLocation
(8, 20)
1741
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""literal{i}""").WithArguments("CustomHandler", "2").
WithLocation
(4, 29),
1744
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""literal{i}""").WithArguments("CustomHandler", "3").
WithLocation
(4, 29),
1747
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "literal").WithArguments("CustomHandler", "AppendLiteral").
WithLocation
(4, 31),
1750
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "literal").WithArguments("?.()").
WithLocation
(4, 31),
1753
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "{i}").WithArguments("CustomHandler", "AppendFormatted").
WithLocation
(4, 38),
1756
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "{i}").WithArguments("?.()").
WithLocation
(4, 38)
1897
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(3, 32)
3725
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentLocatedAfterInterpolatedString, "true").WithArguments("b", "c").
WithLocation
(11, 43)
3902
Diagnostic(ErrorCode.ERR_InterpolatedStringsReferencingInstanceCannotBeInObjectInitializers, @"$""literal""").
WithLocation
(11, 36)
4193
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgument("""", ""b"")").WithArguments("C.C(bool, CustomHandler)").
WithLocation
(7, 23),
4196
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""literal{c,1:format}""").WithArguments("CustomHandler c1", "CustomHandler").
WithLocation
(11, 25)
4485
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerCreationCannotUseDynamic, @"$""{1}literal""").WithArguments("CustomHandler").
WithLocation
(4, 16)
4582
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerCreationCannotUseDynamic, @"$""{1}literal""").WithArguments("CustomHandler").
WithLocation
(9, 15)
5460
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "ref").
WithLocation
(8, 16)
IOperation\IOperationTests_IInvocationOperation.cs (4)
39
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c.M1").WithArguments("C.M1()").
WithLocation
(9, 19)
94
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.M1").WithArguments("C.M1()").
WithLocation
(8, 19)
617
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c1.M2").WithArguments("MyClass.M2(object)").
WithLocation
(6, 9),
620
Diagnostic(ErrorCode.ERR_ObjectProhibited, "(c1 ?? c2).M2").WithArguments("MyClass.M2(object)").
WithLocation
(7, 9)
IOperation\IOperationTests_IIsPatternExpression.cs (55)
147
Diagnostic(ErrorCode.ERR_PatternDynamicType, "dynamic").
WithLocation
(7, 28)
244
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "12.0").WithArguments("double", "int?").
WithLocation
(8, 28)
280
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(8, 28)
311
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UndefinedType").WithArguments("UndefinedType").
WithLocation
(8, 28)
344
Diagnostic(ErrorCode.ERR_ConstantExpected, "y").
WithLocation
(8, 28)
375
Diagnostic(ErrorCode.ERR_PatternWrongType, "X").WithArguments("int?", "X").
WithLocation
(8, 28)
406
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y").WithArguments("y").
WithLocation
(8, 32)
437
Diagnostic(ErrorCode.ERR_CloseParenExpected, ",").
WithLocation
(8, 45),
440
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(8, 45),
443
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(8, 45),
446
Diagnostic(ErrorCode.ERR_RbraceExpected, ",").
WithLocation
(8, 45),
449
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(8, 49),
452
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(8, 49),
455
Diagnostic(ErrorCode.ERR_NameNotInContext, "y3").WithArguments("y3").
WithLocation
(8, 47)
485
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "const").WithArguments("const").
WithLocation
(8, 39),
488
Diagnostic(ErrorCode.ERR_CloseParenExpected, "const").
WithLocation
(8, 39),
491
Diagnostic(ErrorCode.ERR_ConstValueRequired, "y").
WithLocation
(8, 49),
494
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(8, 50),
497
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(8, 50),
500
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "const int y").
WithLocation
(8, 39),
503
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(8, 70),
506
Diagnostic(ErrorCode.WRN_UnreferencedVar, "y").WithArguments("y").
WithLocation
(8, 49)
537
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "string.Empty is string y").WithArguments("x").
WithLocation
(5, 33)
627
Diagnostic(ErrorCode.ERR_NotNullConstRefField, "1").WithArguments("C.o", "object").
WithLocation
(12, 30),
630
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "o is int x/*</bind>*/ && x >= 5").
WithLocation
(9, 14)
1067
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field").WithArguments("C.field", "null").
WithLocation
(4, 7)
1135
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field").WithArguments("C.field", "null").
WithLocation
(4, 7)
1185
Diagnostic(ErrorCode.ERR_NoSuchMember, "prop").WithArguments("C", "prop").
WithLocation
(6, 33)
1238
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "action").WithArguments("C.action").
WithLocation
(5, 32),
1241
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "action").WithArguments("action").
WithLocation
(8, 38)
1284
Diagnostic(ErrorCode.ERR_NoSuchMember, "NotFound").WithArguments("(int X, int Y)", "NotFound").
WithLocation
(6, 41)
1321
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "Prop[1]").WithArguments("type pattern", "9.0").
WithLocation
(6, 33),
1324
Diagnostic(ErrorCode.ERR_PropertyPatternNameMissing, "Prop[1]").WithArguments("Prop[1]").
WithLocation
(6, 33),
1327
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Prop").WithArguments("Prop").
WithLocation
(6, 33),
1330
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[1]").
WithLocation
(6, 37),
1333
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(6, 40),
1336
Diagnostic(ErrorCode.ERR_SyntaxError, "var").WithArguments(",").
WithLocation
(6, 42));
1394
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "Prop").WithArguments("Prop").
WithLocation
(6, 33));
1437
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "A").WithArguments("A").
WithLocation
(6, 32),
1440
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "A").WithArguments("D.A").
WithLocation
(11, 32)
1484
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "B").WithArguments("B").
WithLocation
(6, 32)
1528
Diagnostic(ErrorCode.ERR_BadTypeReference, "C").WithArguments("C", "D.C").
WithLocation
(6, 32),
1531
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "C").WithArguments("C").
WithLocation
(6, 32)
1575
Diagnostic(ErrorCode.ERR_ObjectProhibited, "X").WithArguments("D.X").
WithLocation
(6, 32)
1620
Diagnostic(ErrorCode.ERR_ObjectProhibited, "X").WithArguments("D.X").
WithLocation
(6, 32)
1665
Diagnostic(ErrorCode.ERR_ObjectProhibited, "X").WithArguments("D.X").
WithLocation
(6, 32)
2183
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 13)
2225
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 13)
2324
Diagnostic(ErrorCode.ERR_ListPatternRequiresLength, "[]").WithArguments("X").
WithLocation
(8, 31),
2327
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "[]").WithArguments("System.Index").
WithLocation
(8, 31)
2361
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[]").WithArguments("X").
WithLocation
(8, 31)
2401
Diagnostic(ErrorCode.ERR_BadArgType, ".. 0").WithArguments("1", "System.Range", "int").
WithLocation
(9, 32)
2434
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, "..").
WithLocation
(6, 28)
2472
Diagnostic(ErrorCode.ERR_MisplacedSlicePattern, ".. 42").
WithLocation
(6, 28),
2475
Diagnostic(ErrorCode.ERR_NoImplicitConv, "42").WithArguments("int", "int[]").
WithLocation
(6, 31)
IOperation\IOperationTests_IIsTypeExpression.cs (3)
77
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "myInt is int").WithArguments("int").
WithLocation
(13, 32)
147
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "null is TestType").WithArguments("TestIsOperator.TestType").
WithLocation
(14, 32)
178
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "1 is color").WithArguments("color").
WithLocation
(6, 27)
IOperation\IOperationTests_ILocalFunctionStatement.cs (21)
328
Diagnostic(ErrorCode.ERR_UseDefViolation, "F()").WithArguments("x").
WithLocation
(6, 9)
395
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 40),
398
Diagnostic(ErrorCode.ERR_ParamUnassigned, "F").WithArguments("y").
WithLocation
(6, 24),
401
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F").WithArguments("F").
WithLocation
(6, 24)
430
Diagnostic(ErrorCode.ERR_CloseParenExpected, "{").
WithLocation
(6, 27),
433
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F").WithArguments("F").
WithLocation
(6, 24)
459
Diagnostic(ErrorCode.ERR_ReturnExpected, "F").WithArguments("F()").
WithLocation
(6, 21),
462
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("X").
WithLocation
(6, 19),
465
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F").WithArguments("F").
WithLocation
(6, 21)
497
Diagnostic(ErrorCode.ERR_RetNoObjectRequired, "return").WithArguments("C.M(int)").
WithLocation
(6, 49),
500
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F").WithArguments("F").
WithLocation
(6, 26)
541
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "object F() { return new object(); } => null;").
WithLocation
(6, 19),
544
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F").WithArguments("F").
WithLocation
(6, 26)
638
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "x").WithArguments("x").
WithLocation
(14, 20)
695
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "ToString").
WithLocation
(7, 34),
698
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "this").
WithLocation
(7, 47),
701
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "base").
WithLocation
(7, 68)
897
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 44),
900
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "local").WithArguments("local(bool, bool)").
WithLocation
(7, 14)
991
=> result = input2;").
WithLocation
(7, 9)
2032
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "x").WithArguments("x").
WithLocation
(10, 52)
IOperation\IOperationTests_ILockStatement.cs (7)
128
Diagnostic(ErrorCode.ERR_LockNeedsReference, "i").WithArguments("int").
WithLocation
(7, 25)
160
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 25)
194
Diagnostic(ErrorCode.ERR_NameNotInContext, "invalidReference").WithArguments("invalidReference").
WithLocation
(8, 25)
227
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("}").
WithLocation
(7, 27),
230
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 27)
332
Diagnostic(ErrorCode.ERR_LockNeedsReference, "M2()").WithArguments("void").
WithLocation
(6, 25)
732
Diagnostic(ErrorCode.ERR_LockNeedsReference, "input1").WithArguments("int").
WithLocation
(6, 15)
IOperation\IOperationTests_IMethodBodyOperation.cs (12)
167
=> throw null;").
WithLocation
(4, 5)
330
=> i2 = j2;").
WithLocation
(4, 5));
397
=> throw null;").
WithLocation
(4, 5));
503
=> M2(out int x);").
WithLocation
(4, 5));
556
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "!").WithArguments("C.operator !(C)").
WithLocation
(4, 30)
653
=> throw null;").
WithLocation
(4, 5)
698
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "int").WithArguments("C.implicit operator int(C)").
WithLocation
(4, 37)
795
=> throw null;").
WithLocation
(4, 5)
840
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "C").WithArguments("C.~C()").
WithLocation
(4, 6)
934
=> throw null;").
WithLocation
(4, 5)
1076
=> throw null;").
WithLocation
(6, 9)
1118
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "int P { get; } => throw null;").
WithLocation
(4, 5)
IOperation\IOperationTests_IMethodReferenceOperation.cs (2)
300
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c1.M1").WithArguments("C.M1()").
WithLocation
(7, 14),
303
Diagnostic(ErrorCode.ERR_ObjectProhibited, "(c1 ?? c2).M1").WithArguments("C.M1()").
WithLocation
(8, 14)
IOperation\IOperationTests_INameOfOperation.cs (4)
32
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "b ? i1 : i2").
WithLocation
(6, 30),
35
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "test").WithArguments("test").
WithLocation
(6, 16)
82
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "test").WithArguments("test").
WithLocation
(6, 16)
198
Diagnostic(ErrorCode.ERR_NameNotInContext, "test2").WithArguments("test2").
WithLocation
(6, 30)
IOperation\IOperationTests_INoneOperation.cs (1)
265
Diagnostic(ErrorCode.ERR_PtrIndexSingle, "i[1, (a ? b : c)]").
WithLocation
(6, 13)
IOperation\IOperationTests_InvalidExpression.cs (31)
43
Diagnostic(ErrorCode.ERR_NoSuchMember, "WriteLine2").WithArguments("System.Console", "WriteLine2").
WithLocation
(8, 27)
78
Diagnostic(ErrorCode.ERR_BadArgType, "string.Empty").WithArguments("1", "string", "int").
WithLocation
(8, 21)
113
Diagnostic(ErrorCode.ERR_BadArgCount, "F").WithArguments("F", "1").
WithLocation
(8, 19)
150
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "MissingField").WithArguments("Program", "MissingField").
WithLocation
(9, 29)
196
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x.i1").WithArguments("int", "string").
WithLocation
(10, 30),
199
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i1").WithArguments("Program.i1", "0").
WithLocation
(6, 9)
245
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(Program)x.i1").WithArguments("int", "Program").
WithLocation
(10, 31),
248
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i1").WithArguments("Program.i1", "0").
WithLocation
(6, 9)
282
Diagnostic(ErrorCode.ERR_BadUnaryOp, "++x").WithArguments("++", "Program").
WithLocation
(9, 33)
325
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(9, 38)
436
Diagnostic(ErrorCode.ERR_BadSKunknown, "Program").WithArguments("Program", "type").
WithLocation
(4, 23),
439
Diagnostic(ErrorCode.ERR_BadSKunknown, "Program").WithArguments("Program", "type").
WithLocation
(7, 37)
486
Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 1, 1 }").
WithLocation
(6, 45),
489
Diagnostic(ErrorCode.ERR_ArrayInitializerIncorrectLength, "{ { 1, 1 } }").WithArguments("2").
WithLocation
(6, 43)
532
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("X").
WithLocation
(6, 31),
535
Diagnostic(ErrorCode.ERR_BadSKunknown, "Program").WithArguments("Program", "type").
WithLocation
(6, 33),
538
Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 1 }").
WithLocation
(6, 44)
572
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M()").WithArguments("p").
WithLocation
(10, 30)
602
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "format").WithArguments("format").
WithLocation
(6, 45)
634
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "a").WithArguments("a").
WithLocation
(10, 27)
664
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "a").WithArguments("a").
WithLocation
(7, 32)
698
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "a").WithArguments("a").
WithLocation
(11, 43)
732
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "a").WithArguments("a").
WithLocation
(11, 30)
764
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "a").WithArguments("a").
WithLocation
(10, 33)
794
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "a").WithArguments("a").
WithLocation
(7, 38)
828
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "a").WithArguments("a").
WithLocation
(11, 49)
862
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "a").WithArguments("a").
WithLocation
(11, 36)
883
Diagnostic(ErrorCode.ERR_NameNotInContext, "M").WithArguments("M").
WithLocation
(7, 13)
938
Diagnostic(ErrorCode.ERR_NameNotInContext, "M").WithArguments("M").
WithLocation
(7, 13)
1040
Diagnostic(ErrorCode.ERR_NameNotInContext, "M").WithArguments("M").
WithLocation
(7, 13)
1138
Diagnostic(ErrorCode.ERR_NameNotInContext, "M").WithArguments("M").
WithLocation
(7, 13)
IOperation\IOperationTests_InvalidStatement.cs (26)
51
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(8, 26),
54
Diagnostic(ErrorCode.ERR_BadVarDecl, "( 1 ").
WithLocation
(8, 26),
57
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(8, 26),
60
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(8, 30),
63
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(8, 23)
111
Diagnostic(ErrorCode.ERR_BadSKunknown, "Program").WithArguments("Program", "type").
WithLocation
(8, 27),
114
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "Program").
WithLocation
(10, 18)
162
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "string").
WithLocation
(11, 18)
208
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x = null").WithArguments("Program", "bool").
WithLocation
(9, 23)
261
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(9, 23),
264
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("}").
WithLocation
(13, 13),
267
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(13, 13),
270
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("Program", "bool").
WithLocation
(12, 18),
273
Diagnostic(ErrorCode.ERR_IllegalStatement, "x").
WithLocation
(12, 21)
316
Diagnostic(ErrorCode.ERR_NameNotInContext, "P").WithArguments("P").
WithLocation
(9, 24),
319
Diagnostic(ErrorCode.ERR_IllegalStatement, "P").
WithLocation
(9, 24),
322
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("Program", "bool").
WithLocation
(9, 27)
356
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto case 1;").WithArguments("case 1:").
WithLocation
(11, 27)
403
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case (string s1, string s2) _:").WithArguments("case (string s1, string s2) _:").
WithLocation
(10, 13),
406
Diagnostic(ErrorCode.ERR_NoImplicitConv, "goto case args is (var x1, var x2);").WithArguments("bool", "(string, string)").
WithLocation
(11, 27),
409
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(var x1, var x2)").WithArguments("string[]", "Deconstruct").
WithLocation
(11, 45),
412
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(var x1, var x2)").WithArguments("string[]", "2").
WithLocation
(11, 45)
441
Diagnostic(ErrorCode.ERR_InvalidGotoCase, "goto case 1;").
WithLocation
(8, 19)
469
Diagnostic(ErrorCode.ERR_NoBreakOrCont, "break;").
WithLocation
(8, 19)
497
Diagnostic(ErrorCode.ERR_NoBreakOrCont, "continue;").
WithLocation
(8, 19)
526
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto case 1;").WithArguments("case 1:").
WithLocation
(11, 27)
IOperation\IOperationTests_IObjectCreationExpression.cs (82)
379
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "B").
WithLocation
(21, 36),
382
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, @"{ """" }").WithArguments("F").
WithLocation
(22, 22)
695
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field").WithArguments("C.field", "0").
WithLocation
(5, 26)
1064
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "a").WithArguments("C.a").
WithLocation
(4, 11)
1191
Diagnostic(ErrorCode.ERR_NoSuchMember, "MissingMember").WithArguments("C", "MissingMember").
WithLocation
(6, 34)
1239
Diagnostic(ErrorCode.ERR_NoSuchMember, "MissingField").WithArguments("C", "MissingField").
WithLocation
(6, 33)
1290
Diagnostic(ErrorCode.ERR_NoSuchMember, "MissingField").WithArguments("C", "MissingField").
WithLocation
(7, 33)
1382
Diagnostic(ErrorCode.ERR_NameNotInContext, "bad").WithArguments("bad").
WithLocation
(1, 27)
1404
Diagnostic(ErrorCode.ERR_NameNotInContext, "bad").WithArguments("bad").
WithLocation
(2, 19)
1432
Diagnostic(ErrorCode.ERR_NameNotInContext, "bad").WithArguments("bad").
WithLocation
(5, 27)
1460
Diagnostic(ErrorCode.ERR_NameNotInContext, "bad").WithArguments("bad").
WithLocation
(5, 28)
1488
Diagnostic(ErrorCode.ERR_NameNotInContext, "bad").WithArguments("bad").
WithLocation
(5, 43)
1881
Diagnostic(ErrorCode.ERR_InitializerAddHasParamModifiers, "1").WithArguments("C.Add(ref int)").
WithLocation
(9, 33),
1884
Diagnostic(ErrorCode.ERR_InitializerAddHasParamModifiers, "2").WithArguments("C.Add(ref int)").
WithLocation
(9, 36),
1887
Diagnostic(ErrorCode.ERR_InitializerAddHasParamModifiers, "3").WithArguments("C.Add(ref int)").
WithLocation
(9, 39)
2146
Diagnostic(ErrorCode.ERR_InitializerAddHasWrongSignature, "1").WithArguments("C.Add(int)").
WithLocation
(9, 33),
2149
Diagnostic(ErrorCode.ERR_InitializerAddHasWrongSignature, "2").WithArguments("C.Add(int)").
WithLocation
(9, 36),
2152
Diagnostic(ErrorCode.ERR_InitializerAddHasWrongSignature, "3").WithArguments("C.Add(int)").
WithLocation
(9, 39)
2666
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "B").
WithLocation
(24, 40),
2669
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, @"{ """" }").WithArguments("F").
WithLocation
(25, 26)
2728
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field").WithArguments("C.field", "0").
WithLocation
(6, 26)
2982
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "a").WithArguments("C.a").
WithLocation
(4, 11)
3020
Diagnostic(ErrorCode.ERR_NoSuchMember, "MissingMember").WithArguments("C", "MissingMember").
WithLocation
(6, 38)
3068
Diagnostic(ErrorCode.ERR_NoSuchMember, "MissingField").WithArguments("C", "MissingField").
WithLocation
(6, 37)
3120
Diagnostic(ErrorCode.ERR_NoSuchMember, "MissingField").WithArguments("C", "MissingField").
WithLocation
(8, 37)
3401
Diagnostic(ErrorCode.ERR_InitializerAddHasParamModifiers, "1").WithArguments("C.Add(ref int)").
WithLocation
(10, 35),
3404
Diagnostic(ErrorCode.ERR_InitializerAddHasParamModifiers, "2").WithArguments("C.Add(ref int)").
WithLocation
(10, 38),
3407
Diagnostic(ErrorCode.ERR_InitializerAddHasParamModifiers, "3").WithArguments("C.Add(ref int)").
WithLocation
(10, 41)
3681
Diagnostic(ErrorCode.ERR_InitializerAddHasWrongSignature, "1").WithArguments("C.Add(int)").
WithLocation
(10, 35),
3684
Diagnostic(ErrorCode.ERR_InitializerAddHasWrongSignature, "2").WithArguments("C.Add(int)").
WithLocation
(10, 38),
3687
Diagnostic(ErrorCode.ERR_InitializerAddHasWrongSignature, "3").WithArguments("C.Add(int)").
WithLocation
(10, 41)
5186
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "{").WithArguments("{").
WithLocation
(8, 70),
5189
Diagnostic(ErrorCode.ERR_CloseParenExpected, "{").
WithLocation
(8, 70),
5192
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(":").
WithLocation
(8, 70),
5195
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "{").WithArguments("{").
WithLocation
(8, 70),
5198
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(8, 70),
5201
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(8, 88),
5204
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(8, 88),
5207
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(8, 88),
5210
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(8, 88),
5213
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "{").WithArguments("{").
WithLocation
(8, 93),
5216
Diagnostic(ErrorCode.ERR_CloseParenExpected, "{").
WithLocation
(8, 93),
5219
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(8, 93),
5222
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(8, 101),
5225
Diagnostic(ErrorCode.ERR_RbraceExpected, ",").
WithLocation
(8, 101),
5228
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(8, 110),
5231
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(8, 111),
5234
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(10, 5),
5237
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(11, 1),
5240
Diagnostic(ErrorCode.ERR_NameNotInContext, "P1").WithArguments("P1").
WithLocation
(8, 72),
5243
Diagnostic(ErrorCode.ERR_NameNotInContext, "P2").WithArguments("P2").
WithLocation
(8, 80),
5246
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "{ P1 = 3, P2 = 4 }").
WithLocation
(8, 70),
5249
Diagnostic(ErrorCode.ERR_NameNotInContext, "P1").WithArguments("P1").
WithLocation
(8, 95),
5252
Diagnostic(ErrorCode.ERR_NameNotInContext, "P2").WithArguments("P2").
WithLocation
(8, 103)
6948
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, "{ O[b ? 1 : 2] = null }").WithArguments("C1").
WithLocation
(6, 24),
6951
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "O[b ? 1 : 2] = null").
WithLocation
(6, 26)
7364
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "C32").WithArguments("C2.C32", "null").
WithLocation
(19, 15)
8574
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "C32").WithArguments("C2.C32", "null").
WithLocation
(21, 15)
8751
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "ev").WithArguments("C1.ev").
WithLocation
(6, 39)
8823
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "ev").WithArguments("C1.ev").
WithLocation
(6, 39)
8943
Diagnostic(ErrorCode.ERR_BadEventUsage, "ev").WithArguments("C2.ev", "C2").
WithLocation
(10, 33),
8946
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "ev").WithArguments("C2.ev").
WithLocation
(16, 39)
9068
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "P1 ?? P2").
WithLocation
(11, 38),
9071
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "(P1 ?? P2) = null").
WithLocation
(11, 37)
9208
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "P1 ?? P2").
WithLocation
(11, 38),
9211
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "(P1 ?? P2) = null").
WithLocation
(11, 37),
9214
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "P2").WithArguments("C1.P2", "null").
WithLocation
(7, 19)
9482
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, "{ (C21 ?? C22).I1 = 1 }").WithArguments("Class").
WithLocation
(8, 29),
9485
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "(C21 ?? C22).I1 = 1").
WithLocation
(8, 31)
9768
Diagnostic(ErrorCode.ERR_NoSuchMember, "C21").WithArguments("Class", "C21").
WithLocation
(6, 31)
9854
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[GetInt()]").WithArguments("Class").
WithLocation
(6, 31)
9944
Diagnostic(ErrorCode.ERR_BadIndexLHS, "[GetInt() ?? 1]").WithArguments("Class").
WithLocation
(6, 31)
11511
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(6, 33)
13853
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "C1").WithArguments("x", "C1.C1(int)").
WithLocation
(11, 17)
13926
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "C1").WithArguments("C1", "1").
WithLocation
(9, 17)
13999
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "C1").WithArguments("C1", "2").
WithLocation
(9, 17)
14135
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "C1").WithArguments("C1", "1").
WithLocation
(9, 17)
14256
Diagnostic(ErrorCode.ERR_ObjectRequired, "y").WithArguments("MemberInitializerTest.y").
WithLocation
(7, 52),
14259
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "y++").
WithLocation
(7, 52)
14800
Diagnostic(ErrorCode.ERR_StaticMemberInObjectInitializer, "i1").WithArguments("C.i1").
WithLocation
(7, 25),
14803
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "i1").WithArguments("C.i1").
WithLocation
(4, 16)
15050
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T2 { }").WithArguments("T2").
WithLocation
(7, 14)
IOperation\IOperationTests_IParameterReferenceExpression.cs (6)
44
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "tuple").WithArguments("tuple").
WithLocation
(6, 13)
396
Diagnostic(ErrorCode.ERR_MethodNameExpected, "x").
WithLocation
(10, 40)
490
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").
WithLocation
(4, 23)
525
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").
WithLocation
(6, 24)
740
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").
WithLocation
(6, 24)
997
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "I").WithArguments("I", "1").
WithLocation
(6, 24)
IOperation\IOperationTests_IParenthesized.cs (1)
498
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(6, 27)
IOperation\IOperationTests_IPatternSwitchCase.cs (16)
157
Diagnostic(ErrorCode.ERR_PatternDynamicType, "dynamic").
WithLocation
(9, 28)
352
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ":").WithArguments(":").
WithLocation
(9, 37)
389
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("object", "bool").
WithLocation
(9, 37)
425
Diagnostic(ErrorCode.ERR_ConstantExpected, "x is true").
WithLocation
(9, 28)
487
Diagnostic(ErrorCode.ERR_ConstantExpected, "typeof(X)").
WithLocation
(9, 28)
519
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UndefinedType").WithArguments("UndefinedType").
WithLocation
(9, 28)
551
Diagnostic(ErrorCode.ERR_PatternWrongType, "X").WithArguments("int?", "X").
WithLocation
(9, 28)
584
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y").WithArguments("y").
WithLocation
(10, 32),
587
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(7, 14)
620
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "const").WithArguments("const").
WithLocation
(9, 39),
623
Diagnostic(ErrorCode.ERR_SyntaxError, "const").WithArguments(":").
WithLocation
(9, 39),
626
Diagnostic(ErrorCode.ERR_ConstValueRequired, "y").
WithLocation
(9, 49),
629
Diagnostic(ErrorCode.ERR_SemicolonExpected, ":").
WithLocation
(9, 50),
632
Diagnostic(ErrorCode.ERR_RbraceExpected, ":").
WithLocation
(9, 50),
635
Diagnostic(ErrorCode.WRN_UnreferencedVar, "y").WithArguments("y").
WithLocation
(9, 49)
696
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "int y").
WithLocation
(11, 18)
IOperation\IOperationTests_IPropertyReferenceExpression.cs (10)
77
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c.I").WithArguments("C.I").
WithLocation
(9, 28)
131
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.I").WithArguments("C.I").
WithLocation
(8, 28)
170
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c.list").WithArguments("C.list").
WithLocation
(11, 28)
242
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.list").WithArguments("C.list").
WithLocation
(10, 28)
282
Diagnostic(ErrorCode.ERR_BadSKunknown, "C").WithArguments("C", "type").
WithLocation
(12, 28)
322
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(4, 21),
325
Diagnostic(ErrorCode.ERR_BadSKunknown, "C").WithArguments("C", "type").
WithLocation
(12, 28)
353
Diagnostic(ErrorCode.ERR_StaticMemberInObjectInitializer, "I1").WithArguments("C.I1").
WithLocation
(7, 35)
587
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c1.P1").WithArguments("C.P1").
WithLocation
(7, 14),
590
Diagnostic(ErrorCode.ERR_ObjectProhibited, "(c1 ?? c2).P1").WithArguments("C.P1").
WithLocation
(8, 14)
IOperation\IOperationTests_IReturnStatement.cs (7)
137
Diagnostic(ErrorCode.ERR_LiteralDoubleCast, "0.0").WithArguments("F", "float").
WithLocation
(6, 26)
223
Diagnostic(ErrorCode.WRN_UnreachableCode, "a").
WithLocation
(7, 9)
268
Diagnostic(ErrorCode.WRN_UnreachableCode, "a").
WithLocation
(7, 9)
638
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(7, 9)
681
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(7, 9)
1220
Diagnostic(ErrorCode.WRN_UnreachableCode, "a").
WithLocation
(7, 9)
1607
Diagnostic(ErrorCode.WRN_UnreachableCode, "yield").
WithLocation
(7, 9)
IOperation\IOperationTests_ISizeOfExpression.cs (13)
62
Diagnostic(ErrorCode.WRN_ManagedAddr, "sizeof(C)").WithArguments("C").
WithLocation
(8, 23),
65
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(C)").WithArguments("C").
WithLocation
(8, 23)
117
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UndefinedType").WithArguments("UndefinedType").
WithLocation
(8, 30),
120
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(UndefinedType)").WithArguments("UndefinedType").
WithLocation
(8, 23)
148
Diagnostic(ErrorCode.ERR_BadSKknown, "i").WithArguments("i", "variable", "type").
WithLocation
(8, 30),
151
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(i)").WithArguments("i").
WithLocation
(8, 23)
183
Diagnostic(ErrorCode.ERR_CloseParenExpected, "(").
WithLocation
(8, 32),
186
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(8, 45),
189
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(8, 45),
192
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "M2").WithArguments("M2").
WithLocation
(8, 30),
195
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(M2").WithArguments("M2").
WithLocation
(8, 23)
223
Diagnostic(ErrorCode.ERR_TypeExpected, ")").
WithLocation
(8, 30),
226
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof()").WithArguments("?").
WithLocation
(8, 23)
IOperation\IOperationTests_ISwitchExpression.cs (14)
147
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(7, 25)
183
Diagnostic(ErrorCode.ERR_MissingPattern, "=>").
WithLocation
(7, 34)
231
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(7, 23)
319
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(7, 29)
352
Diagnostic(ErrorCode.ERR_SyntaxError, "5").WithArguments("=>").
WithLocation
(7, 43)
386
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(7, 45)
425
Diagnostic(ErrorCode.ERR_NameNotInContext, "NotFound").WithArguments("NotFound").
WithLocation
(7, 34)
459
Diagnostic(ErrorCode.ERR_NameNotInContext, "NotFound").WithArguments("NotFound").
WithLocation
(7, 39)
499
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "1").
WithLocation
(7, 42)
579
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveWithWhen, "switch").WithArguments("0").
WithLocation
(7, 25)
656
Diagnostic(ErrorCode.ERR_NameNotInContext, "NotFound").WithArguments("NotFound").
WithLocation
(7, 41)
700
Diagnostic(ErrorCode.ERR_LocalDuplicate, "z").WithArguments("z").
WithLocation
(7, 54)
1191
Diagnostic(ErrorCode.ERR_NameNotInContext, "NotFound").WithArguments("NotFound").
WithLocation
(7, 18)
1410
Diagnostic(ErrorCode.ERR_ConstantExpected, "a ? input1 : input2").
WithLocation
(9, 18)
IOperation\IOperationTests_ISwitchOperation.cs (26)
1045
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto case 3;").WithArguments("case 3:").
WithLocation
(9, 17),
1048
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 1:").WithArguments("case 1:").
WithLocation
(8, 13)
1122
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "default:").WithArguments("default").
WithLocation
(14, 13),
1125
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "result = result").
WithLocation
(12, 17)
1225
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1L").WithArguments("long", "int").
WithLocation
(8, 18)
1311
Diagnostic(ErrorCode.ERR_ConstantExpected, "other").
WithLocation
(8, 18)
1395
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "MyClass").
WithLocation
(8, 18)
1474
Diagnostic(ErrorCode.ERR_ConstantExpected, "1").
WithLocation
(8, 18)
1552
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("switch").
WithLocation
(5, 16),
1555
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 1:").WithArguments("case 1:").
WithLocation
(6, 13)
1623
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 13),
1626
Diagnostic(ErrorCode.ERR_SemicolonExpected, ":").
WithLocation
(6, 20),
1629
Diagnostic(ErrorCode.ERR_RbraceExpected, ":").
WithLocation
(6, 20),
1632
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(10, 1)
1818
Diagnostic(ErrorCode.ERR_ConstantExpected, "other").
WithLocation
(8, 18)
1889
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "other").WithArguments("int?", "int").
WithLocation
(8, 18),
1892
Diagnostic(ErrorCode.ERR_ConstantExpected, "other").
WithLocation
(8, 18)
2081
Diagnostic(ErrorCode.ERR_ConstantExpected, "other").
WithLocation
(8, 18)
2256
Diagnostic(ErrorCode.ERR_ConstantExpected, "input1 ?? input2").
WithLocation
(8, 18)
2533
Diagnostic(ErrorCode.ERR_ConstantExpected, "other ?? 1").
WithLocation
(8, 18)
3037
Diagnostic(ErrorCode.ERR_NameNotInContext, "guard").WithArguments("guard").
WithLocation
(8, 25)
3128
Diagnostic(ErrorCode.ERR_ConstantExpected, "1+TakeOutParam(3, out MyClass x1)").
WithLocation
(8, 18)
3225
Diagnostic(ErrorCode.ERR_ConstantExpected, "1+(input is int x1 ? x1 : 0)").
WithLocation
(8, 18)
3346
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(6, 19),
3349
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(6, 19)
3484
Diagnostic(ErrorCode.ERR_ConstantExpected, "other").
WithLocation
(8, 20)
IOperation\IOperationTests_ISymbolInitializer.cs (25)
60
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "s1").WithArguments("C.s1").
WithLocation
(4, 16)
83
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "i2").WithArguments("C.i2").
WithLocation
(4, 17),
86
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "i1").WithArguments("C.i1").
WithLocation
(4, 9)
128
Diagnostic(ErrorCode.ERR_DefaultValueForParamsParameter, "params").
WithLocation
(4, 45)
154
Diagnostic(ErrorCode.ERR_DefaultValueForParamsParameter, "params").
WithLocation
(4, 24)
270
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "i1").WithArguments("C.i1").
WithLocation
(5, 9),
273
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "s2").WithArguments("C.s2").
WithLocation
(10, 16),
276
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "s1").WithArguments("C.s1").
WithLocation
(4, 16),
279
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "i2").WithArguments("C.i2").
WithLocation
(11, 9)
309
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "s2").WithArguments("C.s2").
WithLocation
(10, 16),
312
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "i2").WithArguments("C.i2").
WithLocation
(11, 9),
315
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "s1").WithArguments("C.s1").
WithLocation
(4, 16),
318
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "i1").WithArguments("C.i1").
WithLocation
(5, 9)
400
Diagnostic(ErrorCode.ERR_LiteralDoubleCast, "0.0").WithArguments("F", "float").
WithLocation
(4, 33),
403
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "f").WithArguments("C.f").
WithLocation
(4, 19)
429
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "f").WithArguments("C.f").
WithLocation
(4, 19)
621
Diagnostic(ErrorCode.ERR_NotConstantExpression, "M()").WithArguments("C.c1").
WithLocation
(4, 37)
1001
Diagnostic(ErrorCode.ERR_NotConstantExpression, "M() ?? M2()").WithArguments("C.c1").
WithLocation
(4, 37)
1197
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(4, 42)
1721
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(4, 51)
1795
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M2()").WithArguments("x").
WithLocation
(4, 37)
1887
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M1() ?? M2()").WithArguments("x").
WithLocation
(4, 37)
1945
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M1(out int local)").WithArguments("x").
WithLocation
(4, 37)
2047
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M1(out int local) ?? M2()").WithArguments("x").
WithLocation
(4, 37)
2085
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(4, 48)
IOperation\IOperationTests_IThrowOperation.cs (16)
35
Diagnostic(ErrorCode.ERR_BadEmptyThrow, "throw").
WithLocation
(6, 9)
73
Diagnostic(ErrorCode.ERR_BadEmptyThrow, "throw").
WithLocation
(7, 9),
76
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(8, 9)
167
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(8, 9),
170
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 13)
233
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(6, 13),
236
Diagnostic(ErrorCode.ERR_BadBinaryOps, "ex + x").WithArguments("+", "System.Exception", "int").
WithLocation
(6, 19)
307
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(6, 14)
378
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "throw ex").WithArguments("throw").
WithLocation
(6, 17)
453
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(6, 18)
755
Diagnostic(ErrorCode.WRN_UnreachableCode, "u").
WithLocation
(14, 13)
844
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(12, 29)
1346
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(14, 13)
1427
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(14, 13)
1850
Diagnostic(ErrorCode.ERR_BadEmptyThrow, "throw").
WithLocation
(12, 13)
2176
Diagnostic(ErrorCode.ERR_NoImplicitConvTargetTypedConditional, "y ? throw ex1 : throw ex2").WithArguments("8.0", "<throw expression>", "<throw expression>", "9.0").
WithLocation
(6, 13)
IOperation\IOperationTests_ITupleExpression.cs (22)
555
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "A: 1").WithArguments("A", "(short, string)").
WithLocation
(8, 40),
558
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "B: null").WithArguments("B", "(short, string)").
WithLocation
(8, 46)
607
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "A: 1").WithArguments("A", "(short, string)").
WithLocation
(8, 40),
610
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "B: null").WithArguments("B", "(short, string)").
WithLocation
(8, 46)
1010
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C(0)").WithArguments("C", "short").
WithLocation
(29, 40)
1090
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C(0)").WithArguments("C", "short").
WithLocation
(29, 40)
1335
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "a: 2").WithArguments("a", "(long c, int d)").
WithLocation
(8, 56),
1338
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "b: 3").WithArguments("b", "(long c, int d)").
WithLocation
(8, 62)
1360
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t").WithArguments("t").
WithLocation
(6, 20)
1440
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t").WithArguments("t").
WithLocation
(6, 13)
1617
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "b ? i2 : i3").
WithLocation
(6, 14)
1788
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t").WithArguments("t").
WithLocation
(6, 20)
1865
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "b ? (i1, i2) : (i3, i4)").
WithLocation
(6, 10)
1961
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var i1").
WithLocation
(6, 15),
1964
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var i2").
WithLocation
(6, 23),
1967
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var i3").
WithLocation
(6, 34),
1970
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var i4").
WithLocation
(6, 42),
1973
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "b ? (var i1, var i2) : (var i3, var i4)").
WithLocation
(6, 10)
2242
Diagnostic(ErrorCode.ERR_IllegalStatement, "(var ((a,b), c), int d)").
WithLocation
(6, 19),
2245
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var ((a,b), c)").
WithLocation
(6, 20),
2248
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int d").
WithLocation
(6, 36),
2251
Diagnostic(ErrorCode.ERR_UseDefViolation, "int d").WithArguments("d").
WithLocation
(6, 36)
IOperation\IOperationTests_ITypeOfExpression.cs (7)
85
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UndefinedType").WithArguments("UndefinedType").
WithLocation
(8, 30)
113
Diagnostic(ErrorCode.ERR_BadSKknown, "t").WithArguments("t", "variable", "type").
WithLocation
(8, 30)
145
Diagnostic(ErrorCode.ERR_CloseParenExpected, "(").
WithLocation
(8, 32),
148
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(8, 45),
151
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(8, 45),
154
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "M2").WithArguments("M2").
WithLocation
(8, 30)
182
Diagnostic(ErrorCode.ERR_TypeExpected, ")").
WithLocation
(8, 30)
IOperation\IOperationTests_ITypeParameterObjectCreationTests.cs (2)
125
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T() { 1, b ? 2 : 3 }").WithArguments("T").
WithLocation
(9, 24)
491
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T() { 1, 2 }").WithArguments("T").
WithLocation
(9, 14)
IOperation\IOperationTests_IUsingStatement.cs (46)
557
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableMultipleDeclarator, "var c1 = new C(), c2 = new C()").
WithLocation
(12, 26)
653
Diagnostic(ErrorCode.ERR_CloseParenExpected, ",").
WithLocation
(14, 18),
656
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(14, 18),
659
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(14, 18),
662
Diagnostic(ErrorCode.ERR_RbraceExpected, ",").
WithLocation
(14, 18),
665
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(14, 22),
668
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(14, 22)
728
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var c1 = new C()").WithArguments("C").
WithLocation
(9, 26)
777
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "c1").WithArguments("C").
WithLocation
(10, 26)
812
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(9, 26)
1373
Diagnostic(ErrorCode.ERR_DefaultValueForParamsParameter, "params").
WithLocation
(19, 25)
1620
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "var s = new S()").WithArguments("extras", "S.Dispose(params int)").
WithLocation
(6, 15),
1623
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var s = new S()").WithArguments("S").
WithLocation
(6, 15),
1626
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Dispose").WithArguments("extras", "S.Dispose(params int)").
WithLocation
(14, 11)
1761
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "var s = new S()").WithArguments("extras", "S.Dispose(params int)").
WithLocation
(6, 15),
1764
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var s = new S()").WithArguments("S").
WithLocation
(6, 15),
1767
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Dispose").WithArguments("extras", "S.Dispose(params int)").
WithLocation
(14, 11)
1902
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "var s = new S()").WithArguments("extras", "S.Dispose(params int)").
WithLocation
(6, 15),
1905
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var s = new S()").WithArguments("S").
WithLocation
(6, 15),
1908
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Dispose").WithArguments("extras", "S.Dispose(params int)").
WithLocation
(14, 11)
2044
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "var s = new S()").WithArguments("extras", "S.Dispose(params object[], int)").
WithLocation
(6, 15),
2047
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var s = new S()").WithArguments("S").
WithLocation
(6, 15),
2050
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Dispose").WithArguments("extras", "S.Dispose(params object[], int)").
WithLocation
(14, 11)
2990
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "GetDisposable() ?? input").WithArguments("NotDisposable").
WithLocation
(6, 16)
3090
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "b ? GetDisposable() : input").WithArguments("MyDisposable").
WithLocation
(6, 16)
3198
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "b ? GetDisposable<MyDisposable>() : input").WithArguments("MyDisposable").
WithLocation
(6, 16)
3321
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "GetDisposable() ?? input").WithArguments("MyDisposable?").
WithLocation
(6, 16)
4118
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "s").WithArguments("S?").
WithLocation
(9, 22)
4471
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "this").WithArguments("extras", "C.DisposeAsync(int, params int[], bool)").
WithLocation
(8, 21),
4474
Diagnostic(ErrorCode.ERR_NoConvToIAsyncDisp, "this").WithArguments("C").
WithLocation
(8, 21),
4477
Diagnostic(ErrorCode.ERR_ParamsLast, "params int[] extras").
WithLocation
(11, 34)
6543
using var a = new P();").
WithLocation
(12, 13),
6548
using var b = new P();").
WithLocation
(15, 13)
6647
Diagnostic(ErrorCode.WRN_UnreachableCode, "int").
WithLocation
(12, 9)
6736
Diagnostic(ErrorCode.ERR_GoToBackwardJumpOverUsingVar, "goto label1;").
WithLocation
(13, 9)
6836
Diagnostic(ErrorCode.WRN_UnreachableCode, "int").
WithLocation
(12, 9),
6839
Diagnostic(ErrorCode.ERR_GoToBackwardJumpOverUsingVar, "goto label1;").
WithLocation
(15, 9)
7035
Diagnostic(ErrorCode.ERR_GoToBackwardJumpOverUsingVar, "goto label1;").
WithLocation
(14, 13)
7147
Diagnostic(ErrorCode.ERR_GoToBackwardJumpOverUsingVar, "goto label1;").
WithLocation
(17, 13)
7293
Diagnostic(ErrorCode.WRN_PatternBadSignature, "using var x = new P();").WithArguments("P", "disposable", "P.Dispose()").
WithLocation
(8, 13),
7296
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "using var x = new P();").WithArguments("P").
WithLocation
(8, 13)
8368
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "local").WithArguments("local").
WithLocation
(8, 13)
8512
Diagnostic(ErrorCode.ERR_UsingVarInSwitchCase, "using C1 o1 = new C1();").
WithLocation
(14, 17)
8625
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "using C1 o1 = new C1();").
WithLocation
(12, 13)
8722
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "using C1 o1 = new C1();").
WithLocation
(13, 13)
8818
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "using C1 o1 = new C1();").
WithLocation
(13, 13)
IOperation\IOperationTests_IVariableDeclaration.cs (146)
47
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i1").WithArguments("i1").
WithLocation
(6, 23)
80
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1").
WithLocation
(6, 23)
114
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 28)
149
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i1").WithArguments("i1").
WithLocation
(6, 23),
152
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i2").WithArguments("i2").
WithLocation
(6, 27)
189
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1").
WithLocation
(6, 23),
192
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i2").WithArguments("i2").
WithLocation
(6, 31)
230
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(6, 28),
233
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i2").WithArguments("i2").
WithLocation
(6, 30)
268
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(6, 25),
271
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i").WithArguments("i").
WithLocation
(6, 23)
449
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[2, 3]").
WithLocation
(6, 22),
452
Diagnostic(ErrorCode.WRN_UnreferencedVar, "a").WithArguments("a").
WithLocation
(6, 29)
490
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[2, 3]").
WithLocation
(6, 22),
493
Diagnostic(ErrorCode.WRN_UnreferencedVar, "a").WithArguments("a").
WithLocation
(6, 29),
496
Diagnostic(ErrorCode.WRN_UnreferencedVar, "b").WithArguments("b").
WithLocation
(6, 32)
549
Diagnostic(ErrorCode.ERR_CStyleArray, "[10]").
WithLocation
(6, 24),
552
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "10").
WithLocation
(6, 25),
555
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 23)
584
Diagnostic(ErrorCode.ERR_CStyleArray, "[10]").
WithLocation
(6, 24),
587
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "10").
WithLocation
(6, 25),
590
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(6, 23)
713
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[10]").
WithLocation
(6, 22)
746
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[10]").
WithLocation
(6, 22),
749
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(6, 27)
783
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[10]").
WithLocation
(7, 24),
786
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 29)
822
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[,10]").
WithLocation
(7, 22),
825
Diagnostic(ErrorCode.ERR_ValueExpected, "").
WithLocation
(7, 23),
828
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 28)
896
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[/*<bind>*/10/*</bind>*/]").
WithLocation
(6, 12),
899
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(6, 38)
985
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[M2(out var z)]").
WithLocation
(6, 22),
988
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "z").WithArguments("z").
WithLocation
(6, 34),
991
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(6, 38)
1035
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[M2(out var z)]").
WithLocation
(6, 22),
1038
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "z").WithArguments("z").
WithLocation
(6, 34),
1041
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 37),
1044
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(6, 39)
1088
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[M2(out var z)]").
WithLocation
(6, 26),
1091
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "z").WithArguments("z").
WithLocation
(6, 38),
1094
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "y").
WithLocation
(6, 42),
1097
Diagnostic(ErrorCode.WRN_UnreferencedVar, "y").WithArguments("y").
WithLocation
(6, 42)
1141
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[M2(out var z)]").
WithLocation
(6, 26),
1144
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "z").WithArguments("z").
WithLocation
(6, 38),
1147
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 41),
1150
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "y").
WithLocation
(6, 43),
1153
Diagnostic(ErrorCode.WRN_UnreferencedVar, "y").WithArguments("y").
WithLocation
(6, 43)
1188
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[10]").
WithLocation
(7, 22),
1191
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[20]").
WithLocation
(7, 27),
1194
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 33)
1234
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[10]").
WithLocation
(7, 32),
1237
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 38)
1271
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[10]").
WithLocation
(2, 47),
1274
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(8, 24)
1316
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(6, 13),
1319
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[y is int z]").
WithLocation
(7, 22),
1322
Diagnostic(ErrorCode.ERR_NoImplicitConv, "y is int z").WithArguments("bool", "int").
WithLocation
(7, 23),
1325
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 35)
1379
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(6, 13),
1382
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[M(y switch { int z => 42 })]").
WithLocation
(7, 22),
1385
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 52)
1436
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(8, 9)
1492
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(8, 9)
1533
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(10, 50),
1536
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(8, 9),
1539
Diagnostic(ErrorCode.WRN_UnreferencedField, "i1").WithArguments("Program.i1").
WithLocation
(4, 9)
1585
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(10, 40),
1588
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(10, 58),
1591
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(8, 9),
1594
Diagnostic(ErrorCode.WRN_UnreferencedField, "i2").WithArguments("Program.i2").
WithLocation
(4, 13),
1597
Diagnostic(ErrorCode.WRN_UnreferencedField, "i1").WithArguments("Program.i1").
WithLocation
(4, 9)
1636
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(8, 9),
1639
Diagnostic(ErrorCode.ERR_FixedMustInit, "p").
WithLocation
(10, 35),
1642
Diagnostic(ErrorCode.WRN_UnreferencedField, "i1").WithArguments("Program.i1").
WithLocation
(4, 9)
1684
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(8, 9),
1687
Diagnostic(ErrorCode.ERR_FixedMustInit, "p1").
WithLocation
(10, 35),
1690
Diagnostic(ErrorCode.ERR_FixedMustInit, "p2").
WithLocation
(10, 39),
1693
Diagnostic(ErrorCode.WRN_UnreferencedField, "i2").WithArguments("Program.i2").
WithLocation
(4, 13),
1696
Diagnostic(ErrorCode.WRN_UnreferencedField, "i1").WithArguments("Program.i1").
WithLocation
(4, 9)
1745
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(10, 65),
1748
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(8, 9),
1751
Diagnostic(ErrorCode.ERR_FixedMustInit, "").
WithLocation
(10, 65),
1754
Diagnostic(ErrorCode.WRN_UnreferencedField, "i2").WithArguments("Program.i2").
WithLocation
(4, 13)
1815
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(6, 13),
1818
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(7, 9),
1821
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[M2(y switch { int z => 42 })]").
WithLocation
(9, 33),
1824
Diagnostic(ErrorCode.ERR_BadFixedInitType, "p1 = null").
WithLocation
(9, 64)
1948
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(8, 49)
1992
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(8, 38),
1995
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(8, 55)
2032
Diagnostic(ErrorCode.ERR_FixedMustInit, "p1").
WithLocation
(8, 34)
2072
Diagnostic(ErrorCode.ERR_FixedMustInit, "p1").
WithLocation
(8, 34),
2075
Diagnostic(ErrorCode.ERR_FixedMustInit, "p2").
WithLocation
(8, 38)
2119
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(8, 64),
2122
Diagnostic(ErrorCode.ERR_FixedMustInit, "").
WithLocation
(8, 64)
2336
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(6, 13),
2339
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "int[y switch { int z => 42 }] x = new int[0]").WithArguments("int[]").
WithLocation
(7, 25),
2342
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[y switch { int z => 42 }]").
WithLocation
(7, 28),
2397
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(6, 13),
2400
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "int[y switch { int z => 42 }] x = new int[0]").WithArguments("int[]").
WithLocation
(7, 25),
2403
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[y switch { int z => 42 }]").
WithLocation
(7, 28),
2406
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(7, 81)
2456
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(6, 13),
2459
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "using /*<bind>*/int[y switch { int z => 42 }] x = new int[0]/*</bind>*/;").WithArguments("int[]").
WithLocation
(7, 8),
2462
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[y switch { int z => 42 }]").
WithLocation
(7, 27)
2535
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "j").WithArguments("j").
WithLocation
(6, 35)
2571
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 42)
2612
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(6, 31),
2615
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 47)
2649
Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i").
WithLocation
(6, 42)
2686
Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i").
WithLocation
(6, 45),
2689
Diagnostic(ErrorCode.WRN_UnreferencedVar, "j").WithArguments("j").
WithLocation
(6, 31)
2728
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(6, 31),
2731
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(6, 43)
2865
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(6, 13),
2868
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[y switch { int z => 42 }]").
WithLocation
(7, 28),
2905
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1").
WithLocation
(6, 29)
2945
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1").
WithLocation
(9, 29),
2948
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i2").WithArguments("i2").
WithLocation
(9, 37)
2982
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 34)
3021
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(6, 34),
3024
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 41)
3056
Diagnostic(ErrorCode.ERR_ConstValueRequired, "i1").
WithLocation
(6, 29),
3059
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i1").WithArguments("i1").
WithLocation
(6, 29)
3094
Diagnostic(ErrorCode.ERR_ConstValueRequired, "i1").
WithLocation
(6, 29),
3097
Diagnostic(ErrorCode.ERR_ConstValueRequired, "i2").
WithLocation
(6, 33),
3100
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i1").WithArguments("i1").
WithLocation
(6, 29),
3103
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i2").WithArguments("i2").
WithLocation
(6, 33)
3138
Diagnostic(ErrorCode.ERR_ConstValueRequired, "i1").
WithLocation
(6, 29),
3141
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(6, 32),
3144
Diagnostic(ErrorCode.ERR_ConstValueRequired, ";").
WithLocation
(6, 32),
3147
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i1").WithArguments("i1").
WithLocation
(6, 29)
3185
Diagnostic(ErrorCode.ERR_NotConstantExpression, "GetInt()").WithArguments("i1").
WithLocation
(6, 34)
3230
Diagnostic(ErrorCode.ERR_NotConstantExpression, "GetInt()").WithArguments("i1").
WithLocation
(6, 34),
3233
Diagnostic(ErrorCode.ERR_NotConstantExpression, "GetInt()").WithArguments("i2").
WithLocation
(6, 49)
3269
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1").
WithLocation
(7, 29)
3309
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i2").WithArguments("i2").
WithLocation
(7, 37)
3517
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(7, 17)
3681
Diagnostic(ErrorCode.ERR_CStyleArray, "[10]").
WithLocation
(7, 14),
3684
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "10").
WithLocation
(7, 15)
3733
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=").
WithLocation
(7, 13)
3882
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "b = 1").
WithLocation
(7, 17),
3885
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "1").
WithLocation
(7, 21)
3937
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "b = a").
WithLocation
(8, 17)
4077
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "a").WithArguments("a").
WithLocation
(7, 9)
IOperation\IOperationTests_StackAllocArrayCreationAndInitializer.cs (30)
36
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[1]").
WithLocation
(6, 27)
64
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc M[1]").
WithLocation
(8, 27)
93
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc M[dimension]").
WithLocation
(9, 27)
121
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc M[dimension]").
WithLocation
(8, 27)
152
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc M[dimension]").
WithLocation
(8, 27)
183
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc M[(int)dimension]").
WithLocation
(8, 27)
210
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[] { 42 }").
WithLocation
(6, 27)
237
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[1] { 42 }").
WithLocation
(6, 27)
264
Diagnostic(ErrorCode.ERR_ArrayInitializerIncorrectLength, "stackalloc int[2] { 42 }").WithArguments("2").
WithLocation
(6, 27)
291
Diagnostic(ErrorCode.ERR_ConstantExpected, "dimension").
WithLocation
(6, 42)
323
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc M[] { new M() }").
WithLocation
(8, 27)
355
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc[] { new M() }").
WithLocation
(8, 27)
381
Diagnostic(ErrorCode.ERR_LbraceExpected, ";").
WithLocation
(6, 50),
384
Diagnostic(ErrorCode.ERR_RbraceExpected, ";").
WithLocation
(6, 50),
387
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[]/*</bind>*/").
WithLocation
(6, 27)
413
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "2").
WithLocation
(6, 38),
416
Diagnostic(ErrorCode.ERR_LbraceExpected, ";").
WithLocation
(6, 51),
419
Diagnostic(ErrorCode.ERR_RbraceExpected, ";").
WithLocation
(6, 51),
422
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[2]/*</bind>*/").
WithLocation
(6, 27)
455
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc[] { 2, a, default }").
WithLocation
(7, 27)
482
Diagnostic(ErrorCode.ERR_MissingArraySize, "[]").
WithLocation
(6, 41)
509
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[] { 1 }").
WithLocation
(6, 27)
538
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "b").WithArguments("object", "int").
WithLocation
(6, 42),
541
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[b]").
WithLocation
(6, 27)
572
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[M()]").
WithLocation
(6, 27)
606
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[(int)M()]").
WithLocation
(6, 27)
638
Diagnostic(ErrorCode.ERR_ObjectRequired, "M").WithArguments("C.M()").
WithLocation
(6, 42)
672
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(int)M()").WithArguments("C", "int").
WithLocation
(6, 42)
701
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "0.0").WithArguments("double", "int").
WithLocation
(6, 42),
704
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[0.0]").
WithLocation
(6, 27)
IOperation\IOperationTests_TryCatch.cs (35)
194
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(9, 38)
311
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(9, 38)
378
Diagnostic(ErrorCode.ERR_UnreachableCatch, "System.IO.IOException").WithArguments("System.IO.IOException").
WithLocation
(12, 16),
381
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(9, 38)
558
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(10, 17)
613
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(13, 17)
710
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(11, 26)
756
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(11, 17)
795
Diagnostic(ErrorCode.ERR_BadExceptionType, "int").
WithLocation
(9, 26),
798
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(9, 30)
3230
Diagnostic(ErrorCode.ERR_BadFinallyLeave, "return").
WithLocation
(15, 13)
3426
Diagnostic(ErrorCode.ERR_ExpectedEndTry, "}").
WithLocation
(9, 9)
4112
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(9, 24)
4360
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(8, 24)
4637
Diagnostic(ErrorCode.WRN_FilterIsConstantTrue, "true").
WithLocation
(12, 25)
4742
Diagnostic(ErrorCode.WRN_FilterIsConstantFalseRedundantTryCatch, "false").
WithLocation
(12, 25)
5386
Diagnostic(ErrorCode.ERR_TooManyCatches, "catch").
WithLocation
(13, 9)
5485
Diagnostic(ErrorCode.WRN_FilterIsConstantTrue, "true").
WithLocation
(10, 21)
5584
Diagnostic(ErrorCode.WRN_FilterIsConstantFalse, "false").
WithLocation
(10, 21)
6422
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(10, 46)
6519
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(12, 50)
6847
Diagnostic(ErrorCode.WRN_UnreachableCode, "goto").
WithLocation
(11, 24),
6850
Diagnostic(ErrorCode.WRN_UnreachableCode, "label1").
WithLocation
(13, 1)
6961
Diagnostic(ErrorCode.ERR_BadEmptyThrowInFinally, "throw").
WithLocation
(19, 17),
6964
Diagnostic(ErrorCode.WRN_UnreachableCode, "goto").
WithLocation
(18, 28),
6967
Diagnostic(ErrorCode.WRN_UnreachableCode, "label1").
WithLocation
(20, 5),
6970
Diagnostic(ErrorCode.WRN_UnreachableCode, "b").
WithLocation
(23, 13)
7069
Diagnostic(ErrorCode.WRN_FilterIsConstantTrue, "true").
WithLocation
(10, 53)
7174
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(17, 13)
7277
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(17, 13)
7381
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(17, 13)
7476
Diagnostic(ErrorCode.ERR_BadFinallyLeave, "return").
WithLocation
(15, 21)
7584
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(17, 13)
7684
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(17, 13)
7791
Diagnostic(ErrorCode.WRN_UnreachableCode, "x").
WithLocation
(17, 13)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (13)
InteractiveSessionTests.cs (4)
480
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "X").WithArguments("X").
WithLocation
(1, 39)
1648
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "Microsoft.CodeAnalysis").WithArguments("CodeAnalysis", "Microsoft").
WithLocation
(1, 8));
1867
Diagnostic(ErrorCode.ERR_ObjectRequired, "Value").WithArguments("Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests.InteractiveSessionTests.F.Value").
WithLocation
(4, 9));
1889
Diagnostic(ErrorCode.ERR_ObjectRequired, "Value").WithArguments("Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests.InteractiveSessionTests.F.Value").
WithLocation
(7, 10));
ScriptTests.cs (9)
229
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 32));
278
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 13));
853
ex.Diagnostics.Verify(Diagnostic(ErrorCode.ERR_EncodinglessSyntaxTree, code).
WithLocation
(1, 1));
957
WithLocation
(1, 12)
969
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(2, 28)
1012
Diagnostic(ErrorCode.ERR_NameNotInContext, "notExistentVariable").WithArguments("notExistentVariable").
WithLocation
(1, 12));
1034
Diagnostic(ErrorCode.ERR_UnsupportedTypeForRelationalPattern, "< 5").WithArguments("string").
WithLocation
(1, 28),
1037
Diagnostic(ErrorCode.ERR_NoImplicitConv, "5").WithArguments("int", "string").
WithLocation
(1, 30));
1060
.
WithLocation
(1, 33));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (27166)
Semantics\AccessCheckTests.cs (25)
386
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "iField").WithArguments("A.iField", "D", "B.N.NN").
WithLocation
(19, 27));
434
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C").WithArguments("B.C", "X<B.C.D.E>").
WithLocation
(8, 11));
598
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C").WithArguments("B.C", "X<B.C.D.E>").
WithLocation
(8, 11));
635
Diagnostic(ErrorCode.ERR_BadAccess, "c_int").WithArguments("C.c_int").
WithLocation
(6, 19),
638
Diagnostic(ErrorCode.ERR_BadAccess, "c_pro").WithArguments("C.c_pro").
WithLocation
(7, 19),
641
Diagnostic(ErrorCode.ERR_BadAccess, "c_intpro").WithArguments("C.c_intpro").
WithLocation
(8, 19),
644
Diagnostic(ErrorCode.ERR_BadAccess, "c_priv").WithArguments("C.c_priv").
WithLocation
(9, 19),
647
Diagnostic(ErrorCode.ERR_BadAccess, "D").WithArguments("D").
WithLocation
(10, 17)
685
Diagnostic(ErrorCode.ERR_BadAccess, "c_int").WithArguments("C.c_int").
WithLocation
(6, 19),
688
Diagnostic(ErrorCode.ERR_BadAccess, "c_priv").WithArguments("C.c_priv").
WithLocation
(9, 19),
691
Diagnostic(ErrorCode.ERR_BadAccess, "D").WithArguments("D").
WithLocation
(10, 17)
1018
Diagnostic(ErrorCode.ERR_BadAccess, "C").WithArguments("C").
WithLocation
(6, 17)
1070
Diagnostic(ErrorCode.ERR_BadAccess, "PropIntProProSet").WithArguments("InstancePropertyContainer.PropIntProProSet").
WithLocation
(7, 35)
1136
Diagnostic(ErrorCode.ERR_BadAccess, "M").WithArguments("A.M()").
WithLocation
(6, 12),
1138
Diagnostic(ErrorCode.ERR_BadAccess, "P").WithArguments("A.P").
WithLocation
(8, 16),
1140
Diagnostic(ErrorCode.ERR_BadAccess, "P").WithArguments("A.P").
WithLocation
(9, 12),
1142
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "b2.P").WithArguments("B2.P").
WithLocation
(13, 9),
1144
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "b3.P").WithArguments("B3.P").
WithLocation
(14, 13));
1364
Diagnostic(ErrorCode.WRN_UnreferencedField, "_UnusedField").WithArguments("Class1._UnusedField").
WithLocation
(4, 17));
1383
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "_AssignedButNotReadField").WithArguments("Class1._AssignedButNotReadField").
WithLocation
(4, 17));
1402
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "_UnAssignedField1").WithArguments("Class1._UnAssignedField1", "0").
WithLocation
(4, 19));
1461
Diagnostic(ErrorCode.ERR_BadAccess, "A").WithArguments("A").
WithLocation
(5, 13));
1468
Diagnostic(ErrorCode.ERR_BadAccess, "A").WithArguments("A").
WithLocation
(5, 13));
1494
Diagnostic(ErrorCode.ERR_BadAccess, "A").WithArguments("A").
WithLocation
(5, 13));
1505
Diagnostic(ErrorCode.ERR_BadAccess, "A").WithArguments("A").
WithLocation
(5, 13));
Semantics\AmbiguousOverrideTests.cs (31)
146
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Derived<TInt>.Method(long, TInt)", "Derived<TInt>.Method(long, int)", "Derived2").
WithLocation
(4, 26)
154
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Derived<TInt>.Method(long, TInt)", "Derived<TInt>.Method(long, int)", "Derived2").
WithLocation
(4, 26),
157
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "Method").WithArguments("Derived<int>.Method(long, int)", "Derived2.Method(long, int)").
WithLocation
(4, 26)
206
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Base<T, U>.Method(T, U)", "Base<T, U>.Method(U, T)", "Derived").
WithLocation
(15, 26),
209
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Base<T, U>.Method(T)", "Base<T, U>.Method(int)", "Derived").
WithLocation
(12, 26),
212
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base<int, int>.Method(int, int)").
WithLocation
(10, 7),
215
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Base<T, U>.Method(T, U)", "Base<T, U>.Method(U, T)").
WithLocation
(21, 14)
223
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Base<T, U>.Method(T, U)", "Base<T, U>.Method(U, T)", "Derived").
WithLocation
(15, 26),
226
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "Method").WithArguments("Base<int, int>.Method(int, int)", "Derived.Method(int, int)").
WithLocation
(7, 25),
229
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Base<T, U>.Method(T)", "Base<T, U>.Method(int)", "Derived").
WithLocation
(12, 26),
232
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "Method").WithArguments("Base<int, int>.Method(int)", "Derived.Method(int)").
WithLocation
(4, 25),
235
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base<int, int>.Method(int, int)").
WithLocation
(10, 7),
238
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Base<T, U>.Method(T, U)", "Base<T, U>.Method(U, T)").
WithLocation
(21, 14)
268
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Base<T, U>.Method(System.Collections.Generic.List<T>, params System.Collections.Generic.List<U>[])", "Base<T, U>.Method(System.Collections.Generic.List<U>, System.Collections.Generic.List<T>[])", "Derived").
WithLocation
(10, 26)
276
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Base<T, U>.Method(System.Collections.Generic.List<T>, params System.Collections.Generic.List<U>[])", "Base<T, U>.Method(System.Collections.Generic.List<U>, System.Collections.Generic.List<T>[])", "Derived").
WithLocation
(10, 26),
279
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "Method").WithArguments("Base<int, int>.Method(System.Collections.Generic.List<int>, params System.Collections.Generic.List<int>[])", "Derived.Method(System.Collections.Generic.List<int>, params System.Collections.Generic.List<int>[])").
WithLocation
(5, 25)
309
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Base<T, U>.Method(System.Collections.Generic.List<T>, System.Collections.Generic.List<U>[])", "Base<T, U>.Method(System.Collections.Generic.List<U>, System.Collections.Generic.List<T>[])", "Derived").
WithLocation
(10, 26)
317
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Base<T, U>.Method(System.Collections.Generic.List<T>, System.Collections.Generic.List<U>[])", "Base<T, U>.Method(System.Collections.Generic.List<U>, System.Collections.Generic.List<T>[])", "Derived").
WithLocation
(10, 26),
320
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "Method").WithArguments("Base<int, int>.Method(System.Collections.Generic.List<int>, System.Collections.Generic.List<int>[])", "Derived.Method(System.Collections.Generic.List<int>, System.Collections.Generic.List<int>[])").
WithLocation
(5, 25)
387
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IFoo").WithArguments("CBar", "Metadata.IFoo.M<T>(T)").
WithLocation
(7, 14),
390
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IFoo").WithArguments("CBar", "Metadata.IFoo.M<T>(T)").
WithLocation
(7, 14),
393
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("Metadata.IFooAmbiguous<T, R>.M(T)").
WithLocation
(4, 17)
412
Diagnostic(ErrorCode.WRN_ExplicitImplCollision, "M").WithArguments("CFoo.Metadata.IFooAmbiguous<string, long>.M(string)").
WithLocation
(4, 38),
415
Diagnostic(ErrorCode.WRN_ExplicitImplCollision, "M").WithArguments("CFoo.Metadata.IFooAmbiguous<string, long>.M(string)").
WithLocation
(4, 38),
418
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IFooAmbiguous<string, long>").WithArguments("CFoo", "Metadata.IFooAmbiguous<string, long>.M(string)").
WithLocation
(2, 21),
421
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IFooAmbiguous<string, long>").WithArguments("CFoo", "Metadata.IFooAmbiguous<string, long>.M(string)").
WithLocation
(2, 21),
424
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("Metadata.IFooAmbiguous<T, R>.M(T)").
WithLocation
(4, 38)
449
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("Metadata.Modreq.M(uint)").
WithLocation
(11, 17)
477
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("Metadata.Modreq.M(uint)").
WithLocation
(8, 30));
1386
Diagnostic(ErrorCode.ERR_OverloadRefKind, "Method").WithArguments("TestClass", "method", "in", "ref").
WithLocation
(5, 17));
1403
Diagnostic(ErrorCode.ERR_OverloadRefKind, "Method").WithArguments("TestClass", "method", "in", "out").
WithLocation
(5, 17));
Semantics\AnonymousFunctionTests.cs (44)
75
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(10, 23));
246
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureThis, "a").
WithLocation
(10, 36));
267
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureThis, "A").
WithLocation
(10, 36));
286
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "a").WithArguments("a").
WithLocation
(8, 36));
306
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "a").WithArguments("a").
WithLocation
(9, 36),
309
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(9, 36));
371
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureThis, "this").
WithLocation
(10, 13));
399
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureThis, "base").
WithLocation
(15, 13));
424
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "F()").WithArguments("F").
WithLocation
(10, 13));
519
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "i").WithArguments("i").
WithLocation
(11, 40));
543
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "i").WithArguments("i").
WithLocation
(11, 40));
607
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "i").WithArguments("i").
WithLocation
(11, 31));
631
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "i").WithArguments("i").
WithLocation
(11, 31));
710
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").
WithLocation
(8, 20),
713
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "i").WithArguments("i").
WithLocation
(11, 31));
737
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").
WithLocation
(8, 13),
740
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "i").WithArguments("i").
WithLocation
(11, 31));
764
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").
WithLocation
(8, 20));
788
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").
WithLocation
(8, 20),
791
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "i").WithArguments("i").
WithLocation
(11, 40));
815
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").
WithLocation
(8, 13),
818
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "i").WithArguments("i").
WithLocation
(11, 40));
873
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureThis, "M").
WithLocation
(14, 28));
959
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureThis, "this").
WithLocation
(12, 17));
1322
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "static").WithArguments("static").
WithLocation
(6, 32),
1325
Diagnostic(ErrorCode.ERR_SemicolonExpected, "static").
WithLocation
(6, 32),
1328
Diagnostic(ErrorCode.ERR_BadMemberFlag, "static").WithArguments("static").
WithLocation
(6, 32),
1331
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(6, 40),
1334
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(6, 42),
1337
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(6, 42),
1340
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(6, 45)
1361
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "static () => { }").WithArguments("lambda expression", "delegate*<void>").
WithLocation
(6, 31)
1382
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "static delegate() { }").
WithLocation
(6, 32)
1403
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "static delegate() { }").WithArguments("anonymous method", "delegate*<void>").
WithLocation
(6, 31)
1490
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "() => Write(1)").
WithLocation
(8, 25),
1493
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "static () => Write(2)").
WithLocation
(11, 25),
1496
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "() => { Write(3); }").
WithLocation
(14, 25),
1499
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "static () => { Write(4); }").
WithLocation
(17, 25),
1502
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "() => { }").
WithLocation
(20, 33),
1505
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "static () => { }").
WithLocation
(21, 33),
1508
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "delegate() { Write(5); }").
WithLocation
(23, 25),
1511
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "static delegate() { Write(6); }").
WithLocation
(26, 25),
1514
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "delegate() { }").
WithLocation
(29, 33),
1517
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "static delegate() { }").
WithLocation
(30, 29)
Semantics\ArglistTests.cs (48)
140
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "__makeref(S)").WithArguments("TypedReference").
WithLocation
(8, 44),
143
Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "__makeref(S)").WithArguments("__makeref").
WithLocation
(8, 44),
146
Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "__reftype(default(TypedReference))").WithArguments("__reftype").
WithLocation
(9, 42),
149
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "default(TypedReference)").WithArguments("TypedReference").
WithLocation
(9, 52),
152
Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "__refvalue(default(TypedReference), int)").WithArguments("__refvalue").
WithLocation
(10, 41),
155
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "default(TypedReference)").WithArguments("TypedReference").
WithLocation
(10, 52),
158
Diagnostic(ErrorCode.ERR_VarArgsInExpressionTree, "__arglist()").
WithLocation
(11, 44)
228
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "__makeref(tr1)").WithArguments("System.TypedReference").
WithLocation
(8, 30),
231
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "123").
WithLocation
(9, 40),
234
Diagnostic(ErrorCode.ERR_RefProperty, "P").
WithLocation
(10, 40),
237
Diagnostic(ErrorCode.ERR_RefReadonlyStatic, "R").
WithLocation
(11, 40)
262
Diagnostic(ErrorCode.ERR_CantUseVoidInArglist, "M()").
WithLocation
(6, 25)
299
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(13, 20),
302
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "__refvalue(tr, int)").
WithLocation
(23, 20)
543
Diagnostic(ErrorCode.ERR_IllegalVarArgs, "__arglist").
WithLocation
(5, 26),
546
Diagnostic(ErrorCode.ERR_IllegalVarArgs, "__arglist").
WithLocation
(6, 23),
549
Diagnostic(ErrorCode.ERR_IllegalVarArgs, "__arglist").
WithLocation
(7, 23),
552
Diagnostic(ErrorCode.ERR_IllegalVarArgs, "__arglist").
WithLocation
(8, 24),
555
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("__arglist", "C.M(int, __arglist)").
WithLocation
(11, 9),
558
Diagnostic(ErrorCode.ERR_BadArgType, "3").WithArguments("2", "int", "__arglist").
WithLocation
(12, 14),
561
Diagnostic(ErrorCode.ERR_BadArgCount, "M").WithArguments("M", "3").
WithLocation
(13, 9),
564
Diagnostic(ErrorCode.ERR_IllegalArglist, "__arglist()").
WithLocation
(15, 24),
567
Diagnostic(ErrorCode.ERR_IllegalArglist, "__arglist(123)").
WithLocation
(16, 17),
570
Diagnostic(ErrorCode.ERR_IllegalArglist, "__arglist(456)").
WithLocation
(20, 16),
573
Diagnostic(ErrorCode.ERR_BadArgType, "__arglist(1)").WithArguments("1", "__arglist", "int").
WithLocation
(24, 11),
576
Diagnostic(ErrorCode.ERR_IllegalArglist, "__arglist(2)").
WithLocation
(27, 18),
579
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new System.TypedReference()").WithArguments("System.TypedReference", "object").
WithLocation
(30, 23),
582
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(object)new System.ArgIterator()").WithArguments("System.ArgIterator", "object").
WithLocation
(31, 23),
585
Diagnostic(ErrorCode.ERR_AnonymousTypePropertyAssignedBadValue, "X = new System.TypedReference()").WithArguments("System.TypedReference").
WithLocation
(38, 29));
1454
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "A").WithArguments("__arglist", "A.A(object, __arglist)").
WithLocation
(26, 13),
1457
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("__arglist", "A.M(object, __arglist)").
WithLocation
(28, 11),
1460
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "B").WithArguments("__arglist", "B.B(object, __arglist)").
WithLocation
(31, 13),
1463
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("__arglist", "B.M(object, __arglist)").
WithLocation
(33, 11),
1466
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "C").WithArguments("__arglist", "C.C(object, object, __arglist)").
WithLocation
(36, 13),
1469
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "C").WithArguments("__arglist", "C.C(object, object, __arglist)").
WithLocation
(37, 13),
1472
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("__arglist", "C.M(object, object, __arglist)").
WithLocation
(39, 11),
1475
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("__arglist", "C.M(object, object, __arglist)").
WithLocation
(40, 11),
1478
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "D").WithArguments("__arglist", "D.D(object, object, __arglist)").
WithLocation
(43, 13),
1481
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "D").WithArguments("__arglist", "D.D(object, object, __arglist)").
WithLocation
(44, 13),
1484
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("__arglist", "D.M(object, object, __arglist)").
WithLocation
(46, 11),
1487
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("__arglist", "D.M(object, object, __arglist)").
WithLocation
(47, 11));
1515
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "d").WithArguments("__arglist", "D").
WithLocation
(6, 9));
1546
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "AllocateNativeOverlapped").WithArguments("context", "ConsoleApplication21.GooBar.AllocateNativeOverlapped(System.Threading.IOCompletionCallback, object, byte[])").
WithLocation
(12, 44)
1570
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "ArgListMethod").WithArguments("ArgListMethod", "SpecialCases").
WithLocation
(8, 17),
1573
Diagnostic(ErrorCode.ERR_AmbigCall, "ArgListMethod").WithArguments("SpecialCases.ArgListMethod(__arglist)", "SpecialCases.ArgListMethod(__arglist)").
WithLocation
(6, 9),
1576
Diagnostic(ErrorCode.ERR_AmbigCall, "ArgListMethod").WithArguments("SpecialCases.ArgListMethod(__arglist)", "SpecialCases.ArgListMethod(__arglist)").
WithLocation
(10, 9)
1595
Diagnostic(ErrorCode.ERR_CantUseInOrOutInArglist, "a").
WithLocation
(7, 25));
1613
Diagnostic(ErrorCode.ERR_CantUseInOrOutInArglist, "a").
WithLocation
(7, 24));
Semantics\AwaitExpressionTests.cs (4)
218
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(16, 62),
221
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(20, 69),
246
Diagnostic(ErrorCode.ERR_ByRefTypeAndAwait, "await Task.FromResult(0)").WithArguments("System.TypedReference").
WithLocation
(8, 55));
267
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await t").
WithLocation
(7, 17)
Semantics\BetterCandidates.cs (58)
56
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(5, 17)
83
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(6, 11)
114
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(10, 14)
148
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(15, 14)
181
Diagnostic(ErrorCode.ERR_AmbigCall, "null").WithArguments("MyCollection.Add(A)", "MyCollection.Add(B)").
WithLocation
(5, 28)
228
Diagnostic(ErrorCode.WRN_PatternNotPublicOrNotInstance, "c").WithArguments("MyCollection", "collection", "MyCollection.GetEnumerator()").
WithLocation
(6, 27)
270
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "MoveNext").WithArguments("MoveNext", "MyEnumerator").
WithLocation
(26, 24),
273
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "c").WithArguments("MyEnumerator", "MyCollection.GetEnumerator()").
WithLocation
(6, 27)
278
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "MoveNext").WithArguments("MoveNext", "MyEnumerator").
WithLocation
(26, 24)
305
Diagnostic(ErrorCode.ERR_AmbigCall, "o").WithArguments("MyDeconstructable.Deconstruct(out int, out int)", "MyDeconstructable.Deconstruct(out long, out long)").
WithLocation
(6, 26),
308
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "a").WithArguments("a").
WithLocation
(6, 14),
311
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "b").WithArguments("b").
WithLocation
(6, 21)
360
Diagnostic(ErrorCode.ERR_BadAwaitArg, "await x").WithArguments("MyTask<int>").
WithLocation
(9, 17)
365
Diagnostic(ErrorCode.ERR_BadAwaitArg, "await x").WithArguments("MyTask<int>").
WithLocation
(9, 17)
411
Diagnostic(ErrorCode.ERR_ObjectProhibited, "await x").WithArguments("MyTaskAwaiter<int>.GetResult()").
WithLocation
(9, 17)
416
Diagnostic(ErrorCode.ERR_ObjectProhibited, "await x").WithArguments("MyTaskAwaiter<int>.GetResult()").
WithLocation
(9, 17)
452
Diagnostic(ErrorCode.ERR_QueryMultipleProviders, "select x").WithArguments("Q", "Select").
WithLocation
(6, 35)
480
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(5, 9)
509
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(9, 13)
539
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(7, 29)
570
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(6, 9)
575
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "M(null)").
WithLocation
(6, 9)
599
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(5, 27)
604
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(5, 27)
629
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(5, 9)
634
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(5, 9)
660
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Color.M(A)", "Color.M(B)").
WithLocation
(6, 15)
665
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Color.M(A)", "Color.M(B)").
WithLocation
(6, 15)
690
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M").WithArguments("Program.M<T>(T, int)", "B", "T", "A").
WithLocation
(5, 9)
721
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M<T>(T, B)", "Program.M<T>(T, X)").
WithLocation
(5, 9),
724
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M<T>(T, B)", "Program.M<T>(T, X)").
WithLocation
(6, 9)
758
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(5, 9)
789
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(6, 9)
820
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(6, 9)
861
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(5, 9)
892
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M").WithArguments("Program.M<T>(T, int)", "B", "T", "A").
WithLocation
(5, 9)
921
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M").WithArguments("A").
WithLocation
(5, 9)
950
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M").WithArguments("int*").
WithLocation
(6, 9)
1009
Diagnostic(ErrorCode.ERR_ObjectRequired, "D.P[null]").WithArguments("C.P[A]").
WithLocation
(13, 13),
1012
Diagnostic(ErrorCode.ERR_ObjectRequired, "D.P[null]").WithArguments("C.P[A]").
WithLocation
(14, 9)
1017
Diagnostic(ErrorCode.ERR_ObjectRequired, "D.P[null]").WithArguments("C.P[A]").
WithLocation
(13, 13),
1020
Diagnostic(ErrorCode.ERR_ObjectRequired, "D.P[null]").WithArguments("C.P[A]").
WithLocation
(14, 9)
1057
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(6, 17),
1060
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(7, 11),
1063
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(8, 9),
1066
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(13, 9),
1069
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(14, 17)
1074
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(C)").
WithLocation
(6, 17),
1077
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(B)", "Program.M(D)").
WithLocation
(7, 11),
1080
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(C)").
WithLocation
(8, 9),
1083
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(13, 9),
1086
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(14, 17)
1158
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M<T>(T, A)", "Program.M<T>(T, B)").
WithLocation
(5, 9)
1163
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M<T>(T, B)", "Program.M<T>(T, D)").
WithLocation
(5, 9)
1206
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Extensions.M<T>(T, A)", "Extensions.M<T>(T, B)").
WithLocation
(5, 11)
1211
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Extensions.M<T>(T, B)", "Extensions.M<T>(T, D)").
WithLocation
(5, 11)
1259
Diagnostic(ErrorCode.ERR_AmbigCall, "Argument").WithArguments("Program.Argument(IQ)", "Program.Argument(IW)").
WithLocation
(5, 17)
1264
Diagnostic(ErrorCode.ERR_AmbigCall, "Argument").WithArguments("Program.Argument(IQ)", "Program.Argument(IX)").
WithLocation
(5, 17)
Semantics\BindingAsyncTasklikeMoreTests.cs (40)
237
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "Create").
WithLocation
(6, 29),
240
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Create").
WithLocation
(7, 38),
243
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await F(); return await G(3); }").WithArguments("MyTaskMethodBuilder<int>", "Create").
WithLocation
(8, 34)
326
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.Delay(0); }").WithArguments("MyTaskMethodBuilderFactory", "Task").
WithLocation
(6, 29),
329
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.Delay(0); }").WithArguments("MyTaskMethodBuilderFactory", "Create").
WithLocation
(6, 29),
332
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilderFactory<T>", "Task").
WithLocation
(7, 38),
335
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilderFactory<T>", "Create").
WithLocation
(7, 38),
338
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await F(); return await G(3); }").WithArguments("MyTaskMethodBuilderFactory<int>", "Task").
WithLocation
(8, 34),
341
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await F(); return await G(3); }").WithArguments("MyTaskMethodBuilderFactory<int>", "Create").
WithLocation
(8, 34)
383
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await (Task)null; }").WithArguments("MyTaskMethodBuilder", "Task").
WithLocation
(6, 29),
386
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await (Task)null; return t; }").WithArguments("MyTaskMethodBuilder<T>", "SetException").
WithLocation
(7, 38));
704
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ }").WithArguments("string", "Task").
WithLocation
(8, 26),
707
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ }").WithArguments("string", "Create").
WithLocation
(8, 26));
744
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> t").WithArguments("System.IEquatable<T>", "Task").
WithLocation
(8, 35),
747
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "=> t").WithArguments("System.IEquatable<T>", "Create").
WithLocation
(8, 35));
784
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "{ }").
WithLocation
(8, 26));
812
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "AsyncMethodBuilder(typeof(B2))").WithArguments("i", "System.Runtime.CompilerServices.AsyncMethodBuilderAttribute.AsyncMethodBuilderAttribute(System.Type, int)").
WithLocation
(8, 2),
815
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "f1").
WithLocation
(13, 14),
818
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "f2").
WithLocation
(14, 14)
842
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "f").
WithLocation
(9, 13)
920
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.Delay(0); }").WithArguments("MyTaskMethodBuilder", "SetStateMachine").
WithLocation
(13, 29),
923
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "{ await Task.Delay(0); return t; }").WithArguments("MyTaskMethodBuilder<T>", "Start").
WithLocation
(14, 38),
929
}").WithArguments("MyTaskMethodBuilder<int>", "Start").
WithLocation
(16, 5));
1009
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "await F();").WithArguments("MyTaskMethodBuilder<int>.AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter, ref TStateMachine)", "System.Runtime.CompilerServices.IAsyncStateMachine", "TAwaiter", "MyTask.Awaiter").
WithLocation
(17, 9),
1012
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "await G(3)").WithArguments("MyTaskMethodBuilder<int>.AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter, ref TStateMachine)", "System.Runtime.CompilerServices.IAsyncStateMachine", "TAwaiter", "MyTask<int>.Awaiter").
WithLocation
(18, 16)
1094
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "await Task.Delay(0);").WithArguments("MyTaskMethodBuilder<T>.AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter, ref TStateMachine)", "System.Runtime.CompilerServices.ICriticalNotifyCompletion", "TStateMachine", "C.<G>d__1<T>").
WithLocation
(14, 40));
1186
Diagnostic(ErrorCode.ERR_DoesntImplementAwaitInterface, "await new MyTask()").WithArguments("MyTask.Awaiter", "System.Runtime.CompilerServices.INotifyCompletion").
WithLocation
(5, 9));
1351
}").WithArguments("MyTaskMethodBuilder.Start<TStateMachine>(ref TStateMachine)", "IMyStateMachine", "TStateMachine", "Program.<F>d__0").
WithLocation
(4, 5));
1423
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "await new MyTask();").WithArguments("MyTaskMethodBuilder.AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter, ref TStateMachine)", "TAwaiter", "MyTask.Awaiter").
WithLocation
(5, 9));
1497
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "await new MyTask();").WithArguments("MyTaskMethodBuilder.AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter, ref TStateMachine)", "IMyAwaiter", "TAwaiter", "MyTask.Awaiter").
WithLocation
(5, 9));
1553
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "B.F(async () => null)").
WithLocation
(15, 4));
1631
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "x").
WithLocation
(8, 35),
1634
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "y").
WithLocation
(8, 46),
1637
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "m1").WithArguments("async method builder override", "10.0").
WithLocation
(16, 24),
1640
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "x").
WithLocation
(16, 35),
1643
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "y").
WithLocation
(16, 46)
1651
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "x").
WithLocation
(8, 35),
1654
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "y").
WithLocation
(8, 46),
1657
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "x").
WithLocation
(16, 35),
1660
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "y").
WithLocation
(16, 46)
Semantics\BindingAsyncTasklikeTests.cs (7)
98
Diagnostic(ErrorCode.ERR_BadSKknown, "await new Unawaitable()").WithArguments("GetAwaiter", "field", "method").
WithLocation
(15, 9)
331
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "f").
WithLocation
(6, 18),
334
Diagnostic(ErrorCode.ERR_ReturnExpected, "f").WithArguments("C.f()").
WithLocation
(6, 18)
349
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "f").
WithLocation
(6, 18),
352
Diagnostic(ErrorCode.ERR_ReturnExpected, "f").WithArguments("C.f()").
WithLocation
(6, 18)
427
Diagnostic(ErrorCode.ERR_AmbigCall, "h").WithArguments("C.h(System.Func<MyTask>)", "C.h(System.Func<System.Threading.Tasks.Task>)").
WithLocation
(8, 9)
450
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "g").
WithLocation
(5, 30)
Semantics\BindingAsyncTests.cs (93)
242
Diagnostic(ErrorCode.ERR_TaskRetNoObjectRequired, "return").WithArguments("C.F1()", "System.Threading.Tasks.Task").
WithLocation
(14, 9),
245
Diagnostic(ErrorCode.ERR_TaskRetNoObjectRequiredLambda, "return").WithArguments("System.Threading.Tasks.Task").
WithLocation
(19, 79),
248
Diagnostic(ErrorCode.ERR_TaskRetNoObjectRequiredLambda, "return").WithArguments("System.Threading.Tasks.Task").
WithLocation
(20, 33)
331
Diagnostic(ErrorCode.ERR_CantConvAsyncAnonFuncReturns, "=>").WithArguments("lambda expression", "System.Func<int>").
WithLocation
(9, 33),
334
Diagnostic(ErrorCode.ERR_CantConvAsyncAnonFuncReturns, "=>").WithArguments("lambda expression", "System.Func<int>").
WithLocation
(10, 33)
361
Diagnostic(ErrorCode.ERR_BadAsyncReturnExpression, "await Task.Factory.StartNew(() => new Task<int>(null))").WithArguments("int", "System.Threading.Tasks.Task<int>").
WithLocation
(11, 42),
364
Diagnostic(ErrorCode.ERR_BadAsyncReturnExpression, "await Task.Factory.StartNew(() => new Task<int>(null))").WithArguments("int", "System.Threading.Tasks.Task<int>").
WithLocation
(12, 51),
367
Diagnostic(ErrorCode.ERR_BadAsyncReturnExpression, "await Task.Factory.StartNew(() => new Task<int>(() => 1))").WithArguments("int", "System.Threading.Tasks.Task<int>").
WithLocation
(14, 33),
370
Diagnostic(ErrorCode.ERR_BadAsyncReturnExpression, "await Task.Factory.StartNew(() => new Task<int>(() => 1))").WithArguments("int", "System.Threading.Tasks.Task<int>").
WithLocation
(15, 42));
388
Diagnostic(ErrorCode.ERR_BadAsyncReturnExpression, "new ValueTask<int>()").WithArguments("int", "System.Threading.Tasks.ValueTask<int>").
WithLocation
(6, 12)
415
Diagnostic(ErrorCode.ERR_RetNoObjectRequiredLambda, "return").
WithLocation
(13, 33),
418
Diagnostic(ErrorCode.ERR_CantReturnVoid, "await Task.Factory.StartNew(() => { })").
WithLocation
(14, 42),
421
Diagnostic(ErrorCode.ERR_CantReturnVoid, "await Task.Factory.StartNew(() => { })").
WithLocation
(15, 38)
515
Diagnostic(ErrorCode.ERR_RetNoObjectRequiredLambda, "return").
WithLocation
(16, 17)
549
Diagnostic(ErrorCode.ERR_TaskRetNoObjectRequiredLambda, "return").WithArguments("System.Threading.Tasks.Task").
WithLocation
(16, 17)
779
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "i").
WithLocation
(6, 33)
891
Diagnostic(ErrorCode.ERR_BadAwaitWithoutAsyncMethod, "await t").WithArguments("int").
WithLocation
(10, 32)
938
Diagnostic(ErrorCode.ERR_BadAwaitInFinally, "await Task.Factory.StartNew(() => { })").
WithLocation
(20, 17),
941
Diagnostic(ErrorCode.ERR_BadAwaitInFinally, "await Task.Factory.StartNew(() => { })").
WithLocation
(30, 17)
970
Diagnostic(ErrorCode.ERR_BadAwaitInCatch, "await Task.Factory.StartNew(() => { })").
WithLocation
(12, 13)
999
Diagnostic(ErrorCode.ERR_BadAwaitInCatchFilter, "await Task.Factory.StartNew(() => false)").
WithLocation
(11, 21)
1206
Diagnostic(ErrorCode.ERR_BadAwaitWithoutAsyncMethod, "await Task.Factory.StartNew(() => { })").WithArguments("System.Threading.Tasks.Task").
WithLocation
(8, 9),
1209
Diagnostic(ErrorCode.ERR_BadAwaitWithoutAsyncMethod, "await Task.Factory.StartNew(() => { })").WithArguments("System.Threading.Tasks.Task").
WithLocation
(12, 13),
1212
Diagnostic(ErrorCode.ERR_AwaitInUnsafeContext, "await Task.Factory.StartNew(() => { })").
WithLocation
(12, 13),
1215
Diagnostic(ErrorCode.ERR_BadAwaitWithoutAsyncMethod, "await Task.Factory.StartNew(() => { })").WithArguments("System.Threading.Tasks.Task").
WithLocation
(20, 13),
1218
Diagnostic(ErrorCode.ERR_BadAwaitWithoutAsyncMethod, "await Task.Factory.StartNew(() => { })").WithArguments("System.Threading.Tasks.Task").
WithLocation
(24, 13),
1221
Diagnostic(ErrorCode.ERR_ReturnExpected, "M2").WithArguments("Test.M2()").
WithLocation
(6, 17));
1261
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F").WithArguments("async", "7.0", "8.0").
WithLocation
(4, 16),
1264
Diagnostic(ErrorCode.ERR_BadAsyncLacksBody, "F").
WithLocation
(4, 16)
1558
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(7, 23),
1561
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(13, 30),
1564
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(14, 30),
1567
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(15, 39),
1570
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "delegate").
WithLocation
(16, 27),
1573
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "delegate").
WithLocation
(17, 36));
1804
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.MethExt()").
WithLocation
(19, 9),
1807
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "Goo(1)").
WithLocation
(20, 9),
1810
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Meth").
WithLocation
(16, 26),
1813
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(26, 34),
1816
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(10, 34));
2344
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, @"Meth("""", null)").
WithLocation
(19, 9),
2347
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "Meth(Task.Run(async () => 1), Meth(1))").
WithLocation
(25, 9),
2350
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(25, 32),
2353
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Goo").
WithLocation
(22, 23));
2999
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(14, 34),
3002
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "test.Meth()").
WithLocation
(21, 13),
3005
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "test.Meth()").
WithLocation
(26, 13));
3098
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "Task.FromResult(1)").
WithLocation
(2, 1),
3101
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "Task.FromResult(2)").
WithLocation
(3, 1));
3118
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "Task.FromResult(1)").
WithLocation
(2, 1),
3121
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "Task.FromResult(2)").
WithLocation
(3, 1));
3218
Diagnostic(ErrorCode.ERR_BadSpecialByRefLocal, "var").WithArguments("System.TypedReference").
WithLocation
(9, 9),
3221
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "tr").WithArguments("tr").
WithLocation
(9, 13));
3461
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(5, 30));
3479
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(5, 30),
3482
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Task").WithArguments("async main", "7.1").
WithLocation
(5, 25),
3484
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1)
3553
Diagnostic(ErrorCode.ERR_SynchronizedAsyncMethod, "=>").
WithLocation
(9, 81));
3577
Diagnostic(ErrorCode.ERR_SynchronizedAsyncMethod, "local").
WithLocation
(10, 25),
3580
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(10, 25));
3673
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "delegate").
WithLocation
(6, 29));
3695
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(8, 26)
3851
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(14, 30),
3854
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(15, 30));
3960
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.M()").
WithLocation
(7, 1),
3963
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.MAsync()").
WithLocation
(8, 1),
3966
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.M()").
WithLocation
(10, 47),
3969
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.MAsync()").
WithLocation
(11, 19),
3972
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.MAsync()").
WithLocation
(12, 47),
3975
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.M()").
WithLocation
(15, 1),
3978
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.MAsync()").
WithLocation
(16, 1),
3981
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.M()").
WithLocation
(18, 47),
3984
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.MAsync()").
WithLocation
(20, 47),
3987
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.M()").
WithLocation
(31, 9),
3990
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.MAsync()").
WithLocation
(32, 9),
3993
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.M()").
WithLocation
(34, 55),
3996
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.MAsync()").
WithLocation
(35, 27),
3999
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.MAsync()").
WithLocation
(36, 55),
4002
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.M()").
WithLocation
(39, 9),
4005
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.MAsync()").
WithLocation
(40, 9),
4008
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.M()").
WithLocation
(42, 55),
4011
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.MAsync()").
WithLocation
(44, 55)
4062
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.M()").
WithLocation
(5, 1),
4065
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.MAsync()").
WithLocation
(6, 1),
4068
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.MAsync()").
WithLocation
(8, 19),
4071
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.M()").
WithLocation
(11, 1),
4074
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.MAsync()").
WithLocation
(12, 1),
4077
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.MAsync()").
WithLocation
(20, 5)
4121
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.M()").
WithLocation
(5, 1),
4124
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.MAsync()").
WithLocation
(6, 1),
4127
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "c.MAsync()").
WithLocation
(8, 19),
4130
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.M()").
WithLocation
(11, 1),
4133
Diagnostic(ErrorCode.WRN_UnobservedAwaitableExpression, "i.MAsync()").
WithLocation
(12, 1)
Semantics\BindingAwaitTests.cs (15)
1516
Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new A()").WithArguments("A").
WithLocation
(10, 9),
1519
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "await new B()").WithArguments("o", "B.GetAwaiter(object)").
WithLocation
(11, 9),
1522
Diagnostic(ErrorCode.ERR_BadAwaitArg, "await new C()").WithArguments("C").
WithLocation
(12, 9),
1525
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "new D()").WithArguments("D", "GetAwaiter", "MyExtensions.GetAwaiter(C, object)", "C").
WithLocation
(13, 15));
1724
Diagnostic(ErrorCode.ERR_DoesntImplementAwaitInterface, "await new Awaitable<T1>()").WithArguments("T1", "System.Runtime.CompilerServices.INotifyCompletion").
WithLocation
(37, 9),
1727
Diagnostic(ErrorCode.ERR_DoesntImplementAwaitInterface, "await new Awaitable<T6>()").WithArguments("T6", "System.Runtime.CompilerServices.INotifyCompletion").
WithLocation
(42, 9));
1792
Diagnostic(ErrorCode.ERR_DoesntImplementAwaitInterface, "await new Awaitable<U>()").WithArguments("U", "System.Runtime.CompilerServices.INotifyCompletion").
WithLocation
(31, 9),
1795
Diagnostic(ErrorCode.ERR_NoSuchMember, "await new Awaitable<T3>()").WithArguments("T3", "IsCompleted").
WithLocation
(52, 9));
1844
Diagnostic(ErrorCode.ERR_DoesntImplementAwaitInterface, "await new Awaitable<B>()").WithArguments("B", "System.Runtime.CompilerServices.INotifyCompletion").
WithLocation
(34, 9),
1847
Diagnostic(ErrorCode.ERR_DoesntImplementAwaitInterface, "await new Awaitable<B<IA>>()").WithArguments("B<IA>", "System.Runtime.CompilerServices.INotifyCompletion").
WithLocation
(35, 9),
1850
Diagnostic(ErrorCode.ERR_DoesntImplementAwaitInterface, "await new Awaitable<B<A>>()").WithArguments("B<A>", "System.Runtime.CompilerServices.INotifyCompletion").
WithLocation
(36, 9));
2689
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IVsTask").WithArguments("IVsTask").
WithLocation
(4, 12),
2692
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "VsTasksService").WithArguments("C", "VsTasksService").
WithLocation
(6, 21),
2695
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "delegate").
WithLocation
(6, 54));
2836
Diagnostic(ErrorCode.WRN_MultiplePredefTypes).WithArguments("System.Runtime.CompilerServices.ExtensionAttribute", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").
WithLocation
(1, 1));
Semantics\BindingTests.cs (165)
127
Diagnostic(ErrorCode.ERR_BadArity, "M1<object, object>").WithArguments("C.M1<T>()", "method", "1").
WithLocation
(9, 9),
129
Diagnostic(ErrorCode.ERR_BadArity, "M1<object, object>").WithArguments("C.M1<T>()", "method", "1").
WithLocation
(10, 11),
131
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "M2<int>").WithArguments("C.M2()", "method").
WithLocation
(11, 9),
133
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "M2<int>").WithArguments("C.M2()", "method").
WithLocation
(12, 11),
135
Diagnostic(ErrorCode.ERR_BadArity, "M3<object, object>").WithArguments("C.M3<T>()", "method", "1").
WithLocation
(13, 9),
137
Diagnostic(ErrorCode.ERR_BadArity, "M3<object, object>").WithArguments("C.M3<T>()", "method", "1").
WithLocation
(14, 14),
139
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "M4<int>").WithArguments("C.M4()", "method").
WithLocation
(15, 9),
141
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "M4<int>").WithArguments("C.M4()", "method").
WithLocation
(16, 14));
168
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("A.M1()").
WithLocation
(12, 11),
170
Diagnostic(ErrorCode.ERR_BadAccess, "M2").WithArguments("A.M2(string)").
WithLocation
(13, 11),
172
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("A.M1()").
WithLocation
(14, 13),
174
Diagnostic(ErrorCode.ERR_BadAccess, "M2").WithArguments("A.M2(string)").
WithLocation
(15, 13));
202
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(9, 15),
204
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(11, 17),
206
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(12, 15));
248
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "a.E").WithArguments("E", "method group").
WithLocation
(11, 9),
251
Diagnostic(ErrorCode.ERR_BadArgType, "a.E").WithArguments("1", "method group", "A").
WithLocation
(14, 15),
254
Diagnostic(ErrorCode.ERR_BadSKunknown, "E").WithArguments("A.E()", "method").
WithLocation
(15, 15),
257
Diagnostic(ErrorCode.ERR_BadUnaryOp, "!a.E").WithArguments("!", "method group").
WithLocation
(16, 17),
260
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(17, 26),
263
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(19, 11),
266
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(19, 18),
269
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(20, 15),
272
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(22, 17),
275
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(23, 15),
278
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(24, 20),
281
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(25, 39));
319
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(15, 11),
321
Diagnostic(ErrorCode.ERR_BadAccess, "G").WithArguments("A.G()").
WithLocation
(16, 11),
323
Diagnostic(ErrorCode.ERR_BadArgType, "a.F").WithArguments("1", "method group", "System.Action").
WithLocation
(18, 12),
325
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(20, 23),
327
Diagnostic(ErrorCode.ERR_BadAccess, "G").WithArguments("A.G()").
WithLocation
(24, 9));
358
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("A.F(object, string)", "A.F(string, object)").
WithLocation
(18, 11),
360
Diagnostic(ErrorCode.ERR_BadArgType, "o").WithArguments("1", "object", "string").
WithLocation
(20, 13));
400
Diagnostic(ErrorCode.ERR_BadDelArgCount, "(new C().F)").WithArguments("System.Action<object>", "2").
WithLocation
(7, 9));
612
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("S.M(double, A)", "S.M(double, B)").
WithLocation
(12, 11),
614
Diagnostic(ErrorCode.ERR_BadArgType, "2.0").WithArguments("2", "double", "A").
WithLocation
(13, 18));
634
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "F").WithArguments("i", "C.F(int, params int[])").
WithLocation
(5, 9),
636
Diagnostic(ErrorCode.ERR_BadArgType, "o").WithArguments("1", "object", "int").
WithLocation
(6, 11),
638
Diagnostic(ErrorCode.ERR_BadArgType, "o").WithArguments("2", "object", "int").
WithLocation
(7, 14),
640
Diagnostic(ErrorCode.ERR_BadArgType, "o").WithArguments("3", "object", "int").
WithLocation
(8, 17));
659
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("C.F(int, double)", "C.F(double, int)").
WithLocation
(7, 9),
661
Diagnostic(ErrorCode.ERR_BadArgType, "1.0").WithArguments("1", "double", "int").
WithLocation
(8, 11));
864
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IInterfaceBase").WithArguments("ITT", "IInterfaceBase.bar()").
WithLocation
(3, 7));
889
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "test.IInterfaceBase").WithArguments("ITT", "test.IInterfaceBase.bar()").
WithLocation
(3, 7));
915
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "a1.IInterfaceBase").WithArguments("ITT", "test.IInterfaceBase.bar()").
WithLocation
(5, 7));
947
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "a1.IInterfaceBase").WithArguments("ITT", "test.IInterfaceBase.xyz()").
WithLocation
(5, 7),
950
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "a1.IInterfaceBase2").WithArguments("ITT", "test.IInterfaceBase2.xyz()").
WithLocation
(5, 26));
979
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IInterfaceBase").WithArguments("ITT", "IInterfaceBase.xyz()").
WithLocation
(3, 7));
1009
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IInterfaceBase2").WithArguments("ITT", "IInterfaceBase2.abc()").
WithLocation
(3, 23));
1037
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IInterfaceBase").WithArguments("ITT", "IInterfaceBase.xyz()").
WithLocation
(3, 7),
1040
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IInterfaceBase2").WithArguments("ITT", "IInterfaceBase2.xyz()").
WithLocation
(4, 6));
1068
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IDerived").WithArguments("ITT", "IDerived.xyzd()").
WithLocation
(2, 19),
1071
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IDerived").WithArguments("ITT", "IInterfaceBase.xyzb()").
WithLocation
(2, 19));
1096
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IDerived").WithArguments("ITT", "IDerived.xyzd()").
WithLocation
(2, 19),
1099
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IInterfaceBase").WithArguments("ITT", "IInterfaceBase.xyz()").
WithLocation
(2, 29));
1124
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IDerived").WithArguments("ITT", "IDerived.xyzd()").
WithLocation
(2, 35),
1127
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IInterfaceBase").WithArguments("ITT", "IInterfaceBase.xyz()").
WithLocation
(2, 19));
1153
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IDerived2").WithArguments("ITT", "IBase.method1()").
WithLocation
(2, 19),
1156
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IDerived2").WithArguments("ITT", "IBase2.Method2()").
WithLocation
(2, 19));
1191
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IDerived").WithArguments("ITT", "IBase.method1()").
WithLocation
(2, 20));
1232
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IDerived").WithArguments("ITT", "IBase.method1()").
WithLocation
(2, 20));
1282
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Iderived").WithArguments("foo", "Iderived.method3()").
WithLocation
(29, 25));
1327
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IBase3").WithArguments("Foo", "IBase3.method3()").
WithLocation
(15, 28));
1370
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IBase2").WithArguments("Foo", "IBase2.method2()").
WithLocation
(2, 35),
1373
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IBase3").WithArguments("Foo", "IBase3.method3()").
WithLocation
(13, 28));
1412
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IBase2").WithArguments("Foo", "IBase2.method2()").
WithLocation
(2, 35),
1415
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IBase3").WithArguments("Foo", "IBase3.method3()").
WithLocation
(9, 28)
1578
Diagnostic(ErrorCode.ERR_GenericsUsedAcrossAssemblies, "IBar").WithArguments("ImageMoniker?", "Bar948674_1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 24)
1586
Diagnostic(ErrorCode.ERR_GenericsUsedAcrossAssemblies, "IBar").WithArguments("ImageMoniker?", "Bar948674_1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 24),
1589
Diagnostic(ErrorCode.ERR_GenericsUsedAcrossAssemblies, "IBar").WithArguments("ImageMoniker?", "Bar948674_1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 24)
1631
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Moniker").WithArguments("BarImpl.Moniker").
WithLocation
(4, 24),
1634
Diagnostic(ErrorCode.ERR_GenericsUsedAcrossAssemblies, "IBar").WithArguments("ImageMoniker?", "Bar948674_2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 24)
1642
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Moniker").WithArguments("BarImpl.Moniker").
WithLocation
(4, 24),
1645
Diagnostic(ErrorCode.ERR_GenericsUsedAcrossAssemblies, "IBar").WithArguments("ImageMoniker?", "Bar948674_2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 24)
1685
Diagnostic(ErrorCode.ERR_GenericsUsedAcrossAssemblies, "IBar").WithArguments("ImageMoniker?", "Bar948674_3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 24)
1693
Diagnostic(ErrorCode.ERR_GenericsUsedAcrossAssemblies, "IBar").WithArguments("ImageMoniker?", "Bar948674_3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 24)
1733
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "SetMoniker").WithArguments("BarImpl.SetMoniker(ImageMoniker?)").
WithLocation
(4, 15),
1736
Diagnostic(ErrorCode.ERR_GenericsUsedAcrossAssemblies, "IBar").WithArguments("ImageMoniker?", "Bar948674_4, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 24)
1744
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "SetMoniker").WithArguments("BarImpl.SetMoniker(ImageMoniker?)").
WithLocation
(4, 15),
1747
Diagnostic(ErrorCode.ERR_GenericsUsedAcrossAssemblies, "IBar").WithArguments("ImageMoniker?", "Bar948674_4, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 24)
1880
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "C").
WithLocation
(5, 7),
1883
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M1").WithArguments("T", "C.M1<T>()", "T", "I.M1<T>()").
WithLocation
(7, 17),
1886
Diagnostic(ErrorCode.ERR_SealedNonOverride, "M3").WithArguments("C.M3<T>()").
WithLocation
(9, 17),
1889
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "M4").WithArguments("virtual").
WithLocation
(10, 34)
1978
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "S").WithArguments("S").
WithLocation
(4, 20),
1981
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "S").WithArguments("S").
WithLocation
(5, 20),
1984
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(5, 30),
1987
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(4, 30)
2008
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "object o = null;").
WithLocation
(7, 32),
2011
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "o").WithArguments("o").
WithLocation
(7, 39)
2035
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "label: c = false;").
WithLocation
(9, 13),
2038
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").
WithLocation
(9, 13),
2041
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "c").WithArguments("c").
WithLocation
(6, 14));
2084
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C1").WithArguments("C1").
WithLocation
(3, 11),
2086
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C2").WithArguments("C2").
WithLocation
(4, 11),
2088
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C3").WithArguments("C3").
WithLocation
(7, 15),
2090
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C4").WithArguments("C4").
WithLocation
(8, 15));
2145
Diagnostic(ErrorCode.ERR_BadArgCount, "M").WithArguments("M", "3").
WithLocation
(5, 9));
2158
Diagnostic(ErrorCode.ERR_DuplicateNameInNS, "C").WithArguments("C", "<global namespace>").
WithLocation
(2, 7),
2161
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "System.Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(2, 14)
2167
Diagnostic(ErrorCode.ERR_DuplicateNameInNS, "C").WithArguments("C", "<global namespace>").
WithLocation
(2, 7)
2183
Diagnostic(ErrorCode.ERR_PartialMethodNotExplicit, "M").
WithLocation
(3, 20),
2186
Diagnostic(ErrorCode.ERR_PartialMethodOnlyInPartialClass, "M").
WithLocation
(3, 20),
2189
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "M").WithArguments("default interface implementation", "8.0").
WithLocation
(3, 20),
2192
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I").WithArguments("I.M()", "I").
WithLocation
(3, 18)
2409
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "M").WithArguments("C.M()", "D").
WithLocation
(15, 15)
2414
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "M").WithArguments("C.M()", "D").
WithLocation
(15, 15)
2476
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "M").WithArguments("C.M()", "D").
WithLocation
(19, 11)
2481
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "M").WithArguments("C.M()", "D").
WithLocation
(19, 11)
2502
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type").
WithLocation
(6, 9));
2846
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(12, 42),
2849
Diagnostic(ErrorCode.ERR_BadArgCount, "GetValue").WithArguments("GetValue", "1").
WithLocation
(12, 28),
2852
Diagnostic(ErrorCode.ERR_ReturnExpected, "LazyToString").WithArguments("LazyToStringExtension.LazyToString<T>(T)").
WithLocation
(7, 26));
2878
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(7, 40),
2881
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(7, 40),
2884
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 40),
2888
").
WithLocation
(7, 38)
2923
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(7, 32),
2926
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 32),
2930
").
WithLocation
(7, 30)
2998
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "AuthenticateAsync").WithArguments("authenticationScheme", "AuthenticationManager.AuthenticateAsync(string)").
WithLocation
(38, 38)
3078
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "AuthenticateAsync").WithArguments("authenticationScheme", "AuthenticationManager.AuthenticateAsync(string)").
WithLocation
(38, 38)
3151
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "AuthenticateAsync").WithArguments("authenticationScheme", "AuthenticationManager.AuthenticateAsync(string)").
WithLocation
(31, 38)
3236
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "AuthenticateAsync").WithArguments("authenticationScheme", "AuthenticationManager.AuthenticateAsync(string)").
WithLocation
(42, 38)
3335
Diagnostic(ErrorCode.ERR_NameNotInContext, "MathMin").WithArguments("MathMin").
WithLocation
(16, 9),
3338
Diagnostic(ErrorCode.ERR_NameNotInContext, "MathMax2").WithArguments("MathMax2").
WithLocation
(18, 9),
3341
Diagnostic(ErrorCode.ERR_NameNotInContext, "F2").WithArguments("F2").
WithLocation
(22, 13)
3385
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static Test<System.String>;").
WithLocation
(2, 1),
3388
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "Test<System.String>").WithArguments("Test<T>", "T", "string").
WithLocation
(2, 14));
3405
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static A<A<int>[]>.B;").
WithLocation
(2, 1),
3408
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "A<A<int>[]>.B").WithArguments("A<T>", "T", "int").
WithLocation
(2, 14));
3421
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static A<int, string>;").
WithLocation
(2, 1),
3424
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "A<int, string>").WithArguments("A<T, U>", "T", "int").
WithLocation
(2, 14),
3427
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "A<int, string>").WithArguments("A<T, U>", "U", "string").
WithLocation
(2, 14));
3460
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(11, 15),
3463
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(11, 15),
3466
Diagnostic(ErrorCode.ERR_BadSKknown, "x").WithArguments("x", "variable", "type").
WithLocation
(11, 9)
3539
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, @"""string literal"".ExtensionMethod0<>").
WithLocation
(13, 27),
3542
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethod0<>").WithArguments("string", "ExtensionMethod0").
WithLocation
(13, 44),
3545
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, @"""string literal"".ExtensionMethod1<>").
WithLocation
(14, 27),
3548
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, @"""string literal"".ExtensionMethod2<>").
WithLocation
(15, 27),
3551
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethod2<>").WithArguments("string", "ExtensionMethod2").
WithLocation
(15, 44),
3554
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, @"""string literal"".ExtensionMethod0<>").
WithLocation
(17, 31),
3557
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethod0<>").WithArguments("string", "ExtensionMethod0").
WithLocation
(17, 48),
3560
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, @"""string literal"".ExtensionMethod1<>").
WithLocation
(18, 31),
3563
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, @"""string literal"".ExtensionMethod1<>").
WithLocation
(18, 31),
3566
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, @"""string literal"".ExtensionMethod2<>").
WithLocation
(19, 31),
3569
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethod2<>").WithArguments("string", "ExtensionMethod2").
WithLocation
(19, 48),
3572
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethod0<int>").WithArguments("string", "ExtensionMethod0").
WithLocation
(21, 42),
3575
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethod1<int, bool>").WithArguments("string", "ExtensionMethod1").
WithLocation
(22, 42),
3578
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethod2<int, bool, string>").WithArguments("string", "ExtensionMethod2").
WithLocation
(23, 42),
3581
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "ExtensionMethod1").WithArguments("FooExtensions.ExtensionMethod1<T>(object)").
WithLocation
(25, 42),
3584
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethod2<int>").WithArguments("string", "ExtensionMethod2").
WithLocation
(26, 42),
3587
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethodNotFound0").WithArguments("string", "ExtensionMethodNotFound0").
WithLocation
(28, 51),
3590
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethodNotFound1<int>").WithArguments("string", "ExtensionMethodNotFound1").
WithLocation
(29, 51),
3593
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethodNotFound2<int, string>").WithArguments("string", "ExtensionMethodNotFound2").
WithLocation
(30, 51),
3596
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, @"""string literal"".ExtensionMethod0<>").
WithLocation
(32, 51),
3599
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethod0<>").WithArguments("string", "ExtensionMethod0").
WithLocation
(32, 68),
3602
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, @"""string literal"".ExtensionMethod1<>").
WithLocation
(33, 51),
3605
Diagnostic(ErrorCode.ERR_BadRetType, @"""string literal"".ExtensionMethod1<>").WithArguments("FooExtensions.ExtensionMethod1<?>(object)", "?").
WithLocation
(33, 51),
3608
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, @"""string literal"".ExtensionMethod2<>").
WithLocation
(34, 51),
3611
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ExtensionMethod2<>").WithArguments("string", "ExtensionMethod2").
WithLocation
(34, 68));
3648
Diagnostic(ErrorCode.ERR_ObjectRequired, "G").WithArguments("A.G(string)").
WithLocation
(10, 17));
3674
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "arg2").WithArguments("arg2").
WithLocation
(10, 34));
Semantics\ColorColorTests.cs (28)
632
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "Color/*</bind>*/.M is object").
WithLocation
(13, 44));
763
Diagnostic(ErrorCode.WRN_UnreferencedVar, "E").WithArguments("E").
WithLocation
(18, 15),
766
Diagnostic(ErrorCode.WRN_UnreferencedVar, "Q").WithArguments("Q").
WithLocation
(19, 15)
802
Diagnostic(ErrorCode.WRN_UnreferencedVar, "E").WithArguments("E").
WithLocation
(18, 15),
805
Diagnostic(ErrorCode.WRN_UnreferencedVar, "Q").WithArguments("Q").
WithLocation
(19, 15)
841
Diagnostic(ErrorCode.WRN_UnreferencedVar, "E").WithArguments("E").
WithLocation
(18, 15),
844
Diagnostic(ErrorCode.WRN_UnreferencedVar, "Q").WithArguments("Q").
WithLocation
(19, 15)
880
Diagnostic(ErrorCode.WRN_UnreferencedVar, "E").WithArguments("E").
WithLocation
(18, 15),
883
Diagnostic(ErrorCode.WRN_UnreferencedVar, "Q").WithArguments("Q").
WithLocation
(19, 15)
1326
Diagnostic(ErrorCode.WRN_UnreferencedVar, "E").WithArguments("E").
WithLocation
(16, 15)
1385
Diagnostic(ErrorCode.WRN_UnreferencedVar, "E").WithArguments("E").
WithLocation
(16, 15)
1585
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "A").WithArguments("", "Goo.A", refIdentity, "Goo.A").
WithLocation
(8, 16),
1588
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "A").WithArguments("", "Goo.A", refIdentity, "Goo.A").
WithLocation
(8, 39),
1591
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "A").WithArguments("", "Goo.A", refIdentity, "Goo.A").
WithLocation
(12, 38));
1626
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "A").WithArguments("", "Goo.A", refIdentity, "Goo.A").
WithLocation
(8, 16),
1629
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "A").WithArguments("", "Goo.A", refIdentity, "Goo.A").
WithLocation
(8, 39));
1664
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "A").WithArguments("", "Goo.A", refIdentity, "Goo.A").
WithLocation
(8, 16),
1667
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "A").WithArguments("", "Goo.A", refIdentity, "Goo.A").
WithLocation
(8, 39),
1670
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "A").WithArguments("", "Goo.A", refIdentity, "Goo.A").
WithLocation
(12, 38));
1705
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "A").WithArguments("", "Goo.A", refIdentity, "Goo.A").
WithLocation
(8, 16),
1708
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "A").WithArguments("", "Goo.A", refIdentity, "Goo.A").
WithLocation
(8, 39));
1907
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "z").WithArguments("z").
WithLocation
(12, 13)
1964
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableCannotBeConst, "var E = E.A").
WithLocation
(11, 15),
1967
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "E").WithArguments("E").
WithLocation
(11, 23)
2069
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "E").WithArguments("E").
WithLocation
(11, 17)
2182
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Color.Red").WithArguments("Color.Red").
WithLocation
(11, 29);
2214
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new System.Action(C2.ReferenceEquals)").WithArguments("ReferenceEquals", "System.Action").
WithLocation
(9, 13)
2220
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new System.Action(C2.ReferenceEquals)").WithArguments("ReferenceEquals", "System.Action").
WithLocation
(9, 13)
Semantics\ConditionalOperatorTests.cs (2)
1416
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "receiver?.test").
WithLocation
(10, 9)
1513
Diagnostic(ErrorCode.ERR_NameNotInContext, "bad").WithArguments("bad").
WithLocation
(5, 17)
Semantics\ConstantTests.cs (143)
189
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S2").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(10, 12),
192
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new S2()").WithArguments("s").
WithLocation
(26, 28));
783
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "S8.Max + 1").WithArguments("128", "S8").
WithLocation
(32, 11),
786
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "U8.Max + 1").WithArguments("256", "U8").
WithLocation
(33, 11),
789
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "S16.Max + 1").WithArguments("32768", "S16").
WithLocation
(34, 11),
792
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "U16.Max + 1").WithArguments("65536", "U16").
WithLocation
(35, 11),
795
Diagnostic(ErrorCode.ERR_CheckedOverflow, "S32.Max + 1").
WithLocation
(36, 11),
798
Diagnostic(ErrorCode.ERR_CheckedOverflow, "U32.Max + 1").
WithLocation
(37, 11),
801
Diagnostic(ErrorCode.ERR_CheckedOverflow, "S64.Max + 1").
WithLocation
(38, 11),
804
Diagnostic(ErrorCode.ERR_CheckedOverflow, "U64.Max + 1").
WithLocation
(39, 11),
807
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "2 + S8.Max").WithArguments("129", "S8").
WithLocation
(42, 11),
810
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "2 + U8.Max").WithArguments("257", "U8").
WithLocation
(43, 11),
813
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "2 + S16.Max").WithArguments("32769", "S16").
WithLocation
(44, 11),
816
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "2 + U16.Max").WithArguments("65537", "U16").
WithLocation
(45, 11),
819
Diagnostic(ErrorCode.ERR_CheckedOverflow, "2 + S32.Max").
WithLocation
(46, 11),
822
Diagnostic(ErrorCode.ERR_CheckedOverflow, "2 + U32.Max").
WithLocation
(47, 11),
825
Diagnostic(ErrorCode.ERR_CheckedOverflow, "2 + S64.Max").
WithLocation
(48, 11),
828
Diagnostic(ErrorCode.ERR_CheckedOverflow, "2 + U64.Max").
WithLocation
(49, 11),
831
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "U8.Min - U8.MinPlusOne").WithArguments("-1", "byte").
WithLocation
(53, 11),
834
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "U16.Min - U16.MinPlusOne").WithArguments("-1", "ushort").
WithLocation
(55, 11),
837
Diagnostic(ErrorCode.ERR_CheckedOverflow, "U32.Min - U32.MinPlusOne").
WithLocation
(57, 11),
840
Diagnostic(ErrorCode.ERR_CheckedOverflow, "U64.Min - U64.MinPlusOne").
WithLocation
(59, 11),
843
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "S8.Min - S8.Max").WithArguments("-255", "sbyte").
WithLocation
(62, 11),
846
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "U8.Min - U8.Max").WithArguments("-255", "byte").
WithLocation
(63, 11),
849
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "S16.Min - S16.Max").WithArguments("-65535", "short").
WithLocation
(64, 11),
852
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "U16.Min - U16.Max").WithArguments("-65535", "ushort").
WithLocation
(65, 11),
855
Diagnostic(ErrorCode.ERR_CheckedOverflow, "S32.Min - S32.Max").
WithLocation
(66, 11),
858
Diagnostic(ErrorCode.ERR_CheckedOverflow, "U32.Min - U32.Max").
WithLocation
(67, 11),
861
Diagnostic(ErrorCode.ERR_CheckedOverflow, "S64.Min - S64.Max").
WithLocation
(68, 11),
864
Diagnostic(ErrorCode.ERR_CheckedOverflow, "U64.Min - U64.Max").
WithLocation
(69, 11),
867
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "S8.Max - S8.Min").WithArguments("255", "sbyte").
WithLocation
(72, 11),
870
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "S16.Max - S16.Min").WithArguments("65535", "short").
WithLocation
(74, 11),
873
Diagnostic(ErrorCode.ERR_CheckedOverflow, "S32.Max - S32.Min").
WithLocation
(76, 11),
876
Diagnostic(ErrorCode.ERR_CheckedOverflow, "S64.Max - S64.Min").
WithLocation
(78, 11),
879
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "S8.Min - 2").WithArguments("-130", "S8").
WithLocation
(82, 11),
882
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "U8.Min - 2").WithArguments("-2", "U8").
WithLocation
(83, 11),
885
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "S16.Min - 2").WithArguments("-32770", "S16").
WithLocation
(84, 11),
888
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "U16.Min - 2").WithArguments("-2", "U16").
WithLocation
(85, 11),
891
Diagnostic(ErrorCode.ERR_CheckedOverflow, "S32.Min - 2").
WithLocation
(86, 11),
894
Diagnostic(ErrorCode.ERR_CheckedOverflow, "U32.Min - 2").
WithLocation
(87, 11),
897
Diagnostic(ErrorCode.ERR_CheckedOverflow, "S64.Min - 2").
WithLocation
(88, 11),
900
Diagnostic(ErrorCode.ERR_CheckedOverflow, "U64.Min - 2").
WithLocation
(89, 11));
1716
Diagnostic(ErrorCode.ERR_BadConstType, "S").WithArguments("C.S").
WithLocation
(7, 15),
1719
Diagnostic(ErrorCode.ERR_BadUnaryOp, "-9223372036854775808UL").WithArguments("-", "ulong").
WithLocation
(8, 28),
1722
Diagnostic(ErrorCode.ERR_BadUnaryOp, "-9223372036854775808ul").WithArguments("-", "ulong").
WithLocation
(9, 28),
1725
Diagnostic(ErrorCode.ERR_NotConstantExpression, "s1").WithArguments("s2").
WithLocation
(12, 27),
1728
Diagnostic(ErrorCode.ERR_NotNullConstRefField, @"""hello""").WithArguments("o1", "object").
WithLocation
(14, 27),
1731
Diagnostic(ErrorCode.ERR_IntDivByZero, "1 / 0").
WithLocation
(16, 18),
1734
Diagnostic(ErrorCode.ERR_IntDivByZero, "1L/0L").
WithLocation
(16, 28),
1737
Diagnostic(ErrorCode.ERR_IntDivByZero, "1UL/0UL").
WithLocation
(16, 38),
1740
Diagnostic(ErrorCode.ERR_IntDivByZero, "1M/0M").
WithLocation
(16, 50),
1743
Diagnostic(ErrorCode.ERR_DecConstError, "-79228162514264337593543950335m - 1m").
WithLocation
(16, 60),
1746
Diagnostic(ErrorCode.ERR_CircConstValue, "z").WithArguments("z").
WithLocation
(18, 28),
1749
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)0x8888888888888888").WithArguments("9838263505978427528", "int").
WithLocation
(20, 29),
1752
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(uint)0x8888888888888888").WithArguments("9838263505978427528", "uint").
WithLocation
(21, 31),
1755
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(long)0x8888888888888888").WithArguments("9838263505978427528", "long").
WithLocation
(22, 31),
1758
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(ulong)1E50").WithArguments("1E+50", "ulong").
WithLocation
(23, 33),
1761
Diagnostic(ErrorCode.ERR_CheckedOverflow, "int.MaxValue + 1").
WithLocation
(25, 27),
1764
Diagnostic(ErrorCode.ERR_CheckedOverflow, "uint.MaxValue + 1").
WithLocation
(26, 29),
1767
Diagnostic(ErrorCode.ERR_CheckedOverflow, "long.MaxValue + 1").
WithLocation
(27, 29),
1770
Diagnostic(ErrorCode.ERR_CheckedOverflow, "ulong.MaxValue + 1").
WithLocation
(28, 31),
1773
Diagnostic(ErrorCode.ERR_CheckedOverflow, "int.MinValue - 1").
WithLocation
(30, 28),
1776
Diagnostic(ErrorCode.ERR_CheckedOverflow, "uint.MinValue - 1").
WithLocation
(31, 30),
1779
Diagnostic(ErrorCode.ERR_CheckedOverflow, "long.MinValue - 1").
WithLocation
(32, 30),
1782
Diagnostic(ErrorCode.ERR_CheckedOverflow, "ulong.MinValue - 1").
WithLocation
(33, 32),
1785
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s").WithArguments("s").
WithLocation
(7, 17),
1788
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "intConversion").WithArguments("intConversion").
WithLocation
(20, 13),
1791
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "uintConversion").WithArguments("uintConversion").
WithLocation
(21, 14),
1794
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "longConversion").WithArguments("longConversion").
WithLocation
(22, 14),
1797
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "ulongConversion").WithArguments("ulongConversion").
WithLocation
(23, 15));
2002
Diagnostic(ErrorCode.ERR_CheckedOverflow, "i * j").
WithLocation
(11, 21));
2784
Diagnostic(CSharp.ErrorCode.ERR_CircConstValue, "F").WithArguments("C.F").
WithLocation
(3, 18));
2806
Diagnostic(ErrorCode.ERR_CircConstValue, "B").WithArguments("C.B").
WithLocation
(4, 5),
2809
Diagnostic(ErrorCode.ERR_CircConstValue, "F").WithArguments("C.F").
WithLocation
(8, 5)
2897
Diagnostic(ErrorCode.ERR_CircConstValue, "D1").WithArguments("D.D1").
WithLocation
(3, 25));
2901
Diagnostic(ErrorCode.ERR_CircConstValue, "A1").WithArguments("A.A1").
WithLocation
(3, 25));
2976
Diagnostic(ErrorCode.ERR_ConstOutOfRange, "(decimal)1e100").WithArguments("1E+100", "decimal").
WithLocation
(6, 21),
2979
Diagnostic(ErrorCode.ERR_ConstOutOfRange, "(decimal)1e100").WithArguments("1E+100", "decimal").
WithLocation
(7, 23));
3129
Diagnostic(ErrorCode.ERR_CircConstValue, "X").WithArguments("E0.X").
WithLocation
(4, 5),
3132
Diagnostic(ErrorCode.ERR_CircConstValue, "X").WithArguments("E1.X").
WithLocation
(9, 5),
3135
Diagnostic(ErrorCode.ERR_CircConstValue, "X").WithArguments("E2.X").
WithLocation
(14, 5),
3138
Diagnostic(ErrorCode.ERR_CircConstValue, "X").WithArguments("E3.X").
WithLocation
(19, 5),
3141
Diagnostic(ErrorCode.ERR_CircConstValue, "X").WithArguments("E4.X").
WithLocation
(24, 5),
3144
Diagnostic(ErrorCode.ERR_CircConstValue, "X").WithArguments("E5.X").
WithLocation
(29, 5),
3147
Diagnostic(ErrorCode.ERR_CircConstValue, "X").WithArguments("E6.X").
WithLocation
(34, 5),
3150
Diagnostic(ErrorCode.ERR_CircConstValue, "X").WithArguments("E7.X").
WithLocation
(39, 5),
3153
Diagnostic(ErrorCode.ERR_CircConstValue, "X").WithArguments("E8.X").
WithLocation
(44, 5));
3283
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "f").WithArguments("local functions", "7.0").
WithLocation
(6, 14),
3286
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 24),
3289
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "const int i = 0;").
WithLocation
(6, 26),
3292
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 36),
3295
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").
WithLocation
(6, 14)
3314
Diagnostic(ErrorCode.ERR_NotConstantExpression, "a()").WithArguments("b").
WithLocation
(6, 51)
3332
Diagnostic(ErrorCode.ERR_CircConstValue, "z").WithArguments("z").
WithLocation
(5, 27)
3346
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").
WithLocation
(2, 6),
3349
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(2, 16),
3352
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "const int i = 0;").
WithLocation
(2, 18),
3355
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(2, 28)
3396
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"(string)(object)""y""").WithArguments("y1").
WithLocation
(7, 27),
3399
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(object)null").WithArguments("object", "string").
WithLocation
(9, 27),
3402
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, @"(object)""y""").WithArguments("object", "string").
WithLocation
(10, 27),
3405
Diagnostic(ErrorCode.ERR_NotNullConstRefField, @"""y""").WithArguments("y3", "object").
WithLocation
(13, 27),
3408
Diagnostic(ErrorCode.ERR_ConstantExpected, @"(string)(object)""b""").
WithLocation
(19, 18),
3411
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(object)null").WithArguments("object", "string").
WithLocation
(21, 18),
3414
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, @"(object)""b""").WithArguments("object", "string").
WithLocation
(23, 18),
3417
Diagnostic(ErrorCode.ERR_ConstantExpected, @"(object)""b""").
WithLocation
(23, 18),
3420
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case (object)null:").WithArguments("null").
WithLocation
(21, 13));
3442
Diagnostic(ErrorCode.ERR_NoImplicitConv, "c.Select(o => new { E = F })").WithArguments("System.Collections.Generic.IEnumerable<<anonymous type: int E>>", "int").
WithLocation
(9, 9)
3464
Diagnostic(ErrorCode.ERR_CircConstValue, "F").WithArguments("F").
WithLocation
(8, 34)
3673
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""{""Level 5""} {3}""").WithArguments("S2").
WithLocation
(7, 27),
3676
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""{$""{""Spinning Top"", 10}""}""").WithArguments("S3").
WithLocation
(8, 27),
3679
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""{ParamDefault}""").WithArguments("S4").
WithLocation
(9, 27),
3682
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""{I1}""").WithArguments("F1").
WithLocation
(11, 27),
3685
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""{I1} the {S1}""").WithArguments("F2").
WithLocation
(12, 27));
3709
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""""""{""Level 5""} {3}""""""").WithArguments("S2").
WithLocation
(7, 27),
3712
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""""""{$""{""Spinning Top"", 10}""}""""""").WithArguments("S3").
WithLocation
(8, 27),
3715
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""""""{ParamDefault}""""""").WithArguments("S4").
WithLocation
(9, 27),
3718
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""""""{I1}""""""").WithArguments("F1").
WithLocation
(11, 27),
3721
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""""""{I1} the {S1}""""""").WithArguments("F2").
WithLocation
(12, 27));
3791
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"""The"" + $""Number {3}"" + ""Level 5""").WithArguments("S1").
WithLocation
(8, 27),
3794
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""Level 4 "" + NC1").WithArguments("S2").
WithLocation
(9, 27),
3797
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""{S1}""").WithArguments("F1").
WithLocation
(10, 27));
3819
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"""The"" + $""""""Number {3}"""""" + ""Level 5""").WithArguments("S1").
WithLocation
(8, 27),
3822
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""""""Level 4 """""" + NC1").WithArguments("S2").
WithLocation
(9, 27),
3825
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""""""{S1}""""""").WithArguments("F1").
WithLocation
(10, 27));
3888
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""Failed to {VS}""").WithArguments("S6").
WithLocation
(34, 27));
3894
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""ITEM""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(12, 4),
3897
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""Post""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(15, 23),
3900
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""Testing""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(25, 27),
3903
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""{""Level 5""} {""Number 3""}""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(26, 27),
3906
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""{$""{""Spinning Top""}""}""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(27, 27),
3909
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""Hybrid""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(28, 27),
3912
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""321""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(29, 50),
3915
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""{S1}""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(30, 27),
3918
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$"" the {S2}""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(31, 32),
3921
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""Failed to {VS}""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(34, 27),
3924
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"$""Failed to {VS}""").WithArguments("S6").
WithLocation
(34, 27),
3927
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""Testing""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(37, 25),
3930
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""Level 5""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(40, 18),
3933
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""ConstantInterpolatedString""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(44, 30),
3936
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""Number 3""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(46, 22),
3939
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""Radio Noise""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(48, 22),
3942
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""Number 3""").WithArguments("constant interpolated strings", "10.0").
WithLocation
(49, 31));
Semantics\DeconstructionTests.cs (284)
97
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "new C()").WithArguments("C", "Deconstruct").
WithLocation
(8, 28),
100
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(8, 28)
142
Diagnostic(ErrorCode.ERR_BadArgCount, "new C()").WithArguments("Deconstruct", "2").
WithLocation
(8, 28),
145
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(8, 28)
186
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "new C()").WithArguments("c", "C.Deconstruct(out int, out int, out int)").
WithLocation
(7, 28),
189
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(7, 28)
232
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "f").WithArguments("long", "f").
WithLocation
(8, 22),
235
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "g").WithArguments("string", "g").
WithLocation
(8, 27),
238
Diagnostic(ErrorCode.ERR_BadArgCount, "new C()").WithArguments("Deconstruct", "2").
WithLocation
(8, 32),
241
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(8, 32)
280
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "(x, y) = new C()").WithArguments("2", "out").
WithLocation
(8, 19),
283
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(8, 28)
322
Diagnostic(ErrorCode.ERR_BadArgRef, "(x, y) = new C()").WithArguments("1", "ref").
WithLocation
(8, 19),
325
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(8, 28)
369
Diagnostic(ErrorCode.ERR_BadArgType, "x").WithArguments("1", "out long", "out int").
WithLocation
(10, 27)
415
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(9, 28)
465
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(13, 28)
511
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(9, 28)
556
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "new C()").WithArguments("__arglist", "C.Deconstruct(out int, out string, __arglist)").
WithLocation
(9, 28),
559
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(9, 28)
614
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C() { Deconstruct = DeconstructMethod }").WithArguments("C", "2").
WithLocation
(11, 28)
671
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Deconstruct").WithArguments("C", "Deconstruct").
WithLocation
(16, 17),
674
Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "Deconstruct").WithArguments("Deconstruct").
WithLocation
(11, 38),
677
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Deconstruct").WithArguments("C.Deconstruct", "null").
WithLocation
(6, 15)
724
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "c").WithArguments("C", "2").
WithLocation
(14, 28),
727
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Deconstruct").WithArguments("C.Deconstruct").
WithLocation
(6, 21)
770
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("int", "byte").
WithLocation
(8, 20),
773
Diagnostic(ErrorCode.ERR_NoImplicitConv, "y").WithArguments("int", "string").
WithLocation
(8, 23)
861
Diagnostic(ErrorCode.ERR_IllegalStatement, "(a) => a").
WithLocation
(6, 9)
885
Diagnostic(ErrorCode.ERR_IllegalStatement, "(a, b) => { }").
WithLocation
(6, 19)
918
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 21),
921
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "string").WithArguments("string").
WithLocation
(6, 26)
1047
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(7, 28)
1082
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "null").
WithLocation
(7, 28)
1117
Diagnostic(ErrorCode.ERR_NameNotInContext, "undeclared").WithArguments("undeclared").
WithLocation
(7, 28)
1155
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M()").WithArguments("void", "Deconstruct").
WithLocation
(7, 28),
1158
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "M()").WithArguments("void", "2").
WithLocation
(7, 28)
1201
Diagnostic(ErrorCode.ERR_NoImplicitConv, "2").WithArguments("int", "string").
WithLocation
(9, 32)
1245
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "1").
WithLocation
(6, 20),
1248
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "P").WithArguments("C.P").
WithLocation
(6, 23)
1377
Diagnostic(ErrorCode.ERR_AmbigCall, "new C()").WithArguments("Base.Deconstruct(out int, out int)", "Base.Deconstruct(out long, out long)").
WithLocation
(12, 28)
1416
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(7, 28)
1455
Diagnostic(ErrorCode.ERR_NonInvocableMemberCalled, "new C()").WithArguments("C.Deconstruct").
WithLocation
(7, 28),
1458
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(7, 28)
1490
Diagnostic(ErrorCode.ERR_BadArgCount, "CreateLongRef(1, 2, 3, 4, 5, 6, 7, CreateLongRef(8, 9, 10, 11, 12, 13, 14, Tuple.Create(15, 16, 17, 18, 19, 20, 21, 22)))").WithArguments("Deconstruct", "22").
WithLocation
(8, 113),
1493
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "CreateLongRef(1, 2, 3, 4, 5, 6, 7, CreateLongRef(8, 9, 10, 11, 12, 13, 14, Tuple.Create(15, 16, 17, 18, 19, 20, 21, 22)))").WithArguments("System.Tuple<int, int, int, int, int, int, int, System.Tuple<int, int, int, int, int, int, int, System.Tuple<int, int, int, int, int, int, int, System.Tuple<int>>>>", "22").
WithLocation
(8, 113)
1529
Diagnostic(ErrorCode.ERR_CannotDeconstructDynamic, "c").
WithLocation
(10, 28)
1572
Diagnostic(ErrorCode.ERR_BadAccess, "new C1()").WithArguments("C1.Deconstruct(out int, out string)").
WithLocation
(9, 28),
1575
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C1()").WithArguments("C1", "2").
WithLocation
(9, 28)
1613
Diagnostic(ErrorCode.ERR_NoTypeDef, "new C()").WithArguments("Missing", "libMissingComp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 18),
1616
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(7, 18)
1654
Diagnostic(ErrorCode.ERR_ObjectProhibited, "new C()").WithArguments("C.Deconstruct(out int, out string)").
WithLocation
(9, 28),
1657
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(9, 28)
1921
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(x, x)").WithArguments("System.ValueTuple`2").
WithLocation
(7, 17)
2041
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(8, 34),
2044
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(8, 41),
2047
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(8, 47)
2091
Diagnostic(ErrorCode.ERR_DeconstructWrongCardinality, "(x, y, z) = MakePair()").WithArguments("2", "3").
WithLocation
(8, 19)
2147
Diagnostic(ErrorCode.ERR_DeconstructWrongCardinality, "(x, (y, z, w)) = Pair.Create(42, (43, 44))").WithArguments("2", "3").
WithLocation
(8, 19)
2195
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 25),
2198
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(6, 29),
2201
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(6, 32)
2227
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(x1, x2)").WithArguments("tuples", "7.0").
WithLocation
(6, 13),
2230
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(int x3, int x4)").WithArguments("tuples", "7.0").
WithLocation
(7, 9),
2233
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(int x5, var (x6, x7))").WithArguments("tuples", "7.0").
WithLocation
(8, 18),
2236
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(int x8, var (x9, x10))").WithArguments("tuples", "7.0").
WithLocation
(9, 14)
2272
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(6, 28)
2312
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(7, 24)
2344
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(8, 19)
2387
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(6, 40)
2430
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M(x1)").WithArguments("void", "Deconstruct").
WithLocation
(6, 38),
2433
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "M(x1)").WithArguments("void", "2").
WithLocation
(6, 38),
2436
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(6, 40)
2476
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(6, 34)
2511
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "null").
WithLocation
(6, 38)
2545
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "null").
WithLocation
(6, 34),
2548
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x1").WithArguments("x1").
WithLocation
(6, 24),
2551
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x2").WithArguments("x2").
WithLocation
(6, 28)
2589
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x1").WithArguments("x1").
WithLocation
(6, 24),
2592
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x2").WithArguments("x2").
WithLocation
(6, 28)
2643
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x3").WithArguments("x3").
WithLocation
(6, 45),
2646
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x4").WithArguments("x4").
WithLocation
(6, 54)
2692
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "null").
WithLocation
(6, 61),
2695
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x3").WithArguments("x3").
WithLocation
(6, 45)
2738
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x2").WithArguments("x2").
WithLocation
(6, 35)
2782
Diagnostic(ErrorCode.ERR_DeconstructWrongCardinality, @"(string x1, var x2, int x3) = (null, ""hello"")").WithArguments("2", "3").
WithLocation
(6, 19)
2826
Diagnostic(ErrorCode.ERR_DeconstructWrongCardinality, @"(string x1, var y1) = (null, ""hello"", 3)").WithArguments("3", "2").
WithLocation
(6, 19),
2829
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "null").
WithLocation
(7, 47),
2832
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y2").WithArguments("y2").
WithLocation
(7, 25)
2874
Diagnostic(ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, "(x1, x2)").
WithLocation
(6, 23),
2877
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "var").
WithLocation
(6, 35),
2880
Diagnostic(ErrorCode.ERR_NoImplicitConv, "2").WithArguments("int", "var").
WithLocation
(6, 38)
2926
Diagnostic(ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, "(x3, x4)").
WithLocation
(7, 23),
2929
Diagnostic(ErrorCode.ERR_NoImplicitConv, "3").WithArguments("int", "D").
WithLocation
(7, 35),
2932
Diagnostic(ErrorCode.ERR_NoImplicitConv, "4").WithArguments("int", "D").
WithLocation
(7, 38)
2976
Diagnostic(ErrorCode.ERR_DeconstructWrongCardinality, "(var (x1, x2), var x3) = (1, 2, 3)").WithArguments("3", "2").
WithLocation
(6, 19),
2979
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x1").WithArguments("x1").
WithLocation
(6, 25),
2982
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x2").WithArguments("x2").
WithLocation
(6, 29)
3023
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(6, 38)
3064
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(6, 35)
3104
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x").WithArguments("x").
WithLocation
(9, 24),
3107
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y").WithArguments("y").
WithLocation
(9, 27),
3110
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "42").WithArguments("int", "Deconstruct").
WithLocation
(9, 32),
3113
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "42").WithArguments("int", "2").
WithLocation
(9, 32),
3116
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x").WithArguments("x").
WithLocation
(9, 24),
3119
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y").WithArguments("y").
WithLocation
(9, 27),
3122
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(8, 13),
3125
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 20)
3159
Diagnostic(ErrorCode.ERR_DeconstructTooFewElements, "(var(x, y)) = 43").
WithLocation
(11, 9),
3162
Diagnostic(ErrorCode.ERR_CloseParenExpected, "=").
WithLocation
(13, 20),
3165
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(13, 24),
3168
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(13, 24),
3171
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x").WithArguments("x").
WithLocation
(9, 14),
3174
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "@var").WithArguments("var").
WithLocation
(9, 9),
3177
Diagnostic(ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, "x").
WithLocation
(9, 14),
3180
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y").WithArguments("y").
WithLocation
(9, 17),
3183
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "@var").WithArguments("var").
WithLocation
(9, 9),
3186
Diagnostic(ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, "y").
WithLocation
(9, 17),
3189
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "42").WithArguments("int", "Deconstruct").
WithLocation
(9, 22),
3192
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "42").WithArguments("int", "2").
WithLocation
(9, 22),
3195
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x").WithArguments("x").
WithLocation
(11, 14),
3198
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y").WithArguments("y").
WithLocation
(11, 17),
3201
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "43").WithArguments("int", "Deconstruct").
WithLocation
(11, 23),
3204
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "43").WithArguments("int", "1").
WithLocation
(11, 23),
3207
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x").WithArguments("x").
WithLocation
(13, 14),
3210
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y").WithArguments("y").
WithLocation
(13, 17),
3213
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "44").WithArguments("int", "Deconstruct").
WithLocation
(13, 22),
3216
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "44").WithArguments("int", "1").
WithLocation
(13, 22),
3219
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(8, 13),
3222
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 20)
3294
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 13),
3297
Diagnostic(ErrorCode.ERR_SyntaxError, "x1").WithArguments(",").
WithLocation
(6, 17),
3300
Diagnostic(ErrorCode.ERR_SyntaxError, "x3").WithArguments(",").
WithLocation
(7, 17),
3303
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var(int x1, x2)").
WithLocation
(6, 9),
3306
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 9),
3309
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(6, 17),
3312
Diagnostic(ErrorCode.ERR_NameNotInContext, "x2").WithArguments("x2").
WithLocation
(6, 21),
3315
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var(var x3, x4)").
WithLocation
(7, 9),
3318
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(7, 9),
3321
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(7, 13),
3324
Diagnostic(ErrorCode.ERR_NameNotInContext, "x3").WithArguments("x3").
WithLocation
(7, 17),
3327
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(7, 21),
3330
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var(x5, var(x6, x7))").
WithLocation
(8, 19),
3333
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(8, 19),
3336
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(8, 23),
3339
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(8, 27),
3342
Diagnostic(ErrorCode.ERR_NameNotInContext, "x6").WithArguments("x6").
WithLocation
(8, 31),
3345
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(8, 35)
3386
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(6, 43)
3427
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(6, 40)
3476
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(7, 33)
3528
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(6, 33)
3556
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(8, 17)
3578
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(6, 40)
3601
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(7, 30)
3632
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "1").WithArguments("int", "GetEnumerator").
WithLocation
(6, 55),
3635
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x1").WithArguments("x1").
WithLocation
(6, 33),
3638
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x2").WithArguments("x2").
WithLocation
(6, 37)
3678
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "x1").WithArguments("x1", "foreach iteration variable").
WithLocation
(8, 13),
3681
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "x2").WithArguments("x2", "foreach iteration variable").
WithLocation
(9, 13),
3684
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "x3").WithArguments("x3", "foreach iteration variable").
WithLocation
(10, 13)
3708
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(6, 36),
3711
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "M(x1)").WithArguments("(int, int)", "GetEnumerator").
WithLocation
(6, 34),
3714
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x1").WithArguments("x1").
WithLocation
(6, 23),
3717
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x2").WithArguments("x2").
WithLocation
(6, 27)
3795
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(6, 31),
3798
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(6, 42)
3820
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(byte, byte)").WithArguments("System.ValueTuple`2").
WithLocation
(4, 32),
3823
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(int, int)").WithArguments("System.ValueTuple`2").
WithLocation
(6, 38),
3826
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(int, int)").WithArguments("System.ValueTuple`2").
WithLocation
(6, 18)
3887
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()").WithArguments("C.Deconstruct(out int, out int)").
WithLocation
(6, 27)
3909
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new C()").WithArguments("C.Deconstruct(out int, out int)", "Deprecated").
WithLocation
(6, 27)
4011
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=").
WithLocation
(6, 40),
4014
Diagnostic(ErrorCode.ERR_BadConstType, "(int x, int y)").WithArguments("(int x, int y)").
WithLocation
(6, 25)
4037
Diagnostic(ErrorCode.ERR_BadMemberFlag, "const").WithArguments("const").
WithLocation
(6, 9),
4040
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(6, 19),
4043
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(6, 21),
4046
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(6, 24),
4049
Diagnostic(ErrorCode.ERR_SemicolonExpected, "=").
WithLocation
(6, 26),
4052
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(6, 26),
4055
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "").WithArguments("(x, y)").
WithLocation
(6, 19),
4058
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "x").WithArguments("x").
WithLocation
(6, 20),
4061
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "y").WithArguments("y").
WithLocation
(6, 23),
4064
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(6, 15)
4098
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 10),
4101
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(6, 15),
4104
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "int y1").WithArguments("dynamic", "int").
WithLocation
(6, 19),
4107
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(7, 10),
4110
Diagnostic(ErrorCode.ERR_NameNotInContext, "x2").WithArguments("x2").
WithLocation
(7, 15),
4113
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "int y2").WithArguments("dynamic", "int").
WithLocation
(7, 19),
4116
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "int*[] x3").WithArguments("dynamic", "int*[]").
WithLocation
(8, 10),
4119
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "int y3").WithArguments("dynamic", "int").
WithLocation
(8, 21),
4122
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(9, 10),
4125
Diagnostic(ErrorCode.WRN_ManagedAddr, "var*").WithArguments("var").
WithLocation
(9, 10),
4128
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "var*[] x4").WithArguments("dynamic", "var*[]").
WithLocation
(9, 10),
4131
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "int y4").WithArguments("dynamic", "int").
WithLocation
(9, 21)
4152
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int x1").
WithLocation
(6, 28),
4155
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "(int x1, var x2) = (1, 2)").
WithLocation
(6, 27),
4158
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x1").WithArguments("int", "string").
WithLocation
(7, 21),
4161
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x2").WithArguments("int", "string").
WithLocation
(7, 30),
4164
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(7, 21),
4167
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(7, 30)
4210
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int d").
WithLocation
(6, 28),
4213
Diagnostic(ErrorCode.ERR_IllegalStatement, "(var (a,b), var c, int d)").
WithLocation
(6, 9),
4216
Diagnostic(ErrorCode.ERR_UseDefViolation, "int d").WithArguments("d").
WithLocation
(6, 28)
4354
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int d").
WithLocation
(2, 20),
4357
Diagnostic(ErrorCode.ERR_IllegalStatement, "(var (a,b), var c, int d)").
WithLocation
(2, 1)
4482
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int _").
WithLocation
(6, 29),
4485
Diagnostic(ErrorCode.ERR_IllegalStatement, "(var (_, _), var _, int _)").
WithLocation
(6, 9)
4610
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int _").
WithLocation
(2, 21),
4613
Diagnostic(ErrorCode.ERR_IllegalStatement, "(var (_, _), var _, int _)").
WithLocation
(2, 1)
5111
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 19),
5114
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 9),
5117
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(6, 14),
5120
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(6, 17),
5123
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(7, 9),
5126
Diagnostic(ErrorCode.ERR_NameNotInContext, "c").WithArguments("c").
WithLocation
(7, 14),
5129
Diagnostic(ErrorCode.ERR_NameNotInContext, "d").WithArguments("d").
WithLocation
(7, 17)
5153
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var (a,b)").
WithLocation
(6, 11),
5156
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var c").
WithLocation
(6, 22),
5159
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int d").
WithLocation
(6, 30),
5162
Diagnostic(ErrorCode.ERR_IllegalStatement, "((var (a,b), var c), int d)").
WithLocation
(6, 9),
5165
Diagnostic(ErrorCode.ERR_UseDefViolation, "int d").WithArguments("d").
WithLocation
(6, 30)
5297
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "a").WithArguments("a").
WithLocation
(2, 8),
5300
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "b").WithArguments("b").
WithLocation
(2, 10),
5303
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "c").WithArguments("c").
WithLocation
(2, 18),
5306
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var (a,b)").
WithLocation
(2, 3),
5309
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var c").
WithLocation
(2, 14),
5312
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int d").
WithLocation
(2, 22),
5315
Diagnostic(ErrorCode.ERR_IllegalStatement, "((var (a,b), var c), int d)").
WithLocation
(2, 1)
5447
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var (_, _)").
WithLocation
(6, 11),
5450
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var _").
WithLocation
(6, 23),
5453
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int _").
WithLocation
(6, 31),
5456
Diagnostic(ErrorCode.ERR_IllegalStatement, "((var (_, _), var _), int _)").
WithLocation
(6, 9)
5584
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var (_, _)").
WithLocation
(2, 3),
5587
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var _").
WithLocation
(2, 15),
5590
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int _").
WithLocation
(2, 23),
5593
Diagnostic(ErrorCode.ERR_IllegalStatement, "((var (_, _), var _), int _)").
WithLocation
(2, 1)
5624
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var ((a,b), c)").
WithLocation
(6, 10),
5627
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int d").
WithLocation
(6, 26),
5630
Diagnostic(ErrorCode.ERR_IllegalStatement, "(var ((a,b), c), int d)").
WithLocation
(6, 9),
5633
Diagnostic(ErrorCode.ERR_UseDefViolation, "int d").WithArguments("d").
WithLocation
(6, 26)
5734
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "a").WithArguments("a").
WithLocation
(2, 8),
5737
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "b").WithArguments("b").
WithLocation
(2, 10),
5740
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "c").WithArguments("c").
WithLocation
(2, 14),
5743
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var ((a,b), c)").
WithLocation
(2, 2),
5746
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int d").
WithLocation
(2, 18),
5749
Diagnostic(ErrorCode.ERR_IllegalStatement, "(var ((a,b), c), int d)").
WithLocation
(2, 1)
5850
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var ((_, _), _)").
WithLocation
(6, 10),
5853
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int _").
WithLocation
(6, 27),
5856
Diagnostic(ErrorCode.ERR_IllegalStatement, "(var ((_, _), _), int _)").
WithLocation
(6, 9)
5950
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var ((_, _), _)").
WithLocation
(2, 2),
5953
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int _").
WithLocation
(2, 19),
5956
Diagnostic(ErrorCode.ERR_IllegalStatement, "(var ((_, _), _), int _)").
WithLocation
(2, 1)
5984
Diagnostic(ErrorCode.ERR_VoidInTuple, "Main()").
WithLocation
(5, 22)
6024
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(5, 17),
6027
Diagnostic(ErrorCode.ERR_VoidInTuple, "Main()").
WithLocation
(5, 31)
6067
Diagnostic(ErrorCode.ERR_VoidInTuple, "Main()").
WithLocation
(5, 26)
6107
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(5, 17),
6110
Diagnostic(ErrorCode.ERR_NoImplicitConv, "2").WithArguments("int", "void").
WithLocation
(5, 31)
6149
Diagnostic(ErrorCode.ERR_VoidInTuple, "Main()").
WithLocation
(5, 30)
6285
Diagnostic(ErrorCode.ERR_MustDeclareForeachIteration, "(var i, i)").
WithLocation
(6, 18),
6288
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "i").WithArguments("i").
WithLocation
(6, 23),
6291
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "i").WithArguments("i").
WithLocation
(6, 26),
6294
Diagnostic(ErrorCode.ERR_InExpected, ")").
WithLocation
(6, 28),
6297
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 28),
6300
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("}").
WithLocation
(6, 29),
6303
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 29)
6323
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "i").WithArguments("i").
WithLocation
(6, 14),
6326
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "i").WithArguments("i").
WithLocation
(6, 17),
6329
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 22)
6349
Diagnostic(ErrorCode.ERR_MustDeclareForeachIteration, "(int i, i)").
WithLocation
(6, 18),
6352
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "i").WithArguments("i", "foreach iteration variable").
WithLocation
(6, 26),
6355
Diagnostic(ErrorCode.ERR_InExpected, ")").
WithLocation
(6, 28),
6358
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 28),
6361
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("}").
WithLocation
(6, 29),
6364
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 29)
6384
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 22)
6412
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(int i, bool c) = x").WithArguments("C.implicit operator bool(C)").
WithLocation
(4, 1),
6415
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()").WithArguments("C.implicit operator bool(C)").
WithLocation
(5, 14),
6418
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(i, c) = new C2()").WithArguments("C.implicit operator bool(C)").
WithLocation
(6, 1)
6446
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "(int i, bool c) = x").WithArguments("C.implicit operator bool(C)", "Obsolete error").
WithLocation
(4, 1),
6449
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "new C()").WithArguments("C.implicit operator bool(C)", "Obsolete error").
WithLocation
(5, 14),
6452
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "(i, c) = new C2()").WithArguments("C.implicit operator bool(C)", "Obsolete error").
WithLocation
(6, 1)
Semantics\DelegateTypeTests.cs (664)
89
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "Main").WithArguments("Main", "System.Delegate").
WithLocation
(6, 13),
92
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => { }").WithArguments("lambda expression", "System.Delegate").
WithLocation
(7, 13),
95
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate () { }").WithArguments("anonymous method", "System.Delegate").
WithLocation
(8, 13),
98
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(9, 48));
129
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "Main").WithArguments("Main", "object").
WithLocation
(6, 20),
132
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "Main").WithArguments("Main", "System.ICloneable").
WithLocation
(7, 24),
135
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "Main").WithArguments("Main", "System.Delegate").
WithLocation
(8, 22),
138
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "Main").WithArguments("Main", "System.MulticastDelegate").
WithLocation
(9, 31));
144
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "Main").WithArguments("Main", "object").
WithLocation
(6, 20));
179
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(object)Main").WithArguments("method", "object").
WithLocation
(6, 17),
182
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(ICloneable)Main").WithArguments("method", "System.ICloneable").
WithLocation
(7, 17),
185
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(Delegate)Main").WithArguments("method", "System.Delegate").
WithLocation
(8, 17),
188
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(MulticastDelegate)Main").WithArguments("method", "System.MulticastDelegate").
WithLocation
(9, 17));
221
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "System.Linq.Expressions.Expression").
WithLocation
(5, 48),
224
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(System.Linq.Expressions.Expression)F").WithArguments("method", "System.Linq.Expressions.Expression").
WithLocation
(6, 13),
227
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "System.Linq.Expressions.LambdaExpression").
WithLocation
(7, 54),
230
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(System.Linq.Expressions.LambdaExpression)F").WithArguments("method", "System.Linq.Expressions.LambdaExpression").
WithLocation
(8, 13));
236
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "System.Linq.Expressions.Expression").
WithLocation
(5, 48),
239
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "(System.Linq.Expressions.Expression)F").WithArguments("F", "System.Linq.Expressions.Expression").
WithLocation
(6, 13),
242
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "System.Linq.Expressions.LambdaExpression").
WithLocation
(7, 54),
245
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "(System.Linq.Expressions.LambdaExpression)F").WithArguments("F", "System.Linq.Expressions.LambdaExpression").
WithLocation
(8, 13));
272
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F").
WithLocation
(9, 20),
275
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F").
WithLocation
(10, 24),
278
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F").
WithLocation
(11, 22),
281
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F").
WithLocation
(12, 31),
284
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "System.Linq.Expressions.Expression").
WithLocation
(13, 24));
312
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => { }").WithArguments("lambda expression", "object").
WithLocation
(6, 20),
315
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => { }").WithArguments("lambda expression", "System.ICloneable").
WithLocation
(7, 24),
318
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => { }").WithArguments("lambda expression", "System.Delegate").
WithLocation
(8, 22),
321
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => { }").WithArguments("lambda expression", "System.MulticastDelegate").
WithLocation
(9, 31));
356
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => { }").WithArguments("lambda expression", "object").
WithLocation
(6, 26),
359
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => { }").WithArguments("lambda expression", "System.ICloneable").
WithLocation
(7, 30),
362
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => { }").WithArguments("lambda expression", "System.Delegate").
WithLocation
(8, 28),
365
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => { }").WithArguments("lambda expression", "System.MulticastDelegate").
WithLocation
(9, 37));
397
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(7, 24),
400
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(9, 26));
430
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Linq.Expressions.LambdaExpression").
WithLocation
(7, 30),
433
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "System.Linq.Expressions.LambdaExpression").
WithLocation
(9, 32));
464
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "x => x").WithArguments("lambda expression", "System.Delegate").
WithLocation
(7, 22),
467
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "x => x").WithArguments("lambda expression", "object").
WithLocation
(8, 29),
470
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "x => x").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(9, 24),
473
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "x => x").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(10, 26),
476
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "x => x").WithArguments("lambda expression", "System.Linq.Expressions.LambdaExpression").
WithLocation
(11, 30),
479
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "x => x").WithArguments("lambda expression", "System.Linq.Expressions.LambdaExpression").
WithLocation
(12, 32));
485
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x => x").
WithLocation
(7, 22),
488
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x => x").
WithLocation
(8, 29),
491
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x => x").
WithLocation
(9, 24),
494
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x => x").
WithLocation
(10, 26),
497
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x => x").
WithLocation
(11, 30),
500
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x => x").
WithLocation
(12, 32));
529
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Linq.Expressions.LambdaExpression<System.Func<int>>").
WithLocation
(7, 41),
532
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "System.Linq.Expressions.LambdaExpression<System.Func<int>>").
WithLocation
(8, 43)
589
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate () { }").WithArguments("anonymous method", "object").
WithLocation
(6, 20),
592
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate () { }").WithArguments("anonymous method", "System.ICloneable").
WithLocation
(7, 24),
595
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate () { }").WithArguments("anonymous method", "System.Delegate").
WithLocation
(8, 22),
598
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate () { }").WithArguments("anonymous method", "System.MulticastDelegate").
WithLocation
(9, 31));
628
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate () { return 1; }").WithArguments("anonymous method", "System.Linq.Expressions.Expression").
WithLocation
(6, 48),
631
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate () { return 2; }").WithArguments("anonymous method", "System.Linq.Expressions.Expression").
WithLocation
(7, 25),
634
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate () { return 3; }").WithArguments("anonymous method", "System.Linq.Expressions.LambdaExpression").
WithLocation
(8, 30),
637
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate () { return 4; }").WithArguments("anonymous method", "System.Linq.Expressions.LambdaExpression").
WithLocation
(9, 31));
643
Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate () { return 1; }").
WithLocation
(6, 48),
646
Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "(Expression)delegate () { return 2; }").
WithLocation
(7, 13),
649
Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate () { return 3; }").
WithLocation
(8, 30),
652
Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "(LambdaExpression)delegate () { return 4; }").
WithLocation
(9, 13));
675
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "Main").WithArguments("Main", "dynamic").
WithLocation
(7, 13),
678
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "dynamic").
WithLocation
(8, 13));
718
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, methodGroupOnly).
WithLocation
(6, 29 + offset)
764
Diagnostic(ErrorCode.ERR_NoExplicitConv, $"(System.Delegate){methodGroupExpression}").WithArguments("method", "System.Delegate").
WithLocation
(6, 20)
886
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, anonymousFunction).
WithLocation
(5, 29));
929
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, anonymousFunction).
WithLocation
(5, 38));
987
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, anonymousFunction).
WithLocation
(5, 48));
1027
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, anonymousFunction).
WithLocation
(5, 57));
1072
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x0 => { _ = x0.Length; object y0 = 0; _ = y0.Length; }").
WithLocation
(6, 23),
1075
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Length").WithArguments("object", "Length").
WithLocation
(6, 68),
1078
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Length").WithArguments("object", "Length").
WithLocation
(7, 47),
1081
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Length").WithArguments("object", "Length").
WithLocation
(8, 51),
1084
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Length").WithArguments("object", "Length").
WithLocation
(9, 53));
1175
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, methodGroupOnly).
WithLocation
(5, 29 + offset)
1243
Diagnostic(ErrorCode.ERR_AmbigCall, "this.F<object>").WithArguments("A.F<T>(T)", "B.F<T>(T)").
WithLocation
(5, 29)
1250
Diagnostic(ErrorCode.ERR_AmbigCall, "this.F<object>").WithArguments("A.F<T>(T)", "B.F<T>(T)").
WithLocation
(5, 29)
1257
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "F<int>").WithArguments("F", "System.Action").
WithLocation
(5, 34)
1269
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, methodGroupOnly).
WithLocation
(5, 29 + offset)
1348
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "F<int>").WithArguments("F", "System.Action").
WithLocation
(6, 34)
1360
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, methodGroupOnly).
WithLocation
(6, 29 + offset)
1440
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(7, 9),
1443
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(8, 9),
1446
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(9, 9),
1449
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(10, 9)
1487
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "GetValue").WithArguments("GetValue", "object").
WithLocation
(6, 20),
1490
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "GetValue").WithArguments("GetValue", "object").
WithLocation
(7, 13),
1493
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(object)GetValue").WithArguments("method", "object").
WithLocation
(8, 13),
1496
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "GetValue").WithArguments("GetValue", "object").
WithLocation
(10, 20),
1499
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "GetValue").WithArguments("GetValue", "object").
WithLocation
(11, 13),
1502
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(object)GetValue").WithArguments("method", "object").
WithLocation
(12, 13));
1508
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "GetValue").WithArguments("GetValue", "object").
WithLocation
(6, 20),
1511
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "GetValue").WithArguments("GetValue", "object").
WithLocation
(7, 13)
1539
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(4, 27),
1542
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(object)F").WithArguments("method", "object").
WithLocation
(5, 27),
1545
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(6, 33),
1548
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(object)F").WithArguments("method", "object").
WithLocation
(7, 33));
1554
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(4, 27),
1557
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(6, 33)
1585
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(6, 30),
1588
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(object)F").WithArguments("method", "object").
WithLocation
(6, 33),
1591
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(6, 44));
1597
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(6, 30),
1600
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(6, 44)
1711
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F").
WithLocation
(7, 31),
1714
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(System.Delegate)p.F").WithArguments("method", "System.Delegate").
WithLocation
(8, 20));
1762
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "F0<int, object>").WithArguments("Program.F0(object)", "method").
WithLocation
(12, 13),
1765
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "F1<int>").WithArguments("Program.F1(object)", "method").
WithLocation
(13, 13),
1768
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F2").
WithLocation
(14, 13));
1795
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F2").
WithLocation
(14, 15));
1870
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F1").
WithLocation
(22, 15),
1873
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F2").
WithLocation
(23, 15));
1924
Diagnostic(ErrorCode.ERR_NameNotInContext, "F").WithArguments("F").
WithLocation
(14, 16),
1927
Diagnostic(ErrorCode.ERR_NoSuchMember, "F").WithArguments("A", "F").
WithLocation
(16, 21));
1956
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F1").
WithLocation
(11, 15),
1959
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F2").
WithLocation
(12, 15));
2066
Diagnostic(ErrorCode.ERR_BadUnaryOp, "(() => { }).GetType").WithArguments(".", "lambda expression").
WithLocation
(6, 27)
2093
Diagnostic(ErrorCode.ERR_BadSKunknown, "Main").WithArguments("Program.Main()", "method").
WithLocation
(6, 27)
2169
Diagnostic(ErrorCode.ERR_BindToBogus, "A.F1").WithArguments("A.F1(object)").
WithLocation
(10, 16),
2172
Diagnostic(ErrorCode.ERR_BogusType, "A.F1").WithArguments("").
WithLocation
(10, 16),
2175
Diagnostic(ErrorCode.ERR_BindToBogus, "A.F2").WithArguments("A.F2()").
WithLocation
(11, 16),
2178
Diagnostic(ErrorCode.ERR_BogusType, "A.F2").WithArguments("").
WithLocation
(11, 16));
2201
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate, "F").WithArguments("Program.F()").
WithLocation
(8, 22));
2235
Diagnostic(ErrorCode.ERR_AmbigCall, "new S().F").WithArguments("E1.F(S)", "E2.F(S)").
WithLocation
(8, 22));
2295
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "Main").
WithLocation
(6, 13),
2298
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "Main").WithArguments("System.Action").
WithLocation
(6, 13),
2301
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Delegate").
WithLocation
(7, 13),
2304
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "() => 1").WithArguments("System.Func`1").
WithLocation
(7, 13));
2396
Diagnostic(ErrorCode.ERR_BogusType, "F").WithArguments("System.Action<T>").
WithLocation
(9, 13),
2399
Diagnostic(ErrorCode.ERR_BogusType, "() => 1").WithArguments("System.Func<T>").
WithLocation
(10, 13));
2470
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(5, 48),
2473
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "() => 1").WithArguments("System.Linq.Expressions.Expression`1").
WithLocation
(5, 48));
2561
Diagnostic(ErrorCode.ERR_BogusType, "() => 1").WithArguments("System.Linq.Expressions.Expression<T>").
WithLocation
(5, 48));
2646
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(5, 48));
2668
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "F").WithArguments("Program.F<T>(T)", "System.Linq.Expressions.Expression", "T", "System.Linq.Expressions.Expression<System.Func<int>>").
WithLocation
(6, 17));
2715
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(5, 49),
2718
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "System.Linq.Expressions.LambdaExpression").
WithLocation
(6, 55),
2721
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 3").WithArguments("lambda expression", "System.Linq.Expressions.Expression<System.Func<int>>").
WithLocation
(7, 67));
2767
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "Root.System.Linq.Expressions.Expression").
WithLocation
(7, 25),
2770
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "Root.System.Linq.Expressions.LambdaExpression").
WithLocation
(8, 31),
2773
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 3").WithArguments("lambda expression", "Root.System.Linq.Expressions.Expression<System.Func<int>>").
WithLocation
(9, 36));
2804
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
2806
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.IntPtr").
WithLocation
(1, 1),
2809
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "(ref int i) => i").WithArguments("System.IntPtr").
WithLocation
(6, 13));
2840
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
2842
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.IntPtr").
WithLocation
(1, 1),
2845
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "(int* p) => p").WithArguments("System.IntPtr").
WithLocation
(6, 13));
2876
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
2878
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.MulticastDelegate").
WithLocation
(1, 1));
2909
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
2912
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "(ref int i) => i").WithArguments("lambda expression", "System.Delegate").
WithLocation
(6, 13));
3078
Diagnostic(ErrorCode.ERR_BadArgType, "F2").WithArguments("1", "method group", "System.Delegate").
WithLocation
(14, 12),
3081
Diagnostic(ErrorCode.ERR_BadArgType, "F1").WithArguments("1", "method group", "System.Delegate").
WithLocation
(15, 12),
3084
Diagnostic(ErrorCode.ERR_IllegalStatement, "0").
WithLocation
(18, 18),
3087
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "=>").WithArguments("lambda expression", "System.Func<int>").
WithLocation
(19, 15),
3090
Diagnostic(ErrorCode.ERR_RetNoObjectRequiredLambda, "return").
WithLocation
(22, 26),
3093
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "delegate").WithArguments("anonymous method", "System.Func<int>").
WithLocation
(23, 12));
3133
Diagnostic(ErrorCode.ERR_NoImplicitConv, "string.Empty").WithArguments("string", "int").
WithLocation
(11, 17),
3136
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "string.Empty").WithArguments("lambda expression").
WithLocation
(11, 17));
3165
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate () { return 0; }").WithArguments("anonymous method", "System.Linq.Expressions.Expression").
WithLocation
(9, 11),
3168
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate () { return string.Empty; }").WithArguments("anonymous method", "System.Linq.Expressions.Expression").
WithLocation
(10, 11));
3174
Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate () { return 0; }").
WithLocation
(9, 11),
3177
Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate () { return string.Empty; }").
WithLocation
(10, 11));
3289
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "x => x").WithArguments("lambda expression", "System.Delegate").
WithLocation
(9, 12),
3292
Diagnostic(ErrorCode.ERR_BadArgType, "M1").WithArguments("1", "method group", "System.Delegate").
WithLocation
(10, 12),
3295
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "x => x").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(11, 12));
3301
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x => x").
WithLocation
(9, 12),
3304
Diagnostic(ErrorCode.ERR_BadArgType, "M1").WithArguments("1", "method group", "System.Delegate").
WithLocation
(10, 12),
3307
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x => x").
WithLocation
(11, 12)
3502
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("Program.F(System.Func<System.Func<object>>, int)", "Program.F(System.Func<System.Func<int>>, object)").
WithLocation
(12, 9),
3505
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("Program.F(System.Func<System.Func<object>>, int)", "Program.F(System.Func<System.Func<int>>, object)").
WithLocation
(13, 9),
3508
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("Program.F(System.Func<System.Func<object>>, int)", "Program.F(System.Func<System.Func<int>>, object)").
WithLocation
(14, 9)
3535
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("Program.F<T>(System.Action<T>)", "Program.F(StringAction)").
WithLocation
(8, 9)
3567
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F0").WithArguments("Program.F0<T>(System.Action<T>)").
WithLocation
(10, 9)
3598
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("Program.F<T>(System.Action<T>)", "Program.F<T>(MyAction<T>)").
WithLocation
(9, 9),
3601
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(System.Action<T>)").
WithLocation
(10, 9)
3633
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("Program.F(System.Action<string>)", "Program.F(StringAction)").
WithLocation
(10, 9),
3636
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("Program.F(System.Action<string>)", "Program.F(StringAction)").
WithLocation
(11, 9)
3911
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T>(T, System.Func<object>)").
WithLocation
(9, 9),
3914
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T>(T, System.Func<object>)").
WithLocation
(10, 9));
3920
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M<T>(T, System.Func<object>)", "Program.M<T>(System.Func<object>, T)").
WithLocation
(9, 9),
3923
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M<T>(T, System.Func<object>)", "Program.M<T>(System.Func<object>, T)").
WithLocation
(10, 9)
4007
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T>(object, T)").
WithLocation
(9, 9),
4010
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "object").
WithLocation
(10, 11),
4013
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T>(object, T)").
WithLocation
(11, 9));
4046
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T, U>(System.Func<T>, U)").
WithLocation
(9, 9),
4049
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T, U>(System.Func<T>, U)").
WithLocation
(11, 9));
4082
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Delegate").
WithLocation
(9, 11),
4085
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Delegate").
WithLocation
(10, 11));
4116
Diagnostic(ErrorCode.ERR_BadArgType, "Main").WithArguments("1", "method group", "System.Delegate").
WithLocation
(8, 11),
4119
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Delegate").
WithLocation
(9, 11));
4148
Diagnostic(ErrorCode.ERR_BadArgType, "Main").WithArguments("1", "method group", "object").
WithLocation
(8, 11),
4151
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "object").
WithLocation
(9, 11));
4183
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Delegate").
WithLocation
(12, 11),
4186
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "System.Delegate").
WithLocation
(12, 20));
4192
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("Program.F(System.Delegate, System.Delegate, string)", "Program.F(System.Func<int>, System.Delegate, MyString)").
WithLocation
(12, 9)
4221
Diagnostic(ErrorCode.ERR_BadArgType, "F").WithArguments("1", "method group", "System.Linq.Expressions.Expression").
WithLocation
(10, 11));
4227
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "System.Linq.Expressions.Expression").
WithLocation
(10, 11)
4255
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(9, 11));
4284
Diagnostic(ErrorCode.ERR_BadArgType, "F").WithArguments("1", "method group", "System.Linq.Expressions.Expression").
WithLocation
(10, 11),
4287
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(11, 11));
4293
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(System.Linq.Expressions.Expression)", "C.M(System.Delegate)").
WithLocation
(10, 9),
4296
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(System.Linq.Expressions.Expression)", "C.M(System.Delegate)").
WithLocation
(11, 9)
4374
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "System.Linq.Expressions.Expression").
WithLocation
(9, 13),
4377
Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate () { return 1; }").
WithLocation
(10, 13)
4491
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("Program.F(System.Func<System.Func<object>>, int)", "Program.F(System.Func<System.Func<int>>, object)").
WithLocation
(12, 9)
4521
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { () => 0, () => 1 }").
WithLocation
(8, 20));
4599
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("Program.F(Program.D1)", "Program.F(Program.D2)").
WithLocation
(9, 17));
4620
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "x").WithArguments("1", "2", "1").
WithLocation
(7, 24));
4644
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("Program.F(Program.D1)", "Program.F(Program.D2)").
WithLocation
(11, 17));
4797
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { M1, (string s) => int.Parse(s) }").
WithLocation
(8, 18),
4800
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { (string s) => s.Length, M2 }").
WithLocation
(9, 18));
4830
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F1<object>, F1<string> }").
WithLocation
(8, 18),
4833
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F2<object>, F2<string> }").
WithLocation
(9, 18));
4861
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F1<int>, F1<object> }").
WithLocation
(8, 18),
4864
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F2<nint>, F2<System.IntPtr> }").
WithLocation
(9, 18),
4867
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F3<string>, F3<object> }").
WithLocation
(10, 18)
4900
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F<string?>, F<string> }").
WithLocation
(8, 18),
4903
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F<(int X, object Y)>, F<(int, dynamic)> }").
WithLocation
(9, 18));
4931
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { (object o) => { }, (string s) => { } }").
WithLocation
(6, 18),
4934
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { () => (object)null, () => (string)null }").
WithLocation
(7, 18));
4940
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(object o) => { }").WithArguments("lambda expression", "System.Action<string>").
WithLocation
(6, 26),
4943
Diagnostic(ErrorCode.ERR_BadParamType, "o").WithArguments("1", "", "object", "", "string").
WithLocation
(6, 34));
4969
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F1<string>, F1<string> }").
WithLocation
(8, 18),
4972
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F2<object, string>, F2<object, string> }").
WithLocation
(9, 18));
5003
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F1<object>, F1<string> }").
WithLocation
(8, 18),
5006
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F2<object, string>, F2<object, object> }").
WithLocation
(9, 18)
5038
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F<object>, F<string> }").
WithLocation
(6, 18),
5041
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { (object x, ref object y) => { }, (string x, ref object y) => { } }").
WithLocation
(7, 18),
5044
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { (object x, ref object y) => { }, (object x, ref string y) => { } }").
WithLocation
(8, 18)
5078
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F<object>, null }").
WithLocation
(7, 18),
5081
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { default, F<string> }").
WithLocation
(8, 18),
5084
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { null, default, (object x, ref string y) => { } }").
WithLocation
(9, 18));
5122
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F1 }").
WithLocation
(8, 18),
5125
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F1, F2 }").
WithLocation
(9, 18),
5128
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F2, F1 }").
WithLocation
(10, 18),
5131
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { x => x }").
WithLocation
(11, 18),
5134
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { x => x, (int y) => y }").
WithLocation
(12, 18),
5137
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { (int y) => y, static x => x }").
WithLocation
(13, 18),
5140
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { x => x, F1 }").
WithLocation
(14, 18),
5143
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F1, (int y) => y }").
WithLocation
(15, 18));
5149
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { F1 }").
WithLocation
(8, 18),
5152
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { x => x }").
WithLocation
(11, 18),
5155
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { x => x, F1 }").
WithLocation
(14, 18));
5205
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "System.Delegate").
WithLocation
(7, 35),
5208
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "System.Linq.Expressions.Expression").
WithLocation
(8, 37));
5234
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { () => 1 }").
WithLocation
(6, 18));
5259
Diagnostic(ErrorCode.ERR_BadBinaryOps, "F<object> ?? F<string>").WithArguments("??", "method group", "method group").
WithLocation
(6, 18),
5262
Diagnostic(ErrorCode.ERR_BadBinaryOps, "((object o) => { }) ?? ((string s) => { })").WithArguments("??", "lambda expression", "lambda expression").
WithLocation
(7, 18),
5265
Diagnostic(ErrorCode.ERR_BadBinaryOps, "F<string> ?? ((object o) => { })").WithArguments("??", "method group", "lambda expression").
WithLocation
(8, 18)
5411
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "(bool b) => { if (b) return null; }").
WithLocation
(6, 16),
5414
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "(bool b) => { if (b) return; else return null; }").
WithLocation
(7, 16),
5417
Diagnostic(ErrorCode.ERR_RetNoObjectRequiredLambda, "return").
WithLocation
(7, 50));
5439
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "(bool b) => { if (b) return default; }").
WithLocation
(6, 16),
5442
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "(bool b) => { if (b) return; else return default; }").
WithLocation
(7, 16),
5445
Diagnostic(ErrorCode.ERR_RetNoObjectRequiredLambda, "return").
WithLocation
(7, 50));
5467
Diagnostic(ErrorCode.ERR_RetObjectRequired, "return").WithArguments("object").
WithLocation
(6, 31),
5470
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "=>").WithArguments("lambda expression", "System.Func<bool, object>").
WithLocation
(7, 32),
5473
Diagnostic(ErrorCode.ERR_RetObjectRequired, "return").WithArguments("object").
WithLocation
(8, 44));
5498
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F1").WithArguments("Program.F1<T>(T)").
WithLocation
(9, 16),
5501
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F2").WithArguments("Program.F2<T>(T)").
WithLocation
(10, 16));
5605
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(9, 16),
5608
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(10, 16));
5638
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(9, 16),
5641
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(10, 16));
5676
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T>(T, T)").
WithLocation
(10, 18),
5679
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T>(T, T)").
WithLocation
(11, 18),
5682
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T>(T, T)").
WithLocation
(12, 18));
5718
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T>(T, T)").
WithLocation
(8, 18),
5721
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T>(T, T)").
WithLocation
(9, 18),
5724
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T>(T, T)").
WithLocation
(10, 18),
5727
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("Program.M<T>(T, T)").
WithLocation
(11, 18));
5788
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(object o) => { }").WithArguments("lambda expression", "D1<string>").
WithLocation
(11, 22),
5791
Diagnostic(ErrorCode.ERR_BadParamType, "o").WithArguments("1", "", "object", "", "string").
WithLocation
(11, 30),
5794
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1.0").WithArguments("double", "int").
WithLocation
(12, 24),
5797
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "1.0").WithArguments("lambda expression").
WithLocation
(12, 24)
5827
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(7, 16),
5830
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(8, 16));
5836
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(object o) => { }").WithArguments("lambda expression", "System.Action<string>").
WithLocation
(7, 37),
5839
Diagnostic(ErrorCode.ERR_BadParamType, "o").WithArguments("1", "", "object", "", "string").
WithLocation
(7, 45));
5895
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(object o) => { }").WithArguments("lambda expression", "D1<string>").
WithLocation
(12, 23),
5898
Diagnostic(ErrorCode.ERR_BadParamType, "o").WithArguments("1", "", "object", "", "string").
WithLocation
(12, 31)
5931
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(object o) => { }").WithArguments("lambda expression", "D1<string>").
WithLocation
(10, 42),
5934
Diagnostic(ErrorCode.ERR_BadParamType, "o").WithArguments("1", "", "object", "", "string").
WithLocation
(10, 50)
5997
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(object o) => { }").WithArguments("lambda expression", "D1<string>").
WithLocation
(12, 27),
6000
Diagnostic(ErrorCode.ERR_BadParamType, "o").WithArguments("1", "", "object", "", "string").
WithLocation
(12, 35)
6033
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F1").WithArguments("Program.F1<T>(in T, T)").
WithLocation
(10, 16),
6036
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F2").WithArguments("Program.F2<T>(T, in T)").
WithLocation
(11, 16)
6046
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(object o) => { }").WithArguments("lambda expression", "System.Action<D1<string>>").
WithLocation
(10, 42),
6049
Diagnostic(ErrorCode.ERR_BadParamType, "o").WithArguments("1", "", "object", "", "D1<string>").
WithLocation
(10, 50),
6052
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F2").WithArguments("Program.F2<T>(T, in T)").
WithLocation
(11, 16));
6074
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(7, 16));
6101
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(7, 16),
6104
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(8, 16),
6107
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "string").WithArguments("lambda return type", "10.0").
WithLocation
(8, 18),
6110
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "object").WithArguments("lambda return type", "10.0").
WithLocation
(8, 40));
6116
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(object o) => { }").WithArguments("lambda expression", "System.Action<string>").
WithLocation
(7, 37),
6119
Diagnostic(ErrorCode.ERR_BadParamType, "o").WithArguments("1", "", "object", "", "string").
WithLocation
(7, 45),
6122
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "string () => default").WithArguments("lambda expression", "System.Func<object>").
WithLocation
(8, 18));
6147
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(9, 16),
6150
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(10, 16));
6178
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(7, 16));
6184
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(7, 16));
6208
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(8, 16));
6215
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(8, 16));
6237
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(7, 16));
6243
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(7, 16));
6266
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(8, 16));
6272
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(8, 16));
6296
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(7, 16),
6299
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(8, 16),
6302
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "string").WithArguments("lambda return type", "10.0").
WithLocation
(8, 18),
6305
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "object").WithArguments("lambda return type", "10.0").
WithLocation
(8, 49));
6311
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(7, 16),
6314
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(8, 16));
6340
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(9, 16),
6343
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(10, 16));
6350
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(9, 16),
6353
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(T, T)").
WithLocation
(10, 16));
6374
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F1").WithArguments("Program.F1<T>(T)").
WithLocation
(8, 12));
6381
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F2").WithArguments("Program.F2<T>(D<T>)").
WithLocation
(8, 9));
6402
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F1").WithArguments("Program.F1<T>(T)").
WithLocation
(8, 12));
6409
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F2").WithArguments("Program.F2<T>(System.Linq.Expressions.Expression<T>)").
WithLocation
(8, 9));
6441
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(T)").
WithLocation
(10, 18),
6444
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("Program.M2<T>(T, T)").
WithLocation
(11, 18),
6447
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("Program.M2<T>(T, T)").
WithLocation
(12, 18),
6450
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(T)").
WithLocation
(13, 18),
6453
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("Program.M2<T>(T, T)").
WithLocation
(14, 18),
6456
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("Program.M2<T>(T, T)").
WithLocation
(15, 18));
6462
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(T)").
WithLocation
(10, 18),
6465
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(T)").
WithLocation
(13, 18));
6488
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int").WithArguments("lambda return type", "10.0").
WithLocation
(9, 12),
6491
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int").WithArguments("lambda return type", "10.0").
WithLocation
(10, 12));
6523
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int").WithArguments("lambda return type", "10.0").
WithLocation
(9, 12),
6526
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "string").WithArguments("lambda return type", "10.0").
WithLocation
(10, 12));
6559
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "ref int").WithArguments("lambda return type", "10.0").
WithLocation
(10, 13),
6562
Diagnostic(ErrorCode.ERR_RefReturnParameter, "i").WithArguments("i").
WithLocation
(10, 32),
6565
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "ref readonly string").WithArguments("lambda return type", "10.0").
WithLocation
(11, 13),
6568
Diagnostic(ErrorCode.ERR_RefReturnParameter, "s").WithArguments("s").
WithLocation
(11, 44));
6574
Diagnostic(ErrorCode.ERR_RefReturnParameter, "i").WithArguments("i").
WithLocation
(10, 32),
6577
Diagnostic(ErrorCode.ERR_RefReturnParameter, "s").WithArguments("s").
WithLocation
(11, 44)
6611
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "object").WithArguments("lambda return type", "10.0").
WithLocation
(9, 12),
6614
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int").WithArguments("lambda return type", "10.0").
WithLocation
(10, 12),
6617
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "object").WithArguments("lambda return type", "10.0").
WithLocation
(11, 12),
6620
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "string").WithArguments("lambda return type", "10.0").
WithLocation
(12, 12));
6654
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F1").WithArguments("Program.F1<T>(System.Func<T, T>, T)").
WithLocation
(9, 9),
6657
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int").WithArguments("lambda return type", "10.0").
WithLocation
(9, 12),
6660
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F2").WithArguments("Program.F2<T>(System.Linq.Expressions.Expression<System.Func<T, T>>, T)").
WithLocation
(10, 9),
6663
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "string").WithArguments("lambda return type", "10.0").
WithLocation
(10, 12));
6669
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F1").WithArguments("Program.F1<T>(System.Func<T, T>, T)").
WithLocation
(9, 9),
6672
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F2").WithArguments("Program.F2<T>(System.Linq.Expressions.Expression<System.Func<T, T>>, T)").
WithLocation
(10, 9)
6752
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F1").WithArguments("Program.F1<T>(System.Func<T, T>)").
WithLocation
(16, 9),
6755
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F2").WithArguments("Program.F2<T>(System.Func<T, I<T>>)").
WithLocation
(17, 9),
6758
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F3").WithArguments("Program.F3<T>(System.Func<I<T>, T>)").
WithLocation
(18, 9),
6761
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F4").WithArguments("Program.F4<T>(System.Func<I<T>, I<T>>)").
WithLocation
(19, 9),
6764
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F5").WithArguments("Program.F5<T>(System.Linq.Expressions.Expression<System.Func<T, T>>)").
WithLocation
(20, 9),
6767
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F6").WithArguments("Program.F6<T>(System.Linq.Expressions.Expression<System.Func<T, I<T>>>)").
WithLocation
(21, 9),
6770
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F7").WithArguments("Program.F7<T>(System.Linq.Expressions.Expression<System.Func<I<T>, T>>)").
WithLocation
(22, 9),
6773
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F8").WithArguments("Program.F8<T>(System.Linq.Expressions.Expression<System.Func<I<T>, I<T>>>)").
WithLocation
(23, 9));
6802
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int").WithArguments("lambda return type", "10.0").
WithLocation
(9, 12),
6805
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int").WithArguments("lambda return type", "10.0").
WithLocation
(9, 26),
6808
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F1").WithArguments("Program.F1<T>(System.Func<T, T>, System.Func<T, T>)").
WithLocation
(10, 9),
6811
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "object").WithArguments("lambda return type", "10.0").
WithLocation
(10, 12),
6814
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int").WithArguments("lambda return type", "10.0").
WithLocation
(10, 29),
6817
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "string").WithArguments("lambda return type", "10.0").
WithLocation
(11, 12),
6820
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "string").WithArguments("lambda return type", "10.0").
WithLocation
(11, 29),
6823
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F2").WithArguments("Program.F2<T>(System.Linq.Expressions.Expression<System.Func<T, T>>, System.Linq.Expressions.Expression<System.Func<T, T>>)").
WithLocation
(12, 9),
6826
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "string").WithArguments("lambda return type", "10.0").
WithLocation
(12, 12),
6829
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "object").WithArguments("lambda return type", "10.0").
WithLocation
(12, 29));
6835
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F1").WithArguments("Program.F1<T>(System.Func<T, T>, System.Func<T, T>)").
WithLocation
(10, 9),
6838
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F2").WithArguments("Program.F2<T>(System.Linq.Expressions.Expression<System.Func<T, T>>, System.Linq.Expressions.Expression<System.Func<T, T>>)").
WithLocation
(12, 9)
6873
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(object? (y1) => y1)").
WithLocation
(12, 9),
6876
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(object? (y2) => y2)").
WithLocation
(13, 9));
6973
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(38, 9),
6976
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(39, 9));
7016
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "object (object? x2) =>").WithArguments("x2", "lambda expression", "System.Func<object, object>").
WithLocation
(11, 21),
7019
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x2").
WithLocation
(11, 44),
7022
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "object? (object x3) =>").WithArguments("lambda expression", "System.Func<object, object>").
WithLocation
(12, 21),
7025
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "object (object? y2) =>").WithArguments("y2", "lambda expression", "System.Func<object, object>").
WithLocation
(15, 21),
7028
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").
WithLocation
(15, 44),
7031
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "object? (object y3) =>").WithArguments("lambda expression", "System.Func<object, object>").
WithLocation
(16, 21),
7034
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x4").
WithLocation
(21, 9),
7037
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y4").
WithLocation
(25, 9));
7063
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test3").WithArguments("Test3").
WithLocation
(6, 6),
7066
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test4").WithArguments("Test4").
WithLocation
(7, 6),
7069
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test3").WithArguments("Test3<T>(System.Func<System.Func<T>>)").
WithLocation
(11, 1),
7072
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test4").WithArguments("Test4<T>(System.Func<System.Linq.Expressions.Expression<System.Func<T>>>)").
WithLocation
(12, 1)
7166
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(System.Func<T>)").
WithLocation
(11, 9),
7169
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("Program.M2<T>(System.Linq.Expressions.Expression<System.Func<T>>)").
WithLocation
(12, 9),
7172
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(System.Func<T>)").
WithLocation
(13, 9),
7175
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("Program.M2<T>(System.Linq.Expressions.Expression<System.Func<T>>)").
WithLocation
(14, 9)
7214
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(System.Func<System.Func<T>>)").
WithLocation
(12, 9),
7217
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("Program.M2<T>(System.Func<System.Linq.Expressions.Expression<System.Func<T>>>)").
WithLocation
(13, 9),
7220
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M3").WithArguments("Program.M3<T>(System.Linq.Expressions.Expression<System.Func<System.Func<T>>>)").
WithLocation
(14, 9),
7223
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(System.Func<System.Func<T>>)").
WithLocation
(15, 9),
7226
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("Program.M2<T>(System.Func<System.Linq.Expressions.Expression<System.Func<T>>>)").
WithLocation
(16, 9),
7229
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M3").WithArguments("Program.M3<T>(System.Linq.Expressions.Expression<System.Func<System.Func<T>>>)").
WithLocation
(17, 9)
7417
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(object o) => { }").WithArguments("lambda expression", "System.Action<string>").
WithLocation
(8, 29),
7420
Diagnostic(ErrorCode.ERR_BadParamType, "o").WithArguments("1", "", "object", "", "string").
WithLocation
(8, 37));
7441
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "string () => string.Empty").WithArguments("lambda expression", "System.Func<object>").
WithLocation
(7, 27));
7467
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "Main").WithArguments("inferred delegate type", "10.0").
WithLocation
(6, 18),
7470
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "() => { }").WithArguments("inferred delegate type", "10.0").
WithLocation
(8, 18),
7473
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "delegate () { }").WithArguments("inferred delegate type", "10.0").
WithLocation
(10, 18));
7540
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "object.ReferenceEquals").WithArguments("inferred delegate type", "10.0").
WithLocation
(1, 10),
7543
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "() => { }").WithArguments("inferred delegate type", "10.0").
WithLocation
(2, 10),
7546
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "delegate () { }").WithArguments("inferred delegate type", "10.0").
WithLocation
(3, 10));
7569
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "d1 = Main").
WithLocation
(5, 17),
7572
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "Main").WithArguments("Main", "method group").
WithLocation
(5, 22),
7575
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "d2 = () => { }").
WithLocation
(6, 17),
7578
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "() => { }").
WithLocation
(6, 22),
7581
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "d3 = delegate () { }").
WithLocation
(7, 17),
7584
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "delegate () { }").
WithLocation
(7, 22));
7604
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "using var d1 = Main;").WithArguments("System.Action").
WithLocation
(5, 9),
7607
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "using var d2 = () => { };").WithArguments("System.Action").
WithLocation
(6, 9),
7610
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "using var d3 = delegate () { };").WithArguments("System.Action").
WithLocation
(7, 9));
7630
Diagnostic(ErrorCode.ERR_AnonMethGrpInForEach, "Main").WithArguments("method group").
WithLocation
(5, 28),
7633
Diagnostic(ErrorCode.ERR_AnonMethGrpInForEach, "() => { }").WithArguments("lambda expression").
WithLocation
(6, 28),
7636
Diagnostic(ErrorCode.ERR_AnonMethGrpInForEach, "delegate () { }").WithArguments("anonymous method").
WithLocation
(7, 28));
7661
Diagnostic(ErrorCode.ERR_NoImplicitConv, "d1").WithArguments("System.Action", "System.Func<int>").
WithLocation
(8, 13),
7664
Diagnostic(ErrorCode.ERR_NoImplicitConv, "d2").WithArguments("System.Func<int, object>", "System.Func<int>").
WithLocation
(10, 13),
7667
Diagnostic(ErrorCode.ERR_NoImplicitConv, "d3").WithArguments("System.Func<string>", "System.Func<int>").
WithLocation
(12, 13));
7703
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "t = (Main, () => { })").WithArguments("(method group, lambda expression)").
WithLocation
(5, 13));
7722
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x1").WithArguments("x1").
WithLocation
(5, 14),
7725
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y1").WithArguments("y1").
WithLocation
(5, 22),
7728
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "Main").
WithLocation
(5, 28),
7731
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x2").WithArguments("x2").
WithLocation
(6, 14),
7734
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y2").WithArguments("y2").
WithLocation
(6, 18),
7737
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "() => { }").
WithLocation
(6, 24));
7755
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x").WithArguments("x").
WithLocation
(5, 14),
7758
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y").WithArguments("y").
WithLocation
(5, 17));
7778
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x1").WithArguments("x1").
WithLocation
(6, 14),
7781
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y2").WithArguments("y2").
WithLocation
(7, 25));
7802
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F").
WithLocation
(7, 18),
7805
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x => x").
WithLocation
(8, 18));
7866
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y").WithArguments("y").
WithLocation
(6, 19));
7890
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? () => string.Empty : () => string.Empty").WithArguments("lambda expression", "lambda expression").
WithLocation
(7, 18),
7893
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? F1 : () => string.Empty").WithArguments("method group", "lambda expression").
WithLocation
(8, 18),
7896
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? (object o) => { } : F2").WithArguments("lambda expression", "method group").
WithLocation
(9, 18),
7899
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? F2 : F2").WithArguments("method group", "method group").
WithLocation
(10, 18)
7927
Diagnostic(ErrorCode.ERR_BogusType, "F").WithArguments("System.Action<T>").
WithLocation
(6, 18),
7930
Diagnostic(ErrorCode.ERR_BogusType, "() => 1").WithArguments("System.Func<T>").
WithLocation
(7, 18));
7953
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(() => { }) == null").WithArguments("==", "lambda expression", "<null>").
WithLocation
(6, 18),
7956
Diagnostic(ErrorCode.ERR_BadBinaryOps, "null == Main").WithArguments("==", "<null>", "method group").
WithLocation
(7, 18),
7959
Diagnostic(ErrorCode.ERR_BadBinaryOps, "Main == (() => { })").WithArguments("==", "method group", "lambda expression").
WithLocation
(8, 18));
7988
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c + Main").WithArguments("+", "C", "method group").
WithLocation
(10, 13),
7991
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c + (() => 1)").WithArguments("+", "C", "lambda expression").
WithLocation
(11, 13));
7997
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "c + Main").WithArguments("+", "C", "method group").
WithLocation
(10, 13),
8000
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "c + (() => 1)").WithArguments("+", "C", "lambda expression").
WithLocation
(11, 13)
8030
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c + F").WithArguments("+", "C", "method group").
WithLocation
(10, 13),
8033
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c + (() => 1)").WithArguments("+", "C", "lambda expression").
WithLocation
(11, 13));
8066
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c + F").WithArguments("+", "C", "method group").
WithLocation
(11, 13),
8069
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c + (() => 1)").WithArguments("+", "C", "lambda expression").
WithLocation
(12, 13));
8075
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "System.Linq.Expressions.Expression").
WithLocation
(11, 17)
8105
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c + F").WithArguments("+", "C", "method group").
WithLocation
(10, 13));
8164
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c + F").WithArguments("+", "C", "method group").
WithLocation
(11, 13));
8170
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "System.Linq.Expressions.Expression").
WithLocation
(11, 17)
9033
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(3, 16),
9036
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "F").
WithLocation
(6, 18),
9039
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "ref void () => { }").
WithLocation
(7, 19),
9042
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(7, 23));
9524
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 20));
10371
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "lam1").WithArguments("arg", "<anonymous delegate>").
WithLocation
(25, 1),
10374
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "inferred1").WithArguments("arg", "<anonymous delegate>").
WithLocation
(26, 1),
10377
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "lam2").WithArguments("arg2", "<anonymous delegate>").
WithLocation
(27, 1),
10380
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "inferred2").WithArguments("arg2", "<anonymous delegate>").
WithLocation
(28, 1),
10383
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "lam3").WithArguments("arg1", "<anonymous delegate>").
WithLocation
(29, 1),
10386
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "inferred3").WithArguments("arg1", "<anonymous delegate>").
WithLocation
(30, 1),
10389
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("1", "out").
WithLocation
(31, 11),
10392
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("1", "out").
WithLocation
(32, 16));
10425
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "lam1").WithArguments("arg", "<anonymous delegate>").
WithLocation
(16, 5),
10428
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "inferred1").WithArguments("arg", "<anonymous delegate>").
WithLocation
(17, 5),
10431
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "lam2").WithArguments("arg2", "<anonymous delegate>").
WithLocation
(18, 5),
10434
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "inferred2").WithArguments("arg2", "<anonymous delegate>").
WithLocation
(19, 5),
10437
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "lam2").WithArguments("arg2", "<anonymous delegate>").
WithLocation
(20, 5),
10440
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "inferred2").WithArguments("arg2", "<anonymous delegate>").
WithLocation
(21, 5));
10481
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "lam").WithArguments("arg1", "<anonymous delegate>").
WithLocation
(4, 1),
10484
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "inferred").WithArguments("arg1", "<anonymous delegate>").
WithLocation
(5, 1),
10487
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "lam").WithArguments("arg1", "<anonymous delegate>").
WithLocation
(6, 1),
10490
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "inferred").WithArguments("arg1", "<anonymous delegate>").
WithLocation
(7, 1));
10950
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "A.F").WithArguments("System.Diagnostics.CodeAnalysis.UnscopedRefAttribute", ".ctor").
WithLocation
(6, 17));
11014
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "A.F").WithArguments("System.Diagnostics.CodeAnalysis.UnscopedRefAttribute", ".ctor").
WithLocation
(6, 17));
11038
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "y").WithArguments("System.Diagnostics.CodeAnalysis.UnscopedRefAttribute", ".ctor").
WithLocation
(7, 51));
11135
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "BeginInvoke").WithArguments("<anonymous delegate>", "BeginInvoke").
WithLocation
(12, 25),
11138
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "EndInvoke").WithArguments("<anonymous delegate>", "EndInvoke").
WithLocation
(13, 12),
11141
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "BeginInvoke").WithArguments("<anonymous delegate>", "BeginInvoke").
WithLocation
(19, 25),
11144
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "EndInvoke").WithArguments("<anonymous delegate>", "EndInvoke").
WithLocation
(20, 12));
11165
Diagnostic(ErrorCode.ERR_CannotClone, "d1").WithArguments("System.Func<int, int>").
WithLocation
(6, 14),
11168
Diagnostic(ErrorCode.ERR_CannotClone, "d2").WithArguments("<anonymous delegate>").
WithLocation
(8, 14));
11206
Diagnostic(ErrorCode.ERR_BadAwaitArgIntrinsic, "await Main").WithArguments("method group").
WithLocation
(9, 16),
11209
Diagnostic(ErrorCode.ERR_BadAwaitArgIntrinsic, "await ((ref int x) => x)").WithArguments("lambda expression").
WithLocation
(11, 16));
11275
Diagnostic(ErrorCode.ERR_AnonMethGrpInForEach, "Main").WithArguments("method group").
WithLocation
(7, 26),
11278
Diagnostic(ErrorCode.ERR_AnonMethGrpInForEach, "(ref int x) => x").WithArguments("lambda expression").
WithLocation
(8, 26));
11339
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "Main").
WithLocation
(8, 24),
11342
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "(ref int x) => x").
WithLocation
(10, 24));
11511
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "(Employee e) => e.Name").WithArguments("lambda expression", "Program.Field").
WithLocation
(7, 20)
11553
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C1").
WithLocation
(16, 17),
11556
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C2").
WithLocation
(17, 17),
11559
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "C1").
WithLocation
(18, 14)
11602
Diagnostic(ErrorCode.ERR_ConversionWithBase, "C1").WithArguments("C1.implicit operator C1(object)").
WithLocation
(4, 37),
11605
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "C2").WithArguments("C2.implicit operator C2(System.ICloneable)").
WithLocation
(8, 37),
11608
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C1").
WithLocation
(15, 17),
11611
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C2").
WithLocation
(16, 17),
11614
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "C1").
WithLocation
(17, 14),
11617
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "C2").
WithLocation
(18, 14),
11620
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C1").
WithLocation
(19, 18),
11623
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C2").
WithLocation
(20, 18),
11626
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C1)F").WithArguments("method", "C1").
WithLocation
(21, 13),
11629
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C2)F").WithArguments("method", "C2").
WithLocation
(22, 13)
11685
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C1").
WithLocation
(24, 17),
11688
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C2").
WithLocation
(25, 17),
11691
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 3").WithArguments("lambda expression", "C3").
WithLocation
(26, 17),
11694
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 4").WithArguments("lambda expression", "C4").
WithLocation
(27, 17),
11697
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "C1").
WithLocation
(28, 14),
11700
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "C2").
WithLocation
(29, 14),
11703
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C1").
WithLocation
(30, 18),
11706
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C2").
WithLocation
(31, 18),
11709
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 3").WithArguments("lambda expression", "C3").
WithLocation
(32, 18),
11712
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 4").WithArguments("lambda expression", "C4").
WithLocation
(33, 18),
11715
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C1)F").WithArguments("method", "C1").
WithLocation
(34, 13),
11718
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C2)F").WithArguments("method", "C2").
WithLocation
(35, 13)
11757
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C<object>").
WithLocation
(11, 24),
11760
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C<System.ICloneable>").
WithLocation
(12, 28),
11763
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "C<object>").
WithLocation
(13, 14),
11766
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "C<System.ICloneable>").
WithLocation
(14, 14),
11769
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C<object>").
WithLocation
(15, 25),
11772
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C<System.ICloneable>").
WithLocation
(16, 29),
11775
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C<object>)F").WithArguments("method", "C<object>").
WithLocation
(17, 13),
11778
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C<ICloneable>)F").WithArguments("method", "C<System.ICloneable>").
WithLocation
(18, 13)
11822
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C<System.Delegate>").
WithLocation
(12, 26),
11825
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C<System.MulticastDelegate>").
WithLocation
(13, 35),
11828
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 3").WithArguments("lambda expression", "C<System.Linq.Expressions.Expression>").
WithLocation
(14, 28),
11831
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 4").WithArguments("lambda expression", "C<System.Linq.Expressions.LambdaExpression>").
WithLocation
(15, 34),
11834
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "C<System.Delegate>").
WithLocation
(16, 14),
11837
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "C<System.MulticastDelegate>").
WithLocation
(17, 14),
11840
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C<System.Delegate>").
WithLocation
(18, 27),
11843
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C<System.MulticastDelegate>").
WithLocation
(19, 36),
11846
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 3").WithArguments("lambda expression", "C<System.Linq.Expressions.Expression>").
WithLocation
(20, 29),
11849
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 4").WithArguments("lambda expression", "C<System.Linq.Expressions.LambdaExpression>").
WithLocation
(21, 35),
11852
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C<Delegate>)F").WithArguments("method", "C<System.Delegate>").
WithLocation
(22, 13),
11855
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C<MulticastDelegate>)F").WithArguments("method", "C<System.MulticastDelegate>").
WithLocation
(23, 13)
11928
Diagnostic(ErrorCode.ERR_ConversionWithBase, "C1").WithArguments("C1.explicit operator C1(object)").
WithLocation
(4, 37),
11931
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "C2").WithArguments("C2.explicit operator C2(System.ICloneable)").
WithLocation
(8, 37),
11934
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C1").
WithLocation
(15, 18),
11937
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C2").
WithLocation
(16, 18),
11940
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C1)F").WithArguments("method", "C1").
WithLocation
(17, 13),
11943
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C2)F").WithArguments("method", "C2").
WithLocation
(18, 13)
11993
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C1").
WithLocation
(24, 18),
11996
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C2").
WithLocation
(25, 18),
11999
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 3").WithArguments("lambda expression", "C3").
WithLocation
(26, 18),
12002
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 4").WithArguments("lambda expression", "C4").
WithLocation
(27, 18),
12005
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C1)F").WithArguments("method", "C1").
WithLocation
(28, 13),
12008
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C2)F").WithArguments("method", "C2").
WithLocation
(29, 13)
12043
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C<object>").
WithLocation
(11, 25),
12046
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C<System.ICloneable>").
WithLocation
(12, 29),
12049
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C<object>)F").WithArguments("method", "C<object>").
WithLocation
(13, 13),
12052
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C<ICloneable>)F").WithArguments("method", "C<System.ICloneable>").
WithLocation
(14, 13)
12090
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 1").WithArguments("lambda expression", "C<System.Delegate>").
WithLocation
(12, 27),
12093
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 2").WithArguments("lambda expression", "C<System.MulticastDelegate>").
WithLocation
(13, 36),
12096
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 3").WithArguments("lambda expression", "C<System.Linq.Expressions.Expression>").
WithLocation
(14, 29),
12099
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => 4").WithArguments("lambda expression", "C<System.Linq.Expressions.LambdaExpression>").
WithLocation
(15, 35),
12102
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C<Delegate>)F").WithArguments("method", "C<System.Delegate>").
WithLocation
(16, 13),
12105
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C<MulticastDelegate>)F").WithArguments("method", "C<System.MulticastDelegate>").
WithLocation
(17, 13)
12179
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(7, 11),
12182
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(8, 11));
12232
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(7, 11),
12235
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(8, 11));
12674
Diagnostic(ErrorCode.ERR_NoImplicitConv, "lam2").WithArguments("<anonymous delegate>", "<anonymous delegate>").
WithLocation
(10, 16));
12736
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "x").WithArguments("1", "1000", "1").
WithLocation
(8, 20));
12761
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "f(1)").WithArguments("x").
WithLocation
(10, 24));
12782
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "x").WithArguments("1", "1000", "<missing>").
WithLocation
(8, 20));
12820
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "f(1000)").WithArguments("x").
WithLocation
(9, 24));
12843
Diagnostic(ErrorCode.ERR_DefaultValueBeforeRequiredValue, ")").
WithLocation
(6, 45),
12846
Diagnostic(ErrorCode.ERR_NoImplicitConv, "lam1").WithArguments("<anonymous delegate>", "System.Func<int, int, int, int>").
WithLocation
(9, 16));
12864
Diagnostic(ErrorCode.ERR_DefaultValueBeforeRequiredValue, ",").
WithLocation
(5, 47),
12867
Diagnostic(ErrorCode.ERR_DefaultValueBeforeRequiredValue, ",").
WithLocation
(5, 58),
12870
Diagnostic(ErrorCode.ERR_DefaultValueBeforeRequiredValue, ",").
WithLocation
(5, 69));
12889
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(int x, double d = 3.0) => x + d").WithArguments("lambda expression", "Program.D").
WithLocation
(6, 15),
12892
Diagnostic(ErrorCode.ERR_BadParamType, "d").WithArguments("2", "", "double", "", "int").
WithLocation
(6, 30));
12917
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(int x, A a = null) => { }").WithArguments("lambda expression", "Program.D").
WithLocation
(12, 15),
12920
Diagnostic(ErrorCode.ERR_BadParamType, "a").WithArguments("2", "", "A", "", "B").
WithLocation
(12, 25));
13054
Diagnostic(ErrorCode.ERR_BadNamedArgumentForDelegateInvoke, "b").WithArguments("<anonymous delegate>", "b").
WithLocation
(8, 31));
13075
Diagnostic(ErrorCode.ERR_BadNamedArgumentForDelegateInvoke, "b").WithArguments("<anonymous delegate>", "b").
WithLocation
(8, 31));
13201
Diagnostic(ErrorCode.ERR_BadCallerMemberNameParamWithoutDefaultValue, "CallerMemberName").
WithLocation
(2, 14),
13204
Diagnostic(ErrorCode.ERR_BadCallerFilePathParamWithoutDefaultValue, "CallerFilePath").
WithLocation
(2, 48),
13207
Diagnostic(ErrorCode.ERR_BadCallerLineNumberParamWithoutDefaultValue, "CallerLineNumber").
WithLocation
(2, 82),
13210
Diagnostic(ErrorCode.ERR_BadCallerArgumentExpressionParamWithoutDefaultValue, "CallerArgumentExpression").
WithLocation
(3, 23));
13253
Diagnostic(ErrorCode.ERR_ImplicitlyTypedDefaultParameter, "x").WithArguments("x").
WithLocation
(8, 16));
13580
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "M").WithArguments("M", "Program.Del").
WithLocation
(15, 42));
13700
Diagnostic(ErrorCode.ERR_BadArgType, "f").WithArguments("1", "<anonymous delegate>", "System.Func<int, int>").
WithLocation
(15, 24));
13722
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "_").WithArguments("2", "3", "<missing>").
WithLocation
(8, 27),
13725
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "d").WithArguments("y", "Program.D").
WithLocation
(9, 27));
13747
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "_").WithArguments("2", "3", "7").
WithLocation
(8, 27));
13772
Diagnostic(ErrorCode.ERR_NoImplicitConv, "5").WithArguments("int", "string").
WithLocation
(9, 24),
13775
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "d").WithArguments("y", "Program.D").
WithLocation
(12, 27));
13810
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "i").WithArguments("1", "4", "3").
WithLocation
(9, 18));
13833
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "i").WithArguments("1", "4", "<missing>").
WithLocation
(9, 18),
13836
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "m").WithArguments("arg", "System.Func<int, int>").
WithLocation
(10, 27));
13946
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "s").WithArguments("int", "short").
WithLocation
(1, 18));
13983
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @"$""i: {i}""").WithArguments("h").
WithLocation
(8, 38));
13995
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "s").WithArguments("int", "string").
WithLocation
(1, 19));
14016
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "f(1000)").WithArguments("x").
WithLocation
(8, 28));
14036
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @"$""n: {n}""").WithArguments("s").
WithLocation
(7, 31));
14048
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ReadOnlySpan<byte>").WithArguments("ReadOnlySpan<>").
WithLocation
(1, 12));
14174
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "lam").WithArguments("arg", "System.Func<int, int>").
WithLocation
(10, 1),
14177
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Method").WithArguments("x", "Method(int)").
WithLocation
(11, 1),
14180
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "inferred").WithArguments("arg", "System.Func<int, int>").
WithLocation
(12, 1));
15084
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { (int i = 1) => { }, (int i = 2) => { } }").
WithLocation
(1, 11));
15148
Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "f").WithArguments("f", "object").
WithLocation
(1, 20),
15151
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "1.0").WithArguments("System.Double").
WithLocation
(1, 24),
15154
Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "d").WithArguments("d", "object").
WithLocation
(2, 20),
15157
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "2m").WithArguments("System.Decimal").
WithLocation
(2, 24));
15174
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "1.1m").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(1, 25)
15205
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "1.1m").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(1, 28));
15223
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "1.1m").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(1, 28));
15241
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "1.1m").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(1, 25),
15244
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "1.1m").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(3, 32));
15302
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "d").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(4, 68));
15339
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "d").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(3, 58));
15377
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "C.M").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(1, 9),
15380
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "1.1m").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(5, 39));
15404
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "C.M").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(4, 9));
15450
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "C.M").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(3, 9));
15496
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "C.M").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(1, 9));
15536
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "D = 1.1m").WithArguments("System.Runtime.CompilerServices.DecimalConstantAttribute", ".ctor").
WithLocation
(3, 26));
15560
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "d").WithArguments("d").
WithLocation
(1, 15));
15600
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(Del)", "C.M(System.Action<decimal>)").
WithLocation
(1, 9)
15677
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "d").WithArguments("System.Runtime.CompilerServices.DateTimeConstantAttribute", ".ctor").
WithLocation
(5, 57)
15733
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "C.M").WithArguments("System.Runtime.CompilerServices.DateTimeConstantAttribute", ".ctor").
WithLocation
(1, 9));
15793
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(Del)", "C.M(System.Action<System.DateTime>)").
WithLocation
(5, 9)
15819
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "params").WithArguments("System.ParamArrayAttribute", ".ctor").
WithLocation
(1, 12));
15833
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "params").WithArguments("System.ParamArrayAttribute", ".ctor").
WithLocation
(1, 32),
15836
Diagnostic(ErrorCode.WRN_ParamsArrayInLambdaOnly, "xs").WithArguments("1").
WithLocation
(1, 45));
15851
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "params int[] xs").WithArguments("System.ParamArrayAttribute", ".ctor").
WithLocation
(1, 11));
15873
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "C.M").WithArguments("System.ParamArrayAttribute", ".ctor").
WithLocation
(1, 9));
15890
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "params int[] xs").WithArguments("System.ParamArrayAttribute", ".ctor").
WithLocation
(3, 19));
15907
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "params int[] xs").WithArguments("System.ParamArrayAttribute", ".ctor").
WithLocation
(3, 14));
16081
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(5, 14));
16135
Diagnostic(ErrorCode.ERR_NoImplicitConv, "withParams").WithArguments("<anonymous delegate>", "System.Func<int[], int>").
WithLocation
(3, 12),
16138
Diagnostic(ErrorCode.ERR_NoImplicitConv, "noParams").WithArguments("System.Func<int[], int>", "<anonymous delegate>").
WithLocation
(4, 14));
16155
Diagnostic(ErrorCode.ERR_NoImplicitConv, "withParams").WithArguments("<anonymous delegate>", "System.Func<int[], int>").
WithLocation
(5, 12),
16158
Diagnostic(ErrorCode.ERR_NoImplicitConv, "noParams").WithArguments("System.Func<int[], int>", "<anonymous delegate>").
WithLocation
(6, 14));
16177
Diagnostic(ErrorCode.WRN_ParamsArrayInLambdaOnly, "xs").WithArguments("1").
WithLocation
(5, 26));
16218
Diagnostic(ErrorCode.WRN_ParamsArrayInLambdaOnly, "xs").WithArguments("1").
WithLocation
(5, 27));
16239
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { MethodNoParams, MethodWithParams }").
WithLocation
(7, 10),
16242
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { inferredNoParams, inferredWithParams }").
WithLocation
(8, 10),
16245
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { lambdaNoParams, lambdaWithParams }").
WithLocation
(9, 10),
16248
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { (int[] xs) => xs.Length, (params int[] xs) => xs.Length }").
WithLocation
(10, 10));
16283
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "x").WithArguments("1", "1", "<missing>").
WithLocation
(6, 29),
16286
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "x").WithArguments("1", "2", "1").
WithLocation
(8, 31),
16289
Diagnostic(ErrorCode.WRN_ParamsArrayInLambdaOnly, "xs").WithArguments("1").
WithLocation
(16, 37));
16324
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "x").WithArguments("1", "1", "<missing>").
WithLocation
(6, 37),
16327
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "x").WithArguments("1", "2", "1").
WithLocation
(8, 39),
16330
Diagnostic(ErrorCode.WRN_ParamsArrayInLambdaOnly, "xs").WithArguments("1").
WithLocation
(16, 45));
16365
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "x").WithArguments("1", "1", "<missing>").
WithLocation
(6, 35),
16368
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "x").WithArguments("1", "2", "1").
WithLocation
(8, 37),
16371
Diagnostic(ErrorCode.WRN_ParamsArrayInLambdaOnly, "xs").WithArguments("1").
WithLocation
(16, 43));
16402
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "x").WithArguments("1", "1", "<missing>").
WithLocation
(1, 16),
16405
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "x").WithArguments("1", "2", "1").
WithLocation
(3, 18),
16408
Diagnostic(ErrorCode.WRN_ParamsArrayInLambdaOnly, "xs").WithArguments("1").
WithLocation
(7, 24));
16423
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "b").WithArguments("2", "2", "<missing>").
WithLocation
(1, 20),
16426
Diagnostic(ErrorCode.WRN_ParamsArrayInLambdaOnly, "c").WithArguments("3").
WithLocation
(1, 40));
Semantics\DynamicTests.cs (80)
814
Diagnostic(ErrorCode.ERR_BadBinaryOps, "M % d1").WithArguments("%", "method group", "dynamic").
WithLocation
(10, 13),
817
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d1 + M").WithArguments("+", "dynamic", "method group").
WithLocation
(11, 13),
820
Diagnostic(ErrorCode.ERR_BadBinaryOps, "( ()=>{} ) - d1").WithArguments("-", "lambda expression", "dynamic").
WithLocation
(12, 13),
823
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d1 >> ( ()=>{} )").WithArguments(">>", "dynamic", "lambda expression").
WithLocation
(13, 13),
826
Diagnostic(ErrorCode.ERR_BadBinaryOps, "delegate {} << d1").WithArguments("<<", "anonymous method", "dynamic").
WithLocation
(14, 13),
829
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "<<").WithArguments("<<").
WithLocation
(14, 25),
832
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d1 << delegate {}").WithArguments("<<", "dynamic", "anonymous method").
WithLocation
(15, 13),
835
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(int*)null > d1").WithArguments(">", "int*", "dynamic").
WithLocation
(16, 13),
838
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d1 < (int*)null").WithArguments("<", "dynamic", "int*").
WithLocation
(17, 13),
841
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d1 > tr").WithArguments(">", "dynamic", "System.TypedReference").
WithLocation
(18, 13),
844
Diagnostic(ErrorCode.ERR_BadBinaryOps, "tr > d1").WithArguments(">", "System.TypedReference", "dynamic").
WithLocation
(19, 13));
1245
Diagnostic(ErrorCode.ERR_InvalidQM, "s1 ? d2 : M").WithArguments("dynamic", "method group").
WithLocation
(13, 17),
1248
Diagnostic(ErrorCode.ERR_InvalidQM, "s1 ? M : d2").WithArguments("method group", "dynamic").
WithLocation
(14, 17),
1251
Diagnostic(ErrorCode.ERR_InvalidQM, "s1 ? ptr : d2").WithArguments("void*", "dynamic").
WithLocation
(15, 17),
1254
Diagnostic(ErrorCode.ERR_InvalidQM, "s1 ? d2 : ptr").WithArguments("dynamic", "void*").
WithLocation
(16, 17)
1302
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").
WithLocation
(5, 24),
1305
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "N<int>").WithArguments("N", "property").
WithLocation
(8, 23),
1308
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(9, 14),
1311
Diagnostic(ErrorCode.ERR_BadTypeArgument, "System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(10, 14)
1371
Diagnostic(ErrorCode.ERR_BadDynamicMethodArg, "__arglist(123, 456)").WithArguments("__arglist").
WithLocation
(7, 15),
1374
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgumentInDynamicInvocation, "789").
WithLocation
(8, 31),
1377
Diagnostic(ErrorCode.ERR_BadDynamicMethodArg, "System.Console.WriteLine()").WithArguments("void").
WithLocation
(10, 25),
1380
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(9, 19)
1410
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Goo").WithArguments("y", "C.Goo(int, int)").
WithLocation
(8, 21)
1449
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "c.Goo<short>(d, d)").WithArguments("C.Goo<T>(int, int)", "T", "short").
WithLocation
(15, 19)
1460
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "Goo<short>").WithArguments("C.Goo<T>(int, int)", "T", "short").
WithLocation
(15, 21)
1498
Diagnostic(ErrorCode.ERR_ObjectRequired, "F").WithArguments("A.F").
WithLocation
(15, 13),
1501
Diagnostic(ErrorCode.ERR_ObjectRequired, "P").WithArguments("A.P").
WithLocation
(16, 13),
1504
Diagnostic(ErrorCode.ERR_ObjectRequired, "M(d)").WithArguments("A.M(int)").
WithLocation
(17, 23),
1507
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "F").WithArguments("A.F", "null").
WithLocation
(6, 27)
1751
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "Goo<int>").WithArguments("Program.Goo<T>(int, T)", "System.Collections.IEnumerable", "T", "int").
WithLocation
(8, 9));
1825
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<string>").WithArguments("C.F<T>(T, X<T>)", "T", "string").
WithLocation
(13, 9));
1845
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "F<int>").WithArguments("C.F<T>(string, params T[])", "C", "T", "int").
WithLocation
(9, 3));
2564
Diagnostic(ErrorCode.ERR_NameNotInContext, "f").WithArguments("f").
WithLocation
(11, 21),
2567
Diagnostic(ErrorCode.ERR_InvalidObjectCreation, "dynamic").
WithLocation
(6, 26)
2604
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "M").WithArguments("M", "dynamic").
WithLocation
(16, 17),
2607
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ptr").WithArguments("int*", "dynamic").
WithLocation
(17, 17),
2610
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => {}").WithArguments("lambda expression", "dynamic").
WithLocation
(18, 17),
2613
Diagnostic(ErrorCode.ERR_NoImplicitConv, "default(TypedReference)").WithArguments("System.TypedReference", "dynamic").
WithLocation
(19, 17)
2801
Diagnostic(ErrorCode.WRN_IsDynamicIsConfusing, "d is dynamic").WithArguments("is", "dynamic", "Object").
WithLocation
(43, 55),
2804
Diagnostic(ErrorCode.ERR_InvalidObjectCreation, "dynamic").
WithLocation
(46, 59),
2807
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "d").
WithLocation
(25, 52),
2810
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "X").
WithLocation
(27, 54),
2813
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "Y").
WithLocation
(27, 60),
2816
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "Z").
WithLocation
(27, 69),
2819
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "{ d }").
WithLocation
(28, 44),
2822
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "{ d, d, d }").
WithLocation
(28, 51),
2825
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "x.goo()").
WithLocation
(29, 54),
2828
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "x.goo").
WithLocation
(29, 54),
2831
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "x[1]").
WithLocation
(30, 54),
2834
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "x.y.z").
WithLocation
(31, 54),
2837
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "x.y").
WithLocation
(31, 54),
2840
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "x + 1").
WithLocation
(32, 54),
2843
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "-x").
WithLocation
(33, 54),
2846
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "f(d)").
WithLocation
(34, 54),
2849
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "f((dynamic)1)").
WithLocation
(36, 55),
2852
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "f(d ?? null)").
WithLocation
(37, 55),
2855
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "d").
WithLocation
(38, 55),
2858
Diagnostic(ErrorCode.ERR_BadAsyncExpressionTree, "async x => await d").
WithLocation
(39, 56),
2861
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "a + 1").
WithLocation
(47, 84),
2864
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, "new string(x)").
WithLocation
(49, 55)
2948
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "GetResponse()").WithArguments("Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo", "Create").
WithLocation
(10, 28)
3146
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "c[d, d]").WithArguments("c", "C.this[int, System.Func<int, int>, object]").
WithLocation
(16, 5),
3382
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "C").WithArguments("y", "C.C(string, string)").
WithLocation
(8, 16));
3664
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Goo").WithArguments("Program.Goo<T>(System.Func<T, T>)").
WithLocation
(10, 33)
3762
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "i.d").WithArguments("Program.I.d").
WithLocation
(7, 25)
3788
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "i[null]").WithArguments("Program.I.this[string]").
WithLocation
(7, 25)
3967
Diagnostic(ErrorCode.ERR_ObjectRequired, "Worksheet.MRange").WithArguments("Microsoft.Office.Interop.Excel._Worksheet.MRange(object, object)").
WithLocation
(11, 18)
3990
Diagnostic(ErrorCode.ERR_ObjectRequired, "Worksheet.Range[x, y]").WithArguments("Microsoft.Office.Interop.Excel._Worksheet.Range[object, object]").
WithLocation
(10, 18)
4107
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "Indexer").WithArguments("WithIndexer.Indexer[object, object]", "WithIndexer.get_Indexer(object, object)", "WithIndexer.set_Indexer(object, object, object)").
WithLocation
(8, 30)
4132
Diagnostic(ErrorCode.ERR_InDynamicMethodArg, "x").
WithLocation
(8, 17)
4157
Diagnostic(ErrorCode.ERR_InDynamicMethodArg, "d").
WithLocation
(8, 20),
4160
Diagnostic(ErrorCode.ERR_InDynamicMethodArg, "x").
WithLocation
(8, 31)
4200
Diagnostic(ErrorCode.ERR_InDynamicMethodArg, "d").
WithLocation
(11, 15),
4203
Diagnostic(ErrorCode.ERR_InDynamicMethodArg, "d").
WithLocation
(11, 28),
4206
Diagnostic(ErrorCode.ERR_InDynamicMethodArg, "d").
WithLocation
(23, 15),
4209
Diagnostic(ErrorCode.ERR_InDynamicMethodArg, "d").
WithLocation
(23, 28)
4239
Diagnostic(ErrorCode.ERR_InDynamicMethodArg, "x").
WithLocation
(8, 30)
4268
Diagnostic(ErrorCode.ERR_InDynamicMethodArg, "x").
WithLocation
(8, 39)
4318
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new C()").WithArguments("C.implicit operator bool(C)").
WithLocation
(4, 5)
Semantics\ExpressionBodiedMemberTests.cs (24)
447
Diagnostic(ErrorCode.ERR_IllegalStatement, "(new object())").
WithLocation
(4, 25));
469
=> P1;").
WithLocation
(6, 5)
500
=> P1;").
WithLocation
(6, 5)
530
=> P1;").
WithLocation
(6, 5)
569
=> P1;").
WithLocation
(6, 5)
612
=> P1;").
WithLocation
(8, 9)
640
=> P1;").
WithLocation
(6, 5),
643
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "P2").WithArguments("C.P2").
WithLocation
(6, 23)
674
=> P1;").
WithLocation
(6, 5)
705
=> 1;").
WithLocation
(6, 5)
736
=> 1;").
WithLocation
(6, 5)
771
=> 1;").
WithLocation
(6, 5)
802
=> 1;").
WithLocation
(6, 5)
833
=> P1 = 1;").
WithLocation
(6, 5)
869
=> P1 = 1;").
WithLocation
(6, 5));
907
=> P1 = 1;").
WithLocation
(8, 9)
940
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "int Bar() { return 0; } => 0;").
WithLocation
(6, 9),
943
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Bar").WithArguments("Bar").
WithLocation
(6, 13));
959
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "int this[int i] { get { return 0; } } => 0;").
WithLocation
(4, 5));
975
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "get { return 0; } => 0;").
WithLocation
(4, 23));
992
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "add { } => null;").
WithLocation
(5, 22));
1047
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "=>").WithArguments("expression body constructor and destructor", "7.0").
WithLocation
(5, 9),
1050
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "=>").WithArguments("expression body constructor and destructor", "7.0").
WithLocation
(6, 10),
1053
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "=>").WithArguments("expression body property accessor", "7.0").
WithLocation
(7, 17));
Semantics\ForEachTests.cs (56)
82
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "NULL").WithArguments("object", "GetEnumerator").
WithLocation
(7, 27)
589
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new Enumerable()").WithArguments("Enumerator", "Enumerable.GetEnumerator()").
WithLocation
(6, 27)
857
Diagnostic(ErrorCode.ERR_MultipleIEnumOfT, "b").WithArguments("B", "System.Collections.Generic.IEnumerable<T>").
WithLocation
(26, 27),
859
Diagnostic(ErrorCode.ERR_MultipleIEnumOfT, "t2").WithArguments("T2", "System.Collections.Generic.IEnumerable<T>").
WithLocation
(28, 27));
906
Diagnostic(ErrorCode.ERR_NoExplicitConv, "foreach").WithArguments("int", "S").
WithLocation
(31, 9),
908
Diagnostic(ErrorCode.ERR_NoExplicitConv, "foreach").WithArguments("int", "string").
WithLocation
(32, 9));
942
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "t").WithArguments("T", "GetEnumerator").
WithLocation
(17, 27));
1162
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(6, 18),
1165
Diagnostic(ErrorCode.ERR_NoExplicitConv, "foreach").WithArguments("int", "void").
WithLocation
(6, 9)
1907
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 13),
1910
Diagnostic(ErrorCode.ERR_InExpected, ";").
WithLocation
(6, 16),
1913
Diagnostic(ErrorCode.ERR_BadForeachDecl, ";").
WithLocation
(6, 16),
1916
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(6, 16),
1919
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(6, 16),
1922
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(6, 28),
1925
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(6, 28),
1928
Diagnostic(ErrorCode.ERR_NameNotInContext, "i").WithArguments("i").
WithLocation
(6, 18),
1931
Diagnostic(ErrorCode.ERR_IllegalStatement, "i < 5").
WithLocation
(6, 18),
1934
Diagnostic(ErrorCode.ERR_NameNotInContext, "i").WithArguments("i").
WithLocation
(6, 25));
2054
Diagnostic(ErrorCode.ERR_NoSuchMember, "new ValidBaseTest.Derived5()").WithArguments("void", "Current").
WithLocation
(35, 31),
2057
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new ValidBaseTest.Derived5()").WithArguments("void", "ForEachTest.ValidBaseTest.Derived5.GetEnumerator()").
WithLocation
(35, 31));
2064
Diagnostic(ErrorCode.ERR_NoSuchMember, "new ValidBaseTest.Derived5()").WithArguments("void", "Current").
WithLocation
(35, 31),
2067
Diagnostic(ErrorCode.ERR_BadGetEnumerator, "new ValidBaseTest.Derived5()").WithArguments("void", "ForEachTest.ValidBaseTest.Derived5.GetEnumerator()").
WithLocation
(35, 31));
2286
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(38, 55)
2290
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
2292
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
2295
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(38, 55),
2301
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "foreach (var c in e) { }").WithArguments("System.IDisposable", "Dispose").
WithLocation
(40, 9)
2346
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(28, 55)
2355
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(28, 55)
2858
Diagnostic(ErrorCode.ERR_NameNotInContext, "Goo").WithArguments("Goo").
WithLocation
(6, 26));
2923
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "myObj").WithArguments("myClass<System.Collections.Generic.List<string>>", "GetEnumerator").
WithLocation
(14, 27));
2964
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "d").WithArguments("Dummy", "System.Collections.IEnumerable").
WithLocation
(27, 25));
2989
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "new { B, C }").WithArguments("<anonymous type: string B, string C>", "GetEnumerator").
WithLocation
(9, 27)
3197
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "new Enumerable1()").WithArguments("pattern-based disposal", "8.0").
WithLocation
(6, 27)
3444
{ }").WithArguments("System.ValueType", "MissingBaseType1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 9)
3479
Diagnostic(ErrorCode.ERR_BadAsyncLocalType, "x").
WithLocation
(20, 26));
3513
Diagnostic(ErrorCode.ERR_BadAsyncLocalType, "x").
WithLocation
(20, 35));
3545
Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").
WithLocation
(18, 26));
3577
Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").
WithLocation
(18, 35));
3656
Diagnostic(ErrorCode.ERR_NameNotInContext, "Nonsense").WithArguments("Nonsense").
WithLocation
(9, 24),
3659
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Nonsense").WithArguments("Nonsense").
WithLocation
(13, 29),
3662
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Nonsense").WithArguments("Nonsense").
WithLocation
(17, 41),
3665
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "lazyNonsense").WithArguments("System.Lazy<Nonsense>", "GetEnumerator").
WithLocation
(19, 29),
3668
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Nonsense").WithArguments("Nonsense").
WithLocation
(21, 37),
3671
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Nonsense").WithArguments("Nonsense").
WithLocation
(25, 33),
3674
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInAgg, "Nonsense").WithArguments("Nonsense", "string").
WithLocation
(29, 41),
3677
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Nonsense").WithArguments("Nonsense").
WithLocation
(33, 34),
3680
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Nonsense").WithArguments("Nonsense").
WithLocation
(37, 9),
3683
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "nullableNonsense").WithArguments("Nonsense?", "GetEnumerator").
WithLocation
(39, 29),
3686
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Nonsense").WithArguments("Nonsense").
WithLocation
(41, 34),
3689
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "nonsenseTuple").WithArguments("(Nonsense, int)", "GetEnumerator").
WithLocation
(43, 29));
3706
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "items").WithArguments("C").
WithLocation
(4, 21)
3724
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "items").WithArguments("C").
WithLocation
(4, 30)
3742
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "items").WithArguments("C").
WithLocation
(4, 30)
3759
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "items").WithArguments("method", "Current.get").
WithLocation
(4, 21)
Semantics\FunctionPointerTests.cs (185)
39
Diagnostic(ErrorCode.ERR_FeatureInPreview, "delegate*<void>").WithArguments("using type alias").
WithLocation
(2, 11),
42
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "s").WithArguments("s").
WithLocation
(2, 7),
45
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using s = delegate*<void>;").
WithLocation
(2, 1));
51
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(2, 11),
54
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "s").WithArguments("s").
WithLocation
(2, 7),
57
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using s = delegate*<void>;").
WithLocation
(2, 1));
71
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7),
74
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe S = delegate*<void>;").
WithLocation
(2, 1));
81
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe S = delegate*<void>;").
WithLocation
(2, 1));
88
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe S = delegate*<void>;").
WithLocation
(2, 1));
101
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using S = System.Collections.Generic.List<delegate*<void>[]>;").
WithLocation
(2, 1));
107
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using S = System.Collections.Generic.List<delegate*<void>[]>;").
WithLocation
(2, 1),
110
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(2, 43));
123
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7),
126
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe S = System.Collections.Generic.List<delegate*<void>[]>;").
WithLocation
(2, 1));
132
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe S = System.Collections.Generic.List<delegate*<void>[]>;").
WithLocation
(2, 1));
522
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "delegate*<void>").
WithLocation
(9, 37),
525
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "i").WithArguments("int", "delegate*<void>").
WithLocation
(12, 31),
528
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "ptr").WithArguments("delegate*<void>", "int").
WithLocation
(13, 13),
531
Diagnostic(ErrorCode.ERR_AmbigUDConv, "c").WithArguments("C.implicit operator delegate*<void>(A)", "A.implicit operator delegate*<void>(A)", "C", "delegate*<void>").
WithLocation
(14, 15),
534
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("S", "delegate*<void>").
WithLocation
(15, 15),
537
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ptr").WithArguments("delegate*<void>", "S").
WithLocation
(16, 13),
540
Diagnostic(ErrorCode.ERR_NameNotInContext, "undefined").WithArguments("undefined").
WithLocation
(17, 15),
543
Diagnostic(ErrorCode.ERR_NameNotInContext, "undefined").WithArguments("undefined").
WithLocation
(18, 9)
754
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "new S()").WithArguments("S", "delegate*<int*, void>").
WithLocation
(8, 45)
1015
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<string, string, void>", "delegate*<string, void>").
WithLocation
(6, 40),
1018
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<string, string, void>", "delegate*<string, string, string, void>").
WithLocation
(7, 56)
1077
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<ref object, void>", "delegate*<in object, void>").
WithLocation
(6, 43),
1080
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<ref object, void>", "delegate*<object, void>").
WithLocation
(7, 40),
1083
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<ref object, void>", "delegate*<ref string, void>").
WithLocation
(8, 44),
1086
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<ref object, void>", "delegate*<out object, void>").
WithLocation
(9, 44),
1089
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param2").WithArguments("delegate*<out object, void>", "delegate*<in object, void>").
WithLocation
(10, 43),
1092
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param2").WithArguments("delegate*<out object, void>", "delegate*<object, void>").
WithLocation
(11, 40),
1095
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param2").WithArguments("delegate*<out object, void>", "delegate*<ref object, void>").
WithLocation
(12, 44),
1098
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param2").WithArguments("delegate*<out object, void>", "delegate*<out string, void>").
WithLocation
(13, 44)
1237
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<ref string>", "delegate*<ref readonly string>").
WithLocation
(6, 47),
1240
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<ref string>", "delegate*<string>").
WithLocation
(7, 34),
1243
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<ref string>", "delegate*<object>").
WithLocation
(8, 34)
1317
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<void>", "delegate* unmanaged[Cdecl]<void>").
WithLocation
(6, 49),
1320
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<void>", "delegate* unmanaged[Thiscall]<void>").
WithLocation
(7, 52),
1323
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<void>", "delegate* unmanaged[Stdcall]<void>").
WithLocation
(8, 51),
1326
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param2").WithArguments("delegate* unmanaged[Thiscall, Stdcall]<void>", "delegate* unmanaged[Thiscall]<void>").
WithLocation
(9, 52),
1329
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param2").WithArguments("delegate* unmanaged[Thiscall, Stdcall]<void>", "delegate* unmanaged[Stdcall]<void>").
WithLocation
(10, 51),
1332
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param2").WithArguments("delegate* unmanaged[Thiscall, Stdcall]<void>", "delegate* unmanaged[Thiscall, Cdecl]<void>").
WithLocation
(11, 59),
1335
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param2").WithArguments("delegate* unmanaged[Thiscall, Stdcall]<void>", "delegate* unmanaged[Cdecl, Stdcall]<void>").
WithLocation
(12, 58),
1338
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param2").WithArguments("delegate* unmanaged[Thiscall, Stdcall]<void>", "delegate* unmanaged[Thiscall, Stdcall, Cdecl]<void>").
WithLocation
(13, 68)
1476
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<int, object>", "delegate*<object, string>").
WithLocation
(6, 42),
1479
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<int, object>", "delegate*<int, string>").
WithLocation
(7, 39)
1533
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param1").WithArguments("delegate*<delegate*<object, void>, void>", "delegate*<delegate*<string, void>, void>").
WithLocation
(6, 57),
1536
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "param2").WithArguments("delegate*<delegate*<object>>", "delegate*<delegate*<string>>").
WithLocation
(7, 45)
1635
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("C.M1<T>(delegate*<T, void>, delegate*<T, void>)").
WithLocation
(13, 9)
1668
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("C.M1<T>(delegate*<delegate*<T, void>, void>, delegate*<delegate*<T, void>, void>)").
WithLocation
(13, 9)
1701
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("C.M1<T>(delegate*<delegate*<T>, void>, delegate*<delegate*<T>, void>)").
WithLocation
(13, 9)
1730
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("C.M1<T>(delegate*<T, void>, delegate*<T, void>)").
WithLocation
(9, 9)
1795
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("C.M1<T>(delegate*<T>, delegate*<T>)").
WithLocation
(13, 9)
1828
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("C.M1<T>(delegate*<delegate*<T, void>>, delegate*<delegate*<T, void>>)").
WithLocation
(13, 9)
1861
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("C.M1<T>(delegate*<delegate*<T>>, delegate*<delegate*<T>>)").
WithLocation
(13, 9)
1890
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("C.M1<T>(delegate*<T>, delegate*<T>)").
WithLocation
(9, 9)
2123
Diagnostic(ErrorCode.ERR_BadConstraintType, "delegate*<void>").
WithLocation
(2, 29)
2164
Diagnostic(ErrorCode.ERR_BadTypeArgument, "D").WithArguments("delegate*<void>").
WithLocation
(3, 14),
2167
Diagnostic(ErrorCode.ERR_BadTypeArgument, "delegate*<void>").WithArguments("delegate*<void>").
WithLocation
(9, 19),
2170
Diagnostic(ErrorCode.ERR_BadTypeArgument, "SubstitutedStatic<delegate*<void>>").WithArguments("delegate*<void>").
WithLocation
(10, 9),
2173
Diagnostic(ErrorCode.ERR_BadTypeArgument, "SubstitutedStatic").WithArguments("delegate*<string, void>").
WithLocation
(12, 9),
2176
Diagnostic(ErrorCode.ERR_BadTypeArgument, "SubstitutedStatic2").WithArguments("delegate*<string, void>").
WithLocation
(16, 9),
2179
Diagnostic(ErrorCode.ERR_BadTypeArgument, "SubstitutedStatic2").WithArguments("delegate*<string, void>").
WithLocation
(17, 9),
2182
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("D.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(18, 9),
2185
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("D.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(19, 9),
2188
Diagnostic(ErrorCode.ERR_BadTypeArgument, "SubstitutedStatic2").WithArguments("delegate*<object>").
WithLocation
(25, 9),
2191
Diagnostic(ErrorCode.ERR_BadTypeArgument, "SubstitutedStatic2").WithArguments("delegate*<object>").
WithLocation
(26, 9),
2194
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("D.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(27, 9),
2197
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("D.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(28, 9)
2251
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(10, 9),
2254
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(15, 9)
2312
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(11, 9),
2315
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(12, 9),
2318
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(13, 9),
2321
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(19, 9),
2324
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(20, 9),
2327
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "SubstitutedStatic2").WithArguments("C.SubstitutedStatic2<TStatic>(TStatic, TStatic)").
WithLocation
(21, 9)
2386
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { ptr1, ptr2 }").
WithLocation
(10, 20),
2389
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { ptr1, ptr3 }").
WithLocation
(11, 20),
2392
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { ptr1, ptr4 }").
WithLocation
(12, 20),
2395
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { ptr5, ptr6 }").
WithLocation
(18, 20),
2398
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { ptr5, ptr7 }").
WithLocation
(19, 20),
2401
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { ptr5, ptr8 }").
WithLocation
(20, 20)
2454
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr1 : ptr2").WithArguments("delegate*<string, void>[]", "delegate*<ref string, void>[]").
WithLocation
(10, 13),
2457
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr1 : ptr3").WithArguments("delegate*<string, void>[]", "delegate*<int, void>[]").
WithLocation
(11, 13),
2460
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr1 : ptr4").WithArguments("delegate*<string, void>[]", "delegate* unmanaged[Cdecl]<string, void>[]").
WithLocation
(12, 13),
2463
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr5 : ptr6").WithArguments("delegate*<string>[]", "delegate*<ref string>[]").
WithLocation
(18, 13),
2466
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr5 : ptr7").WithArguments("delegate*<string>[]", "delegate*<int>[]").
WithLocation
(19, 13),
2469
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr5 : ptr8").WithArguments("delegate*<string>[]", "delegate* unmanaged[Cdecl]<string>[]").
WithLocation
(20, 13)
2515
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { i1, i2 }").
WithLocation
(12, 47)
2551
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr1 : ptr3").WithArguments("delegate*<string>", "delegate*<ref string>").
WithLocation
(12, 13),
2554
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr1 : ptr4").WithArguments("delegate*<string>", "delegate*<ref string?>").
WithLocation
(13, 13),
2557
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ptr4").WithArguments("delegate*<ref string?>", "delegate*<ref string>").
WithLocation
(14, 24),
2560
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr5 : ptr7").WithArguments("delegate*<string>", "delegate*<ref string>").
WithLocation
(21, 13),
2563
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr5 : ptr8").WithArguments("delegate*<string>", "delegate*<ref string?>").
WithLocation
(22, 13),
2566
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ptr8").WithArguments("delegate*<ref string?>", "delegate*<ref string>").
WithLocation
(23, 24)
2624
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr1 : ptr3").WithArguments("delegate*<string, void>", "delegate*<ref string, void>").
WithLocation
(12, 13),
2627
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr1 : ptr4").WithArguments("delegate*<string, void>", "delegate*<ref string?, void>").
WithLocation
(13, 13),
2630
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ptr4").WithArguments("delegate*<ref string?, void>", "delegate*<ref string, void>").
WithLocation
(14, 24),
2633
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr5 : ptr7").WithArguments("delegate*<string, void>", "delegate*<ref string, void>").
WithLocation
(21, 13),
2636
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? ptr5 : ptr8").WithArguments("delegate*<string, void>", "delegate*<ref string?, void>").
WithLocation
(22, 13),
2639
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ptr8").WithArguments("delegate*<ref string?, void>", "delegate*<ref string, void>").
WithLocation
(23, 24)
2736
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test").WithArguments("Test<T1, T2>(T2, delegate*<T1, T2>)").
WithLocation
(4, 5),
2739
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(7, 17)
2763
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("Test1<T1, T2>(T1, delegate*<T1, T2>)").
WithLocation
(4, 5),
2766
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test2").WithArguments("Test2<T1, T2>(T2, delegate*<T1, T2>)").
WithLocation
(5, 5),
2769
Diagnostic(ErrorCode.ERR_MissingAddressOf, "converter").
WithLocation
(6, 38),
2772
Diagnostic(ErrorCode.ERR_MissingAddressOf, "converter").
WithLocation
(7, 27)
2795
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("Test1<T1, T2>(T1, delegate*<T1, T2>)").
WithLocation
(4, 5),
2798
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test2").WithArguments("Test2<T1, T2>(T2, delegate*<T1, T2>)").
WithLocation
(5, 5),
2801
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "v => 0").WithArguments("lambda expression", "delegate*<string, int>").
WithLocation
(6, 38),
2804
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "v => 0").WithArguments("lambda expression", "delegate*<string, int>").
WithLocation
(7, 27)
2829
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("Test1<T1, T2>(T1, System.Func<T1, T2>)").
WithLocation
(5, 5),
2832
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test2").WithArguments("Test2<T1, T2>(T2, System.Func<T1, T2>)").
WithLocation
(6, 5),
2835
Diagnostic(ErrorCode.ERR_BadArgType, "&converter").WithArguments("2", "&method group", "System.Func<string, int>").
WithLocation
(7, 38),
2838
Diagnostic(ErrorCode.ERR_BadArgType, "&converter").WithArguments("2", "&method group", "System.Func<string, int>").
WithLocation
(8, 27)
2862
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("Test1<T1>(delegate* unmanaged<T1, void>[])").
WithLocation
(5, 5),
2865
Diagnostic(ErrorCode.ERR_BadArgType, "ptr1").WithArguments("1", "delegate*<string, void>[]", "delegate* unmanaged<string, void>[]").
WithLocation
(6, 19),
2868
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("Test1<T1>(delegate* unmanaged<T1, void>[])").
WithLocation
(8, 5),
2871
Diagnostic(ErrorCode.ERR_BadArgType, "ptr2").WithArguments("1", "delegate* unmanaged[Cdecl, Stdcall]<string, void>[]", "delegate* unmanaged<string, void>[]").
WithLocation
(9, 19)
2895
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("Test1<T1, T2>(delegate*<T1, T2>[])").
WithLocation
(5, 5),
2898
Diagnostic(ErrorCode.ERR_BadArgType, "ptr1").WithArguments("1", "delegate*<ref string, string>[]", "delegate*<string, string>[]").
WithLocation
(6, 27),
2901
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test1").WithArguments("Test1<T1, T2>(delegate*<T1, T2>[])").
WithLocation
(8, 5),
2904
Diagnostic(ErrorCode.ERR_BadArgType, "ptr2").WithArguments("1", "delegate*<string, ref string>[]", "delegate*<string, string>[]").
WithLocation
(9, 27)
2960
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test").WithArguments("Test<T1, T2>(delegate* unmanaged[Cdecl]<T1, T2>)").
WithLocation
(5, 5),
2963
Diagnostic(ErrorCode.ERR_BadArgType, "ptr").WithArguments("1", "delegate*<int, string>", "delegate* unmanaged[Cdecl]<int, string>").
WithLocation
(6, 23)
2987
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test").WithArguments("Test<T1, T2>(delegate*<T1, T2>)").
WithLocation
(5, 5),
2990
Diagnostic(ErrorCode.ERR_BadArgType, "ptr1").WithArguments("1", "delegate*<ref string, string>", "delegate*<string, string>").
WithLocation
(6, 26),
2993
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test").WithArguments("Test<T1, T2>(delegate*<T1, T2>)").
WithLocation
(8, 5),
2996
Diagnostic(ErrorCode.ERR_BadArgType, "ptr2").WithArguments("1", "delegate*<string, ref string>", "delegate*<string, string>").
WithLocation
(9, 26)
3017
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test").WithArguments("Test<T1, T2>(delegate*<delegate* unmanaged[Cdecl]<T1, T2>, void>)").
WithLocation
(5, 5),
3020
Diagnostic(ErrorCode.ERR_BadArgType, "ptr").WithArguments("1", "delegate*<delegate*<string, string>, void>", "delegate*<delegate* unmanaged[Cdecl]<string, string>, void>").
WithLocation
(6, 26)
3044
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test").WithArguments("Test<T1, T2>(delegate*<delegate*<T1, T2>, void>)").
WithLocation
(5, 5),
3047
Diagnostic(ErrorCode.ERR_BadArgType, "ptr1").WithArguments("1", "delegate*<delegate*<ref string, string>, void>", "delegate*<delegate*<string, string>, void>").
WithLocation
(6, 26),
3050
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Test").WithArguments("Test<T1, T2>(delegate*<delegate*<T1, T2>, void>)").
WithLocation
(8, 5),
3053
Diagnostic(ErrorCode.ERR_BadArgType, "ptr2").WithArguments("1", "delegate*<delegate*<string, ref string>, void>", "delegate*<delegate*<string, string>, void>").
WithLocation
(9, 26)
3072
Diagnostic(ErrorCode.ERR_BadTypeArgument, "delegate*<void>").WithArguments("delegate*<void>").
WithLocation
(6, 13)
3092
Diagnostic(ErrorCode.ERR_BadDynamicMethodArg, "ptr").WithArguments("delegate*<void>").
WithLocation
(6, 13)
3114
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ptr").WithArguments("delegate*<void>", "dynamic").
WithLocation
(6, 21),
3117
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(dynamic)ptr").WithArguments("delegate*<void>", "dynamic").
WithLocation
(7, 13),
3120
Diagnostic(ErrorCode.ERR_NoImplicitConv, "d").WithArguments("dynamic", "delegate*<void>").
WithLocation
(8, 15),
3123
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(delegate*<void>)d").WithArguments("dynamic", "delegate*<void>").
WithLocation
(9, 15)
3145
Diagnostic(ErrorCode.ERR_BadUnaryOp, "?").WithArguments("?", "delegate*<void>").
WithLocation
(7, 12),
3148
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".GetPtr()").WithArguments("delegate*<void>").
WithLocation
(8, 17),
3151
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".GetPtr()").WithArguments("delegate*<void>").
WithLocation
(9, 12)
3386
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "delegate").WithArguments("function pointers", "9.0").
WithLocation
(7, 9));
3406
Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "var (x)").
WithLocation
(8, 20)
3448
Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "{ } _").
WithLocation
(6, 20)
3492
Diagnostic(ErrorCode.ERR_PointerInAsOrIs, "o is delegate*<void>").
WithLocation
(6, 13),
3495
Diagnostic(ErrorCode.ERR_PointerInAsOrIs, "o as delegate*<void>").
WithLocation
(7, 13),
3498
Diagnostic(ErrorCode.ERR_PointerInAsOrIs, "ptr as object").
WithLocation
(8, 13),
3501
Diagnostic(ErrorCode.ERR_PointerInAsOrIs, "ptr is object").
WithLocation
(9, 13)
3555
Diagnostic(ErrorCode.ERR_PointerTypeInPatternMatching, "delegate*<void>").
WithLocation
(7, 23)
3604
Diagnostic(ErrorCode.ERR_CannotUseFunctionPointerAsFixedLocal, "ptr = &M").
WithLocation
(7, 32)
3641
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "S").WithArguments("S").
WithLocation
(6, 27),
3644
Diagnostic(ErrorCode.WRN_ManagedAddr, "ptr").WithArguments("C").
WithLocation
(6, 30),
3647
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "ptr").WithArguments("D<T>", "T", "T").
WithLocation
(8, 32),
3650
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "ptr").WithArguments("E<T>", "T", "T").
WithLocation
(9, 32)
3699
Diagnostic(ErrorCode.ERR_UnsafeTypeInObjectCreation, "new delegate*<void>()").WithArguments("delegate*<void>").
WithLocation
(6, 23)
3723
Diagnostic(ErrorCode.ERR_BadIndexLHS, "ptr[0]").WithArguments("delegate*<void>").
WithLocation
(6, 23)
3752
Diagnostic(ErrorCode.WRN_CLS_BadArgType, "m").WithArguments("delegate*<void>").
WithLocation
(9, 43)
3772
Diagnostic(ErrorCode.ERR_BadConstType, "const").WithArguments("delegate*<void>").
WithLocation
(4, 5),
3775
Diagnostic(ErrorCode.ERR_NotConstantExpression, "null").WithArguments("C.field").
WithLocation
(4, 35),
3778
Diagnostic(ErrorCode.ERR_BadConstType, "delegate*<void>").WithArguments("delegate*<void>").
WithLocation
(7, 15)
3869
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToString").WithArguments("delegate*<void>", "ToString").
WithLocation
(6, 23)
3897
Diagnostic(ErrorCode.ERR_TypeExpected, "__arglist").
WithLocation
(4, 64),
3900
Diagnostic(ErrorCode.ERR_SyntaxError, "__arglist").WithArguments(",").
WithLocation
(4, 64),
3903
Diagnostic(ErrorCode.ERR_BadArgType, "__arglist(string.Empty, 1)").WithArguments("1", "__arglist", "string").
WithLocation
(6, 14),
3906
Diagnostic(ErrorCode.ERR_BadArgType, "__arglist(string.Empty, 1)").WithArguments("2", "__arglist", "int").
WithLocation
(7, 20),
3909
Diagnostic(ErrorCode.ERR_BadFuncPointerArgCount, "ptr1(null, 1, __arglist(string.Empty, 1))").WithArguments("delegate*<string, int, void>", "3").
WithLocation
(8, 9),
3912
Diagnostic(ErrorCode.ERR_BadArgType, "__arglist(1, 2, 3, ptr1)").WithArguments("1", "__arglist", "?").
WithLocation
(9, 14)
4016
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "C").WithArguments("C").
WithLocation
(4, 22),
4019
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "C").WithArguments("C").
WithLocation
(4, 25),
4022
Diagnostic(ErrorCode.WRN_UnreferencedField, "Ptr").WithArguments("C.Ptr").
WithLocation
(4, 28)
4039
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "ref ArgIterator").WithArguments("System.ArgIterator").
WithLocation
(5, 35),
4042
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "ArgIterator").WithArguments("System.ArgIterator").
WithLocation
(5, 52),
4045
Diagnostic(ErrorCode.WRN_UnreferencedField, "Ptr").WithArguments("C.Ptr").
WithLocation
(5, 65)
4069
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(6, 38),
4072
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(6, 41),
4075
Diagnostic(ErrorCode.ERR_UnsafeTypeInObjectCreation, "new()").WithArguments("delegate*<void>").
WithLocation
(11, 31)
4094
Diagnostic(ErrorCode.ERR_FunctionPointersCannotBeCalledWithNamedArguments, "arg1").
WithLocation
(6, 18)
4113
Diagnostic(ErrorCode.ERR_FunctionPointersCannotBeCalledWithNamedArguments, "arg0").
WithLocation
(6, 13)
4131
Diagnostic(ErrorCode.ERR_BadTypeArgument, "f").WithArguments("delegate*<void>").
WithLocation
(5, 43)
Semantics\GenericConstraintsTests.cs (220)
45
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Enum", "T", "int").
WithLocation
(14, 26),
48
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Enum", "T", "string").
WithLocation
(15, 26));
75
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "E1").WithArguments("Test<T>", "T", "E1").
WithLocation
(13, 26),
78
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("Test<T>", "T", "int").
WithLocation
(14, 26),
81
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Enum", "T", "string").
WithLocation
(15, 26));
106
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "E1").WithArguments("Test<T>", "System.IDisposable", "T", "E1").
WithLocation
(13, 26),
109
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "U").WithArguments("Test<T>", "System.Enum", "T", "U").
WithLocation
(14, 26),
112
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Enum", "T", "int").
WithLocation
(15, 26),
115
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.IDisposable", "T", "int").
WithLocation
(15, 26));
142
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Enum", "T", "int").
WithLocation
(14, 26),
145
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "string").WithArguments("Test<T>", "T", "string").
WithLocation
(15, 26),
148
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "System.Enum").WithArguments("Test<T>", "T", "System.Enum").
WithLocation
(16, 26));
175
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Enum", "T", "int").
WithLocation
(14, 26),
178
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Enum", "T", "string").
WithLocation
(15, 26),
181
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "string").WithArguments("Test<T>", "T", "string").
WithLocation
(15, 26),
184
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "System.Enum").WithArguments("Test<T>", "T", "System.Enum").
WithLocation
(16, 26));
217
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Enum", "T", "int").
WithLocation
(12, 26),
220
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Enum", "T", "string").
WithLocation
(13, 26));
253
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "E1").WithArguments("Test<T>", "T", "E1").
WithLocation
(11, 26),
256
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("Test<T>", "T", "int").
WithLocation
(12, 26),
259
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Enum", "T", "string").
WithLocation
(13, 26));
292
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Enum", "T", "int").
WithLocation
(12, 26),
295
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "string").WithArguments("Test<T>", "T", "string").
WithLocation
(13, 26),
298
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "System.Enum").WithArguments("Test<T>", "T", "System.Enum").
WithLocation
(14, 26));
331
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Enum", "T", "int").
WithLocation
(12, 26),
334
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Enum", "T", "string").
WithLocation
(13, 26),
337
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "string").WithArguments("Test<T>", "T", "string").
WithLocation
(13, 26),
340
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "System.Enum").WithArguments("Test<T>", "T", "System.Enum").
WithLocation
(14, 26));
356
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "System.Enum").WithArguments("enum generic type constraints", "7.3").
WithLocation
(2, 32));
376
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "Legacy").WithArguments("Test<T>", "System.Enum", "T", "Legacy").
WithLocation
(10, 26));
409
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Enum", "T", "int").
WithLocation
(14, 26));
438
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "E").WithArguments("Test<T, U>", "Test2", "U", "E").
WithLocation
(13, 33),
441
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "System.Enum").WithArguments("Test<T, U>", "E", "U", "System.Enum").
WithLocation
(18, 29));
542
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M<int>").WithArguments("B.M<T>()", "System.Enum", "T", "int").
WithLocation
(12, 14)
571
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M<int>").WithArguments("B.M<T>()", "System.Enum", "T", "int").
WithLocation
(8, 14)
589
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "System.Enum").
WithLocation
(8, 43));
608
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "System.Enum").
WithLocation
(4, 43));
652
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "Enum").WithArguments("Enum", "System").
WithLocation
(7, 39));
708
Diagnostic(ErrorCode.ERR_DeriveFromEnumOrValueType, "System.Enum").WithArguments("Child", "System.Enum").
WithLocation
(2, 22),
711
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M").WithArguments("Test.M<T>(T)", "System.Enum", "T", "Child").
WithLocation
(20, 9));
734
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Delegate", "T", "int").
WithLocation
(11, 26),
737
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Delegate", "T", "string").
WithLocation
(12, 26));
760
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("Test<T>", "T", "int").
WithLocation
(11, 26),
763
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Delegate", "T", "string").
WithLocation
(12, 26));
775
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "System.Delegate").WithArguments("System.Delegate").
WithLocation
(2, 40)
799
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "D1").WithArguments("Test<T>", "T", "D1").
WithLocation
(10, 26),
802
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Delegate", "T", "int").
WithLocation
(11, 26),
805
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Delegate", "T", "string").
WithLocation
(12, 26),
808
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "string").WithArguments("Test<T>", "T", "string").
WithLocation
(12, 26));
833
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Delegate", "T", "int").
WithLocation
(8, 26),
836
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Delegate", "T", "string").
WithLocation
(9, 26));
861
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("Test<T>", "T", "int").
WithLocation
(8, 26),
864
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Delegate", "T", "string").
WithLocation
(9, 26));
889
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "D1").WithArguments("Test<T>", "T", "D1").
WithLocation
(7, 26),
892
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.Delegate", "T", "int").
WithLocation
(8, 26),
895
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.Delegate", "T", "string").
WithLocation
(9, 26),
898
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "string").WithArguments("Test<T>", "T", "string").
WithLocation
(9, 26));
913
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "System.Delegate").WithArguments("delegate generic type constraints", "7.3").
WithLocation
(2, 32));
932
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "Legacy").WithArguments("Test<T>", "System.Delegate", "T", "Legacy").
WithLocation
(9, 26));
961
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "D1").WithArguments("Test<T, U>", "Test2", "U", "D1").
WithLocation
(10, 33),
964
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "System.Delegate").WithArguments("Test<T, U>", "System.MulticastDelegate", "U", "System.Delegate").
WithLocation
(14, 52),
967
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "System.Delegate").WithArguments("Test<T, U>", "D1", "U", "System.Delegate").
WithLocation
(18, 30));
993
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "System.Delegate").WithArguments("System.Delegate").
WithLocation
(1, 40)
1059
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M<int>").WithArguments("B.M<T>()", "System.Delegate", "T", "int").
WithLocation
(13, 14)
1086
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M<int>").WithArguments("B.M<T>()", "System.Delegate", "T", "int").
WithLocation
(9, 14)
1104
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "System.Delegate").
WithLocation
(8, 43));
1123
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "System.Delegate").
WithLocation
(4, 43));
1165
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "Delegate").WithArguments("Delegate", "System").
WithLocation
(7, 39));
1215
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.MulticastDelegate", "T", "int").
WithLocation
(11, 26),
1218
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.MulticastDelegate", "T", "string").
WithLocation
(12, 26));
1241
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("Test<T>", "T", "int").
WithLocation
(11, 26),
1244
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.MulticastDelegate", "T", "string").
WithLocation
(12, 26));
1256
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "System.MulticastDelegate").WithArguments("System.MulticastDelegate").
WithLocation
(2, 40)
1280
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "D1").WithArguments("Test<T>", "T", "D1").
WithLocation
(10, 26),
1283
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.MulticastDelegate", "T", "int").
WithLocation
(11, 26),
1286
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.MulticastDelegate", "T", "string").
WithLocation
(12, 26),
1289
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "string").WithArguments("Test<T>", "T", "string").
WithLocation
(12, 26));
1314
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.MulticastDelegate", "T", "int").
WithLocation
(8, 26),
1317
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.MulticastDelegate", "T", "string").
WithLocation
(9, 26));
1342
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("Test<T>", "T", "int").
WithLocation
(8, 26),
1345
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.MulticastDelegate", "T", "string").
WithLocation
(9, 26));
1370
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "D1").WithArguments("Test<T>", "T", "D1").
WithLocation
(7, 26),
1373
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "int").WithArguments("Test<T>", "System.MulticastDelegate", "T", "int").
WithLocation
(8, 26),
1376
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("Test<T>", "System.MulticastDelegate", "T", "string").
WithLocation
(9, 26),
1379
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "string").WithArguments("Test<T>", "T", "string").
WithLocation
(9, 26));
1395
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "System.MulticastDelegate").WithArguments("delegate generic type constraints", "7.3").
WithLocation
(2, 32));
1414
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "Legacy").WithArguments("Test<T>", "System.MulticastDelegate", "T", "Legacy").
WithLocation
(9, 26));
1443
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "D1").WithArguments("Test<T, U>", "Test2", "U", "D1").
WithLocation
(10, 33),
1446
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "System.Delegate").WithArguments("Test<T, U>", "System.MulticastDelegate", "U", "System.Delegate").
WithLocation
(15, 52),
1449
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "System.Delegate").WithArguments("Test<T, U>", "System.MulticastDelegate", "U", "System.Delegate").
WithLocation
(16, 43),
1452
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "System.MulticastDelegate").WithArguments("Test<T, U>", "D1", "U", "System.MulticastDelegate").
WithLocation
(18, 30));
1478
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "System.MulticastDelegate").WithArguments("System.MulticastDelegate").
WithLocation
(1, 40)
1544
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M<int>").WithArguments("B.M<T>()", "System.MulticastDelegate", "T", "int").
WithLocation
(13, 14)
1571
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M<int>").WithArguments("B.M<T>()", "System.MulticastDelegate", "T", "int").
WithLocation
(9, 14)
1589
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "System.MulticastDelegate").
WithLocation
(8, 43));
1608
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "System.MulticastDelegate").
WithLocation
(4, 43));
1650
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "MulticastDelegate").WithArguments("MulticastDelegate", "System").
WithLocation
(7, 39));
1696
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "B").WithArguments("A<T>", "System.MulticastDelegate", "T", "T").
WithLocation
(3, 7));
1722
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "BadType").WithArguments("Test<T>", "T", "BadType").
WithLocation
(12, 26),
1725
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "string").WithArguments("Test<T>", "T", "string").
WithLocation
(13, 26),
1728
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "W").WithArguments("Test<T>", "T", "W").
WithLocation
(16, 26));
1755
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<BadType>").WithArguments("Test.M<T>()", "T", "BadType").
WithLocation
(13, 28),
1758
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<string>").WithArguments("Test.M<T>()", "T", "string").
WithLocation
(14, 28),
1761
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<W>").WithArguments("Test.M<T>()", "T", "W").
WithLocation
(17, 28)
1783
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "b").WithArguments("D<T>", "T", "BadType").
WithLocation
(8, 32),
1786
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "c").WithArguments("D<T>", "T", "string").
WithLocation
(9, 31),
1789
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "f").WithArguments("D<T>", "T", "W").
WithLocation
(12, 26));
1816
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<BadType>").WithArguments("M<T>()", "T", "BadType").
WithLocation
(13, 9),
1819
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<string>").WithArguments("M<T>()", "T", "string").
WithLocation
(14, 9),
1822
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<W>").WithArguments("M<T>()", "T", "W").
WithLocation
(17, 9));
1833
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "unmanaged").
WithLocation
(1, 39));
1851
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "unmanaged").
WithLocation
(1, 40));
1867
Diagnostic(ErrorCode.ERR_NewBoundWithUnmanaged, "new").
WithLocation
(1, 43));
1876
Diagnostic(ErrorCode.ERR_UnmanagedBoundWithClass, "System.Exception").WithArguments("System.Exception").
WithLocation
(1, 43)
1886
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "unmanaged").
WithLocation
(1, 50));
1895
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "unmanaged").
WithLocation
(1, 65));
1921
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "unmanaged").
WithLocation
(1, 38));
1946
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "unmanaged").WithArguments("System.Runtime.InteropServices.UnmanagedType").
WithLocation
(8, 32));
1972
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "unmanaged").WithArguments("System.ValueType").
WithLocation
(16, 32));
2001
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "BadType").WithArguments("Test<T>", "T", "BadType").
WithLocation
(9, 26),
2004
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "string").WithArguments("Test<T>", "T", "string").
WithLocation
(10, 26),
2007
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "W").WithArguments("Test<T>", "T", "W").
WithLocation
(13, 26));
2037
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<BadType>").WithArguments("Test.M<T>()", "T", "BadType").
WithLocation
(9, 28),
2040
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<string>").WithArguments("Test.M<T>()", "T", "string").
WithLocation
(10, 28),
2043
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<W>").WithArguments("Test.M<T>()", "T", "W").
WithLocation
(13, 28)
2069
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "b").WithArguments("D<T>", "T", "BadType").
WithLocation
(7, 32),
2072
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "c").WithArguments("D<T>", "T", "string").
WithLocation
(8, 31),
2075
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "f").WithArguments("D<T>", "T", "W").
WithLocation
(11, 26));
2091
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "unmanaged").WithArguments("unmanaged generic type constraints", "7.3").
WithLocation
(2, 32));
2108
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "Legacy").WithArguments("Test<T>", "T", "Legacy").
WithLocation
(7, 26));
2231
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<string>").WithArguments("B.M<T>()", "T", "string").
WithLocation
(17, 14),
2234
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<Test>").WithArguments("B.M<T>()", "T", "Test").
WithLocation
(18, 14)
2265
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<string>").WithArguments("B.M<T>()", "T", "string").
WithLocation
(13, 14),
2268
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<Test>").WithArguments("B.M<T>()", "T", "Test").
WithLocation
(14, 14)
2286
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "unmanaged").
WithLocation
(8, 43));
2313
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "C2").WithArguments("I1<T>", "T", "T").
WithLocation
(11, 14),
2316
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "Test").WithArguments("G", "C2<T>.Test<G>(G)", "G", "I1<T>.Test<G>(G)").
WithLocation
(13, 17),
2319
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "T").WithArguments("I1<T>", "T", "T").
WithLocation
(15, 12),
2322
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "Test").WithArguments("I1<T>.Test<G>(G)", "G", "Segment<int>").
WithLocation
(16, 11)
2347
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "C2").WithArguments("I1<T>", "System.IDisposable", "T", "T").
WithLocation
(7, 14),
2350
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "Test").WithArguments("G", "C2<T>.Test<G>(G)", "G", "I1<T>.Test<G>(G)").
WithLocation
(9, 17),
2353
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "T").WithArguments("I1<T>", "System.IDisposable", "T", "T").
WithLocation
(11, 12),
2356
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "Test").WithArguments("I1<T>.Test<G>(G)", "System.Enum", "G", "int").
WithLocation
(13, 11)
2382
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "C2").WithArguments("I1<T>", "System.IDisposable", "T", "T").
WithLocation
(2, 14),
2385
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "Test").WithArguments("G", "C2<T>.Test<G>(G)", "G", "I1<T>.Test<G>(G)").
WithLocation
(4, 17),
2388
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "T").WithArguments("I1<T>", "System.IDisposable", "T", "T").
WithLocation
(6, 12),
2391
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "Test").WithArguments("I1<T>.Test<G>(G)", "System.Enum", "G", "int").
WithLocation
(8, 11)
2456
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "unmanaged").
WithLocation
(4, 43));
2475
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M").WithArguments("Test.M<T>(T)", "T", "string").
WithLocation
(9, 9));
2710
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "N<TestData>").WithArguments("Test.N<T>()", "T", "TestData").
WithLocation
(24, 9));
2764
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M").WithArguments("Test.M<T>(T)", "T", "string").
WithLocation
(16, 9),
2767
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Print").WithArguments("T", "Print").
WithLocation
(20, 13));
2897
Diagnostic(ErrorCode.ERR_ConWithUnmanagedCon, "T").WithArguments("T", "U").
WithLocation
(4, 12));
2914
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "NonExistentMethod").WithArguments("T", "NonExistentMethod").
WithLocation
(7, 13));
2928
Diagnostic(ErrorCode.ERR_BadConstraintType, "U*").
WithLocation
(5, 35),
2931
Diagnostic(ErrorCode.ERR_BadConstraintType, "T*").
WithLocation
(4, 35));
3007
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "IsEnum<Wrapper<int>.S>").WithArguments("Test.IsEnum<T>()", "System.Enum", "T", "Wrapper<int>.S").
WithLocation
(28, 9),
3010
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "IsEnum<Wrapper<string>.S>").WithArguments("Test.IsEnum<T>()", "System.Enum", "T", "Wrapper<string>.S").
WithLocation
(38, 9));
3261
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Unmanaged").WithArguments("C.Unmanaged<T>(T*)").
WithLocation
(14, 9),
3264
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Unmanaged").WithArguments("C.Unmanaged<T>(T*)").
WithLocation
(15, 9),
3267
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "UnmanagedWithInterface").WithArguments("C.UnmanagedWithInterface<T>(T*)").
WithLocation
(18, 9),
3270
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "UnmanagedWithInterface").WithArguments("C.UnmanagedWithInterface<T>(T*)").
WithLocation
(19, 9),
3273
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "UnmanagedWithInterface").WithArguments("C.UnmanagedWithInterface<T>(T*)", "System.IDisposable", "T", "int").
WithLocation
(20, 9));
3324
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M2").WithArguments("C.M2<T>(MyStruct<T>*)", "T", "string").
WithLocation
(12, 9),
3327
Diagnostic(ErrorCode.WRN_ManagedAddr, "&myStruct").WithArguments("MyStruct<string>").
WithLocation
(12, 12));
3421
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "InnerStruct<int>").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(16, 18),
3424
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "&myStruct").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(17, 12),
3427
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "ms").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(20, 55),
3430
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "ms").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(20, 55));
3461
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "InnerStruct<int>").WithArguments("MyStruct<T>", "System.IDisposable", "T", "InnerStruct<int>").
WithLocation
(16, 18)
3468
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "InnerStruct<int>").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(16, 18)
3496
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "U").WithArguments("MyStruct<T>", "T", "U").
WithLocation
(11, 18),
3499
Diagnostic(ErrorCode.WRN_ManagedAddr, "M2<U>").WithArguments("MyStruct<U>").
WithLocation
(12, 9),
3502
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M2<U>").WithArguments("MyStruct<T>", "T", "U").
WithLocation
(12, 9),
3505
Diagnostic(ErrorCode.WRN_ManagedAddr, "&myStruct").WithArguments("MyStruct<U>").
WithLocation
(12, 15),
3508
Diagnostic(ErrorCode.WRN_ManagedAddr, "ms").WithArguments("MyStruct<V>").
WithLocation
(15, 43),
3511
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "ms").WithArguments("MyStruct<T>", "T", "V").
WithLocation
(15, 43));
3538
Diagnostic(ErrorCode.WRN_ManagedAddr, "&myStruct").WithArguments("MyStruct<string>").
WithLocation
(12, 12),
3541
Diagnostic(ErrorCode.WRN_ManagedAddr, "ms").WithArguments("MyStruct<string>").
WithLocation
(15, 45));
3603
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "field").WithArguments("MyStruct<T>.field", "YourStruct<MyStruct<MyStruct<T>>>").
WithLocation
(4, 46));
3627
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "field").WithArguments("MyStruct<T>.field", "YourStruct<T>").
WithLocation
(4, 26),
3630
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "field").WithArguments("YourStruct<T>", "T", "T").
WithLocation
(4, 26),
3633
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "field").WithArguments("YourStruct<T>.field", "MyStruct<T>").
WithLocation
(9, 24));
3658
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "field").WithArguments("MyStruct<T>.field", "YourStruct<MyStruct<MyStruct<T>>>").
WithLocation
(4, 46));
3683
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "field").WithArguments("MyStruct<T>.field", "YourStruct<MyStruct<MyStruct<T>>>").
WithLocation
(4, 46),
3686
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "field").WithArguments("YourStruct<T>", "T", "MyStruct<MyStruct<T>>").
WithLocation
(4, 46));
3711
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "field").WithArguments("MyStruct<T>.field", "YourStruct<MyStruct<MyStruct<T>>>").
WithLocation
(4, 46),
3714
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "field").WithArguments("YourStruct<T>", "T", "MyStruct<MyStruct<T>>").
WithLocation
(4, 46));
3822
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "&ms").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(9, 19)
3852
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "MyStruct<int>*").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(12, 16),
3855
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "&c.ms").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(12, 37));
3878
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "sizeof(MyStruct<int>)").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(8, 20)
3902
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc[] { new MyStruct<int>() }").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(8, 19));
3925
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "MyStruct<int>").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(8, 30));
3948
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "ms").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(9, 27)
3975
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "ms").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(12, 39)
4005
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M<MyStruct>").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(13, 9),
4008
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M<(int, int)>").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(14, 9)
4042
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M<MyStruct<U>>").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(13, 9),
4045
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<MyStruct<V>>").WithArguments("C.M<T>()", "T", "MyStruct<V>").
WithLocation
(18, 9)
4052
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M<MyStruct<V>>").WithArguments("C.M<T>()", "T", "MyStruct<V>").
WithLocation
(18, 9)
4104
Diagnostic(ErrorCode.WRN_ManagedAddr, "&ms").WithArguments("MyStruct<object>").
WithLocation
(12, 19)
4162
Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&ms.field").
WithLocation
(12, 27)
4187
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "struct").
WithLocation
(2, 32),
4190
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "unmanaged").
WithLocation
(2, 40),
4193
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "notnull").
WithLocation
(2, 51),
4196
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "struct").
WithLocation
(4, 37),
4199
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "unmanaged").
WithLocation
(4, 45),
4202
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "notnull").
WithLocation
(4, 56),
4205
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(6, 33),
4208
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "unmanaged").
WithLocation
(6, 40),
4211
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "notnull").
WithLocation
(6, 51),
4214
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(8, 38),
4217
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "unmanaged").
WithLocation
(8, 45),
4220
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "notnull").
WithLocation
(8, 56),
4223
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(10, 32),
4226
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(12, 37)
4263
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "C").
WithLocation
(8, 45),
4266
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "E").
WithLocation
(16, 45),
4269
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "G").
WithLocation
(24, 45)
Semantics\GlobalUsingDirectiveTests.cs (213)
39
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "global").WithArguments("global using directive", "10.0").
WithLocation
(4, 1),
42
Diagnostic(ErrorCode.ERR_GlobalUsingOutOfOrder, "global").
WithLocation
(6, 1),
45
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "global").WithArguments("global using directive", "10.0").
WithLocation
(6, 1));
50
Diagnostic(ErrorCode.ERR_GlobalUsingOutOfOrder, "global").
WithLocation
(6, 1)
111
Diagnostic(ErrorCode.ERR_GlobalUsingInNamespace, "global").
WithLocation
(6, 5)
137
Diagnostic(ErrorCode.ERR_GlobalUsingInNamespace, "global").
WithLocation
(6, 5)
410
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias alias1;").
WithLocation
(2, 1),
413
Diagnostic(ErrorCode.ERR_AliasNotFound, "alias1").WithArguments("alias1").
WithLocation
(2, 18),
416
Diagnostic(ErrorCode.ERR_AliasNotFound, "alias1").WithArguments("alias1").
WithLocation
(3, 18)
560
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias ext;").
WithLocation
(2, 1)
567
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias ext;").
WithLocation
(2, 1)
699
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias ext;").
WithLocation
(2, 1)
706
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias ext;").
WithLocation
(2, 1)
875
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(1000, 18),
878
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(2000, 18),
881
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(3000, 21),
884
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(4000, 14)
946
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(1000, 11),
949
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(2000, 11),
952
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(3000, 14),
955
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(4000, 7)
1065
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(2, 18),
1068
Diagnostic(ErrorCode.ERR_AliasNotFound, "B").WithArguments("B").
WithLocation
(3, 18),
1071
Diagnostic(ErrorCode.ERR_AliasNotFound, "B").WithArguments("B").
WithLocation
(4, 21),
1074
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(5, 14)
1115
Diagnostic(ErrorCode.ERR_GlobalUsingOutOfOrder, "global").
WithLocation
(5, 1),
1118
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(5, 18),
1121
Diagnostic(ErrorCode.ERR_AliasNotFound, "B").WithArguments("B").
WithLocation
(6, 18),
1124
Diagnostic(ErrorCode.ERR_AliasNotFound, "B").WithArguments("B").
WithLocation
(7, 21),
1127
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(8, 14)
1254
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias ext;").
WithLocation
(2, 1)
1261
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias ext;").
WithLocation
(2, 1)
1382
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias ext;").
WithLocation
(2, 1)
1389
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias ext;").
WithLocation
(2, 1)
1534
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C2").WithArguments("C2").
WithLocation
(5, 18),
1537
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C4").WithArguments("C4").
WithLocation
(6, 21)
1544
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C2").WithArguments("C2").
WithLocation
(2, 18),
1547
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C4").WithArguments("C4").
WithLocation
(3, 21)
1594
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C2").WithArguments("C2").
WithLocation
(5, 11),
1597
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C4").WithArguments("C4").
WithLocation
(6, 14)
1604
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C2").WithArguments("C2").
WithLocation
(2, 11),
1607
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C4").WithArguments("C4").
WithLocation
(3, 14)
1931
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C2").WithArguments("C2").
WithLocation
(2, 18),
1934
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C4").WithArguments("C4").
WithLocation
(3, 21)
1967
Diagnostic(ErrorCode.ERR_GlobalUsingOutOfOrder, "global").
WithLocation
(5, 1),
1970
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C2").WithArguments("C2").
WithLocation
(5, 18),
1973
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C4").WithArguments("C4").
WithLocation
(6, 21)
2077
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(5000, 7),
2080
Diagnostic(ErrorCode.ERR_DuplicateAlias, "global using alias1 = C2;").WithArguments("alias1").
WithLocation
(3000, 1)
2087
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(5000, 7),
2090
Diagnostic(ErrorCode.ERR_DuplicateAlias, "global using alias1 = C2;").WithArguments("alias1").
WithLocation
(3000, 1),
2093
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(4000, 14)
2100
Diagnostic(ErrorCode.ERR_DuplicateAlias, "global using alias1 = C2;").WithArguments("alias1").
WithLocation
(3000, 1),
2103
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(5000, 7),
2106
Diagnostic(ErrorCode.ERR_DuplicateAlias, "using alias2 = C5;").WithArguments("alias2").
WithLocation
(6000, 1)
2115
Diagnostic(ErrorCode.ERR_DuplicateAlias, "global using alias1 = C2;").WithArguments("alias1").
WithLocation
(3000, 1),
2118
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(4000, 14),
2121
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(5000, 7),
2124
Diagnostic(ErrorCode.ERR_DuplicateAlias, "using alias2 = C5;").WithArguments("alias2").
WithLocation
(6000, 1)
2133
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(5000, 7),
2136
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(1000, 14)
2143
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(5000, 7),
2146
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(4000, 14),
2149
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(1000, 14)
2159
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(1000, 14),
2162
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(5000, 7),
2165
Diagnostic(ErrorCode.ERR_DuplicateAlias, "using alias2 = C5;").WithArguments("alias2").
WithLocation
(6000, 1)
2172
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(4000, 14),
2175
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(1000, 14),
2178
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(5000, 7),
2181
Diagnostic(ErrorCode.ERR_DuplicateAlias, "using alias2 = C5;").WithArguments("alias2").
WithLocation
(6000, 1)
2213
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(1000, 14)
2248
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(3000, 7)
2259
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(2000, 14),
2262
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(3000, 7)
2304
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(2000, 14)
2311
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(1000, 14)
2335
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(1000, 7)
2390
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "C2").WithArguments("C2", "<global namespace>").
WithLocation
(6000, 17),
2393
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "C3").WithArguments("C3", "<global namespace>").
WithLocation
(7000, 17)
2404
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "C2").WithArguments("C2", "<global namespace>").
WithLocation
(6000, 17),
2407
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "C3").WithArguments("C3", "<global namespace>").
WithLocation
(7000, 17),
2410
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "C4").WithArguments("C4", "<global namespace>").
WithLocation
(8000, 17)
2486
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "NS2").WithArguments("NS2", "<global namespace>").
WithLocation
(6000, 17),
2489
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "NS3").WithArguments("NS3", "<global namespace>").
WithLocation
(7000, 17)
2500
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "NS2").WithArguments("NS2", "<global namespace>").
WithLocation
(6000, 17),
2503
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "NS3").WithArguments("NS3", "<global namespace>").
WithLocation
(7000, 17),
2506
Diagnostic(ErrorCode.ERR_ConflictAliasAndMember, "NS4").WithArguments("NS4", "<global namespace>").
WithLocation
(8000, 17)
2554
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "C2").WithArguments("C2").
WithLocation
(3000, 14)
2564
Diagnostic(ErrorCode.WRN_DuplicateUsing, "C2").WithArguments("C2").
WithLocation
(2000, 21),
2567
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "C2").WithArguments("C2").
WithLocation
(3000, 14)
2574
Diagnostic(ErrorCode.WRN_DuplicateUsing, "C2").WithArguments("C2").
WithLocation
(3000, 14)
2581
Diagnostic(ErrorCode.WRN_DuplicateUsing, "C2").WithArguments("C2").
WithLocation
(2000, 21),
2584
Diagnostic(ErrorCode.WRN_DuplicateUsing, "C2").WithArguments("C2").
WithLocation
(3000, 14)
2591
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "C2").WithArguments("C2").
WithLocation
(2000, 21),
2594
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "C2").WithArguments("C2").
WithLocation
(3000, 14)
2601
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "C2").WithArguments("C2").
WithLocation
(2000, 21),
2604
Diagnostic(ErrorCode.WRN_DuplicateUsing, "C2").WithArguments("C2").
WithLocation
(3000, 14)
2614
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "C2").WithArguments("C2").
WithLocation
(2000, 21),
2617
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "C2").WithArguments("C2").
WithLocation
(3000, 14)
2638
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "C2").WithArguments("C2").
WithLocation
(2000, 21)
2645
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "C2").WithArguments("C2").
WithLocation
(1000, 21)
2668
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "C2").WithArguments("C2").
WithLocation
(1000, 14)
2680
Diagnostic(ErrorCode.WRN_DuplicateUsing, "C2").WithArguments("C2").
WithLocation
(1000, 14)
2708
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "N2").WithArguments("N2").
WithLocation
(3000, 7)
2718
Diagnostic(ErrorCode.WRN_DuplicateUsing, "N2").WithArguments("N2").
WithLocation
(2000, 14),
2721
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "N2").WithArguments("N2").
WithLocation
(3000, 7)
2728
Diagnostic(ErrorCode.WRN_DuplicateUsing, "N2").WithArguments("N2").
WithLocation
(3000, 7)
2735
Diagnostic(ErrorCode.WRN_DuplicateUsing, "N2").WithArguments("N2").
WithLocation
(2000, 14),
2738
Diagnostic(ErrorCode.WRN_DuplicateUsing, "N2").WithArguments("N2").
WithLocation
(3000, 7)
2745
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "N2").WithArguments("N2").
WithLocation
(2000, 14),
2748
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "N2").WithArguments("N2").
WithLocation
(3000, 7)
2755
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "N2").WithArguments("N2").
WithLocation
(2000, 14),
2758
Diagnostic(ErrorCode.WRN_DuplicateUsing, "N2").WithArguments("N2").
WithLocation
(3000, 7)
2768
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "N2").WithArguments("N2").
WithLocation
(2000, 14),
2771
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "N2").WithArguments("N2").
WithLocation
(3000, 7)
2792
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "N2").WithArguments("N2").
WithLocation
(2000, 14)
2799
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "N2").WithArguments("N2").
WithLocation
(1000, 14)
2822
Diagnostic(ErrorCode.HDN_DuplicateWithGlobalUsing, "N2").WithArguments("N2").
WithLocation
(1000, 7)
2834
Diagnostic(ErrorCode.WRN_DuplicateUsing, "N2").WithArguments("N2").
WithLocation
(1000, 7)
2877
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using alias1 = C2;").
WithLocation
(1000, 1),
2880
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using alias3 = C4;").
WithLocation
(3000, 1),
2883
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using alias4 = C2;").
WithLocation
(4000, 1)
2892
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using alias1 = C2;").
WithLocation
(1000, 1)
2899
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using alias3 = C4;").
WithLocation
(3000, 1),
2902
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using alias4 = C2;").
WithLocation
(4000, 1)
2963
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using static C2;").
WithLocation
(1000, 1),
2966
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using static C4;").
WithLocation
(3000, 1),
2969
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static C5;").
WithLocation
(4000, 1)
2978
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using static C2;").
WithLocation
(1000, 1)
2985
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using static C4;").
WithLocation
(3000, 1),
2988
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static C5;").
WithLocation
(4000, 1)
3049
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using C2;").
WithLocation
(1000, 1),
3052
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using C4;").
WithLocation
(3000, 1),
3055
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using C5;").
WithLocation
(4000, 1)
3064
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using C2;").
WithLocation
(1000, 1)
3071
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using C4;").
WithLocation
(3000, 1),
3074
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using C5;").
WithLocation
(4000, 1)
3177
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using N2;").
WithLocation
(1000, 1),
3180
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N5;").
WithLocation
(4000, 1),
3183
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N8;").
WithLocation
(6000, 1),
3186
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C10000").WithArguments("C10000").
WithLocation
(10000, 13),
3189
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C20000").WithArguments("C20000").
WithLocation
(20000, 13),
3192
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C30000").WithArguments("C30000").
WithLocation
(30000, 13),
3195
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C0000").WithArguments("C0000").
WithLocation
(40000, 20),
3198
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C0000").WithArguments("C0000").
WithLocation
(50000, 20),
3201
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C0000").WithArguments("C0000").
WithLocation
(60000, 20)
3210
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using N2;").
WithLocation
(1000, 1),
3213
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C10000").WithArguments("C10000").
WithLocation
(10000, 13),
3216
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C0000").WithArguments("C0000").
WithLocation
(40000, 20)
3223
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N5;").
WithLocation
(4000, 1),
3226
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C20000").WithArguments("C20000").
WithLocation
(20000, 13),
3229
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C0000").WithArguments("C0000").
WithLocation
(50000, 20)
3236
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N8;").
WithLocation
(6000, 1),
3239
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C30000").WithArguments("C30000").
WithLocation
(30000, 13),
3242
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C0000").WithArguments("C0000").
WithLocation
(60000, 20)
3259
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C10000").WithArguments("C10000").
WithLocation
(10000, 13),
3262
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C0000").WithArguments("C0000").
WithLocation
(40000, 20)
3267
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C20000").WithArguments("C20000").
WithLocation
(20000, 13),
3270
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C0000").WithArguments("C0000").
WithLocation
(50000, 20)
3275
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C30000").WithArguments("C30000").
WithLocation
(30000, 13),
3278
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C0000").WithArguments("C0000").
WithLocation
(60000, 20)
3385
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using alias2 = System;").
WithLocation
(4, 1)
3393
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using alias2 = System;").
WithLocation
(4, 1)
3401
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using alias2 = System;").
WithLocation
(2, 1)
3409
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using alias2 = System;").
WithLocation
(2, 1)
3417
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using alias2 = System;").
WithLocation
(2, 1)
3425
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using alias2 = System;").
WithLocation
(2, 1)
3433
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using alias2 = System;").
WithLocation
(2, 1)
3441
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using alias2 = System;").
WithLocation
(2, 1)
4218
Diagnostic(ErrorCode.ERR_AmbigContext, "alias1").WithArguments("alias1", "C1", "<global namespace>").
WithLocation
(7000, 13)
4230
Diagnostic(ErrorCode.ERR_AmbigContext, "alias1").WithArguments("alias1", "C3", "<global namespace>").
WithLocation
(7000, 13)
4237
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(5000, 7)
4266
Diagnostic(ErrorCode.ERR_AmbigContext, "alias1").WithArguments("alias1", "<global namespace>", "<global namespace>").
WithLocation
(7000, 13)
4273
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(4000, 14)
4312
Diagnostic(ErrorCode.ERR_DuplicateAlias, "alias1").WithArguments("alias1").
WithLocation
(6000, 7)
4372
Diagnostic(ErrorCode.ERR_AmbigContext, "C5").WithArguments("C5", "C2.C5", "NS1.C5").
WithLocation
(7000, 13)
4390
Diagnostic(ErrorCode.ERR_AmbigContext, "C5").WithArguments("C5", "C4.C5", "NS1.C5").
WithLocation
(7000, 13)
4397
Diagnostic(ErrorCode.ERR_AmbigContext, "C5").WithArguments("C5", "C2.C5", "NS3.C5").
WithLocation
(7000, 13)
4404
Diagnostic(ErrorCode.ERR_AmbigContext, "C5").WithArguments("C5", "C4.C5", "NS3.C5").
WithLocation
(7000, 13)
4468
Diagnostic(ErrorCode.ERR_AmbigCall, "M5").WithArguments("NS1.C5.M5(int)", "NS.C2.M5(int)").
WithLocation
(7000, 11)
4486
Diagnostic(ErrorCode.ERR_AmbigCall, "M5").WithArguments("NS1.C5.M5(int)", "NS.C4.M5(int)").
WithLocation
(7000, 11)
4493
Diagnostic(ErrorCode.ERR_AmbigCall, "M5").WithArguments("NS.C2.M5(int)", "NS3.C5.M5(int)").
WithLocation
(7000, 11)
4500
Diagnostic(ErrorCode.ERR_AmbigCall, "M5").WithArguments("NS3.C5.M5(int)", "NS.C4.M5(int)").
WithLocation
(7000, 11)
4568
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using NS;").
WithLocation
(1000, 1)
4586
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using static C2;").
WithLocation
(2000, 1)
4602
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using NS;").
WithLocation
(3000, 1)
4613
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static C2;").
WithLocation
(4000, 1)
4684
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using NS;").
WithLocation
(1000, 1)
4717
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using static C2;").
WithLocation
(2000, 1)
4750
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using NS;").
WithLocation
(3000, 1)
4771
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static C2;").
WithLocation
(4000, 1)
4868
Diagnostic(ErrorCode.ERR_GlobalUsingInNamespace, "global").
WithLocation
(4, 5),
4871
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "NS1C1").WithArguments("NS1C1").
WithLocation
(2000, 17),
4874
Diagnostic(ErrorCode.ERR_NameNotInContext, "M2").WithArguments("M2").
WithLocation
(2001, 13),
4877
Diagnostic(ErrorCode.ERR_NameNotInContext, "A1").WithArguments("A1").
WithLocation
(2002, 13),
4880
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "NS2C2").WithArguments("NS2C2").
WithLocation
(2004, 17),
4883
Diagnostic(ErrorCode.ERR_NameNotInContext, "M4").WithArguments("M4").
WithLocation
(2005, 13),
4886
Diagnostic(ErrorCode.ERR_NameNotInContext, "A2").WithArguments("A2").
WithLocation
(2006, 13)
4913
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "A1").WithArguments("C<T>", "T", "int").
WithLocation
(1000, 14),
4916
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C<byte>").WithArguments("C<T>", "T", "byte").
WithLocation
(2000, 21),
4919
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "A2").WithArguments("C<T>", "T", "long").
WithLocation
(3000, 7),
4922
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C<short>").WithArguments("C<T>", "T", "short").
WithLocation
(3001, 14)
4938
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "A1").WithArguments("C<T>", "T", "int").
WithLocation
(1000, 14),
4941
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C<byte>").WithArguments("C<T>", "T", "byte").
WithLocation
(2000, 21),
4954
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "A2").WithArguments("C<T>", "T", "long").
WithLocation
(3000, 7),
4957
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C<short>").WithArguments("C<T>", "T", "short").
WithLocation
(3001, 14)
5004
Diagnostic(ErrorCode.ERR_FeatureInPreview, "int").WithArguments("using type alias").
WithLocation
(2, 18));
5025
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 14),
5028
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Goo").
WithLocation
(4, 14));
5047
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 14));
5066
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(4, 5));
5085
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 18));
Semantics\ImplicitlyTypedLocalsTests.cs (3)
76
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x").WithArguments("x").
WithLocation
(6, 23),
79
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "y").WithArguments("y").
WithLocation
(6, 17),
82
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "y").WithArguments("y").
WithLocation
(7, 23)
Semantics\ImplicitObjectCreationTests.cs (304)
97
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(10, 16),
100
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "v2").WithArguments("v2").
WithLocation
(11, 11),
103
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(11, 16),
106
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "v3").WithArguments("v3").
WithLocation
(12, 12),
109
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(12, 17),
112
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(13, 16),
115
Diagnostic(ErrorCode.ERR_NameNotInContext, "missing").WithArguments("missing").
WithLocation
(13, 20),
118
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(14, 16),
121
Diagnostic(ErrorCode.ERR_NameNotInContext, "missing").WithArguments("missing").
WithLocation
(14, 20),
124
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(15, 17),
127
Diagnostic(ErrorCode.ERR_NameNotInContext, "missing").WithArguments("missing").
WithLocation
(15, 21));
220
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new()").WithArguments("p1").
WithLocation
(9, 16),
223
Diagnostic(ErrorCode.ERR_NoConversionForNubDefaultParam, "p3").WithArguments("S", "p3").
WithLocation
(11, 12)
377
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(9, 13)
408
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(14, 23),
411
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(15, 23),
414
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(16, 23),
417
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(17, 23)
460
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new(2, 3)").WithArguments("new(int, int)").
WithLocation
(6, 17)
480
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 13)
504
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new()").WithArguments("D", "0").
WithLocation
(7, 16),
507
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new()").WithArguments("D", "0").
WithLocation
(9, 21)
525
Diagnostic(ErrorCode.ERR_ConvertToStaticClass, "(C)(new())").WithArguments("C").
WithLocation
(4, 13),
528
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new()").WithArguments("C", "0").
WithLocation
(4, 17)
549
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new()").WithArguments("C").
WithLocation
(6, 16),
552
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new()").WithArguments("C").
WithLocation
(7, 21)
574
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new()").WithArguments("I").
WithLocation
(7, 16),
577
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new()").WithArguments("I").
WithLocation
(8, 21)
620
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x0").WithArguments("x0").
WithLocation
(6, 13),
623
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(7, 13)
667
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x0").WithArguments("x0").
WithLocation
(7, 30),
670
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x2").WithArguments("x2").
WithLocation
(9, 13)
730
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new()").WithArguments("T").
WithLocation
(10, 20),
733
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new()").WithArguments("T").
WithLocation
(11, 25),
736
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new()").WithArguments("TClass").
WithLocation
(14, 25),
739
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new()").WithArguments("TClass").
WithLocation
(15, 30)
760
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").
WithLocation
(6, 9),
763
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").
WithLocation
(7, 19)
784
Diagnostic(ErrorCode.ERR_UnsafeTypeInObjectCreation, "new()").WithArguments("int*").
WithLocation
(6, 19),
787
Diagnostic(ErrorCode.ERR_UnsafeTypeInObjectCreation, "new()").WithArguments("int*").
WithLocation
(7, 24)
810
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationIllegalTargetType, "new()").WithArguments("<empty anonymous type>").
WithLocation
(7, 14),
813
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationIllegalTargetType, "new(2)").WithArguments("<anonymous type: int X>").
WithLocation
(9, 14));
911
Diagnostic(ErrorCode.ERR_AmbigCall, "new(new(), new())").WithArguments("C.C(object, C)", "C.C(C, object)").
WithLocation
(9, 15)
1033
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 13)
1078
Diagnostic(ErrorCode.ERR_BadAccess, "new()").WithArguments("D.D()").
WithLocation
(11, 15)
1099
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new(1)").WithArguments("C", "1").
WithLocation
(6, 15)
1145
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 22),
1148
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "new()").
WithLocation
(6, 22),
1151
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "_").WithArguments("_").
WithLocation
(6, 14),
1154
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(6, 14),
1157
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "_").WithArguments("_").
WithLocation
(6, 17),
1160
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(6, 17),
1163
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(7, 26),
1166
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "new()").
WithLocation
(7, 26),
1169
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "var _").WithArguments("_").
WithLocation
(7, 10),
1172
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "var _").
WithLocation
(7, 10),
1175
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "var _").WithArguments("_").
WithLocation
(7, 17),
1178
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "var _").
WithLocation
(7, 17),
1181
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(8, 22),
1184
Diagnostic(ErrorCode.ERR_DeconstructRequiresExpression, "new()").
WithLocation
(8, 22)
1320
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "new()").
WithLocation
(6, 9),
1323
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "new()").
WithLocation
(7, 9)
1349
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(System.Func<bool, T>)").
WithLocation
(12, 9)
1373
Diagnostic(ErrorCode.ERR_NewTyvarWithArgs, "new(1)").WithArguments("A").
WithLocation
(8, 16),
1376
Diagnostic(ErrorCode.ERR_NewTyvarWithArgs, "new(2)").WithArguments("B").
WithLocation
(9, 16),
1379
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new()").WithArguments("C").
WithLocation
(10, 16)
1426
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Length").WithArguments("string.Length").
WithLocation
(6, 28),
1429
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new() { Length = 5 }").WithArguments("string", "0").
WithLocation
(6, 20)
1525
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new(1)").WithArguments("D", "1").
WithLocation
(18, 11)
1588
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(18, 15)
1617
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(15, 9)
1649
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A, int)", "Program.M(B, object)").
WithLocation
(18, 9)
1672
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new()").WithArguments("C", "0").
WithLocation
(9, 19)
1698
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(10, 9),
1701
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("C", "X").
WithLocation
(11, 19)
1738
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "new()").
WithLocation
(6, 9)
1808
Diagnostic(ErrorCode.ERR_IllegalStatement, "new(a) { x }").
WithLocation
(6, 9),
1811
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(6, 13),
1814
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(6, 18),
1817
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new() { x }").WithArguments("new()").
WithLocation
(7, 9),
1820
Diagnostic(ErrorCode.ERR_IllegalStatement, "new() { x }").
WithLocation
(7, 9),
1823
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(7, 17)
1843
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(6, 15)
1955
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "this").WithArguments("this").
WithLocation
(5, 19)
2007
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new()").WithArguments("string", "0").
WithLocation
(2, 22),
2010
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new(1)").WithArguments("int", "1").
WithLocation
(5, 13),
2013
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new('s', 2)").
WithLocation
(5, 21)
2114
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 16),
2117
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(10, 24),
2120
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new()").WithArguments("System.IDisposable").
WithLocation
(14, 39)
2190
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 15),
2193
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(11, 19)
2247
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("C.F<T>(System.Threading.Tasks.Task<T>)").
WithLocation
(8, 9)
2270
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("C.F<T>(System.Threading.Tasks.Task<T>)").
WithLocation
(8, 9),
2273
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(8, 20)
2294
Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").
WithLocation
(6, 9)
2315
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "new()").
WithLocation
(6, 20)
2335
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 30)
2362
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 17),
2365
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(7, 17),
2368
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(8, 17),
2371
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(9, 17),
2374
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").
WithLocation
(10, 18),
2377
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").
WithLocation
(11, 18),
2380
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").
WithLocation
(12, 16),
2383
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").
WithLocation
(13, 16)
2405
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(int)", "C.M(string)").
WithLocation
(6, 9)
2448
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(T)").
WithLocation
(6, 9)
2469
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(T, T)").
WithLocation
(6, 9)
2490
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 9),
2493
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(7, 9)
2539
Diagnostic(ErrorCode.ERR_NotConstantExpression, "new()").WithArguments("x").
WithLocation
(6, 26),
2542
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(7, 19)
2596
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 17),
2599
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(10, 17)
2624
Diagnostic(ErrorCode.ERR_ConstantExpected, "new()").
WithLocation
(8, 18),
2627
Diagnostic(ErrorCode.ERR_ConstantExpected, "new()").
WithLocation
(9, 19)
2708
Diagnostic(ErrorCode.WRN_FilterIsConstantFalseRedundantTryCatch, "new()").
WithLocation
(9, 21)
2730
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 15)
2750
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new()").
WithLocation
(6, 46)
2770
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "new()").
WithLocation
(6, 20)
2791
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new()").
WithLocation
(7, 15)
2811
Diagnostic(ErrorCode.ERR_TypeExpected, "new").
WithLocation
(6, 20),
2814
Diagnostic(ErrorCode.ERR_CloseParenExpected, "new").
WithLocation
(6, 20),
2817
Diagnostic(ErrorCode.ERR_SemicolonExpected, "new").
WithLocation
(6, 20),
2820
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(6, 25),
2823
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(6, 25),
2826
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(").WithArguments("?").
WithLocation
(6, 13),
2829
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 20)
2849
Diagnostic(ErrorCode.ERR_TypeExpected, "new").
WithLocation
(6, 20),
2852
Diagnostic(ErrorCode.ERR_CloseParenExpected, "new").
WithLocation
(6, 20),
2855
Diagnostic(ErrorCode.ERR_SemicolonExpected, "new").
WithLocation
(6, 20),
2858
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 20),
2861
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(6, 25),
2864
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(6, 25)
2886
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(6, 29),
2889
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "j").WithArguments("j").
WithLocation
(7, 13)
2985
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(8, 13),
2988
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(13, 13),
2991
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(18, 13));
3015
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "new()").
WithLocation
(6, 26),
3018
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "new()").
WithLocation
(9, 27)
3039
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 18),
3042
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(7, 17)
3062
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { new(), new() }").
WithLocation
(6, 17)
3137
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationIllegalTargetType, "new()").WithArguments("object[]").
WithLocation
(6, 11)
3159
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(params object[])", "C.M(params int[])").
WithLocation
(6, 9)
3181
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(params object[])", "C.M(C)").
WithLocation
(6, 9)
3207
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationIllegalTargetType, "new()").WithArguments("object[]").
WithLocation
(8, 14),
3210
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationIllegalTargetType, "new()").WithArguments("C[]").
WithLocation
(10, 14)
3322
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(7, 14)
3347
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationIllegalTargetType, "new()").WithArguments("dynamic").
WithLocation
(6, 11)
3387
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() + new()").WithArguments("+", "new()").
WithLocation
(6, 17),
3390
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() - new()").WithArguments("-", "new()").
WithLocation
(7, 17),
3393
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() & new()").WithArguments("&", "new()").
WithLocation
(8, 17),
3396
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() | new()").WithArguments("|", "new()").
WithLocation
(9, 17),
3399
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() ^ new()").WithArguments("^", "new()").
WithLocation
(10, 17),
3402
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() * new()").WithArguments("*", "new()").
WithLocation
(11, 17),
3405
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() / new()").WithArguments("/", "new()").
WithLocation
(12, 17),
3408
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() % new()").WithArguments("%", "new()").
WithLocation
(13, 17),
3411
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() >> new()").WithArguments(">>", "new()").
WithLocation
(14, 17),
3414
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() << new()").WithArguments("<<", "new()").
WithLocation
(15, 17),
3417
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() > new()").WithArguments(">", "new()").
WithLocation
(16, 17),
3420
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() < new()").WithArguments("<", "new()").
WithLocation
(17, 17),
3423
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() >= new()").WithArguments(">=", "new()").
WithLocation
(18, 17),
3426
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() <= new()").WithArguments("<=", "new()").
WithLocation
(19, 17),
3429
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() == new()").WithArguments("==", "new()").
WithLocation
(20, 17),
3432
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() != new()").WithArguments("!=", "new()").
WithLocation
(21, 17),
3435
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(22, 17),
3438
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(22, 26),
3441
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(23, 17),
3444
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(23, 26),
3447
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(24, 17),
3450
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() >>> new()").WithArguments(">>>", "new()").
WithLocation
(25, 17)
3490
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() + 1").WithArguments("+", "new()").
WithLocation
(6, 13),
3493
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() - 1").WithArguments("-", "new()").
WithLocation
(7, 13),
3496
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() & 1").WithArguments("&", "new()").
WithLocation
(8, 13),
3499
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() | 1").WithArguments("|", "new()").
WithLocation
(9, 13),
3502
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() ^ 1").WithArguments("^", "new()").
WithLocation
(10, 13),
3505
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() * 1").WithArguments("*", "new()").
WithLocation
(11, 13),
3508
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() / 1").WithArguments("/", "new()").
WithLocation
(12, 13),
3511
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() % 1").WithArguments("%", "new()").
WithLocation
(13, 13),
3514
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() >> 1").WithArguments(">>", "new()").
WithLocation
(14, 13),
3517
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() << 1").WithArguments("<<", "new()").
WithLocation
(15, 13),
3520
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() > 1").WithArguments(">", "new()").
WithLocation
(16, 13),
3523
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() < 1").WithArguments("<", "new()").
WithLocation
(17, 13),
3526
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() >= 1").WithArguments(">=", "new()").
WithLocation
(18, 13),
3529
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() <= 1").WithArguments("<=", "new()").
WithLocation
(19, 13),
3532
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() == 1").WithArguments("==", "new()").
WithLocation
(20, 13),
3535
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() != 1").WithArguments("!=", "new()").
WithLocation
(21, 13),
3538
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(22, 13),
3541
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(23, 13),
3544
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(24, 13),
3547
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() >>> 1").WithArguments(">>>", "new()").
WithLocation
(25, 13)
3587
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 + new()").WithArguments("+", "new()").
WithLocation
(6, 13),
3590
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 - new()").WithArguments("-", "new()").
WithLocation
(7, 13),
3593
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 & new()").WithArguments("&", "new()").
WithLocation
(8, 13),
3596
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 | new()").WithArguments("|", "new()").
WithLocation
(9, 13),
3599
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 ^ new()").WithArguments("^", "new()").
WithLocation
(10, 13),
3602
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 * new()").WithArguments("*", "new()").
WithLocation
(11, 13),
3605
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 / new()").WithArguments("/", "new()").
WithLocation
(12, 13),
3608
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 % new()").WithArguments("%", "new()").
WithLocation
(13, 13),
3611
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 >> new()").WithArguments(">>", "new()").
WithLocation
(14, 13),
3614
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 << new()").WithArguments("<<", "new()").
WithLocation
(15, 13),
3617
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 > new()").WithArguments(">", "new()").
WithLocation
(16, 13),
3620
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 < new()").WithArguments("<", "new()").
WithLocation
(17, 13),
3623
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 >= new()").WithArguments(">=", "new()").
WithLocation
(18, 13),
3626
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 <= new()").WithArguments("<=", "new()").
WithLocation
(19, 13),
3629
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 == new()").WithArguments("==", "new()").
WithLocation
(20, 13),
3632
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 != new()").WithArguments("!=", "new()").
WithLocation
(21, 13),
3635
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(22, 18),
3638
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(23, 18),
3641
Diagnostic(ErrorCode.ERR_BadBinaryOps, "1 ?? new()").WithArguments("??", "int", "new()").
WithLocation
(24, 13),
3644
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 >>> new()").WithArguments(">>>", "new()").
WithLocation
(25, 13)
3664
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 27)
3686
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 27),
3689
Diagnostic(ErrorCode.ERR_QueryTypeInferenceFailed, "select").WithArguments("select", "Select").
WithLocation
(7, 43)
3713
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(6, 19),
3716
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(7, 19),
3719
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(8, 19),
3722
Diagnostic(ErrorCode.ERR_ConstantExpected, "new()").
WithLocation
(10, 27)
3743
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(7, 32)
3789
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() == (1, 2L)").WithArguments("==", "new()").
WithLocation
(7, 23),
3792
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() != (1, 2L)").WithArguments("!=", "new()").
WithLocation
(8, 23),
3795
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "(1, 2L) == new()").WithArguments("==", "new()").
WithLocation
(9, 23),
3798
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "(1, 2L) != new()").WithArguments("!=", "new()").
WithLocation
(10, 23)
3824
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "(new(), new()) == (1, 2L)").WithArguments("==", "new()").
WithLocation
(8, 23),
3827
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "(new(), new()) == (1, 2L)").WithArguments("==", "new()").
WithLocation
(8, 23),
3830
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "(new(), new()) != (1, 2L)").WithArguments("!=", "new()").
WithLocation
(9, 23),
3833
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "(new(), new()) != (1, 2L)").WithArguments("!=", "new()").
WithLocation
(9, 23),
3836
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "(1, 2L) == (new(), new())").WithArguments("==", "new()").
WithLocation
(10, 23),
3839
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "(1, 2L) == (new(), new())").WithArguments("==", "new()").
WithLocation
(10, 23),
3842
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "(1, 2L) != (new(), new())").WithArguments("!=", "new()").
WithLocation
(11, 23),
3845
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "(1, 2L) != (new(), new())").WithArguments("!=", "new()").
WithLocation
(11, 23)
3871
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new C() == new()").WithArguments("==", "new()").
WithLocation
(8, 23),
3874
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new C() != new()").WithArguments("!=", "new()").
WithLocation
(9, 23),
3877
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() == new C()").WithArguments("==", "new()").
WithLocation
(10, 23),
3880
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() != new C()").WithArguments("!=", "new()").
WithLocation
(11, 23)
3916
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new C() == new()").WithArguments("==", "new()").
WithLocation
(18, 27),
3919
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() == new C()").WithArguments("==", "new()").
WithLocation
(19, 27),
3922
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new C() != new()").WithArguments("!=", "new()").
WithLocation
(20, 27),
3925
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() != new C()").WithArguments("!=", "new()").
WithLocation
(21, 27)
3956
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new S() == new()").WithArguments("==", "new()").
WithLocation
(8, 27),
3959
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() == new S()").WithArguments("==", "new()").
WithLocation
(9, 27),
3962
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new S() != new()").WithArguments("!=", "new()").
WithLocation
(10, 27),
3965
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() != new S()").WithArguments("!=", "new()").
WithLocation
(11, 27),
3968
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new S?() == new()").WithArguments("==", "new()").
WithLocation
(13, 27),
3971
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() == new S?()").WithArguments("==", "new()").
WithLocation
(14, 27),
3974
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new S?() != new()").WithArguments("!=", "new()").
WithLocation
(15, 27),
3977
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new() != new S?()").WithArguments("!=", "new()").
WithLocation
(16, 27)
4016
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new S(42) == new(42)").WithArguments("==", "new(int)").
WithLocation
(16, 27),
4019
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new(42) == new S(42)").WithArguments("==", "new(int)").
WithLocation
(17, 27),
4022
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new S(42) != new(42)").WithArguments("!=", "new(int)").
WithLocation
(18, 27),
4025
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new(42) != new S(42)").WithArguments("!=", "new(int)").
WithLocation
(19, 27),
4028
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new S?(new(42)) == new(42)").WithArguments("==", "new(int)").
WithLocation
(21, 27),
4031
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new(42) == new S?(new(42))").WithArguments("==", "new(int)").
WithLocation
(22, 27),
4034
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new S?(new(42)) != new(42)").WithArguments("!=", "new(int)").
WithLocation
(23, 27),
4037
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "new(42) != new S?(new(42))").WithArguments("!=", "new(int)").
WithLocation
(24, 27)
4116
Diagnostic(ErrorCode.ERR_AmbigCall, "Write").WithArguments("System.Console.Write(bool)", "System.Console.Write(char)").
WithLocation
(7, 24)
4137
Diagnostic(ErrorCode.ERR_BadSKknown, "System").WithArguments("System", "namespace", "type").
WithLocation
(6, 11)
4221
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(int[])", "C.M(int)").
WithLocation
(6, 9),
4224
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationIllegalTargetType, "new()").WithArguments("int[]").
WithLocation
(7, 18)
4257
Diagnostic(ErrorCode.ERR_NoTypeDef, "c.M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 9),
4260
Diagnostic(ErrorCode.ERR_NoTypeDef, "c.M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 9),
4263
Diagnostic(ErrorCode.ERR_NoTypeDef, "c.M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 9)
4299
Diagnostic(ErrorCode.ERR_NoTypeDef, "C").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 13),
4302
Diagnostic(ErrorCode.ERR_NoTypeDef, "C").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 13),
4305
Diagnostic(ErrorCode.ERR_NoTypeDef, "C").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 13),
4308
Diagnostic(ErrorCode.ERR_NoTypeDef, "new(null)").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(9, 15)
4340
Diagnostic(ErrorCode.ERR_NoTypeDef, "C.M").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 9)
4373
Diagnostic(ErrorCode.ERR_NoTypeDef, "new(null)").WithArguments("Missing", "missing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 11)
4423
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "A", "B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1),
4426
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("A.M(B)", "A.M(string)").
WithLocation
(6, 11),
4428
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "A", "B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1),
4431
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("A.M(B)", "A.M(string)").
WithLocation
(7, 11),
4433
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "A", "B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1),
4436
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("A.M(B)", "A.M(string)").
WithLocation
(8, 11)
4614
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "M1()").WithArguments("C.M1()", "reported 1").
WithLocation
(6, 9),
4617
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "M2()").WithArguments("C.M2()", "reported 2").
WithLocation
(7, 9)
4634
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "C.M1()").WithArguments("C.M1()", "reported 1").
WithLocation
(6, 9),
4637
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "C.M2()").WithArguments("C.M2()", "reported 2").
WithLocation
(7, 9)
4663
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new()").
WithLocation
(6, 43),
4666
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new object()").
WithLocation
(10, 43)
4687
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "new AttributeTargets()").WithArguments("AttributeUsage").
WithLocation
(4, 17),
4690
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "new()").WithArguments("AttributeUsage").
WithLocation
(7, 17)
4708
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "C").WithArguments("c", "C").
WithLocation
(2, 2),
4711
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "new()").WithArguments("c", "C.C(C)").
WithLocation
(2, 4)
4762
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type").
WithLocation
(6, 13),
4765
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type").
WithLocation
(7, 13),
4768
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T()").WithArguments("T").
WithLocation
(7, 18),
4771
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type").
WithLocation
(12, 13),
4774
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type").
WithLocation
(13, 13)
4822
Diagnostic(ErrorCode.ERR_ReturnExpected, "Something").WithArguments("SomeNamespace.Class1.Something<T>()").
WithLocation
(4, 12),
4825
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type").
WithLocation
(5, 8));
4851
Diagnostic(ErrorCode.ERR_ConstantExpected, "new()").
WithLocation
(6, 18),
4854
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T()").WithArguments("T").
WithLocation
(7, 18),
4857
Diagnostic(ErrorCode.ERR_ConstantExpected, "new()").
WithLocation
(12, 18),
4860
Diagnostic(ErrorCode.ERR_ConstantExpected, "new T()").
WithLocation
(13, 18)
4893
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "new A()").WithArguments("A.A()", "Message").
WithLocation
(5, 18),
4896
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "new A()").WithArguments("A.A()", "Message").
WithLocation
(6, 20),
4899
Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAddStr, "new A()").WithArguments("MyList<A>.Add(A)", "Message").
WithLocation
(6, 20),
4902
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "new()").WithArguments("A.A()", "Message").
WithLocation
(8, 18),
4905
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "new()").WithArguments("A.A()", "Message").
WithLocation
(9, 20),
4908
Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAddStr, "new()").WithArguments("MyList<A>.Add(A)", "Message").
WithLocation
(9, 20)
Semantics\IndexAndRangeTests.cs (140)
43
Diagnostic(ErrorCode.ERR_BadArgType, @"""str2""").WithArguments("1", "string", "int").
WithLocation
(7, 19),
46
Diagnostic(ErrorCode.ERR_BadArgType, "null").WithArguments("1", "<null>", "int").
WithLocation
(8, 19),
49
Diagnostic(ErrorCode.ERR_BadArgType, "Main()").WithArguments("1", "void", "int").
WithLocation
(9, 19),
52
Diagnostic(ErrorCode.ERR_BadArgType, "new object()").WithArguments("1", "object", "int").
WithLocation
(10, 19),
55
Diagnostic(ErrorCode.ERR_NameNotInContext, "zzz").WithArguments("zzz").
WithLocation
(11, 27));
83
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "s[i]").WithArguments("index operator", "8.0").
WithLocation
(12, 13),
86
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "s[r]").WithArguments("index operator", "8.0").
WithLocation
(13, 13),
89
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "new S()[r]").WithArguments("index operator", "8.0").
WithLocation
(14, 13));
113
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Length.get", "this").
WithLocation
(11, 13),
116
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.this[int].get", "this").
WithLocation
(11, 13),
119
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Length.get", "this").
WithLocation
(12, 13),
122
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Slice(int, int)", "this").
WithLocation
(12, 13));
146
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.this[int].get", "this").
WithLocation
(11, 13),
149
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Slice(int, int)", "this").
WithLocation
(12, 13));
173
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Length.get", "this").
WithLocation
(11, 13),
176
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Length.get", "this").
WithLocation
(12, 13));
200
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Count.get", "this").
WithLocation
(11, 13),
203
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S.Count.get", "this").
WithLocation
(12, 13));
245
Diagnostic(ErrorCode.ERR_BadTypeArgument, "Throws").WithArguments("System.Span<char>").
WithLocation
(9, 9));
268
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "s[^2]").
WithLocation
(11, 34));
289
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(9, 16));
314
Diagnostic(ErrorCode.ERR_BadArgType, "^0").WithArguments("1", "System.Index", "int").
WithLocation
(12, 15),
317
Diagnostic(ErrorCode.ERR_BadArgType, "0..").WithArguments("1", "System.Range", "int").
WithLocation
(13, 15)
343
Diagnostic(ErrorCode.ERR_BadArgType, "^0").WithArguments("1", "System.Index", "int").
WithLocation
(12, 15),
346
Diagnostic(ErrorCode.ERR_BadArgType, "0..").WithArguments("1", "System.Range", "int").
WithLocation
(13, 15)
372
Diagnostic(ErrorCode.ERR_BadArgType, "^0").WithArguments("1", "System.Index", "int").
WithLocation
(12, 15),
375
Diagnostic(ErrorCode.ERR_BadArgType, "0..").WithArguments("1", "System.Range", "int").
WithLocation
(13, 15)
401
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "b[^0]").WithArguments("B.this[int]").
WithLocation
(12, 13),
404
Diagnostic(ErrorCode.ERR_BadArgType, "0..").WithArguments("1", "System.Range", "int").
WithLocation
(13, 15)
430
Diagnostic(ErrorCode.ERR_BadArgType, "^0").WithArguments("1", "System.Index", "int").
WithLocation
(12, 15),
433
Diagnostic(ErrorCode.ERR_BadArgType, "0..").WithArguments("1", "System.Range", "int").
WithLocation
(13, 15)
457
Diagnostic(ErrorCode.ERR_BadIndexLHS, "b[0..]").WithArguments("B").
WithLocation
(11, 13)
494
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "this[^0]").WithArguments("System.Index", "GetOffset").
WithLocation
(23, 13),
497
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "this[0..]").WithArguments("System.Index", "GetOffset").
WithLocation
(24, 13)
537
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "this[0..]").WithArguments("System.Range", "get_" + (propertyName == "Start" ? "End" : "Start")).
WithLocation
(24, 13)
559
Diagnostic(ErrorCode.ERR_BadArgType, "^0").WithArguments("1", "System.Index", "int").
WithLocation
(9, 18),
562
Diagnostic(ErrorCode.ERR_BadArgType, "0..").WithArguments("1", "System.Range", "int").
WithLocation
(10, 18));
597
Diagnostic(ErrorCode.ERR_BadArgType, "^0").WithArguments("1", "System.Index", "int").
WithLocation
(19, 16),
600
Diagnostic(ErrorCode.ERR_BadArgType, "0..").WithArguments("1", "System.Range", "int").
WithLocation
(20, 16),
603
Diagnostic(ErrorCode.ERR_BadArgType, "^0").WithArguments("1", "System.Index", "int").
WithLocation
(23, 16),
606
Diagnostic(ErrorCode.ERR_BadArgType, "0..").WithArguments("1", "System.Range", "int").
WithLocation
(24, 16));
654
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "arr[0..2]").
WithLocation
(32, 27),
657
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "arr[0..2]").
WithLocation
(33, 14),
660
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "arr[0..2]").
WithLocation
(35, 20));
676
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "0..2").WithArguments("System.Range").
WithLocation
(4, 31));
698
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "0..2").WithArguments("System.Runtime.CompilerServices.RuntimeHelpers", "GetSubArray").
WithLocation
(11, 21));
723
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "^2").WithArguments("System.Index", "GetOffset").
WithLocation
(6, 21));
771
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "^0").
WithLocation
(5, 27),
774
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "^0").
WithLocation
(6, 14),
777
Diagnostic(ErrorCode.ERR_BadArgType, "^0").WithArguments("1", "System.Index", "in int[]").
WithLocation
(7, 11),
780
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "^0").
WithLocation
(8, 20));
796
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "^0").
WithLocation
(4, 25));
812
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "^arg").WithArguments("System.Index", ".ctor").
WithLocation
(6, 17),
815
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "^arg").WithArguments("System.Index").
WithLocation
(6, 17));
838
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "^arg").WithArguments("System.Nullable<T>", "T", "System.Index").
WithLocation
(13, 17));
870
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "^arg").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(22, 17));
892
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "^arg").WithArguments("System.Index", ".ctor").
WithLocation
(12, 17));
959
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"^""string""").WithArguments("string", "int").
WithLocation
(6, 17),
962
Diagnostic(ErrorCode.ERR_NoImplicitConv, "^1.5").WithArguments("double", "int").
WithLocation
(7, 17),
965
Diagnostic(ErrorCode.ERR_NoImplicitConv, "^true").WithArguments("bool", "int").
WithLocation
(8, 17));
978
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "^").
WithLocation
(4, 33));
988
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "^1").WithArguments("index operator", "8.0").
WithLocation
(6, 17)
1018
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "1..2").WithArguments("System.Range").
WithLocation
(6, 17),
1021
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "1..").WithArguments("System.Range").
WithLocation
(7, 17),
1024
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "..2").WithArguments("System.Range").
WithLocation
(8, 17),
1027
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "..").WithArguments("System.Range").
WithLocation
(9, 17));
1050
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "index..index").WithArguments("System.Nullable<T>", "T", "System.Range").
WithLocation
(13, 17));
1078
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "index").WithArguments("System.Nullable<T>", "T", "System.Index").
WithLocation
(18, 17),
1081
Diagnostic(ErrorCode.ERR_NoImplicitConv, "index").WithArguments("int?", "System.Index?").
WithLocation
(18, 17),
1084
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "index").WithArguments("System.Nullable<T>", "T", "System.Index").
WithLocation
(18, 24),
1087
Diagnostic(ErrorCode.ERR_NoImplicitConv, "index").WithArguments("int?", "System.Index?").
WithLocation
(18, 24));
1116
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "1..2").WithArguments("System.Range", ".ctor").
WithLocation
(16, 17));
1178
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "arg").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(26, 17),
1181
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "arg").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(26, 22),
1184
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "arg..arg").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(26, 17));
1219
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "arg..arg").WithArguments("System.Boolean").
WithLocation
(25, 17));
1423
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""string""").WithArguments("string", "System.Index").
WithLocation
(6, 20),
1426
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1.5").WithArguments("double", "System.Index").
WithLocation
(7, 17),
1429
Diagnostic(ErrorCode.ERR_NoImplicitConv, "true").WithArguments("bool", "System.Index").
WithLocation
(8, 19),
1432
Diagnostic(ErrorCode.ERR_NoImplicitConv, "M()").WithArguments("void", "System.Index").
WithLocation
(9, 19));
1446
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "..").
WithLocation
(4, 33),
1449
Diagnostic(ErrorCode.ERR_OvlBinaryOperatorExpected, "..").
WithLocation
(5, 33));
1470
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "1..2").WithArguments("range operator", "8.0").
WithLocation
(6, 17),
1473
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "1..").WithArguments("range operator", "8.0").
WithLocation
(7, 17),
1476
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "..2").WithArguments("range operator", "8.0").
WithLocation
(8, 17),
1479
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "..").WithArguments("range operator", "8.0").
WithLocation
(9, 17)
1500
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "^M").WithArguments("M", "int").
WithLocation
(6, 17),
1503
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "^null").WithArguments("int").
WithLocation
(7, 17));
1525
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "M").WithArguments("M", "System.Index").
WithLocation
(6, 20),
1528
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("System.Index").
WithLocation
(7, 20),
1531
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "M").WithArguments("M", "System.Index").
WithLocation
(10, 17),
1534
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("System.Index").
WithLocation
(11, 17));
1556
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "y").WithArguments("y").
WithLocation
(7, 22));
1578
Diagnostic(ErrorCode.ERR_ImplicitRangeIndexerWithName, "startIndex").
WithLocation
(7, 18),
1581
Diagnostic(ErrorCode.ERR_ImplicitRangeIndexerWithName, "range").
WithLocation
(8, 18),
1584
Diagnostic(ErrorCode.ERR_ImplicitRangeIndexerWithName, "notEvenTheCorrectName").
WithLocation
(9, 18),
1587
Diagnostic(ErrorCode.ERR_ImplicitRangeIndexerWithName, "start").
WithLocation
(10, 48),
1590
Diagnostic(ErrorCode.ERR_ImplicitRangeIndexerWithName, "range").
WithLocation
(11, 48),
1593
Diagnostic(ErrorCode.ERR_ImplicitRangeIndexerWithName, "notEvenTheCorrectName").
WithLocation
(12, 48));
1613
Diagnostic(ErrorCode.ERR_ImplicitIndexIndexerWithName, "index").
WithLocation
(7, 18),
1616
Diagnostic(ErrorCode.ERR_ImplicitIndexIndexerWithName, "notEvenTheCorrectName").
WithLocation
(8, 18),
1619
Diagnostic(ErrorCode.ERR_ImplicitIndexIndexerWithName, "index").
WithLocation
(9, 48),
1622
Diagnostic(ErrorCode.ERR_ImplicitIndexIndexerWithName, "notEvenTheCorrectName").
WithLocation
(10, 48));
1683
Diagnostic(ErrorCode.ERR_BadNamedArgument, "param").WithArguments("this", "param").
WithLocation
(11, 31));
1744
Diagnostic(ErrorCode.ERR_BadNamedArgument, "param").WithArguments("this", "param").
WithLocation
(11, 31));
1910
Diagnostic(ErrorCode.ERR_EscapeCall, "new Index(s1)").WithArguments("System.Index.Index(System.Span<int>)", "x").
WithLocation
(28, 16),
1913
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(28, 26),
1916
Diagnostic(ErrorCode.ERR_EscapeCall, "Range.StartAt(new Index(s2))").WithArguments("System.Range.StartAt(System.Index)", "start").
WithLocation
(34, 16),
1919
Diagnostic(ErrorCode.ERR_EscapeCall, "new Index(s2)").WithArguments("System.Index.Index(System.Span<int>)", "x").
WithLocation
(34, 30),
1922
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(34, 40),
1925
Diagnostic(ErrorCode.ERR_EscapeCall, "new Index(s3)").WithArguments("System.Index.Index(System.Span<int>)", "x").
WithLocation
(40, 18),
1928
Diagnostic(ErrorCode.ERR_EscapeVariable, "s3").WithArguments("s3").
WithLocation
(40, 28),
1931
Diagnostic(ErrorCode.ERR_EscapeCall, "Range.EndAt(new Index(s4))").WithArguments("System.Range.EndAt(System.Index)", "end").
WithLocation
(46, 16),
1934
Diagnostic(ErrorCode.ERR_EscapeCall, "new Index(s4)").WithArguments("System.Index.Index(System.Span<int>)", "x").
WithLocation
(46, 28),
1937
Diagnostic(ErrorCode.ERR_EscapeVariable, "s4").WithArguments("s4").
WithLocation
(46, 38),
1940
Diagnostic(ErrorCode.ERR_EscapeCall, "new Index(s52)").WithArguments("System.Index.Index(System.Span<int>)", "x").
WithLocation
(52, 34),
1943
Diagnostic(ErrorCode.ERR_EscapeVariable, "s52").WithArguments("s52").
WithLocation
(52, 44),
1946
Diagnostic(ErrorCode.ERR_EscapeCall, "new Range(new Index(s61), new Index(s62))").WithArguments("System.Range.Range(System.Index, System.Index)", "end").
WithLocation
(58, 16),
1949
Diagnostic(ErrorCode.ERR_EscapeCall, "new Index(s62)").WithArguments("System.Index.Index(System.Span<int>)", "x").
WithLocation
(58, 42),
1952
Diagnostic(ErrorCode.ERR_EscapeVariable, "s62").WithArguments("s62").
WithLocation
(58, 52),
1955
Diagnostic(ErrorCode.ERR_EscapeCall, "new Index(s71)").WithArguments("System.Index.Index(System.Span<int>)", "x").
WithLocation
(64, 16),
1958
Diagnostic(ErrorCode.ERR_EscapeVariable, "s71").WithArguments("s71").
WithLocation
(64, 26),
1961
Diagnostic(ErrorCode.ERR_EscapeCall, "new Range(new Index(s81), new Index(s82))").WithArguments("System.Range.Range(System.Index, System.Index)", "start").
WithLocation
(70, 16),
1964
Diagnostic(ErrorCode.ERR_EscapeCall, "new Index(s81)").WithArguments("System.Index.Index(System.Span<int>)", "x").
WithLocation
(70, 26),
1967
Diagnostic(ErrorCode.ERR_EscapeVariable, "s81").WithArguments("s81").
WithLocation
(70, 36),
1970
Diagnostic(ErrorCode.ERR_EscapeCall, "new Index(s91)").WithArguments("System.Index.Index(System.Span<int>)", "x").
WithLocation
(77, 16),
1973
Diagnostic(ErrorCode.ERR_EscapeVariable, "s91").WithArguments("s91").
WithLocation
(77, 26),
1976
Diagnostic(ErrorCode.ERR_EscapeCall, "new Range(new Index(s101), new Index(s102))").WithArguments("System.Range.Range(System.Index, System.Index)", "start").
WithLocation
(84, 16),
1979
Diagnostic(ErrorCode.ERR_EscapeCall, "new Index(s101)").WithArguments("System.Index.Index(System.Span<int>)", "x").
WithLocation
(84, 26),
1982
Diagnostic(ErrorCode.ERR_EscapeVariable, "s101").WithArguments("s101").
WithLocation
(84, 36)
2096
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1").WithArguments("r1").
WithLocation
(29, 16),
2099
Diagnostic(ErrorCode.ERR_EscapeVariable, "r2").WithArguments("r2").
WithLocation
(36, 16),
2102
Diagnostic(ErrorCode.ERR_EscapeVariable, "r3").WithArguments("r3").
WithLocation
(43, 16),
2105
Diagnostic(ErrorCode.ERR_EscapeVariable, "r4").WithArguments("r4").
WithLocation
(50, 16),
2108
Diagnostic(ErrorCode.ERR_EscapeVariable, "r5").WithArguments("r5").
WithLocation
(57, 16),
2111
Diagnostic(ErrorCode.ERR_EscapeVariable, "r6").WithArguments("r6").
WithLocation
(64, 16),
2114
Diagnostic(ErrorCode.ERR_EscapeVariable, "r7").WithArguments("r7").
WithLocation
(71, 16),
2117
Diagnostic(ErrorCode.ERR_EscapeVariable, "r8").WithArguments("r8").
WithLocation
(78, 16),
2120
Diagnostic(ErrorCode.ERR_EscapeVariable, "r9").WithArguments("r9").
WithLocation
(86, 16),
2123
Diagnostic(ErrorCode.ERR_EscapeVariable, "r10").WithArguments("r10").
WithLocation
(94, 16)
Semantics\InheritanceBindingTests.cs (362)
74
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Method1").WithArguments("abstract").
WithLocation
(22, 24),
77
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Method2").WithArguments("virtual").
WithLocation
(23, 23),
80
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Method3").WithArguments("override").
WithLocation
(24, 24),
83
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Method4").WithArguments("sealed").
WithLocation
(26, 22),
86
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Method5").WithArguments("new").
WithLocation
(28, 19),
89
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Method6").WithArguments("public").
WithLocation
(30, 22),
92
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Method7").WithArguments("protected").
WithLocation
(31, 25),
95
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Method8").WithArguments("internal").
WithLocation
(32, 24),
98
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Method9").WithArguments("protected internal").
WithLocation
(33, 34),
101
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Method10").WithArguments("private").
WithLocation
(34, 23),
104
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "Method12").WithArguments("static", "9.0", "11.0").
WithLocation
(37, 22),
107
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Method14").WithArguments("private protected").
WithLocation
(40, 33),
110
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Method12").WithArguments("AbstractGoo.Method12()").
WithLocation
(37, 22),
113
Diagnostic(ErrorCode.ERR_PartialMethodNotExplicit, "Method13").
WithLocation
(38, 23),
116
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IGoo").WithArguments("AbstractGoo", "IGoo.Method12()").
WithLocation
(20, 38),
119
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "Method11").WithArguments("AbstractGoo.IGoo.Method11()").
WithLocation
(36, 22)
166
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Property1").WithArguments("abstract").
WithLocation
(20, 23),
169
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Property2").WithArguments("virtual").
WithLocation
(21, 22),
172
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Property3").WithArguments("override").
WithLocation
(22, 23),
175
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Property4").WithArguments("sealed").
WithLocation
(24, 21),
178
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Property5").WithArguments("new").
WithLocation
(26, 18),
181
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Property6").WithArguments("public").
WithLocation
(28, 21),
184
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Property7").WithArguments("protected").
WithLocation
(29, 24),
187
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Property8").WithArguments("internal").
WithLocation
(30, 23),
190
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Property9").WithArguments("protected internal").
WithLocation
(31, 33),
193
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Property10").WithArguments("private").
WithLocation
(32, 22),
196
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "Property12").WithArguments("static", "9.0", "11.0").
WithLocation
(35, 21),
199
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Property12").WithArguments("AbstractGoo.Property12").
WithLocation
(35, 21),
202
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IGoo").WithArguments("AbstractGoo", "IGoo.Property12").
WithLocation
(18, 30),
205
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("AbstractGoo.IGoo.Property11.set").
WithLocation
(34, 34));
322
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Event1").WithArguments("abstract").
WithLocation
(20, 39),
325
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Event2").WithArguments("virtual").
WithLocation
(21, 38),
328
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Event3").WithArguments("override").
WithLocation
(22, 39),
331
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Event4").WithArguments("sealed").
WithLocation
(24, 37),
334
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Event5").WithArguments("new").
WithLocation
(26, 34),
337
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Event6").WithArguments("public").
WithLocation
(28, 37),
340
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Event7").WithArguments("protected").
WithLocation
(29, 40),
343
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Event8").WithArguments("internal").
WithLocation
(30, 39),
346
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Event9").WithArguments("protected internal").
WithLocation
(31, 49),
349
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Event10").WithArguments("private").
WithLocation
(32, 38),
352
Diagnostic(ErrorCode.ERR_ExternHasBody, "add").WithArguments("AbstractGoo.IGoo.Event11.add").
WithLocation
(34, 47),
355
Diagnostic(ErrorCode.ERR_ExternHasBody, "remove").WithArguments("AbstractGoo.IGoo.Event11.remove").
WithLocation
(34, 55),
358
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "Event12").WithArguments("static", "9.0", "11.0").
WithLocation
(35, 37),
361
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Event12").WithArguments("AbstractGoo.Event12").
WithLocation
(35, 37),
364
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IGoo").WithArguments("AbstractGoo", "IGoo.Event12").
WithLocation
(18, 30)
414
Diagnostic(ErrorCode.ERR_ObjectRequired, "Interface.Method").WithArguments("Interface.Method(int, long)").
WithLocation
(13, 9),
417
Diagnostic(ErrorCode.ERR_ObjectRequired, "Interface.Method<T>").WithArguments("Interface.Method<T>()").
WithLocation
(18, 9),
420
Diagnostic(ErrorCode.ERR_ObjectRequired, "Interface.Property").WithArguments("Interface.Property").
WithLocation
(27, 9),
423
Diagnostic(ErrorCode.ERR_ObjectRequired, "Interface.Event").WithArguments("Interface.Event").
WithLocation
(28, 9),
426
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Interface").WithArguments("Class", "Interface").
WithLocation
(31, 11),
429
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Interface").WithArguments("Class", "Interface").
WithLocation
(32, 11),
432
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Interface").WithArguments("Class", "Interface").
WithLocation
(33, 11),
435
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Interface").WithArguments("Class", "Interface").
WithLocation
(34, 11));
760
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(8, 34),
763
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(9, 44),
766
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(10, 34),
769
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(11, 46),
772
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(12, 45),
775
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(13, 57),
778
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(14, 40),
781
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(15, 54),
784
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Int").WithArguments("Int").
WithLocation
(16, 34));
816
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(8, 30),
819
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(9, 40),
822
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(10, 30),
825
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(11, 42),
828
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(12, 41),
831
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(13, 53),
834
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(14, 36),
837
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(15, 50),
840
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Int").WithArguments("Int").
WithLocation
(16, 30));
879
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(16, 21),
882
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(17, 21),
885
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(18, 33),
888
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(19, 32),
891
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(20, 44),
894
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(21, 27),
897
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(22, 41),
900
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Int").WithArguments("Int").
WithLocation
(23, 21));
939
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(16, 21),
942
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(17, 21),
945
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(18, 33),
948
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(19, 32),
951
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(20, 44),
954
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(21, 27),
957
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(22, 41),
960
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Int").WithArguments("Int").
WithLocation
(23, 21));
992
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(9, 21),
995
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(10, 21),
998
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(11, 33),
1001
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(12, 32),
1004
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(13, 44),
1007
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(14, 27),
1010
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(15, 41),
1013
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Int").WithArguments("Int").
WithLocation
(16, 21),
1016
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "Derived").
WithLocation
(10, 30),
1019
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "Derived").
WithLocation
(11, 41),
1022
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "Derived").
WithLocation
(12, 42),
1025
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "Derived").
WithLocation
(13, 57),
1028
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "Derived").
WithLocation
(14, 49),
1031
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "Derived").
WithLocation
(15, 49),
1034
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "Derived").
WithLocation
(16, 26));
1073
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(16, 27),
1076
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(17, 27),
1079
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(18, 39),
1082
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(19, 38),
1085
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(20, 50),
1088
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(21, 33),
1091
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "String").WithArguments("String").
WithLocation
(22, 47),
1094
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Int").WithArguments("Int").
WithLocation
(23, 27),
1097
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event6.add").
WithLocation
(14, 7),
1100
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event1.add").
WithLocation
(14, 7),
1103
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event1.remove").
WithLocation
(14, 7),
1106
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event5.add").
WithLocation
(14, 7),
1109
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event3.add").
WithLocation
(14, 7),
1112
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event2.add").
WithLocation
(14, 7),
1115
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event4.remove").
WithLocation
(14, 7),
1118
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event4.add").
WithLocation
(14, 7),
1121
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event3.remove").
WithLocation
(14, 7),
1124
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event7.add").
WithLocation
(14, 7),
1127
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event0.add").
WithLocation
(14, 7),
1130
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event6.remove").
WithLocation
(14, 7),
1133
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event2.remove").
WithLocation
(14, 7),
1136
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event7.remove").
WithLocation
(14, 7),
1139
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event0.remove").
WithLocation
(14, 7),
1142
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Event5.remove").
WithLocation
(14, 7),
1145
Diagnostic(ErrorCode.ERR_EventNotDelegate, "Event1").WithArguments("Derived.Event1").
WithLocation
(17, 36),
1148
Diagnostic(ErrorCode.ERR_EventNotDelegate, "Event3").WithArguments("Derived.Event3").
WithLocation
(19, 48),
1151
Diagnostic(ErrorCode.ERR_EventNotDelegate, "Event5").WithArguments("Derived.Event5").
WithLocation
(21, 55),
1154
Diagnostic(ErrorCode.ERR_EventNotDelegate, "Event6").WithArguments("Derived.Event6").
WithLocation
(22, 55),
1157
Diagnostic(ErrorCode.ERR_EventNotDelegate, "Event7").WithArguments("Derived.Event7").
WithLocation
(23, 32),
1160
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event3").WithArguments("Derived.Event3").
WithLocation
(19, 48),
1163
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event7").WithArguments("Derived.Event7").
WithLocation
(23, 32),
1166
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event1").WithArguments("Derived.Event1").
WithLocation
(17, 36),
1169
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event6").WithArguments("Derived.Event6").
WithLocation
(22, 55),
1172
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event2").WithArguments("Derived.Event2").
WithLocation
(18, 47),
1175
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event5").WithArguments("Derived.Event5").
WithLocation
(21, 55),
1178
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event4").WithArguments("Derived.Event4").
WithLocation
(20, 63),
1181
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event0").WithArguments("Derived.Event0").
WithLocation
(16, 34));
1367
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Method1").WithArguments("Method1", "Derived").
WithLocation
(13, 28),
1370
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Method2").WithArguments("Method2", "Derived2").
WithLocation
(22, 28),
1373
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using @str = System.String;").
WithLocation
(2, 1));
1781
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Method1").WithArguments("Derived.Method1()", "Base.Method1()").
WithLocation
(13, 29),
1784
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Method2").WithArguments("Derived.Method2(ref int)", "Base.Method2(ref int)").
WithLocation
(14, 25));
1926
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Proprty1").WithArguments("Derived.Proprty1", "Base.Proprty1").
WithLocation
(15, 29),
1929
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Property2").WithArguments("Derived.Property2", "Base.Property2").
WithLocation
(16, 25));
1985
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "this").WithArguments("Derived.this[int, int]", "Base.this[int, int]").
WithLocation
(15, 29),
1988
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "this").WithArguments("Derived.this[int, string]", "Base.this[int, string]").
WithLocation
(16, 25));
2557
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "Method3").WithArguments("Derived.Method3()", "Base.Method3()").
WithLocation
(16, 16),
2560
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Method5").WithArguments("Derived.Method5(ref object)", "Base.Method5(ref object)").
WithLocation
(18, 28),
2563
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Method6").WithArguments("Derived.Method6(ref object)", "Base.Method6(ref object)").
WithLocation
(19, 32),
2566
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "Method2").WithArguments("Derived.Method2()", "Base.Method2()").
WithLocation
(15, 19),
2569
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Method2()").
WithLocation
(12, 7),
2572
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Method4(int)").
WithLocation
(12, 7),
2575
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Method3()").
WithLocation
(12, 7),
2578
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Method1()").
WithLocation
(12, 7));
2625
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "Property3").WithArguments("Derived.Property3", "Base.Property3", "object").
WithLocation
(23, 25),
2628
Diagnostic(ErrorCode.ERR_NoSetToOverride, "set").WithArguments("Derived.Property6.set", "Base.Property6").
WithLocation
(28, 45),
2631
Diagnostic(ErrorCode.ERR_NoSetToOverride, "set").WithArguments("Derived.Property7.set", "Base.Property7").
WithLocation
(29, 40),
2634
Diagnostic(ErrorCode.ERR_NoGetToOverride, "get").WithArguments("Derived.Property8.get", "Base.Property8").
WithLocation
(30, 40),
2637
Diagnostic(ErrorCode.ERR_NoGetToOverride, "get").WithArguments("Derived.Property9.get", "Base.Property9").
WithLocation
(31, 40),
2640
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Property10").WithArguments("Derived.Property10", "Base.Property10").
WithLocation
(35, 32),
2643
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Property11").WithArguments("Derived.Property11", "Base.Property11").
WithLocation
(36, 28),
2646
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "Property2").WithArguments("Derived.Property2", "Base.Property2").
WithLocation
(22, 19),
2649
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Property2.get").
WithLocation
(19, 7),
2652
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Property1.get").
WithLocation
(19, 7),
2655
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Property5.get").
WithLocation
(19, 7),
2658
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Property9.set").
WithLocation
(19, 7),
2661
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Property1.set").
WithLocation
(19, 7),
2664
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Property7.get").
WithLocation
(19, 7),
2667
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Property3.set").
WithLocation
(19, 7),
2670
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Property2.set").
WithLocation
(19, 7),
2673
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.Property4.set").
WithLocation
(19, 7));
2720
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("Derived.this[string, int, string, int].get").
WithLocation
(36, 69),
2723
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "this").WithArguments("Derived.this[int, int, string, int]", "Base.this[int, int, string, int]", "object").
WithLocation
(23, 25),
2726
Diagnostic(ErrorCode.ERR_NoSetToOverride, "set").WithArguments("Derived.this[int, string, int, string].set", "Base.this[int, string, int, string]").
WithLocation
(28, 88),
2729
Diagnostic(ErrorCode.ERR_NoSetToOverride, "set").WithArguments("Derived.this[int, string, string, int].set", "Base.this[int, string, string, int]").
WithLocation
(29, 70),
2732
Diagnostic(ErrorCode.ERR_NoGetToOverride, "get").WithArguments("Derived.this[int, string, string, string].get", "Base.this[int, string, string, string]").
WithLocation
(30, 73),
2735
Diagnostic(ErrorCode.ERR_NoGetToOverride, "get").WithArguments("Derived.this[string, int, int, int].get", "Base.this[string, int, int, int]").
WithLocation
(31, 67),
2738
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "this").WithArguments("Derived.this[string, int, int, string]", "Base.this[string, int, int, string]").
WithLocation
(35, 32),
2741
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "this").WithArguments("Derived.this[string, int, string, int]", "Base.this[string, int, string, int]").
WithLocation
(36, 28),
2744
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "this").WithArguments("Derived.this[int, int, int, string]", "Base.this[int, int, int, string]").
WithLocation
(22, 19),
2747
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.this[int, int, string, int].set").
WithLocation
(19, 7),
2750
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.this[int, int, string, string].set").
WithLocation
(19, 7),
2753
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.this[int, int, int, int].set").
WithLocation
(19, 7),
2756
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.this[int, int, int, int].get").
WithLocation
(19, 7),
2759
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.this[int, string, int, int].get").
WithLocation
(19, 7),
2762
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.this[int, int, int, string].set").
WithLocation
(19, 7),
2765
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.this[int, int, int, string].get").
WithLocation
(19, 7),
2768
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.this[string, int, int, int].set").
WithLocation
(19, 7),
2771
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.this[int, string, string, int].get").
WithLocation
(19, 7));
2975
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "Interface").WithArguments("Class", "Interface.Method4(ref object)", "Class.Method4(ref object)").
WithLocation
(10, 15),
2978
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.Method2(int)").
WithLocation
(10, 15),
2981
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "Interface").WithArguments("Class", "Interface.Method3(ref object)", "Class.Method3(ref object)").
WithLocation
(10, 15),
2984
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.Method1()").
WithLocation
(10, 15));
3029
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("lib1, Version=4.1.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "lib2", "lib1, Version=4.2.1.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "lib1").
WithLocation
(1, 1),
3031
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("lib1, Version=4.1.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "lib2", "lib1, Version=4.2.1.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "lib1").
WithLocation
(1, 1),
3034
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C3", "I1.Method1()").
WithLocation
(10, 16)
3078
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.Property2.set").
WithLocation
(17, 15),
3081
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.Property3.get").
WithLocation
(17, 15),
3084
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.Property5.get").
WithLocation
(17, 15),
3087
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.Property7.set").
WithLocation
(17, 15),
3090
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "Interface").WithArguments("Class", "Interface.Property8", "Class.Property8").
WithLocation
(17, 15),
3093
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "Interface").WithArguments("Class", "Interface.Property9", "Class.Property9").
WithLocation
(17, 15),
3096
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.Property1").
WithLocation
(17, 15));
3139
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.this[int, string, string, string].set").
WithLocation
(17, 15),
3142
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "Interface").WithArguments("Class", "Interface.this[string, int, int, int]", "Class.this[string, int, int, int]").
WithLocation
(17, 15),
3145
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "Interface").WithArguments("Class", "Interface.this[string, int, int, string]", "Class.this[string, int, int, string]").
WithLocation
(17, 15),
3148
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.this[int, int, string, string].get").
WithLocation
(17, 15),
3151
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.this[int, string, int, string].get").
WithLocation
(17, 15),
3154
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.this[int, int, string, int].set").
WithLocation
(17, 15),
3157
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.this[int, int, int, string]").
WithLocation
(17, 15));
3206
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Base", "Interface.Method2(int)").
WithLocation
(8, 14),
3209
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Base", "Interface.Method1()").
WithLocation
(8, 14)
3261
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "Interface").WithArguments("Base", "Interface.Property2", "Base.Property2", "object").
WithLocation
(8, 14),
3264
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Base", "Interface.Property1").
WithLocation
(8, 14),
3267
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "Interface").WithArguments("Derived2", "Interface.Property2", "Base.Property2", "object").
WithLocation
(18, 24)
3298
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "Interface").WithArguments("Base", "Interface.this[string]", "Base.this[string]", "object").
WithLocation
(8, 14),
3301
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Base", "Interface.this[int]").
WithLocation
(8, 14),
3304
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "Interface").WithArguments("Derived2", "Interface.this[string]", "Base.this[string]", "object").
WithLocation
(18, 24)
3335
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "Interface").WithArguments("Base", "Interface.Event2", "Base.Event2", "System.Action").
WithLocation
(8, 14),
3338
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Base", "Interface.Event1").
WithLocation
(8, 14),
3341
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "Interface").WithArguments("Derived2", "Interface.Event2", "Base.Event2", "System.Action").
WithLocation
(18, 24)
3704
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "Interface").WithArguments("Base", "Interface.Method7()", "Base.Method7()").
WithLocation
(13, 22),
3707
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "Interface").WithArguments("Base", "Interface.Method2()", "Base.Method2()", "void").
WithLocation
(13, 22),
3710
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "Interface").WithArguments("Base", "Interface.Method3()", "Base.Method3()").
WithLocation
(13, 22),
3713
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "Interface").WithArguments("Base", "Interface.Method4()", "Base.Method4()").
WithLocation
(13, 22),
3716
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "Interface").WithArguments("Base", "Interface.Method5()", "Base.Method5()").
WithLocation
(13, 22),
3719
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "Interface").WithArguments("Base", "Interface.Method6()", "Base.Method6()").
WithLocation
(13, 22),
3722
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "Interface").WithArguments("Base", "Interface.Method1()", "Base.Method1()").
WithLocation
(13, 22));
4733
Diagnostic(ErrorCode.WRN_ExplicitImplCollision, "Method").WithArguments("Class.Interface<int>.Method<V>(int)").
WithLocation
(10, 25));
4755
Diagnostic(ErrorCode.WRN_ExplicitImplCollision, "Method").WithArguments("Class.Interface<int>.Method<V>(int)").
WithLocation
(10, 25),
4758
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new V()").WithArguments("V").
WithLocation
(10, 48),
4761
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "Method").WithArguments("V", "Class.Method<V>(int)", "V", "Interface<int>.Method<V>(int)").
WithLocation
(11, 17));
4822
Diagnostic(ErrorCode.WRN_MultipleRuntimeImplementationMatches, "Interface<int, int>").WithArguments("Base<int>.Method(int)", "Interface<int, int>.Method(int)", "Derived").
WithLocation
(15, 35),
4825
Diagnostic(ErrorCode.WRN_MultipleRuntimeImplementationMatches, "Interface<int, int>").WithArguments("Base<int>.Method(int)", "Interface<int, int>.Method(int)", "Derived").
WithLocation
(15, 35),
4828
Diagnostic(ErrorCode.WRN_MultipleRuntimeImplementationMatches, "Interface<int, int>").WithArguments("Base<int>.Method(int)", "Interface<int, int>.Method(int)", "Derived").
WithLocation
(15, 35),
4831
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface<int, int>").WithArguments("Other", "Interface<int, int>.Method(int)").
WithLocation
(19, 15),
4834
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface<int, int>").WithArguments("Other", "Interface<int, int>.Method(int)").
WithLocation
(19, 15),
4837
Diagnostic(ErrorCode.WRN_ExplicitImplCollision, "Method").WithArguments("Other.Interface<int, int>.Method(int)").
WithLocation
(21, 30)
4866
Diagnostic(ErrorCode.WRN_MultipleRuntimeImplementationMatches, "Interface<int, int>").WithArguments("Base<int>.this[int]", "Interface<int, int>.this[int]", "Derived").
WithLocation
(15, 35),
4869
Diagnostic(ErrorCode.WRN_MultipleRuntimeImplementationMatches, "Interface<int, int>").WithArguments("Base<int>.this[int]", "Interface<int, int>.this[int]", "Derived").
WithLocation
(15, 35),
4872
Diagnostic(ErrorCode.WRN_MultipleRuntimeImplementationMatches, "Interface<int, int>").WithArguments("Base<int>.this[int]", "Interface<int, int>.this[int]", "Derived").
WithLocation
(15, 35));
4997
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Base<TShort, TInt>.Method(TShort, int)", "Base<TShort, TInt>.Method(short, TInt)", "Derived").
WithLocation
(10, 26)
5005
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "Method").WithArguments("Base<short, int>.Method(short, int)", "Derived.Method(short, int)").
WithLocation
(4, 25),
5008
Diagnostic(ErrorCode.ERR_AmbigOverride, "Method").WithArguments("Base<TShort, TInt>.Method(TShort, int)", "Base<TShort, TInt>.Method(short, TInt)", "Derived").
WithLocation
(10, 26)
5065
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "Method").WithArguments("Base<int>.Method(int, ref int)", "Derived.Method(int, ref int)").
WithLocation
(5, 25)
5211
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method2").WithArguments("Derived1.Method2()", "internal", "Base.Method2()").
WithLocation
(30, 38),
5214
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method3").WithArguments("Derived1.Method3()", "internal", "Base.Method3()").
WithLocation
(31, 26),
5217
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method4").WithArguments("Derived1.Method4()", "protected", "Base.Method4()").
WithLocation
(33, 28),
5220
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method5").WithArguments("Derived1.Method5()", "protected", "Base.Method5()").
WithLocation
(34, 38),
5223
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method6").WithArguments("Derived1.Method6()", "protected", "Base.Method6()").
WithLocation
(35, 26),
5226
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method7").WithArguments("Derived1.Method7()", "protected internal", "Base.Method7()").
WithLocation
(37, 28),
5229
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method8").WithArguments("Derived1.Method8()", "protected internal", "Base.Method8()").
WithLocation
(38, 29),
5232
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method10").WithArguments("Derived1.Method10()", "protected internal", "Base.Method10()").
WithLocation
(40, 26),
5235
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method11").WithArguments("Derived1.Method11()", "public", "Base.Method11()").
WithLocation
(42, 28),
5238
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method12").WithArguments("Derived1.Method12()", "public", "Base.Method12()").
WithLocation
(43, 29),
5241
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method13").WithArguments("Derived1.Method13()", "public", "Base.Method13()").
WithLocation
(44, 38),
5244
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method14").WithArguments("Derived1.Method14()", "private protected", "Base.Method14()").
WithLocation
(46, 28),
5247
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method15").WithArguments("Derived1.Method15()", "private protected", "Base.Method15()").
WithLocation
(47, 29),
5250
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method16").WithArguments("Derived1.Method16()", "private protected", "Base.Method16()").
WithLocation
(48, 38),
5253
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method17").WithArguments("Derived1.Method17()", "private protected", "Base.Method17()").
WithLocation
(49, 26),
5256
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "Method1").WithArguments("Derived1.Method1()", "internal", "Base.Method1()").
WithLocation
(29, 29)
5850
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "this").WithArguments("Class.Interface.this[int, int, int, string]", "Interface.this[int, int, int, string].set").
WithLocation
(19, 19),
5853
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "this").WithArguments("Class.Interface.this[int, int, string, int]", "Interface.this[int, int, string, int].get").
WithLocation
(20, 19),
5856
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "this").WithArguments("Class.Interface.this[int, string, int, string]", "Interface.this[int, string, int, string].get").
WithLocation
(24, 19),
5859
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("Class.Interface.this[int, string, int, string].set", "Interface.this[int, string, int, string]").
WithLocation
(24, 60),
5862
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("Class.Interface.this[int, string, string, int].set", "Interface.this[int, string, string, int]").
WithLocation
(25, 78),
5865
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("Class.Interface.this[int, string, string, string].get", "Interface.this[int, string, string, string]").
WithLocation
(27, 63),
5868
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "this").WithArguments("Class.Interface.this[int, string, string, string]", "Interface.this[int, string, string, string].set").
WithLocation
(27, 19),
5871
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("Class.Interface.this[string, int, int, string].get", "Interface.this[string, int, int, string]").
WithLocation
(29, 60),
5874
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.this[int, int, string, int].get").
WithLocation
(17, 15),
5877
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.this[int, string, int, string].get").
WithLocation
(17, 15),
5880
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.this[int, int, int, string].set").
WithLocation
(17, 15),
5883
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class", "Interface.this[int, string, string, string].set").
WithLocation
(17, 15));
5972
Diagnostic(ErrorCode.ERR_AbstractBaseCall, "base.Property1").WithArguments("Base2.Property1").
WithLocation
(19, 9),
5974
Diagnostic(ErrorCode.ERR_AbstractBaseCall, "base.Property1").WithArguments("Base2.Property1").
WithLocation
(21, 18));
6006
Diagnostic(ErrorCode.ERR_AbstractBaseCall, "base[0]").WithArguments("Base2.this[long]").
WithLocation
(19, 9),
6008
Diagnostic(ErrorCode.ERR_AbstractBaseCall, "base[0]").WithArguments("Base2.this[long]").
WithLocation
(21, 18));
6131
Diagnostic(ErrorCode.ERR_OverloadRefKind, "Method").WithArguments("Derived2", "method", "ref", "out").
WithLocation
(14, 26));
6922
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class1", "Interface.Method<T>(long, int)").
WithLocation
(17, 16),
6925
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class2", "Interface.Method<T>(long, int)").
WithLocation
(26, 23),
6928
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface2").WithArguments("Class3", "Interface2.Method<T, U, V>(T, U, V)").
WithLocation
(33, 24),
6931
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class7", "Interface.Method<T>(long, int)").
WithLocation
(58, 23),
6934
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class6", "Interface.Method<T>(long, int)").
WithLocation
(49, 16),
6937
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "Interface").WithArguments("Class4", "Interface.Method<T>(long, int)", "Class4.Method<T>(long, int)", "void").
WithLocation
(35, 16),
6940
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "Interface3").WithArguments("Class41", "Interface3.Property", "Class41.Property", "int").
WithLocation
(39, 17),
6943
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface").WithArguments("Class5", "Interface.Method<T>(long, int)").
WithLocation
(44, 16));
7140
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "Class").WithArguments("I2.Method<T>(int, ref T[], out System.Collections.Generic.List<T>)").
WithLocation
(8, 24),
7143
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "Class").WithArguments("I1.Property").
WithLocation
(8, 24),
7201
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Class", "I1.Method(int, params System.Exception[])").
WithLocation
(7, 32),
7204
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I1").WithArguments("Derived", "I1.Property", "Base.Property").
WithLocation
(32, 33));
7316
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Outer<U>.Inner<int>.Interface<long, T>").WithArguments("Derived1<U, T>", "Outer<U>.Inner<int>.Interface<long, T>.Method<K>(U, int[], System.Collections.Generic.List<long>, Outer<U>.Inner<int>.Interface<T, K>)").
WithLocation
(25, 63),
7319
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "Outer<U>.Inner<int>.Interface<long, T>").WithArguments("Derived1<U, T>", "Outer<U>.Inner<int>.Interface<long, T>.Property", "Outer<U>.Inner<T>.Base<U, T>.Property", "U").
WithLocation
(25, 63),
7322
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterTypeParameter, "T").WithArguments("T", "Derived1<U, T>").
WithLocation
(27, 27),
7325
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterTypeParameter, "T").WithArguments("T", "Derived1<U, T>").
WithLocation
(37, 28),
7328
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Outer<List<List<int>>>.Inner<List<List<T>>>.Interface<long, List<int>>").WithArguments("Derived1<U, T>.Derived2<T>", "Outer<System.Collections.Generic.List<System.Collections.Generic.List<int>>>.Inner<System.Collections.Generic.List<System.Collections.Generic.List<T>>>.Interface<long, System.Collections.Generic.List<int>>.Method<K>(System.Collections.Generic.List<System.Collections.Generic.List<int>>, System.Collections.Generic.List<System.Collections.Generic.List<T>>[], System.Collections.Generic.List<long>, Outer<System.Collections.Generic.List<System.Collections.Generic.List<int>>>.Inner<System.Collections.Generic.List<System.Collections.Generic.List<T>>>.Interface<System.Collections.Generic.List<int>, K>)").
WithLocation
(27, 32),
7331
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "Outer<List<List<int>>>.Inner<List<List<T>>>.Interface<long, List<int>>").WithArguments("Derived1<U, T>.Derived2<T>", "Outer<System.Collections.Generic.List<System.Collections.Generic.List<int>>>.Inner<System.Collections.Generic.List<System.Collections.Generic.List<T>>>.Interface<long, System.Collections.Generic.List<int>>.Property", "Derived1<U, T>.Derived2<T>.Property", "System.Collections.Generic.List<System.Collections.Generic.List<int>>").
WithLocation
(27, 32));
7858
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I3").WithArguments("Test", "I3.P", "Test.P", "long").
WithLocation
(32, 14),
7861
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I3").WithArguments("Test", "I1.M1(long)", "Test.M1(long)", "void").
WithLocation
(32, 14),
7864
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test", "I1.M6(ref long)").
WithLocation
(32, 14),
7867
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test", "I1.M7(out long)").
WithLocation
(32, 14));
8138
Diagnostic(ErrorCode.WRN_FinalizeMethod, "Finalize").
WithLocation
(4, 10),
8141
Diagnostic(ErrorCode.WRN_FinalizeMethod, "Finalize").
WithLocation
(6, 28),
8144
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I").WithArguments("C2", "I.Finalize()", "object.~Object()").
WithLocation
(7, 12));
8331
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C1").WithArguments("Ns1.I1<Ns1.C0<C1T1, C1T2>>.P").
WithLocation
(18, 11),
8334
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C1").WithArguments("Ns1.I1<Ns1.C0<C1T1, C1T2>>.E").
WithLocation
(18, 11),
8337
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C1").WithArguments("Ns1.I1<Ns1.C0<C1T1, C1T2>>.M()").
WithLocation
(18, 11)
8357
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I0<dynamic>").WithArguments("I2", "I0<dynamic>").
WithLocation
(4, 23),
8360
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C").WithArguments("I0<dynamic>", "I0<object>", "C").
WithLocation
(7, 14)
8384
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I0<dynamic>").WithArguments("D", "I0<dynamic>").
WithLocation
(11, 21),
8387
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I0<dynamic>").WithArguments("D", "I0<dynamic>.M()").
WithLocation
(11, 21)
8412
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I0<dynamic>").WithArguments("D", "I0<dynamic>").
WithLocation
(12, 21),
8415
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I0<dynamic>").WithArguments("D", "I0<dynamic>.M()").
WithLocation
(12, 21)
8755
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "where").WithArguments("constraints for override and explicit interface implementation methods", "8.0").
WithLocation
(14, 29)
8818
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "where").WithArguments("constraints for override and explicit interface implementation methods", "8.0").
WithLocation
(9, 42)
8839
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "U").WithArguments("U", "Derived.Goo<T>(T)").
WithLocation
(9, 48));
8859
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "U").WithArguments("U", "Derived.Goo<T>(T)").
WithLocation
(9, 48));
8879
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "U").WithArguments("U", "Derived<U>.Goo<T>(T)").
WithLocation
(9, 48));
8899
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "U").WithArguments("U", "Derived<U>.Goo<T>(T)").
WithLocation
(9, 48));
8953
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "U").WithArguments("U", "C.I.Goo<T>(T)").
WithLocation
(9, 34));
8973
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "U").WithArguments("U", "C.I.Goo<T>(T)").
WithLocation
(9, 34));
8993
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "U").WithArguments("U", "C<U>.I.Goo<T>(T)").
WithLocation
(9, 34));
9013
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "U").WithArguments("U", "C<U>.I.Goo<T>(T)").
WithLocation
(9, 34));
9033
Diagnostic(ErrorCode.ERR_ConstraintOnlyAllowedOnGenericDecl, "where").
WithLocation
(9, 18)
9054
Diagnostic(ErrorCode.ERR_DuplicateConstraintClause, "T").WithArguments("T").
WithLocation
(9, 52)
9074
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "Goo").WithArguments("Derived.Goo<T>(T)").
WithLocation
(8, 26),
9077
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(8, 60));
9096
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "Goo").WithArguments("Derived.Goo<T>(T)").
WithLocation
(8, 26),
9099
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "struct").
WithLocation
(8, 59));
9119
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(9, 60));
9138
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Goo").WithArguments("C.Goo<T>(T)").
WithLocation
(8, 12),
9141
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(8, 46));
9160
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Goo").WithArguments("C.Goo<T>(T)").
WithLocation
(8, 12),
9163
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "struct").
WithLocation
(8, 45));
9183
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(9, 46));
9204
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "class?").
WithLocation
(10, 52));
9225
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "class?").
WithLocation
(10, 38));
9246
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "Stream").
WithLocation
(10, 52));
9267
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "Stream").
WithLocation
(10, 59));
9288
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "Stream").
WithLocation
(10, 71));
9309
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "Stream").
WithLocation
(10, 38));
9330
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "Stream").
WithLocation
(10, 45));
9351
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "Stream").
WithLocation
(10, 57));
9371
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("C.I.Goo<T>(T)", "T", "U", "I.Goo<U>(U)").
WithLocation
(9, 16)
9392
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("C.I.Goo<T>(T)", "T", "T", "I.Goo<T>(T)").
WithLocation
(9, 16)
9414
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("C.I.Goo<T>(T)", "T", "T", "I.Goo<T>(T)").
WithLocation
(10, 16)
9435
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("Derived.Goo<T>(T)", "T", "T", "Base.Goo<T>(T)").
WithLocation
(9, 30)
9456
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("Derived.Goo<T>(T)", "T", "T", "Base.Goo<T>(T)").
WithLocation
(9, 30)
9478
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("Derived.Goo<T>(T)", "T", "T", "Base.Goo<T>(T)").
WithLocation
(10, 30)
9499
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("C.I.Goo<T>(T)", "T", "U", "I.Goo<U>(U)").
WithLocation
(9, 16)
9520
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("C.I.Goo<T>(T)", "T", "T", "I.Goo<T>(T)").
WithLocation
(9, 16)
9542
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("C.I.Goo<T>(T)", "T", "T", "I.Goo<T>(T)").
WithLocation
(10, 16)
9563
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("Derived.Goo<T>(T)", "T", "T", "Base.Goo<T>(T)").
WithLocation
(9, 30)
9584
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("Derived.Goo<T>(T)", "T", "T", "Base.Goo<T>(T)").
WithLocation
(9, 30)
9606
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("Derived.Goo<T>(T)", "T", "T", "Base.Goo<T>(T)").
WithLocation
(10, 30)
9628
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("Derived.Goo<T>(T)", "T", "T", "Base.Goo<T>(T)").
WithLocation
(10, 30)
9649
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("Derived.Goo<T>(T)", "T", "T", "Base<int?>.Goo<T>(T)").
WithLocation
(9, 30)
9705
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "new()").
WithLocation
(9, 52)
9726
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "new()").
WithLocation
(9, 59)
9747
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "unmanaged").
WithLocation
(9, 52)
9770
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "unmanaged").
WithLocation
(11, 52)
Semantics\InitOnlyMemberTests.cs (217)
42
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "init").WithArguments("init-only setters", "9.0").
WithLocation
(4, 35)
80
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "Property").WithArguments("init-only setters", "9.0").
WithLocation
(6, 23),
83
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Property2").WithArguments("C.Property2").
WithLocation
(6, 48)
117
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(6, 45),
120
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Property2").WithArguments("C.Property2").
WithLocation
(6, 70)
151
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "with").WithArguments("records", "9.0").
WithLocation
(6, 15),
154
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "Property").WithArguments("init-only setters", "9.0").
WithLocation
(6, 22),
157
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Property2").WithArguments("C.Property2").
WithLocation
(6, 47)
189
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(6, 9),
192
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "c.Property2").WithArguments("C.Property2").
WithLocation
(7, 9)
219
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "Property = 42").WithArguments("init-only setters", "9.0").
WithLocation
(2, 7),
222
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgument, "Property2").WithArguments("Property2").
WithLocation
(2, 22)
230
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgument, "Property2").WithArguments("Property2").
WithLocation
(2, 22)
254
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "init").WithArguments("init-only setters", "9.0").
WithLocation
(4, 28),
257
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Property2").WithArguments("C.Property2").
WithLocation
(9, 48)
281
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "init").WithArguments("init-only setters", "9.0").
WithLocation
(4, 32),
284
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgument, "Property2").WithArguments("Property2").
WithLocation
(8, 22)
314
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "Property").WithArguments("init-only setters", "9.0").
WithLocation
(6, 23),
317
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Property2").WithArguments("C.Property2").
WithLocation
(6, 48)
349
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "Property").WithArguments("init-only setters", "9.0").
WithLocation
(6, 24),
352
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Property2").WithArguments("C.Property2").
WithLocation
(6, 49)
369
Diagnostic(ErrorCode.ERR_SemiOrLBraceOrArrowExpected, "set").
WithLocation
(4, 40),
372
Diagnostic(ErrorCode.ERR_DuplicateAccessor, "set").
WithLocation
(4, 40)
391
Diagnostic(ErrorCode.ERR_DuplicateAccessor, "init").
WithLocation
(4, 49),
394
Diagnostic(ErrorCode.ERR_DuplicateAccessor, "set").
WithLocation
(5, 51),
397
Diagnostic(ErrorCode.ERR_DuplicateAccessor, "init").
WithLocation
(6, 51)
455
Diagnostic(ErrorCode.ERR_ObjectRequired, "Property").WithArguments("C.Property").
WithLocation
(5, 23),
458
Diagnostic(ErrorCode.ERR_ObjectRequired, "Property").WithArguments("C.Property").
WithLocation
(15, 29),
461
Diagnostic(ErrorCode.ERR_BaseInBadContext, "base").
WithLocation
(19, 34)
496
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(8, 9),
499
Diagnostic(ErrorCode.ERR_BadAccess, "C").WithArguments("C.C()").
WithLocation
(20, 17),
502
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "Property").WithArguments("C.Property").
WithLocation
(20, 23),
505
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(21, 9)
548
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(8, 9),
551
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "Property").WithArguments("C.Property", "C", "Derived").
WithLocation
(20, 23),
554
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(21, 9),
557
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(22, 9),
560
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "Property").WithArguments("C.Property", "C", "Derived").
WithLocation
(27, 23)
577
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "Property").WithArguments("C.Property").
WithLocation
(4, 19)
606
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C<string>.Property").
WithLocation
(10, 9)
637
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongInitOnly, "I<string>").WithArguments("CWithoutInit", "I<string>.Property.init", "CWithoutInit.Property.set").
WithLocation
(10, 29)
690
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C<string>.Property").
WithLocation
(12, 13),
693
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C<string>.Property").
WithLocation
(18, 13),
696
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C<string>.Property").
WithLocation
(26, 13),
699
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C<string>.Property").
WithLocation
(32, 13)
747
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C<T>.Property").
WithLocation
(10, 13),
750
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C<T>.Property").
WithLocation
(16, 13),
753
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C<T>.Property").
WithLocation
(26, 17),
756
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C<T>.Property").
WithLocation
(32, 17)
773
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "init").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 49)
872
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(8, 9),
875
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(21, 13),
878
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(34, 13),
881
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(39, 13),
884
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "Property").WithArguments("C.Property").
WithLocation
(43, 33),
887
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(54, 9),
890
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(66, 13),
893
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(79, 13),
896
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(84, 13)
1151
Diagnostic(ErrorCode.ERR_BadInitAccessor, "init").
WithLocation
(4, 42)
1214
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(9, 9),
1217
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(16, 13),
1220
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(24, 9),
1223
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(31, 13),
1226
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(41, 18)
1253
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(8, 10),
1256
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(8, 21),
1259
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(8, 31)
1283
Diagnostic(ErrorCode.ERR_RefProperty, "Property").
WithLocation
(8, 16)
1310
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(8, 9)
1337
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(8, 9)
1364
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(8, 9)
1391
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(8, 9)
1411
Diagnostic(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, "Property1").
WithLocation
(4, 13),
1414
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "init").
WithLocation
(4, 30),
1417
Diagnostic(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, "Property2").
WithLocation
(5, 13),
1420
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "init").
WithLocation
(6, 44),
1423
Diagnostic(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, "Property4").
WithLocation
(7, 13)
1619
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(8, 9),
1622
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(13, 9),
1625
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(20, 13),
1628
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(25, 13),
1631
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(33, 13),
1634
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c.Property").WithArguments("C.Property").
WithLocation
(38, 13),
1637
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(51, 9),
1640
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "base.Property").WithArguments("C.Property").
WithLocation
(52, 9),
1643
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(65, 13),
1646
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "base.Property").WithArguments("C.Property").
WithLocation
(66, 13),
1649
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(80, 13),
1652
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "base.Property").WithArguments("C.Property").
WithLocation
(81, 13),
1655
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("C.Property").
WithLocation
(86, 13),
1658
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "base.Property").WithArguments("C.Property").
WithLocation
(87, 13)
1686
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "((ISomething)this).Property").WithArguments("ISomething.Property").
WithLocation
(13, 17)
1714
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "((ISomething)this).Property").WithArguments("ISomething.Property").
WithLocation
(13, 17)
1763
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "Property").WithArguments("DerivedWithoutInit.Property", "Base.Property").
WithLocation
(13, 28),
1766
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "Property").WithArguments("DerivedWithoutInitSetterOnly.Property", "Base.Property").
WithLocation
(22, 28),
1769
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "Property").WithArguments("DerivedDerivedWithoutInit.Property", "DerivedGetterOnly.Property").
WithLocation
(35, 28)
1813
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "Property").WithArguments("DerivedWithoutInit.Property", "Base.Property").
WithLocation
(8, 28),
1816
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "Property").WithArguments("DerivedWithoutInitSetterOnly.Property", "Base.Property").
WithLocation
(16, 28)
1865
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "Property").WithArguments("DerivedWithInit.Property", "Base.Property").
WithLocation
(9, 28),
1868
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "Property").WithArguments("DerivedWithInitSetterOnly.Property", "Base.Property").
WithLocation
(18, 28),
1871
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "Property").WithArguments("DerivedDerivedWithInit.Property", "DerivedGetterOnly.Property").
WithLocation
(31, 28)
1905
Diagnostic(ErrorCode.ERR_NoSetToOverride, "init").WithArguments("DerivedWithInit.Property.init", "Base.Property").
WithLocation
(8, 44),
1908
Diagnostic(ErrorCode.ERR_NoSetToOverride, "set").WithArguments("DerivedWithoutInit.Property.set", "Base.Property").
WithLocation
(12, 44),
1911
Diagnostic(ErrorCode.ERR_NoSetToOverride, "init").WithArguments("DerivedWithInitSetterOnly.Property.init", "Base.Property").
WithLocation
(16, 39),
1914
Diagnostic(ErrorCode.ERR_NoSetToOverride, "set").WithArguments("DerivedWithoutInitSetterOnly.Property.set", "Base.Property").
WithLocation
(20, 39)
1948
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "Property").WithArguments("DerivedWithInit.Property", "Base.Property").
WithLocation
(8, 28),
1951
Diagnostic(ErrorCode.ERR_NoGetToOverride, "get").WithArguments("DerivedWithInit.Property.get", "Base.Property").
WithLocation
(8, 39),
1954
Diagnostic(ErrorCode.ERR_NoGetToOverride, "get").WithArguments("DerivedWithoutInit.Property.get", "Base.Property").
WithLocation
(12, 39),
1957
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "Property").WithArguments("DerivedWithInitSetterOnly.Property", "Base.Property").
WithLocation
(16, 28),
1960
Diagnostic(ErrorCode.ERR_NoGetToOverride, "get").WithArguments("DerivedWithoutInitGetterOnly.Property.get", "Base.Property").
WithLocation
(20, 39)
1994
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongInitOnly, "I").WithArguments("DerivedWithoutInit", "I.Property.init", "DerivedWithoutInit.Property.set").
WithLocation
(10, 35),
1997
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("DerivedWithInitSetterOnly", "I.Property.get").
WithLocation
(14, 42),
2000
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("DerivedWithoutInitGetterOnly", "I.Property.init").
WithLocation
(18, 45)
2033
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongInitOnly, "I").WithArguments("DerivedWithInit", "I.Property.set", "DerivedWithInit.Property.init").
WithLocation
(6, 32),
2036
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongInitOnly, "I").WithArguments("DerivedWithInitSetterOnly", "I.Property.set", "DerivedWithInitSetterOnly.Property.init").
WithLocation
(14, 42),
2039
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("DerivedWithoutInitGetterOnly", "I.Property.set").
WithLocation
(18, 45)
2085
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("Derived.Property", "Base.Property").
WithLocation
(8, 19)
2125
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongInitOnly, "I").WithArguments("DerivedWithInit", "I.Property.set", "DerivedWithInit.Property.init").
WithLocation
(2, 32),
2128
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongInitOnly, "I").WithArguments("DerivedWithInitSetterOnly", "I.Property.set", "DerivedWithInitSetterOnly.Property.init").
WithLocation
(10, 42),
2131
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("DerivedWithoutInitGetterOnly", "I.Property.set").
WithLocation
(14, 45)
2156
Diagnostic(ErrorCode.ERR_ExplicitPropertyMismatchInitOnly, "init").WithArguments("DerivedWithInit.I.Property.init", "I.Property.set").
WithLocation
(8, 25),
2159
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("DerivedWithInitAndGetter.I.Property.get", "I.Property").
WithLocation
(12, 25),
2162
Diagnostic(ErrorCode.ERR_ExplicitPropertyMismatchInitOnly, "init").WithArguments("DerivedWithInitAndGetter.I.Property.init", "I.Property.set").
WithLocation
(12, 30)
2191
Diagnostic(ErrorCode.ERR_ExplicitPropertyMismatchInitOnly, "set").WithArguments("DerivedWithoutInit.I.Property.set", "I.Property.init").
WithLocation
(8, 25),
2194
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("DerivedWithInitAndGetter.I.Property.get", "I.Property").
WithLocation
(16, 25)
2230
Diagnostic(ErrorCode.ERR_ExplicitPropertyMismatchInitOnly, "set").WithArguments("DerivedWithoutInit.I.Property.set", "I.Property.init").
WithLocation
(4, 25),
2233
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("DerivedGetterOnly", "I.Property.init").
WithLocation
(10, 34),
2236
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "Property").WithArguments("DerivedGetterOnly.I.Property", "I.Property.init").
WithLocation
(12, 14),
2239
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("DerivedGetterOnly.I.Property.get", "I.Property").
WithLocation
(12, 25)
2286
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("IWithoutInit.Property", "I1.Property").
WithLocation
(12, 12),
2289
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("IWithInit.Property", "I1.Property").
WithLocation
(16, 12),
2292
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("IWithInitWithDefaultImplementation.Property", "I1.Property").
WithLocation
(24, 12)
2379
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("IWithoutInit.Property", "I1.Property").
WithLocation
(13, 12),
2382
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("IWithInit.Property", "I1.Property").
WithLocation
(17, 12),
2385
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("IWithInitWithImplementation.Property", "I1.Property").
WithLocation
(31, 12),
2388
Diagnostic(ErrorCode.ERR_ExplicitPropertyMismatchInitOnly, "init").WithArguments("IWithInitWithExplicitImplementationOfI2.I2.Property.init", "I2.Property.set").
WithLocation
(40, 26),
2391
Diagnostic(ErrorCode.ERR_ExplicitPropertyMismatchInitOnly, "set").WithArguments("IWithoutInitWithExplicitImplementationOfI1.I1.Property.set", "I1.Property.init").
WithLocation
(45, 26),
2394
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongInitOnly, "I2").WithArguments("CWithImplementationWithInitOnly", "I2.Property.set", "CWithImplementationWithInitOnly.Property.init").
WithLocation
(62, 52),
2397
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongInitOnly, "I1").WithArguments("CWithImplementationWithoutInitOnly", "I1.Property.init", "CWithImplementationWithoutInitOnly.Property.set").
WithLocation
(66, 51)
2417
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "Event").WithArguments("C.Event").
WithLocation
(4, 32),
2420
Diagnostic(ErrorCode.ERR_AddOrRemoveExpected, "init").
WithLocation
(6, 9)
2610
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "this[43]").WithArguments("C.this[int]").
WithLocation
(14, 9),
2613
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "this[45]").WithArguments("C.this[int]").
WithLocation
(25, 9),
2616
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "c2[47]").WithArguments("C.this[int]").
WithLocation
(33, 9)
2679
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(11, 9),
2682
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(12, 23),
2685
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(25, 13),
2688
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(30, 13),
2691
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(38, 9),
2694
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(42, 9),
2697
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(48, 13)
2875
Diagnostic(ErrorCode.ERR_AssgReadonly, "c.field").
WithLocation
(9, 9),
2878
Diagnostic(ErrorCode.ERR_AssgReadonly, "c.field").
WithLocation
(16, 13),
2881
Diagnostic(ErrorCode.ERR_AssgReadonly, "c.field").
WithLocation
(24, 9),
2884
Diagnostic(ErrorCode.ERR_AssgReadonly, "c.field").
WithLocation
(31, 13),
2887
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(40, 13),
2890
Diagnostic(ErrorCode.ERR_AssgReadonly, "c.field").
WithLocation
(41, 18)
2956
Diagnostic(ErrorCode.ERR_AssgReadonly2, "field.content").WithArguments("C.field").
WithLocation
(15, 9),
2959
Diagnostic(ErrorCode.ERR_AssgReadonly2, "field.content").WithArguments("C.field").
WithLocation
(28, 13),
2962
Diagnostic(ErrorCode.ERR_AssgReadonly2, "field.content").WithArguments("C.field").
WithLocation
(33, 13),
2965
Diagnostic(ErrorCode.ERR_AssgReadonly2, "field.content").WithArguments("C.field").
WithLocation
(41, 9),
2968
Diagnostic(ErrorCode.ERR_AssgReadonly2, "field.content").WithArguments("C.field").
WithLocation
(45, 9),
2971
Diagnostic(ErrorCode.ERR_AssgReadonly2, "field.content").WithArguments("C.field").
WithLocation
(51, 13)
3035
Diagnostic(ErrorCode.ERR_BadInitAccessor, "init").
WithLocation
(13, 9),
3038
Diagnostic(ErrorCode.ERR_AssgReadonlyStatic2, "field.content").WithArguments("C.field").
WithLocation
(15, 13)
3085
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(6, 9),
3088
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(7, 23),
3091
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(12, 9),
3094
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(13, 23),
3097
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(20, 13)
3181
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "init { P1 = 1; } => P1 = 1;").
WithLocation
(7, 9)
3256
Diagnostic(ErrorCode.ERR_BindToBogus, "set").WithArguments("C.Property.set").
WithLocation
(4, 36),
3259
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "Property").WithArguments("Derived2.Property", "C.Property").
WithLocation
(8, 25),
3262
Diagnostic(ErrorCode.ERR_BindToBogus, "init").WithArguments("C.Property.set").
WithLocation
(8, 36),
3265
Diagnostic(ErrorCode.ERR_BindToBogus, "Property").WithArguments("C.Property.set").
WithLocation
(14, 11),
3268
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "set_Property").WithArguments("C.Property.set").
WithLocation
(15, 11)
3347
Diagnostic(ErrorCode.ERR_CantOverrideBogusMethod, "Property").WithArguments("Derived.Property", "C.Property").
WithLocation
(4, 25),
3350
Diagnostic(ErrorCode.ERR_CantOverrideBogusMethod, "Property").WithArguments("Derived2.Property", "C.Property").
WithLocation
(8, 25),
3353
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "Property").WithArguments("C.Property", "C.set_Property(int)").
WithLocation
(14, 11),
3356
Diagnostic(ErrorCode.ERR_BindToBogus, "set_Property").WithArguments("C.set_Property(int)").
WithLocation
(15, 11)
3465
Diagnostic(ErrorCode.ERR_CantOverrideBogusMethod, "this").WithArguments("Derived.this[int]", "C.this[int]").
WithLocation
(4, 25),
3468
Diagnostic(ErrorCode.ERR_CantOverrideBogusMethod, "this").WithArguments("Derived2.this[int]", "C.this[int]").
WithLocation
(8, 25),
3471
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "c[42]").WithArguments("C.this[int]", "C.set_Item(int, int)").
WithLocation
(14, 9),
3474
Diagnostic(ErrorCode.ERR_BindToBogus, "set_Item").WithArguments("C.set_Item(int, int)").
WithLocation
(15, 11)
3561
Diagnostic(ErrorCode.ERR_BindToBogus, "set").WithArguments("C.this[int].set").
WithLocation
(4, 39),
3564
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "this").WithArguments("Derived2.this[int]", "C.this[int]").
WithLocation
(8, 25),
3567
Diagnostic(ErrorCode.ERR_BindToBogus, "init").WithArguments("C.this[int].set").
WithLocation
(8, 39)
3622
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("C.M()").
WithLocation
(6, 11)
3681
Diagnostic(ErrorCode.ERR_BindToBogus, "P").WithArguments("C.P.set").
WithLocation
(6, 11)
3731
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M").WithArguments("Derived.M()").
WithLocation
(4, 26)
3799
Diagnostic(ErrorCode.ERR_BindToBogus, "set_Property").WithArguments("C.set_Property(ref int)").
WithLocation
(7, 11),
3802
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "Property").WithArguments("C.Property", "C.get_Property()", "C.set_Property(ref int)").
WithLocation
(9, 15),
3805
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "Property").WithArguments("C.Property", "C.get_Property()", "C.set_Property(ref int)").
WithLocation
(10, 11)
3877
Diagnostic(ErrorCode.ERR_BindToBogus, "get_Property").WithArguments("C.get_Property()").
WithLocation
(6, 15),
3880
Diagnostic(ErrorCode.ERR_BindToBogus, "set_Property").WithArguments("C.set_Property(ref int)").
WithLocation
(7, 11),
3883
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "Property").WithArguments("C.Property", "C.get_Property()", "C.set_Property(ref int)").
WithLocation
(9, 15),
3886
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "Property").WithArguments("C.Property", "C.get_Property()", "C.set_Property(ref int)").
WithLocation
(10, 11)
3965
Diagnostic(ErrorCode.ERR_BindToBogus, "get_Property").WithArguments("C.get_Property()").
WithLocation
(6, 15),
3968
Diagnostic(ErrorCode.ERR_BindToBogus, "set_Property").WithArguments("C.set_Property(ref int)").
WithLocation
(7, 11),
3971
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "Property").WithArguments("C.Property", "C.get_Property()", "C.set_Property(ref int)").
WithLocation
(9, 15),
3974
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "Property").WithArguments("C.Property", "C.get_Property()", "C.set_Property(ref int)").
WithLocation
(10, 11)
4048
Diagnostic(ErrorCode.ERR_BindToBogus, "get").WithArguments("C.Property.get").
WithLocation
(4, 36)
4095
Diagnostic(ErrorCode.ERR_ObjectRequired, "Property").WithArguments("C.Property").
WithLocation
(7, 9),
4098
Diagnostic(ErrorCode.ERR_ThisInStaticMeth, "this").
WithLocation
(8, 9),
4101
Diagnostic(ErrorCode.ERR_ObjectRequired, "Property").WithArguments("C.Property").
WithLocation
(15, 9),
4104
Diagnostic(ErrorCode.ERR_ThisInStaticMeth, "this").
WithLocation
(16, 9),
4107
Diagnostic(ErrorCode.ERR_BaseInStaticMeth, "base").
WithLocation
(17, 9)
4366
Diagnostic(ErrorCode.ERR_InitCannotBeReadonly, "init", isSuppressed: false).WithArguments("S.I").
WithLocation
(4, 34)
4389
Diagnostic(ErrorCode.ERR_InitCannotBeReadonly, "init", isSuppressed: false).WithArguments("S.I").
WithLocation
(4, 39)
4476
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "FirstName").WithArguments("Person.FirstName").
WithLocation
(7, 16)
4505
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "FirstName").WithArguments("Person.FirstName").
WithLocation
(10, 24)
4529
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "FirstName").WithArguments("Person.FirstName").
WithLocation
(7, 19)
4606
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "Property").WithArguments("ITest28.Property").
WithLocation
(9, 47)
4708
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "init").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 32)
4718
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "init").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 32)
4729
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "init").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 32)
Semantics\InteractiveUsingTests.cs (19)
139
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Int32").WithArguments("Int32").
WithLocation
(2, 11)
156
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Int32").WithArguments("Int32").
WithLocation
(2, 11)
176
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(3, 11)
248
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Path").WithArguments("Path").
WithLocation
(2, 14)
265
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Path").WithArguments("Path").
WithLocation
(2, 14)
280
Diagnostic(ErrorCode.WRN_DuplicateUsing, "System").WithArguments("System").
WithLocation
(1, 21));
370
Diagnostic(ErrorCode.ERR_NameNotInContext, "GetTempPath").WithArguments("GetTempPath").
WithLocation
(6, 1),
373
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "File").WithArguments("File").
WithLocation
(7, 12),
376
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "F").WithArguments("F").
WithLocation
(8, 12));
444
Diagnostic(ErrorCode.ERR_NameNotInContext, "GetCommandLineArgs").WithArguments("GetCommandLineArgs").
WithLocation
(11, 1),
447
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "StringBuilder").WithArguments("StringBuilder").
WithLocation
(12, 12),
450
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "P").WithArguments("P").
WithLocation
(13, 12),
456
Diagnostic(ErrorCode.ERR_NameNotInContext, "GetTempPath").WithArguments("GetTempPath").
WithLocation
(17, 1),
459
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "File").WithArguments("File").
WithLocation
(18, 12),
462
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "F").WithArguments("F").
WithLocation
(19, 12));
562
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "NInner").WithArguments("NInner").
WithLocation
(1, 7));
567
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "NInner").WithArguments("NInner").
WithLocation
(1, 12));
572
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "COuter").WithArguments("COuter").
WithLocation
(1, 14));
577
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "NInner").WithArguments("NInner").
WithLocation
(1, 14));
Semantics\InterpolationTests.cs (278)
115
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(5, 73)
134
Diagnostic(ErrorCode.ERR_NewlineInConst, "").
WithLocation
(5, 63),
137
Diagnostic(ErrorCode.ERR_UnterminatedStringLit, "}").
WithLocation
(6, 5),
140
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(6, 6),
143
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 6),
146
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 2));
164
Diagnostic(ErrorCode.ERR_UnterminatedStringLit, "}").
WithLocation
(6, 5),
167
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(6, 6),
170
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 6),
173
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 2));
191
Diagnostic(ErrorCode.ERR_UnclosedExpressionHole, " {").
WithLocation
(5, 60),
194
Diagnostic(ErrorCode.ERR_OpenEndedComment, "").
WithLocation
(5, 71),
197
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(7, 2),
200
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 2),
203
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 2),
206
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 2));
364
Diagnostic(ErrorCode.ERR_NewlineInConst, "").
WithLocation
(6, 31),
367
Diagnostic(ErrorCode.ERR_UnterminatedStringLit, "}").
WithLocation
(7, 5),
370
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(7, 6),
373
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 6),
376
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(8, 2));
392
Diagnostic(ErrorCode.ERR_UnterminatedStringLit, ";").
WithLocation
(5, 19),
395
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(5, 20),
398
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 20),
401
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 20));
419
Diagnostic(ErrorCode.ERR_EmptyFormatSpecifier, ":").
WithLocation
(6, 32)
438
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "{").WithArguments("{").
WithLocation
(6, 33)
457
Diagnostic(ErrorCode.ERR_TrailingWhitespaceInFormatSpecifier, ":d ").
WithLocation
(6, 32)
478
").
WithLocation
(6, 33)
497
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(6, 32)
516
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(6, 33)
613
Diagnostic(ErrorCode.ERR_EscapedCurly, @"\u007B").WithArguments("{").
WithLocation
(5, 21),
616
Diagnostic(ErrorCode.ERR_EscapedCurly, @"\u007D").WithArguments("}").
WithLocation
(6, 21)
651
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1E10").WithArguments("double", "int").
WithLocation
(5, 22),
654
Diagnostic(ErrorCode.ERR_ConstantExpected, "1E10").
WithLocation
(5, 22),
657
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)1E10").WithArguments("10000000000", "int").
WithLocation
(6, 22),
660
Diagnostic(ErrorCode.ERR_ConstantExpected, "(int)1E10").
WithLocation
(6, 22)
883
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"$""test""").WithArguments("System.Runtime.CompilerServices.FormattableStringFactory").
WithLocation
(5, 26)
942
Diagnostic(ErrorCode.WRN_AlignmentMagnitude, "32768").WithArguments("32768", "32767").
WithLocation
(5, 42),
945
Diagnostic(ErrorCode.WRN_AlignmentMagnitude, "-(32768)").WithArguments("-32768", "32767").
WithLocation
(6, 41),
948
Diagnostic(ErrorCode.WRN_AlignmentMagnitude, "int.MaxValue").WithArguments("2147483647", "32767").
WithLocation
(9, 41),
951
Diagnostic(ErrorCode.WRN_AlignmentMagnitude, "int.MinValue").WithArguments("-2147483648", "32767").
WithLocation
(10, 41)
971
Diagnostic(ErrorCode.ERR_BadSKunknown, "String").WithArguments("string", "type").
WithLocation
(5, 35)
992
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "x=>3").WithArguments("lambda expression", "object").
WithLocation
(5, 35),
995
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "Main").WithArguments("Main", "object").
WithLocation
(6, 43),
998
Diagnostic(ErrorCode.ERR_NoImplicitConv, "Program.Main(null)").WithArguments("void", "object").
WithLocation
(7, 35)
1004
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x=>3").
WithLocation
(5, 35),
1007
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "Program.Main").WithArguments("Main", "object").
WithLocation
(6, 35),
1010
Diagnostic(ErrorCode.ERR_NoImplicitConv, "Program.Main(null)").WithArguments("void", "object").
WithLocation
(7, 35)
1041
Diagnostic(ErrorCode.ERR_NoSuchMember, @"$""X = { 1 } """).WithArguments("string", "Format").
WithLocation
(15, 21)
1074
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""X = { 1 } """).WithArguments("bool", "string").
WithLocation
(17, 21)
1470
Diagnostic(ErrorCode.ERR_EscapedCurly, @"\").WithArguments("}").
WithLocation
(6, 40),
1473
Diagnostic(ErrorCode.ERR_IllegalEscape, @"\}").
WithLocation
(6, 40)
1512
Diagnostic(ErrorCode.ERR_EmptyFormatSpecifier, ":").
WithLocation
(6, 39),
1515
Diagnostic(ErrorCode.ERR_UnescapedCurly, "}").WithArguments("}").
WithLocation
(6, 41)
1554
Diagnostic(ErrorCode.ERR_CircConstValue, "a").WithArguments("C.a").
WithLocation
(3, 19),
1557
Diagnostic(ErrorCode.ERR_NotNullConstRefField, "a").WithArguments("C.a", "dynamic").
WithLocation
(3, 23),
1560
Diagnostic(ErrorCode.ERR_ConstantExpected, "a").
WithLocation
(4, 21)
1583
Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u1").
WithLocation
(8, 46),
1586
Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u2").
WithLocation
(8, 52)
1622
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""{""""}""").WithArguments("System.FormattableString", "System.IFormattable").
WithLocation
(23, 33)
2199
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "span").WithArguments("interpolated string handlers", "10.0").
WithLocation
(4, 22)
3259
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""{(object)1}""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler", "2").
WithLocation
(1, 5),
3262
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""{(object)1}""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler", "3").
WithLocation
(1, 5)
3289
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""{(object)1}""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler", "2").
WithLocation
(1, 5),
3292
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""{(object)1}""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler", "3").
WithLocation
(1, 5)
3319
Diagnostic(ErrorCode.ERR_BadArgRef, @"$""{(object)1}""").WithArguments("1", "ref").
WithLocation
(1, 5)
3351
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"$""{(object)1}""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler", "ToStringAndClear").
WithLocation
(1, 5)
3379
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, @"$""{(object)1}""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.DefaultInterpolatedStringHandler(int, int)", "Constructor is obsolete").
WithLocation
(1, 5)
3407
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "base").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "AppendLiteral is obsolete").
WithLocation
(1, 7)
3435
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "{(object)1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted<T>(T, int, string)", "AppendFormatted is obsolete").
WithLocation
(1, 11)
3535
Diagnostic(ErrorCode.ERR_BindToBogus, "{(object)1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted<T>(T, int, string)").
WithLocation
(1, 7)
3611
Diagnostic(ErrorCode.ERR_BindToBogus, @"$""{(object)1}""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.ToStringAndClear()").
WithLocation
(1, 5)
3637
Diagnostic(ErrorCode.ERR_BadTypeArgument, "{i}").WithArguments("int*").
WithLocation
(6, 11),
3640
Diagnostic(ErrorCode.ERR_BadTypeArgument, "{s}").WithArguments("S").
WithLocation
(6, 5 + expression.Length)
3719
Diagnostic(ErrorCode.ERR_BadArgType, "(null, default)").WithArguments("1", "(<null>, default)", "object").
WithLocation
(1, 29),
3722
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(null, default)").WithArguments("interpolated string handlers", "10.0").
WithLocation
(1, 29),
3725
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new()").WithArguments("string", "0").
WithLocation
(1, 19 + expression.Length)
4083
Diagnostic(ErrorCode.ERR_BadTypeArgument, "{s}").WithArguments("S").
WithLocation
(5, 21)
4185
Diagnostic(ErrorCode.ERR_BadArgType, "Text").WithArguments("1", "string", "CustomStruct").
WithLocation
(4, 21)
4210
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""""").WithArguments("string", "S").
WithLocation
(8, 25)
4251
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(S)$""""").WithArguments("string", "S").
WithLocation
(8, 25)
4354
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)").
WithLocation
(4, 21),
4357
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)").
WithLocation
(4, 15 + expression.Length)
4380
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Literal").WithArguments("CustomHandler", "AppendLiteral").
WithLocation
(4, 21),
4383
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "Literal").WithArguments("?.()").
WithLocation
(4, 21),
4386
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "{1}").WithArguments("CustomHandler", "AppendFormatted").
WithLocation
(4, 28),
4389
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "{1}").WithArguments("?.()").
WithLocation
(4, 28)
4406
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"$""Literal{1}""").WithArguments("System.Boolean").
WithLocation
(1, 19)
4463
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").
WithLocation
(4, 15 + expression1.Length),
4466
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").
WithLocation
(5, 14 + expression2.Length)
4501
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").
WithLocation
(4, 15 + expression1.Length),
4504
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").
WithLocation
(5, 14 + expression2.Length)
4986
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "Attr").WithArguments("c", "CustomHandler").
WithLocation
(4, 2)
5044
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(CustomHandler1)", "C.M(CustomHandler2)").
WithLocation
(2, 3)
5174
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M").WithArguments("C.M<T>(T)", "CustomHandler", "T", "string").
WithLocation
(2, 3)
5197
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(T, T)").
WithLocation
(2, 3),
5200
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(T, T)").
WithLocation
(3, 3)
5223
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(T, System.Func<T>)").
WithLocation
(3, 3)
5535
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, expression).WithArguments("interpolated string handlers", "10.0").
WithLocation
(3, 11),
5538
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"new S { Field = ""Field"" }").WithArguments("interpolated string handlers", "10.0").
WithLocation
(3, 14)
5793
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(System.Func<bool, string>)", "C.M(System.Func<bool, CustomHandler>)").
WithLocation
(3, 3)
5827
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(System.Action<string>)", "C.M(System.Action<CustomHandler>)").
WithLocation
(3, 3)
5979
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"(bool)(object)false ? default(CustomHandler) : " + expression).WithArguments("string", "CustomHandler").
WithLocation
(4, 19)
6065
Diagnostic(ErrorCode.ERR_AmbigQM, @"(bool)(object)false ? default(CustomHandler) : " + expression).WithArguments("CustomHandler", "string").
WithLocation
(4, 9)
6149
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(4, 29)
6384
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(4, 29)
6511
Diagnostic(ErrorCode.ERR_BadArgRef, expression).WithArguments("1", "ref").
WithLocation
(2, 3),
6514
Diagnostic(ErrorCode.ERR_RefLvalueExpected, expression).
WithLocation
(3, 7)
6791
Diagnostic(ErrorCode.ERR_TypeIsNotAnInterpolatedStringHandlerType, "InterpolatedStringHandlerArgumentAttribute").WithArguments("string").
WithLocation
(8, 27)
6849
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "string").
WithLocation
(8, 70)
6881
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 5),
6884
Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""NonExistant"")").WithArguments("NonExistant", "C.M(CustomHandler)").
WithLocation
(8, 27)
6915
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 5),
6918
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 5),
6921
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 5)
6956
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 8),
6959
Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""i"", ""NonExistant"")").WithArguments("NonExistant", "C.M(int, CustomHandler)").
WithLocation
(8, 34)
6990
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 8),
6993
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 8),
6996
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 8)
7031
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 8),
7034
Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""NonExistant1"", ""NonExistant2"")").WithArguments("NonExistant1", "C.M(int, CustomHandler)").
WithLocation
(8, 34),
7037
Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""NonExistant1"", ""NonExistant2"")").WithArguments("NonExistant2", "C.M(int, CustomHandler)").
WithLocation
(8, 34)
7068
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 8),
7071
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 8),
7074
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 8)
7109
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 8),
7112
Diagnostic(ErrorCode.ERR_CannotUseSelfAsInterpolatedStringHandlerArgument, @"InterpolatedStringHandlerArgumentAttribute(""c"")").
WithLocation
(8, 34)
7143
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 5),
7146
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 5),
7149
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 5)
7184
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 8),
7187
Diagnostic(ErrorCode.ERR_NullInvalidInterpolatedStringHandlerArgumentName, "InterpolatedStringHandlerArgumentAttribute(new string[] { null })").
WithLocation
(8, 34)
7217
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 8),
7220
Diagnostic(ErrorCode.ERR_NullInvalidInterpolatedStringHandlerArgumentName, "InterpolatedStringHandlerArgumentAttribute((string[])null)").
WithLocation
(8, 34)
7251
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 8),
7254
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 8),
7257
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 8)
7291
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 8),
7294
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 8),
7297
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 8)
7331
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 8),
7334
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 8),
7337
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 8)
7371
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 8),
7374
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 8),
7377
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 8)
7412
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 5),
7415
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.M(CustomHandler)").
WithLocation
(8, 27)
7448
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 5),
7451
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 5),
7454
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 5)
7489
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 11),
7492
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.C(CustomHandler)").
WithLocation
(8, 15)
7525
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 11),
7528
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 11),
7531
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 11)
7566
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler t", "CustomHandler").
WithLocation
(4, 20),
7569
Diagnostic(ErrorCode.ERR_TypeIsNotAnInterpolatedStringHandlerType, "InterpolatedStringHandlerArgumentAttribute").WithArguments("T").
WithLocation
(8, 27)
7606
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 20),
7609
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 20),
7612
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 20)
7664
Diagnostic(ErrorCode.WRN_ParameterOccursAfterInterpolatedStringHandlerParameter, @"InterpolatedStringHandlerArgumentAttribute(""i"")").WithArguments("i", "c").
WithLocation
(6, 27)
7676
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentLocatedAfterInterpolatedString, "1").WithArguments("i", "c").
WithLocation
(1, 7 + expression.Length),
7680
Diagnostic(ErrorCode.WRN_ParameterOccursAfterInterpolatedStringHandlerParameter, @"InterpolatedStringHandlerArgumentAttribute(""i"")").WithArguments("i", "c").
WithLocation
(6, 27)
7816
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentOptionalNotSpecified, expression).WithArguments("i", "c").
WithLocation
(4, 5),
7820
Diagnostic(ErrorCode.WRN_ParameterOccursAfterInterpolatedStringHandlerParameter, @"InterpolatedStringHandlerArgumentAttribute(""i"")").WithArguments("i", "c").
WithLocation
(8, 27)
7854
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentOptionalNotSpecified, expression).WithArguments("i", "c").
WithLocation
(4, 5),
7858
Diagnostic(ErrorCode.WRN_ParameterOccursAfterInterpolatedStringHandlerParameter, @"InterpolatedStringHandlerArgumentAttribute(""i"")").WithArguments("i", "c").
WithLocation
(8, 27)
7884
Diagnostic(ErrorCode.ERR_BadCtorArgCount, expression).WithArguments("CustomHandler", "3").
WithLocation
(1, 8),
7887
Diagnostic(ErrorCode.ERR_BadCtorArgCount, expression).WithArguments("CustomHandler", "4").
WithLocation
(1, 8)
7931
Diagnostic(ErrorCode.ERR_BadAccess, expression).WithArguments("CustomHandler.CustomHandler(int, int, int)").
WithLocation
(1, 8)
7943
Diagnostic(ErrorCode.ERR_BadCtorArgCount, expression).WithArguments("CustomHandler", "4").
WithLocation
(1, 8),
7946
Diagnostic(ErrorCode.ERR_BadCtorArgCount, expression).WithArguments("CustomHandler", "3").
WithLocation
(1, 8)
7953
Diagnostic(ErrorCode.ERR_BadAccess, expression).WithArguments("CustomHandler.CustomHandler(int, int, int)").
WithLocation
(1, 8)
8002
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("3", "ref").
WithLocation
(5, 9));
8013
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "out").
WithLocation
(5, 9));
8024
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("3", "ref").
WithLocation
(5, 9));
8035
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("3", "in").
WithLocation
(5, 8));
8046
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "out").
WithLocation
(5, 8));
8057
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "ref").
WithLocation
(5, 8));
8068
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("3", "out").
WithLocation
(5, 9));
8079
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "ref").
WithLocation
(5, 9));
8090
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "ref").
WithLocation
(5, 6));
8101
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "out").
WithLocation
(5, 6));
8134
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("3", "int", "string").
WithLocation
(1, 5)
8140
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("3", "int", "string").
WithLocation
(1, 5),
8143
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, string, out bool)").
WithLocation
(1, 8)
9063
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, expression).WithArguments("i", "CustomHandler.CustomHandler(int, int, int)").
WithLocation
(1, 12),
9066
Diagnostic(ErrorCode.ERR_BadArgExtraRef, expression).WithArguments("3", "out").
WithLocation
(1, 12)
9072
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, expression).WithArguments("i", "CustomHandler.CustomHandler(int, int, int, out bool)").
WithLocation
(1, 12),
9075
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, int, out bool)").
WithLocation
(1, 12)
9554
Diagnostic(ErrorCode.ERR_BadArgRef, "GetC(ref c)").WithArguments("3", "ref").
WithLocation
(6, 1),
9557
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, ref C, out bool)").
WithLocation
(6, 15)
9562
Diagnostic(ErrorCode.ERR_BadArgRef, "GetC(ref c)").WithArguments("3", "ref").
WithLocation
(6, 1)
9596
Diagnostic(ErrorCode.ERR_BadArgRef, "GetC()").WithArguments("3", "ref").
WithLocation
(5, 1)
10369
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new StructLogger(true, 1)").
WithLocation
(7, 9)
10719
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new ClassLogger(true, 1)").
WithLocation
(7, 9)
10763
Diagnostic(ErrorCode.ERR_BadArgRef, "s1").WithArguments("3", "ref").
WithLocation
(8, 1)
12782
Diagnostic(ErrorCode.ERR_InterpolatedStringsReferencingInstanceCannotBeInObjectInitializers, expression).
WithLocation
(5, 17)
13152
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsInterpolatedStringHandlerConversion, expression).
WithLocation
(5, 46)
13623
Diagnostic(ErrorCode.ERR_BadArgType, @"$""{1}"" + $""literal""").WithArguments("1", "string", "System.FormattableString").
WithLocation
(2, 3),
13626
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""{1}"" + $""literal""").WithArguments("string", "System.FormattableString").
WithLocation
(3, 30)
13645
Diagnostic(ErrorCode.ERR_BadArgType, @"$""{1}"" + $""literal""").WithArguments("1", "string", "System.IFormattable").
WithLocation
(2, 3),
13648
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""{1}"" + $""literal""").WithArguments("string", "System.IFormattable").
WithLocation
(3, 25)
13681
Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i").
WithLocation
(6, 5),
13684
Diagnostic(ErrorCode.ERR_UseDefViolation, "o").WithArguments("o").
WithLocation
(7, 5),
13687
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(8, 5)
13695
Diagnostic(ErrorCode.ERR_UseDefViolation, "o").WithArguments("o").
WithLocation
(7, 5),
13698
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(8, 5)
13726
Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i").
WithLocation
(5, 5)
13759
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerCreationCannotUseDynamic, expression).WithArguments("CustomHandler").
WithLocation
(4, 6)
13787
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerCreationCannotUseDynamic, expression).WithArguments("CustomHandler").
WithLocation
(4, 6)
14253
Diagnostic(ErrorCode.ERR_EscapeVariable, "s").WithArguments("s").
WithLocation
(17, 19)
14322
Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").
WithLocation
(17, 9)
14362
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, expression).
WithLocation
(17, 20)
14409
Diagnostic(ErrorCode.ERR_CallArgMixing, @"M2(ref s1, " + expression + @")").WithArguments("CustomHandler.M2(ref S1, ref CustomHandler)", "handler").
WithLocation
(17, 9),
14412
Diagnostic(ErrorCode.ERR_EscapeVariable, "s").WithArguments("s").
WithLocation
(17, 23));
14418
Diagnostic(ErrorCode.ERR_CallArgMixing, @"M2(ref s1, " + expression + @")").WithArguments("CustomHandler.M2(ref S1, ref CustomHandler)", "handler").
WithLocation
(17, 9),
14421
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "s1").
WithLocation
(17, 16),
14424
Diagnostic(ErrorCode.ERR_EscapeCall, expression).WithArguments("CustomHandler.CustomHandler(int, int, ref S1)", "s1").
WithLocation
(17, 20),
14427
Diagnostic(ErrorCode.ERR_EscapeVariable, "s").WithArguments("s").
WithLocation
(17, 23));
14572
Diagnostic(ErrorCode.ERR_EscapeVariable, "c").WithArguments("c").
WithLocation
(16, 16)
14610
Diagnostic(ErrorCode.ERR_CallArgMixing, @"M2(ref s1, $""{s2}"")").WithArguments("CustomHandler.M2(ref S1, CustomHandler)", "handler").
WithLocation
(15, 9),
14613
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(15, 23)
14620
Diagnostic(ErrorCode.ERR_EscapeVariable, "this").WithArguments("out CustomHandler this").
WithLocation
(10, 100),
14623
Diagnostic(ErrorCode.ERR_CallArgMixing, @"M2(ref s1, $""{s2}"")").WithArguments("CustomHandler.M2(ref S1, CustomHandler)", "handler").
WithLocation
(15, 9),
14626
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "s1").
WithLocation
(15, 16),
14629
Diagnostic(ErrorCode.ERR_EscapeCall, @"$""{s2}""").WithArguments("CustomHandler.CustomHandler(int, int, ref S1)", "s1").
WithLocation
(15, 20),
14632
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(15, 23)
14668
Diagnostic(ErrorCode.ERR_EscapeVariable, "this").WithArguments("out CustomHandler this").
WithLocation
(5, 97),
14671
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "s").
WithLocation
(17, 15),
14674
Diagnostic(ErrorCode.ERR_EscapeCall, @"$""{1}""").WithArguments("CustomHandler.CustomHandler(int, int, ref S)", "s").
WithLocation
(17, 18));
14713
Diagnostic(ErrorCode.ERR_CallArgMixing, "h2.AppendFormatted(s)").WithArguments("CustomHandler.AppendFormatted(System.Span<char>)", "s").
WithLocation
(20, 9),
14716
Diagnostic(ErrorCode.ERR_EscapeVariable, "s").WithArguments("s").
WithLocation
(20, 28));
14790
Diagnostic(ErrorCode.ERR_EscapeVariable, "h1").WithArguments("h1").
WithLocation
(15, 16),
14793
Diagnostic(ErrorCode.ERR_CallArgMixing, "h2.AppendFormatted(s)").WithArguments("CustomHandler.AppendFormatted(System.Span<char>)", "s").
WithLocation
(21, 9),
14796
Diagnostic(ErrorCode.ERR_EscapeVariable, "s").WithArguments("s").
WithLocation
(21, 28));
14841
Diagnostic(ErrorCode.ERR_EscapeVariable, "h3").WithArguments("h3").
WithLocation
(29, 16));
14955
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(13, 16));
14988
Diagnostic(ErrorCode.ERR_EscapeVariable, "this").WithArguments("out CustomHandler this").
WithLocation
(5, 97),
14991
Diagnostic(ErrorCode.ERR_BadArgRef, "r").WithArguments("3", "ref").
WithLocation
(18, 13));
15024
Diagnostic(ErrorCode.ERR_EscapeVariable, "this").WithArguments("out CustomHandler this").
WithLocation
(5, 97),
15027
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(11, 24),
15030
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "r").
WithLocation
(18, 19),
15033
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "r").
WithLocation
(18, 19),
15036
Diagnostic(ErrorCode.ERR_EscapeCall, @"$""{1}""").WithArguments("CustomHandler.CustomHandler(int, int, ref R)", "r").
WithLocation
(18, 22),
15039
Diagnostic(ErrorCode.ERR_EscapeCall, @"$""{1}""").WithArguments("CustomHandler.CustomHandler(int, int, ref R)", "r").
WithLocation
(18, 22));
15072
Diagnostic(ErrorCode.ERR_EscapeVariable, "this").WithArguments("out CustomHandler this").
WithLocation
(5, 97),
15075
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "x").
WithLocation
(18, 25),
15078
Diagnostic(ErrorCode.ERR_EscapeCall, @"$""{1}""").WithArguments("CustomHandler.CustomHandler(int, int, ref R)", "r").
WithLocation
(18, 28));
15329
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 36)
15350
Diagnostic(ErrorCode.ERR_UseDefViolation, "o2").WithArguments("o2").
WithLocation
(7, 1),
15353
Diagnostic(ErrorCode.ERR_UseDefViolation, "o3").WithArguments("o3").
WithLocation
(8, 1)
16352
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 3),
16355
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgument("""")").WithArguments("M(CustomHandler)").
WithLocation
(6, 10 + mod.Length)
16416
Diagnostic(ErrorCode.WRN_InterpolatedStringHandlerArgumentAttributeIgnoredOnLambdaParameters, @"InterpolatedStringHandlerArgument("""")").
WithLocation
(4, 12 + mod.Length),
16419
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgument("""")").WithArguments("lambda expression").
WithLocation
(4, 12 + mod.Length)
16446
Diagnostic(ErrorCode.WRN_InterpolatedStringHandlerArgumentAttributeIgnoredOnLambdaParameters, @"InterpolatedStringHandlerArgument(""i"")").
WithLocation
(5, 19 + mod.Length)
16489
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(6, 3),
16492
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgument("""")").WithArguments("M.Invoke(CustomHandler)").
WithLocation
(8, 18)
16521
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 3),
16524
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "2").
WithLocation
(4, 3),
16527
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""").WithArguments("CustomHandler", "3").
WithLocation
(4, 3)
16789
Diagnostic(ErrorCode.ERR_BadInstanceArgType, @"$""Test""").WithArguments("string", "M", "StringExt.M(CustomHandler)", "CustomHandler").
WithLocation
(2, 1)
16823
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, @"$""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(5, 5),
16826
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgument("""")").WithArguments("S1Ext.M(S1, CustomHandler)").
WithLocation
(15, 38)
16992
Diagnostic(ErrorCode.ERR_BadArgRef, "s").WithArguments("3", "ref").
WithLocation
(5, 1)
17026
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "s").WithArguments("3", "ref").
WithLocation
(5, 1)
17049
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, @"$""""").WithArguments("s", "CustomHandler.CustomHandler(int, int, string)").
WithLocation
(4, 19),
17052
Diagnostic(ErrorCode.ERR_BadArgExtraRef, @"$""""").WithArguments("3", "out").
WithLocation
(4, 19)
17101
Diagnostic(ErrorCode.ERR_InterpolatedStringsReferencingInstanceCannotBeInObjectInitializers, expression).
WithLocation
(4, 15)
17156
Diagnostic(ErrorCode.ERR_InterpolatedStringsReferencingInstanceCannotBeInObjectInitializers, expression).
WithLocation
(5, 22)
17231
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, @"$""hello""").WithArguments("interpolated strings", "6").
WithLocation
(6, 16));
17250
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, @"$""hello + {other}""").WithArguments("interpolated strings", "6").
WithLocation
(7, 16));
17264
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(1, 5),
17267
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(2, 29)
Semantics\IteratorTests.cs (9)
82
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1.1").WithArguments("double", "int").
WithLocation
(7, 22)
105
Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").
WithLocation
(8, 44)
315
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 18),
318
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 18),
321
Diagnostic(ErrorCode.ERR_NoSuchMember, "").WithArguments("int", "").
WithLocation
(1, 18),
324
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(1, 1));
347
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(1, 1));
443
Diagnostic(ErrorCode.ERR_EmptyYield, "return").
WithLocation
(7, 15)
512
Diagnostic(ErrorCode.ERR_BadArgType, "kvp").WithArguments("1", "System.Collections.Generic.KeyValuePair<TKey, TValue>", "TKey").
WithLocation
(8, 53)
Semantics\LambdaDiscardParametersTests.cs (26)
49
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "_").WithArguments("lambda discard parameters", "9.0").
WithLocation
(6, 51),
52
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "_").WithArguments("lambda discard parameters", "9.0").
WithLocation
(10, 13),
55
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "_").WithArguments("lambda discard parameters", "9.0").
WithLocation
(13, 13),
58
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "_").WithArguments("lambda discard parameters", "9.0").
WithLocation
(16, 13),
61
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "_").WithArguments("lambda discard parameters", "9.0").
WithLocation
(17, 13),
64
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "_").WithArguments("lambda discard parameters", "9.0").
WithLocation
(20, 13)
90
Diagnostic(ErrorCode.ERR_DuplicateParamName, "_").WithArguments("_").
WithLocation
(6, 33)
106
Diagnostic(ErrorCode.ERR_DuplicateParamName, "_").WithArguments("_").
WithLocation
(4, 35)
163
Diagnostic(ErrorCode.ERR_ParamUnassigned, "return 2;").WithArguments("_").
WithLocation
(9, 17)
183
Diagnostic(ErrorCode.ERR_DuplicateParamName, "_").WithArguments("_").
WithLocation
(7, 31)
202
Diagnostic(ErrorCode.ERR_DuplicateParamName, @"\u005f").WithArguments("_").
WithLocation
(6, 55),
205
Diagnostic(ErrorCode.ERR_NameNotInContext, @"\u005f").WithArguments("_").
WithLocation
(7, 9)
224
Diagnostic(ErrorCode.ERR_DuplicateParamName, "@_").WithArguments("_").
WithLocation
(6, 51),
227
Diagnostic(ErrorCode.ERR_NameNotInContext, "@_").WithArguments("_").
WithLocation
(7, 9)
249
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "_").WithArguments("_").
WithLocation
(8, 17)
271
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "_").WithArguments("_").
WithLocation
(7, 47),
274
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "_").WithArguments("lambda discard parameters", "9.0").
WithLocation
(8, 50)
281
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "_").WithArguments("lambda discard parameters", "9.0").
WithLocation
(8, 50)
346
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[System.Obsolete]").
WithLocation
(6, 51),
349
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(6, 81));
372
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "[A]").WithArguments("lambda attributes", "10.0").
WithLocation
(8, 14),
375
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "[A]").WithArguments("lambda attributes", "10.0").
WithLocation
(9, 24));
413
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(6, 52)
508
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "_").WithArguments("_").
WithLocation
(8, 18)
542
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(6, 66)
604
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(15, 13)
Semantics\LambdaTests.cs (485)
74
Diagnostic(ErrorCode.ERR_MissingArraySize, "[]").
WithLocation
(7, 52)
160
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "()=>1").WithArguments("lambda expression", "int").
WithLocation
(16, 18),
163
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "delegate { return 1; }").WithArguments("anonymous method", "int").
WithLocation
(17, 18),
166
Diagnostic(ErrorCode.ERR_BadDelArgCount, "x3=>1").WithArguments("System.Func<int>", "1").
WithLocation
(18, 24),
169
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "Itn23").WithArguments("Itn23", "System").
WithLocation
(19, 37),
172
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "Duobel").WithArguments("Duobel", "System").
WithLocation
(20, 35),
175
Diagnostic(ErrorCode.ERR_BadDelArgCount, "(System.Duobel x5)=>1").WithArguments("System.Func<double>", "1").
WithLocation
(20, 27),
178
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(double x6, ref int y6, ref int z6)=>1").WithArguments("lambda expression", "C.D1").
WithLocation
(21, 17),
181
Diagnostic(ErrorCode.ERR_BadParamType, "x6").WithArguments("1", "", "double", "ref ", "int").
WithLocation
(21, 25),
184
Diagnostic(ErrorCode.ERR_BadParamRef, "y6").WithArguments("2", "out").
WithLocation
(21, 37),
187
Diagnostic(ErrorCode.ERR_BadParamExtraRef, "z6").WithArguments("3", "ref").
WithLocation
(21, 49),
190
Diagnostic(ErrorCode.ERR_CantConvAnonMethNoParams, "delegate {}").WithArguments("C.D1").
WithLocation
(32, 17),
193
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Frob").WithArguments("Frob").
WithLocation
(34, 9),
196
Diagnostic(ErrorCode.ERR_BadParamRef, "x9").WithArguments("1", "out").
WithLocation
(36, 17),
199
Diagnostic(ErrorCode.ERR_BadParamRef, "x10").WithArguments("1", "ref").
WithLocation
(38, 19),
202
Diagnostic(ErrorCode.ERR_BadParamRef, "y10").WithArguments("2", "out").
WithLocation
(38, 23),
205
Diagnostic(ErrorCode.ERR_RetNoObjectRequiredLambda, "return").
WithLocation
(52, 28),
208
Diagnostic(ErrorCode.ERR_IllegalStatement, "1").
WithLocation
(54, 26),
211
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(56, 42),
214
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "=>").WithArguments("lambda expression", "System.Func<int>").
WithLocation
(56, 27),
217
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "123.456").WithArguments("double", "int").
WithLocation
(58, 29),
220
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "123.456").WithArguments("lambda expression").
WithLocation
(58, 29),
223
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1m").WithArguments("decimal", "double").
WithLocation
(62, 51),
226
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "1m").WithArguments("lambda expression").
WithLocation
(62, 51),
229
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(62, 44),
232
Diagnostic(ErrorCode.ERR_IllegalParams, "params").
WithLocation
(66, 39),
235
Diagnostic(ErrorCode.WRN_ParamsArrayInLambdaOnly, "s").WithArguments("1").
WithLocation
(67, 49),
238
Diagnostic(ErrorCode.WRN_ParamsArrayInLambdaOnly, "s").WithArguments("2").
WithLocation
(68, 61),
241
Diagnostic(ErrorCode.ERR_BadDelArgCount, "(int x)=>{}").WithArguments("System.Action", "1").
WithLocation
(70, 34),
244
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "Expression<int>").WithArguments("", "System.Linq.Expressions.Expression<T>", "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Linq.Expressions.Expression<TDelegate>").
WithLocation
(72, 9),
247
Diagnostic(ErrorCode.ERR_ExpressionTreeMustHaveDelegate, "()=>1").WithArguments("int").
WithLocation
(72, 31));
287
Diagnostic(ErrorCode.ERR_AmbigCall, "Goo").WithArguments("C.Goo(System.Func<System.IComparable<I>>)", "C.Goo(System.Func<I>)").
WithLocation
(12, 9));
311
Diagnostic(ErrorCode.ERR_BadDelArgCount, "() => 1").WithArguments("System.Func<int, int>", "0").
WithLocation
(9, 41),
314
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(double d) => 1").WithArguments("lambda expression", "System.Linq.Expressions.Expression<System.Func<int, int>>").
WithLocation
(10, 41),
317
Diagnostic(ErrorCode.ERR_BadParamType, "d").WithArguments("1", "", "double", "", "int").
WithLocation
(10, 49));
576
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "x").WithArguments("System.GC").
WithLocation
(6, 15));
597
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "StaticClass").WithArguments("StaticClass").
WithLocation
(7, 20));
616
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped int n").
WithLocation
(5, 20));
637
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "ref TypedReference r").WithArguments("System.TypedReference").
WithLocation
(6, 20));
661
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "message").WithArguments("message").
WithLocation
(8, 22),
664
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[ObsoleteAttribute(message)]").
WithLocation
(9, 35));
687
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""""").WithArguments("string", "int").
WithLocation
(7, 39),
690
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, @"""""").WithArguments("anonymous method").
WithLocation
(7, 39),
693
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "delegate").WithArguments("anonymous method", "System.Func<int>").
WithLocation
(8, 21),
696
Diagnostic(ErrorCode.ERR_IntDivByZero, "1 / 0").
WithLocation
(9, 32),
699
Diagnostic(ErrorCode.ERR_IllegalStatement, "1 / 0").
WithLocation
(9, 32),
702
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "delegate").WithArguments("anonymous method", "System.Func<int>").
WithLocation
(9, 21)
724
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => x").WithArguments("lambda expression", "string").
WithLocation
(5, 37),
727
Diagnostic(ErrorCode.ERR_NameNotInContext, "nulF").WithArguments("nulF").
WithLocation
(8, 55));
1133
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IVisualStudioIntegrationService").WithArguments("IVisualStudioIntegrationService").
WithLocation
(6, 22),
1136
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "DocumentId").WithArguments("DocumentId").
WithLocation
(9, 9),
1139
Diagnostic(ErrorCode.ERR_NoSuchMember, "Run").WithArguments("System.Threading.Tasks.Task", "Run").
WithLocation
(10, 25),
1142
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await Task.Run(() => this.integrationService.TryGetDocumentId(null, out documentId), token).ConfigureAwait(false)").
WithLocation
(10, 14),
1145
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "integrationService").WithArguments("TestDataPointBase.integrationService", "null").
WithLocation
(6, 54)
1170
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "(a, b) => c.Add").WithArguments("lambda expression", "System.Collections.Generic.IList<C>").
WithLocation
(9, 15));
1338
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "i").
WithLocation
(11, 22),
1341
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").
WithLocation
(12, 20),
1344
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").
WithLocation
(13, 23));
1368
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "i").
WithLocation
(9, 33),
1371
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").
WithLocation
(10, 27),
1374
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").
WithLocation
(11, 30));
1413
Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").
WithLocation
(18, 13),
1416
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").
WithLocation
(23, 17));
1459
Diagnostic(ErrorCode.ERR_IllegalStatement, "(new object())").
WithLocation
(6, 41));
1480
Diagnostic(ErrorCode.ERR_CantReturnVoid, "System.Console.Beep()").
WithLocation
(8, 27)
1502
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(8, 23),
1505
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(8, 23)
1537
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(8, 42),
1540
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(8, 42)
1574
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(8, 20)
1606
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(8, 49)
1639
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "y = y").
WithLocation
(9, 45),
1642
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "y = y").
WithLocation
(9, 45));
1668
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "default(Struct1)").WithArguments("Struct1").
WithLocation
(8, 40));
1694
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "default").WithArguments("Struct1").
WithLocation
(8, 40));
1720
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "default").WithArguments("Struct1").
WithLocation
(8, 50));
1746
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "new Struct1()").WithArguments("Struct1").
WithLocation
(8, 40));
1773
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "s").WithArguments("Struct1").
WithLocation
(9, 25));
1819
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "default").WithArguments("TypedReference").
WithLocation
(8, 30));
1844
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "tr").WithArguments("TypedReference").
WithLocation
(9, 32));
1941
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(7, 47),
1944
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("X").
WithLocation
(7, 32)
1999
Diagnostic(ErrorCode.ERR_BadNewExpr, "}").
WithLocation
(2, 58),
2002
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(2, 58),
2005
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unbound1").WithArguments("Unbound1").
WithLocation
(2, 49)
2019
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(2, 62),
2022
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unbound1").WithArguments("Unbound1").
WithLocation
(2, 49)
2036
Diagnostic(ErrorCode.ERR_SyntaxError, "Unbound2").WithArguments(",").
WithLocation
(2, 61),
2039
Diagnostic(ErrorCode.ERR_NameNotInContext, "Unbound2").WithArguments("Unbound2").
WithLocation
(2, 52),
2042
Diagnostic(ErrorCode.ERR_NameNotInContext, "Unbound2").WithArguments("Unbound2").
WithLocation
(2, 61),
2045
Diagnostic(ErrorCode.ERR_NameNotInContext, "Unbound1").WithArguments("Unbound1").
WithLocation
(2, 42)
2059
Diagnostic(ErrorCode.ERR_NameNotInContext, "Unbound2").WithArguments("Unbound2").
WithLocation
(2, 52),
2062
Diagnostic(ErrorCode.ERR_NameNotInContext, "Unbound1").WithArguments("Unbound1").
WithLocation
(2, 42)
2076
Diagnostic(ErrorCode.ERR_NameNotInContext, "Unbound2").WithArguments("Unbound2").
WithLocation
(2, 17),
2079
Diagnostic(ErrorCode.ERR_NameNotInContext, "Unbound1").WithArguments("Unbound1").
WithLocation
(2, 38)
2109
Diagnostic(ErrorCode.ERR_IdentifierExpected, "}").
WithLocation
(6, 57),
2112
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(6, 57)
2158
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(9, 55)
2204
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(9, 55)
2250
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(8, 55)
2296
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(8, 55)
2814
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(10, 32)
2837
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(8, 13),
2840
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "x2 =>").WithArguments("lambda expression").
WithLocation
(6, 58)
2863
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(8, 13),
2866
Diagnostic(ErrorCode.ERR_CantConvAsyncAnonFuncReturns, "x2 =>").WithArguments("lambda expression", "System.Threading.Tasks.Task<System.Action<bool>>").
WithLocation
(6, 93),
2869
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(6, 90)
2892
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(8, 13),
2895
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "delegate(bool x2)").WithArguments("lambda expression").
WithLocation
(6, 58)
2918
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(8, 13),
2921
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "delegate").WithArguments("lambda expression").
WithLocation
(6, 52)
3078
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(9, 36),
3081
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(10, 29),
3084
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(11, 37),
3087
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(13, 34),
3090
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(14, 38));
3122
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(9, 36),
3125
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(10, 29),
3128
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(11, 37),
3131
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(13, 38));
3160
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "x").WithArguments("x").
WithLocation
(9, 36),
3163
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "x").WithArguments("x").
WithLocation
(10, 29),
3166
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "x").WithArguments("x").
WithLocation
(11, 37),
3169
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "x").WithArguments("x").
WithLocation
(12, 34),
3172
Diagnostic(ErrorCode.ERR_QueryRangeVariableSameAsTypeParam, "x").WithArguments("x").
WithLocation
(13, 38));
3201
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(9, 59),
3204
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(10, 52),
3207
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(11, 60),
3210
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(13, 61));
3239
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(10, 41),
3242
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(11, 45),
3245
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(12, 39),
3248
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(13, 43));
3279
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(9, 41),
3282
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(10, 45),
3285
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(12, 43));
3313
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "x").WithArguments("x").
WithLocation
(9, 41),
3316
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "x").WithArguments("x").
WithLocation
(10, 45),
3319
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "x").WithArguments("x").
WithLocation
(11, 39),
3322
Diagnostic(ErrorCode.ERR_QueryRangeVariableSameAsTypeParam, "x").WithArguments("x").
WithLocation
(12, 43));
3355
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(10, 40),
3358
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(11, 41),
3361
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "T").WithArguments("T").
WithLocation
(15, 40),
3364
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "T").WithArguments("T").
WithLocation
(16, 33));
3388
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "_").WithArguments("_").
WithLocation
(8, 44));
3412
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "_").WithArguments("lambda discard parameters", "9.0").
WithLocation
(8, 37));
3436
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(8, 55),
3439
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(8, 60));
3463
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(8, 87),
3466
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y").WithArguments("y").
WithLocation
(8, 94),
3469
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "_").WithArguments("_").
WithLocation
(8, 97));
3501
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(11, 37),
3504
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "T").WithArguments("T").
WithLocation
(15, 37));
3540
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(11, 35),
3543
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "T").WithArguments("T").
WithLocation
(13, 41),
3546
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(17, 21),
3549
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "T").WithArguments("T").
WithLocation
(18, 39));
3677
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "[A, B]").WithArguments("lambda attributes", "10.0").
WithLocation
(9, 13),
3680
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "[A]").WithArguments("lambda attributes", "10.0").
WithLocation
(10, 14),
3683
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "[B]").WithArguments("lambda attributes", "10.0").
WithLocation
(10, 21),
3686
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "[A]").WithArguments("lambda attributes", "10.0").
WithLocation
(11, 24),
3689
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "[B]").WithArguments("lambda attributes", "10.0").
WithLocation
(11, 27));
3715
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(8, 56),
3718
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[B]").
WithLocation
(8, 59),
3721
Diagnostic(ErrorCode.ERR_AttributesRequireParenthesizedLambdaExpression, "[A]").
WithLocation
(9, 34),
3724
Diagnostic(ErrorCode.ERR_AttributesRequireParenthesizedLambdaExpression, "[B]").
WithLocation
(9, 37)
3778
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A1").WithArguments("A1Attribute").
WithLocation
(5, 29),
3781
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A1").WithArguments("A1").
WithLocation
(5, 29),
3784
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A2").WithArguments("A2Attribute").
WithLocation
(6, 43),
3787
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A2").WithArguments("A2").
WithLocation
(6, 43),
3790
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A3").WithArguments("A3Attribute").
WithLocation
(7, 38),
3793
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A3").WithArguments("A3").
WithLocation
(7, 38));
3813
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "A").WithArguments("a", "System.Action").
WithLocation
(6, 2));
3861
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Prop").WithArguments("Prop", "property, indexer").
WithLocation
(23, 14),
3864
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Return").WithArguments("Return", "return").
WithLocation
(24, 14),
3867
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Prop").WithArguments("Prop", "property, indexer").
WithLocation
(26, 22),
3870
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Method").WithArguments("Method", "method").
WithLocation
(28, 22),
3873
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "TypeParam").WithArguments("TypeParam", "type parameter").
WithLocation
(31, 14));
3917
Diagnostic(ErrorCode.ERR_AttributesRequireParenthesizedLambdaExpression, "[D]").
WithLocation
(13, 34));
4011
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(15, 14),
4014
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(16, 14),
4017
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(17, 14),
4020
Diagnostic(ErrorCode.ERR_ExplicitExtension, "Extension").
WithLocation
(18, 14),
4023
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NullableContext(0)").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(19, 14));
4046
Diagnostic(ErrorCode.ERR_SecurityCriticalOrSecuritySafeCriticalOnAsync, "SecurityCritical").WithArguments("SecurityCritical").
WithLocation
(8, 14),
4049
Diagnostic(ErrorCode.ERR_SecurityCriticalOrSecuritySafeCriticalOnAsync, "SecuritySafeCriticalAttribute").WithArguments("SecuritySafeCriticalAttribute").
WithLocation
(9, 14),
4052
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(10, 22));
4102
Diagnostic(ErrorCode.ERR_ConditionalOnSpecialMethod, @"Conditional(""DEBUG"")").WithArguments("lambda expression").
WithLocation
(10, 17));
4137
Diagnostic(ErrorCode.ERR_DllImportOnInvalidMethod, "DllImport").
WithLocation
(8, 22));
4226
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: MaybeNull] () =>").WithArguments("lambda expression", "System.Func<object>").
WithLocation
(8, 27),
4229
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: NotNull] () =>").WithArguments("lambda expression", "System.Func<object?>").
WithLocation
(9, 28),
4232
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(9, 52)
4273
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: MaybeNull] () =>").WithArguments("lambda expression", "System.Func<object>").
WithLocation
(13, 27),
4276
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: MaybeNull] () =>").WithArguments("lambda expression", "D1").
WithLocation
(14, 17),
4279
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: MaybeNull] () =>").WithArguments("lambda expression", "D3").
WithLocation
(16, 17),
4282
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(18, 51),
4285
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(19, 41),
4288
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: NotNull] () =>").WithArguments("lambda expression", "D2").
WithLocation
(20, 17),
4291
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(20, 41),
4294
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(21, 41),
4297
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: NotNull] () =>").WithArguments("lambda expression", "System.Func<object?>").
WithLocation
(23, 28),
4300
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(23, 52),
4303
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(24, 50),
4306
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: NotNull] object? () =>").WithArguments("lambda expression", "D2").
WithLocation
(25, 18),
4309
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(25, 50),
4312
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(26, 50)
4347
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(17, 42),
4350
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(19, 53),
4353
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(20, 51)
4394
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: MaybeNull] () =>").WithArguments("lambda expression", "System.Func<object>").
WithLocation
(13, 30),
4397
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: MaybeNull] () =>").WithArguments("lambda expression", "D1").
WithLocation
(14, 20),
4400
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: MaybeNull] () =>").WithArguments("lambda expression", "D3").
WithLocation
(16, 20),
4403
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(18, 54),
4406
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(19, 44),
4409
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: NotNull] () =>").WithArguments("lambda expression", "D2").
WithLocation
(20, 20),
4412
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(20, 44),
4415
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(21, 44),
4418
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: NotNull] () =>").WithArguments("lambda expression", "System.Func<object?>").
WithLocation
(23, 31),
4421
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(23, 55),
4424
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(24, 52),
4427
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: NotNull] object? () =>").WithArguments("lambda expression", "D2").
WithLocation
(25, 20),
4430
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(25, 52),
4433
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(26, 52)
4474
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "System.Action<object>").
WithLocation
(13, 29),
4477
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "D1").
WithLocation
(14, 17),
4480
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "D3").
WithLocation
(16, 17),
4483
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([DisallowNull] object o) =>").WithArguments("o", "lambda expression", "D2").
WithLocation
(20, 17),
4486
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([DisallowNull] object? o) =>").WithArguments("o", "lambda expression", "System.Action<object?>").
WithLocation
(23, 30),
4489
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([DisallowNull] object? o) =>").WithArguments("o", "lambda expression", "D2").
WithLocation
(25, 18)
4521
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(14, 39),
4524
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(o) =>").WithArguments("o", "lambda expression", "D2").
WithLocation
(16, 17),
4527
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(o) =>").WithArguments("o", "lambda expression", "D3").
WithLocation
(17, 17),
4530
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(17, 26)
4570
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "bool ([MaybeNullWhen(false)] out object o) =>").WithArguments("o", "lambda expression", "D1").
WithLocation
(13, 17),
4573
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "bool ([MaybeNull] out object o) =>").WithArguments("o", "lambda expression", "D1").
WithLocation
(14, 17),
4576
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "bool (out object? o) =>").WithArguments("o", "lambda expression", "D1").
WithLocation
(15, 17),
4579
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "bool ([MaybeNullWhen(true)] out object o) =>").WithArguments("o", "lambda expression", "D2").
WithLocation
(17, 17),
4582
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "bool ([MaybeNull] out object o) =>").WithArguments("o", "lambda expression", "D2").
WithLocation
(19, 17),
4585
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "bool (out object? o) =>").WithArguments("o", "lambda expression", "D2").
WithLocation
(20, 17),
4588
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "bool ([MaybeNullWhen(true)] out object o) =>").WithArguments("o", "lambda expression", "D3").
WithLocation
(22, 17),
4591
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "bool ([MaybeNull] out object o) =>").WithArguments("o", "lambda expression", "D3").
WithLocation
(24, 18),
4594
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "bool (out object? o) =>").WithArguments("o", "lambda expression", "D3").
WithLocation
(25, 18)
4627
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(14, 83),
4630
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, @"[return: NotNullIfNotNull(""o"")] (object? o) =>").WithArguments("lambda expression", "D3").
WithLocation
(17, 17),
4633
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(18, 64)
4674
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "System.Action<object>").
WithLocation
(13, 32),
4677
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "D1").
WithLocation
(14, 20),
4680
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([AllowNull] object o) =>").WithArguments("o", "lambda expression", "D3").
WithLocation
(16, 20),
4683
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([DisallowNull] object o) =>").WithArguments("o", "lambda expression", "D2").
WithLocation
(20, 20),
4686
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([DisallowNull] object? o) =>").WithArguments("o", "lambda expression", "System.Action<object?>").
WithLocation
(23, 33),
4689
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([DisallowNull] object? o) =>").WithArguments("o", "lambda expression", "D2").
WithLocation
(25, 20)
4713
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([AllowNull] x) =>").WithArguments("x", "lambda expression", "System.Action<object>").
WithLocation
(8, 29),
4716
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 50),
4719
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([DisallowNull] x) =>").WithArguments("x", "lambda expression", "System.Action<object?>").
WithLocation
(9, 30)
4741
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field").WithArguments("C.field", "null").
WithLocation
(4, 13),
4744
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(5, 26));
4766
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").
WithLocation
(9, 43)
4802
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DoesNotReturn").WithArguments("DoesNotReturn", "method").
WithLocation
(6, 10),
4805
Diagnostic(ErrorCode.WRN_DoesNotReturnMismatch, "DoesNotReturnDelegate").WithArguments("void DoesNotReturnDelegate.Invoke()").
WithLocation
(6, 39),
4808
Diagnostic(ErrorCode.WRN_DoesNotReturnMismatch, "DoesNotReturnDelegate").WithArguments("void DoesNotReturnDelegate.Invoke()").
WithLocation
(6, 39),
4811
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").
WithLocation
(11, 58)
4832
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(7, 21));
4852
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "i").WithArguments("1", "2", "<missing>").
WithLocation
(7, 68));
4977
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([NotNullWhen(true)] out object? obj) =>").WithArguments("obj", "lambda expression", "D").
WithLocation
(10, 15),
4980
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return true;").WithArguments("obj", "true").
WithLocation
(13, 17)
5009
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "T").WithArguments("lambda return type", "10.0").
WithLocation
(6, 22),
5012
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "T").WithArguments("lambda return type", "10.0").
WithLocation
(7, 25),
5015
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "T").WithArguments("lambda return type", "10.0").
WithLocation
(8, 25));
5042
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "T () => default").WithArguments("lambda expression", "System.Func<U>").
WithLocation
(9, 14),
5045
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "U () => default").WithArguments("lambda expression", "System.Func<T>").
WithLocation
(10, 14));
5069
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "T () => default").WithArguments("lambda expression", "System.Func<U>").
WithLocation
(9, 14),
5072
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "U () => default").WithArguments("lambda expression", "System.Func<T>").
WithLocation
(10, 14));
5097
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "T () => default").WithArguments("lambda expression", "System.Linq.Expressions.Expression<System.Func<U>>").
WithLocation
(10, 14),
5100
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "U () => default").WithArguments("lambda expression", "System.Linq.Expressions.Expression<System.Func<T>>").
WithLocation
(11, 14));
5123
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "string () =>").WithArguments("lambda expression", "System.Func<string?>").
WithLocation
(9, 28));
5147
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "string? () =>").WithArguments("lambda expression", "System.Func<string>").
WithLocation
(10, 39));
5173
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(9, 36),
5176
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "default(S<object>)").WithArguments("S<object>", "S<object?>").
WithLocation
(11, 40),
5179
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "default(S<object?>)").WithArguments("S<object?>", "S<object>").
WithLocation
(12, 39));
5207
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "string () =>").WithArguments("lambda expression", "System.Func<string?>").
WithLocation
(9, 28),
5210
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "string? () =>").WithArguments("lambda expression", "System.Func<string>").
WithLocation
(10, 27),
5213
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "S<object> () =>").WithArguments("lambda expression", "System.Func<S<object?>>").
WithLocation
(13, 31),
5216
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "S<object?> () =>").WithArguments("lambda expression", "System.Func<S<object>>").
WithLocation
(14, 30));
5245
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "ref S<object> () =>").WithArguments("lambda expression", "D1<S<object?>>").
WithLocation
(10, 30),
5248
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "ref S<object?> () =>").WithArguments("lambda expression", "D1<S<object>>").
WithLocation
(11, 29),
5251
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "ref readonly S<object> () =>").WithArguments("lambda expression", "D2<S<object?>>").
WithLocation
(14, 30),
5254
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "ref readonly S<object?> () =>").WithArguments("lambda expression", "D2<S<object>>").
WithLocation
(15, 29));
5286
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "T (ref T t) => t").WithArguments("lambda expression", "D2<T>").
WithLocation
(12, 14),
5289
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "T (ref T t) => t").WithArguments("lambda expression", "D3<T>").
WithLocation
(13, 14),
5292
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "ref T (ref T t) => ref t").WithArguments("lambda expression", "D1<T>").
WithLocation
(14, 15),
5295
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "ref T (ref T t) => ref t").WithArguments("lambda expression", "D3<T>").
WithLocation
(16, 15),
5298
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "ref readonly T (ref T t) => ref t").WithArguments("lambda expression", "D1<T>").
WithLocation
(17, 15),
5301
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "ref readonly T (ref T t) => ref t").WithArguments("lambda expression", "D2<T>").
WithLocation
(18, 15));
5322
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "ref void () => { }").
WithLocation
(7, 14),
5325
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(7, 18),
5328
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "ref readonly void () => { }").
WithLocation
(8, 14),
5331
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(8, 27));
5354
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "TypedReference").WithArguments("System.TypedReference").
WithLocation
(7, 13),
5357
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "RuntimeArgumentHandle").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(8, 13),
5360
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "ArgIterator").WithArguments("System.ArgIterator").
WithLocation
(9, 13));
5380
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "S").WithArguments("S").
WithLocation
(7, 15));
5399
Diagnostic(ErrorCode.ERR_BadAsyncReturn, "=>").
WithLocation
(6, 35),
5402
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(6, 35));
5424
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "async ref Task (s) => { _ = s.Length; await Task.Yield(); }").
WithLocation
(8, 23),
5427
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(8, 29),
5430
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(9, 22));
5452
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(8, 29),
5455
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(9, 22));
5476
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "string () =>").WithArguments("lambda expression", "System.Func<string?>").
WithLocation
(7, 28),
5479
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").
WithLocation
(7, 65),
5482
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "string? () =>").WithArguments("lambda expression", "System.Func<string>").
WithLocation
(8, 27));
5503
Diagnostic(ErrorCode.ERR_NoImplicitConv, "v").WithArguments("V", "T").
WithLocation
(7, 30),
5506
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "v").WithArguments("lambda expression").
WithLocation
(7, 30),
5509
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "t").WithArguments("T", "U").
WithLocation
(8, 30),
5512
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "t").WithArguments("lambda expression").
WithLocation
(8, 30));
5534
Diagnostic(ErrorCode.ERR_NoImplicitConv, "v").WithArguments("V", "T").
WithLocation
(8, 21),
5537
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "v").WithArguments("lambda expression").
WithLocation
(8, 21),
5540
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "t").WithArguments("T", "U").
WithLocation
(9, 21),
5543
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "t").WithArguments("lambda expression").
WithLocation
(9, 21));
5565
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "t").WithArguments("T", "U").
WithLocation
(7, 54),
5568
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "t").WithArguments("lambda expression").
WithLocation
(7, 54),
5571
Diagnostic(ErrorCode.ERR_NoImplicitConv, "v").WithArguments("V", "T").
WithLocation
(8, 64),
5574
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "v").WithArguments("lambda expression").
WithLocation
(8, 64),
5577
Diagnostic(ErrorCode.ERR_NoImplicitConv, "t").WithArguments("T", "V").
WithLocation
(9, 54),
5580
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "t").WithArguments("lambda expression").
WithLocation
(9, 54));
5678
Diagnostic(ErrorCode.ERR_BindToBogus, "d()").WithArguments("D.Invoke()").
WithLocation
(5, 34),
5681
Diagnostic(ErrorCode.ERR_BindToBogus, "() => 1").WithArguments("D.Invoke()").
WithLocation
(9, 11),
5684
Diagnostic(ErrorCode.ERR_BindToBogus, "int () => 2").WithArguments("D.Invoke()").
WithLocation
(10, 11));
5712
Diagnostic(ErrorCode.ERR_BogusType, "A").WithArguments("A").
WithLocation
(7, 11));
5734
Diagnostic(ErrorCode.ERR_LambdaExplicitReturnTypeVar, "var").
WithLocation
(7, 13),
5737
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(7, 13),
5740
Diagnostic(ErrorCode.ERR_LambdaExplicitReturnTypeVar, "var").
WithLocation
(8, 17),
5743
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(8, 17));
5768
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "var").WithArguments("var").
WithLocation
(2, 7),
5771
Diagnostic(ErrorCode.ERR_LambdaExplicitReturnTypeVar, "var").
WithLocation
(8, 13),
5774
Diagnostic(ErrorCode.ERR_LambdaExplicitReturnTypeVar, "var").
WithLocation
(9, 17));
5800
Diagnostic(ErrorCode.ERR_LambdaExplicitReturnTypeVar, "var").
WithLocation
(7, 11),
5803
Diagnostic(ErrorCode.ERR_LambdaExplicitReturnTypeVar, "var").
WithLocation
(8, 15));
5833
Diagnostic(ErrorCode.ERR_LambdaExplicitReturnTypeVar, "var").
WithLocation
(11, 11),
5836
Diagnostic(ErrorCode.ERR_LambdaExplicitReturnTypeVar, "var").
WithLocation
(12, 15));
5860
Diagnostic(ErrorCode.ERR_LambdaExplicitReturnTypeVar, "var").
WithLocation
(7, 11));
5883
Diagnostic(ErrorCode.ERR_LambdaExplicitReturnTypeVar, "var").
WithLocation
(6, 11));
5905
Diagnostic(ErrorCode.ERR_LambdaExplicitReturnTypeVar, "var").
WithLocation
(7, 11),
5908
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "var").WithArguments("var").
WithLocation
(7, 11));
5930
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "s").
WithLocation
(8, 41),
5933
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "s").
WithLocation
(9, 34));
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));
5992
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(System.Func<bool, T>)").
WithLocation
(13, 9),
5995
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(System.Func<bool, T>)").
WithLocation
(14, 9)
6030
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "A").WithArguments("lambda return type", "10.0").
WithLocation
(13, 11),
6033
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "I").WithArguments("lambda return type", "10.0").
WithLocation
(14, 11));
6064
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "B2").WithArguments("lambda return type", "10.0").
WithLocation
(10, 11),
6067
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "B2").WithArguments("lambda return type", "10.0").
WithLocation
(10, 26),
6070
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(System.Func<T>, System.Func<T>)").
WithLocation
(11, 9),
6073
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "A").WithArguments("lambda return type", "10.0").
WithLocation
(11, 11),
6076
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "B2").WithArguments("lambda return type", "10.0").
WithLocation
(11, 25),
6079
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(System.Func<T>, System.Func<T>)").
WithLocation
(12, 9),
6082
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "B1").WithArguments("lambda return type", "10.0").
WithLocation
(12, 11),
6085
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "B2").WithArguments("lambda return type", "10.0").
WithLocation
(12, 26));
6091
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(System.Func<T>, System.Func<T>)").
WithLocation
(11, 9),
6094
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(System.Func<T>, System.Func<T>)").
WithLocation
(12, 9));
6181
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "F(async () => await Task.Yield())").
WithLocation
(9, 4));
6206
Diagnostic(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, "[A] (x) => x").
WithLocation
(5, 32)
6228
Diagnostic(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, "[A][A] (x) => x").
WithLocation
(5, 32)
6249
Diagnostic(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, "x").
WithLocation
(5, 37)
6271
Diagnostic(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, "x").
WithLocation
(5, 40)
6292
Diagnostic(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, "x").
WithLocation
(5, 42)
6313
Diagnostic(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, "[return: A] (x) => x").
WithLocation
(5, 32)
6335
Diagnostic(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, "[return: A][return: A] (x) => x").
WithLocation
(5, 32)
6356
Diagnostic(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, "[A][return: A] (x) => x").
WithLocation
(5, 32)
6377
Diagnostic(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, "[A] ([A] x) => x").
WithLocation
(5, 32)
6398
Diagnostic(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, "[return: A] ([A] x) => x").
WithLocation
(5, 32)
6419
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").
WithLocation
(6, 25));
6439
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "ref").WithArguments("", "ref").
WithLocation
(6, 25));
6459
Diagnostic(ErrorCode.ERR_InitializeByValueVariableWithReference, "a = ref int => { }").
WithLocation
(6, 21),
6462
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").
WithLocation
(6, 29));
6510
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(8, 24),
6513
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(12, 16)
6545
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(7, 17),
6548
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(11, 9)
6579
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(7, 17),
6582
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(11, 9)
6609
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameterAttribute").
WithLocation
(7, 14),
6612
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(7, 14),
6615
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameterAttribute").
WithLocation
(11, 6),
6618
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(11, 6)
6647
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(6, 27),
6650
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(9, 17)
6674
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(6, 49),
6677
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(9, 39));
6697
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameterAttribute").
WithLocation
(6, 24),
6700
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(6, 24),
6703
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameterAttribute").
WithLocation
(9, 14),
6706
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(9, 14)
6730
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(6, 17),
6733
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(9, 5)
6754
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(6, 23),
6757
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(9, 13)
6838
Diagnostic(ErrorCode.ERR_DupParamMod, "ref").WithArguments("ref").
WithLocation
(6, 21),
6841
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(in ref int i) => { }").WithArguments("lambda expression", "D").
WithLocation
(7, 16),
6844
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "ref").WithArguments("ref", "in").
WithLocation
(7, 20),
6847
Diagnostic(ErrorCode.ERR_BadParamRef, "i").WithArguments("1", "ref").
WithLocation
(7, 28),
6850
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(out ref int i) => { }").WithArguments("lambda expression", "D").
WithLocation
(8, 16),
6853
Diagnostic(ErrorCode.ERR_ParamUnassigned, "(out ref int i) => { }").WithArguments("i").
WithLocation
(8, 16),
6856
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "ref").WithArguments("ref", "out").
WithLocation
(8, 21),
6859
Diagnostic(ErrorCode.ERR_BadParamRef, "i").WithArguments("1", "ref").
WithLocation
(8, 29));
6884
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "static partial () => { }").WithArguments("lambda expression", "System.Action").
WithLocation
(5, 27),
6887
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(5, 34));
6904
Diagnostic(ErrorCode.ERR_NameNotInContext, "partial").WithArguments("partial").
WithLocation
(5, 27),
6907
Diagnostic(ErrorCode.ERR_SemicolonExpected, "static").
WithLocation
(5, 35),
6910
Diagnostic(ErrorCode.ERR_BadMemberFlag, "static").WithArguments("static").
WithLocation
(5, 35),
6913
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(5, 43),
6916
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(5, 45),
6919
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(5, 45),
6922
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(5, 48));
6939
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(5, 27),
6942
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturnType, "partial () => { }").WithArguments("lambda expression", "System.Action").
WithLocation
(5, 27));
7004
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"Display(x => $""{Name}"")").WithArguments("DisplayAttribute", "1").
WithLocation
(2, 2),
7007
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Name").WithArguments("Name").
WithLocation
(5, 14)
7033
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Display(x => Name)").WithArguments("DisplayAttribute", "1").
WithLocation
(2, 2),
7036
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Name").WithArguments("Name").
WithLocation
(5, 14)
7064
Diagnostic(ErrorCode.ERR_BadParamRef, "r1").WithArguments("1", "ref").
WithLocation
(9, 17),
7067
Diagnostic(ErrorCode.ERR_BadParamRef, "r2").WithArguments("1", "ref").
WithLocation
(10, 11)
7103
Diagnostic(ErrorCode.ERR_FeatureInPreview, "=").WithArguments("lambda optional parameters").
WithLocation
(5, 27));
7128
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(5, 34));
7147
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "(x = 7) => x").
WithLocation
(5, 20),
7150
Diagnostic(ErrorCode.ERR_ImplicitlyTypedDefaultParameter, "x").WithArguments("x").
WithLocation
(5, 21));
7169
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "(string s = null, x = 7, double d = 3.14) => { }").
WithLocation
(5, 19),
7172
Diagnostic(ErrorCode.ERR_InconsistentLambdaParameterUsage, "x").
WithLocation
(5, 37),
7175
Diagnostic(ErrorCode.ERR_ImplicitlyTypedDefaultParameter, "x").WithArguments("x").
WithLocation
(5, 37));
7195
Diagnostic(ErrorCode.ERR_DefaultValueBeforeRequiredValue, ")").
WithLocation
(5, 36));
7215
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(5, 34),
7218
Diagnostic(ErrorCode.ERR_DefaultValueBeforeRequiredValue, ")").
WithLocation
(5, 44));
7237
Diagnostic(ErrorCode.ERR_DefaultValueBeforeRequiredValue, ")").
WithLocation
(5, 43));
7256
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(5, 41),
7259
Diagnostic(ErrorCode.ERR_DefaultValueBeforeRequiredValue, ")").
WithLocation
(5, 51));
7278
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "x").WithArguments("string", "int").
WithLocation
(5, 24));
7297
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "x").WithArguments("string", "int").
WithLocation
(5, 32),
7300
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(5, 34));
7329
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new C(null)").WithArguments("c").
WithLocation
(14, 26));
7358
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(14, 32),
7361
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new C(null)").WithArguments("c").
WithLocation
(14, 34));
7381
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "add(1, 2)").WithArguments("s").
WithLocation
(7, 31));
7402
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(7, 37),
7405
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "add(1, 2)").WithArguments("s").
WithLocation
(7, 39));
7454
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(12, 35));
7493
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(7, 37));
7561
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(5, 62));
7598
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M2(a)").WithArguments("i").
WithLocation
(5, 26));
7636
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(5, 31),
7639
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M2(a)").WithArguments("i").
WithLocation
(5, 33));
7658
Diagnostic(ErrorCode.ERR_CheckedOverflow, "int.MaxValue + 1").
WithLocation
(5, 26));
7718
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s").WithArguments("s").
WithLocation
(6, 26),
7721
Diagnostic(ErrorCode.ERR_NameNotInContext, "s").WithArguments("s").
WithLocation
(8, 31));
7758
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "str").WithArguments("var", "string").
WithLocation
(5, 27),
7761
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "s").WithArguments("s").
WithLocation
(5, 33));
7782
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "d").WithArguments("var", "System.Delegate").
WithLocation
(7, 29),
7785
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "lam").WithArguments("lam").
WithLocation
(7, 33));
7806
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "d").WithArguments("var", "System.Delegate").
WithLocation
(7, 36),
7809
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "lam").WithArguments("lam").
WithLocation
(7, 40));
7830
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "d").WithArguments("var", "System.Delegate").
WithLocation
(7, 29),
7833
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "lam").WithArguments("lam").
WithLocation
(7, 33),
7836
Diagnostic(ErrorCode.ERR_DefaultValueBeforeRequiredValue, ")").
WithLocation
(7, 43));
7855
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "f(3)").WithArguments("p").
WithLocation
(6, 32));
7881
Diagnostic(ErrorCode.WRN_OptionalParamValueMismatch, "s").WithArguments("1", @"""0123456...""", @"""abc""").
WithLocation
(7, 27));
7899
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "s").WithArguments("int", "string").
WithLocation
(6, 27));
7913
Diagnostic(ErrorCode.ERR_RefOutDefaultValue, modifier).
WithLocation
(1, 17));
7925
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "this").WithArguments("", "this").
WithLocation
(1, 17));
7959
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "lam").WithArguments("arg2", "<anonymous delegate>").
WithLocation
(6, 9));
8080
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(7, 13));
8171
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(5, 31),
8174
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "lam").WithArguments("lam").
WithLocation
(6, 31));
8222
Diagnostic(ErrorCode.ERR_FeatureInPreview, "params").WithArguments("lambda params array").
WithLocation
(1, 12));
8239
Diagnostic(ErrorCode.ERR_IllegalParams, "params").
WithLocation
(1, 21));
8273
Diagnostic(ErrorCode.ERR_DefaultValueForParamsParameter, "params").
WithLocation
(1, 12));
8285
Diagnostic(ErrorCode.ERR_ExplicitParamArray, "System.ParamArray").
WithLocation
(1, 13));
8380
Diagnostic(ErrorCode.ERR_ParamsLast, "params int[] xs").
WithLocation
(1, 12));
8392
Diagnostic(ErrorCode.ERR_ParamsLast, "params int[] xs").
WithLocation
(1, 12));
8404
Diagnostic(ErrorCode.ERR_ParamsMustBeArray, "params").
WithLocation
(1, 12));
8416
Diagnostic(ErrorCode.ERR_ParamsMustBeArray, "params").
WithLocation
(1, 12));
8440
Diagnostic(ErrorCode.ERR_ParamsCantBeWithModifier, modifier).WithArguments(modifier).
WithLocation
(1, 24));
8452
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "this").WithArguments("", "this").
WithLocation
(1, 12));
8464
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(1, 19));
Semantics\LocalFunctionTests.cs (556)
54
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(4, 11),
57
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 43),
60
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(10, 15),
63
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "local").
WithLocation
(10, 47)
185
Diagnostic(ErrorCode.ERR_BadAwaitInLock, "await Task.Yield()").
WithLocation
(16, 21));
246
Diagnostic(ErrorCode.ERR_BadYieldInTryOfCatch, "yield").
WithLocation
(15, 21),
249
Diagnostic(ErrorCode.ERR_BadYieldInCatch, "yield").
WithLocation
(29, 21),
252
Diagnostic(ErrorCode.ERR_BadYieldInFinally, "yield").
WithLocation
(42, 21));
329
Diagnostic(ErrorCode.ERR_BadEmptyThrow, "throw").
WithLocation
(13, 17));
363
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("XAttribute").
WithLocation
(6, 21),
366
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("X").
WithLocation
(6, 21),
369
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(6, 14));
488
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(10, 14));
536
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(13, 14));
607
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "s1").
WithLocation
(17, 12),
610
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "s1.ToString()").
WithLocation
(26, 12),
613
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "local5()").
WithLocation
(31, 12));
660
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "42 is int i").
WithLocation
(13, 12),
663
Diagnostic(ErrorCode.ERR_NameNotInContext, "i").WithArguments("i").
WithLocation
(16, 17),
666
Diagnostic(ErrorCode.ERR_NameNotInContext, "i").WithArguments("i").
WithLocation
(19, 13));
714
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "M2(out var i)").
WithLocation
(13, 12),
717
Diagnostic(ErrorCode.ERR_NameNotInContext, "i").WithArguments("i").
WithLocation
(16, 17),
720
Diagnostic(ErrorCode.ERR_NameNotInContext, "i").WithArguments("i").
WithLocation
(19, 13));
762
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "out").WithArguments("", "out").
WithLocation
(15, 12),
765
Diagnostic(ErrorCode.ERR_BadArgRef, "s").WithArguments("1", "out").
WithLocation
(15, 16),
768
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "A(out var s)").WithArguments("A", "2").
WithLocation
(18, 10),
771
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "out").WithArguments("", "out").
WithLocation
(18, 12),
774
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(18, 16),
777
Diagnostic(ErrorCode.ERR_SyntaxError, "s").WithArguments(",").
WithLocation
(18, 20));
800
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(10, 13));
847
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(9, 13));
890
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "[A]").WithArguments("local function attributes", "9.0").
WithLocation
(10, 9),
893
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "[return: A]").WithArguments("local function attributes", "9.0").
WithLocation
(13, 9),
896
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "[A]").WithArguments("local function attributes", "9.0").
WithLocation
(16, 21),
899
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "[A]").WithArguments("local function attributes", "9.0").
WithLocation
(18, 21));
950
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Prop").WithArguments("Prop", "property, indexer").
WithLocation
(22, 10),
953
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Return").WithArguments("Return", "return").
WithLocation
(23, 10),
956
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Prop").WithArguments("Prop", "property, indexer").
WithLocation
(25, 18),
959
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Method").WithArguments("Method", "method").
WithLocation
(27, 18),
962
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "Param").WithArguments("Param", "parameter").
WithLocation
(29, 14),
965
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "TypeParam").WithArguments("TypeParam", "type parameter").
WithLocation
(33, 14));
1055
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(11, 9));
1085
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "local1").WithArguments("local1()").
WithLocation
(8, 14));
1122
Diagnostic(ErrorCode.ERR_DllImportOnInvalidMethod, "DllImport").
WithLocation
(10, 10),
1125
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "local1").WithArguments("local1()").
WithLocation
(10, 38),
1128
Diagnostic(ErrorCode.ERR_DllImportOnInvalidMethod, "DllImport").
WithLocation
(11, 10),
1131
Diagnostic(ErrorCode.ERR_ExternHasBody, "local2").WithArguments("local2()").
WithLocation
(11, 38),
1134
Diagnostic(ErrorCode.ERR_DllImportOnInvalidMethod, "DllImport").
WithLocation
(12, 10),
1137
Diagnostic(ErrorCode.ERR_ExternHasBody, "local3").WithArguments("local3()").
WithLocation
(12, 37),
1140
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "local4").WithArguments("local4()").
WithLocation
(14, 21),
1143
Diagnostic(ErrorCode.ERR_ExternHasBody, "local8").WithArguments("local8()").
WithLocation
(19, 45),
1146
Diagnostic(ErrorCode.ERR_ExternHasBody, "local9").WithArguments("local9()").
WithLocation
(20, 44),
1149
Diagnostic(ErrorCode.ERR_ExternHasBody, "local11").WithArguments("local11()").
WithLocation
(23, 45),
1152
Diagnostic(ErrorCode.ERR_ExternHasBody, "local12").WithArguments("local12()").
WithLocation
(24, 44));
1206
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(12, 10),
1209
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(17, 14),
1212
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(22, 14),
1215
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(23, 14),
1218
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(29, 14),
1221
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(34, 18),
1224
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(39, 18),
1227
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(40, 18));
1287
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(13, 14),
1290
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(14, 14),
1293
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(18, 18),
1296
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(19, 18),
1299
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(24, 18),
1302
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(25, 18),
1305
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(30, 18),
1308
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(31, 18),
1311
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(35, 22),
1314
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(36, 22),
1317
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(41, 22),
1320
Diagnostic(ErrorCode.ERR_DllImportOnGenericMethod, "DllImport").
WithLocation
(42, 22));
1352
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "local1").WithArguments("local1()").
WithLocation
(12, 28),
1355
Diagnostic(ErrorCode.ERR_ExternHasBody, "local2").WithArguments("local2()").
WithLocation
(13, 28));
1383
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "local1").WithArguments("local1()").
WithLocation
(8, 14),
1386
Diagnostic(ErrorCode.ERR_LocalDuplicate, "local1").WithArguments("local1").
WithLocation
(9, 28),
1389
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "local1").WithArguments("local1()").
WithLocation
(9, 28),
1392
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "local1").WithArguments("local1()").
WithLocation
(14, 14),
1395
Diagnostic(ErrorCode.ERR_LocalDuplicate, "local1").WithArguments("local1").
WithLocation
(15, 28));
1419
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "M").WithArguments("C.M()", "C").
WithLocation
(8, 10));
1449
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "local").
WithLocation
(8, 23)
1560
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "t").WithArguments("t").
WithLocation
(8, 23),
1563
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "Local<object, object>").WithArguments("Local<T, U>(T)", "t", "U", "object").
WithLocation
(11, 9));
1582
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "L2").WithArguments("L2").
WithLocation
(6, 15),
1585
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "L").WithArguments("L").
WithLocation
(7, 16),
1588
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "L").WithArguments("L").
WithLocation
(6, 13),
1591
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "L2").WithArguments("L2").
WithLocation
(7, 13));
1606
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object").WithArguments("object").
WithLocation
(4, 48)
1626
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "Local()").WithArguments("j").
WithLocation
(6, 27));
1647
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "Local").WithArguments("a").
WithLocation
(7, 30));
1669
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "Local2()").WithArguments("p").
WithLocation
(6, 28),
1672
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "Local1()").WithArguments("p").
WithLocation
(7, 28));
1698
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("AAttribute").
WithLocation
(7, 21),
1701
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(7, 21),
1704
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("BAttribute").
WithLocation
(7, 24),
1707
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(7, 24),
1710
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "D").WithArguments("DAttribute").
WithLocation
(7, 41),
1713
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "D").WithArguments("D").
WithLocation
(7, 41),
1716
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "CLSCompliant").WithArguments("isCompliant", "System.CLSCompliantAttribute.CLSCompliantAttribute(bool)").
WithLocation
(7, 27));
1751
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("AAttribute").
WithLocation
(7, 21),
1754
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(7, 21),
1757
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "CLSCompliant").WithArguments("isCompliant", "System.CLSCompliantAttribute.CLSCompliantAttribute(bool)").
WithLocation
(7, 27),
1760
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local").WithArguments("Local").
WithLocation
(7, 14));
1826
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("AAttribute").
WithLocation
(7, 21),
1829
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(7, 21),
1832
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "CLSCompliant").WithArguments("isCompliant", "System.CLSCompliantAttribute.CLSCompliantAttribute(bool)").
WithLocation
(7, 31),
1835
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local").WithArguments("Local").
WithLocation
(7, 14));
1904
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("AAttribute").
WithLocation
(7, 21),
1907
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(7, 21),
1910
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("BAttribute").
WithLocation
(7, 24),
1913
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(7, 24),
1916
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "D").WithArguments("DAttribute").
WithLocation
(7, 41),
1919
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "D").WithArguments("D").
WithLocation
(7, 41),
1922
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "CLSCompliant").WithArguments("isCompliant", "System.CLSCompliantAttribute.CLSCompliantAttribute(bool)").
WithLocation
(7, 27));
1960
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("AAttribute").
WithLocation
(7, 21),
1963
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(7, 21),
1966
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("BAttribute").
WithLocation
(7, 24),
1969
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(7, 24),
1972
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "CLSCompliant").WithArguments("isCompliant", "System.CLSCompliantAttribute.CLSCompliantAttribute(bool)").
WithLocation
(7, 34));
2027
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsReadOnly").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(18, 10),
2030
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsUnmanaged").WithArguments("System.Runtime.CompilerServices.IsUnmanagedAttribute").
WithLocation
(19, 10),
2033
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "IsByRefLike").WithArguments("System.Runtime.CompilerServices.IsByRefLikeAttribute").
WithLocation
(20, 10),
2036
Diagnostic(ErrorCode.ERR_ExplicitExtension, "Extension").
WithLocation
(21, 10),
2039
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, "NullableContext(0)").WithArguments("System.Runtime.CompilerServices.NullableContextAttribute").
WithLocation
(22, 10));
2067
Diagnostic(ErrorCode.ERR_SecurityCriticalOrSecuritySafeCriticalOnAsync, "SecurityCritical").WithArguments("SecurityCritical").
WithLocation
(10, 10),
2070
Diagnostic(ErrorCode.ERR_SecurityCriticalOrSecuritySafeCriticalOnAsync, "SecuritySafeCriticalAttribute").WithArguments("SecuritySafeCriticalAttribute").
WithLocation
(11, 10),
2073
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "local1").
WithLocation
(12, 20));
2160
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "T").WithArguments("T").
WithLocation
(9, 23),
2163
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "T").WithArguments("T").
WithLocation
(14, 19),
2166
Diagnostic(ErrorCode.ERR_DuplicateTypeParameter, "T").WithArguments("T").
WithLocation
(18, 26),
2169
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "T").WithArguments("T", "C.M2<T>()").
WithLocation
(25, 23),
2172
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "V").WithArguments("V", "Local1<V>()").
WithLocation
(31, 28),
2175
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "T").WithArguments("T").
WithLocation
(37, 17),
2178
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "V").WithArguments("V").
WithLocation
(43, 21),
2181
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "T").WithArguments("T").
WithLocation
(54, 25),
2184
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "T").WithArguments("T", "C.M2<T>()").
WithLocation
(67, 32));
2190
Diagnostic(ErrorCode.ERR_DuplicateTypeParameter, "T").WithArguments("T").
WithLocation
(18, 26),
2193
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "T").WithArguments("T", "C.M2<T>()").
WithLocation
(25, 23),
2196
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "V").WithArguments("V", "Local1<V>()").
WithLocation
(31, 28),
2199
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "T").WithArguments("T").
WithLocation
(37, 17),
2202
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "V").WithArguments("V").
WithLocation
(43, 21),
2205
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "T").WithArguments("T", "C.M2<T>()").
WithLocation
(67, 32));
2250
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterTypeParameter, "T").WithArguments("T", "C2<T>").
WithLocation
(9, 28),
2253
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T()", "method").
WithLocation
(26, 21),
2256
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t").WithArguments("t").
WithLocation
(23, 23));
2308
Diagnostic(ErrorCode.ERR_BadIteratorArgType, "a").
WithLocation
(8, 40),
2311
Diagnostic(ErrorCode.ERR_BadIteratorArgType, "x").
WithLocation
(17, 44),
2314
Diagnostic(ErrorCode.ERR_BadIteratorArgType, "a").
WithLocation
(27, 40),
2317
Diagnostic(ErrorCode.ERR_BadIteratorArgType, "a").
WithLocation
(33, 40),
2320
Diagnostic(ErrorCode.ERR_BadIteratorArgType, "b").
WithLocation
(37, 48));
2387
Diagnostic(ErrorCode.ERR_UnsafeIteratorArgType, "a").
WithLocation
(8, 37),
2390
Diagnostic(ErrorCode.ERR_UnsafeIteratorArgType, "x").
WithLocation
(17, 41),
2393
Diagnostic(ErrorCode.ERR_UnsafeIteratorArgType, "a").
WithLocation
(27, 37),
2396
Diagnostic(ErrorCode.ERR_UnsafeIteratorArgType, "a").
WithLocation
(33, 44),
2399
Diagnostic(ErrorCode.ERR_IllegalInnerUnsafe, "M4").
WithLocation
(33, 36),
2402
Diagnostic(ErrorCode.ERR_IllegalInnerUnsafe, "int*").
WithLocation
(37, 40),
2405
Diagnostic(ErrorCode.ERR_IllegalInnerUnsafe, "&x").
WithLocation
(39, 23),
2408
Diagnostic(ErrorCode.ERR_IllegalInnerUnsafe, "Local(&x)").
WithLocation
(39, 17),
2411
Diagnostic(ErrorCode.ERR_UnsafeIteratorArgType, "b").
WithLocation
(37, 45));
2442
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "TLocal").WithArguments("TLocal").
WithLocation
(6, 14),
2445
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "Local").WithArguments("Local").
WithLocation
(11, 14),
2448
Diagnostic(ErrorCode.ERR_LocalDuplicate, "local").WithArguments("local").
WithLocation
(18, 14),
2451
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "local").WithArguments("local").
WithLocation
(16, 13));
2478
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(8, 5),
2481
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(13, 5),
2484
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(15, 6),
2487
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "BadLocal2").WithArguments("C", "BadLocal2").
WithLocation
(10, 14),
2490
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "BadLocal1").WithArguments("BadLocal1").
WithLocation
(8, 17),
2493
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "BadLocal2").WithArguments("BadLocal2").
WithLocation
(13, 17));
2511
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(6, 9));
2555
Diagnostic(ErrorCode.ERR_ParamsMustBeArray, "params").
WithLocation
(8, 21)
2605
Diagnostic(ErrorCode.ERR_RefOutDefaultValue, "ref").
WithLocation
(6, 21)
2630
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "x").WithArguments("int", "string").
WithLocation
(8, 35)
2682
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "CallerMemberName").WithArguments("string", "int").
WithLocation
(9, 32),
2685
Diagnostic(ErrorCode.ERR_NoImplicitConv, "CallerMemberName()").WithArguments("string", "int").
WithLocation
(13, 9));
2710
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionParamsParameter, "L1(val, val)").WithArguments("ys", "L1").
WithLocation
(10, 9),
2713
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionParamsParameter, "L1(ys: val, x: val)").WithArguments("ys", "L1").
WithLocation
(11, 9),
2716
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionParamsParameter, "L1(ys: val)").WithArguments("ys", "L1").
WithLocation
(12, 9));
2739
Diagnostic(ErrorCode.ERR_LocalDuplicate, "Overload").WithArguments("Overload").
WithLocation
(8, 14),
2742
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Overload").WithArguments("Overload").
WithLocation
(8, 14));
2764
Diagnostic(ErrorCode.ERR_BadArgCount, "Local").WithArguments("Local", "2").
WithLocation
(10, 9));
2796
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsLocalFunction, "Id(2)").
WithLocation
(16, 35),
2799
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsLocalFunction, "Id").
WithLocation
(17, 51),
2802
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsLocalFunction, "Id").
WithLocation
(18, 54)
2834
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsLocalFunction, "Id(2)").
WithLocation
(16, 35),
2837
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsLocalFunction, "Id").
WithLocation
(17, 51),
2840
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsLocalFunction, "Id").
WithLocation
(18, 54)
2870
}").
WithLocation
(8, 40),
2873
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsLocalFunction, "Local(x)").
WithLocation
(11, 20)
2908
Diagnostic(ErrorCode.ERR_NameNotInContext, "Local").WithArguments("Local").
WithLocation
(16, 9)
2929
Diagnostic(ErrorCode.ERR_LocalDuplicate, "Duplicate").WithArguments("Duplicate").
WithLocation
(7, 14),
2932
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Duplicate").WithArguments("Duplicate").
WithLocation
(7, 14)
2954
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(7, 24));
2978
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "T").WithArguments("T").
WithLocation
(7, 22),
2981
Diagnostic(ErrorCode.WRN_UnreferencedVar, "T").WithArguments("T").
WithLocation
(6, 13));
2987
Diagnostic(ErrorCode.WRN_UnreferencedVar, "T").WithArguments("T").
WithLocation
(6, 13));
3013
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "T").WithArguments("T", "Outer<T>()").
WithLocation
(8, 21)
3033
Diagnostic(ErrorCode.ERR_LocalDuplicate, "Conflict").WithArguments("Conflict").
WithLocation
(7, 14),
3036
Diagnostic(ErrorCode.WRN_UnreferencedVar, "Conflict").WithArguments("Conflict").
WithLocation
(6, 13),
3039
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Conflict").WithArguments("Conflict").
WithLocation
(7, 14)
3060
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "Conflict").WithArguments("Conflict").
WithLocation
(6, 14),
3063
Diagnostic(ErrorCode.WRN_UnreferencedVar, "Conflict").WithArguments("Conflict").
WithLocation
(7, 13),
3066
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Conflict").WithArguments("Conflict").
WithLocation
(6, 14)
3096
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "&x").
WithLocation
(11, 32)
3142
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "Local").WithArguments("Local(int)").
WithLocation
(6, 14)
3167
Diagnostic(ErrorCode.ERR_LabelNotFound, "A").WithArguments("A").
WithLocation
(8, 14),
3170
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "A").
WithLocation
(11, 9)
3192
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto").WithArguments("A").
WithLocation
(8, 13)
3223
Diagnostic(ErrorCode.WRN_UnreachableCode, "int").
WithLocation
(9, 9),
3226
Diagnostic(ErrorCode.ERR_UseDefViolation, "Local()").WithArguments("x").
WithLocation
(15, 9)
3257
Diagnostic(ErrorCode.WRN_UnreachableCode, "int").
WithLocation
(9, 9),
3260
Diagnostic(ErrorCode.ERR_UseDefViolation, "Local").WithArguments("x").
WithLocation
(15, 22)
3291
Diagnostic(ErrorCode.WRN_UnreachableCode, "int").
WithLocation
(9, 9),
3294
Diagnostic(ErrorCode.ERR_UseDefViolation, "new Action(Local)").WithArguments("x").
WithLocation
(15, 19)
3318
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local").WithArguments("Local").
WithLocation
(6, 14)
3347
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local").WithArguments("Local").
WithLocation
(9, 18)
3374
Diagnostic(ErrorCode.ERR_AnonDelegateCantUse, "x").WithArguments("x").
WithLocation
(10, 31)
3401
Diagnostic(ErrorCode.ERR_AnonDelegateCantUse, "x").WithArguments("x").
WithLocation
(10, 31)
3453
Diagnostic(ErrorCode.ERR_ArgsInvalid, "__arglist").
WithLocation
(10, 31),
3456
Diagnostic(ErrorCode.ERR_SpecialByRefInLambda, "__arglist").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(18, 31),
3459
Diagnostic(ErrorCode.ERR_IllegalVarArgs, "__arglist").
WithLocation
(24, 20),
3462
Diagnostic(ErrorCode.ERR_ArgsInvalid, "__arglist").
WithLocation
(26, 31),
3465
Diagnostic(ErrorCode.ERR_IllegalVarArgs, "__arglist").
WithLocation
(32, 20),
3468
Diagnostic(ErrorCode.ERR_SpecialByRefInLambda, "__arglist").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(34, 31)
3497
Diagnostic(ErrorCode.ERR_ObjectRequired, "_a").WithArguments("Program._a").
WithLocation
(11, 31)
3523
Diagnostic(ErrorCode.ERR_BadIteratorArgType, "x").
WithLocation
(8, 48)
3550
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "x").
WithLocation
(9, 42)
3576
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "Local").
WithLocation
(8, 13)
3597
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "F1").
WithLocation
(6, 14),
3600
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "F2").
WithLocation
(7, 21));
3635
Diagnostic(ErrorCode.ERR_BadMemberFlag, "const").WithArguments("const").
WithLocation
(6, 9),
3638
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(12, 9),
3641
Diagnostic(ErrorCode.ERR_BadMemberFlag, "volatile").WithArguments("volatile").
WithLocation
(15, 9)
3648
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "static").WithArguments("static local functions", "8.0").
WithLocation
(9, 9),
3684
Diagnostic(ErrorCode.ERR_VarargsIterator, "Local").
WithLocation
(9, 26),
3687
Diagnostic(ErrorCode.ERR_IllegalVarArgs, "__arglist").
WithLocation
(9, 32));
3832
Diagnostic(ErrorCode.ERR_SemicolonExpected, "operator").
WithLocation
(6, 17),
3835
Diagnostic(ErrorCode.ERR_RbraceExpected, "operator").
WithLocation
(6, 17),
3838
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 56),
3841
Diagnostic(ErrorCode.ERR_BadSKunknown, "Program").WithArguments("Program", "type").
WithLocation
(6, 9),
3844
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "Program left").
WithLocation
(6, 28),
3847
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "Program right").
WithLocation
(6, 42),
3850
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(Program left, Program right)").WithArguments("System.ValueTuple`2").
WithLocation
(6, 27),
3853
Diagnostic(ErrorCode.ERR_RetNoObjectRequired, "return").WithArguments("Program.Main(string[])").
WithLocation
(8, 13),
3856
Diagnostic(ErrorCode.ERR_UseDefViolation, "Program left").WithArguments("left").
WithLocation
(6, 28),
3859
Diagnostic(ErrorCode.ERR_UseDefViolation, "Program right").WithArguments("right").
WithLocation
(6, 42)
3885
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 16),
3888
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(8, 16),
3891
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(13, 17),
3894
Diagnostic(ErrorCode.ERR_SemicolonExpected, "2").
WithLocation
(13, 20),
3897
Diagnostic(ErrorCode.ERR_NameNotInContext, "get").WithArguments("get").
WithLocation
(8, 13),
3900
Diagnostic(ErrorCode.ERR_RetNoObjectRequired, "return").WithArguments("Program.Main(string[])").
WithLocation
(10, 17),
3903
Diagnostic(ErrorCode.ERR_IllegalStatement, "2").
WithLocation
(13, 20),
3906
Diagnostic(ErrorCode.WRN_UnreachableCode, "int").
WithLocation
(13, 9),
3909
Diagnostic(ErrorCode.WRN_UnreferencedVar, "Goo").WithArguments("Goo").
WithLocation
(6, 13),
3912
Diagnostic(ErrorCode.WRN_UnreferencedVar, "Bar").WithArguments("Bar").
WithLocation
(13, 13)
3933
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "Local").WithArguments("local functions", "7.0").
WithLocation
(6, 14)
3953
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 13),
3956
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "int Add(int x, int y) => x + y;").
WithLocation
(7, 9),
3959
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Add").WithArguments("Add").
WithLocation
(7, 13)
3979
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 13),
3982
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "a: int Add(int x, int y) => x + y;").
WithLocation
(7, 1),
3985
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(7, 1),
3988
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Add").WithArguments("Add").
WithLocation
(7, 13)
4012
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(7, 9));
4214
Diagnostic(ErrorCode.ERR_ParamUnassigned, "TakeOutParam1").WithArguments("x").
WithLocation
(6, 14),
4217
Diagnostic(ErrorCode.ERR_ParamUnassigned, "TakeOutParam2").WithArguments("x").
WithLocation
(14, 14)
4247
Diagnostic(ErrorCode.ERR_ParamUnassigned, "return;").WithArguments("x").
WithLocation
(8, 13),
4250
Diagnostic(ErrorCode.ERR_ParamUnassigned, "return;").WithArguments("x").
WithLocation
(17, 13)
4278
Diagnostic(ErrorCode.ERR_ReturnExpected, "TakeOutParam1").WithArguments("TakeOutParam1(out int)").
WithLocation
(6, 13),
4281
Diagnostic(ErrorCode.ERR_ParamUnassigned, "TakeOutParam1").WithArguments("x").
WithLocation
(6, 13),
4284
Diagnostic(ErrorCode.ERR_ParamUnassigned, "TakeOutParam2").WithArguments("x").
WithLocation
(14, 13),
4287
Diagnostic(ErrorCode.ERR_ReturnExpected, "TakeOutParam2").WithArguments("C.TakeOutParam2(out int)").
WithLocation
(14, 13)
4317
Diagnostic(ErrorCode.ERR_ParamUnassigned, "return 1;").WithArguments("x").
WithLocation
(8, 13),
4320
Diagnostic(ErrorCode.ERR_ParamUnassigned, "return 2;").WithArguments("x").
WithLocation
(17, 13)
4378
Diagnostic(ErrorCode.ERR_ExternHasBody, "local1").WithArguments("local1(out int)").
WithLocation
(13, 28),
4381
Diagnostic(ErrorCode.ERR_ParamUnassigned, "local2").WithArguments("x").
WithLocation
(15, 21),
4384
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "local3").WithArguments("local3(out int)").
WithLocation
(17, 21),
4387
Diagnostic(ErrorCode.ERR_ParamUnassigned, "local3").WithArguments("x").
WithLocation
(17, 21));
4462
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "void*").
WithLocation
(11, 29),
4465
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "(void*)null").
WithLocation
(11, 28),
4468
Diagnostic(ErrorCode.ERR_AwaitInUnsafeContext, "await Task.Delay(3)").
WithLocation
(47, 13),
4471
Diagnostic(ErrorCode.ERR_AwaitInUnsafeContext, "await Task.Delay(1)").
WithLocation
(22, 17),
4474
Diagnostic(ErrorCode.ERR_AwaitInUnsafeContext, "await Task.Delay(4)").
WithLocation
(59, 17),
4477
Diagnostic(ErrorCode.ERR_AwaitInUnsafeContext, "await Task.Delay(2)").
WithLocation
(33, 13));
4525
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(arg is int z1, z1)").WithArguments("b").
WithLocation
(6, 30),
4528
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(6, 61),
4531
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(M(out int z2), z2)").WithArguments("b").
WithLocation
(7, 30),
4534
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(7, 61),
4537
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int z3").
WithLocation
(8, 35),
4540
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(M((int z3, int a2) = (1, 2)), z3)").WithArguments("b").
WithLocation
(8, 30),
4543
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(8, 76),
4546
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(arg is var z4, z4)").WithArguments("b").
WithLocation
(10, 30),
4549
Diagnostic(ErrorCode.ERR_NameNotInContext, "z4").WithArguments("z4").
WithLocation
(10, 61),
4552
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(M(out var z5), z5)").WithArguments("b").
WithLocation
(11, 30),
4555
Diagnostic(ErrorCode.ERR_NameNotInContext, "z5").WithArguments("z5").
WithLocation
(11, 61),
4558
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var z6").
WithLocation
(12, 35),
4561
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(M((var z6, int a2) = (1, 2)), z6)").WithArguments("b").
WithLocation
(12, 30),
4564
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(12, 76),
4567
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(14, 17),
4570
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(14, 22),
4573
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(14, 27),
4576
Diagnostic(ErrorCode.ERR_NameNotInContext, "z4").WithArguments("z4").
WithLocation
(14, 32),
4579
Diagnostic(ErrorCode.ERR_NameNotInContext, "z5").WithArguments("z5").
WithLocation
(14, 37),
4582
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(14, 42),
4585
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local1").WithArguments("Local1").
WithLocation
(6, 14),
4588
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local2").WithArguments("Local2").
WithLocation
(7, 14),
4591
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local3").WithArguments("Local3").
WithLocation
(8, 14),
4594
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local4").WithArguments("Local4").
WithLocation
(10, 14),
4597
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local5").WithArguments("Local5").
WithLocation
(11, 14),
4600
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local6").WithArguments("Local6").
WithLocation
(12, 14)
4874
Diagnostic(ErrorCode.ERR_NameNotInContext, "b2").WithArguments("b2").
WithLocation
(10, 23)
4908
Diagnostic(ErrorCode.ERR_BadDynamicMethodArgLambda, "d => d").
WithLocation
(8, 18),
4911
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionTypeParameter, "L(d => d, m)").WithArguments("L").
WithLocation
(8, 16));
4933
Diagnostic(ErrorCode.ERR_BadDynamicMethodArgLambda, "async d => await d").
WithLocation
(8, 37),
4936
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionTypeParameter, "L(async d => await d, m)").WithArguments("L").
WithLocation
(8, 35),
4939
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(8, 32));
4979
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionTypeParameter, "L1(val)").WithArguments("L1").
WithLocation
(11, 9),
4982
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionTypeParameter, "L2(1, val)").WithArguments("L2").
WithLocation
(14, 9),
4985
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionTypeParameter, "L2(val, 3.0f)").WithArguments("L2").
WithLocation
(15, 9),
4988
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionTypeParameter, "L3(dynamicList)").WithArguments("L3").
WithLocation
(18, 9),
4991
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionTypeParameter, "L4(1, 2, val)").WithArguments("L4").
WithLocation
(21, 9),
4994
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionTypeParameter, "L4(val, 3, 4)").WithArguments("L4").
WithLocation
(22, 9),
4997
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionTypeParameter, "L5(val, 1, 2)").WithArguments("L5").
WithLocation
(25, 9),
5000
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionTypeParameter, "L5(1, 3, val)").WithArguments("L5").
WithLocation
(26, 9)
5186
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(7, 36),
5189
Diagnostic(ErrorCode.ERR_DuplicateParamName, "x").WithArguments("x").
WithLocation
(8, 41),
5192
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(9, 34),
5195
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "x").WithArguments("x").
WithLocation
(10, 32),
5198
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "y").WithArguments("y").
WithLocation
(10, 42));
5225
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(9, 28),
5228
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(10, 24),
5231
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(11, 26),
5234
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "@x").WithArguments("x").
WithLocation
(12, 17),
5237
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(13, 30));
5269
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(8, 28),
5272
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(9, 24),
5275
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(10, 26),
5278
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "@x").WithArguments("x").
WithLocation
(11, 17),
5281
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(12, 30));
5334
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(8, 28),
5337
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(9, 24),
5340
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(10, 26),
5343
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(12, 30));
5371
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "x").WithArguments("x").
WithLocation
(8, 28),
5374
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "x").WithArguments("x").
WithLocation
(9, 24),
5377
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "x").WithArguments("x").
WithLocation
(10, 26),
5380
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "@x").WithArguments("x", "Program.M<x>()").
WithLocation
(11, 17),
5383
Diagnostic(ErrorCode.ERR_QueryRangeVariableSameAsTypeParam, "x").WithArguments("x").
WithLocation
(12, 30));
5389
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "@x").WithArguments("x", "Program.M<x>()").
WithLocation
(11, 17));
5415
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(9, 28),
5418
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(10, 24),
5421
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(11, 26),
5424
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "@x").WithArguments("x").
WithLocation
(12, 17),
5427
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(13, 30));
5470
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(11, 14),
5473
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x").WithArguments("x").
WithLocation
(16, 14),
5476
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "T").WithArguments("T").
WithLocation
(20, 14));
5502
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "F1").WithArguments("F1").
WithLocation
(8, 28),
5505
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "F2").WithArguments("F2").
WithLocation
(9, 24),
5508
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "F3").WithArguments("F3").
WithLocation
(10, 26),
5511
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "F4").WithArguments("F4").
WithLocation
(11, 17),
5514
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "F5").WithArguments("F5").
WithLocation
(12, 30));
5542
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(9, 25),
5545
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "T").WithArguments("T").
WithLocation
(10, 29),
5548
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "T").WithArguments("T", "Program.M<T>(object)").
WithLocation
(11, 21));
5554
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "T").WithArguments("T", "Program.M<T>(object)").
WithLocation
(11, 21));
5585
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "T").WithArguments("T", "Program.M<T>(object)").
WithLocation
(17, 28));
5615
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(11, 32),
5618
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "T").WithArguments("T").
WithLocation
(16, 21));
5651
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(10, 28));
5703
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "this").
WithLocation
(6, 31),
5706
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "base").
WithLocation
(7, 31),
5709
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "ToString").
WithLocation
(10, 28));
5734
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "x").WithArguments("x").
WithLocation
(7, 31),
5737
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "y").WithArguments("y").
WithLocation
(8, 31),
5740
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "x").WithArguments("x").
WithLocation
(11, 28));
5764
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "x").WithArguments("x").
WithLocation
(10, 35),
5767
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "y").WithArguments("y").
WithLocation
(10, 40));
5789
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "x").WithArguments("x").
WithLocation
(8, 25));
5875
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "this").
WithLocation
(16, 30),
5878
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "base").
WithLocation
(17, 30),
5881
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "_f").
WithLocation
(18, 30));
5909
Diagnostic(ErrorCode.ERR_ConditionalMustReturnVoid, @"Conditional(""DEBUG"")").WithArguments("local1()").
WithLocation
(10, 10),
5912
Diagnostic(ErrorCode.ERR_ConditionalWithOutParam, @"Conditional(""DEBUG"")").WithArguments("local2(out int)").
WithLocation
(13, 10));
5949
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "local1()").WithArguments("local1()").
WithLocation
(8, 9),
5952
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "local2()").WithArguments("local2()", "hello").
WithLocation
(9, 9));
5980
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Attr").WithArguments("Attr").
WithLocation
(12, 10),
5983
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Attr").WithArguments("Attr").
WithLocation
(13, 18),
5986
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Attr").WithArguments("Attr").
WithLocation
(14, 22),
5989
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Attr").WithArguments("Attr").
WithLocation
(15, 22));
6016
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "local1(null)").
WithLocation
(10, 13));
6047
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(12, 15));
6085
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 17));
6115
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t1").WithArguments("t", "void local2(T t)").
WithLocation
(13, 16));
6144
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "getDefault<string>()").
WithLocation
(10, 9),
6147
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "getDefault<string?>()").
WithLocation
(11, 9),
6150
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "getDefault<int?>()").
WithLocation
(13, 9),
6153
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "getDefault<TOuter>()").
WithLocation
(14, 9));
6360
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "T").WithArguments("T", "C.M<T>()").
WithLocation
(11, 19));
6404
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "T").WithArguments("T", "C.M<T>()").
WithLocation
(12, 19));
6451
Diagnostic(ErrorCode.WRN_TypeParameterSameAsOuterMethodTypeParameter, "T").WithArguments("T", "C.M<T>()").
WithLocation
(12, 19));
6522
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "F1()").WithArguments("F1").
WithLocation
(11, 13));
6545
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "Local<int>()").WithArguments("Local").
WithLocation
(9, 13));
6574
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "Local<int>()").WithArguments("Local").
WithLocation
(14, 13));
6600
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "F1").WithArguments("F1").
WithLocation
(11, 24),
6603
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "F1").WithArguments("F1").
WithLocation
(12, 28));
6629
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "Local<int>").WithArguments("Local").
WithLocation
(11, 17),
6632
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "Local<string>").WithArguments("Local").
WithLocation
(12, 28));
6661
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "Local<int>").WithArguments("Local").
WithLocation
(15, 20));
6746
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "base").
WithLocation
(14, 25),
6749
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "this").
WithLocation
(15, 25),
6752
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "M").
WithLocation
(16, 25),
6755
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "base").
WithLocation
(17, 28),
6758
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "this").
WithLocation
(18, 28),
6761
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "M").
WithLocation
(19, 28));
6790
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "f").
WithLocation
(14, 31),
6793
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "l").WithArguments("l").
WithLocation
(15, 31));
6949
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "_").
WithLocation
(8, 37),
6952
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "_").WithArguments("_").
WithLocation
(17, 37));
7003
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("object", "C1.var").
WithLocation
(7, 37),
7006
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("object", "C1.var").
WithLocation
(8, 44),
7009
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("object", "string").
WithLocation
(18, 41),
7012
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("object", "string").
WithLocation
(19, 48));
7062
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await Task.Yield()").
WithLocation
(8, 21),
7065
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await Task.Yield()").
WithLocation
(9, 28),
7068
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await Task.Yield()").
WithLocation
(18, 21),
7071
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await Task.Yield()").
WithLocation
(19, 28));
7111
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "await").WithArguments("await").
WithLocation
(7, 17),
7114
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "await").WithArguments("await").
WithLocation
(8, 24),
7117
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(12, 23),
7120
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "await").WithArguments("await").
WithLocation
(12, 23),
7123
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(13, 30),
7126
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "await").WithArguments("await").
WithLocation
(13, 30),
7129
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "await").WithArguments("await").
WithLocation
(17, 17),
7132
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "await").WithArguments("await").
WithLocation
(18, 24),
7135
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(22, 23),
7138
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "await").WithArguments("await").
WithLocation
(22, 23),
7141
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(23, 30),
7144
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "await").WithArguments("await").
WithLocation
(23, 30));
7204
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "nameof(TParameter)").
WithLocation
(8, 20),
7207
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "nameof(TParameter)").
WithLocation
(12, 16)
7336
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(8, 13),
7339
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(9, 20),
7342
Diagnostic(ErrorCode.ERR_NameNotInContext, "c").WithArguments("c").
WithLocation
(13, 9),
7345
Diagnostic(ErrorCode.ERR_NameNotInContext, "d").WithArguments("d").
WithLocation
(14, 16)
7407
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(8, 13),
7410
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(12, 9)
7431
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(8, 13),
7434
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(12, 9)
7481
Diagnostic(ErrorCode.ERR_NameNotInContext, "positionA").WithArguments("positionA").
WithLocation
(8, 13),
7484
Diagnostic(ErrorCode.ERR_NameNotInContext, "positionB").WithArguments("positionB").
WithLocation
(12, 9)
7540
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "TParameter").WithArguments("TParameter").
WithLocation
(13, 20),
7543
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "TParameter").WithArguments("TParameter").
WithLocation
(17, 16)
7623
Diagnostic(ErrorCode.ERR_NameNotInContext, "TParameter").WithArguments("TParameter").
WithLocation
(8, 13),
7626
Diagnostic(ErrorCode.ERR_NameNotInContext, "TParameter").WithArguments("TParameter").
WithLocation
(12, 9)
7658
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TParameter").WithArguments("TParameter").
WithLocation
(8, 13),
7661
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TParameter").WithArguments("TParameter").
WithLocation
(12, 9)
7689
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TParameter").WithArguments("TParameterAttribute").
WithLocation
(8, 10),
7692
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TParameter").WithArguments("TParameter").
WithLocation
(8, 10),
7695
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TParameter").WithArguments("TParameterAttribute").
WithLocation
(12, 6),
7698
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TParameter").WithArguments("TParameter").
WithLocation
(12, 6)
7731
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TParameter").WithArguments("TParameter").
WithLocation
(8, 21),
7734
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TParameter").WithArguments("TParameter").
WithLocation
(12, 17)
7767
Diagnostic(ErrorCode.ERR_BadSKunknown, "TParameter").WithArguments("TParameter", "type").
WithLocation
(8, 36),
7770
Diagnostic(ErrorCode.ERR_NameNotInContext, "TParameter").WithArguments("TParameter").
WithLocation
(11, 29)
7805
Diagnostic(ErrorCode.ERR_BadSKunknown, "TParameter").WithArguments("TParameter", "type").
WithLocation
(10, 36)
7863
Diagnostic(ErrorCode.ERR_AttrArgWithTypeVars, "typeof(TParameter)").WithArguments("TParameter").
WithLocation
(8, 36),
7866
Diagnostic(ErrorCode.ERR_AttrArgWithTypeVars, "typeof(TParameter)").WithArguments("TParameter").
WithLocation
(11, 29)
7897
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(TParameter)").WithArguments("TParameter").
WithLocation
(8, 36),
7900
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(TParameter)").WithArguments("TParameter").
WithLocation
(11, 29)
7953
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "TParameter").WithArguments("TParameter").
WithLocation
(8, 33),
7956
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "TParameter").WithArguments("TParameter").
WithLocation
(11, 26)
8054
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TParameter").WithArguments("TParameter").
WithLocation
(8, 20),
8057
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TParameter").WithArguments("TParameter").
WithLocation
(12, 16)
8090
Diagnostic(ErrorCode.ERR_BadSKunknown, "TParameter").WithArguments("TParameter", "type").
WithLocation
(8, 24),
8093
Diagnostic(ErrorCode.ERR_NameNotInContext, "TParameter").WithArguments("TParameter").
WithLocation
(11, 17)
8178
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "TParameter").WithArguments("TParameter").
WithLocation
(8, 21),
8181
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "TParameter").WithArguments("TParameter").
WithLocation
(11, 14)
8241
Diagnostic(ErrorCode.ERR_BadSKunknown, "TParameter").WithArguments("TParameter", "type").
WithLocation
(8, 47),
8244
Diagnostic(ErrorCode.ERR_NameNotInContext, "TParameter").WithArguments("TParameter").
WithLocation
(11, 40)
8279
Diagnostic(ErrorCode.ERR_BadSKunknown, "TParameter").WithArguments("TParameter", "type").
WithLocation
(10, 43)
8341
Diagnostic(ErrorCode.ERR_BadSKunknown, "TParameter").WithArguments("TParameter", "type").
WithLocation
(10, 43)
8390
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "TParameter").WithArguments("TParameter").
WithLocation
(2, 5)
8412
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "TParameter").WithArguments("TParameter").
WithLocation
(2, 2)
8480
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "TParameter").WithArguments("TParameter").
WithLocation
(2, 12)
8513
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "TParameter").WithArguments("TParameter").
WithLocation
(2, 2)
8534
Diagnostic(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, "My<TParameter>").WithArguments("TParameter").
WithLocation
(2, 2)
8560
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "TParameter").WithArguments("TParameter").
WithLocation
(2, 5)
8650
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(7, 14)
8689
Diagnostic(ErrorCode.ERR_NameNotInContext, "nameof").WithArguments("nameof").
WithLocation
(6, 13),
8692
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(7, 14)
8730
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "parameter").WithArguments("parameter").
WithLocation
(9, 36),
8733
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "parameter").WithArguments("parameter").
WithLocation
(13, 29)
8772
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Constant").WithArguments("int", "Constant").
WithLocation
(13, 30),
8775
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Constant").WithArguments("int", "Constant").
WithLocation
(17, 26)
8837
Diagnostic(ErrorCode.ERR_NameNotInContext, "positionA").WithArguments("positionA").
WithLocation
(8, 13),
8840
Diagnostic(ErrorCode.ERR_NameNotInContext, "positionB").WithArguments("positionB").
WithLocation
(12, 9)
9044
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(6, 35),
9047
Diagnostic(ErrorCode.ERR_NameNotInContext, "My").WithArguments("My").
WithLocation
(6, 36),
9050
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(6, 46),
9053
Diagnostic(ErrorCode.ERR_SemicolonExpected, "delegate").
WithLocation
(6, 59),
9056
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 81)
9140
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(8, 13),
9143
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(12, 9)
9175
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(8, 13),
9178
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(12, 9)
9206
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameterAttribute").
WithLocation
(8, 10),
9209
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(8, 10),
9212
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameterAttribute").
WithLocation
(12, 6),
9215
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(12, 6)
9246
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(8, 24),
9249
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(11, 17)
9309
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "TParameter").WithArguments("TParameter").
WithLocation
(8, 61),
9312
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "TParameter").WithArguments("TParameter").
WithLocation
(11, 54)
9345
Diagnostic(ErrorCode.ERR_NameNotInContext, "positionA").WithArguments("positionA").
WithLocation
(8, 24),
9348
Diagnostic(ErrorCode.ERR_NameNotInContext, "positionB").WithArguments("positionB").
WithLocation
(11, 17)
9435
Diagnostic(ErrorCode.ERR_NameNotInContext, "value").WithArguments("value").
WithLocation
(4, 16),
9438
Diagnostic(ErrorCode.ERR_NameNotInContext, "value").WithArguments("value").
WithLocation
(7, 32),
9441
Diagnostic(ErrorCode.ERR_NameNotInContext, "value").WithArguments("value").
WithLocation
(9, 32),
9444
Diagnostic(ErrorCode.ERR_NameNotInContext, "value").WithArguments("value").
WithLocation
(11, 32)
9466
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "Property4").WithArguments("C.Property4").
WithLocation
(4, 9),
9469
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "unknown").
WithLocation
(4, 41)
9603
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[My(nameof(parameter))]").
WithLocation
(6, 27)
9663
Diagnostic(ErrorCode.ERR_NameNotInContext, "positionA").WithArguments("positionA").
WithLocation
(8, 24),
9666
Diagnostic(ErrorCode.ERR_NameNotInContext, "positionB").WithArguments("positionB").
WithLocation
(11, 17)
9724
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameterAttribute").
WithLocation
(8, 21),
9727
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(8, 21),
9730
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameterAttribute").
WithLocation
(11, 14),
9733
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(11, 14)
9758
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(8, 9),
9761
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(11, 5)
9784
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(8, 20),
9787
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(11, 25)
9816
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "local<object>").WithArguments("local<TParameter>(int)", "parameter", "TParameter", "object").
WithLocation
(6, 9),
9819
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M2<object>").WithArguments("C.M2<TParameter>(int)", "parameter", "TParameter", "object").
WithLocation
(7, 9),
9822
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(9, 66),
9825
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(12, 59)
9856
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "parameter").WithArguments("parameter", "string").
WithLocation
(8, 27),
9859
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(8, 47),
9862
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "parameter").WithArguments("parameter", "string").
WithLocation
(11, 20),
9865
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(11, 40)
9896
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(8, 46),
9899
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(11, 39)
9930
Diagnostic(ErrorCode.ERR_BadArgType, "local").WithArguments("1", "method group", "string").
WithLocation
(8, 36),
9933
Diagnostic(ErrorCode.ERR_BadArgType, "M2").WithArguments("1", "method group", "string").
WithLocation
(11, 29)
9985
Diagnostic(ErrorCode.ERR_BadArgType, "local").WithArguments("1", "method group", "string").
WithLocation
(8, 24),
9988
Diagnostic(ErrorCode.ERR_BadArgType, "M2").WithArguments("1", "method group", "string").
WithLocation
(11, 17)
10042
Diagnostic(ErrorCode.ERR_BadArgType, "local").WithArguments("1", "method group", "string").
WithLocation
(8, 13),
10045
Diagnostic(ErrorCode.ERR_BadArgType, "M2").WithArguments("1", "method group", "string").
WithLocation
(12, 9)
10136
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(14, 27)
10208
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(13, 27)
10245
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(13, 27)
10282
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(11, 27)
Semantics\LockTests.cs (13)
385
Diagnostic(ErrorCode.ERR_CloseParenExpected, "return").
WithLocation
(9, 26),
388
Diagnostic(ErrorCode.ERR_CloseParenExpected, "return").
WithLocation
(9, 26),
391
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(9, 35),
394
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(9, 35),
397
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(9, 47),
400
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(9, 47),
403
Diagnostic(ErrorCode.ERR_NameNotInContext, "yield").WithArguments("yield").
WithLocation
(9, 20),
406
Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").
WithLocation
(9, 26),
409
Diagnostic(ErrorCode.WRN_UnreachableCode, "ToString").
WithLocation
(9, 37)
779
Diagnostic(ErrorCode.ERR_LockNeedsReference, "monitor2").WithArguments("T").
WithLocation
(16, 15)
784
Diagnostic(ErrorCode.ERR_LockNeedsReference, "monitor2").WithArguments("T").
WithLocation
(16, 15),
787
Diagnostic(ErrorCode.ERR_LockNeedsReference, "monitor1").WithArguments("T").
WithLocation
(6, 15),
790
Diagnostic(ErrorCode.ERR_LockNeedsReference, "null").WithArguments("<null>").
WithLocation
(9, 15)
Semantics\LookupTests.cs (3)
1518
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "@var").WithArguments("var").
WithLocation
(1, 39)
1618
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "List<int>").WithArguments("List<>").
WithLocation
(1, 11),
1621
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using A = List<int>;").
WithLocation
(1, 1));
Semantics\MethodBodyModelTests.cs (2)
959
Diagnostic(ErrorCode.ERR_ObjectRequired, "f1").WithArguments("Outer.f1").
WithLocation
(10, 21)
997
Diagnostic(ErrorCode.ERR_AmbigUDConv, "(D) Main").WithArguments("D.explicit operator D(Goo)", "D.implicit operator D(System.Action)", "method group", "D").
WithLocation
(23, 15)
Semantics\MethodTypeInferenceTests.cs (3)
492
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Apply").WithArguments("C.Apply<T>(C.F<T>)").
WithLocation
(8, 7));
831
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "M").WithArguments("M").
WithLocation
(2, 6),
834
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "tuple").
WithLocation
(5, 28)
Semantics\MultiDimensionalArrayTests.cs (19)
425
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "Test1").WithArguments("C.Test1()", "Test.Test1()", "double[*]").
WithLocation
(3, 30)
445
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "Test2").WithArguments("C.Test2(double[])").
WithLocation
(3, 28)
476
Diagnostic(ErrorCode.ERR_NoImplicitConv, "t.Test1()").WithArguments("double[*]", "double[]").
WithLocation
(6, 23),
479
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(double[])t.Test1()").WithArguments("double[*]", "double[]").
WithLocation
(7, 23),
482
Diagnostic(ErrorCode.ERR_NoImplicitConv, "t.Test1()").WithArguments("double[*]", "System.Collections.Generic.IList<double>").
WithLocation
(8, 55),
485
Diagnostic(ErrorCode.ERR_BadArgType, "a4").WithArguments("1", "double[]", "double[*]").
WithLocation
(10, 17),
488
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(System.Collections.Generic.IList<double>)t.Test1()").WithArguments("double[*]", "System.Collections.Generic.IList<double>").
WithLocation
(11, 18),
491
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ilist").WithArguments("System.Collections.Generic.IList<double>", "double[*]").
WithLocation
(14, 19),
494
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new [] { 3.0d }").WithArguments("double[]", "double[*]").
WithLocation
(16, 19)
552
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("C.M1<T>(T[])").
WithLocation
(10, 9),
555
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("C.M2<T>(T, T)").
WithLocation
(13, 9),
558
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("C.M2<T>(T, T)").
WithLocation
(14, 9),
561
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M3").WithArguments("C.M3<T>(System.Collections.Generic.IList<T>)").
WithLocation
(16, 9),
564
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Test.M1<T>(T[*])").
WithLocation
(18, 14),
567
Diagnostic(ErrorCode.ERR_BadArgType, "sz").WithArguments("2", "double[]", "double[*]").
WithLocation
(20, 21),
570
Diagnostic(ErrorCode.ERR_BadArgType, "md").WithArguments("1", "double[*]", "double[]").
WithLocation
(21, 17),
573
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M2").WithArguments("Test.M2<T>(T[], T[*])").
WithLocation
(23, 14)
750
Diagnostic(ErrorCode.ERR_BadArgType, "d").WithArguments("1", "double", "params double[*]").
WithLocation
(7, 17),
753
Diagnostic(ErrorCode.ERR_BadArgType, "new double [] {d}").WithArguments("1", "double[]", "params double[*]").
WithLocation
(8, 17)
Semantics\NameCollisionTests.cs (99)
458
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "name4").WithArguments("name4").
WithLocation
(4, 51),
461
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "name3").WithArguments("name3").
WithLocation
(7, 17),
464
Diagnostic(ErrorCode.ERR_LocalSameNameAsTypeParam, "name3").WithArguments("name3").
WithLocation
(18, 26),
763
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "name4").WithArguments("name4").
WithLocation
(7, 9),
766
Diagnostic(ErrorCode.ERR_NameNotInContext, "name6").WithArguments("name6").
WithLocation
(7, 17),
769
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(11, 33),
772
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name2").WithArguments("name2").
WithLocation
(11, 49),
775
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(16, 31),
778
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "name5").WithArguments("name5").
WithLocation
(18, 43),
781
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name2").WithArguments("name2").
WithLocation
(22, 30),
784
Diagnostic(ErrorCode.ERR_LocalDuplicate, "name3").WithArguments("name3").
WithLocation
(24, 55),
787
Diagnostic(ErrorCode.ERR_NameNotInContext, "name6").WithArguments("name6").
WithLocation
(29, 9),
790
Diagnostic(ErrorCode.ERR_NameNotInContext, "name3").WithArguments("name3").
WithLocation
(29, 17),
793
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "name6").WithArguments("name6").
WithLocation
(19, 32)
837
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(7, 22),
840
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name2").WithArguments("name2").
WithLocation
(9, 26),
843
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(11, 21),
846
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(17, 17),
849
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name2").WithArguments("name2").
WithLocation
(24, 21),
852
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name3").WithArguments("name3").
WithLocation
(27, 25),
855
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(32, 17),
858
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name2").WithArguments("name2").
WithLocation
(32, 24)
864
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(7, 22),
867
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name2").WithArguments("name2").
WithLocation
(9, 26),
870
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(11, 21),
873
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name3").WithArguments("name3").
WithLocation
(27, 25)
897
Diagnostic(ErrorCode.ERR_DuplicateParamName, "name2").WithArguments("name2").
WithLocation
(5, 57),
900
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(9, 56),
903
Diagnostic(ErrorCode.ERR_DuplicateParamName, "name4").WithArguments("name4").
WithLocation
(9, 70),
906
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name3").WithArguments("name3").
WithLocation
(9, 77)
912
Diagnostic(ErrorCode.ERR_DuplicateParamName, "name2").WithArguments("name2").
WithLocation
(5, 57),
915
Diagnostic(ErrorCode.ERR_DuplicateParamName, "name4").WithArguments("name4").
WithLocation
(9, 70)
937
Diagnostic(ErrorCode.ERR_DuplicateParamName, "x").WithArguments("x").
WithLocation
(7, 28),
940
Diagnostic(ErrorCode.ERR_DuplicateParamName, "x").WithArguments("x").
WithLocation
(8, 20)
1035
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name3").WithArguments("name3").
WithLocation
(24, 21),
1038
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name3").WithArguments("name3").
WithLocation
(39, 26),
1041
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "name1").WithArguments("Derived.name1").
WithLocation
(6, 17)
1102
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(15, 27),
1105
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name2").WithArguments("name2").
WithLocation
(16, 36),
1108
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "name2").WithArguments("name2").
WithLocation
(18, 13),
1111
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name3").WithArguments("name3").
WithLocation
(27, 31),
1114
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(38, 27),
1117
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name2").WithArguments("name2").
WithLocation
(38, 53),
1120
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name3").WithArguments("name3").
WithLocation
(42, 30),
1123
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "name2").WithArguments("name2").
WithLocation
(44, 31));
1128
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "name2").WithArguments("name2").
WithLocation
(18, 13),
1131
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name3").WithArguments("name3").
WithLocation
(27, 31),
1134
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name3").WithArguments("name3").
WithLocation
(42, 30),
1137
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "name2").WithArguments("name2").
WithLocation
(44, 31));
1171
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(10, 23));
1237
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name2").WithArguments("name2").
WithLocation
(11, 26),
1240
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name3").WithArguments("name3").
WithLocation
(13, 25),
1243
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name4").WithArguments("name4").
WithLocation
(13, 36),
1246
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name5").WithArguments("name5").
WithLocation
(13, 47),
1249
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(18, 26));
1274
Diagnostic(ErrorCode.WRN_PrecedenceInversion, @"from name in ""string""").WithArguments("from").
WithLocation
(11, 51),
1277
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "name").WithArguments("name").
WithLocation
(10, 34),
1280
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "name").WithArguments("name").
WithLocation
(11, 56),
1283
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "name").WithArguments("name").
WithLocation
(12, 69));
1340
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(17, 21),
1343
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "name1").WithArguments("name1").
WithLocation
(17, 21),
1346
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name2").WithArguments("name2").
WithLocation
(20, 20),
1349
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "name1").WithArguments("name1").
WithLocation
(22, 17),
1352
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "name1").WithArguments("name1").
WithLocation
(27, 17)
1431
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclarationAndHidesField, "name1").WithArguments("name1", "Class.name1").
WithLocation
(10, 18),
1434
Diagnostic(ErrorCode.ERR_LocalDuplicate, "name2").WithArguments("name2").
WithLocation
(18, 21),
1437
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name4").WithArguments("name4").
WithLocation
(31, 29),
1440
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name5").WithArguments("name5").
WithLocation
(31, 40),
1443
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name6").WithArguments("name6").
WithLocation
(36, 26)
1563
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name4").WithArguments("name4").
WithLocation
(27, 21),
1566
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name1").WithArguments("name1").
WithLocation
(38, 34),
1569
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "name5").WithArguments("name5").
WithLocation
(40, 25)
1699
Diagnostic(ErrorCode.ERR_QueryDuplicateRangeVariable, "name2").WithArguments("name2").
WithLocation
(26, 34),
1702
Diagnostic(ErrorCode.ERR_QueryDuplicateRangeVariable, "name2").WithArguments("name2").
WithLocation
(29, 34)
1779
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(10, 24),
1782
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "M(x1 => { })").WithArguments("long", "int").
WithLocation
(10, 22),
1785
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x1").WithArguments("x1").
WithLocation
(8, 13),
1788
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(16, 24),
1791
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "M(x2 => { })").WithArguments("long", "int").
WithLocation
(16, 22),
1794
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x2").WithArguments("x2").
WithLocation
(18, 13)
1800
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "M(x1 => { })").WithArguments("long", "int").
WithLocation
(10, 22),
1803
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x1").WithArguments("x1").
WithLocation
(8, 13),
1806
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "M(x2 => { })").WithArguments("long", "int").
WithLocation
(16, 22),
1809
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x2").WithArguments("x2").
WithLocation
(18, 13)
1842
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(11, 24),
1845
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("A.M(System.Action<double>)", "A.M(System.Action<long>)").
WithLocation
(11, 22),
1848
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x1").WithArguments("x1").
WithLocation
(9, 13),
1851
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(17, 24),
1854
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("A.M(System.Action<double>)", "A.M(System.Action<long>)").
WithLocation
(17, 22),
1857
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x2").WithArguments("x2").
WithLocation
(19, 13)
1863
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("A.M(System.Action<double>)", "A.M(System.Action<long>)").
WithLocation
(11, 22),
1866
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x1").WithArguments("x1").
WithLocation
(9, 13),
1869
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("A.M(System.Action<double>)", "A.M(System.Action<long>)").
WithLocation
(17, 22),
1872
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x2").WithArguments("x2").
WithLocation
(19, 13)
1939
Diagnostic(ErrorCode.ERR_NonInvocableMemberCalled, "Assembly").WithArguments("System.Reflection.Assembly").
WithLocation
(9, 41)
1970
Diagnostic(ErrorCode.ERR_AmbigContext, "Nested").WithArguments("Nested", "Static<int>.Nested", "Static<string>.Nested").
WithLocation
(17, 21));
1999
Diagnostic(ErrorCode.WRN_DuplicateUsing, "Static<System.String>").WithArguments("Static<string>").
WithLocation
(3, 14),
2002
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static Static<System.String>;").
WithLocation
(3, 1));
2034
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static Static<string>;").
WithLocation
(2, 1));
Semantics\NamedAndOptionalTests.cs (34)
177
Diagnostic(ErrorCode.ERR_BadNamedArgument, "optParam3").WithArguments("Goo", "optParam3").
WithLocation
(37, 15),
180
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "11111").WithArguments("7.2").
WithLocation
(39, 30),
183
Diagnostic(ErrorCode.ERR_BadNamedArgument, "optArg1").WithArguments("Goo", "optArg1").
WithLocation
(39, 15)
199
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new string('c',5)").WithArguments("s").
WithLocation
(5, 30));
229
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "f").WithArguments("fg", "C.F").
WithLocation
(10, 9),
232
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("my", "C.M(int, int, int)").
WithLocation
(11, 9),
235
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "C").WithArguments("cy", "C.C(int, int, int)").
WithLocation
(12, 13));
259
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "C").WithArguments("C").
WithLocation
(4, 15));
278
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "C").WithArguments("C").
WithLocation
(4, 15),
281
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "x").WithArguments("x").
WithLocation
(7, 16));
743
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "PartialMethod").WithArguments("void C.PartialMethod(int x)", "void C.PartialMethod(int y)").
WithLocation
(9, 25),
746
Diagnostic(ErrorCode.ERR_BadNamedArgument, "y").WithArguments("PartialMethod", "y").
WithLocation
(13, 23)
836
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "F()").WithArguments("value").
WithLocation
(4, 28),
838
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M2()").WithArguments("value").
WithLocation
(5, 30));
853
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "F()").WithArguments("value").
WithLocation
(4, 35),
855
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M2()").WithArguments("value").
WithLocation
(5, 37));
876
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new Vector3() { X = 1f, Y = 1f, Z = 1f}").WithArguments("vector").
WithLocation
(3, 39));
967
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").
WithLocation
(9, 21),
970
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2").
WithLocation
(9, 54),
973
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "Optional").
WithLocation
(5, 21)
1386
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "M1()").WithArguments("System.Runtime.InteropServices.UnknownWrapper", ".ctor").
WithLocation
(15, 9),
1389
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "M2()").WithArguments("System.Runtime.InteropServices.DispatchWrapper", ".ctor").
WithLocation
(16, 9),
1392
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "M3()").WithArguments("System.Type", "Missing").
WithLocation
(17, 9));
1430
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("o", "D.M(ref object)").
WithLocation
(25, 11));
2443
Diagnostic(ErrorCode.ERR_NoImplicitConv, "p.M1()").WithArguments("string", "int").
WithLocation
(7, 31));
2459
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "F()").WithArguments("param").
WithLocation
(4, 36));
2485
Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "obj").WithArguments("obj", "object").
WithLocation
(4, 20),
2488
Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "obj").WithArguments("obj", "object").
WithLocation
(8, 14));
2525
Diagnostic(ErrorCode.ERR_NotNullConstRefField, @"""world""").WithArguments("C.y", "System.Collections.Generic.IEnumerable<char>").
WithLocation
(6, 33),
2528
Diagnostic(ErrorCode.ERR_NotNullConstRefField, @"""world""").WithArguments("C.y3", "object").
WithLocation
(8, 23),
2531
Diagnostic(ErrorCode.ERR_NotNullConstRefField, @"""world""").WithArguments("C.y4", "dynamic").
WithLocation
(9, 24),
2534
Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "x").WithArguments("x", "System.Collections.Generic.IEnumerable<char>").
WithLocation
(11, 30),
2537
Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "x").WithArguments("x", "object").
WithLocation
(19, 20),
2540
Diagnostic(ErrorCode.ERR_NotNullRefDefaultParameter, "x").WithArguments("x", "dynamic").
WithLocation
(23, 21)
Semantics\NameLengthTests.cs (61)
76
Diagnostic(ErrorCode.WRN_UnreferencedField, s_longSymbolName).WithArguments("Fields." + s_longSymbolName).
WithLocation
(6, 9),
79
Diagnostic(ErrorCode.WRN_UnreferencedField, s_longSymbolName + 1).WithArguments("Fields." + s_longSymbolName + 1).
WithLocation
(7, 9),
82
Diagnostic(ErrorCode.WRN_UnreferencedEvent, s_longSymbolName).WithArguments("FieldLikeEvents." + s_longSymbolName).
WithLocation
(12, 18),
85
Diagnostic(ErrorCode.WRN_UnreferencedEvent, s_longSymbolName + 1).WithArguments("FieldLikeEvents." + s_longSymbolName + 1).
WithLocation
(13, 18));
89
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(7, 9),
92
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName).WithArguments("add_" + s_longSymbolName).
WithLocation
(12, 18),
95
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName).WithArguments("remove_" + s_longSymbolName).
WithLocation
(12, 18),
98
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(13, 18),
101
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(13, 18), // Would be nice not to report on the backing field.
104
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments("add_" + s_longSymbolName + 1).
WithLocation
(13, 18),
107
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments("remove_" + s_longSymbolName + 1).
WithLocation
(13, 18),
110
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "add").WithArguments("add_" + s_longSymbolName).
WithLocation
(18, 1044),
113
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "remove").WithArguments("remove_" + s_longSymbolName).
WithLocation
(18, 1052),
116
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(19, 18),
119
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "add").WithArguments("add_" + s_longSymbolName + 1).
WithLocation
(19, 1045),
122
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "remove").WithArguments("remove_" + s_longSymbolName + 1).
WithLocation
(19, 1053),
125
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName).WithArguments("<" + s_longSymbolName + ">k__BackingField").
WithLocation
(24, 9),
128
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "get").WithArguments("get_" + s_longSymbolName).
WithLocation
(24, 1035),
131
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "set").WithArguments("set_" + s_longSymbolName).
WithLocation
(24, 1040),
134
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(25, 9),
137
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments("<" + s_longSymbolName + "1>k__BackingField").
WithLocation
(25, 9),
140
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "get").WithArguments("get_" + s_longSymbolName + 1).
WithLocation
(25, 1036),
143
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "set").WithArguments("set_" + s_longSymbolName + 1).
WithLocation
(25, 1041),
146
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "get").WithArguments("get_" + s_longSymbolName).
WithLocation
(30, 1035),
149
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "set").WithArguments("set_" + s_longSymbolName).
WithLocation
(30, 1053),
152
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(31, 9),
155
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "get").WithArguments("get_" + s_longSymbolName + 1).
WithLocation
(31, 1036),
158
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "set").WithArguments("set_" + s_longSymbolName + 1).
WithLocation
(31, 1054),
161
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(37, 10),
167
Diagnostic(ErrorCode.WRN_UnreferencedField, s_longSymbolName).WithArguments("Fields." + s_longSymbolName).
WithLocation
(6, 9),
170
Diagnostic(ErrorCode.WRN_UnreferencedField, s_longSymbolName + 1).WithArguments("Fields." + s_longSymbolName + 1).
WithLocation
(7, 9),
173
Diagnostic(ErrorCode.WRN_UnreferencedEvent, s_longSymbolName).WithArguments("FieldLikeEvents." + s_longSymbolName).
WithLocation
(12, 18),
176
Diagnostic(ErrorCode.WRN_UnreferencedEvent, s_longSymbolName + 1).WithArguments("FieldLikeEvents." + s_longSymbolName + 1).
WithLocation
(13, 18));
226
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, substring0 + 1).WithArguments(substring0 + 1).
WithLocation
(3, 7),
229
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, substring2 + 1).WithArguments("N." + substring2 + 1).
WithLocation
(8, 12),
232
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, substring0 + 1).WithArguments(substring0 + 1).
WithLocation
(14, 10),
235
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, substring2 + 1).WithArguments(substring2 + "1`1").
WithLocation
(18, 11));
275
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, name0 + 1).WithArguments("I." + name0 + 1).
WithLocation
(20, 12),
278
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, name1 + 1).WithArguments("N.J<C>." + name1 + 1).
WithLocation
(23, 17));
317
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(9, 24),
319
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "Short2").WithArguments(s_longSymbolName + 1).
WithLocation
(17, 24),
321
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(25, 24));
345
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(5, 17),
348
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(7, 19),
351
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(9, 27),
354
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(9, 27)); // Second report is for Invoke method. Not ideal, but not urgent.
379
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(2, 1034),
382
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(6, 1042),
385
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, s_longSymbolName + 1).WithArguments(s_longSymbolName + 1).
WithLocation
(10, 1037));
410
Diagnostic(ErrorCode.WRN_PdbLocalNameTooLong, s_longLocalName + 1).WithArguments(s_longLocalName + 1).
WithLocation
(7, 13));
435
Diagnostic(ErrorCode.WRN_PdbLocalNameTooLong, s_longLocalName + 1).WithArguments(s_longLocalName + 1).
WithLocation
(7, 19));
465
Diagnostic(ErrorCode.ERR_MetadataNameTooLong, "() => p + 1").WithArguments("<" + longName + "1>b__0").
WithLocation
(13, 16));
490
Diagnostic(ErrorCode.ERR_MetadataNameTooLong).WithArguments("<" + longName + 1 + ">i__Field").
WithLocation
(1, 1),
492
Diagnostic(ErrorCode.ERR_MetadataNameTooLong).WithArguments("<" + longName + 1 + ">i__Field").
WithLocation
(1, 1));
536
Diagnostic(ErrorCode.ERR_MetadataNameTooLong).WithArguments("<" + longName + 1 + ">d__1").
WithLocation
(1, 1),
538
Diagnostic(ErrorCode.ERR_MetadataNameTooLong).WithArguments("<" + longName + 1 + ">d__1").
WithLocation
(1, 1));
560
Diagnostic(ErrorCode.ERR_MetadataNameTooLong).WithArguments("<" + longName + 1 + ">e__FixedBuffer").
WithLocation
(1, 1));
580
Diagnostic(ErrorCode.ERR_MetadataNameTooLong).WithArguments(s_longSymbolName + 1).
WithLocation
(1, 1),
582
Diagnostic(ErrorCode.ERR_MetadataNameTooLong).WithArguments(s_longPathName + 2).
WithLocation
(1, 1),
584
Diagnostic(ErrorCode.ERR_MetadataNameTooLong).WithArguments(s_longSymbolName + 3).
WithLocation
(1, 1),
586
Diagnostic(ErrorCode.ERR_MetadataNameTooLong).WithArguments(s_longPathName + 4).
WithLocation
(1, 1));
Semantics\NameOfTests.cs (49)
243
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(12, 20),
246
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "void").WithArguments("void").
WithLocation
(13, 20),
249
Diagnostic(ErrorCode.ERR_TypeExpected, ">").
WithLocation
(17, 66),
252
Diagnostic(ErrorCode.ERR_BadArity, "Action<>").WithArguments("System.Action<T>", "type", "1").
WithLocation
(11, 27),
255
Diagnostic(ErrorCode.ERR_NameNotInContext, "List<int>").WithArguments("List").
WithLocation
(16, 20),
258
Diagnostic(ErrorCode.ERR_BadAccess, "s").WithArguments("Test<object>.s").
WithLocation
(19, 33),
261
Diagnostic(ErrorCode.ERR_NameNotInContext, "nameof").WithArguments("nameof").
WithLocation
(22, 20),
264
Diagnostic(ErrorCode.ERR_NoSuchMember, "s2").WithArguments("Program", "s2").
WithLocation
(23, 28),
267
Diagnostic(ErrorCode.ERR_NoSuchMember, "Something").WithArguments("object", "Something").
WithLocation
(24, 27),
270
Diagnostic(ErrorCode.ERR_GlobalSingleTypeNameNotFound, "Something").WithArguments("Something").
WithLocation
(25, 28),
273
Diagnostic(ErrorCode.ERR_AliasNotFound, "global2").WithArguments("global2").
WithLocation
(26, 20),
276
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "System.Collections2").WithArguments("Collections2", "System").
WithLocation
(27, 20),
279
Diagnostic(ErrorCode.ERR_NameNotInContext, "List2<>").WithArguments("List2").
WithLocation
(28, 20),
282
Diagnostic(ErrorCode.ERR_AliasQualifiedNameNotAnExpression, "global::Program").
WithLocation
(31, 20),
285
Diagnostic(ErrorCode.ERR_BadArity, "Test<>").WithArguments("Test<T>", "type", "1").
WithLocation
(32, 20),
288
Diagnostic(ErrorCode.ERR_BadAccess, "s").WithArguments("Test<T>.s").
WithLocation
(32, 27),
291
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "b").WithArguments("b").
WithLocation
(33, 20),
294
Diagnostic(ErrorCode.ERR_NameofMethodGroupWithTypeParameters, "System.Linq.Enumerable.Select<int, int>").
WithLocation
(35, 20),
297
Diagnostic(ErrorCode.ERR_NameNotInContext, "nameof").WithArguments("nameof").
WithLocation
(43, 13),
300
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "this").
WithLocation
(44, 20),
303
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "typeof(string)").
WithLocation
(47, 20),
306
Diagnostic(ErrorCode.ERR_SubexpressionNotInNameof, "a[4]").
WithLocation
(49, 20)
429
Diagnostic(ErrorCode.ERR_BadArgCount, "nameof").WithArguments("nameof", "1").
WithLocation
(104, 31),
432
Diagnostic(ErrorCode.ERR_BadEventUsageNoField, "nameof").WithArguments("NameofEvent.nameof").
WithLocation
(74, 9),
435
Diagnostic(ErrorCode.ERR_BadDelArgCount, "nameof").WithArguments("System.Action", "1").
WithLocation
(74, 9),
438
Diagnostic(ErrorCode.ERR_MethodNameExpected, "nameof").
WithLocation
(81, 27),
441
Diagnostic(ErrorCode.ERR_BadArgCount, "nameof").WithArguments("nameof", "1").
WithLocation
(96, 31),
444
Diagnostic(ErrorCode.ERR_MethodNameExpected, "nameof").
WithLocation
(89, 27)
530
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "nameof(Program)").WithArguments("nameof operator", "6").
WithLocation
(4, 24)
645
Diagnostic(ErrorCode.ERR_IllegalStatement, "nameof(N)").
WithLocation
(7, 9)
667
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "nameof(N)").WithArguments("nameof operator", "6").
WithLocation
(7, 9),
670
Diagnostic(ErrorCode.ERR_IllegalStatement, "nameof(N)").
WithLocation
(7, 9)
747
Diagnostic(ErrorCode.ERR_NameofExtensionMethod, "a.Extension").
WithLocation
(13, 20)
794
Diagnostic(ErrorCode.ERR_NameofExtensionMethod, "a.Extension").
WithLocation
(22, 28)
831
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Extension").WithArguments("A", "Extension").
WithLocation
(14, 22)
864
Diagnostic(ErrorCode.ERR_BadTypeReference, "Nested").WithArguments("Nested", "A.Nested").
WithLocation
(10, 22),
867
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").
WithLocation
(9, 11)
913
Diagnostic(ErrorCode.ERR_NameofExtensionMethod, "A.Extension").
WithLocation
(21, 28)
946
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Extension").WithArguments("A", "Extension").
WithLocation
(9, 22)
985
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Extension").WithArguments("A", "Extension").
WithLocation
(16, 22)
1064
Diagnostic(ErrorCode.ERR_BadAccess, "Method").WithArguments("Class.Method()").
WithLocation
(8, 36)
1090
Diagnostic(ErrorCode.ERR_AmbigMember, "Property").WithArguments("I1.Property", "I2.Property").
WithLocation
(13, 33)
1236
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "MessageType").
WithLocation
(14, 19),
1239
Diagnostic(ErrorCode.ERR_AnonDelegateCantUse, "x").WithArguments("x").
WithLocation
(20, 56),
1242
Diagnostic(ErrorCode.ERR_BadArgType, "myStruct.MessageType").WithArguments("1", "char*", "char[]").
WithLocation
(26, 23));
1407
Diagnostic(ErrorCode.ERR_NameNotInContext, "dynamic").WithArguments("dynamic").
WithLocation
(4, 33)
1466
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "typeof(int)").
WithLocation
(4, 34),
1469
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "typeof(nint)").
WithLocation
(5, 34),
1472
Diagnostic(ErrorCode.ERR_BadDynamicTypeof, "typeof(dynamic)").
WithLocation
(6, 34));
Semantics\NativeIntegerTests.cs (398)
77
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nint").WithArguments("native-sized integers", "9.0").
WithLocation
(3, 5),
80
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nint").WithArguments("native-sized integers", "9.0").
WithLocation
(3, 14),
83
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nuint").WithArguments("native-sized integers", "9.0").
WithLocation
(3, 22));
683
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IntPtr").WithArguments("IntPtr", "System").
WithLocation
(3, 20),
686
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "nint").WithArguments("System.IntPtr").
WithLocation
(3, 30),
689
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "UIntPtr").WithArguments("UIntPtr", "System").
WithLocation
(4, 20),
692
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "nuint").WithArguments("System.UIntPtr").
WithLocation
(4, 31)
899
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "F1").WithArguments("System.IntPtr").
WithLocation
(5, 13),
902
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "F2").WithArguments("System.UIntPtr").
WithLocation
(6, 13));
969
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "nint").WithArguments("System.IntPtr").
WithLocation
(3, 19),
972
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "nuint").WithArguments("System.UIntPtr").
WithLocation
(4, 19));
1016
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "F1").WithArguments("System.IntPtr").
WithLocation
(5, 13),
1019
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "F2").WithArguments("System.UIntPtr").
WithLocation
(6, 13));
1165
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "C").WithArguments("System.Void").
WithLocation
(1, 7),
1168
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.IntPtr").
WithLocation
(1, 11),
1171
Diagnostic(ErrorCode.ERR_NoTypeDef, "B").WithArguments("System.Object", "9ef8b1e0-1ae0-4af6-b9a1-00f2078f299e, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 11));
1240
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.Void").
WithLocation
(1, 7),
1243
Diagnostic(ErrorCode.ERR_NoTypeDef, "A").WithArguments("System.IntPtr", "c804cc09-8f73-44a1-9cfe-9567bed1def6, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 11));
1761
Diagnostic(ErrorCode.ERR_NoSuchMember, "Zero").WithArguments("nint", "Zero").
WithLocation
(5, 18),
1764
Diagnostic(ErrorCode.ERR_NoSuchMember, "Size").WithArguments("nint", "Size").
WithLocation
(6, 18),
1767
Diagnostic(ErrorCode.ERR_NoSuchMember, "Add").WithArguments("nint", "Add").
WithLocation
(9, 18),
1770
Diagnostic(ErrorCode.ERR_NoSuchMember, "Subtract").WithArguments("nint", "Subtract").
WithLocation
(10, 18),
1773
Diagnostic(ErrorCode.ERR_NoSuchMember, "Zero").WithArguments("nuint", "Zero").
WithLocation
(17, 19),
1776
Diagnostic(ErrorCode.ERR_NoSuchMember, "Size").WithArguments("nuint", "Size").
WithLocation
(18, 19),
1779
Diagnostic(ErrorCode.ERR_NoSuchMember, "Add").WithArguments("nuint", "Add").
WithLocation
(21, 19),
1782
Diagnostic(ErrorCode.ERR_NoSuchMember, "Subtract").WithArguments("nuint", "Subtract").
WithLocation
(22, 19));
1934
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToInt32").WithArguments("nint", "ToInt32").
WithLocation
(6, 15),
1937
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToInt64").WithArguments("nint", "ToInt64").
WithLocation
(7, 15),
1940
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToUInt32").WithArguments("nint", "ToUInt32").
WithLocation
(8, 15),
1943
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToUInt64").WithArguments("nint", "ToUInt64").
WithLocation
(9, 15),
1946
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToPointer").WithArguments("nint", "ToPointer").
WithLocation
(10, 15),
1949
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToInt32").WithArguments("nuint", "ToInt32").
WithLocation
(20, 15),
1952
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToInt64").WithArguments("nuint", "ToInt64").
WithLocation
(21, 15),
1955
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToUInt32").WithArguments("nuint", "ToUInt32").
WithLocation
(22, 15),
1958
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToUInt64").WithArguments("nuint", "ToUInt64").
WithLocation
(23, 15),
1961
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToPointer").WithArguments("nuint", "ToPointer").
WithLocation
(24, 15));
2060
Diagnostic(ErrorCode.WRN_EqualityOpWithoutEquals, "IntPtr").WithArguments("System.IntPtr").
WithLocation
(12, 26),
2063
Diagnostic(ErrorCode.WRN_EqualityOpWithoutGetHashCode, "IntPtr").WithArguments("System.IntPtr").
WithLocation
(12, 26),
2066
Diagnostic(ErrorCode.WRN_EqualityOpWithoutEquals, "UIntPtr").WithArguments("System.UIntPtr").
WithLocation
(28, 26),
2069
Diagnostic(ErrorCode.WRN_EqualityOpWithoutGetHashCode, "UIntPtr").WithArguments("System.UIntPtr").
WithLocation
(28, 26));
2116
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "nint").WithArguments("nint", "1").
WithLocation
(7, 17),
2119
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "nint").WithArguments("nint", "1").
WithLocation
(8, 17),
2122
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "nint").WithArguments("nint", "1").
WithLocation
(9, 17),
2125
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "nuint").WithArguments("nuint", "1").
WithLocation
(25, 17),
2128
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "nuint").WithArguments("nuint", "1").
WithLocation
(26, 17),
2131
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "nuint").WithArguments("nuint", "1").
WithLocation
(27, 17));
2333
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("nint", "P").
WithLocation
(16, 15),
2336
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("nint", "F").
WithLocation
(17, 15),
2339
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("nuint", "P").
WithLocation
(23, 15),
2342
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("nuint", "F").
WithLocation
(24, 15));
2549
Diagnostic(ErrorCode.ERR_NoSuchMember, "F1").WithArguments("nint", "F1").
WithLocation
(16, 22),
2552
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F2").WithArguments("nint", "F2").
WithLocation
(17, 19),
2555
Diagnostic(ErrorCode.ERR_NoSuchMember, "F1").WithArguments("nuint", "F1").
WithLocation
(28, 23),
2558
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F2").WithArguments("nuint", "F2").
WithLocation
(29, 19));
2621
Diagnostic(ErrorCode.ERR_NoSuchMember, "F1").WithArguments("nint", "F1").
WithLocation
(5, 18),
2624
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F2").WithArguments("nint", "F2").
WithLocation
(6, 15),
2627
Diagnostic(ErrorCode.ERR_NoSuchMember, "F1").WithArguments("nuint", "F1").
WithLocation
(11, 19),
2630
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F2").WithArguments("nuint", "F2").
WithLocation
(12, 15));
2723
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M<nint>").WithArguments("nint", "M").
WithLocation
(5, 15),
2726
Diagnostic(ErrorCode.ERR_BadIndexLHS, "x[0]").WithArguments("nint").
WithLocation
(6, 13),
2729
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M<nuint>").WithArguments("nuint", "M").
WithLocation
(10, 15),
2732
Diagnostic(ErrorCode.ERR_BadIndexLHS, "y[0]").WithArguments("nuint").
WithLocation
(11, 13));
2929
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nint").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 15),
2932
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nuint").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 15));
2976
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nint").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 11),
2979
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nuint").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 11));
3241
Diagnostic(ErrorCode.WRN_NewRequired, "F1").WithArguments("B2.F1(nint)", "A.F1(System.IntPtr)").
WithLocation
(8, 17),
3244
Diagnostic(ErrorCode.WRN_NewRequired, "F2").WithArguments("B2.F2(System.UIntPtr)", "A.F2(nuint)").
WithLocation
(9, 17),
3247
Diagnostic(ErrorCode.WRN_NewNotRequired, "F1").WithArguments("B3.F1(nuint)").
WithLocation
(13, 21),
3250
Diagnostic(ErrorCode.WRN_NewNotRequired, "F2").WithArguments("B3.F2(System.IntPtr)").
WithLocation
(14, 21)
3308
Diagnostic(ErrorCode.WRN_NewRequired, "F1").WithArguments("B1.F1(nint)", "A.F1(System.IntPtr)").
WithLocation
(3, 17),
3311
Diagnostic(ErrorCode.WRN_NewRequired, "F2").WithArguments("B1.F2(nuint)", "A.F2(System.UIntPtr)").
WithLocation
(4, 17),
3314
Diagnostic(ErrorCode.WRN_NewRequired, "F1").WithArguments("B3.F1(nint)", "A.F1(System.IntPtr)").
WithLocation
(13, 17),
3317
Diagnostic(ErrorCode.WRN_NewRequired, "F2").WithArguments("B3.F2(nuint)", "A.F2(System.UIntPtr)").
WithLocation
(14, 17)
3367
Diagnostic(ErrorCode.WRN_NewRequired, "F1").WithArguments("B2.F1(System.IntPtr)", "A.F1(nint)").
WithLocation
(8, 17),
3370
Diagnostic(ErrorCode.WRN_NewRequired, "F2").WithArguments("B2.F2(System.UIntPtr)", "A.F2(nuint)").
WithLocation
(9, 17),
3373
Diagnostic(ErrorCode.WRN_NewRequired, "F1").WithArguments("B4.F1(System.IntPtr)", "A.F1(nint)").
WithLocation
(18, 17),
3376
Diagnostic(ErrorCode.WRN_NewRequired, "F2").WithArguments("B4.F2(System.UIntPtr)", "A.F2(nuint)").
WithLocation
(19, 17)
3406
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "F").WithArguments("F", "I").
WithLocation
(5, 10),
3409
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "F").WithArguments("F", "C").
WithLocation
(11, 17));
3430
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "I").
WithLocation
(4, 12),
3433
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "C").
WithLocation
(9, 12));
3496
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F2").WithArguments("void Program.F2(nuint x)", "void Program.F2(UIntPtr x)").
WithLocation
(4, 25),
3499
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F1").WithArguments("void Program.F1(IntPtr x)", "void Program.F1(nint x)").
WithLocation
(5, 25));
3624
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nuint").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 22));
3706
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nuint").WithArguments("native-sized integers", "9.0").
WithLocation
(4, 28));
3740
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nuint").WithArguments("native-sized integers", "9.0").
WithLocation
(4, 28));
3775
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nint").WithArguments("native-sized integers", "9.0").
WithLocation
(1, 12),
3778
Diagnostic(ErrorCode.ERR_FeatureInPreview, "nint").WithArguments("using type alias").
WithLocation
(1, 12),
3781
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nuint").WithArguments("native-sized integers", "9.0").
WithLocation
(2, 12),
3784
Diagnostic(ErrorCode.ERR_FeatureInPreview, "nuint").WithArguments("using type alias").
WithLocation
(2, 12));
3789
Diagnostic(ErrorCode.ERR_FeatureInPreview, "nint").WithArguments("using type alias").
WithLocation
(1, 12),
3792
Diagnostic(ErrorCode.ERR_FeatureInPreview, "nuint").WithArguments("using type alias").
WithLocation
(2, 12));
3837
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using A=nint;").
WithLocation
(1, 1),
3840
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "nint").WithArguments("nint").
WithLocation
(2, 7));
3846
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using A=nint;").
WithLocation
(1, 1),
3849
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "nint").WithArguments("nint").
WithLocation
(2, 7));
3855
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using A=nint;").
WithLocation
(1, 1),
3858
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "nint").WithArguments("nint").
WithLocation
(2, 7));
3883
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "nint").WithArguments("nint").
WithLocation
(2, 7),
3886
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a == c").WithArguments("==", "nint", "System.IntPtr").
WithLocation
(10, 34));
3892
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "nint").WithArguments("nint").
WithLocation
(2, 7),
3895
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a == c").WithArguments("==", "nint", "System.IntPtr").
WithLocation
(10, 34));
3901
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "nint").WithArguments("nint").
WithLocation
(2, 7),
3904
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a == c").WithArguments("==", "nint", "System.IntPtr").
WithLocation
(10, 34));
3921
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using nint;").
WithLocation
(1, 1),
3924
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "nint").WithArguments("nint").
WithLocation
(1, 7),
3927
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using nuint;").
WithLocation
(2, 1),
3930
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "nuint").WithArguments("nuint").
WithLocation
(2, 7)
3989
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "nint").WithArguments("nintAttribute").
WithLocation
(1, 2),
3992
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "nint").WithArguments("nint").
WithLocation
(1, 2),
3995
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "nuint").WithArguments("nuintAttribute").
WithLocation
(2, 5),
3998
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "nuint").WithArguments("nuint").
WithLocation
(2, 5)
4147
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nint").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 13),
4150
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nuint").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 13));
4174
Diagnostic(ErrorCode.ERR_NameNotInContext, "nint").WithArguments("nint").
WithLocation
(6, 34),
4177
Diagnostic(ErrorCode.ERR_NameNotInContext, "nuint").WithArguments("nuint").
WithLocation
(7, 34));
4183
Diagnostic(ErrorCode.ERR_NameNotInContext, "nint").WithArguments("nint").
WithLocation
(6, 34),
4186
Diagnostic(ErrorCode.ERR_NameNotInContext, "nuint").WithArguments("nuint").
WithLocation
(7, 34));
4206
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nint").WithArguments("native-sized integers", "9.0").
WithLocation
(3, 19),
4209
Diagnostic(ErrorCode.ERR_NameNotInContext, "nuint").WithArguments("nuint").
WithLocation
(6, 20));
4215
Diagnostic(ErrorCode.ERR_NameNotInContext, "nuint").WithArguments("nuint").
WithLocation
(6, 20));
4235
Diagnostic(ErrorCode.ERR_NameNotInContext, "@nint").WithArguments("nint").
WithLocation
(5, 20),
4238
Diagnostic(ErrorCode.ERR_NameNotInContext, "@nuint").WithArguments("nuint").
WithLocation
(6, 20));
4244
Diagnostic(ErrorCode.ERR_NameNotInContext, "@nint").WithArguments("nint").
WithLocation
(5, 20),
4247
Diagnostic(ErrorCode.ERR_NameNotInContext, "@nuint").WithArguments("nuint").
WithLocation
(6, 20));
4286
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "nint").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 20));
4313
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(System.IntPtr)").WithArguments("System.IntPtr").
WithLocation
(5, 13),
4316
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(System.UIntPtr)").WithArguments("System.UIntPtr").
WithLocation
(6, 13),
4319
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(nint)").WithArguments("nint").
WithLocation
(7, 13),
4322
Diagnostic(ErrorCode.ERR_SizeofUnsafe, "sizeof(nuint)").WithArguments("nuint").
WithLocation
(8, 13));
4376
Diagnostic(ErrorCode.ERR_IllegalInnerUnsafe, "sizeof(nint)").
WithLocation
(6, 22),
4379
Diagnostic(ErrorCode.ERR_IllegalInnerUnsafe, "sizeof(nuint)").
WithLocation
(7, 22));
4397
Diagnostic(ErrorCode.ERR_NotConstantExpression, "sizeof(System.IntPtr)").WithArguments("Program.A").
WithLocation
(3, 19),
4400
Diagnostic(ErrorCode.ERR_NotConstantExpression, "sizeof(System.UIntPtr)").WithArguments("Program.B").
WithLocation
(4, 19),
4403
Diagnostic(ErrorCode.ERR_NotConstantExpression, "sizeof(nint)").WithArguments("Program.C").
WithLocation
(5, 19),
4406
Diagnostic(ErrorCode.ERR_NotConstantExpression, "sizeof(nuint)").WithArguments("Program.D").
WithLocation
(6, 19));
5041
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "-F1").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 13),
5044
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "+F2").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 13),
5047
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "-F3").WithArguments("native-sized integers", "9.0").
WithLocation
(7, 13),
5050
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "+F4").WithArguments("native-sized integers", "9.0").
WithLocation
(8, 13),
5053
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 * F1").WithArguments("native-sized integers", "9.0").
WithLocation
(9, 13),
5056
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F2 / F2").WithArguments("native-sized integers", "9.0").
WithLocation
(10, 13),
5059
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F3 * F1").WithArguments("native-sized integers", "9.0").
WithLocation
(11, 13),
5062
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F4 / F2").WithArguments("native-sized integers", "9.0").
WithLocation
(12, 13));
5094
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "F1").WithArguments("System.IntPtr", "long").
WithLocation
(9, 18),
5097
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "F2").WithArguments("System.UIntPtr", "ulong").
WithLocation
(10, 19),
5100
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "F3").WithArguments("System.IntPtr?", "long?").
WithLocation
(11, 19),
5103
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "F4").WithArguments("System.UIntPtr?", "ulong?").
WithLocation
(12, 20),
5106
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("int", "System.IntPtr").
WithLocation
(16, 14),
5109
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y").WithArguments("uint", "System.UIntPtr").
WithLocation
(17, 14),
5112
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "z").WithArguments("int?", "System.IntPtr?").
WithLocation
(18, 14),
5115
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "w").WithArguments("uint?", "System.UIntPtr?").
WithLocation
(19, 14)
5153
Diagnostic(ErrorCode.ERR_BadUnaryOp, "-F1").WithArguments("-", "System.IntPtr").
WithLocation
(10, 14),
5156
Diagnostic(ErrorCode.ERR_BadUnaryOp, "+F2").WithArguments("+", "System.UIntPtr").
WithLocation
(11, 14),
5159
Diagnostic(ErrorCode.ERR_BadUnaryOp, "-F3").WithArguments("-", "System.IntPtr?").
WithLocation
(12, 14),
5162
Diagnostic(ErrorCode.ERR_BadUnaryOp, "+F4").WithArguments("+", "System.UIntPtr?").
WithLocation
(13, 14),
5165
Diagnostic(ErrorCode.ERR_BadBinaryOps, "F1 * F1").WithArguments("*", "System.IntPtr", "System.IntPtr").
WithLocation
(14, 14),
5168
Diagnostic(ErrorCode.ERR_BadBinaryOps, "F2 / F2").WithArguments("/", "System.UIntPtr", "System.UIntPtr").
WithLocation
(15, 14),
5171
Diagnostic(ErrorCode.ERR_BadBinaryOps, "F3 * F1").WithArguments("*", "System.IntPtr?", "System.IntPtr").
WithLocation
(16, 14),
5174
Diagnostic(ErrorCode.ERR_BadBinaryOps, "F4 / F2").WithArguments("/", "System.UIntPtr?", "System.UIntPtr").
WithLocation
(17, 14)
5425
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "-F1").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 14),
5428
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "+F2").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 14),
5431
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "-F3").WithArguments("native-sized integers", "9.0").
WithLocation
(7, 14),
5434
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "+F4").WithArguments("native-sized integers", "9.0").
WithLocation
(8, 14),
5437
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 * F1").WithArguments("native-sized integers", "9.0").
WithLocation
(9, 14),
5440
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F2 / F2").WithArguments("native-sized integers", "9.0").
WithLocation
(10, 14),
5443
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F3 * F1").WithArguments("native-sized integers", "9.0").
WithLocation
(11, 14),
5446
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F4 / F2").WithArguments("native-sized integers", "9.0").
WithLocation
(12, 14));
5484
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "+F1").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 13),
5487
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "-F1").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 13),
5490
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "~F1").WithArguments("native-sized integers", "9.0").
WithLocation
(7, 13),
5493
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "+F2").WithArguments("native-sized integers", "9.0").
WithLocation
(8, 13),
5496
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "~F2").WithArguments("native-sized integers", "9.0").
WithLocation
(9, 13));
5531
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "++F").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 9),
5534
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F++").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 9),
5537
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "--F").WithArguments("native-sized integers", "9.0").
WithLocation
(7, 9),
5540
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F--").WithArguments("native-sized integers", "9.0").
WithLocation
(8, 9));
5587
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 + F2").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 13),
5590
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 - F2").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 13),
5593
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 * F2").WithArguments("native-sized integers", "9.0").
WithLocation
(7, 13),
5596
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 / F2").WithArguments("native-sized integers", "9.0").
WithLocation
(8, 13),
5599
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 % F2").WithArguments("native-sized integers", "9.0").
WithLocation
(9, 13),
5602
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 < F2").WithArguments("native-sized integers", "9.0").
WithLocation
(10, 13),
5605
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 <= F2").WithArguments("native-sized integers", "9.0").
WithLocation
(11, 13),
5608
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 > F2").WithArguments("native-sized integers", "9.0").
WithLocation
(12, 13),
5611
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 >= F2").WithArguments("native-sized integers", "9.0").
WithLocation
(13, 13),
5614
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 == F2").WithArguments("native-sized integers", "9.0").
WithLocation
(14, 13),
5617
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 != F2").WithArguments("native-sized integers", "9.0").
WithLocation
(15, 13),
5620
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 & F2").WithArguments("native-sized integers", "9.0").
WithLocation
(16, 13),
5623
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 | F2").WithArguments("native-sized integers", "9.0").
WithLocation
(17, 13),
5626
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 ^ F2").WithArguments("native-sized integers", "9.0").
WithLocation
(18, 13),
5629
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 << 1").WithArguments("native-sized integers", "9.0").
WithLocation
(19, 13),
5632
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F1 >> 1").WithArguments("native-sized integers", "9.0").
WithLocation
(20, 13));
5665
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "(F1, F1) == (F2, F2)").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 13),
5668
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "(F1, F1) == (F2, F2)").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 13),
5671
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "(F1, F1) != (F2, F2)").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 13),
5674
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "(F1, F1) != (F2, F2)").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 13));
5715
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F += 1").WithArguments("native-sized integers", "9.0").
WithLocation
(5, 9),
5718
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F -= 1").WithArguments("native-sized integers", "9.0").
WithLocation
(6, 9),
5721
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F *= 1").WithArguments("native-sized integers", "9.0").
WithLocation
(7, 9),
5724
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F /= 1").WithArguments("native-sized integers", "9.0").
WithLocation
(8, 9),
5727
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F %= 1").WithArguments("native-sized integers", "9.0").
WithLocation
(9, 9),
5730
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F &= 1").WithArguments("native-sized integers", "9.0").
WithLocation
(10, 9),
5733
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F |= 1").WithArguments("native-sized integers", "9.0").
WithLocation
(11, 9),
5736
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F ^= 1").WithArguments("native-sized integers", "9.0").
WithLocation
(12, 9),
5739
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F <<= 1").WithArguments("native-sized integers", "9.0").
WithLocation
(13, 9),
5742
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "F >>= 1").WithArguments("native-sized integers", "9.0").
WithLocation
(14, 9));
5784
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "sbyte.MaxValue").WithArguments("sbyte", "nuint").
WithLocation
(5, 14),
5787
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "short.MaxValue").WithArguments("short", "nuint").
WithLocation
(8, 14),
5790
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "sbyte.MaxValue").WithArguments("sbyte", "nuint?").
WithLocation
(11, 14),
5793
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "short.MaxValue").WithArguments("short", "nuint?").
WithLocation
(14, 14)
6164
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "uint.MaxValue").WithArguments("uint", "nint").
WithLocation
(15, 17),
6167
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "long.MaxValue").WithArguments("long", "nint").
WithLocation
(16, 17),
6170
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "ulong.MaxValue").WithArguments("ulong", "nint").
WithLocation
(17, 17),
6173
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "float.MaxValue").WithArguments("float", "nint").
WithLocation
(18, 17),
6176
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "double.MaxValue").WithArguments("double", "nint").
WithLocation
(19, 17),
6179
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(decimal)int.MaxValue").WithArguments("decimal", "nint").
WithLocation
(20, 17),
6182
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(nuint)uint.MaxValue").WithArguments("nuint", "nint").
WithLocation
(22, 17),
6185
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "sbyte.MaxValue").WithArguments("sbyte", "nuint").
WithLocation
(30, 17),
6188
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "short.MaxValue").WithArguments("short", "nuint").
WithLocation
(33, 17),
6191
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "long.MaxValue").WithArguments("long", "nuint").
WithLocation
(37, 17),
6194
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "ulong.MaxValue").WithArguments("ulong", "nuint").
WithLocation
(38, 17),
6197
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "float.MaxValue").WithArguments("float", "nuint").
WithLocation
(39, 17),
6200
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "double.MaxValue").WithArguments("double", "nuint").
WithLocation
(40, 17),
6203
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(decimal)uint.MaxValue").WithArguments("decimal", "nuint").
WithLocation
(41, 17),
6206
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(nint)int.MaxValue").WithArguments("nint", "nuint").
WithLocation
(42, 17));
6264
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "sbyte").
WithLocation
(9, 24),
6267
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "byte").
WithLocation
(10, 22),
6270
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "char").
WithLocation
(11, 22),
6273
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "short").
WithLocation
(12, 23),
6276
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "ushort").
WithLocation
(13, 25),
6279
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "int").
WithLocation
(14, 21),
6282
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "uint").
WithLocation
(15, 22),
6285
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "ulong").
WithLocation
(17, 24),
6288
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "n").WithArguments("nint", "nuint").
WithLocation
(21, 24),
6291
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "sbyte").
WithLocation
(29, 24),
6294
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "byte").
WithLocation
(30, 22),
6297
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "char").
WithLocation
(31, 22),
6300
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "short").
WithLocation
(32, 23),
6303
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "ushort").
WithLocation
(33, 25),
6306
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "int").
WithLocation
(34, 21),
6309
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "uint").
WithLocation
(35, 22),
6312
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "long").
WithLocation
(36, 22),
6315
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nu").WithArguments("nuint", "nint").
WithLocation
(41, 22));
6338
Diagnostic(ErrorCode.ERR_NotConstantExpression, "checked((nint)x)").WithArguments("y").
WithLocation
(7, 24),
6341
Diagnostic(ErrorCode.WRN_ConstOutOfRangeChecked, "(nint)x").WithArguments("1152921504606846975", "nint").
WithLocation
(7, 32));
6365
Diagnostic(ErrorCode.WRN_ConstOutOfRangeChecked, "(nint)x").WithArguments("1152921504606846975", "nint").
WithLocation
(9, 30));
6388
Diagnostic(ErrorCode.ERR_NotConstantExpression, "unchecked((nint)x)").WithArguments("y").
WithLocation
(7, 24));
6818
Diagnostic(ErrorCode.ERR_BadArgType, "sbyte.MaxValue").WithArguments("1", "sbyte", "ushort").
WithLocation
(5, 19),
6821
Diagnostic(ErrorCode.ERR_BadArgType, "short.MaxValue").WithArguments("1", "short", "ushort").
WithLocation
(6, 19),
6824
Diagnostic(ErrorCode.ERR_BadArgType, "int.MaxValue").WithArguments("1", "int", "ushort").
WithLocation
(7, 19),
6827
Diagnostic(ErrorCode.ERR_BadArgType, "long.MaxValue").WithArguments("1", "long", "ushort").
WithLocation
(8, 19),
6830
Diagnostic(ErrorCode.ERR_BadArgType, "sbyte.MaxValue").WithArguments("1", "sbyte", "uint").
WithLocation
(9, 17),
6833
Diagnostic(ErrorCode.ERR_BadArgType, "short.MaxValue").WithArguments("1", "short", "uint").
WithLocation
(10, 17),
6836
Diagnostic(ErrorCode.ERR_BadArgType, "long.MaxValue").WithArguments("1", "long", "uint").
WithLocation
(12, 17),
6839
Diagnostic(ErrorCode.ERR_BadArgType, "sbyte.MaxValue").WithArguments("1", "sbyte", "nuint").
WithLocation
(13, 18),
6842
Diagnostic(ErrorCode.ERR_BadArgType, "short.MaxValue").WithArguments("1", "short", "nuint").
WithLocation
(14, 18),
6845
Diagnostic(ErrorCode.ERR_BadArgType, "long.MaxValue").WithArguments("1", "long", "nuint").
WithLocation
(16, 18),
6848
Diagnostic(ErrorCode.ERR_BadArgType, "sbyte.MaxValue").WithArguments("1", "sbyte", "ulong").
WithLocation
(17, 18),
6851
Diagnostic(ErrorCode.ERR_BadArgType, "short.MaxValue").WithArguments("1", "short", "ulong").
WithLocation
(18, 18));
6873
Diagnostic(ErrorCode.ERR_BadConstType, "System.IntPtr").WithArguments("System.IntPtr").
WithLocation
(6, 15),
6876
Diagnostic(ErrorCode.ERR_BadConstType, "System.UIntPtr").WithArguments("System.UIntPtr").
WithLocation
(8, 15));
6894
Diagnostic(ErrorCode.ERR_BadConstType, "const").WithArguments("System.IntPtr").
WithLocation
(3, 5),
6897
Diagnostic(ErrorCode.ERR_NotConstantExpression, "default(System.IntPtr)").WithArguments("Program.A").
WithLocation
(3, 29),
6900
Diagnostic(ErrorCode.ERR_BadConstType, "const").WithArguments("System.UIntPtr").
WithLocation
(5, 5),
6903
Diagnostic(ErrorCode.ERR_NotConstantExpression, "default(System.UIntPtr)").WithArguments("Program.C").
WithLocation
(5, 30));
7060
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "(nint)1").
WithLocation
(7, 4),
7063
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new nuint[0]").
WithLocation
(8, 4),
7066
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "(nint)3").
WithLocation
(9, 12),
7069
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new[] { (nuint)4 }").
WithLocation
(10, 12));
7094
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "A").WithArguments("value", "nint").
WithLocation
(7, 2),
7097
Diagnostic(ErrorCode.ERR_BadNamedAttributeArgumentType, "Value").WithArguments("Value").
WithLocation
(8, 4));
7124
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "(IntPtr)(-1)").WithArguments("x").
WithLocation
(7, 31),
7127
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "(UIntPtr)2").WithArguments("y").
WithLocation
(7, 57),
7130
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "(IntPtr)(-3)").WithArguments("x").
WithLocation
(13, 32),
7133
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "(UIntPtr)4").WithArguments("y").
WithLocation
(13, 59));
10377
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "++x").WithArguments("long", "MyInt").
WithLocation
(5, 9),
10380
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x++").WithArguments("long", "MyInt").
WithLocation
(6, 9),
10383
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "--x").WithArguments("long", "MyInt").
WithLocation
(7, 9),
10386
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x--").WithArguments("long", "MyInt").
WithLocation
(8, 9)
10392
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "++x").WithArguments("long?", "MyInt").
WithLocation
(5, 9),
10395
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x++").WithArguments("long?", "MyInt").
WithLocation
(6, 9),
10398
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "--x").WithArguments("long?", "MyInt").
WithLocation
(7, 9),
10401
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x--").WithArguments("long?", "MyInt").
WithLocation
(8, 9)
10407
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "++x").WithArguments("ulong", "MyInt").
WithLocation
(5, 9),
10410
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x++").WithArguments("ulong", "MyInt").
WithLocation
(6, 9),
10413
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "--x").WithArguments("ulong", "MyInt").
WithLocation
(7, 9),
10416
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x--").WithArguments("ulong", "MyInt").
WithLocation
(8, 9),
10419
Diagnostic(ErrorCode.ERR_AmbigUnaryOp, "-x").WithArguments("-", "MyInt").
WithLocation
(10, 13)
10425
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "++x").WithArguments("ulong?", "MyInt").
WithLocation
(5, 9),
10428
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x++").WithArguments("ulong?", "MyInt").
WithLocation
(6, 9),
10431
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "--x").WithArguments("ulong?", "MyInt").
WithLocation
(7, 9),
10434
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x--").WithArguments("ulong?", "MyInt").
WithLocation
(8, 9),
10437
Diagnostic(ErrorCode.ERR_AmbigUnaryOp, "-x").WithArguments("-", "MyInt").
WithLocation
(10, 13)
13314
Diagnostic(ErrorCode.ERR_NotConstantExpression, "unchecked(uint.MaxValue + (nuint)42)").WithArguments("x").
WithLocation
(6, 25),
13317
Diagnostic(ErrorCode.ERR_NotConstantExpression, "checked(uint.MaxValue + (nuint)42)").WithArguments("y").
WithLocation
(7, 25),
13320
Diagnostic(ErrorCode.WRN_CompileTimeCheckedOverflow, "uint.MaxValue + (nuint)42").WithArguments("nuint").
WithLocation
(7, 33)
13344
Diagnostic(ErrorCode.WRN_CompileTimeCheckedOverflow, "uint.MaxValue + (nuint)42").WithArguments("nuint").
WithLocation
(8, 29)
13379
Diagnostic(ErrorCode.ERR_NotConstantExpression, "unchecked(-(nint)int.MinValue)").WithArguments("x").
WithLocation
(6, 24),
13382
Diagnostic(ErrorCode.ERR_NotConstantExpression, "checked(-(nint)int.MinValue)").WithArguments("y").
WithLocation
(7, 24),
13385
Diagnostic(ErrorCode.WRN_CompileTimeCheckedOverflow, "-(nint)int.MinValue").WithArguments("nint").
WithLocation
(7, 32)
13409
Diagnostic(ErrorCode.WRN_CompileTimeCheckedOverflow, "-(nint)int.MinValue").WithArguments("nint").
WithLocation
(8, 29)
13988
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "i1").WithArguments("nint", "E").
WithLocation
(10, 13),
13991
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "u1").WithArguments("nuint", "E").
WithLocation
(18, 13),
13994
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "default(E)").WithArguments("E", "nint").
WithLocation
(23, 13),
13997
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "E.A").WithArguments("E", "nint").
WithLocation
(24, 13),
14000
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "E.B").WithArguments("E", "nint").
WithLocation
(25, 13),
14003
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "default(E)").WithArguments("E", "nuint").
WithLocation
(30, 13),
14006
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "E.A").WithArguments("E", "nuint").
WithLocation
(31, 13),
14009
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "E.B").WithArguments("E", "nuint").
WithLocation
(32, 13));
14224
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").
WithLocation
(8, 29),
14227
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { x, y }").
WithLocation
(9, 10),
14230
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { y, x }").
WithLocation
(10, 10),
14233
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").
WithLocation
(11, 21),
14236
Diagnostic(ErrorCode.ERR_AmbigQM, "b ? x : y").WithArguments($"{nativeIntegerType}", $"{underlyingType}").
WithLocation
(12, 10),
14239
Diagnostic(ErrorCode.ERR_AmbigQM, "b ? y : x").WithArguments($"{underlyingType}", $"{nativeIntegerType}").
WithLocation
(13, 10),
14242
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").
WithLocation
(14, 50),
14245
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F0").WithArguments("Program.F0<T>(System.Func<T>)").
WithLocation
(15, 9),
14248
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F0").WithArguments("Program.F0<T>(System.Func<T>)").
WithLocation
(16, 9));
14279
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { x, y }").
WithLocation
(8, 13),
14282
Diagnostic(ErrorCode.ERR_AmbigQM, "b ? x : y").WithArguments($"{nativeIntegerType}[]", $"{underlyingType}[]").
WithLocation
(9, 13),
14285
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F0").WithArguments("Program.F0<T>(System.Func<T>)").
WithLocation
(10, 9),
14288
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { x, y }").
WithLocation
(14, 13),
14291
Diagnostic(ErrorCode.ERR_AmbigQM, "b ? x : y").WithArguments($"I<{nativeIntegerType}>", $"I<{underlyingType}>").
WithLocation
(15, 13),
14294
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F0").WithArguments("Program.F0<T>(System.Func<T>)").
WithLocation
(16, 9));
14348
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").
WithLocation
(11, 18),
14351
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F0").WithArguments("Program.F0<T>(T, T)").
WithLocation
(12, 9),
14354
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F0").WithArguments("Program.F0<T>(T, T)").
WithLocation
(13, 9),
14357
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").
WithLocation
(15, 13),
14360
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").
WithLocation
(22, 21),
14363
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F0").WithArguments("Program.F0<T>(T, T)").
WithLocation
(23, 9),
14366
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F0").WithArguments("Program.F0<T>(T, T)").
WithLocation
(24, 9),
14369
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").
WithLocation
(26, 13),
14372
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").
WithLocation
(33, 20),
14375
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F0").WithArguments("Program.F0<T>(T, T)").
WithLocation
(34, 9),
14378
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F0").WithArguments("Program.F0<T>(T, T)").
WithLocation
(35, 9),
14381
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").
WithLocation
(37, 13));
14397
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<nint>").WithArguments("I<nint>", "U").
WithLocation
(2, 35),
14400
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<System.IntPtr>").WithArguments("I<System.IntPtr>", "U").
WithLocation
(3, 35),
14403
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<nuint>").WithArguments("I<nuint>", "U").
WithLocation
(4, 63));
14419
Diagnostic(ErrorCode.ERR_DuplicateInterfaceInBaseList, "I<nint>").WithArguments("I<nint>").
WithLocation
(2, 21),
14422
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C2").WithArguments("I<System.IntPtr>", "I<nint>", "C2").
WithLocation
(3, 7),
14425
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C3").WithArguments("I<nuint>", "I<System.UIntPtr>", "C3").
WithLocation
(4, 7));
14452
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C1").WithArguments("I<System.IntPtr[]?>", "I<nint[]>", "C1").
WithLocation
(3, 7),
14455
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C2").WithArguments("I<nint[]>", "I<System.IntPtr[]>", "C2").
WithLocation
(7, 7),
14458
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C3").WithArguments("I<nuint[]?>", "I<System.UIntPtr[]>", "C3").
WithLocation
(12, 7));
14488
Diagnostic(ErrorCode.ERR_DuplicateInterfaceInBaseList, "I<(System.IntPtr, object)>").WithArguments("I<(System.IntPtr, object)>").
WithLocation
(3, 40),
14491
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C1").WithArguments("I<(System.IntPtr, object)>", "I<(System.IntPtr X, object Y)>", "C1").
WithLocation
(4, 7),
14494
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C2").WithArguments("I<(nint, object)>", "I<(System.IntPtr, object)>", "C2").
WithLocation
(5, 7),
14497
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C3").WithArguments("I<(System.IntPtr, dynamic)>", "I<(System.IntPtr, object)>", "C3").
WithLocation
(6, 7),
14500
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I<(System.IntPtr, dynamic)>").WithArguments("C3", "I<(System.IntPtr, dynamic)>").
WithLocation
(6, 40),
14503
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C4").WithArguments("I<(System.IntPtr, object)>", "C4").
WithLocation
(7, 7),
14506
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C5").WithArguments("I<(nint, object)>", "I<(System.IntPtr X, object Y)>", "C5").
WithLocation
(8, 7),
14509
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C6").WithArguments("I<(System.IntPtr, dynamic)>", "I<(System.IntPtr X, object Y)>", "C6").
WithLocation
(9, 7),
14512
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I<(System.IntPtr, dynamic)>").WithArguments("C6", "I<(System.IntPtr, dynamic)>").
WithLocation
(9, 44),
14515
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C7").WithArguments("I<(System.IntPtr, object)>", "I<(System.IntPtr X, object? Y)>", "C7").
WithLocation
(10, 7),
14518
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C8").WithArguments("I<(nint, dynamic)>", "I<(System.IntPtr, object)>", "C8").
WithLocation
(11, 7),
14521
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I<(nint, dynamic)>").WithArguments("C8", "I<(nint, dynamic)>").
WithLocation
(11, 40),
14524
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C9").WithArguments("I<(nint, object)>", "I<(System.IntPtr, object?)>", "C9").
WithLocation
(12, 7),
14527
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "CA").WithArguments("I<(nint, dynamic)>", "I<(System.IntPtr, object?)>", "CA").
WithLocation
(13, 7),
14530
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I<(nint, dynamic)>").WithArguments("CA", "I<(nint, dynamic)>").
WithLocation
(13, 41),
14533
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "CB").WithArguments("I<(nint, dynamic)>", "I<(System.IntPtr X, object Y)>", "CB").
WithLocation
(14, 7),
14536
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I<(nint, dynamic)>").WithArguments("CB", "I<(nint, dynamic)>").
WithLocation
(14, 44),
14539
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "CC").WithArguments("I<(nint, object)>", "I<(System.IntPtr X, object? Y)>", "CC").
WithLocation
(15, 7),
14542
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "CD").WithArguments("I<(nint, dynamic)>", "I<(System.IntPtr, object?)>", "CD").
WithLocation
(16, 7),
14545
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I<(nint, dynamic)>").WithArguments("CD", "I<(nint, dynamic)>").
WithLocation
(16, 41),
14548
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "CE").WithArguments("I<(nint, dynamic)>", "I<(System.IntPtr X, object? Y)>", "CE").
WithLocation
(17, 7),
14551
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I<(nint, dynamic)>").WithArguments("CE", "I<(nint, dynamic)>").
WithLocation
(17, 45),
14554
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "CF").WithArguments("I<(nint, dynamic)>", "I<(System.IntPtr X, object? Y)>", "CF").
WithLocation
(18, 7),
14557
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I<(nint, dynamic)>").WithArguments("CF", "I<(nint, dynamic)>").
WithLocation
(18, 45));
14576
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C1").WithArguments("IA<nint>", "IA<System.IntPtr>", "C1").
WithLocation
(4, 7),
14579
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C2").WithArguments("IA<System.IntPtr>", "IA<nint>", "C2").
WithLocation
(5, 7),
14582
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C3").WithArguments("IA<System.IntPtr>", "IA<nint>", "C3").
WithLocation
(6, 7));
14605
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C1").WithArguments("IA<nint>", "IA<System.IntPtr>", "C1").
WithLocation
(4, 15),
14608
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C2").WithArguments("IA<System.IntPtr>", "IA<nint>", "C2").
WithLocation
(6, 15),
14611
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "C3").WithArguments("IA<System.IntPtr>", "IA<nint>", "C3").
WithLocation
(8, 15));
14628
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C1").WithArguments("C1<T>", "I<nint>", "I<T>").
WithLocation
(2, 7),
14631
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C2").WithArguments("C2<T>", "I<(nint, T)>", "I<(T, System.IntPtr)>").
WithLocation
(3, 7),
14634
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C3").WithArguments("C3<T>", "I<(T, T)>", "I<(System.UIntPtr, nuint)>").
WithLocation
(4, 7));
14653
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C1").WithArguments("C1<T>", "IA<T>", "IA<nint>").
WithLocation
(4, 7),
14656
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C2").WithArguments("C2<T>", "IA<(nint, T)>", "IA<(T, System.IntPtr)>").
WithLocation
(5, 7),
14659
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C3").WithArguments("C3<T>", "IA<(T, T)>", "IA<(System.UIntPtr, nuint)>").
WithLocation
(6, 7));
14682
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C1").WithArguments("C1<T>", "IA<T>", "IA<nint>").
WithLocation
(4, 15),
14685
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C2").WithArguments("C2<T>", "IA<(nint, T)>", "IA<(T, System.IntPtr)>").
WithLocation
(6, 15),
14688
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C3").WithArguments("C3<T>", "IA<(T, T)>", "IA<(System.UIntPtr, nuint)>").
WithLocation
(8, 15));
14742
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("sbyte", "nuint").
WithLocation
(3, 40),
14745
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("short", "nuint").
WithLocation
(4, 40),
14748
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("int", "nuint").
WithLocation
(5, 38),
14751
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("long", "nuint").
WithLocation
(6, 39),
14754
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("nint", "nuint").
WithLocation
(7, 39),
14757
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("sbyte", "nuint").
WithLocation
(8, 47),
14760
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("short", "nuint").
WithLocation
(9, 47),
14763
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("int", "nuint").
WithLocation
(10, 45),
14766
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("long", "nuint").
WithLocation
(11, 46),
14769
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("nint", "nuint").
WithLocation
(12, 46));
15411
Diagnostic(ErrorCode.WRN_BadXMLRefTypeVar, "nint").WithArguments("nint").
WithLocation
(3, 37)
15834
Diagnostic(ErrorCode.ERR_BadBinaryOps, $"x {op} count").WithArguments(op, type, "int").
WithLocation
(5, 16)
Semantics\NonTrailingNamedArgumentsTests.cs (43)
92
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "2").WithArguments("7.2").
WithLocation
(10, 21)
167
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "2").WithArguments("7.2").
WithLocation
(14, 19)
200
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "2").WithArguments("7.2").
WithLocation
(16, 26),
203
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "2").WithArguments("7.2").
WithLocation
(17, 19)
231
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "2").WithArguments("7.2").
WithLocation
(7, 21)
267
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "2").WithArguments("7.2").
WithLocation
(19, 21),
270
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "4").WithArguments("7.2").
WithLocation
(20, 17)
303
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "b").WithArguments("b").
WithLocation
(16, 23),
306
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "b").WithArguments("b").
WithLocation
(17, 15),
309
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "b").WithArguments("b").
WithLocation
(18, 15)
361
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "first").WithArguments("first").
WithLocation
(10, 14)
417
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "c").WithArguments("c").
WithLocation
(10, 11)
449
Diagnostic(ErrorCode.ERR_BadArgCount, "M").WithArguments("M", "2").
WithLocation
(9, 9)
478
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "x").WithArguments("x").
WithLocation
(9, 14)
528
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "x").WithArguments("x").
WithLocation
(9, 17)
561
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "3").WithArguments("7.2").
WithLocation
(9, 23),
564
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "x").WithArguments("x").
WithLocation
(9, 17));
592
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "y").WithArguments("y").
WithLocation
(9, 11)
621
Diagnostic(ErrorCode.ERR_BadArgCount, "M").WithArguments("M", "3").
WithLocation
(9, 9)
643
Diagnostic(ErrorCode.ERR_ParamsLast, "params int[] x").
WithLocation
(4, 19),
646
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "params int[]").
WithLocation
(9, 14)
704
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "c").WithArguments("c").
WithLocation
(11, 11)
818
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgumentInDynamicInvocation, "2").
WithLocation
(7, 19)
825
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "2").WithArguments("7.2").
WithLocation
(7, 19)
846
Diagnostic(ErrorCode.ERR_DynamicLocalFunctionParamsParameter, "local(x: 1, d)").WithArguments("y", "local").
WithLocation
(7, 9),
849
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgumentInDynamicInvocation, "d").
WithLocation
(7, 21)
895
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "b").WithArguments("b").
WithLocation
(9, 11)
941
Diagnostic(ErrorCode.ERR_NamedArgumentExpected, "42").
WithLocation
(12, 38),
944
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "condition").WithArguments("condition").
WithLocation
(13, 18)
979
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "42").WithArguments("7.2").
WithLocation
(11, 31),
982
Diagnostic(ErrorCode.ERR_NamedArgumentExpected, "42").
WithLocation
(12, 38),
985
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "42").WithArguments("7.2").
WithLocation
(12, 38),
988
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "condition").WithArguments("condition").
WithLocation
(13, 18)
1014
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "c").WithArguments("c").
WithLocation
(11, 14),
1017
Diagnostic(ErrorCode.ERR_NamedArgumentExpected, "3").
WithLocation
(12, 21),
1020
Diagnostic(ErrorCode.ERR_NamedArgumentExpected, "2").
WithLocation
(12, 24),
1023
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "c").WithArguments("c").
WithLocation
(12, 19)
1042
Diagnostic(ErrorCode.ERR_BadNamedArgument, "x").WithArguments("M", "x").
WithLocation
(6, 11));
1060
Diagnostic(ErrorCode.ERR_IllegalArglist, "__arglist()").
WithLocation
(6, 33));
1113
Diagnostic(ErrorCode.ERR_BadNonTrailingNamedArgument, "y").WithArguments("y").
WithLocation
(6, 11)
1129
Diagnostic(ErrorCode.ERR_BadNamedArgument, "x").WithArguments(".ctor", "x").
WithLocation
(4, 16));
1147
Diagnostic(ErrorCode.ERR_BadNamedArgument, "x").WithArguments("C", "x").
WithLocation
(6, 15));
1167
Diagnostic(ErrorCode.ERR_BadNamedArgument, "x").WithArguments("this", "x").
WithLocation
(8, 32));
Semantics\NullableContextTests.cs (45)
203
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "C1").
WithLocation
(7, 27));
252
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "C1").
WithLocation
(7, 33));
311
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "A.C1").
WithLocation
(2, 4));
625
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(9, 22));
641
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 22));
657
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 22));
793
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 24));
807
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 17));
832
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 24));
857
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 17));
873
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 17),
876
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 17));
892
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(7, 20));
967
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "F1").
WithLocation
(6, 5)
1030
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 17));
1037
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 17));
1044
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 17));
1049
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 17));
1054
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 17),
1057
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 17),
1060
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 17));
1088
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P2").WithArguments("property", "P2").
WithLocation
(6, 19));
1101
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P1").WithArguments("property", "P1").
WithLocation
(4, 12));
1114
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P1").WithArguments("property", "P1").
WithLocation
(4, 12));
1129
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E2").WithArguments("event", "E2").
WithLocation
(8, 20));
1144
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E1").WithArguments("event", "E1").
WithLocation
(6, 13));
1203
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 13));
1235
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(7, 12));
1259
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(6, 22),
1262
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(16, 24));
1291
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 20),
1294
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(21, 24));
1333
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(7, 47));
1351
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(4, 39));
1446
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 7));
1489
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 43),
1492
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 43));
1519
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 32),
1522
Diagnostic(ErrorCode.WRN_DefaultValueForUnconsumedLocation, "y").WithArguments("y").
WithLocation
(5, 28),
1525
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 32),
1528
Diagnostic(ErrorCode.WRN_DefaultValueForUnconsumedLocation, "x").WithArguments("x").
WithLocation
(7, 28));
1643
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(5, 5));
1655
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(5, 5));
1690
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "if (x == null) { }").
WithLocation
(7, 1));
1706
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "if (x == null) { }").
WithLocation
(8, 1));
Semantics\NullableConversionTests.cs (16)
754
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)double.MaxValue").WithArguments(double.MaxValue.ToString(), "int").
WithLocation
(15, 13),
757
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)double.NaN").WithArguments(double.NaN.ToString(), "int").
WithLocation
(16, 13),
760
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)double.NegativeInfinity").WithArguments(double.NegativeInfinity.ToString(), "int").
WithLocation
(17, 13),
763
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)double.PositiveInfinity").WithArguments(double.PositiveInfinity.ToString(), "int").
WithLocation
(18, 13),
766
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)float.MaxValue").WithArguments(float.MaxValue.ToString(), "int").
WithLocation
(22, 13),
769
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)float.NaN").WithArguments(float.NaN.ToString(), "int").
WithLocation
(23, 13),
772
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)float.NegativeInfinity").WithArguments(float.NegativeInfinity.ToString(), "int").
WithLocation
(24, 13),
775
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)float.PositiveInfinity").WithArguments(float.PositiveInfinity.ToString(), "int").
WithLocation
(25, 13),
778
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)double.MaxValue").WithArguments(double.MaxValue.ToString(), "int").
WithLocation
(29, 13),
781
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)double.NaN").WithArguments(double.NaN.ToString(), "int").
WithLocation
(30, 13),
784
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)double.NegativeInfinity").WithArguments(double.NegativeInfinity.ToString(), "int").
WithLocation
(31, 13),
787
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)double.PositiveInfinity").WithArguments(double.PositiveInfinity.ToString(), "int").
WithLocation
(32, 13),
790
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)float.MaxValue").WithArguments(float.MaxValue.ToString(), "int").
WithLocation
(36, 13),
793
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)float.NaN").WithArguments(float.NaN.ToString(), "int").
WithLocation
(37, 13),
796
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)float.NegativeInfinity").WithArguments(float.NegativeInfinity.ToString(), "int").
WithLocation
(38, 13),
799
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)float.PositiveInfinity").WithArguments(float.PositiveInfinity.ToString(), "int").
WithLocation
(39, 13)
Semantics\NullableReferenceTypesTests.cs (10117)
125
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(6, 13));
156
Diagnostic(ErrorCode.WRN_NullReferenceReturn, @"b ? """" : default", isSuppressed: false).
WithLocation
(10, 37),
159
Diagnostic(ErrorCode.WRN_NullReferenceReturn, @"b ? """" : null", isSuppressed: false).
WithLocation
(14, 37));
191
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 14),
194
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(7, 9),
197
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 14),
200
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(11, 9),
203
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 16),
206
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(15, 9),
209
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s5").
WithLocation
(18, 16),
212
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s5").
WithLocation
(19, 9)
245
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 33),
248
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 33),
251
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 35),
254
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b ? ref s5 : ref s5").
WithLocation
(18, 17)
287
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(7, 9),
290
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(11, 9),
293
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(15, 9),
296
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s5").
WithLocation
(19, 9)
329
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(7, 9),
332
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(11, 9),
335
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(15, 9),
338
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s5").
WithLocation
(19, 9)
363
Diagnostic(ErrorCode.WRN_NullReferenceInitializer, "{ f2 = null, f3 = null }").WithArguments("C.f").
WithLocation
(12, 23));
403
Diagnostic(ErrorCode.WRN_NullReferenceInitializer, "{ f2 = null, f3 = null }").WithArguments("C<T>.f").
WithLocation
(25, 26),
406
Diagnostic(ErrorCode.WRN_NullReferenceInitializer, "{ f2 = null, f3 = null }").WithArguments("C<ClassB?>.f").
WithLocation
(27, 32));
450
Diagnostic(ErrorCode.WRN_NullReferenceInitializer, "{ new object(), new object() }").WithArguments("C.f").
WithLocation
(15, 23));
492
Diagnostic(ErrorCode.WRN_NullReferenceInitializer, "{ new object(), new object() }").WithArguments("C<T>.f").
WithLocation
(27, 26),
495
Diagnostic(ErrorCode.WRN_NullReferenceInitializer, "{ new object(), new object() }").WithArguments("C<ClassAddable?>.f").
WithLocation
(29, 38));
538
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "f").WithArguments("field", "f").
WithLocation
(8, 14)
584
Diagnostic(ErrorCode.WRN_NullReferenceInitializer, "{ f2 = null }").WithArguments("C.this[int]").
WithLocation
(10, 25));
608
Diagnostic(ErrorCode.WRN_NullReferenceInitializer, "{ fb = { f2 = null} }").WithArguments("C.fc").
WithLocation
(12, 24),
611
Diagnostic(ErrorCode.WRN_NullReferenceInitializer, "{ f2 = null}").WithArguments("C.fb").
WithLocation
(12, 31));
634
Diagnostic(ErrorCode.WRN_NullReferenceInitializer, "{ [0] = null }").WithArguments("C.f").
WithLocation
(11, 23));
659
Diagnostic(ErrorCode.WRN_NullReferenceInitializer, "{ 1 }").WithArguments("C.f").
WithLocation
(13, 23));
686
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "L(o)[0]").
WithLocation
(7, 9),
689
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 13));
718
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(14, 14),
721
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "L(o2)[0].Field").
WithLocation
(15, 9)
751
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y[0][0]").
WithLocation
(11, 9)
781
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("index", "int C<object>.this[object index]").
WithLocation
(13, 15)
812
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "input").WithArguments("index", "int C<object>.this[object index]").
WithLocation
(11, 14),
815
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(14, 14)
844
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("index", "int C<object>.this[object index]").
WithLocation
(13, 19)
873
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "L(o2)").WithArguments("C<object>", "C<object?>", "index", "int C<object?>.this[C<object?> index]").
WithLocation
(11, 14),
876
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "L(o)").WithArguments("C<object?>", "C<object>", "index", "int C<object>.this[C<object> index]").
WithLocation
(13, 15)
904
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, ".Field").
WithLocation
(13, 11)
948
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, ".Field").
WithLocation
(14, 11)
979
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 9)
1012
Diagnostic(ErrorCode.WRN_NullReferenceArgument, ".Field").WithArguments("s", "void Extensions.Extension(string s, object? o)").
WithLocation
(13, 11)
1039
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").
WithLocation
(8, 29),
1042
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, ".M()").
WithLocation
(13, 19)
1070
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").
WithLocation
(4, 47),
1073
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").
WithLocation
(4, 74),
1076
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "maybeNull").
WithLocation
(6, 15),
1079
Diagnostic(ErrorCode.ERR_LockNeedsReference, "annotatedMissing").WithArguments("Missing?").
WithLocation
(8, 15),
1082
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").
WithLocation
(12, 30)
1118
Diagnostic(ErrorCode.ERR_SyntaxError, "!").WithArguments(",").
WithLocation
(7, 23),
1121
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(7, 24)
1143
Diagnostic(ErrorCode.WRN_UnreferencedVar, "y").WithArguments("y").
WithLocation
(6, 16),
1146
Diagnostic(ErrorCode.ERR_SemicolonExpected, "!").
WithLocation
(6, 17),
1149
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(6, 19),
1152
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y2").WithArguments("y2").
WithLocation
(7, 16),
1155
Diagnostic(ErrorCode.ERR_IllegalSuppression, "y2").
WithLocation
(8, 9),
1158
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 15)
1181
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Missing").WithArguments("(int, string)", "Missing").
WithLocation
(7, 28),
1184
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Missing").WithArguments("(int, string)", "Missing").
WithLocation
(8, 32)
1204
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 17)
1235
Diagnostic(ErrorCode.ERR_RefReturnLocal, "r").WithArguments("r").
WithLocation
(13, 24),
1238
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "r").WithArguments("R<string>", "R<string?>").
WithLocation
(13, 24),
1241
Diagnostic(ErrorCode.ERR_RefReturnLocal, "r").WithArguments("r").
WithLocation
(15, 24));
1277
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "y").WithArguments("y").
WithLocation
(10, 24),
1280
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "y").WithArguments("y").
WithLocation
(12, 20),
1283
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("System.Span<string?>", "System.Span<string>").
WithLocation
(17, 24)
1310
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "NullableRef()").WithArguments("string?", "string").
WithLocation
(6, 28),
1313
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(7, 29)
1349
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "C C.operator ++(C x)").
WithLocation
(6, 9)
1375
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc[] { 1 }").WithArguments("int", "int*").
WithLocation
(8, 20),
1378
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { null, string.Empty }").WithArguments("string").
WithLocation
(9, 35));
1405
Diagnostic(ErrorCode.ERR_IllegalSuppression, "i").
WithLocation
(6, 9),
1408
Diagnostic(ErrorCode.ERR_IllegalSuppression, "i").
WithLocation
(8, 9),
1411
Diagnostic(ErrorCode.ERR_IllegalSuppression, "s").
WithLocation
(13, 9),
1414
Diagnostic(ErrorCode.ERR_IllegalSuppression, "s").
WithLocation
(15, 9)
1465
Diagnostic(ErrorCode.ERR_NullNotValid, "select x").
WithLocation
(8, 29),
1468
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(9, 23),
1471
Diagnostic(ErrorCode.ERR_QueryNoProvider, "select x").WithArguments("anonymous method", "Select").
WithLocation
(10, 33),
1474
Diagnostic(ErrorCode.ERR_IllegalSuppression, "NS").
WithLocation
(11, 23),
1477
Diagnostic(ErrorCode.ERR_BadSKunknown, "NS").WithArguments("NS", "namespace").
WithLocation
(11, 23),
1480
Diagnostic(ErrorCode.ERR_BadSKunknown, "Main").WithArguments("C.Main()", "method").
WithLocation
(12, 23)
1517
Diagnostic(ErrorCode.ERR_IllegalSuppression, "E").
WithLocation
(7, 9)
1548
Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").
WithLocation
(11, 11),
1551
Diagnostic(ErrorCode.ERR_IllegalSuppression, "c.E").
WithLocation
(12, 9),
1554
Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").
WithLocation
(13, 15),
1557
Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").
WithLocation
(14, 22),
1560
Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").
WithLocation
(15, 11),
1563
Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").
WithLocation
(16, 21),
1566
Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").
WithLocation
(17, 11),
1569
Diagnostic(ErrorCode.ERR_IllegalSuppression, "c.E").
WithLocation
(18, 9),
1572
Diagnostic(ErrorCode.ERR_BadEventUsage, "E").WithArguments("C.E", "C").
WithLocation
(18, 11)
1600
Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&(i!)").
WithLocation
(8, 25),
1603
Diagnostic(ErrorCode.ERR_IllegalSuppression, "i").
WithLocation
(8, 27),
1606
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "b").
WithLocation
(14, 29)
1660
Diagnostic(ErrorCode.ERR_BadUnaryOp, "null!.field").WithArguments(".", "<null>").
WithLocation
(8, 17),
1663
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(9, 17),
1666
Diagnostic(ErrorCode.ERR_IllegalSuppression, "NS").
WithLocation
(10, 17),
1669
Diagnostic(ErrorCode.ERR_NoSuchMember, "field").WithArguments("NS.C", "field").
WithLocation
(10, 23),
1672
Diagnostic(ErrorCode.ERR_IllegalSuppression, "NS.C").
WithLocation
(11, 17),
1675
Diagnostic(ErrorCode.ERR_NoSuchMember, "field").WithArguments("NS.C", "field").
WithLocation
(11, 23),
1678
Diagnostic(ErrorCode.ERR_IllegalSuppression, "C").
WithLocation
(12, 24),
1681
Diagnostic(ErrorCode.ERR_SubexpressionNotInNameof, "C!").
WithLocation
(12, 24),
1684
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "C.M!").
WithLocation
(13, 24),
1687
Diagnostic(ErrorCode.ERR_NameNotInContext, "missing").WithArguments("missing").
WithLocation
(14, 24),
1690
Diagnostic(ErrorCode.ERR_BaseIllegal, "base").
WithLocation
(23, 17)
1713
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "a.Extension!").
WithLocation
(6, 20)
1919
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type").
WithLocation
(6, 24),
1922
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 27)
1944
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "M2").WithArguments("string? C.M2(string? s)", "C.Copier").
WithLocation
(6, 20)
1992
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "a.E").WithArguments("E", "method group").
WithLocation
(8, 9),
1995
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a.E! != null").WithArguments("!=", "method group", "<null>").
WithLocation
(9, 13),
1998
Diagnostic(ErrorCode.ERR_BadArgType, "a.E").WithArguments("1", "method group", "A").
WithLocation
(11, 15),
2001
Diagnostic(ErrorCode.ERR_BadSKunknown, "E").WithArguments("A.E()", "method").
WithLocation
(12, 15),
2004
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("A", "P").
WithLocation
(13, 15),
2007
Diagnostic(ErrorCode.ERR_BadUnaryOp, "!(a.E!)").WithArguments("!", "method group").
WithLocation
(14, 17),
2010
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a.E! ?? a.F!").WithArguments("??", "method group", "method group").
WithLocation
(15, 17),
2013
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "a.F").WithArguments("F", "method group").
WithLocation
(17, 9),
2016
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a.F! != null").WithArguments("!=", "method group", "<null>").
WithLocation
(18, 13),
2019
Diagnostic(ErrorCode.ERR_BadArgType, "a.F").WithArguments("1", "method group", "A").
WithLocation
(20, 15),
2022
Diagnostic(ErrorCode.ERR_BadSKunknown, "F").WithArguments("A.F()", "method").
WithLocation
(21, 15),
2025
Diagnostic(ErrorCode.ERR_BadUnaryOp, "!(a.F!)").WithArguments("!", "method group").
WithLocation
(22, 17),
2028
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "E").WithArguments("E", "object").
WithLocation
(23, 33),
2031
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(23, 40)
2096
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, "{ P! = null }").WithArguments("C").
WithLocation
(7, 21),
2099
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "P! = null").
WithLocation
(7, 23),
2102
Diagnostic(ErrorCode.ERR_IllegalSuppression, "P").
WithLocation
(7, 23),
2105
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 28)
2126
Diagnostic(ErrorCode.ERR_IllegalSuppression, "this.M").
WithLocation
(7, 9),
2129
Diagnostic(ErrorCode.ERR_NameNotInContext, "nameof").WithArguments("nameof").
WithLocation
(8, 9)
2183
Diagnostic(ErrorCode.ERR_IllegalSuppression, "d.M").
WithLocation
(7, 9),
2186
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d").
WithLocation
(14, 17),
2189
Diagnostic(ErrorCode.ERR_IllegalSuppression, "d.M").
WithLocation
(17, 9),
2192
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d").
WithLocation
(17, 9)
2229
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "M2").WithArguments("s", "string C.M2(string s)", "C.Copier").
WithLocation
(6, 20)
2251
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(6, 44),
2254
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(string? x) =>").WithArguments("x", "lambda expression", "C.Copier").
WithLocation
(7, 21),
2257
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(7, 45)
2290
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(6, 50),
2293
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(string? x) =>").WithArguments("x", "lambda expression", "C.Copier").
WithLocation
(7, 27),
2296
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(7, 51)
2329
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(string x) =>").WithArguments("x", "lambda expression", "C.Copier").
WithLocation
(7, 21)
2362
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(string x) =>").WithArguments("x", "lambda expression", "C.Copier").
WithLocation
(7, 27)
2407
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 9),
2410
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(9, 9),
2413
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(12, 9),
2416
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(15, 9));
2447
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(5, 69),
2450
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(string? x) =>").WithArguments("x", "lambda expression", "System.Func<string, string>").
WithLocation
(11, 45),
2453
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(11, 69),
2456
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(string x) =>").WithArguments("x", "lambda expression", "System.Func<string?, string?>").
WithLocation
(12, 47),
2459
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "M1").WithArguments("string? C.M1(string? x)", "System.Func<string, string>").
WithLocation
(13, 45),
2462
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "M2").WithArguments("x", "string C.M2(string x)", "System.Func<string?, string?>").
WithLocation
(14, 47));
2508
Diagnostic(ErrorCode.ERR_ObjectRequired, "G").WithArguments("A.G(string)").
WithLocation
(10, 17),
2511
Diagnostic(ErrorCode.ERR_ObjectRequired, "G").WithArguments("A.G(string)").
WithLocation
(11, 17),
2514
Diagnostic(ErrorCode.ERR_ObjectRequired, "G").WithArguments("A.G(string)").
WithLocation
(14, 18),
2517
Diagnostic(ErrorCode.ERR_ObjectRequired, "G2").WithArguments("A.G2(string?)").
WithLocation
(15, 18)
2556
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "G").WithArguments("s", "object A.G(string s)", "System.Func<string?, object>").
WithLocation
(8, 13)
2573
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => x").WithArguments("lambda expression", "string").
WithLocation
(4, 38)
2618
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "e.M3").WithArguments("SC.M3(E)", "E").
WithLocation
(24, 29),
2620
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "s.M4").WithArguments("SC.M4(S)", "S").
WithLocation
(26, 29),
2622
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "d.M5").WithArguments("SC.M5(double)", "double").
WithLocation
(27, 29));
2660
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "() => {}").
WithLocation
(6, 15),
2663
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(7, 9),
2666
Diagnostic(ErrorCode.ERR_IllegalSuppression, "M").
WithLocation
(7, 15)
2686
Diagnostic(ErrorCode.WRN_ManagedAddr, "C<string?>*").WithArguments("C<string?>").
WithLocation
(6, 9),
2689
Diagnostic(ErrorCode.WRN_ManagedAddr, "&x").WithArguments("C<string>").
WithLocation
(6, 26),
2692
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "&x").WithArguments("C<string>*", "C<string?>*").
WithLocation
(6, 26),
2695
Diagnostic(ErrorCode.WRN_ManagedAddr, "C<string?>*").WithArguments("C<string?>").
WithLocation
(7, 9),
2698
Diagnostic(ErrorCode.WRN_ManagedAddr, "&x!").WithArguments("C<string>").
WithLocation
(7, 26),
2701
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "&x!").WithArguments("C<string>*", "C<string?>*").
WithLocation
(7, 26),
2704
Diagnostic(ErrorCode.ERR_IllegalSuppression, "x").
WithLocation
(7, 27)
2727
Diagnostic(ErrorCode.ERR_NameNotInContext, "nameof").WithArguments("nameof").
WithLocation
(6, 13),
2730
Diagnostic(ErrorCode.ERR_SyntaxError, "!").WithArguments("(").
WithLocation
(7, 19),
2733
Diagnostic(ErrorCode.ERR_TypeExpected, "!").
WithLocation
(7, 19),
2736
Diagnostic(ErrorCode.ERR_CloseParenExpected, "!").
WithLocation
(7, 19),
2739
Diagnostic(ErrorCode.ERR_BadSKunknown, "C").WithArguments("C", "type").
WithLocation
(7, 21),
2742
Diagnostic(ErrorCode.ERR_IllegalSuppression, "this.M").
WithLocation
(8, 9),
2745
Diagnostic(ErrorCode.ERR_IllegalSuppression, "d.M2").
WithLocation
(10, 9)
2808
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").
WithLocation
(6, 13));
2814
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").
WithLocation
(6, 13),
2817
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "d").
WithLocation
(10, 13));
2890
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("S<string>", "S<string?>").
WithLocation
(6, 20),
2893
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<string>", "C<string>?").
WithLocation
(17, 20),
2896
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<string>?", "C<string>").
WithLocation
(21, 20)
2938
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("object", "object?").
WithLocation
(12, 47),
2941
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("object", "object?").
WithLocation
(14, 33),
2944
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("I<object?>", "I<object>").
WithLocation
(17, 33),
2947
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("I<object?>", "I<object>").
WithLocation
(19, 47),
2950
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("IOut<object>", "IOut<object?>").
WithLocation
(22, 47),
2953
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("IOut<object>", "IOut<object?>").
WithLocation
(24, 33),
2956
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("IIn<object?>", "IIn<object>").
WithLocation
(27, 33),
2959
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("IIn<object?>", "IIn<object>").
WithLocation
(29, 47)
2991
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w").WithArguments("C?", "C").
WithLocation
(6, 20),
2994
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w").WithArguments("C", "C?").
WithLocation
(10, 20)
3033
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C?", "C").
WithLocation
(6, 23),
3036
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(7, 9),
3039
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C", "C?").
WithLocation
(11, 24),
3042
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C?", "C").
WithLocation
(17, 23),
3045
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(19, 13),
3048
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "nullable").
WithLocation
(23, 13),
3051
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C", "C?").
WithLocation
(24, 24),
3054
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(25, 9)
3092
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "nullable").
WithLocation
(22, 13)
3115
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("S<string?>", "S<string>").
WithLocation
(7, 32),
3118
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("S<string?>", "S<string>").
WithLocation
(8, 18)
3128
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ref string?").WithArguments("string", "string?").
WithLocation
(6, 18));
3133
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ref string").WithArguments("string?", "string").
WithLocation
(6, 18),
3136
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item").
WithLocation
(8, 13));
3142
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item").
WithLocation
(8, 13));
3147
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ref C<string?>").WithArguments("C<string>", "C<string?>").
WithLocation
(6, 18));
3152
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ref C<string>").WithArguments("C<string?>", "C<string>").
WithLocation
(6, 18));
3157
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "ref C<object?>").WithArguments("C<dynamic>?", "C<object?>").
WithLocation
(6, 18),
3160
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item").
WithLocation
(8, 13));
3168
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item").
WithLocation
(8, 13));
3173
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item").
WithLocation
(8, 13));
3212
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item.Field").
WithLocation
(9, 13));
3217
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Field").WithArguments("field", "Field").
WithLocation
(4, 19));
3281
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 9),
3284
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 9),
3287
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(17, 9),
3290
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(23, 9),
3293
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(24, 9)
3349
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x == (() => 1)!").WithArguments("==", "System.Func<int>", "lambda expression").
WithLocation
(7, 13)
3369
Diagnostic(ErrorCode.ERR_ArgsInvalid, "__arglist").
WithLocation
(6, 13),
3372
Diagnostic(ErrorCode.ERR_IllegalArglist, "__arglist()").
WithLocation
(7, 21)
3393
Diagnostic(ErrorCode.ERR_MissingArraySize, "[]").
WithLocation
(7, 52),
3396
Diagnostic(ErrorCode.ERR_IllegalStatement, "new object[](x)!").
WithLocation
(8, 43),
3399
Diagnostic(ErrorCode.ERR_MissingArraySize, "[]").
WithLocation
(8, 53)
3426
Diagnostic(ErrorCode.ERR_IllegalSuppression, "x").
WithLocation
(6, 9),
3429
Diagnostic(ErrorCode.ERR_IllegalStatement, "x!").
WithLocation
(6, 9),
3432
Diagnostic(ErrorCode.ERR_IllegalSuppression, "M2(x)").
WithLocation
(7, 9),
3435
Diagnostic(ErrorCode.ERR_IllegalStatement, "M2(x)!").
WithLocation
(7, 9),
3438
Diagnostic(ErrorCode.ERR_IllegalSuppression, "x").
WithLocation
(11, 9),
3441
Diagnostic(ErrorCode.ERR_IllegalStatement, "x!").
WithLocation
(11, 9),
3444
Diagnostic(ErrorCode.ERR_IllegalSuppression, "M(x)").
WithLocation
(12, 9),
3447
Diagnostic(ErrorCode.ERR_IllegalStatement, "M(x)!").
WithLocation
(12, 9)
3466
Diagnostic(ErrorCode.ERR_VoidAssignment, "_").
WithLocation
(6, 9)
3487
Diagnostic(ErrorCode.ERR_BadUnaryOp, "(arg => { arg = 2; return arg; } !).ToString").WithArguments(".", "lambda expression").
WithLocation
(6, 35),
3490
Diagnostic(ErrorCode.ERR_BadUnaryOp, "(delegate { } !).ToString").WithArguments(".", "anonymous method").
WithLocation
(8, 17)
3510
Diagnostic(ErrorCode.ERR_BadUnaryOp, "(()=> { return 1; } !) ?.ToString()").WithArguments("?", "lambda expression").
WithLocation
(6, 18),
3513
Diagnostic(ErrorCode.ERR_BadUnaryOp, "(()=> { return 1; } !) ?.ToString()").WithArguments("?", "lambda expression").
WithLocation
(6, 18)
3551
Diagnostic(ErrorCode.ERR_BadDynamicMethodArgMemgrp, "M").
WithLocation
(15, 17),
3554
Diagnostic(ErrorCode.ERR_BadDynamicMethodArg, "ptr").WithArguments("int*").
WithLocation
(16, 17),
3557
Diagnostic(ErrorCode.ERR_BadDynamicMethodArgLambda, "() => {}").
WithLocation
(17, 17),
3560
Diagnostic(ErrorCode.ERR_BadDynamicMethodArg, "default(TypedReference)").WithArguments("System.TypedReference").
WithLocation
(18, 17),
3563
Diagnostic(ErrorCode.ERR_BadDynamicMethodArg, "M()").WithArguments("void").
WithLocation
(19, 17),
3566
Diagnostic(ErrorCode.ERR_ArgsInvalid, "__arglist").
WithLocation
(20, 17),
3569
Diagnostic(ErrorCode.ERR_BadDynamicMethodArg, "__arglist").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(20, 17)
3591
Diagnostic(ErrorCode.ERR_BadBinaryOps, "Main! ?? Main").WithArguments("??", "method group", "method group").
WithLocation
(8, 20),
3594
Diagnostic(ErrorCode.ERR_BadBinaryOps, "Main ?? Main!").WithArguments("??", "method group", "method group").
WithLocation
(9, 21)
3624
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => {}!) is null").
WithLocation
(6, 13),
3627
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(M!) is null").
WithLocation
(7, 13),
3630
Diagnostic(ErrorCode.ERR_BadUnaryOp, "(null, null)! is object").WithArguments("is", "(<null>, <null>)").
WithLocation
(8, 13),
3633
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "null! is object").WithArguments("object").
WithLocation
(9, 13),
3636
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(10, 13),
3639
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => {}!) as object").
WithLocation
(12, 13),
3642
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(M!) as object").
WithLocation
(13, 13),
3645
Diagnostic(ErrorCode.ERR_TypelessTupleInAs, "(null, null)! as object").
WithLocation
(14, 13),
3648
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(16, 13)
3670
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(7, 33),
3673
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 35),
3676
Diagnostic(ErrorCode.ERR_IllegalStatement, "i.").
WithLocation
(7, 31)
3748
Diagnostic(ErrorCode.ERR_IllegalStatement, "(throw null!)!").
WithLocation
(5, 9),
3751
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(5, 10)
3770
Diagnostic(ErrorCode.ERR_IllegalSuppression, "null!").
WithLocation
(5, 21));
3808
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "null is object").WithArguments("object").
WithLocation
(7, 13),
3811
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "null! is object").WithArguments("object").
WithLocation
(8, 13),
3814
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(10, 18),
3817
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(int)null!").WithArguments("int").
WithLocation
(11, 18),
3820
Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").
WithLocation
(12, 15),
3823
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(T)null!").WithArguments("T").
WithLocation
(13, 18),
3826
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "null").
WithLocation
(16, 10),
3829
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "null").
WithLocation
(17, 10),
3832
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "!null").WithArguments("!", "<null>").
WithLocation
(18, 13),
3835
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "!(null!)").WithArguments("!", "<null>").
WithLocation
(19, 13),
3838
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsBadCoalesce, "null").
WithLocation
(20, 58)
3872
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(5, 20),
3875
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(5, 36),
3878
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "default == default!").WithArguments("==", "default", "default").
WithLocation
(6, 13),
3881
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "default! == default!").WithArguments("==", "default", "default").
WithLocation
(7, 13),
3884
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 + default!").WithArguments("+", "default").
WithLocation
(8, 13),
3887
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(9, 13),
3890
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(10, 13)
3936
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(18, 57),
3939
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(22, 18),
3942
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(27, 18),
3945
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(33, 18));
4011
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "e").
WithLocation
(6, 24),
4014
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "null").
WithLocation
(7, 24),
4017
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "null").
WithLocation
(8, 15),
4020
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "e").
WithLocation
(13, 19),
4023
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "this").
WithLocation
(19, 15),
4026
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "e").
WithLocation
(24, 15),
4029
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "e").
WithLocation
(28, 15),
4032
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "TException?").WithArguments("9.0").
WithLocation
(30, 25),
4035
Diagnostic(ErrorCode.ERR_NoImplicitConv, "e").WithArguments("TException", "System.Exception").
WithLocation
(32, 15),
4038
Diagnostic(ErrorCode.ERR_NoImplicitConv, "e").WithArguments("TException", "System.Exception").
WithLocation
(36, 15),
4041
Diagnostic(ErrorCode.ERR_NoImplicitConv, "e").WithArguments("TException", "System.Exception").
WithLocation
(40, 15),
4044
Diagnostic(ErrorCode.ERR_NoImplicitConv, "e").WithArguments("T", "System.Exception").
WithLocation
(44, 15)
4095
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(12, 34),
4098
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "e").
WithLocation
(20, 19),
4101
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(28, 17),
4104
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "e").
WithLocation
(29, 19),
4107
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(35, 33),
4110
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(37, 17)
4130
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(6, 15),
4133
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 17)
4140
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 15),
4143
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 17)
4166
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(8, 9)
4197
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "tuple2.Item1").
WithLocation
(11, 9),
4200
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "tuple2.Item2").
WithLocation
(12, 9),
4203
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "tuple3.Item1").
WithLocation
(15, 9),
4206
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "tuple3.Item2").
WithLocation
(16, 9)
4229
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Copy").WithArguments("Program.Copy<T, U>(T, U)").
WithLocation
(7, 18),
4232
Diagnostic(ErrorCode.ERR_DuplicateParamName, "t").WithArguments("t").
WithLocation
(10, 32)
4255
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 13),
4258
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(7, 9)
4288
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2").
WithLocation
(8, 9),
4291
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2").
WithLocation
(15, 9)
4313
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2[0]").
WithLocation
(8, 9)
4339
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a[0].Item1").
WithLocation
(7, 9),
4342
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a[0].Item2").
WithLocation
(8, 9),
4345
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b[0].Item1").
WithLocation
(11, 9),
4348
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b[0].Item2").
WithLocation
(12, 9)
4370
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2[0]").
WithLocation
(8, 9)
4390
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x1").WithArguments("Base", "Outer").
WithLocation
(6, 19),
4393
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1").
WithLocation
(6, 19)
4425
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "(D)M1").WithArguments("string? C.M1(string s)", "C.D").
WithLocation
(6, 17),
4428
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(D)M2").WithArguments("s", "string C.M2(string s)", "C.D").
WithLocation
(14, 17)
4448
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 16),
4451
Diagnostic(ErrorCode.ERR_IllegalSuppression, "x").
WithLocation
(7, 9),
4454
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 14)
4546
Diagnostic(ErrorCode.WRN_BadXMLRef, "M{T}(T?)").WithArguments("M{T}(T?)").
WithLocation
(8, 20));
4578
Diagnostic(ErrorCode.WRN_BadXMLRef, "M{T}(T?)").WithArguments("M{T}(T?)").
WithLocation
(8, 20));
4606
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y0").
WithLocation
(7, 16),
4609
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y0").
WithLocation
(9, 16)
4630
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 16)
4665
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y2").WithArguments("object", "T").
WithLocation
(11, 14),
4668
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)y3").
WithLocation
(16, 14),
4671
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y4").WithArguments("object", "string").
WithLocation
(21, 14),
4674
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y4").
WithLocation
(21, 14));
4702
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2[0]").
WithLocation
(8, 9),
4705
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2[0]").
WithLocation
(15, 9)
4735
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<string>", "C<string?>").
WithLocation
(12, 25),
4738
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a[0]").
WithLocation
(13, 9),
4741
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<string>", "C<string?>").
WithLocation
(15, 28),
4744
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b[0]").
WithLocation
(16, 9)
4780
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(12, 9),
4783
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(21, 9)
4819
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(12, 9),
4822
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(21, 9)
4849
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(12, 9)
4877
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1.Item1").
WithLocation
(12, 9),
4880
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1.Item2").
WithLocation
(13, 9)
4921
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(18, 9),
4924
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(26, 9)
4965
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(18, 9),
4968
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(26, 9)
5010
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<string>", "C<string?>").
WithLocation
(15, 27),
5013
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(18, 9),
5016
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<string>", "C<string?>").
WithLocation
(24, 20),
5019
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(26, 9)
5060
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(3, 48)
5097
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(10, 20),
5100
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(13, 9),
5103
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(18, 27),
5106
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(22, 9)
5137
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1.Item1").
WithLocation
(13, 9)
5181
Diagnostic(ErrorCode.ERR_NullableDirectiveQualifierExpected, "").
WithLocation
(1, 10),
5184
Diagnostic(ErrorCode.ERR_NullableDirectiveQualifierExpected, "safeonly").
WithLocation
(5, 11),
5187
Diagnostic(ErrorCode.ERR_NullableDirectiveQualifierExpected, "yes").
WithLocation
(6, 11)
5231
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 28),
5234
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(14, 28));
5277
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 28),
5280
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(14, 28));
5323
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(14, 28));
5385
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C6()").WithArguments("C6", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(15, 11),
5388
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C7()").WithArguments("C7", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(16, 11),
5391
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C9()").WithArguments("C9", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(18, 11));
5398
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C6()").WithArguments("C6", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(15, 11),
5401
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C7()").WithArguments("C7", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(16, 11),
5404
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C9()").WithArguments("C9", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(18, 11));
5411
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C1()").WithArguments("C1", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(10, 11),
5414
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C3()").WithArguments("C3", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(12, 11),
5417
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C4()").WithArguments("C4", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(13, 11),
5420
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C6()").WithArguments("C6", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(15, 11),
5423
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C7()").WithArguments("C7", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(16, 11),
5426
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new C9()").WithArguments("C9", "Base<object?>", "b", "void Program.F(Base<object?> b)").
WithLocation
(18, 11));
5452
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "void Program.F(object x)").
WithLocation
(7, 11));
5478
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "void Program.F(object x)").
WithLocation
(12, 11));
5503
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "void Program.F(object x)").
WithLocation
(6, 11));
5528
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "void Program.F(object x)").
WithLocation
(11, 11));
5568
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotationInGeneratedCode, "?").
WithLocation
(6, 25));
5608
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 13)
5630
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 13)
5659
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 13)
5693
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 13)
5728
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 13),
5731
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 13)
5808
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 13),
5811
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 13),
5814
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 13),
5817
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 13)
5848
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 26),
5851
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 37),
5854
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(14, 26));
5874
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 13));
5982
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 25),
5985
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 13));
6104
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "M").WithArguments("s").
WithLocation
(10, 18));
6127
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M").WithArguments("list").
WithLocation
(11, 28));
6170
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "M").WithArguments("s", "void C.M(string s)", "void I.M(string? s)").
WithLocation
(10, 17)
6193
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "M").WithArguments("string? C.M()", "string I.M()").
WithLocation
(10, 20)
6214
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 25),
6217
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 13));
6238
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 25),
6241
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 13));
6262
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 25),
6265
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 13));
6284
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 25),
6287
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 13));
6308
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 25),
6311
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 13));
6349
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 13));
6390
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 20)
6410
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "My").WithArguments("x", "(string alice, string)[]").
WithLocation
(7, 2),
6413
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "My").WithArguments("y", "dynamic[]").
WithLocation
(7, 2)
6434
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "My").WithArguments("y", "dynamic[]").
WithLocation
(7, 2)
6501
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new object?[] { null }").WithArguments("object?[]", "object[]", "o", "MyAttribute.MyAttribute(params object[] o)").
WithLocation
(5, 5)
6524
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new object?[] { null }").WithArguments("object?[]", "object[]", "o", "MyAttribute.MyAttribute(object[] o)").
WithLocation
(5, 5)
6546
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "My").WithArguments("o", "(int c, int)[]").
WithLocation
(4, 2)
6568
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "My").WithArguments("o", "dynamic[]").
WithLocation
(4, 2)
6593
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 14)
6659
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 14),
6662
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 14),
6665
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 20),
6668
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 14)
6696
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 46),
6699
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 21)
6727
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 25),
6730
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 28)
6781
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 14),
6784
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(19, 1),
6787
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(23, 14),
6790
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(36, 1)
6843
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 14),
6846
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(21, 1),
6849
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(25, 14),
6852
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(38, 1)
6874
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 14)
6914
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new string?[]{ null }").WithArguments("string?[]", "string[]", "s", "MyAttribute.MyAttribute(string[] s)").
WithLocation
(8, 14)
6957
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, @"new []{ ""str"", null }").WithArguments("string?[]", "string[]", "s", "MyAttribute.MyAttribute(string[] s)").
WithLocation
(8, 14)
6979
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 35)
7006
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 27),
7009
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(11, 20)
7037
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 14)
7059
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 21)
7086
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 24)
7116
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 30)
7145
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new string?[]{ null }").WithArguments("string?[]", "string[]").
WithLocation
(12, 30)
7172
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 24)
7201
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 27)
7230
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new string?[]{ null }").WithArguments("string?[]", "string[]").
WithLocation
(12, 27)
7251
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "MyAttribute(null)").WithArguments("MyAttribute", "1").
WithLocation
(7, 2)
7272
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "MyAttribute(new string[] { null })").WithArguments("MyAttribute", "1").
WithLocation
(7, 2),
7275
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 29)
7307
)").WithArguments("MyAttribute", "1").
WithLocation
(10, 2),
7310
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(11, 20),
7313
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 21),
7316
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 44)
7348
)").WithArguments("MyAttribute", "1").
WithLocation
(10, 2),
7351
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(11, 20),
7354
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 18),
7357
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 43)
7416
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(26, 14),
7419
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(27, 24),
7422
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new string?[]{ null }").WithArguments("string?[]", "string[]").
WithLocation
(28, 43),
7425
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(29, 46),
7428
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new string?[]{ null }").WithArguments("string?[]", "string[]").
WithLocation
(30, 44),
7431
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(31, 43),
7434
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(32, 55),
7437
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(33, 14),
7440
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(34, 17),
7443
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(35, 36),
7446
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new string?[]{ null }").WithArguments("string?[]", "string[]").
WithLocation
(36, 37),
7449
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(37, 14),
7452
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(41, 36),
7455
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new string?[]{ null }").WithArguments("string?[]", "string[]").
WithLocation
(45, 34)
7520
Diagnostic(ErrorCode.ERR_IsNullableType, "string?").WithArguments("string").
WithLocation
(6, 18),
7523
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(6, 24),
7526
Diagnostic(ErrorCode.ERR_IsNullableType, "string ?").WithArguments("string").
WithLocation
(7, 18),
7529
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(7, 25),
7532
Diagnostic(ErrorCode.ERR_AsNullableType, "string ?").WithArguments("string").
WithLocation
(9, 18),
7535
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(9, 25),
7538
Diagnostic(ErrorCode.ERR_IsNullableType, "object[]?").WithArguments("object[]").
WithLocation
(14, 18),
7541
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(14, 26),
7544
Diagnostic(ErrorCode.ERR_IsNullableType, "object[] ?").WithArguments("object[]").
WithLocation
(15, 18),
7547
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(15, 27),
7550
Diagnostic(ErrorCode.ERR_AsNullableType, "object[] ?").WithArguments("object[]").
WithLocation
(17, 18),
7553
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(17, 27),
7556
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(22, 21),
7559
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(23, 22),
7562
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(25, 22)
7569
Diagnostic(ErrorCode.ERR_IsNullableType, "string?").WithArguments("string").
WithLocation
(6, 18),
7572
Diagnostic(ErrorCode.ERR_IsNullableType, "string ?").WithArguments("string").
WithLocation
(7, 18),
7575
Diagnostic(ErrorCode.ERR_AsNullableType, "string ?").WithArguments("string").
WithLocation
(9, 18),
7578
Diagnostic(ErrorCode.ERR_IsNullableType, "object[]?").WithArguments("object[]").
WithLocation
(14, 18),
7581
Diagnostic(ErrorCode.ERR_IsNullableType, "object[] ?").WithArguments("object[]").
WithLocation
(15, 18),
7584
Diagnostic(ErrorCode.ERR_AsNullableType, "object[] ?").WithArguments("object[]").
WithLocation
(17, 18)
7636
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(12, 13)
7664
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(12, 13)
7694
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(14, 13)
7716
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("x", "void C.OmittedMethod(string x)").
WithLocation
(6, 23)
7740
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("x", "void Collection.Add(string x)").
WithLocation
(7, 32)
7803
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(5, 12),
7806
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(4, 12));
7835
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(15, 13),
7838
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(16, 9)
7851
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(10, 2)
7898
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("string?", "string").
WithLocation
(6, 28),
7901
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("string?", "string").
WithLocation
(7, 29),
7904
Diagnostic(ErrorCode.ERR_IllegalSuppression, "y2").
WithLocation
(8, 10),
7907
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(8, 20),
7910
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(8, 29)
7977
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s").
WithLocation
(10, 9)
7999
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(7, 9)
8040
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c", isSuppressed: false).
WithLocation
(8, 9),
8043
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c", isSuppressed: false).
WithLocation
(14, 9),
8046
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c", isSuppressed: false).
WithLocation
(20, 9));
8074
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c", isSuppressed: false).
WithLocation
(9, 9),
8077
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c", isSuppressed: false).
WithLocation
(14, 9));
8099
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
8121
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 16),
8124
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "x").WithArguments("C.x").
WithLocation
(5, 12)
8186
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "true ? 1 : c").
WithLocation
(8, 15)
8208
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "false ? c : 1").
WithLocation
(7, 15)
8230
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "b ? c : 1").
WithLocation
(7, 15),
8233
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "b ? 1 : c").
WithLocation
(8, 15)
8259
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "c2").WithArguments("i", "C.implicit operator int(C i)").
WithLocation
(11, 25)
8316
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(36, 21),
8319
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 18),
8322
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 18),
8325
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(24, 18),
8328
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(33, 32),
8331
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(34, 30),
8334
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(40, 47),
8337
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(40, 46),
8340
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(40, 22),
8343
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(40, 21),
8346
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(45, 33),
8349
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(45, 18),
8352
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(43, 15),
8355
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(43, 14),
8358
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(35, 20),
8361
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(35, 41),
8364
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(38, 29),
8367
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(38, 28),
8370
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(39, 24),
8373
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 18),
8376
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 41),
8379
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(9, 19),
8382
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(15, 15),
8385
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(20, 19),
8388
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 31),
8391
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 33),
8394
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 15),
8397
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(26, 27),
8400
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(26, 36),
8403
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(26, 51),
8406
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(28, 19),
8409
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(37, 35)
8419
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "string?").WithArguments("C<T>", "T", "string?").
WithLocation
(18, 25),
8422
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "x").WithArguments("C<T>", "T", "string?").
WithLocation
(34, 33),
8425
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "string?").WithArguments("C<T>", "T", "string?").
WithLocation
(35, 35),
8428
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Event").
WithLocation
(37, 17),
8431
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "string?").WithArguments("C<T>", "T", "string?").
WithLocation
(37, 29),
8434
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "D2").WithArguments("C<T>", "T", "string?").
WithLocation
(39, 11),
8437
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "+").WithArguments("C<T>", "T", "T?").
WithLocation
(40, 34),
8440
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "y").WithArguments("C<T>", "T", "T?").
WithLocation
(40, 50),
8443
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "x").WithArguments("C<T>", "T", "T?").
WithLocation
(43, 18),
8446
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "x").WithArguments("C<T>", "T", "string?").
WithLocation
(45, 36)
8478
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 18),
8481
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(4, 17),
8484
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 13),
8487
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(4, 12),
8490
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 10),
8493
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(6, 9)
8509
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"c.M("""")").
WithLocation
(6, 9)
8519
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"c.M("""")").
WithLocation
(6, 9)
8526
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"c.M("""")").
WithLocation
(6, 9)
8552
Diagnostic(ErrorCode.ERR_BadNullableTypeof, "typeof(object?)").
WithLocation
(6, 4),
8555
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 17),
8558
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 19));
8564
Diagnostic(ErrorCode.ERR_BadNullableTypeof, "typeof(object?)").
WithLocation
(6, 4));
8580
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("NullableContextOptions", "Enable", "7.3", "8.0").
WithLocation
(1, 1)
8586
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("NullableContextOptions", "Warnings", "7.3", "8.0").
WithLocation
(1, 1)
8661
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "G").
WithLocation
(13, 32));
8710
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "E").WithArguments("System.Int32").
WithLocation
(1, 6),
8713
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(4, 5),
8716
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "int").WithArguments("System.Int32").
WithLocation
(4, 17));
8746
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T?").WithArguments("System.Nullable`1").
WithLocation
(6, 9)
8759
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T?").WithArguments("System.Nullable`1").
WithLocation
(4, 12)
8772
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "T?").WithArguments("System.Nullable`1").
WithLocation
(4, 27),
8775
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "U").WithArguments("System.Nullable`1").
WithLocation
(4, 12)
8878
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 13));
8884
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 13));
9076
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "C.Create(y).F").
WithLocation
(7, 13));
9151
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("o", "object? B2.F(object o)").
WithLocation
(43, 18),
9154
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "b2.F(x)").
WithLocation
(43, 13),
9157
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("o", "object? C2.F(object o)").
WithLocation
(51, 18),
9160
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "d2.F(x)").
WithLocation
(51, 13));
9167
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("o", "object? B2.F(object o)").
WithLocation
(43, 18),
9170
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "b2.F(x)").
WithLocation
(43, 13),
9173
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("o", "object? C2.F(object o)").
WithLocation
(51, 18),
9176
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "d2.F(x)").
WithLocation
(51, 13));
9248
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((I)a).F(o)").
WithLocation
(5, 9),
9251
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 18),
9254
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((I)b).F(o)").
WithLocation
(12, 9),
9257
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 18),
9260
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((I)d).F(o)").
WithLocation
(19, 9),
9263
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(20, 18));
9317
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 47),
9320
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 27)
9332
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(9, 37),
9335
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(9, 48),
9338
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(9, 27),
9341
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(21, 25),
9344
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 33),
9347
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 37),
9350
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 48),
9353
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 27)
9368
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("x", "object C1.F(object x, object y)").
WithLocation
(15, 20),
9371
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("x", "object C1.G(object x, object y)").
WithLocation
(16, 20),
9374
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("x", "object? A.F(object x, object? y)").
WithLocation
(19, 18),
9377
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((A)c).F(x, y)").
WithLocation
(19, 9),
9380
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.F(x, y)").
WithLocation
(23, 9),
9383
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.G(x, y)").
WithLocation
(24, 9),
9386
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("x", "object? A.F(object x, object? y)").
WithLocation
(27, 18),
9389
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((A)c).F(x, y)").
WithLocation
(27, 9));
9501
Diagnostic(ErrorCode.ERR_NoTypeDef, "C").WithArguments("Base", "lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(3, 20),
9504
Diagnostic(ErrorCode.ERR_NoTypeDef, "D").WithArguments("Base", "lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 2),
9507
Diagnostic(ErrorCode.ERR_NoTypeDef, "D").WithArguments("Base", "lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 2)
9558
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 25)
9648
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("field", "s").
WithLocation
(10, 30),
9651
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("field", "s").
WithLocation
(18, 26),
9654
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("field", "s").
WithLocation
(26, 26),
9657
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("field", "s").
WithLocation
(38, 30),
9660
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(49, 25),
9663
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(58, 36),
9666
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(64, 36),
9669
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(67, 29),
9672
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(70, 29),
9675
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(73, 36)
9690
Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").
WithLocation
(2, 55)
9799
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("field", "s").
WithLocation
(11, 37),
9802
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "ns").WithArguments("field", "ns").
WithLocation
(12, 38),
9805
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("field", "s").
WithLocation
(19, 33),
9808
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "ns").WithArguments("field", "ns").
WithLocation
(20, 34),
9811
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("field", "s").
WithLocation
(29, 37),
9814
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "ns").WithArguments("field", "ns").
WithLocation
(31, 38),
9817
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(39, 31),
9820
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(48, 41),
9823
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(54, 41),
9826
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(57, 34),
9829
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(60, 41));
9918
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(33, 36),
9921
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(42, 38),
9924
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(45, 38),
9927
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(48, 31),
9930
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(51, 38)
10027
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("field", "s").
WithLocation
(10, 32),
10030
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "ns").WithArguments("field", "ns").
WithLocation
(11, 33),
10033
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("field", "s").
WithLocation
(18, 28),
10036
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "ns").WithArguments("field", "ns").
WithLocation
(19, 29),
10039
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("field", "s").
WithLocation
(28, 32),
10042
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "ns").WithArguments("field", "ns").
WithLocation
(30, 33),
10045
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(38, 25),
10048
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(47, 39),
10051
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(50, 39),
10054
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(53, 32),
10057
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(56, 39)
10156
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("property", "s").
WithLocation
(10, 30),
10159
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("property", "s").
WithLocation
(19, 26),
10162
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s").WithArguments("property", "s").
WithLocation
(29, 30),
10165
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(39, 25),
10168
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(48, 36),
10171
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(51, 36),
10174
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(54, 29),
10177
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(57, 36)
10273
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(38, 41),
10276
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(38, 25),
10279
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(47, 25),
10282
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(50, 25),
10285
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(53, 18),
10288
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(56, 25)
10377
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "_f").WithArguments("field", "_f").
WithLocation
(5, 9)
10398
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("NullableContextOptions", "Enable", "7.0", "8.0").
WithLocation
(1, 1)
10505
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(58, 11),
10508
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns").
WithLocation
(14, 13),
10511
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns1").
WithLocation
(24, 13),
10514
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns").
WithLocation
(34, 13),
10517
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns1").
WithLocation
(44, 13)
10605
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(60, 11),
10608
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(14, 24),
10611
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(34, 24)
10678
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(52, 30),
10681
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 14),
10684
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns2").
WithLocation
(14, 9),
10687
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(19, 14),
10690
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns3").
WithLocation
(22, 9),
10693
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns4").
WithLocation
(30, 9),
10696
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns5").
WithLocation
(38, 9)
10764
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(52, 30),
10767
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 24),
10770
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(21, 29)
10839
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(54, 18),
10842
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 14),
10845
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns2").
WithLocation
(14, 9),
10848
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(19, 14),
10851
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns3").
WithLocation
(22, 9),
10854
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns4").
WithLocation
(30, 9),
10857
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ns5").
WithLocation
(38, 9)
10927
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(54, 18),
10930
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 15),
10933
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(21, 15)
10969
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 13)
11020
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "NullableReturnMethod").WithArguments("string[]? C.NullableReturnMethod(string[] x)", "MyDelegate").
WithLocation
(18, 25),
11023
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "Method").WithArguments("x", "string[] C.Method(string[] x)", "MyNullableDelegate").
WithLocation
(24, 33),
11026
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "NullableReturnMethod").WithArguments("x", "string[]? C.NullableReturnMethod(string[] x)", "MyNullableDelegate").
WithLocation
(26, 33)
11071
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "nullableField").WithArguments("x", "C.C(string[] x)").
WithLocation
(27, 15)
11117
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 18),
11120
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "nt.Item").
WithLocation
(15, 9),
11123
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(23, 22));
11162
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 11),
11165
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(15, 11)
11237
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(28, 5),
11240
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 6),
11243
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(17, 5),
11246
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 6),
11249
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(6, 5),
11252
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(19, 6),
11255
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(19, 5),
11258
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 6),
11261
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(8, 5)
11481
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments("B.M1<T>(T?)").
WithLocation
(16, 26),
11484
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(16, 35),
11487
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M2").WithArguments("B.M2<T>()", "A.M2<T>()", "T").
WithLocation
(20, 24),
11490
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M2").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(20, 24));
11681
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M5").WithArguments("B.M5<T>(C<T?>)").
WithLocation
(43, 26),
11684
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(43, 38));
11748
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments("B.M1<T>(T?)").
WithLocation
(11, 26),
11751
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(11, 35)
11808
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(8, 23),
11811
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M2").WithArguments("B.M2<T>(T?)").
WithLocation
(27, 26),
11814
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M3").WithArguments("B.M3<T>(T?)").
WithLocation
(31, 26),
11817
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "M4").WithArguments("B.M4<T>(T?)", "A.M4<T>(T?)").
WithLocation
(35, 26),
11820
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments("B.M1<T>(T?)").
WithLocation
(23, 26),
11823
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(27, 35),
11826
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(31, 35),
11829
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(35, 35),
11832
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(23, 35)
11873
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(4, 50),
11876
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(11, 35)
11911
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M1").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(4, 42),
11914
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M1").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(12, 27)
11987
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M4").WithArguments("B.M4()", "A.M4()", "string?").
WithLocation
(47, 29),
11990
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "M5").WithArguments("B.M5()", "A.M5()").
WithLocation
(52, 29),
11993
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M1").
WithLocation
(32, 29),
11996
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M4").WithArguments("System.Nullable<T>", "T", "string").
WithLocation
(19, 44),
11999
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M5").WithArguments("System.Nullable<T>", "T", "string").
WithLocation
(24, 36)
12070
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "string").
WithLocation
(16, 52),
12073
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "string").
WithLocation
(20, 44),
12076
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M3").WithArguments("x").
WithLocation
(35, 26),
12079
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M4").WithArguments("B.M4(string?)").
WithLocation
(39, 26),
12082
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M5").WithArguments("B.M5(string?)").
WithLocation
(43, 26)
12164
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M3").WithArguments("B.M3()", "A.M3()", "int?").
WithLocation
(42, 25),
12167
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "M5").WithArguments("B.M5()", "A.M5()").
WithLocation
(52, 26),
12170
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M1").WithArguments("B.M1()", "A.M1()", "int").
WithLocation
(32, 26)
12236
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M3").WithArguments("B.M3(int)").
WithLocation
(35, 26),
12239
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "M5").WithArguments("B.M5(int?)", "A.M5(int?)").
WithLocation
(43, 26),
12242
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments("B.M1(int?)").
WithLocation
(27, 26)
12297
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride, "E1").
WithLocation
(18, 50),
12300
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride, "E2").
WithLocation
(19, 49),
12303
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride, "E1").
WithLocation
(25, 50),
12306
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E1").WithArguments("event", "E1").
WithLocation
(25, 50),
12309
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride, "E2").
WithLocation
(26, 49),
12312
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E2").WithArguments("event", "E2").
WithLocation
(26, 49)
12387
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "Oblivious2").WithArguments("x").
WithLocation
(18, 44),
12390
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M3").WithArguments("x").
WithLocation
(19, 44),
12393
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M4").WithArguments("x").
WithLocation
(20, 44),
12396
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M5").WithArguments("x").
WithLocation
(21, 44)
12442
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(7, 25),
12445
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(7, 47),
12448
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(12, 26),
12451
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(12, 27)
12476
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(7, 47),
12479
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(12, 27)
12503
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(6, 47));
12596
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(19, 47),
12599
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride, "E1").
WithLocation
(19, 50),
12602
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(27, 47),
12605
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride, "E1").
WithLocation
(27, 50)
12654
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnImplicitImplementation, "E2").WithArguments("event Action<string> B2.E2", "event Action<string>? IA.E2").
WithLocation
(26, 40),
12657
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnImplicitImplementation, "E1").WithArguments("event Action<string?> B2.E1", "event Action<string> IA.E1").
WithLocation
(25, 41),
12660
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnImplicitImplementation, "E2").WithArguments("event Action<string> B1.E2", "event Action<string>? IA.E2").
WithLocation
(19, 40),
12663
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnImplicitImplementation, "E1").WithArguments("event Action<string?> B1.E1", "event Action<string> IA.E1").
WithLocation
(18, 41),
12666
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E1").WithArguments("event", "E1").
WithLocation
(25, 41),
12669
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E2").WithArguments("event", "E2").
WithLocation
(26, 40)
12753
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, "E3").
WithLocation
(34, 38),
12756
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IB").WithArguments("B2", "IB.E3.remove").
WithLocation
(30, 12),
12759
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IB").WithArguments("B2", "IB.E3.add").
WithLocation
(30, 12),
12762
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnExplicitImplementation, "E2").WithArguments("event Action<string>? IA.E2").
WithLocation
(19, 36),
12765
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnExplicitImplementation, "E1").WithArguments("event Action<string> IA.E1").
WithLocation
(18, 37)
12859
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(27, 39),
12862
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(28, 35),
12865
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(33, 9),
12868
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(38, 9)
12941
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(14, 27),
12944
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 27),
12947
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(23, 29),
12950
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(33, 29)
13007
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "get").WithArguments("string[]? B.P2.get", "string[] IA.P2.get").
WithLocation
(23, 26),
13010
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnImplicitImplementation, "set").WithArguments("value", "void B.this[int x].set", "void IA.this[int x].set").
WithLocation
(29, 9),
13013
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "get").WithArguments("string[]? B.this[short x].get", "string[] IA.this[short x].get").
WithLocation
(34, 9),
13016
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnImplicitImplementation, "set").WithArguments("value", "void B.P1.set", "void IA.P1.set").
WithLocation
(22, 30)
13098
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnExplicitImplementation, "set").WithArguments("value", "void IA.P1.set").
WithLocation
(22, 26),
13101
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "get").WithArguments("string[] IA.P2.get").
WithLocation
(23, 22),
13104
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnExplicitImplementation, "set").WithArguments("value", "void IA.this[int x].set").
WithLocation
(29, 9),
13107
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "get").WithArguments("string[] IA.this[short x].get").
WithLocation
(34, 9)
13177
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M2").WithArguments("B.M2<S>()", "A.M2<T>()", "S[]").
WithLocation
(23, 26),
13180
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M3").WithArguments("B.M3<S>()", "A.M3<T>()", "S?[]").
WithLocation
(28, 27),
13183
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M1").
WithLocation
(18, 31),
13186
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M2").WithArguments("System.Nullable<T>", "T", "S").
WithLocation
(23, 26),
13189
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M3").WithArguments("System.Nullable<T>", "T", "S").
WithLocation
(28, 27));
13238
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(24, 22),
13241
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 27),
13244
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M2").WithArguments("B.M2<S>()", "A.M2<T>()", "S[]").
WithLocation
(24, 26),
13247
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M1").
WithLocation
(18, 31),
13250
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M2").WithArguments("System.Nullable<T>", "T", "S").
WithLocation
(24, 26),
13253
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(20, 26),
13256
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(26, 21)
13301
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnImplicitImplementation, "M2").WithArguments("S?[] B.M2<S>()", "T[] IA.M2<T>()").
WithLocation
(23, 17),
13304
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnImplicitImplementation, "M1").WithArguments("string?[] B.M1()", "string[] IA.M1()").
WithLocation
(18, 22)
13369
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M2").WithArguments("B.M2<S>()").
WithLocation
(23, 13),
13372
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M3").WithArguments("B.M3<S>()").
WithLocation
(28, 14),
13375
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "M1").WithArguments("string[] IA.M1()").
WithLocation
(18, 18),
13378
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IA").WithArguments("B", "IA.M3<T>()").
WithLocation
(16, 11),
13381
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IA").WithArguments("B", "IA.M2<T>()").
WithLocation
(16, 11),
13384
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M2").WithArguments("System.Nullable<T>", "T", "S").
WithLocation
(23, 13),
13387
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M3").WithArguments("System.Nullable<T>", "T", "S").
WithLocation
(28, 14),
13390
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "S?").WithArguments("9.0").
WithLocation
(25, 20),
13393
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "S?").WithArguments("9.0").
WithLocation
(30, 20)
13441
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 6),
13444
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M2").WithArguments("B.M2<S>()").
WithLocation
(17, 13),
13447
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 11),
13450
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "M1").WithArguments("string[] IA.M1()").
WithLocation
(11, 18),
13453
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IA").WithArguments("B", "IA.M2<T>()").
WithLocation
(8, 11),
13456
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M2").WithArguments("System.Nullable<T>", "T", "S").
WithLocation
(17, 13),
13459
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 26),
13462
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(19, 21),
13465
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "S?").WithArguments("9.0").
WithLocation
(19, 20)
13505
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 6),
13508
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "M2").WithArguments("T[] IA.M2<T>()").
WithLocation
(17, 13),
13511
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 11),
13514
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "M1").WithArguments("string[] IA.M1()").
WithLocation
(11, 18),
13517
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 26),
13520
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(19, 21)
13546
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 6),
13549
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(7, 5),
13552
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 11)
13579
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 19),
13582
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(7, 16),
13585
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 17),
13588
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnExplicitImplementation, "M1").WithArguments("x", "void IA.M1(string?[] x)").
WithLocation
(12, 13),
13591
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnExplicitImplementation, "M2").WithArguments("x", "void IA.M2<T>(T?[] x)").
WithLocation
(13, 13)
13655
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M2").WithArguments("B.M2<T>(T?[])").
WithLocation
(22, 26),
13658
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M3").WithArguments("B.M3<T>(T?[]?)").
WithLocation
(26, 26),
13661
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.M3<T>(T?[]?)").
WithLocation
(16, 7),
13664
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.M2<T>(T[])").
WithLocation
(16, 7),
13667
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(22, 37),
13670
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(26, 38)
13717
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 33),
13720
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 35),
13723
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M2").WithArguments("B.M2<T>(T?[])").
WithLocation
(18, 26),
13726
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.M2<T>(T[])").
WithLocation
(10, 7),
13729
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(18, 37)
13848
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M1").
WithLocation
(11, 40)
14006
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M2").
WithLocation
(23, 26),
14009
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M1").
WithLocation
(18, 31)
14062
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M1").
WithLocation
(18, 31),
14065
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(24, 22),
14068
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M2").
WithLocation
(24, 26),
14071
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 27),
14074
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(20, 26),
14077
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(26, 21)
14163
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 33),
14166
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 35)
14427
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System.Collections.Generic;").
WithLocation
(4, 1),
14430
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System.Text;").
WithLocation
(5, 1),
14433
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IQueryable<TItem1>").WithArguments("IQueryable<>").
WithLocation
(10, 14),
14436
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IQueryable<Nullable<TResult>>").WithArguments("IQueryable<>").
WithLocation
(10, 34),
14439
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IQueryable<TItem1>").WithArguments("IQueryable<>").
WithLocation
(17, 14),
14442
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IQueryable<TResult?>").WithArguments("IQueryable<>").
WithLocation
(17, 34)
14553
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M4").
WithLocation
(23, 32),
14556
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(25, 44),
14559
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(26, 44),
14562
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride, "E1").
WithLocation
(28, 40),
14565
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride, "E2").
WithLocation
(29, 40),
14568
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M").
WithLocation
(33, 29),
14571
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M2").
WithLocation
(34, 40),
14574
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M3").
WithLocation
(35, 32),
14577
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M4").
WithLocation
(36, 33),
14580
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M5").
WithLocation
(37, 42),
14583
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(38, 40),
14586
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(39, 40),
14589
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "null!").
WithLocation
(40, 35),
14592
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M4").
WithLocation
(49, 32),
14595
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(51, 44),
14598
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(52, 44),
14601
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride, "E1").
WithLocation
(54, 40),
14604
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride, "E2").
WithLocation
(55, 40),
14607
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M").
WithLocation
(59, 29),
14610
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M2").
WithLocation
(60, 40),
14613
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M3").
WithLocation
(61, 32),
14616
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M4").
WithLocation
(62, 33),
14619
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M5").
WithLocation
(63, 42),
14622
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(64, 40),
14625
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(65, 40),
14628
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "null!").
WithLocation
(66, 35)
14655
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(14, 44)
14682
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(14, 40)
14755
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M4").WithArguments("o").
WithLocation
(20, 26),
14758
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M5").WithArguments("o").
WithLocation
(21, 26),
14761
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(23, 47),
14764
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M").WithArguments("o").
WithLocation
(29, 26),
14767
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M2").WithArguments("t").
WithLocation
(30, 26),
14770
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M3").WithArguments("i").
WithLocation
(31, 26),
14773
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M4").WithArguments("o").
WithLocation
(32, 26),
14776
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M6").WithArguments("o").
WithLocation
(34, 26),
14779
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("o").
WithLocation
(35, 59),
14782
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(35, 59),
14785
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "null!").WithArguments("s").
WithLocation
(36, 46),
14788
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("a").
WithLocation
(37, 44),
14791
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M4").WithArguments("o").
WithLocation
(44, 26),
14794
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M5").WithArguments("o").
WithLocation
(45, 26),
14797
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(47, 47),
14800
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M").WithArguments("o").
WithLocation
(53, 26),
14803
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M2").WithArguments("t").
WithLocation
(54, 26),
14806
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "M3").WithArguments("i").
WithLocation
(55, 26),
14809
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M4").WithArguments("o").
WithLocation
(56, 26),
14812
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M6").WithArguments("o").
WithLocation
(58, 26),
14815
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("o").
WithLocation
(59, 59),
14818
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(59, 59),
14821
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "null!").WithArguments("s").
WithLocation
(60, 46),
14824
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("a").
WithLocation
(61, 44)
14855
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "get").WithArguments("o").
WithLocation
(18, 45)
14886
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "get").WithArguments("o").
WithLocation
(18, 45)
14916
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M").WithArguments("t").
WithLocation
(9, 29),
14919
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M").
WithLocation
(13, 30),
14922
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M").WithArguments("t").
WithLocation
(17, 29));
14963
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M").
WithLocation
(9, 29),
14966
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M").WithArguments("o").
WithLocation
(13, 28));
14994
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(8, 35),
14997
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.M()").
WithLocation
(17, 9));
15038
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "M4").WithArguments("ref object B.M4()", "ref object? A.M4()").
WithLocation
(23, 23),
15041
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "set").WithArguments("value", "void B.P1.set", "void A.P1.set").
WithLocation
(25, 35),
15044
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnImplicitImplementation, "set").WithArguments("value", "void B.P2.set", "void A.P2.set").
WithLocation
(26, 35),
15047
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnImplicitImplementation, "E1").WithArguments("event Func<object> B.E1", "event Func<object>? A.E1").
WithLocation
(28, 31),
15050
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnImplicitImplementation, "E2").WithArguments("event Func<object> B.E2", "event Func<object?> A.E2").
WithLocation
(29, 31)
15092
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "M").WithArguments("object? C.M()", "object B.M()").
WithLocation
(20, 20),
15095
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnImplicitImplementation, "M2").WithArguments("(object?, object?) C.M2()", "(object, object) B.M2()").
WithLocation
(21, 31),
15098
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnImplicitImplementation, "M3").WithArguments("I<object?> C.M3()", "I<object> B.M3()").
WithLocation
(22, 23),
15101
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "M4").WithArguments("ref object? C.M4()", "ref object B.M4()").
WithLocation
(23, 24),
15104
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "M5").WithArguments("ref readonly object? C.M5()", "ref readonly object B.M5()").
WithLocation
(24, 33),
15107
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "get").WithArguments("Func<object>? C.P1.get", "Func<object> B.P1.get").
WithLocation
(25, 31),
15110
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnImplicitImplementation, "get").WithArguments("Func<object?> C.P2.get", "Func<object> B.P2.get").
WithLocation
(26, 31),
15113
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "null!").WithArguments("object? C.P3.get", "object B.P3.get").
WithLocation
(27, 26)
15157
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "A").WithArguments("ref object B.M4()", "ref object? A.M4()").
WithLocation
(31, 14),
15160
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "A").WithArguments("value", "void B.P1.set", "void A.P1.set").
WithLocation
(31, 14),
15163
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnImplicitImplementation, "A").WithArguments("value", "void B.P2.set", "void A.P2.set").
WithLocation
(31, 14),
15166
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnImplicitImplementation, "A").WithArguments("event Func<object> B.E1", "event Func<object>? A.E1").
WithLocation
(31, 14),
15169
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnImplicitImplementation, "A").WithArguments("event Func<object> B.E2", "event Func<object?> A.E2").
WithLocation
(31, 14)
15199
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnImplicitImplementation, "A").WithArguments("value", "void B.P2.set", "void A.P2.set").
WithLocation
(14, 14),
15202
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "A").WithArguments("value", "void B.P1.set", "void A.P1.set").
WithLocation
(14, 14)
15257
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(15, 39),
15260
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "set").WithArguments("value", "void C.P1.set", "void A.P1.set").
WithLocation
(15, 39),
15263
Diagnostic(ErrorCode.ERR_AutoPropertyMustHaveGetAccessor, "set").
WithLocation
(16, 39),
15266
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(16, 39),
15269
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnImplicitImplementation, "set").WithArguments("value", "void C.P2.set", "void A.P2.set").
WithLocation
(16, 39)
15383
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "A").WithArguments("B", "A.P2.set").
WithLocation
(9, 11),
15386
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "A").WithArguments("B", "A.P1.set").
WithLocation
(9, 11)
15416
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnImplicitImplementation, "B").WithArguments("Func<object?> C.P2.get", "Func<object> B.P2.get").
WithLocation
(14, 14),
15419
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "B").WithArguments("Func<object>? C.P1.get", "Func<object> B.P1.get").
WithLocation
(14, 14)
15475
Diagnostic(ErrorCode.ERR_AutoPropertyMustOverrideSet, "P1").
WithLocation
(16, 35),
15478
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(16, 40),
15481
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "get").WithArguments("Func<object>? D.P1.get", "Func<object> B.P1.get").
WithLocation
(16, 40),
15484
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(17, 40),
15487
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnImplicitImplementation, "get").WithArguments("Func<object?> D.P2.get", "Func<object> B.P2.get").
WithLocation
(17, 40)
15601
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "B").WithArguments("C", "B.P1.get").
WithLocation
(9, 11),
15604
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "B").WithArguments("C", "B.P2.get").
WithLocation
(9, 11)
15649
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "M4").WithArguments("ref object? A.M4()").
WithLocation
(23, 18),
15652
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "set").WithArguments("value", "void A.P1.set").
WithLocation
(25, 30),
15655
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnExplicitImplementation, "set").WithArguments("value", "void A.P2.set").
WithLocation
(26, 30),
15658
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnExplicitImplementation, "E1").WithArguments("event Func<object>? A.E1").
WithLocation
(28, 26),
15661
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnExplicitImplementation, "E2").WithArguments("event Func<object?> A.E2").
WithLocation
(29, 26)
15706
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "M").WithArguments("object B.M()").
WithLocation
(20, 15),
15709
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "M2").WithArguments("(object, object) B.M2()").
WithLocation
(21, 26),
15712
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "M3").WithArguments("I<object> B.M3()").
WithLocation
(22, 18),
15715
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "M4").WithArguments("ref object B.M4()").
WithLocation
(23, 19),
15718
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "M5").WithArguments("ref readonly object B.M5()").
WithLocation
(24, 28),
15721
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "get").WithArguments("Func<object> B.P1.get").
WithLocation
(25, 26),
15724
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "get").WithArguments("Func<object> B.P2.get").
WithLocation
(26, 26),
15727
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "null!").WithArguments("object B.P3.get").
WithLocation
(27, 21)
15774
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "M4").WithArguments("ref object? A.M4()").
WithLocation
(23, 18),
15777
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "set").WithArguments("value", "void A.P1.set").
WithLocation
(25, 39),
15780
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnExplicitImplementation, "set").WithArguments("value", "void A.P2.set").
WithLocation
(26, 39),
15783
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnExplicitImplementation, "E1").WithArguments("event Func<object>? A.E1").
WithLocation
(28, 26),
15786
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeOnExplicitImplementation, "E2").WithArguments("event Func<object?> A.E2").
WithLocation
(29, 26)
15833
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "M").WithArguments("object B.M()").
WithLocation
(20, 15),
15836
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "M2").WithArguments("(object, object) B.M2()").
WithLocation
(21, 26),
15839
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "M3").WithArguments("I<object> B.M3()").
WithLocation
(22, 18),
15842
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "M4").WithArguments("ref object B.M4()").
WithLocation
(23, 19),
15845
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "M5").WithArguments("ref readonly object B.M5()").
WithLocation
(24, 28),
15848
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "get").WithArguments("Func<object> B.P1.get").
WithLocation
(25, 26),
15851
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "get").WithArguments("Func<object> B.P2.get").
WithLocation
(26, 26),
15854
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "null!").WithArguments("object B.P3.get").
WithLocation
(27, 21)
15879
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("B.A.P1.set", "A.P1").
WithLocation
(11, 30),
15882
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("B.A.P2.set", "A.P2").
WithLocation
(12, 30)
15928
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "A").WithArguments("B", "A.P2.set").
WithLocation
(9, 11),
15931
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "A").WithArguments("B", "A.P1.set").
WithLocation
(9, 11),
15934
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "P1").WithArguments("B.A.P1", "A.P1.set").
WithLocation
(11, 20),
15937
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "P2").WithArguments("B.A.P2", "A.P2.set").
WithLocation
(12, 20)
15962
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("B.A.P1.set", "A.P1").
WithLocation
(11, 30),
15965
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("B.A.P2.set", "A.P2").
WithLocation
(12, 30)
15990
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("C.B.P1.get", "B.P1").
WithLocation
(11, 26),
15993
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("C.B.P2.get", "B.P2").
WithLocation
(12, 26)
16039
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("C.B.P1.get", "B.P1").
WithLocation
(11, 26),
16042
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("C.B.P2.get", "B.P2").
WithLocation
(12, 26)
16067
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "B").WithArguments("C", "B.P1.get").
WithLocation
(9, 11),
16070
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "B").WithArguments("C", "B.P2.get").
WithLocation
(9, 11),
16073
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "P1").WithArguments("C.B.P1", "B.P1.get").
WithLocation
(11, 21),
16076
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "P2").WithArguments("C.B.P2", "B.P2.get").
WithLocation
(12, 21)
16114
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "M4").WithArguments("o", "void B.M4(ref object? o)", "void A.M4(ref object o)").
WithLocation
(20, 17),
16117
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "M5").WithArguments("o", "void B.M5(out object? o)", "void A.M5(out object o)").
WithLocation
(21, 17),
16120
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "get").WithArguments("object? B.this[object? o].get", "object A.this[object o].get").
WithLocation
(23, 38)
16158
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "M").WithArguments("o", "void C.M(object o)", "void B.M(object? o)").
WithLocation
(17, 17),
16161
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnImplicitImplementation, "M2").WithArguments("t", "void C.M2((object, object) t)", "void B.M2((object?, object?) t)").
WithLocation
(18, 17),
16164
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnImplicitImplementation, "M3").WithArguments("i", "void C.M3(I<object> i)", "void B.M3(I<object?> i)").
WithLocation
(19, 17),
16167
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "M4").WithArguments("o", "void C.M4(ref object o)", "void B.M4(ref object? o)").
WithLocation
(20, 17),
16170
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "M6").WithArguments("o", "void C.M6(in object o)", "void B.M6(in object? o)").
WithLocation
(22, 17),
16173
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "set").WithArguments("o", "void C.this[object o].set", "void B.this[object? o].set").
WithLocation
(23, 50),
16176
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "set").WithArguments("value", "void C.this[object o].set", "void B.this[object? o].set").
WithLocation
(23, 50),
16179
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "null!").WithArguments("s", "string C.this[string s].get", "string B.this[string? s].get").
WithLocation
(24, 37),
16182
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "set").WithArguments("a", "void C.this[int[] a].set", "void B.this[int[]? a].set").
WithLocation
(25, 35)
16209
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "get").WithArguments("o", "object D.this[object o].get", "object? B.this[object? o].get").
WithLocation
(14, 45)
16237
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "B").WithArguments("o", "object C.this[object o].get", "object? B.this[object? o].get").
WithLocation
(10, 14)
16275
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "M4").WithArguments("o", "void A.M4(ref object o)").
WithLocation
(20, 12),
16278
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "M5").WithArguments("o", "void A.M5(out object o)").
WithLocation
(21, 12),
16281
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "get").WithArguments("object A.this[object o].get").
WithLocation
(23, 33)
16319
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "M").WithArguments("o", "void B.M(object? o)").
WithLocation
(17, 12),
16322
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnExplicitImplementation, "M2").WithArguments("t", "void B.M2((object?, object?) t)").
WithLocation
(18, 12),
16325
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnExplicitImplementation, "M3").WithArguments("i", "void B.M3(I<object?> i)").
WithLocation
(19, 12),
16328
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "M4").WithArguments("o", "void B.M4(ref object? o)").
WithLocation
(20, 12),
16331
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "M6").WithArguments("o", "void B.M6(in object? o)").
WithLocation
(22, 12),
16334
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "set").WithArguments("o", "void B.this[object? o].set").
WithLocation
(23, 45),
16337
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "set").WithArguments("value", "void B.this[object? o].set").
WithLocation
(23, 45),
16340
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "null!").WithArguments("s", "string B.this[string? s].get").
WithLocation
(24, 32),
16343
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "set").WithArguments("a", "void B.this[int[]? a].set").
WithLocation
(25, 30)
16373
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("void A.M(object o)", "void A.M(object? o)").
WithLocation
(13, 18),
16376
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M2").WithArguments("void A.M2((object, object) t)", "void A.M2((object?, object?) t)").
WithLocation
(14, 18),
16379
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M3").WithArguments("void A.M3(I<object> i)", "void A.M3(I<object?> i)").
WithLocation
(15, 18),
16382
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "M4").WithArguments("o").
WithLocation
(16, 18),
16385
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M6").WithArguments("void A.M6(in object o)", "void A.M6(in object? o)").
WithLocation
(17, 18)
16415
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "M").WithArguments("o").
WithLocation
(13, 18),
16418
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "M2").WithArguments("t").
WithLocation
(14, 18),
16421
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "M3").WithArguments("i").
WithLocation
(15, 18),
16424
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "M4").WithArguments("o").
WithLocation
(16, 18),
16427
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "M6").WithArguments("o").
WithLocation
(17, 18)
16523
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M2").WithArguments("B.M2<T>(T?[])").
WithLocation
(20, 13),
16526
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M3").WithArguments("B.M3<T>(T?[]?)").
WithLocation
(24, 13),
16529
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IA").WithArguments("B", "IA.M3<T>(T?[]?)").
WithLocation
(14, 11),
16532
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IA").WithArguments("B", "IA.M2<T>(T[])").
WithLocation
(14, 11),
16535
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(20, 24),
16538
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(24, 25));
16595
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("x").
WithLocation
(27, 9)
16677
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnImplicitImplementation, "set").WithArguments("x", "void B1.this[string[] x].set", "void IA1.this[string?[] x].set").
WithLocation
(27, 9)
16759
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnExplicitImplementation, "set").WithArguments("x", "void IA1.this[string?[] x].set").
WithLocation
(27, 9)
16828
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C1").WithArguments("I1<A>", "C1").
WithLocation
(11, 14),
16831
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C1").WithArguments("I1<A?>.M()").
WithLocation
(11, 14),
16834
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C1").WithArguments("I1<A>.M()").
WithLocation
(11, 14),
16837
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C2").WithArguments("I1<A?>", "C2").
WithLocation
(17, 14),
16840
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C2").WithArguments("I1<A>.M()").
WithLocation
(17, 14),
16843
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C2").WithArguments("I1<A?>.M()").
WithLocation
(17, 14),
16846
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C3").WithArguments("I1<A?>", "C3").
WithLocation
(23, 14),
16849
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C3").WithArguments("I1<A>.M()").
WithLocation
(23, 14),
16852
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C3").WithArguments("I1<A?>.M()").
WithLocation
(23, 14),
16855
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C4").WithArguments("I1<A>", "C4").
WithLocation
(29, 14),
16858
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C4").WithArguments("I1<A?>.M()").
WithLocation
(29, 14),
16861
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C4").WithArguments("I1<A>.M()").
WithLocation
(29, 14)
17036
Diagnostic(ErrorCode.WRN_NullabilityMismatchInInterfaceImplementedByBase, "I1<A>").WithArguments("C2", "I1<A>.M2()").
WithLocation
(17, 23)
17108
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<A?>").WithArguments("C1", "I1<A?>.M1()").
WithLocation
(9, 19),
17111
Diagnostic(ErrorCode.WRN_NullabilityMismatchInInterfaceImplementedByBase, "I1<A>").WithArguments("C2", "I1<A>.M1()").
WithLocation
(13, 23)
17134
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<A?>").WithArguments("C1", "I1<A?>.M1()").
WithLocation
(9, 19)
17150
Diagnostic(ErrorCode.WRN_NullabilityMismatchInInterfaceImplementedByBase, "I1<A>").WithArguments("C2", "I1<A>.M1()").
WithLocation
(2, 23)
17194
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C1").WithArguments("I1<T>", "C1<T>").
WithLocation
(10, 14),
17197
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C1").WithArguments("I1<T?>.M()").
WithLocation
(10, 14),
17200
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C1").WithArguments("I1<T>.M()").
WithLocation
(10, 14),
17203
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C2").WithArguments("I1<T?>", "C2<T>").
WithLocation
(16, 14),
17206
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C2").WithArguments("I1<T>.M()").
WithLocation
(16, 14),
17209
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C2").WithArguments("I1<T?>.M()").
WithLocation
(16, 14),
17212
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C3").WithArguments("I1<T?>", "C3<T>").
WithLocation
(22, 14),
17215
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C3").WithArguments("I1<T>.M()").
WithLocation
(22, 14),
17218
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C3").WithArguments("I1<T?>.M()").
WithLocation
(22, 14),
17221
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C4").WithArguments("I1<T>", "C4<T>").
WithLocation
(28, 14),
17224
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C4").WithArguments("I1<T?>.M()").
WithLocation
(28, 14),
17227
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C4").WithArguments("I1<T>.M()").
WithLocation
(28, 14)
17310
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C3").WithArguments("C3<T, U>", "I1<T>", "I1<U?>").
WithLocation
(7, 14)
17370
Diagnostic(ErrorCode.WRN_NullabilityMismatchInExplicitlyImplementedInterface, "I1<A?>").
WithLocation
(11, 10)
17438
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C3").WithArguments("I1<A?>", "C3").
WithLocation
(9, 14)
17519
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C3").WithArguments("I1<A>", "C3").
WithLocation
(12, 14)
17603
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C3").WithArguments("I1<A?>", "C3").
WithLocation
(9, 22)
17749
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "M2").WithArguments("T[] IA.M2<T>()").
WithLocation
(23, 13),
17752
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "M1").WithArguments("string[] IA.M1()").
WithLocation
(18, 18)
17829
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "M1").WithArguments("y").
WithLocation
(16, 18),
17832
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "M1").WithArguments("z").
WithLocation
(16, 18)
17875
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 30),
17878
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(5, 29),
17881
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 72),
17884
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(5, 71),
17887
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 75),
17890
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 77),
17893
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 80),
17896
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 25),
17899
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(10, 24),
17902
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 33),
17905
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 53),
17908
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(10, 52),
17911
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 74),
17914
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(10, 73),
17917
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 77),
17920
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 79),
17923
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 82)
17948
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 30),
17951
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(5, 29),
17954
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 72),
17957
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(5, 71),
17960
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 75),
17963
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 77),
17966
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 80),
17969
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "M1").WithArguments("y").
WithLocation
(10, 18)
17999
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 30),
18002
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(11, 29),
18005
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 72),
18008
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(11, 71),
18011
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 75),
18014
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 77),
18017
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 80),
18020
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 25),
18023
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(17, 24),
18026
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 33),
18029
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 53),
18032
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(17, 52),
18035
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 74),
18038
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(17, 73),
18041
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 77),
18044
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 79),
18047
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 82)
18068
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Test1").WithArguments("Test1", "A").
WithLocation
(5, 10),
18071
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Test2").WithArguments("Test2", "A").
WithLocation
(8, 13)
18451
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1").
WithLocation
(12, 21),
18454
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(24, 21),
18457
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3").
WithLocation
(24, 21),
18460
Diagnostic(ErrorCode.ERR_UseDefViolation, "x4").WithArguments("x4").
WithLocation
(30, 21),
18463
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x5").
WithLocation
(40, 14),
18466
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x7").
WithLocation
(53, 18),
18469
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x7?.P1").
WithLocation
(54, 18),
18472
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x8").
WithLocation
(64, 18),
18475
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x8?.M1()").
WithLocation
(65, 18),
18478
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x9").
WithLocation
(71, 14),
18481
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(76, 14),
18484
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x10.P2").
WithLocation
(83, 15),
18487
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x10.M2()").
WithLocation
(85, 15),
18490
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x11.F2").
WithLocation
(95, 15),
18493
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y11").
WithLocation
(101, 15),
18496
Diagnostic(ErrorCode.ERR_UseDefViolationField, "y12.F3").WithArguments("F3").
WithLocation
(108, 15),
18499
Diagnostic(ErrorCode.ERR_UseDefViolationField, "y12.F4").WithArguments("F4").
WithLocation
(109, 15),
18502
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y12.F4").
WithLocation
(109, 15),
18505
Diagnostic(ErrorCode.ERR_UseDefViolationField, "y13.F3").WithArguments("F3").
WithLocation
(116, 15),
18508
Diagnostic(ErrorCode.ERR_UseDefViolationField, "y13.F4").WithArguments("F4").
WithLocation
(117, 15),
18511
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(123, 18),
18514
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(133, 18),
18517
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y15.F3").
WithLocation
(135, 15),
18520
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y15.F4").
WithLocation
(136, 15),
18523
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y16.F3").
WithLocation
(149, 15),
18526
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y16.F4").
WithLocation
(150, 15),
18529
Diagnostic(ErrorCode.ERR_UseDefViolation, "x17").WithArguments("x17").
WithLocation
(161, 15),
18532
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y17.F4").
WithLocation
(159, 15),
18535
Diagnostic(ErrorCode.ERR_UseDefViolation, "x18").WithArguments("x18").
WithLocation
(170, 18),
18538
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y19.F4").
WithLocation
(180, 15),
18541
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y20.F4").
WithLocation
(197, 15),
18544
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y21.F4").
WithLocation
(213, 15),
18547
Diagnostic(ErrorCode.ERR_UseDefViolationField, "y22.F4").WithArguments("F4").
WithLocation
(220, 15),
18550
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y22.F4").
WithLocation
(220, 15),
18553
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y22.F4").
WithLocation
(224, 15),
18556
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y23.F5.F4").
WithLocation
(236, 15),
18559
Diagnostic(ErrorCode.ERR_UseDefViolationField, "y24.F5.F4").WithArguments("F4").
WithLocation
(248, 15),
18562
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y24.F5.F4").
WithLocation
(248, 15),
18565
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y24.F5.F4").
WithLocation
(249, 15),
18568
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y24.F5.F4").
WithLocation
(253, 15),
18571
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y26").
WithLocation
(268, 18),
18574
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y27").
WithLocation
(274, 20),
18577
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y28").WithArguments("x", "CL1 CL1.this[CL1 x]").
WithLocation
(280, 13),
18580
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x29[1]").
WithLocation
(286, 15),
18583
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x30").
WithLocation
(291, 15),
18586
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default(CL1)").
WithLocation
(296, 15),
18589
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)null").
WithLocation
(306, 29)
18695
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("p", "void C.M1(CL1 p)").
WithLocation
(12, 12),
18698
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(19, 12),
18701
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("p", "void C.M1(CL1 p)").
WithLocation
(19, 12),
18704
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(27, 16),
18707
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3").
WithLocation
(27, 16),
18710
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x4").
WithLocation
(32, 16),
18713
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x5").
WithLocation
(40, 16),
18716
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6").
WithLocation
(48, 16),
18719
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x7").
WithLocation
(56, 18),
18722
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y8").WithArguments("p1", "void C.M6(CL1 p1, CL1? p2)").
WithLocation
(65, 24),
18725
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y9").WithArguments("p1", "void C.M7(params CL1[] p1)").
WithLocation
(72, 16),
18728
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x10").WithArguments("p1", "void C.M7(params CL1[] p1)").
WithLocation
(77, 12),
18731
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x11").WithArguments("p1", "void C.M8(CL1 p1, params CL1[] p2)").
WithLocation
(84, 12),
18734
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "z11").WithArguments("p2", "void C.M8(CL1 p1, params CL1[] p2)").
WithLocation
(84, 22),
18737
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x12").WithArguments("p2", "void C.M8(CL1 p1, params CL1[] p2)").
WithLocation
(89, 16)
18770
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 31));
18805
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 30));
18842
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("I<object?>", "I<object>", "x", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(7, 11),
18845
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object>", "I<object?>", "y", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(8, 14),
18848
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object>", "I<object?>", "y", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(8, 17),
18851
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object>", "I<object?>", "y", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(10, 14),
18854
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "z").WithArguments("y", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(10, 20),
18857
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("I<object>", "I<object?>", "y", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(10, 20),
18860
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "w").WithArguments("y", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(10, 23),
18863
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object>", "I<object?>", "y", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(11, 14),
18866
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("I<object?>", "I<object>", "x", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(11, 20),
18869
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a").WithArguments("y", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(13, 14),
18872
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new[] { x, x }").WithArguments("I<object>[]", "I<object?>[]", "y", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(15, 14),
18875
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new[] { x, y, z }").WithArguments("I<object>[]", "I<object?>[]", "y", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(19, 14),
18878
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(19, 25),
18881
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new[] { x, x }").WithArguments("I<object>[]", "I<object?>[]", "y", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(20, 14),
18884
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("I<object?>", "I<object>", "x", "void C.G(I<object> x, params I<object?>[] y)").
WithLocation
(20, 33)
18906
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 17),
18909
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 16),
18912
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 16)
18928
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "xIn").WithArguments("variable", "xIn").
WithLocation
(6, 9));
18954
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(6, 9),
18957
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 19),
18960
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(7, 9),
18963
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x = null").WithArguments("x", "int C.F(object x)").
WithLocation
(7, 19),
18966
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 23),
18969
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(10, 9),
18972
Diagnostic(ErrorCode.ERR_ThisInStaticMeth, "this").
WithLocation
(10, 23)
18999
Diagnostic(ErrorCode.ERR_NameNotInContext, "bad").WithArguments("bad").
WithLocation
(6, 9),
19002
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 23),
19005
Diagnostic(ErrorCode.ERR_NameNotInContext, "bad").WithArguments("bad").
WithLocation
(7, 9),
19008
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x = null").WithArguments("x", "int C.F(object x)").
WithLocation
(7, 23),
19011
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 27),
19014
Diagnostic(ErrorCode.ERR_NameNotInContext, "bad").WithArguments("bad").
WithLocation
(10, 9),
19017
Diagnostic(ErrorCode.ERR_ThisInStaticMeth, "this").
WithLocation
(10, 27)
19043
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(6, 9),
19046
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x = null").WithArguments("x", "object C.F(object x)").
WithLocation
(7, 15),
19049
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 19)
19078
Diagnostic(ErrorCode.ERR_NameNotInContext, "G").WithArguments("G").
WithLocation
(6, 13),
19081
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x = null").WithArguments("x", "int C.F(object x)").
WithLocation
(6, 17),
19084
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 21)
19112
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(6, 13),
19115
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(6, 27),
19118
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 39),
19121
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 13),
19124
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(12, 13)
19159
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "x").WithArguments("x").
WithLocation
(6, 17),
19162
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "x").WithArguments("x").
WithLocation
(7, 17),
19165
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "x").WithArguments("x").
WithLocation
(8, 17),
19168
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "x").WithArguments("x").
WithLocation
(9, 17),
19171
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "x").WithArguments("x").
WithLocation
(10, 23),
19174
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "x").WithArguments("x").
WithLocation
(11, 23),
19177
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "G").WithArguments("x", "C.G(object, params object?[])").
WithLocation
(13, 9),
19180
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "G").WithArguments("x", "C.G(object, params object?[])").
WithLocation
(14, 9),
19183
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "y").WithArguments("y").
WithLocation
(15, 20),
19186
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "y").WithArguments("y").
WithLocation
(16, 20),
19189
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "y").WithArguments("y").
WithLocation
(17, 17),
19192
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "y").WithArguments("y").
WithLocation
(18, 17));
19213
Diagnostic(ErrorCode.ERR_DefaultValueBeforeRequiredValue, ")").
WithLocation
(7, 45),
19216
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("y", "void C.G(object? x = null, object y)").
WithLocation
(5, 14));
19237
Diagnostic(ErrorCode.ERR_ParamsLast, "params object[] x").
WithLocation
(7, 19),
19240
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a").WithArguments("x", "void C.G(params object[] x, params object[] y)").
WithLocation
(5, 11),
19243
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b").WithArguments("y", "void C.G(params object[] x, params object[] y)").
WithLocation
(5, 14),
19246
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a").WithArguments("y", "void C.G(params object[] x, params object[] y)").
WithLocation
(5, 17));
19273
Diagnostic(ErrorCode.ERR_ParamsMustBeArray, "params").
WithLocation
(10, 20),
19276
Diagnostic(ErrorCode.ERR_ParamsMustBeArray, "params").
WithLocation
(13, 20),
19279
Diagnostic(ErrorCode.ERR_ParamsLast, "params object x").
WithLocation
(13, 20),
19282
Diagnostic(ErrorCode.ERR_BadArgCount, "F2").WithArguments("F2", "2").
WithLocation
(6, 16),
19285
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "void C.F2(params object x)").
WithLocation
(5, 19),
19288
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "void C.F3(params object x, params object[] y)").
WithLocation
(7, 19),
19291
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("y", "void C.F3(params object x, params object[] y)").
WithLocation
(8, 22));
19307
Diagnostic(ErrorCode.ERR_IllegalParams, "params").
WithLocation
(3, 41));
19363
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2").
WithLocation
(15, 14),
19366
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x4").WithArguments("x4").
WithLocation
(26, 14),
19369
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x5").WithArguments("x5").
WithLocation
(32, 14),
19372
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x5").
WithLocation
(32, 14));
19437
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2.F2").
WithLocation
(15, 14),
19440
Diagnostic(ErrorCode.ERR_UseDefViolationField, "x4.F1").WithArguments("F1").
WithLocation
(26, 14),
19443
Diagnostic(ErrorCode.ERR_UseDefViolationField, "x5.F2").WithArguments("F2").
WithLocation
(33, 14),
19446
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x5.F2").
WithLocation
(33, 14),
19449
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y5").
WithLocation
(34, 17));
19535
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x1").WithArguments("CL0<string?>", "CL0<string>", "x", "void C.M1(ref CL0<string> x)").
WithLocation
(12, 16),
19538
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "x2").WithArguments("CL0<string>", "CL0<string?>", "x", "void C.M2(out CL0<string?> x)").
WithLocation
(19, 16),
19541
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x3").WithArguments("CL0<string?>", "CL0<string>", "x", "void C.M3(CL0<string> x)").
WithLocation
(26, 12));
19566
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(5, 22),
19569
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "z").WithArguments("z", "void C.G(out object x, ref object y, in object z)").
WithLocation
(5, 28)
19595
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(5, 15),
19598
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(5, 22),
19601
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 9),
19604
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(7, 9));
19755
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y11.F1").
WithLocation
(63, 16));
19820
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1").
WithLocation
(14, 21),
19823
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M2() ?? M2()").
WithLocation
(39, 21));
19932
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M4() ? CL0.M1() : M2()").
WithLocation
(14, 21),
19935
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M4() ? M3() : M2()").
WithLocation
(26, 22),
19938
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M4() ? M2() : M2()").
WithLocation
(38, 22)
19985
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M4() ? M2() : CL0.M1()").
WithLocation
(14, 21),
19988
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M4() ? M2() : M3()").
WithLocation
(26, 22)
20062
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1").
WithLocation
(16, 21),
20065
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3").
WithLocation
(31, 21),
20068
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x5").
WithLocation
(46, 21)
20120
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1").
WithLocation
(16, 21),
20123
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3").
WithLocation
(31, 21)
20288
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x1").
WithLocation
(10, 16)
20321
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("CL1<string>", "CL1<string?>").
WithLocation
(10, 16),
20324
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x2").WithArguments("CL1<string?>", "CL1<string>").
WithLocation
(15, 16)
20344
Diagnostic(ErrorCode.ERR_NameNotInContext, "bad").WithArguments("bad").
WithLocation
(6, 16)
20368
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("I<object>", "I<object?>").
WithLocation
(6, 41),
20371
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(7, 45),
20374
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("I<object?>", "I<object>").
WithLocation
(9, 41),
20377
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(11, 47));
20402
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("I<object>", "I<object?>").
WithLocation
(8, 53),
20405
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(9, 57),
20408
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("I<object?>", "I<object>").
WithLocation
(11, 53),
20411
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(13, 59));
20433
Diagnostic(ErrorCode.ERR_QueryNoProviderStandard, "numbers").WithArguments("int[]", "Where").
WithLocation
(7, 33)
20466
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(15, 9),
20469
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(16, 9)
20508
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(13, 7),
20511
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(22, 7)
20552
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(13, 7),
20555
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(22, 7)
20590
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(13, 7)
20633
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(11, 13),
20636
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(16, 13)
20679
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(10, 11),
20682
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(15, 13)
20722
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new C()").WithArguments("b").
WithLocation
(9, 36),
20725
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(16, 9)
20761
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "c").WithArguments("c", "C.implicit operator bool(C? c)").
WithLocation
(9, 18),
20764
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "c1").WithArguments("c1", "bool C.operator ==(C? c1, C? c2)").
WithLocation
(15, 18),
20767
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "c2").WithArguments("c1", "bool C.operator !=(C? c1, C? c2)").
WithLocation
(16, 13)
20803
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "s").
WithLocation
(9, 19),
20806
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "s1").
WithLocation
(15, 18),
20809
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "s2").
WithLocation
(16, 13)
20888
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(13, 9),
20891
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(14, 9),
20894
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(15, 9),
20897
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(16, 9)
20931
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(13, 9),
20934
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(14, 9),
20937
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(15, 9),
20940
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(16, 9)
20982
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Property1").WithArguments("property", "Property1").
WithLocation
(15, 19),
20985
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Property3").WithArguments("property", "Property3").
WithLocation
(17, 19),
20988
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Property2").
WithLocation
(24, 9),
20991
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Property4").
WithLocation
(26, 9)
21061
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field0").
WithLocation
(27, 5),
21064
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(27, 5),
21067
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field2").
WithLocation
(27, 5),
21070
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field0").
WithLocation
(32, 9),
21073
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(36, 9),
21076
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(40, 9)
21126
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d.field0").
WithLocation
(25, 9),
21129
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d.field2").
WithLocation
(27, 9),
21132
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d.field4").
WithLocation
(29, 9)
21182
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d.field0").
WithLocation
(25, 9),
21185
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d.field2").
WithLocation
(27, 9),
21188
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d.field4").
WithLocation
(29, 9)
21235
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(25, 13),
21238
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(32, 13)
21316
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(16, 5),
21319
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field2").
WithLocation
(16, 5),
21322
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field0").
WithLocation
(16, 5),
21325
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field2b").
WithLocation
(16, 5),
21328
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field0").
WithLocation
(21, 9),
21331
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(26, 9),
21334
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(30, 9)
21437
Diagnostic(ErrorCode.WRN_MemberNotNull, "return 0;").WithArguments("field0").
WithLocation
(29, 13),
21440
Diagnostic(ErrorCode.WRN_MemberNotNull, "return 0;").WithArguments("field1").
WithLocation
(29, 13),
21443
Diagnostic(ErrorCode.WRN_MemberNotNull, "return 0;").WithArguments("field2").
WithLocation
(29, 13),
21446
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field0").
WithLocation
(35, 9),
21449
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(35, 9),
21452
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field2").
WithLocation
(35, 9),
21455
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field0").
WithLocation
(41, 9),
21458
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(45, 9),
21461
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(49, 9),
21464
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field0").
WithLocation
(55, 9),
21467
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(59, 9),
21470
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(63, 9)
21550
Diagnostic(ErrorCode.WRN_MemberNotNull, "return 0;").WithArguments("field0").
WithLocation
(18, 13),
21553
Diagnostic(ErrorCode.WRN_MemberNotNull, "return 0;").WithArguments("field1").
WithLocation
(18, 13),
21556
Diagnostic(ErrorCode.WRN_MemberNotNull, "return 0;").WithArguments("field2").
WithLocation
(18, 13),
21559
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field0").
WithLocation
(24, 9),
21562
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(24, 9),
21565
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field2").
WithLocation
(24, 9),
21568
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field0").
WithLocation
(30, 9),
21571
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(34, 9),
21574
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(38, 9),
21577
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field0").
WithLocation
(44, 9),
21580
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(48, 9),
21583
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(52, 9)
21632
Diagnostic(ErrorCode.WRN_MemberNotNullBadMember, "MemberNotNull(nameof(field0), nameof(field1), nameof(field2), nameof(field5), nameof(field6))").WithArguments("field1").
WithLocation
(21, 6),
21635
Diagnostic(ErrorCode.WRN_MemberNotNullBadMember, "MemberNotNull(nameof(field0), nameof(field1), nameof(field2), nameof(field5), nameof(field6))").WithArguments("field2").
WithLocation
(21, 6),
21638
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(29, 9),
21641
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(31, 9),
21644
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(35, 9)
21680
Diagnostic(ErrorCode.WRN_MemberNotNullBadMember, "MemberNotNull(nameof(field))").WithArguments("field").
WithLocation
(10, 6),
21683
Diagnostic(ErrorCode.WRN_MemberNotNullBadMember, "MemberNotNull(nameof(field))").WithArguments("field").
WithLocation
(15, 6)
21705
Diagnostic(ErrorCode.ERR_NameNotInContext, "missing").WithArguments("missing").
WithLocation
(5, 27),
21708
Diagnostic(ErrorCode.ERR_NameNotInContext, "missing").WithArguments("missing").
WithLocation
(8, 27)
21732
Diagnostic(ErrorCode.WRN_MemberNotNullBadMember, "MemberNotNull(nameof(C))").WithArguments("C").
WithLocation
(5, 6),
21735
Diagnostic(ErrorCode.WRN_MemberNotNullBadMember, "MemberNotNull(nameof(M))").WithArguments("M").
WithLocation
(8, 6)
21771
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.field").
WithLocation
(6, 9)
21800
Diagnostic(ErrorCode.WRN_MemberNotNullBadMember, "MemberNotNullWhen(true, nameof(field), nameof(Property))").WithArguments("field").
WithLocation
(12, 6),
21803
Diagnostic(ErrorCode.WRN_MemberNotNullBadMember, "MemberNotNullWhen(true, nameof(field), nameof(Property))").WithArguments("Property").
WithLocation
(12, 6),
21806
Diagnostic(ErrorCode.WRN_MemberNotNullBadMember, "MemberNotNullWhen(true, nameof(field), nameof(Property))").WithArguments("field").
WithLocation
(15, 6),
21809
Diagnostic(ErrorCode.WRN_MemberNotNullBadMember, "MemberNotNullWhen(true, nameof(field), nameof(Property))").WithArguments("Property").
WithLocation
(15, 6)
21861
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field5").
WithLocation
(12, 12),
21864
Diagnostic(ErrorCode.WRN_MemberNotNull, "return;").WithArguments("field3").
WithLocation
(25, 17),
21867
Diagnostic(ErrorCode.WRN_MemberNotNull, "return;").WithArguments("field4").
WithLocation
(25, 17)
21896
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 18),
21899
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "MemberNotNull(nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").
WithLocation
(6, 6),
21902
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "MemberNotNullWhen(true, nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").
WithLocation
(9, 6),
21905
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "MemberNotNull(nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").
WithLocation
(12, 6),
21908
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "MemberNotNullWhen(true, nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").
WithLocation
(15, 6)
21915
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 18)
21957
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(16, 13),
21960
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(17, 13),
21963
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(23, 13),
21966
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(24, 13),
21969
Diagnostic(ErrorCode.WRN_MemberNotNull, "true").WithArguments("field1").
WithLocation
(29, 20),
21972
Diagnostic(ErrorCode.WRN_MemberNotNull, "true").WithArguments("field2").
WithLocation
(29, 20)
22008
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d.field4").
WithLocation
(12, 9),
22011
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(17, 19),
22014
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field3").WithArguments("field", "field3").
WithLocation
(19, 19)
22052
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d.field2").
WithLocation
(10, 9),
22055
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d.field4").
WithLocation
(12, 9),
22058
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(17, 19),
22061
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field3").WithArguments("field", "field3").
WithLocation
(19, 19),
22064
Diagnostic(ErrorCode.ERR_NameNotInContext, "field1").WithArguments("field1").
WithLocation
(24, 27),
22067
Diagnostic(ErrorCode.ERR_NameNotInContext, "field2").WithArguments("field2").
WithLocation
(24, 43)
22113
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(15, 9),
22116
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(16, 9),
22119
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(22, 9),
22122
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(23, 9),
22125
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(24, 9),
22128
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(25, 9)
22181
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(13, 9),
22184
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(14, 9),
22187
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(15, 9),
22190
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(16, 9),
22193
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(24, 9),
22196
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(25, 9),
22199
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(39, 9)
22236
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(15, 9),
22239
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(16, 9)
22276
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(13, 9),
22279
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(14, 9),
22282
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(15, 9),
22285
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(16, 9)
22323
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(13, 9),
22326
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(14, 9),
22329
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(15, 9),
22332
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(16, 9)
22370
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(15, 9),
22373
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(16, 9)
22409
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field3").
WithLocation
(10, 12),
22412
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field4").
WithLocation
(10, 12),
22415
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field1").
WithLocation
(10, 12)
22451
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(15, 9),
22454
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(23, 5),
22457
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field4").
WithLocation
(23, 5)
22487
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field4").
WithLocation
(10, 12)
22523
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(23, 5),
22526
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field2").
WithLocation
(23, 5),
22529
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field3").
WithLocation
(23, 5),
22532
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field4").
WithLocation
(23, 5)
22565
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field4").
WithLocation
(10, 12),
22568
Diagnostic(ErrorCode.WRN_MemberNotNull, "1").WithArguments("field1").
WithLocation
(19, 16),
22571
Diagnostic(ErrorCode.WRN_MemberNotNull, "1").WithArguments("field2").
WithLocation
(19, 16),
22574
Diagnostic(ErrorCode.WRN_MemberNotNull, "1").WithArguments("field3").
WithLocation
(19, 16),
22577
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(20, 15),
22580
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field2").
WithLocation
(20, 15),
22583
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field3").
WithLocation
(20, 15)
22607
Diagnostic(ErrorCode.ERR_NameNotInContext, "field").WithArguments("field").
WithLocation
(10, 27)
22636
Diagnostic(ErrorCode.ERR_BadAccess, "field").WithArguments("Base.field").
WithLocation
(15, 27)
22655
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 29)
22684
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field3").
WithLocation
(10, 5),
22687
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(16, 19),
22690
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field2").
WithLocation
(16, 19)
22722
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field3").
WithLocation
(10, 5),
22725
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(18, 9),
22728
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field2").
WithLocation
(19, 5)
22761
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field3").
WithLocation
(10, 5),
22764
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(20, 5),
22767
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field2").
WithLocation
(20, 5)
22791
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 19),
22794
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field3").WithArguments("field", "field3").
WithLocation
(7, 19)
22826
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 19),
22829
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field3").WithArguments("field", "field3").
WithLocation
(7, 19),
22832
Diagnostic(ErrorCode.WRN_MemberNotNull, "return;").WithArguments("field1").
WithLocation
(16, 13),
22835
Diagnostic(ErrorCode.WRN_MemberNotNull, "return;").WithArguments("field2").
WithLocation
(16, 13),
22838
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(19, 5)
22871
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 19),
22874
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field3").WithArguments("field", "field3").
WithLocation
(7, 19),
22877
Diagnostic(ErrorCode.WRN_MemberNotNull, "return 0;").WithArguments("field1").
WithLocation
(16, 13),
22880
Diagnostic(ErrorCode.WRN_MemberNotNull, "return 0;").WithArguments("field2").
WithLocation
(16, 13),
22883
Diagnostic(ErrorCode.WRN_MemberNotNull, "return 0;").WithArguments("field1").
WithLocation
(19, 9)
22921
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field3").
WithLocation
(10, 5),
22924
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field3").
WithLocation
(15, 5),
22927
Diagnostic(ErrorCode.WRN_MemberNotNull, "return 42;").WithArguments("field1").
WithLocation
(23, 15),
22930
Diagnostic(ErrorCode.WRN_MemberNotNull, "return 42;").WithArguments("field2").
WithLocation
(23, 15),
22933
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field1").
WithLocation
(24, 15),
22936
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field2").
WithLocation
(24, 15)
22975
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(16, 13),
22978
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(17, 13)
23017
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(16, 13),
23020
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(17, 13)
23067
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result.Value", isSuppressed: false).
WithLocation
(33, 15)
23098
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.Value", isSuppressed: false).
WithLocation
(16, 15)
23129
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.Value", isSuppressed: false).
WithLocation
(15, 16)
23173
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c._field", isSuppressed: false).
WithLocation
(23, 9),
23176
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c._field", isSuppressed: false).
WithLocation
(30, 9)
23231
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Ext._field", isSuppressed: false).
WithLocation
(26, 15),
23234
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c._field", isSuppressed: false).
WithLocation
(29, 15),
23237
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c._field", isSuppressed: false).
WithLocation
(30, 15),
23240
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Ext._field", isSuppressed: false).
WithLocation
(36, 15),
23243
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c._field", isSuppressed: false).
WithLocation
(40, 15),
23246
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c._field", isSuppressed: false).
WithLocation
(41, 15)
23271
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 19)
23312
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(14, 13),
23315
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(15, 13),
23318
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(16, 13),
23321
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(17, 13)
23399
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 19)
23430
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 19)
23481
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return true;").WithArguments("field3", "true").
WithLocation
(37, 9),
23484
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return true;").WithArguments("field4", "true").
WithLocation
(37, 9)
23592
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Base").WithArguments("field", "field3").
WithLocation
(10, 12),
23595
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "field5").
WithLocation
(26, 12),
23598
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(39, 13),
23601
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(43, 13)
23668
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "field5").
WithLocation
(10, 12),
23671
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(24, 13),
23674
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(28, 13)
23738
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "field5").
WithLocation
(10, 12),
23741
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(23, 13),
23744
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(27, 13)
23805
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Base").WithArguments("field", "field3").
WithLocation
(10, 12),
23808
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "field5").
WithLocation
(26, 12),
23811
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(39, 13),
23814
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(43, 13)
23878
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "field5").
WithLocation
(10, 12),
23881
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(23, 13),
23884
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field8").
WithLocation
(27, 13)
23937
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Base").WithArguments("field", "field3").
WithLocation
(10, 12),
23940
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Base").WithArguments("field", "field1").
WithLocation
(10, 12),
23943
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "field3").
WithLocation
(25, 12),
23946
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "field1").
WithLocation
(25, 12),
23949
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(34, 9),
23952
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(36, 9)
23994
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 26),
23997
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field3").WithArguments("field", "field3").
WithLocation
(7, 26),
24000
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(17, 13),
24003
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(24, 13)
24045
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 26),
24048
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field3").WithArguments("field", "field3").
WithLocation
(7, 26),
24051
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(17, 13),
24054
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(22, 13),
24057
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(24, 13)
24109
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(16, 13),
24112
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(17, 13),
24115
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(21, 13),
24118
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(22, 13),
24121
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(23, 13),
24124
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(24, 13),
24127
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(32, 9),
24130
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(33, 9),
24133
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(34, 9),
24136
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(35, 9)
24182
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(16, 13),
24185
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(17, 13),
24188
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(21, 13),
24191
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(22, 13),
24194
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(23, 13),
24197
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(24, 13)
24246
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field1").
WithLocation
(13, 9),
24249
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(14, 9),
24252
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(15, 9),
24255
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(16, 9)
24299
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 26),
24302
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field3").WithArguments("field", "field3").
WithLocation
(7, 26),
24305
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(17, 13),
24308
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field2").
WithLocation
(22, 13),
24311
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(24, 13),
24314
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "true").WithArguments("field1", "true").
WithLocation
(31, 12),
24317
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "true").WithArguments("field2", "true").
WithLocation
(31, 12)
24356
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(16, 13),
24359
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(17, 13)
24402
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return true;").WithArguments("field1", "true").
WithLocation
(29, 9),
24405
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return true;").WithArguments("field2", "true").
WithLocation
(29, 9),
24408
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return true;").WithArguments("field3", "true").
WithLocation
(29, 9),
24411
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return true;").WithArguments("field4", "true").
WithLocation
(29, 9)
24455
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(17, 13),
24458
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "true").WithArguments("field1", "true").
WithLocation
(29, 16),
24461
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "true").WithArguments("field2", "true").
WithLocation
(29, 16),
24464
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "true").WithArguments("field3", "true").
WithLocation
(29, 16)
24503
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(20, 13),
24506
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(21, 13)
24544
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field3").
WithLocation
(10, 5),
24547
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return true;").WithArguments("field1", "true").
WithLocation
(21, 13),
24550
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return true;").WithArguments("field2", "true").
WithLocation
(21, 13)
24593
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field3").
WithLocation
(10, 5)
24636
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return field1 == null;").WithArguments("field1", "true").
WithLocation
(19, 13),
24639
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return !Init();").WithArguments("field1", "true").
WithLocation
(29, 9),
24642
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return !Init();").WithArguments("field3", "true").
WithLocation
(29, 9)
24687
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return field1 != null;").WithArguments("field1", "false").
WithLocation
(23, 13),
24690
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return !Init();").WithArguments("field1", "false").
WithLocation
(29, 9),
24693
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return !Init();").WithArguments("field3", "false").
WithLocation
(29, 9)
24742
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field5").
WithLocation
(20, 13),
24745
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field6").
WithLocation
(21, 13),
24748
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field3").
WithLocation
(27, 13),
24751
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field4").
WithLocation
(28, 13),
24754
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field5").
WithLocation
(29, 13),
24757
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field6").
WithLocation
(30, 13)
24792
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 19)
24827
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 19)
24855
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 19)
24896
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field3").
WithLocation
(10, 5),
24899
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return true;").WithArguments("field1", "true").
WithLocation
(23, 17),
24902
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return true;").WithArguments("field2", "true").
WithLocation
(23, 17)
24938
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return field2 == null;").WithArguments("field2", "true").
WithLocation
(21, 13)
24976
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field3").
WithLocation
(10, 5),
24979
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return true;").WithArguments("field1", "true").
WithLocation
(24, 9)
25017
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field3").
WithLocation
(10, 5),
25020
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field1").
WithLocation
(10, 5),
25023
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return false;").WithArguments("field1", "false").
WithLocation
(24, 9),
25026
Diagnostic(ErrorCode.WRN_MemberNotNullWhen, "return false;").WithArguments("field4", "false").
WithLocation
(24, 9)
25059
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field1").WithArguments("field", "field1").
WithLocation
(5, 19),
25062
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "field3").WithArguments("field", "field3").
WithLocation
(7, 19)
25090
Diagnostic(ErrorCode.ERR_NoSuchMember, "HasValue").WithArguments("int", "HasValue").
WithLocation
(10, 20),
25093
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "i").
WithLocation
(13, 24)
25126
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(18, 24)
25165
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "item.Value").
WithLocation
(22, 24)
25204
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "item.Value").
WithLocation
(22, 24)
25240
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(17, 24)
25273
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(16, 24)
25405
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(15, 20)
25458
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o2").
WithLocation
(10, 13),
25461
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o2").
WithLocation
(26, 13),
25464
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(34, 13)
25496
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(9, 13)
25521
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o2").
WithLocation
(10, 13)
25563
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(27, 13)
25601
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o2").WithArguments("o2", "int C.Test(object o, object o2)").
WithLocation
(11, 41),
25604
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "int C.Test(object o, object o2)").
WithLocation
(13, 23),
25607
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "int C.Test(object o, object o2)").
WithLocation
(21, 46),
25610
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "int C.Test(object o, object o2)").
WithLocation
(22, 47),
25613
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "int C.Test(object o, object o2)").
WithLocation
(23, 23)
25663
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o2").WithArguments("o2", "void C.Test(object o, object o2)").
WithLocation
(12, 25),
25666
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "void C.Test(object o, object o2)").
WithLocation
(18, 22),
25669
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "void C.Test(object o, object o2)").
WithLocation
(28, 22),
25672
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "void C.Test(object o, object o2)").
WithLocation
(31, 22),
25675
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "void C.Test(object o, object o2)").
WithLocation
(34, 22)
25706
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(16, 24)
25773
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(21, 24)
25806
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "IsOk:").WithArguments("C.IsOk").
WithLocation
(15, 20),
25809
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(16, 24),
25812
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(18, 24)
25849
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(22, 24)
25882
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(18, 24)
25915
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(18, 24)
25948
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(18, 24)
25983
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").
WithLocation
(18, 24),
25986
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(20, 17)
26052
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").
WithLocation
(18, 24)
26087
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").
WithLocation
(18, 24),
26090
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(20, 24)
26154
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "c.Value").
WithLocation
(18, 24)
26192
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(21, 20),
26195
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(24, 16)
26259
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(19, 20)
26293
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(15, 20)
26327
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(19, 20)
26361
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t.Value").
WithLocation
(19, 20)
26395
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(15, 20)
26428
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Value").
WithLocation
(18, 24)
26509
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "IsOk switch { true => throw null!, _ => Value }").
WithLocation
(13, 16)
26559
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "IsOk ? throw null! : Value").
WithLocation
(13, 16)
26594
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(18, 17)
26654
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(8, 17));
26677
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop2").
WithLocation
(10, 9));
26707
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
26731
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 15)
26842
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(12, 15),
26845
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(13, 15),
26848
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(18, 15),
26851
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(22, 15),
26854
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s5").
WithLocation
(26, 15),
26857
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s5").
WithLocation
(27, 15),
26860
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(29, 14),
26863
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s6").
WithLocation
(31, 15),
26866
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s6").
WithLocation
(32, 15),
26869
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T, out T)", "T", "T?").
WithLocation
(34, 13),
26872
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s7").
WithLocation
(35, 15),
26875
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s7").
WithLocation
(36, 15),
26878
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T, out T?)", "T", "T?").
WithLocation
(38, 13),
26881
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s8").
WithLocation
(39, 15),
26884
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s8").
WithLocation
(40, 15),
26887
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s9").
WithLocation
(45, 15),
26890
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s9").
WithLocation
(46, 15),
26893
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T, out T)", "T", "T?").
WithLocation
(48, 13),
26896
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s10").
WithLocation
(49, 15),
26899
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s10").
WithLocation
(50, 15),
26902
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T, out T?)", "T", "T?").
WithLocation
(52, 13),
26905
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s11").
WithLocation
(53, 15),
26908
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s11").
WithLocation
(54, 15),
26911
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s12").
WithLocation
(58, 15),
26914
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s13").
WithLocation
(62, 15),
26917
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s14").
WithLocation
(66, 15),
26920
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s14").
WithLocation
(67, 15),
26923
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s17").
WithLocation
(82, 15),
26926
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s17").
WithLocation
(83, 15),
26929
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s18").
WithLocation
(86, 15),
26932
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s18").
WithLocation
(87, 15),
26935
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s19").
WithLocation
(91, 15),
26938
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s19").
WithLocation
(92, 15),
26941
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s20").
WithLocation
(95, 15),
26944
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s20").
WithLocation
(96, 15)
26976
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 15)
27006
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 15)
27031
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item").
WithLocation
(9, 15)
27056
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item").
WithLocation
(8, 15),
27059
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "item").
WithLocation
(9, 15)
27104
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("s").
WithLocation
(12, 5)
27176
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 15)
27206
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 15)
27301
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return true;").WithArguments("s", "true").
WithLocation
(11, 13)
27370
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return true;").WithArguments("s", "true").
WithLocation
(13, 17)
27402
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return false;").WithArguments("s", "false").
WithLocation
(11, 15)
27466
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return false;").WithArguments("s", "false").
WithLocation
(13, 17)
27537
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return NonConstantBool();").WithArguments("s").
WithLocation
(8, 9),
27540
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return NonConstantBool();").WithArguments("s").
WithLocation
(13, 9),
27543
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return NonConstantBool();").WithArguments("s").
WithLocation
(18, 9)
27596
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return true;").WithArguments("s").
WithLocation
(12, 17),
27599
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return false;").WithArguments("s").
WithLocation
(14, 17),
27602
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("s").
WithLocation
(20, 5)
27648
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return false;").WithArguments("s", "false").
WithLocation
(11, 13)
27690
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return (bool)true;").WithArguments("s", "true").
WithLocation
(22, 9)
27715
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s").
WithLocation
(8, 19),
27718
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 15)
27750
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(9, 16),
27753
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "T t").
WithLocation
(14, 21),
27756
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(15, 16)
27788
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(9, 16),
27791
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "T t").
WithLocation
(14, 21),
27794
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(15, 16)
27826
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(9, 16),
27829
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(15, 16)
27879
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s").
WithLocation
(8, 19),
27882
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 15),
27885
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(10, 15)
27910
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "AllowNull").WithArguments("AllowNull").
WithLocation
(5, 22)
27939
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "M1").WithArguments("s", "void Implicit.M1(string s)", "void I.M1(string s)").
WithLocation
(10, 17),
27942
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "M2").WithArguments("string? Implicit.M2()", "string? I.M2()").
WithLocation
(11, 20),
27945
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "M1").WithArguments("s", "void I.M1(string s)").
WithLocation
(15, 12),
27948
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "M2").WithArguments("string? I.M2()").
WithLocation
(16, 15)
27973
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s").
WithLocation
(8, 19),
27976
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 15),
27979
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(10, 15)
28004
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s").
WithLocation
(8, 19),
28007
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 15)
28037
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(13, 15)
28070
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a").WithArguments("c", "bool C.IsNull(C c)").
WithLocation
(12, 20),
28073
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(13, 15)
28102
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(13, 15)
28135
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(13, 15),
28138
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(14, 15)
28201
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new COpen<T>().P1").
WithLocation
(7, 9),
28204
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "xOpen.P1").
WithLocation
(11, 9),
28207
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new COpen<T>().P1").
WithLocation
(21, 9),
28210
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new CClass<T>().P2").
WithLocation
(22, 9),
28213
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new CClass<T>().P3").
WithLocation
(23, 9),
28216
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new COpen<T?>().P1").
WithLocation
(29, 9),
28219
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new CStruct<T>().P5").
WithLocation
(30, 9)
28314
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "Property").WithArguments("one", "C C.operator +(C one, C other)").
WithLocation
(10, 9)
28432
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new COpen<T>().P1").
WithLocation
(6, 9),
28435
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new COpen<T>().P1").
WithLocation
(10, 9),
28438
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new CClass<T>().P2").
WithLocation
(11, 9),
28441
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new CClass<T>().P3").
WithLocation
(12, 9),
28444
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new COpen<T?>().P1").
WithLocation
(18, 9),
28447
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new CStruct<T>().P5").
WithLocation
(19, 9)
28485
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "throw null!").
WithLocation
(11, 46),
28488
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.P").
WithLocation
(15, 9),
28491
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.P2").
WithLocation
(19, 9)
28523
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.P").
WithLocation
(15, 9),
28526
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.P").
WithLocation
(16, 9)
28558
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(11, 45),
28561
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.P").
WithLocation
(15, 9),
28564
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.P2").
WithLocation
(19, 9)
28591
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.P").
WithLocation
(9, 9),
28594
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.P").
WithLocation
(12, 9)
28651
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new COpen<T>()[0]").
WithLocation
(6, 9),
28654
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new COpen<T>()[0]").
WithLocation
(10, 9),
28657
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new CClass<T>()[0]").
WithLocation
(11, 9),
28660
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new CClass2<T>()[0]").
WithLocation
(12, 9),
28663
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new COpen<T?>()[0]").
WithLocation
(18, 9),
28666
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new CStruct2<T>()[0]").
WithLocation
(19, 9)
28704
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b[(int)0]").
WithLocation
(15, 9),
28707
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c[(int)0]").
WithLocation
(16, 9)
28739
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(11, 55),
28742
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b[(int)0]").
WithLocation
(15, 9),
28745
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c[(byte)0]").
WithLocation
(19, 9)
28826
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new COpen<T>().f1").
WithLocation
(8, 9),
28829
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "xOpen.f1").
WithLocation
(12, 9),
28832
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "xOpen2.f1").
WithLocation
(15, 9),
28835
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new COpen<T>().f1").
WithLocation
(26, 9),
28838
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new CClass<T>().f2").
WithLocation
(27, 9),
28841
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new CClass<T>().f3").
WithLocation
(28, 9),
28844
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new CStruct<T>().f5").
WithLocation
(34, 9)
28893
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "f1").
WithLocation
(7, 9)
28917
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "f1").
WithLocation
(7, 9)
28943
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.f1").
WithLocation
(7, 9),
28946
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.f1").
WithLocation
(11, 9)
28991
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "c.f1").
WithLocation
(7, 9),
28994
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "c.f1").
WithLocation
(11, 9)
29022
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(12, 15)
29053
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
29084
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 13),
29087
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(15, 13)
29117
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13),
29120
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 13)
29151
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13),
29154
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 13)
29185
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13),
29188
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 13)
29219
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 13),
29222
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(15, 13)
29282
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.field").
WithLocation
(15, 13),
29285
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.field").
WithLocation
(27, 13)
29329
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.field").
WithLocation
(13, 13),
29332
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.field").
WithLocation
(17, 13),
29335
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.field").
WithLocation
(25, 13),
29338
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.field").
WithLocation
(29, 13)
29416
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13),
29419
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 13)
29448
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13),
29451
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "MaybeNullWhen").WithArguments("MaybeNullWhen").
WithLocation
(16, 53)
29480
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13),
29483
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 13)
29542
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
29573
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 13)
29604
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
29629
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(10, 15)
29740
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(12, 15),
29743
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s5").
WithLocation
(26, 15),
29746
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(29, 14),
29749
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s6").
WithLocation
(31, 15),
29752
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T, out T)", "T", "T?").
WithLocation
(34, 13),
29755
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s7").
WithLocation
(35, 15),
29758
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T, out T?)", "T", "T?").
WithLocation
(38, 13),
29761
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s8").
WithLocation
(39, 15),
29764
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s9").
WithLocation
(45, 15),
29767
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T, out T)", "T", "T?").
WithLocation
(48, 13),
29770
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s10").
WithLocation
(49, 15),
29773
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T, out T?)", "T", "T?").
WithLocation
(52, 13),
29776
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s11").
WithLocation
(53, 15),
29779
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s14").
WithLocation
(66, 15),
29782
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s17").
WithLocation
(82, 15),
29785
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s18").
WithLocation
(86, 15),
29788
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s19").
WithLocation
(91, 15),
29791
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s20").
WithLocation
(95, 15)
29816
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 15)
29848
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
29877
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
29904
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(8, 13)
29936
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(7, 13),
29939
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13),
29942
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 13)
29974
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 13)
30006
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
30051
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
30079
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p2)").
WithLocation
(8, 9)
30136
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "res").
WithLocation
(7, 1),
30139
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C.M(null)").
WithLocation
(9, 13),
30142
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "res").
WithLocation
(10, 1),
30145
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "res").
WithLocation
(13, 1),
30148
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return null;").WithArguments("s1").
WithLocation
(33, 13)
30176
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return;").WithArguments("s1", "s2").
WithLocation
(12, 13)
30221
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return null;", isSuppressed: false).WithArguments("p").
WithLocation
(15, 13),
30224
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return M1();", isSuppressed: false).WithArguments("p").
WithLocation
(20, 13),
30227
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return M1();", isSuppressed: false).WithArguments("p").
WithLocation
(29, 9));
30286
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return null;", isSuppressed: false).WithArguments("p").
WithLocation
(21, 13),
30289
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return M1();", isSuppressed: false).WithArguments("p").
WithLocation
(26, 13),
30292
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return M1();", isSuppressed: false).WithArguments("p").
WithLocation
(31, 13));
30325
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return null;", isSuppressed: false).WithArguments("q").
WithLocation
(15, 13),
30328
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return M1();", isSuppressed: false).WithArguments("p").
WithLocation
(18, 9));
30390
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return default;", isSuppressed: false).WithArguments("t").
WithLocation
(10, 13),
30393
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return default;", isSuppressed: false).WithArguments("t").
WithLocation
(31, 13),
30396
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default", isSuppressed: false).
WithLocation
(31, 20),
30399
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default", isSuppressed: false).
WithLocation
(41, 20));
30439
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return;", isSuppressed: false).WithArguments("pOut", "p").
WithLocation
(16, 13),
30442
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "}", isSuppressed: false).WithArguments("pOut", "p").
WithLocation
(26, 5));
30490
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return p;", isSuppressed: false).WithArguments("pOut", "p").
WithLocation
(11, 13),
30493
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return null;", isSuppressed: false).WithArguments("p").
WithLocation
(17, 13),
30496
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return null;", isSuppressed: false).WithArguments("p").
WithLocation
(23, 13),
30499
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return null;", isSuppressed: false).WithArguments("pOut", "p").
WithLocation
(23, 13),
30502
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return pOut;", isSuppressed: false).WithArguments("p").
WithLocation
(33, 9),
30505
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return pOut;", isSuppressed: false).WithArguments("pOut", "p").
WithLocation
(33, 9));
30564
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return null;").WithArguments("p").
WithLocation
(41, 13),
30567
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return null;").WithArguments("pOut", "p").
WithLocation
(41, 13));
30624
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return local1();").WithArguments("p").
WithLocation
(40, 13),
30627
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return local1();").WithArguments("pOut", "p").
WithLocation
(40, 13));
30682
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return p;").WithArguments("pOut", "p").
WithLocation
(13, 17),
30685
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return null;").WithArguments("p").
WithLocation
(19, 17),
30688
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return null;").WithArguments("p").
WithLocation
(25, 17),
30691
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return null;").WithArguments("pOut", "p").
WithLocation
(25, 17),
30694
Diagnostic(ErrorCode.WRN_ReturnNotNullIfNotNull, "return pOut;").WithArguments("p").
WithLocation
(35, 13),
30697
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return pOut;").WithArguments("pOut", "p").
WithLocation
(35, 13)
30738
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return;").WithArguments("pOut", "p").
WithLocation
(10, 13),
30741
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "}").WithArguments("pOut", "p").
WithLocation
(26, 5));
30783
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "return;").WithArguments("pOut", "p").
WithLocation
(12, 13),
30786
Diagnostic(ErrorCode.WRN_ParameterNotNullIfNotNull, "}").WithArguments("pOut", "p").
WithLocation
(28, 5));
30827
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("pOut").
WithLocation
(8, 5));
30859
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "Prop").
WithLocation
(9, 12),
30862
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "Prop").
WithLocation
(10, 12),
30865
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop").
WithLocation
(11, 38),
30868
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("Prop").
WithLocation
(18, 5));
30900
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field").
WithLocation
(9, 12),
30903
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "field").
WithLocation
(10, 12),
30906
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field").
WithLocation
(11, 39),
30909
Diagnostic(ErrorCode.WRN_MemberNotNull, "}").WithArguments("field").
WithLocation
(18, 5));
30972
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C1").WithArguments("property", "F1").
WithLocation
(9, 12),
30975
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C1").WithArguments("property", "F1").
WithLocation
(10, 12),
30978
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F1").
WithLocation
(12, 19),
30981
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F3").
WithLocation
(44, 19));
31043
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C1").WithArguments("field", "F").
WithLocation
(9, 12),
31046
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C1").WithArguments("field", "F").
WithLocation
(10, 12),
31049
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F").
WithLocation
(12, 18),
31052
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C2").WithArguments("field", "F").
WithLocation
(25, 12),
31055
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C2").WithArguments("field", "F").
WithLocation
(26, 12),
31058
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F").
WithLocation
(44, 18));
31098
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "Prop").WithArguments("t", "void C<T>.M1(T t)").
WithLocation
(12, 12),
31101
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "Prop").WithArguments("t", "void C<T>.M1(T t)").
WithLocation
(18, 12));
31139
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "Prop").
WithLocation
(8, 12),
31142
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "Prop").
WithLocation
(12, 12),
31145
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop").
WithLocation
(19, 9));
31200
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "c.M(p2)").
WithLocation
(8, 9)
31235
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p2)").
WithLocation
(8, 9)
31270
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p2, u)").
WithLocation
(8, 9)
31307
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p2, p2)").
WithLocation
(10, 9)
31346
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p1, p2)").
WithLocation
(8, 9),
31349
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p2, p2)").
WithLocation
(10, 9)
31383
Diagnostic(ErrorCode.ERR_DuplicateParamName, "p").WithArguments("p").
WithLocation
(4, 73),
31386
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p2, p2)").
WithLocation
(12, 9)
31411
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p1)").
WithLocation
(9, 9),
31414
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p2)").
WithLocation
(10, 9)
31438
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 31),
31441
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p1)").
WithLocation
(9, 9),
31444
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p2)").
WithLocation
(10, 9)
31476
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p2)").
WithLocation
(8, 9),
31479
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(null)").
WithLocation
(9, 9)
31514
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p2.M()").
WithLocation
(8, 9)
31549
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c[p1]").
WithLocation
(7, 9),
31552
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c[p2]").
WithLocation
(8, 9)
31578
Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").
WithLocation
(4, 56)
31608
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(11, 9)
31648
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(12, 11)
31692
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(13, 9),
31695
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x3").
WithLocation
(17, 9)
31739
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(9, 9),
31742
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(13, 9)
31796
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "cn1 + cn2").
WithLocation
(9, 10),
31799
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1 * c2").
WithLocation
(11, 10),
31802
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1 * cn2").
WithLocation
(12, 10),
31805
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "cn1 * c2").
WithLocation
(13, 10),
31808
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "cn1 * cn2").
WithLocation
(14, 10),
31811
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "cn1 - c2").
WithLocation
(18, 10),
31814
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "cn1 - cn2").
WithLocation
(19, 10),
31817
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1 / cn2").
WithLocation
(22, 10),
31820
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "cn1 / cn2").
WithLocation
(24, 10)
31867
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c + sn").
WithLocation
(8, 10),
31870
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "cn + sn").
WithLocation
(9, 10)
31949
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "arn2").
WithLocation
(13, 9),
31952
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "mr1 *= mc").
WithLocation
(18, 9),
31955
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "mr1").
WithLocation
(19, 9),
31958
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "mr2 *= mcn").
WithLocation
(20, 9),
31961
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "mr2").
WithLocation
(21, 9),
31964
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "mrn1").
WithLocation
(23, 9),
31967
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "mrn2").
WithLocation
(25, 9),
31970
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "srn1").
WithLocation
(35, 9),
31973
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "srn2").
WithLocation
(37, 9),
31976
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "dr2 /= dcn").
WithLocation
(44, 9),
31979
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "dr2").
WithLocation
(45, 9),
31982
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "drn2").
WithLocation
(49, 9)
32024
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(10, 13),
32027
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 13),
32030
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(15, 13)
32057
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.M(p2)").
WithLocation
(8, 9)
32092
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(null)").
WithLocation
(11, 13));
32115
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "lam1(null)").
WithLocation
(9, 13));
32141
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1()").
WithLocation
(10, 13),
32144
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(null)").
WithLocation
(11, 13));
32167
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "lam1()").
WithLocation
(8, 13),
32170
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "lam1(null)").
WithLocation
(9, 13));
32196
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "local1(null)").
WithLocation
(11, 13));
32223
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"M1(p2: ""world"", p1: null)").
WithLocation
(13, 13));
32254
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(p1: null)").
WithLocation
(11, 13),
32257
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"M1(p2: ""hello"", p1: null)").
WithLocation
(13, 13),
32260
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"M1(p1: null, p2: ""hello"")").
WithLocation
(14, 13));
32291
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(p2: null)").
WithLocation
(10, 13),
32294
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(p1: null)").
WithLocation
(11, 13),
32297
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"M1(p2: ""hello"", p1: null)").
WithLocation
(13, 13),
32300
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"M1(p1: null, p2: ""hello"")").
WithLocation
(14, 13));
32327
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "s").WithArguments("object", "string").
WithLocation
(7, 24),
32330
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1()").
WithLocation
(11, 13),
32333
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(null)").
WithLocation
(12, 13));
32366
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C1.M1()").
WithLocation
(6, 13),
32369
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C1.M1(null)").
WithLocation
(7, 13));
32376
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C1.M1()").
WithLocation
(6, 13),
32379
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C1.M1(null)").
WithLocation
(7, 13));
32407
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "this[0]").
WithLocation
(10, 13),
32410
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "this[0, null]").
WithLocation
(11, 13),
32413
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"this[0, ""world""]").
WithLocation
(12, 13));
32440
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(C?)null").WithArguments("s", "void C.M1(string s)").
WithLocation
(13, 12));
32468
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(C?)null").WithArguments("s", "void C.M1(string s)").
WithLocation
(14, 12));
32496
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(string?)new C()").WithArguments("s", "void C.M1(string s)").
WithLocation
(13, 12),
32499
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(string?)(C?)null").WithArguments("s", "void C.M1(string s)").
WithLocation
(14, 12));
32543
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "(B?)null").
WithLocation
(18, 12));
32691
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "(B?)null").
WithLocation
(23, 24),
32694
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "(E?)null").
WithLocation
(76, 24),
32697
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "(F?)null").
WithLocation
(94, 24),
32700
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "(G?)null").
WithLocation
(112, 24),
32703
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "(H?)null").
WithLocation
(130, 24)
32711
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(B?)null").WithArguments("a", "void A.DisallowNull(A? a)").
WithLocation
(23, 24),
32714
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(E?)null").WithArguments("a", "void A.DisallowNull(A? a)").
WithLocation
(76, 24),
32717
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(F?)null").WithArguments("a", "void A.DisallowNull(A? a)").
WithLocation
(94, 24),
32720
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(G?)null").WithArguments("a", "void A.DisallowNull(A? a)").
WithLocation
(112, 24),
32723
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(H?)null").WithArguments("a", "void A.DisallowNull(A? a)").
WithLocation
(130, 24)
32769
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "new C()").WithArguments("s", "void C.M1(string s)").
WithLocation
(29, 12),
32772
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(C?)null").WithArguments("s", "void C.M1(string s)").
WithLocation
(30, 12));
32805
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(10, 13),
32808
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(15, 13)
32842
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(7, 13),
32845
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(10, 13),
32848
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(15, 13)
32925
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").
WithLocation
(6, 15)
32966
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s").
WithLocation
(6, 15),
32969
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
32992
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s").
WithLocation
(7, 15),
32995
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9)
33027
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 13),
33030
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(12, 13)
33099
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
33186
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
33232
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
33256
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "CopyOrDefault").WithArguments("C.CopyOrDefault<T>(T, out T?)", "T", "string?").
WithLocation
(6, 9),
33259
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
33284
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9)
33308
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s/*T:string?[]!*/[0]").
WithLocation
(7, 9)
33332
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "CopyOrDefault").WithArguments("C.CopyOrDefault<T>(T, out T?[])", "T", "string?").
WithLocation
(6, 9),
33335
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s/*T:string?[]!*/[0]").
WithLocation
(7, 9)
33462
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e2").
WithLocation
(12, 13));
33494
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9),
33497
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s2").
WithLocation
(11, 15),
33500
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(12, 9),
33503
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(14, 21),
33506
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s3").
WithLocation
(15, 16)
33534
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "local").
WithLocation
(8, 15),
33537
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "field").
WithLocation
(10, 15),
33540
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "RefString()").
WithLocation
(12, 15)
33564
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").
WithLocation
(7, 15)
33619
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "null").
WithLocation
(8, 15),
33622
Diagnostic(ErrorCode.ERR_RefLvalueExpected, @"""""").
WithLocation
(9, 15),
33625
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "field").
WithLocation
(11, 15),
33628
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field").
WithLocation
(12, 9),
33631
Diagnostic(ErrorCode.ERR_RefProperty, "Property").
WithLocation
(14, 15),
33634
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(15, 20)
33665
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9),
33668
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s2").
WithLocation
(11, 20),
33671
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(12, 9)
33695
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(8, 9)
33751
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(8, 9),
33754
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(9, 9),
33757
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(13, 9),
33760
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(14, 9),
33763
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(18, 9),
33766
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t3").
WithLocation
(19, 9)
33799
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C", isSuppressed: false).WithArguments("field", "f2").
WithLocation
(14, 5),
33802
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "f2", isSuppressed: false).
WithLocation
(18, 16)
33890
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "X(ref maybeNull, ref maybeNull)").
WithLocation
(10, 9),
33893
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "maybeNull").
WithLocation
(15, 15),
33896
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "maybeNull").
WithLocation
(25, 28)
33955
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9),
33958
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(9, 9),
33961
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(16, 9)
33986
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9),
33989
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(9, 9)
34054
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s2").WithArguments("C<string>", "C<string?>", "s", "void C<T>.M(ref C<string?> s)").
WithLocation
(9, 15));
34089
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9),
34092
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 9),
34095
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "v2").
WithLocation
(14, 9),
34098
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").
WithLocation
(17, 25),
34101
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "v3").
WithLocation
(19, 9)
34125
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s").WithArguments("s").
WithLocation
(8, 16),
34128
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(9, 21)
34181
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9),
34184
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s2").
WithLocation
(11, 15),
34187
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(12, 9)
34213
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9),
34216
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "string s2").
WithLocation
(9, 15),
34219
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(10, 9)
34267
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(8, 9)
34313
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "s2").WithArguments("C<string>", "C<string?>", "s", "void C<T>.M(out C<string?> s)").
WithLocation
(9, 15)
34349
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9),
34352
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 9),
34355
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "v2").
WithLocation
(14, 9),
34358
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "v3").
WithLocation
(19, 9)
34425
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "Copy").WithArguments("C.Copy<T>(T, out T?)", "T", "string?").
WithLocation
(7, 9)
34449
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "string s").
WithLocation
(6, 24),
34452
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
34497
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "string s").
WithLocation
(6, 23),
34500
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
34524
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
34548
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
34592
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
34637
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "Copy").WithArguments("C.Copy<T>(T)", "T", "string?").
WithLocation
(6, 17),
34640
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
34665
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9)
34685
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "NotNull").WithArguments("NotNull", "property, indexer, field, parameter, return").
WithLocation
(5, 6)
34870
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 13),
34873
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
34894
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(6, 13),
34897
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9)
34928
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 13)
34961
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 13)
34990
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 13)
35013
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9),
35016
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "NotNullWhen").WithArguments("NotNullWhen").
WithLocation
(10, 46)
35049
Diagnostic(ErrorCode.ERR_UseDefViolation, "unassigned").WithArguments("unassigned").
WithLocation
(9, 9)
35107
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(8, 9));
35133
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").
WithLocation
(11, 21)
35164
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(8, 9)
35187
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return;").
WithLocation
(9, 9)
35217
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(7, 9)
35224
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(7, 9)
35290
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(7, 15),
35293
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(8, 15)
35340
Diagnostic(ErrorCode.WRN_DoesNotReturnMismatch, "MayThrow").WithArguments("bool C3.MayThrow()").
WithLocation
(22, 17),
35343
Diagnostic(ErrorCode.WRN_DoesNotReturnMismatch, "MayThrow").WithArguments("bool C4.MayThrow()").
WithLocation
(26, 13)
35389
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 13)
35434
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(7, 9)
35480
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 9)
35505
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(7, 9),
35508
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 9)
35546
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "DoesNotReturnIf").WithArguments("DoesNotReturnIf").
WithLocation
(5, 44),
35549
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "DoesNotReturnIf").WithArguments("DoesNotReturnIf").
WithLocation
(6, 44)
35617
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 9)
35640
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 9)
35664
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 23),
35667
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 9)
35695
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(13, 9)
35739
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 9)
35797
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(20, 9),
35800
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(28, 9),
35803
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(40, 9));
35822
Diagnostic(ErrorCode.ERR_NoConversionForNubDefaultParam, "s").WithArguments("MyStruct", "s").
WithLocation
(4, 30));
35865
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "s").WithArguments("MyStruct", "string").
WithLocation
(4, 27));
35895
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
35948
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13),
35951
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(10, 13)
35987
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13),
35990
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(15, 13)
36023
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
36052
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 23)
36081
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
36111
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "NotNullWhen").WithArguments("NotNullWhenAttribute").
WithLocation
(17, 34),
36114
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "NotNullWhen").WithArguments("NotNullWhen").
WithLocation
(17, 34),
36117
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 13),
36120
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(12, 13)
36177
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13),
36180
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 13)
36211
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 13)
36260
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
36294
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
36319
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 38)
36342
Diagnostic(ErrorCode.ERR_BadArgType, "M2(null)").WithArguments("1", "void", "string").
WithLocation
(6, 35),
36345
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 38)
36370
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "NotNullWhen").WithArguments("NotNullWhen").
WithLocation
(11, 22)
36403
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
36484
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 13),
36487
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(12, 13)
36512
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9)
36707
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9)
36731
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9)
36754
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "i").WithArguments("I<object>", "I<object?>", "x", "void C.ThrowIfNull(I<object?> x, string? s)").
WithLocation
(8, 21)
36868
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9),
36871
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "ThrowIfNull").WithArguments("s", "void C.ThrowIfNull(int x, string? s)", "void Interface.ThrowIfNull(int x, string? s)").
WithLocation
(12, 17)
36903
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9)
36955
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("args").
WithLocation
(5, 61),
36958
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(9, 9),
36961
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(12, 9),
36964
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(13, 9)
36996
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(9, 13),
36999
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 13),
37002
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(14, 13)
37103
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b").
WithLocation
(8, 9),
37106
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(9, 9)
37133
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(11, 9)
37175
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(7, 9)
37202
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 32)
37226
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(8, 9)
37250
Diagnostic(ErrorCode.ERR_NameNotInContext, "Missing").WithArguments("Missing").
WithLocation
(7, 9),
37253
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(8, 9)
37277
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(9, 9)
37319
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(8, 9)
37350
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(10, 13),
37353
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(14, 13),
37356
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(15, 13)
37382
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(8, 9)
37426
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 24)
37524
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9),
37527
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("x").
WithLocation
(26, 5),
37530
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(35, 16),
37533
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(40, 13),
37536
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(41, 19),
37539
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("x").
WithLocation
(42, 5)
37595
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x", isSuppressed: false).
WithLocation
(7, 9),
37598
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}", isSuppressed: false).WithArguments("x").
WithLocation
(24, 5),
37601
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "return null;", isSuppressed: false).
WithLocation
(33, 9),
37604
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return;", isSuppressed: false).WithArguments("x").
WithLocation
(39, 9)
37653
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9),
37656
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(22, 13),
37659
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("x").
WithLocation
(23, 5),
37662
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(32, 16)
37718
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([AllowNull]string x) =>").WithArguments("x", "lambda expression", "System.Action<string>").
WithLocation
(5, 10),
37721
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9),
37724
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([DisallowNull]string? x) =>").WithArguments("x", "lambda expression", "System.Action<string?>").
WithLocation
(10, 10),
37727
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([MaybeNull]out string x) =>").WithArguments("x", "lambda expression", "<anonymous delegate>").
WithLocation
(16, 10),
37730
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([NotNull]out string? x) =>").WithArguments("x", "lambda expression", "<anonymous delegate>").
WithLocation
(22, 10),
37733
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("x").
WithLocation
(26, 5),
37736
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: MaybeNull] string () =>").WithArguments("lambda expression", "System.Func<string>").
WithLocation
(28, 10),
37739
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "[return: NotNull] string?() =>").WithArguments("lambda expression", "System.Func<string?>").
WithLocation
(33, 10),
37742
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(35, 16),
37745
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([NotNull]string x) =>").WithArguments("x", "lambda expression", "System.Action<string>").
WithLocation
(38, 10),
37748
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(40, 13),
37751
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(41, 19),
37754
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("x").
WithLocation
(42, 5)
37797
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(13, 22),
37800
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "value").
WithLocation
(14, 15),
37803
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(25, 22),
37806
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "value").
WithLocation
(26, 15)
37835
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 47),
37838
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 43)
37881
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "value").
WithLocation
(14, 15),
37884
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "value").
WithLocation
(20, 15),
37887
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "return null;").
WithLocation
(25, 15),
37890
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "value").
WithLocation
(26, 15)
37933
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(7, 22),
37936
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(13, 22),
37939
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "value").
WithLocation
(14, 15),
37942
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "value").
WithLocation
(20, 15),
37945
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(25, 22),
37948
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "value").
WithLocation
(26, 15)
38008
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(18, 14),
38011
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T)", "T", "T?").
WithLocation
(20, 9),
38014
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T)", "T", "T?").
WithLocation
(26, 9));
38054
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(15, 9),
38057
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(18, 9),
38060
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(23, 9),
38063
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s2").
WithLocation
(25, 24),
38066
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(26, 9)
38125
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(18, 14));
38159
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(10, 14));
38194
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(14, 9),
38197
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(16, 21),
38200
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(22, 9)
38261
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 20),
38264
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F1").WithArguments("A.F1<T>(T)", "T", "object?").
WithLocation
(7, 9),
38267
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("A.F2<T>(T)", "T", "object?").
WithLocation
(9, 9));
38348
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 14),
38351
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "xClass.P3").
WithLocation
(26, 9)
38544
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 16),
38547
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 17));
38577
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 16),
38580
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 17));
38694
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(14, 14),
38697
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "xOpen.f1").
WithLocation
(21, 9),
38700
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "xClass.f2").
WithLocation
(25, 9),
38703
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "xClass.f3").
WithLocation
(27, 9)
38792
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "c2").WithArguments("other", "CLeft? CLeft.operator +(CLeft one, CLeft other)").
WithLocation
(11, 21),
38795
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "Property").WithArguments("one", "CNone? CNone.operator +(CNone one, CNone other)").
WithLocation
(32, 9),
38798
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "Property").WithArguments("one", "CNone? CNone.operator +(CNone one, CNone other)").
WithLocation
(33, 9),
38801
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "c2").WithArguments("other", "CNone? CNone.operator +(CNone one, CNone other)").
WithLocation
(33, 21)
38879
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 14)
39054
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("s", "string C.this[string s]").
WithLocation
(6, 17)
39097
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 20),
39100
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F1").WithArguments("A.F1<T>(T, T)", "T", "object?").
WithLocation
(10, 9),
39103
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F1").WithArguments("A.F1<T>(T, T)", "T", "object?").
WithLocation
(11, 9),
39106
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F1").WithArguments("A.F1<T>(T, T)", "T", "object?").
WithLocation
(13, 9),
39109
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("A.F2<T>(T, T)", "T", "object?").
WithLocation
(15, 9),
39112
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("A.F2<T>(T, T)", "T", "object?").
WithLocation
(16, 9),
39115
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("A.F2<T>(T, T)", "T", "object?").
WithLocation
(18, 9),
39118
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("A.F2<T>(T, T)", "T", "object?").
WithLocation
(20, 9),
39121
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("A.F2<T>(T, T)", "T", "object?").
WithLocation
(21, 9)
39151
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t1").
WithLocation
(12, 26),
39154
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t3").
WithLocation
(12, 26),
39157
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t4").
WithLocation
(12, 26),
39160
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t1").
WithLocation
(13, 26),
39163
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t3").
WithLocation
(13, 26),
39166
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t4").
WithLocation
(13, 26)
39194
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t1").
WithLocation
(12, 26),
39197
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t3").
WithLocation
(12, 26),
39200
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t4").
WithLocation
(12, 26),
39203
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t1").
WithLocation
(13, 26),
39206
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t3").
WithLocation
(13, 26),
39209
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t4").
WithLocation
(13, 26)
39286
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s1").WithArguments("s0", "void Program.M0(string s0)").
WithLocation
(8, 12)
39309
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t").WithArguments("t", "void Program.M0<T>(T t)").
WithLocation
(8, 15)
39332
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(9, 13)
39355
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(9, 13)
39378
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(9, 13)
39401
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(9, 13)
39424
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s1").WithArguments("s0", "void Program.M0(params string[]? s0)").
WithLocation
(8, 12)
39448
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(10, 13)
39473
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(11, 13)
39505
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(11, 13),
39508
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(17, 15)
39533
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "i1").
WithLocation
(10, 12)
39558
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(10, 12)
39583
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t").WithArguments("t", "void Program<T>.M0(T t)").
WithLocation
(9, 12));
39625
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t?.Value").WithArguments("t", "void Program<T>.M0(T t)").
WithLocation
(14, 12),
39628
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t").WithArguments("t", "void Program<T>.M0(T t)").
WithLocation
(24, 12),
39631
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t.Value").WithArguments("t", "void Program<T>.M0(T t)").
WithLocation
(27, 12)
39663
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(9, 14),
39666
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t").WithArguments("s", "void C1<T>.Test(T s)").
WithLocation
(15, 14)
39711
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 9),
39714
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(15, 9),
39717
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(21, 9));
39793
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "x").
WithLocation
(9, 15),
39796
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "x").
WithLocation
(15, 16));
39819
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t").WithArguments("t", "void Program<T>.M0(T t)").
WithLocation
(9, 12)
39842
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M0").WithArguments("Program.M0<T>(T)", "T", "string?").
WithLocation
(8, 9),
39845
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
39868
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
39891
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M0").WithArguments("Program.M0<T>(params T[]?)", "T", "string?").
WithLocation
(8, 9),
39894
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(9, 13)
39917
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s1").WithArguments("s0", "void Program.M0<string>(params string[]? s0)").
WithLocation
(8, 20)
39947
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t1").
WithLocation
(12, 26),
39950
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t2").
WithLocation
(12, 26),
39953
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t3").
WithLocation
(12, 26),
39956
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t4").
WithLocation
(12, 26),
39959
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t1").
WithLocation
(13, 26),
39962
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t4").
WithLocation
(13, 26),
39965
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t1").
WithLocation
(14, 26),
39968
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t2").
WithLocation
(14, 26),
39971
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t3").
WithLocation
(14, 26),
39974
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t4").
WithLocation
(14, 26),
39977
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t1").
WithLocation
(15, 26),
39980
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t4").
WithLocation
(15, 26),
39983
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t1").
WithLocation
(16, 26),
39986
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t2").
WithLocation
(16, 26),
39989
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t3").
WithLocation
(16, 26),
39992
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t4").
WithLocation
(16, 26)
40022
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t2").
WithLocation
(12, 26),
40025
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t3").
WithLocation
(12, 26),
40028
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t2").
WithLocation
(14, 26),
40031
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t3").
WithLocation
(14, 26),
40034
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t2").
WithLocation
(16, 26),
40037
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t3").
WithLocation
(16, 26)
40107
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t1").
WithLocation
(13, 26),
40110
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t4").
WithLocation
(13, 26),
40113
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t1").
WithLocation
(14, 26),
40116
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t4").
WithLocation
(14, 26),
40119
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t1").
WithLocation
(15, 26),
40122
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t4").
WithLocation
(15, 26)
40159
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t1").
WithLocation
(13, 26),
40162
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t4").
WithLocation
(13, 26),
40165
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t1").
WithLocation
(14, 26),
40168
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t4").
WithLocation
(14, 26),
40171
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t1").
WithLocation
(15, 26),
40174
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t4").
WithLocation
(15, 26)
40286
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return y != null;").WithArguments("y", "false").
WithLocation
(18, 9),
40289
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return y == null;").WithArguments("y", "true").
WithLocation
(24, 9)
40343
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return y != null;").WithArguments("y", "false").
WithLocation
(24, 9),
40346
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return y == null;").WithArguments("y", "true").
WithLocation
(30, 9)
40416
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return !TryGetValueCore(out y);").WithArguments("y", "false").
WithLocation
(15, 9)
40513
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return true;").WithArguments("y", "true").
WithLocation
(15, 13),
40516
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return y == null;").WithArguments("y", "true").
WithLocation
(29, 9),
40519
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return y != null;").WithArguments("y", "false").
WithLocation
(41, 9),
40522
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return true;").WithArguments("x").
WithLocation
(49, 13),
40525
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return false;").WithArguments("x").
WithLocation
(51, 9),
40528
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return false;").WithArguments("y", "false").
WithLocation
(51, 9)
40599
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "static bool ([NotNullWhen(true)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").
WithLocation
(11, 18),
40602
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return true;").WithArguments("y", "true").
WithLocation
(16, 21),
40605
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "static bool ([NotNullWhen(true)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").
WithLocation
(21, 18),
40608
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "static bool ([NotNullWhen(true)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").
WithLocation
(27, 18),
40611
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return y == null;").WithArguments("y", "true").
WithLocation
(30, 17),
40614
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "static bool ([NotNullWhen(false)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").
WithLocation
(33, 18),
40617
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "static bool ([NotNullWhen(false)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").
WithLocation
(39, 18),
40620
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return y != null;").WithArguments("y", "false").
WithLocation
(42, 17),
40623
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "static bool ([NotNull] T? x, [NotNullWhen(false)] out T? y) =>").WithArguments("x", "lambda expression", "<anonymous delegate>").
WithLocation
(45, 18),
40626
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "static bool ([NotNull] T? x, [NotNullWhen(false)] out T? y) =>").WithArguments("y", "lambda expression", "<anonymous delegate>").
WithLocation
(45, 18),
40629
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return true;").WithArguments("x").
WithLocation
(50, 21),
40632
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "return false;").WithArguments("x").
WithLocation
(52, 17),
40635
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return false;").WithArguments("y", "false").
WithLocation
(52, 17)
40658
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("i").
WithLocation
(10, 5),
40661
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("s").
WithLocation
(10, 5)
40687
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "void ([NotNull] int? i, [NotNull] int i2, [NotNull] TStruct? s, [NotNull] TStruct s2, [NotNull] TNotNull n) =>").WithArguments("i", "lambda expression", "System.Action<int?, int, TStruct?, TStruct, TNotNull>").
WithLocation
(10, 17),
40690
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "void ([NotNull] int? i, [NotNull] int i2, [NotNull] TStruct? s, [NotNull] TStruct s2, [NotNull] TNotNull n) =>").WithArguments("i2", "lambda expression", "System.Action<int?, int, TStruct?, TStruct, TNotNull>").
WithLocation
(10, 17),
40693
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "void ([NotNull] int? i, [NotNull] int i2, [NotNull] TStruct? s, [NotNull] TStruct s2, [NotNull] TNotNull n) =>").WithArguments("s", "lambda expression", "System.Action<int?, int, TStruct?, TStruct, TNotNull>").
WithLocation
(10, 17),
40696
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "void ([NotNull] int? i, [NotNull] int i2, [NotNull] TStruct? s, [NotNull] TStruct s2, [NotNull] TNotNull n) =>").WithArguments("s2", "lambda expression", "System.Action<int?, int, TStruct?, TStruct, TNotNull>").
WithLocation
(10, 17),
40699
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "void ([NotNull] int? i, [NotNull] int i2, [NotNull] TStruct? s, [NotNull] TStruct s2, [NotNull] TNotNull n) =>").WithArguments("n", "lambda expression", "System.Action<int?, int, TStruct?, TStruct, TNotNull>").
WithLocation
(10, 17),
40702
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("i").
WithLocation
(10, 130),
40705
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("s").
WithLocation
(10, 130)
40778
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return TryGetValue3(out y);").WithArguments("y", "true").
WithLocation
(17, 9),
40781
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return TryGetValue2(out y);").WithArguments("y", "false").
WithLocation
(27, 9)
40811
Diagnostic(ErrorCode.WRN_UnreachableCode, "y").
WithLocation
(11, 13)
40840
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(10, 13)
40915
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "}").
WithLocation
(9, 5),
40918
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").
WithLocation
(14, 9),
40921
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").
WithLocation
(23, 13),
40924
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").
WithLocation
(28, 12)
40997
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").
WithLocation
(5, 39),
41000
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").
WithLocation
(9, 9),
41003
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").
WithLocation
(17, 13),
41006
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").
WithLocation
(21, 8)
41081
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "{ }").
WithLocation
(19, 34),
41084
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").
WithLocation
(23, 5),
41087
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "return true;").
WithLocation
(31, 9),
41090
Diagnostic(ErrorCode.WRN_ShouldNotReturn, "true").
WithLocation
(35, 8)
41143
Diagnostic(ErrorCode.WRN_DoesNotReturnMismatch, "M").WithArguments("void Derived.M()").
WithLocation
(11, 26),
41146
Diagnostic(ErrorCode.WRN_DoesNotReturnMismatch, "M").WithArguments("bool C1.M()").
WithLocation
(35, 12)
41309
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t1").
WithLocation
(13, 26),
41312
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t4").
WithLocation
(13, 26),
41315
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t1").
WithLocation
(14, 26),
41318
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t4").
WithLocation
(14, 26),
41321
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t1").
WithLocation
(15, 26),
41324
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t4").
WithLocation
(15, 26),
41327
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t1").
WithLocation
(16, 26),
41330
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t4").
WithLocation
(16, 26),
41333
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t1").
WithLocation
(17, 26),
41336
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t4").
WithLocation
(17, 26),
41339
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t1").
WithLocation
(18, 26),
41342
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t4").
WithLocation
(18, 26)
41397
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "TryGetValue").WithArguments("t", "bool C<T>.TryGetValue(out T t)", "bool I<T>.TryGetValue(out T t)").
WithLocation
(11, 17)
41452
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t2").
WithLocation
(12, 26),
41455
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t3").
WithLocation
(12, 26),
41458
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t2").
WithLocation
(13, 26),
41461
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t3").
WithLocation
(13, 26)
41494
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t2").
WithLocation
(12, 26),
41497
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t3").
WithLocation
(12, 26),
41500
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t2").
WithLocation
(13, 26),
41503
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t3").
WithLocation
(13, 26)
41535
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t2").
WithLocation
(13, 26),
41538
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t3").
WithLocation
(13, 26),
41541
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t2").
WithLocation
(14, 26),
41544
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t3").
WithLocation
(14, 26),
41547
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t2").
WithLocation
(18, 26),
41550
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t3").
WithLocation
(18, 26)
41573
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t4").
WithLocation
(8, 26)
41605
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t2").
WithLocation
(13, 26),
41608
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t3").
WithLocation
(13, 26),
41611
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t2").
WithLocation
(14, 26),
41614
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t3").
WithLocation
(14, 26),
41617
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t2").
WithLocation
(18, 26),
41620
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t3").
WithLocation
(18, 26)
41652
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t1").
WithLocation
(13, 26),
41655
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t4").
WithLocation
(13, 26),
41658
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t1").
WithLocation
(14, 26),
41661
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t4").
WithLocation
(14, 26),
41664
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t1").
WithLocation
(15, 26),
41667
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t4").
WithLocation
(15, 26),
41670
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t1").
WithLocation
(16, 26),
41673
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t4").
WithLocation
(16, 26),
41676
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t1").
WithLocation
(17, 26),
41679
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t4").
WithLocation
(17, 26),
41682
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t1").
WithLocation
(18, 26),
41685
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t4").
WithLocation
(18, 26)
41741
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t1").
WithLocation
(12, 26),
41744
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t3").
WithLocation
(12, 26),
41747
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t4").
WithLocation
(12, 26),
41750
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t1").
WithLocation
(14, 26),
41753
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t3").
WithLocation
(14, 26),
41756
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t4").
WithLocation
(14, 26),
41759
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t1").
WithLocation
(16, 26),
41762
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t3").
WithLocation
(16, 26),
41765
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t4").
WithLocation
(16, 26)
41825
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t1").
WithLocation
(12, 12),
41828
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(19, 14),
41831
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "void Program.F1<T?>(T? t)").
WithLocation
(20, 19),
41834
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T)", "T", "T?").
WithLocation
(21, 16),
41837
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "void Program.F2<T?>(T? t)").
WithLocation
(21, 19),
41840
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "void Program.F3<T>(T? t)").
WithLocation
(22, 19),
41843
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "void Program.F1<T?>(T? t)").
WithLocation
(26, 19),
41846
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T)", "T", "T?").
WithLocation
(27, 16),
41849
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "void Program.F2<T?>(T? t)").
WithLocation
(27, 19),
41852
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "void Program.F3<T>(T? t)").
WithLocation
(28, 19),
41855
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(41, 19),
41858
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(42, 19)
41881
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(7, 12)
41904
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(7, 16)
41927
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(7, 15)
41955
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "u").
WithLocation
(11, 12)
42014
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t1").
WithLocation
(12, 12),
42017
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(19, 14),
42020
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "void Program.F1<T?>(T? t)").
WithLocation
(20, 19),
42023
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T)", "T", "T?").
WithLocation
(21, 16),
42026
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "void Program.F2<T?>(T? t)").
WithLocation
(21, 19),
42029
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "void Program.F3<T>(T? t)").
WithLocation
(22, 19),
42032
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "void Program.F1<T?>(T? t)").
WithLocation
(26, 19),
42035
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T)", "T", "T?").
WithLocation
(27, 16),
42038
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "void Program.F2<T?>(T? t)").
WithLocation
(27, 19),
42041
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "void Program.F3<T>(T? t)").
WithLocation
(28, 19),
42044
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(41, 19),
42047
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(42, 19)
42106
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t1").
WithLocation
(12, 15),
42109
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(19, 14),
42112
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "void Program.F1<T>(T t)").
WithLocation
(20, 22),
42115
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "void Program.F2<T>(T t)").
WithLocation
(21, 22),
42118
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "void Program.F3<T>(T? t)").
WithLocation
(22, 22),
42121
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "void Program.F1<T>(T t)").
WithLocation
(26, 22),
42124
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "void Program.F2<T>(T t)").
WithLocation
(27, 22),
42127
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "void Program.F3<T>(T? t)").
WithLocation
(28, 22),
42130
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(41, 16)
42166
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 14),
42169
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s1").WithArguments("s", "void Program.F1(string s)").
WithLocation
(12, 19),
42172
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s1").WithArguments("s", "void Program.F2(string? s)").
WithLocation
(13, 19),
42175
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s2").WithArguments("s", "void Program.F1(string s)").
WithLocation
(17, 19),
42178
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s2").WithArguments("s", "void Program.F2(string? s)").
WithLocation
(18, 19));
42206
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "i2").
WithLocation
(13, 12)
42242
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 20),
42245
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("t", "void A.F2<object>(object? t)").
WithLocation
(9, 12)
42282
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("s", "void Base.M(string? s)").
WithLocation
(6, 22)
42306
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DisallowNull").WithArguments("DisallowNull", "property, indexer, field, parameter").
WithLocation
(5, 14)
42356
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(12, 9)
42383
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(12, 9)
42419
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(14, 9),
42422
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(16, 21),
42425
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s3").
WithLocation
(17, 16),
42428
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s4").
WithLocation
(21, 16),
42431
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(22, 9)
42504
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t1").
WithLocation
(6, 29),
42507
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 14),
42510
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(14, 29),
42513
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(15, 30),
42516
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(16, 30),
42519
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(20, 29),
42522
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(21, 30),
42525
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(22, 30),
42528
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(35, 30),
42531
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(36, 31));
42537
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t1").
WithLocation
(6, 29),
42540
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 53),
42543
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 14),
42546
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(14, 29),
42549
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(15, 30),
42552
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(16, 30),
42555
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(20, 29),
42558
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(21, 30),
42561
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(22, 30),
42564
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(35, 30),
42567
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(36, 31));
42635
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 53));
42666
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "null").
WithLocation
(4, 50),
42669
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "(null, 1)").
WithLocation
(7, 19),
42672
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "P1").
WithLocation
(8, 9),
42675
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "(null, 2)").
WithLocation
(10, 28),
42678
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "P1").
WithLocation
(12, 13),
42681
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "P1").
WithLocation
(13, 9),
42684
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "P1").
WithLocation
(15, 14)
42770
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t1").
WithLocation
(6, 29),
42773
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 14),
42776
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(14, 29),
42779
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(15, 30),
42782
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(16, 30),
42785
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(20, 29),
42788
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(21, 30),
42791
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(22, 30),
42794
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(35, 30),
42797
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(36, 31),
42800
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t7").
WithLocation
(47, 30),
42803
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("t7").
WithLocation
(48, 5),
42806
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t8").
WithLocation
(51, 30)
42867
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 26),
42870
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C.maybeNull").
WithLocation
(8, 9)
42900
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 42),
42903
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field").
WithLocation
(8, 9)
42949
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(15, 15),
42952
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 15)
42984
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(11, 59),
42987
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(15, 21),
42990
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(19, 22)
43024
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "Property += c").
WithLocation
(10, 9),
43027
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "Property += s").
WithLocation
(20, 9)
43061
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "Property").WithArguments("one", "C? C.operator +(C? one, C other)").
WithLocation
(10, 9),
43064
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "Property").
WithLocation
(20, 9)
43096
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "set").WithArguments("value").
WithLocation
(11, 54),
43099
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(15, 15),
43102
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(19, 16)
43189
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t1").
WithLocation
(20, 29),
43192
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(27, 14),
43195
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(28, 29),
43198
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(29, 30),
43201
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(30, 30),
43204
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(34, 29),
43207
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(35, 30),
43210
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(36, 30),
43213
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(49, 30),
43216
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(50, 31)
43234
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DisallowNull").WithArguments("DisallowNull", "property, indexer, field, parameter").
WithLocation
(4, 30),
43237
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DisallowNull").WithArguments("DisallowNull", "property, indexer, field, parameter").
WithLocation
(5, 31)
43255
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DisallowNull").WithArguments("DisallowNull", "property, indexer, field, parameter").
WithLocation
(4, 25),
43258
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "DisallowNull").WithArguments("DisallowNull", "property, indexer, field, parameter").
WithLocation
(5, 26)
43352
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t1").
WithLocation
(6, 29),
43355
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 14),
43358
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(14, 29),
43361
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(15, 30),
43364
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(16, 31),
43367
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(20, 29),
43370
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(21, 30),
43373
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").
WithLocation
(22, 31),
43376
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(35, 30),
43379
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t5").
WithLocation
(36, 32)
43415
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("s", "string? C.this[string? s]").
WithLocation
(6, 17)
43451
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "i").
WithLocation
(6, 17)
43617
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(13, 16),
43620
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(19, 20)
43645
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(11, 16)
43670
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(9, 20)
43730
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(t1)").
WithLocation
(11, 9),
43733
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(t2)").
WithLocation
(16, 9),
43736
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(t2)").
WithLocation
(17, 9),
43739
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(t2)").
WithLocation
(18, 9),
43742
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(19, 14),
43745
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(t2)").
WithLocation
(20, 9),
43748
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T)", "T", "T?").
WithLocation
(21, 9),
43751
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(t2)").
WithLocation
(21, 9),
43754
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T)", "T", "T?").
WithLocation
(22, 9),
43757
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(t2)").
WithLocation
(22, 9),
43760
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(t3)").
WithLocation
(26, 9),
43763
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T)", "T", "T?").
WithLocation
(27, 9),
43766
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(t3)").
WithLocation
(27, 9),
43769
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T)", "T", "T?").
WithLocation
(28, 9),
43772
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(t3)").
WithLocation
(28, 9),
43775
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(t3)").
WithLocation
(30, 9),
43778
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(t3)").
WithLocation
(31, 9),
43781
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(t3)").
WithLocation
(32, 9),
43784
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1(t5)").
WithLocation
(41, 13),
43787
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F5(t5)").
WithLocation
(42, 13),
43790
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1(t5)").
WithLocation
(44, 13),
43793
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F5(t5)").
WithLocation
(45, 13));
43850
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1<T>(t1)").
WithLocation
(11, 9),
43853
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1<T>(t2)").
WithLocation
(15, 9),
43856
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2<T>(t2)").
WithLocation
(16, 9),
43859
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3<T>(t2)").
WithLocation
(17, 9),
43862
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(18, 14),
43865
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1<T>(b ? t2 : default)").
WithLocation
(19, 9),
43868
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t2 : default").WithArguments("t", "T Program.F1<T>(T t)").
WithLocation
(19, 15),
43871
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2<T>(b ? t2 : default)").
WithLocation
(20, 9),
43874
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t2 : default").WithArguments("t", "T Program.F2<T>(T t)").
WithLocation
(20, 15),
43877
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3<T>(b ? t2 : default)").
WithLocation
(21, 9),
43880
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t2 : default").WithArguments("t", "T? Program.F3<T>(T t)").
WithLocation
(21, 15),
43883
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1<T>(b ? t3 : default)").
WithLocation
(25, 9),
43886
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t3 : default").WithArguments("t", "T Program.F1<T>(T t)").
WithLocation
(25, 15),
43889
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2<T>(b ? t3 : default)").
WithLocation
(26, 9),
43892
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t3 : default").WithArguments("t", "T Program.F2<T>(T t)").
WithLocation
(26, 15),
43895
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3<T>(b ? t3 : default)").
WithLocation
(27, 9),
43898
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t3 : default").WithArguments("t", "T? Program.F3<T>(T t)").
WithLocation
(27, 15),
43901
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1<T>(t3)").
WithLocation
(29, 9),
43904
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2<T>(t3)").
WithLocation
(30, 9),
43907
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3<T>(t3)").
WithLocation
(31, 9),
43910
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1<T?>(t5)").
WithLocation
(40, 13),
43913
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F5<T>(t5)").
WithLocation
(41, 13),
43916
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1<T?>(t5)").
WithLocation
(43, 13),
43919
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F5<T>(t5)").
WithLocation
(44, 13));
43976
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(4, 57),
43979
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(8, 76),
43982
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1<T>(t1)").
WithLocation
(11, 9),
43985
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1<T>(t2)").
WithLocation
(15, 9),
43988
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2<T>(t2)").
WithLocation
(16, 9),
43991
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3<T>(t2)").
WithLocation
(17, 9),
43994
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(18, 14),
43997
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1<T>(b ? t2 : default)").
WithLocation
(19, 9),
44000
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t2 : default").WithArguments("t", "T Program.F1<T>(T t)").
WithLocation
(19, 15),
44003
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2<T>(b ? t2 : default)").
WithLocation
(20, 9),
44006
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t2 : default").WithArguments("t", "T Program.F2<T>(T t)").
WithLocation
(20, 15),
44009
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3<T>(b ? t2 : default)").
WithLocation
(21, 9),
44012
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t2 : default").WithArguments("t", "T? Program.F3<T>(T t)").
WithLocation
(21, 15),
44015
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1<T>(b ? t3 : default)").
WithLocation
(25, 9),
44018
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t3 : default").WithArguments("t", "T Program.F1<T>(T t)").
WithLocation
(25, 15),
44021
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2<T>(b ? t3 : default)").
WithLocation
(26, 9),
44024
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t3 : default").WithArguments("t", "T Program.F2<T>(T t)").
WithLocation
(26, 15),
44027
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3<T>(b ? t3 : default)").
WithLocation
(27, 9),
44030
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t3 : default").WithArguments("t", "T? Program.F3<T>(T t)").
WithLocation
(27, 15),
44033
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1<T>(t3)").
WithLocation
(29, 9),
44036
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2<T>(t3)").
WithLocation
(30, 9),
44039
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3<T>(t3)").
WithLocation
(31, 9),
44042
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1<T?>(t5)").
WithLocation
(40, 13),
44045
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F5<T>(t5)").
WithLocation
(41, 13),
44048
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1<T?>(t5)").
WithLocation
(43, 13),
44051
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F5<T>(t5)").
WithLocation
(44, 13));
44074
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1()").
WithLocation
(8, 9),
44077
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2()").
WithLocation
(9, 9));
44100
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2()").
WithLocation
(9, 13));
44135
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 20),
44138
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F1").WithArguments("A.F1<T>(T)", "T", "object?").
WithLocation
(7, 9),
44141
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(7, 9),
44144
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("A.F2<T>(T)", "T", "object?").
WithLocation
(9, 9),
44147
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(9, 9),
44150
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(10, 9)
44185
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 20),
44188
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(7, 9),
44191
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(9, 9),
44194
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(10, 9)
44228
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<T>.F()").
WithLocation
(12, 9),
44231
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<U>.F()").
WithLocation
(13, 9),
44234
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<U?>.F()").
WithLocation
(14, 9),
44237
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "C<V?>.F()").
WithLocation
(16, 13),
44240
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<string>.F()").
WithLocation
(17, 9),
44243
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<string?>.F()").
WithLocation
(18, 9),
44246
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "C<int?>.F()").
WithLocation
(20, 13));
44275
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(8, 15),
44278
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(9, 15),
44281
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(12, 15),
44284
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(13, 15)
44376
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(12, 9),
44379
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(17, 9),
44382
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(20, 9),
44385
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s5").
WithLocation
(23, 9),
44388
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(25, 14),
44391
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s6").
WithLocation
(27, 9),
44394
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T, out T)", "T", "T?").
WithLocation
(29, 9),
44397
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s7").
WithLocation
(30, 9),
44400
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T, out T?)", "T", "T?").
WithLocation
(32, 9),
44403
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s8").
WithLocation
(33, 9),
44406
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s9").
WithLocation
(38, 9),
44409
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T, out T)", "T", "T?").
WithLocation
(40, 9),
44412
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s10").
WithLocation
(41, 9),
44415
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T, out T?)", "T", "T?").
WithLocation
(43, 9),
44418
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s11").
WithLocation
(44, 9),
44421
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s12").
WithLocation
(48, 9),
44424
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s13").
WithLocation
(51, 9),
44427
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s14").
WithLocation
(54, 9),
44430
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s17").
WithLocation
(67, 13),
44433
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s18").
WithLocation
(70, 13),
44436
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s19").
WithLocation
(74, 13),
44439
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s20").
WithLocation
(77, 13)
44530
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(12, 9),
44533
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(17, 9),
44536
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(20, 9),
44539
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(23, 9),
44542
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(25, 14),
44545
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t2 : default").WithArguments("t", "void Program.F1<T>(T t, out T t2)").
WithLocation
(26, 15),
44548
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s5").
WithLocation
(27, 9),
44551
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t2 : default").WithArguments("t", "void Program.F2<T>(T t, out T t2)").
WithLocation
(29, 15),
44554
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s6").
WithLocation
(30, 9),
44557
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t2 : default").WithArguments("t", "void Program.F3<T>(T t, out T? t2)").
WithLocation
(32, 15),
44560
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s7").
WithLocation
(33, 9),
44563
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t3 : default").WithArguments("t", "void Program.F1<T>(T t, out T t2)").
WithLocation
(37, 15),
44566
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s8").
WithLocation
(38, 9),
44569
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t3 : default").WithArguments("t", "void Program.F2<T>(T t, out T t2)").
WithLocation
(40, 15),
44572
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s9").
WithLocation
(41, 9),
44575
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? t3 : default").WithArguments("t", "void Program.F3<T>(T t, out T? t2)").
WithLocation
(43, 15),
44578
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s10").
WithLocation
(44, 9),
44581
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s11").
WithLocation
(48, 9),
44584
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s12").
WithLocation
(51, 9),
44587
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s13").
WithLocation
(54, 9),
44590
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s16").
WithLocation
(67, 13),
44593
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s17").
WithLocation
(70, 13),
44596
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s18").
WithLocation
(74, 13),
44599
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s19").
WithLocation
(77, 13)
44626
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(9, 9),
44629
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(12, 9)
44656
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "i2").
WithLocation
(12, 13)
44699
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 20),
44702
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F1").WithArguments("A.F1<T>(T, out T)", "T", "object?").
WithLocation
(7, 9),
44705
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o1").
WithLocation
(8, 9),
44708
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("A.F2<T>(T, out T)", "T", "object?").
WithLocation
(13, 9),
44711
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o3").
WithLocation
(14, 9),
44714
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o4").
WithLocation
(17, 9)
44750
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 20),
44753
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o3").
WithLocation
(9, 9),
44756
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o4").
WithLocation
(12, 9)
44807
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o1").
WithLocation
(13, 9),
44810
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o2").
WithLocation
(16, 9),
44813
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o3").
WithLocation
(19, 9),
44816
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "o5").
WithLocation
(25, 13),
44819
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o6").
WithLocation
(28, 9),
44822
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o7").
WithLocation
(31, 9),
44825
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "o9").
WithLocation
(37, 13)
44939
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(13, 9),
44942
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(19, 9),
44945
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s4").
WithLocation
(22, 20),
44948
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(23, 9),
44951
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s5").
WithLocation
(31, 9),
44954
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(33, 14),
44957
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s6").
WithLocation
(36, 9),
44960
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T, ref T)", "T", "T?").
WithLocation
(39, 9),
44963
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s7").
WithLocation
(40, 9),
44966
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T, ref T?)", "T", "T?").
WithLocation
(43, 9),
44969
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s8").
WithLocation
(44, 9),
44972
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s9").
WithLocation
(50, 9),
44975
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T, ref T)", "T", "T?").
WithLocation
(53, 9),
44978
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s10").
WithLocation
(53, 20),
44981
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s10").
WithLocation
(54, 9),
44984
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T, ref T?)", "T", "T?").
WithLocation
(57, 9),
44987
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s11").
WithLocation
(58, 9),
44990
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s12").
WithLocation
(62, 20),
44993
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s12").
WithLocation
(63, 9),
44996
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s13").
WithLocation
(66, 20),
44999
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s13").
WithLocation
(67, 9),
45002
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s14").
WithLocation
(71, 9),
45005
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F1").WithArguments("Program.F1<T>(T, ref T)").
WithLocation
(86, 9),
45008
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Value").WithArguments("T", "Value").
WithLocation
(87, 17),
45011
Diagnostic(ErrorCode.ERR_BadArgType, "s18").WithArguments("2", "ref T", "ref T?").
WithLocation
(90, 20),
45014
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Value").WithArguments("T", "Value").
WithLocation
(91, 17),
45017
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F1").WithArguments("Program.F1<T>(T, ref T)").
WithLocation
(95, 9),
45020
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Value").WithArguments("T", "Value").
WithLocation
(96, 17),
45023
Diagnostic(ErrorCode.ERR_BadArgType, "s20").WithArguments("2", "ref T", "ref T?").
WithLocation
(99, 20),
45026
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Value").WithArguments("T", "Value").
WithLocation
(100, 17)
45058
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t1").
WithLocation
(9, 16),
45061
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(10, 9),
45064
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(13, 16),
45067
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(14, 9),
45070
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t3").
WithLocation
(18, 9)
45181
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(4, 46),
45184
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(8, 65),
45187
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(18, 14),
45190
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T)", "T", "T?").
WithLocation
(20, 9),
45193
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T)", "T", "T?").
WithLocation
(21, 9),
45196
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T)", "T", "T?").
WithLocation
(26, 9),
45199
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T)", "T", "T?").
WithLocation
(27, 9)
45257
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(4, 46),
45260
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(8, 65),
45263
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(18, 14),
45266
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "T Program.F1<T>(T t)").
WithLocation
(19, 22),
45269
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "T Program.F2<T>(T t)").
WithLocation
(20, 22),
45272
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "T? Program.F3<T>(T t)").
WithLocation
(21, 22),
45275
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "T Program.F1<T>(T t)").
WithLocation
(25, 22),
45278
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "T Program.F2<T>(T t)").
WithLocation
(26, 22),
45281
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "T? Program.F3<T>(T t)").
WithLocation
(27, 22));
45353
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 20),
45356
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F1").WithArguments("A.F1<T>(T)", "T", "object?").
WithLocation
(7, 9),
45359
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(7, 9),
45362
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("A.F2<T>(T)", "T", "object?").
WithLocation
(9, 9)
45380
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(5, 53)
45401
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 20),
45404
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(7, 9)
45421
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(4, 64)
45440
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 20),
45443
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(7, 9),
45446
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(8, 9)
45473
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(4, 64),
45476
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(10, 20),
45479
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(12, 9),
45482
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(13, 9)
45606
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "COpen").WithArguments("property", "P1").
WithLocation
(5, 5),
45609
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(7, 14),
45612
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "CClass").WithArguments("property", "P2").
WithLocation
(14, 5),
45615
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 14)
45727
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "throw null!").
WithLocation
(10, 34),
45730
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.P").
WithLocation
(16, 9),
45733
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.P2").
WithLocation
(18, 9)
45765
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "get").
WithLocation
(10, 33),
45768
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.P").
WithLocation
(16, 9),
45771
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.P2").
WithLocation
(18, 9)
45906
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(4, 50)
46001
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "f1").
WithLocation
(9, 9)
46115
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("t2").
WithLocation
(4, 57),
46118
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("t2").
WithLocation
(8, 76),
46121
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(25, 14),
46124
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T, out T)", "T", "T?").
WithLocation
(29, 9),
46127
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T, out T?)", "T", "T?").
WithLocation
(32, 9),
46130
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F2").WithArguments("Program.F2<T>(T, out T)", "T", "T?").
WithLocation
(40, 9),
46133
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F3").WithArguments("Program.F3<T>(T, out T?)", "T", "T?").
WithLocation
(43, 9));
46165
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 49),
46168
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("t").
WithLocation
(4, 55),
46171
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("t").
WithLocation
(5, 56),
46174
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 21),
46177
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").
WithLocation
(9, 16),
46180
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").
WithLocation
(13, 16)
46210
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F1").
WithLocation
(12, 23),
46213
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F3").
WithLocation
(14, 24),
46216
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F5").
WithLocation
(16, 24)
46250
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F1").
WithLocation
(14, 43),
46253
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F2").
WithLocation
(15, 43),
46256
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F3").
WithLocation
(16, 44),
46259
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F5").
WithLocation
(19, 44),
46262
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F6").
WithLocation
(20, 43)
46302
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F1").
WithLocation
(4, 43),
46305
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F2").
WithLocation
(5, 43),
46308
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F3").
WithLocation
(6, 44),
46311
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F5").
WithLocation
(9, 44),
46314
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F6").
WithLocation
(10, 43)
46352
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F1").
WithLocation
(18, 49),
46355
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F2").
WithLocation
(19, 48),
46358
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F3").
WithLocation
(20, 49),
46361
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F5").
WithLocation
(23, 46),
46364
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F6").
WithLocation
(24, 50)
46434
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("p").
WithLocation
(17, 26),
46437
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("p").
WithLocation
(19, 26),
46440
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("p").
WithLocation
(21, 26)
46476
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("p").
WithLocation
(18, 26),
46479
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("p").
WithLocation
(22, 26)
46509
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t2").
WithLocation
(12, 26),
46512
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t2").
WithLocation
(14, 26),
46515
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t2").
WithLocation
(16, 26)
46547
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t2").
WithLocation
(14, 26),
46550
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t2").
WithLocation
(16, 26),
46553
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t2").
WithLocation
(18, 26)
46585
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "t").
WithLocation
(13, 55)
46610
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(9, 20)
46635
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(11, 16)
46683
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(11, 9),
46686
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(17, 9),
46689
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x3").
WithLocation
(25, 9),
46692
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x4").
WithLocation
(33, 13)
46726
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 14),
46729
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "t1.E1").WithArguments("Program.E1<T>(T)", "T", "T?").
WithLocation
(13, 13),
46732
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t1").WithArguments("t", "void Program.E2<T?>(T? t)").
WithLocation
(14, 13),
46735
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "t2.E1").WithArguments("Program.E1<T>(T)", "T", "T").
WithLocation
(19, 13));
46825
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y1").
WithLocation
(16, 18),
46828
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y2").
WithLocation
(24, 18),
46831
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y3").
WithLocation
(40, 18),
46834
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y4").
WithLocation
(48, 18),
46837
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y5").
WithLocation
(64, 18)
46928
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y1").
WithLocation
(16, 18),
46931
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y2").
WithLocation
(24, 18),
46934
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y3").
WithLocation
(40, 18),
46937
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y4").
WithLocation
(48, 18),
46940
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y5").
WithLocation
(60, 18)
47003
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y1").
WithLocation
(12, 18),
47006
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y1").
WithLocation
(16, 18),
47009
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y2").
WithLocation
(28, 18),
47012
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x3").
WithLocation
(34, 16),
47015
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x5").
WithLocation
(44, 30)
47073
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y2 ?? x2").
WithLocation
(15, 18),
47076
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3 ?? y3").
WithLocation
(20, 18),
47079
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x4").
WithLocation
(26, 24));
47126
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1?.M1()").
WithLocation
(10, 18),
47129
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2?.M1()").
WithLocation
(16, 18),
47132
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3?.M2()").
WithLocation
(22, 18)
47196
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y2 != null ? y2 : x2").
WithLocation
(15, 18),
47199
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3 != null ? x3 : y3").
WithLocation
(20, 18),
47202
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x4").
WithLocation
(26, 36),
47205
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y7 != null ? y7 : x7.M2()").
WithLocation
(44, 21)
47269
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y2 == null ? x2 : y2").
WithLocation
(15, 18),
47272
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3 == null ? y3 : x3").
WithLocation
(20, 18),
47275
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x4").
WithLocation
(26, 31),
47278
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y7 == null ? x7.M2() : y7").
WithLocation
(44, 21)
47309
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(11, 16)
47336
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(13, 9));
47362
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(13, 9)
47385
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(9, 9)
47421
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(22, 9)
47457
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(22, 9)
47559
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(17, 13),
47562
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1._cField").
WithLocation
(17, 13),
47566
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(30, 13),
47569
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2._cField").
WithLocation
(30, 13),
47573
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c3._cField._cField").
WithLocation
(43, 13),
47577
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c3").
WithLocation
(47, 13),
47581
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c4").
WithLocation
(59, 13),
47584
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c4._nonNullCField._cField").
WithLocation
(59, 13),
47587
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c4._nonNullCField._cField._nonNullCField._cField").
WithLocation
(59, 13),
47591
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c5").
WithLocation
(67, 13),
47594
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c5._cField").
WithLocation
(67, 13),
47598
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c6._cField.GetC()").
WithLocation
(79, 13)
47628
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1[0]").
WithLocation
(9, 13),
47631
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(13, 13)
47657
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(12, 13)
47681
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(10, 13),
47684
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2.Prop").
WithLocation
(10, 13)
47707
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 13)
47739
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(8, 15),
47742
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(11, 15));
47773
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(8, 15),
47776
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(11, 15));
47860
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(17, 15),
47863
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(22, 15),
47866
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(27, 15),
47869
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(28, 15),
47872
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(33, 15),
47875
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(39, 15),
47878
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(44, 15),
47881
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(49, 15),
47884
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(50, 15),
47887
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(55, 15),
47890
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(60, 15),
47893
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(61, 15),
47896
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(65, 15)
47981
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15),
47984
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(17, 15),
47987
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(21, 15),
47990
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(27, 15),
47993
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(32, 15),
47996
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(38, 15),
47999
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(39, 15),
48002
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(43, 15),
48005
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(49, 15),
48008
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(50, 15),
48011
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(55, 15),
48014
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(60, 15),
48017
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(65, 15)
48070
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15),
48073
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15),
48076
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(23, 15),
48079
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(31, 15),
48082
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(37, 15)
48131
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
48134
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(12, 15),
48137
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(18, 15),
48140
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(19, 15),
48143
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(19, 15),
48146
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(25, 15),
48149
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(25, 15),
48152
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(26, 15),
48155
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(32, 15),
48158
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(32, 15),
48161
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(33, 15)
48210
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
48213
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(12, 15),
48216
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(18, 15),
48219
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(19, 15),
48222
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(19, 15),
48225
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(25, 15),
48228
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(25, 15),
48231
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(26, 15),
48234
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(32, 15),
48237
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(32, 15),
48240
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(33, 15)
48289
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj1").
WithLocation
(11, 15),
48292
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj2").
WithLocation
(19, 15),
48295
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj2").WithArguments("obj2").
WithLocation
(19, 15),
48298
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj3").
WithLocation
(25, 15),
48301
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj3").WithArguments("obj3").
WithLocation
(25, 15),
48304
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj4").
WithLocation
(33, 15)
48353
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj1").
WithLocation
(11, 15),
48356
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj2").
WithLocation
(19, 15),
48359
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj2").WithArguments("obj2").
WithLocation
(19, 15),
48362
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj3").
WithLocation
(25, 15),
48365
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj3").WithArguments("obj3").
WithLocation
(25, 15),
48368
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj4").
WithLocation
(33, 15)
48425
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(11, 15),
48428
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(11, 15),
48431
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
48434
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(18, 15),
48437
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(19, 15),
48440
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(19, 15),
48443
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj1").
WithLocation
(25, 15),
48446
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj1").WithArguments("obj1").
WithLocation
(25, 15),
48449
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj2").
WithLocation
(30, 15),
48452
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj2").WithArguments("obj2").
WithLocation
(30, 15),
48455
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj1").
WithLocation
(36, 15),
48458
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj1").WithArguments("obj1").
WithLocation
(36, 15),
48461
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj2").
WithLocation
(41, 15),
48464
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj2").WithArguments("obj2").
WithLocation
(41, 15)
48521
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(11, 15),
48524
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(11, 15),
48527
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
48530
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(18, 15),
48533
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(19, 15),
48536
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(19, 15),
48539
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj1").
WithLocation
(25, 15),
48542
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj1").WithArguments("obj1").
WithLocation
(25, 15),
48545
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj2").
WithLocation
(30, 15),
48548
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj2").WithArguments("obj2").
WithLocation
(30, 15),
48551
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj1").
WithLocation
(36, 15),
48554
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj1").WithArguments("obj1").
WithLocation
(36, 15),
48557
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj2").
WithLocation
(41, 15),
48560
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj2").WithArguments("obj2").
WithLocation
(41, 15)
48608
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15),
48611
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15),
48614
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(24, 15),
48617
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(30, 15)
48664
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15),
48667
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15),
48670
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(24, 15),
48673
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(30, 15)
48721
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15),
48724
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15),
48727
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(24, 15),
48730
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(30, 15)
48778
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15),
48781
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15),
48784
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(24, 30),
48787
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(30, 30)
48832
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 15),
48835
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15),
48838
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15),
48841
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(17, 15),
48844
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(23, 30),
48847
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(24, 30),
48850
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(30, 30),
48853
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(31, 30)
48898
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15),
48901
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(17, 15),
48904
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(23, 15),
48907
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(24, 15),
48910
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(30, 15)
48941
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(10, 15),
48944
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(16, 15)
48980
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15),
48983
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(21, 15)
49007
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(10, 30)
49057
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15),
49060
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(21, 15),
49063
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(29, 15),
49066
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(35, 15)
49118
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15),
49121
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(24, 15),
49124
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(30, 15),
49127
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(38, 15)
49177
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 15),
49180
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15),
49183
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(21, 15),
49186
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(22, 15),
49189
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(28, 15),
49192
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(29, 15),
49195
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(35, 15),
49198
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(36, 15)
49236
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 15),
49239
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(22, 15)
49293
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(18, 15),
49296
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(26, 15),
49299
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(32, 15),
49302
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(40, 15)
49340
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 15),
49343
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15),
49346
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15),
49349
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(23, 15)
49372
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 15)
49414
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(11, 15),
49417
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(12, 15),
49420
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(21, 15),
49423
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(28, 15)
49446
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 15)
49488
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 15),
49491
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(8, 15)
49541
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15),
49544
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(21, 15),
49547
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(29, 15),
49550
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(35, 15)
49595
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 33),
49598
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 15),
49601
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 13),
49604
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(16, 15),
49607
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(23, 15),
49610
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(24, 15),
49613
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(30, 15),
49616
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(31, 15)
49642
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(12, 15),
49645
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 15)
49676
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15),
49679
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(17, 15)
49752
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 15),
49755
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15),
49758
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(24, 15),
49761
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(31, 15),
49764
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(38, 15),
49767
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(45, 15),
49770
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(51, 15),
49773
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(58, 15)
49828
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(12, 15),
49831
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(19, 15),
49834
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(26, 15),
49837
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(32, 15),
49840
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(39, 15),
49843
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(40, 15)
49911
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(11, 15),
49914
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(18, 15),
49917
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(26, 15),
49920
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(32, 15),
49923
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(39, 15),
49926
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(47, 15),
49929
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(54, 15)
49990
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15),
49993
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(17, 15),
49996
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(24, 15),
49999
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(31, 15),
50002
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(37, 15),
50005
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(45, 15)
50029
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15)
50060
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15),
50063
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 15)
50095
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15),
50098
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(18, 15)
50123
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 15)
50168
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(11, 15),
50171
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(18, 15),
50174
Diagnostic(ErrorCode.ERR_NoImplicitConv, "42").WithArguments("int", "string").
WithLocation
(23, 33),
50177
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(25, 15),
50180
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(32, 15)
50243
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
50246
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(18, 15),
50249
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(19, 15),
50252
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(25, 15),
50255
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(32, 15),
50258
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(33, 15),
50261
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(39, 15),
50264
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(40, 15),
50267
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(47, 15)
50330
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "bool").
WithLocation
(10, 40),
50333
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(11, 15),
50336
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
50339
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(19, 15),
50342
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(26, 15),
50345
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(33, 15),
50348
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(40, 15),
50351
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(47, 15)
50428
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "bool?").
WithLocation
(10, 39),
50431
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(11, 15),
50434
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
50437
Diagnostic(ErrorCode.WRN_IsPatternAlways, "c?.M0(out obj) is true or var x").WithArguments("bool?").
WithLocation
(17, 13),
50440
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "x").
WithLocation
(17, 43),
50443
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(18, 15),
50446
Diagnostic(ErrorCode.WRN_IsPatternAlways, "c?.M0(out obj) is _ or true").WithArguments("bool?").
WithLocation
(24, 13),
50449
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(25, 15),
50452
Diagnostic(ErrorCode.ERR_DesignatorBeneathPatternCombinator, "b").
WithLocation
(31, 44),
50455
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(32, 15),
50458
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(33, 15),
50461
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(39, 15),
50464
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(40, 15),
50467
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(46, 15),
50470
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(47, 15),
50473
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(53, 15),
50476
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(54, 15),
50479
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(60, 15),
50482
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(61, 15)
50545
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(11, 15),
50548
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
50551
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(19, 15),
50554
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(25, 15),
50557
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(26, 15),
50560
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(32, 15),
50563
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(40, 15),
50566
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(46, 15),
50569
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(47, 15)
50590
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(8, 15));
50631
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.C.Prop").
WithLocation
(16, 13));
50668
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(10, 15),
50671
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 30),
50674
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(10, 45),
50677
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(17, 15),
50680
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(17, 30),
50683
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(17, 45),
50686
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(17, 60),
50689
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(24, 15),
50692
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(24, 30),
50695
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(24, 45)
50737
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 15),
50740
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 15),
50743
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15),
50746
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(21, 15),
50749
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(22, 15),
50752
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(28, 15));
50779
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 15),
50782
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 15)
50813
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(10, 15),
50816
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(16, 15)
50861
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(10, 15),
50864
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(16, 15),
50867
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(22, 35),
50870
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(24, 15),
50873
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(29, 35),
50876
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(30, 15)
50922
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
50925
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(12, 15),
50928
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(18, 15),
50931
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(18, 15),
50934
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(19, 15),
50937
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj1").
WithLocation
(25, 15),
50940
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj1").WithArguments("obj1").
WithLocation
(25, 15),
50943
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj2").
WithLocation
(30, 15),
50946
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj2").WithArguments("obj2").
WithLocation
(30, 15)
50981
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
50984
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(18, 15),
50987
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(19, 15)
51022
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(11, 15),
51025
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
51028
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(18, 15)
51074
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(11, 15),
51077
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(12, 15),
51080
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(12, 15),
51083
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(18, 15),
51086
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj").WithArguments("obj").
WithLocation
(18, 15),
51089
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj1").
WithLocation
(25, 15),
51092
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj1").WithArguments("obj1").
WithLocation
(25, 15),
51095
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj2").
WithLocation
(30, 15),
51098
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj2").WithArguments("obj2").
WithLocation
(30, 15)
51139
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(10, 15),
51142
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(18, 15),
51145
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(25, 15),
51148
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(26, 15)
51171
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "flag").
WithLocation
(8, 15)
51202
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 15),
51205
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15)
51236
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 15),
51239
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15)
51271
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 15),
51274
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15)
51306
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 15),
51309
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15)
51341
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 15),
51344
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 15),
51347
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15)
51378
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 15),
51381
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15)
51405
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 15),
51408
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 15)
51446
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 15),
51449
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15),
51452
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(22, 15)
51484
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 15),
51487
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15)
51519
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 15),
51522
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 15));
51560
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 15),
51563
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 15),
51566
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(21, 15),
51569
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(22, 15)
51611
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)c1?.M(x = 0)").
WithLocation
(6, 13));
51764
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 9)
51799
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "c1?.M2(x = 0)").
WithLocation
(15, 19),
51802
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 9)
51831
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 9));
51859
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 9));
51890
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 9));
51921
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 9));
51949
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "c1?.M1(x = 0)").WithArguments("c", "C." + conversionKind + " operator B(C c)").
WithLocation
(9, 19),
51952
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 9)
52033
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(12, 9)
52066
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "c1?.M1(x = 0)").WithArguments("c", "B." + conversionKind + " operator B(C? c)").
WithLocation
(13, 19),
52069
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 9)
52121
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(17, 30));
52141
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 33)
52177
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(13, 15),
52180
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 30),
52183
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t").WithArguments("t", "string C<T>.M2(T t)").
WithLocation
(20, 18),
52186
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(20, 23)
52213
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(12, 13)
52241
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 13)
52268
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(12, 13)
52295
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(12, 13)
52322
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(12, 13)
52360
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "null is string").WithArguments("string").
WithLocation
(6, 13)
52384
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(6, 9),
52387
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w").
WithLocation
(8, 9),
52390
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "v").
WithLocation
(10, 9));
52411
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? x : y").
WithLocation
(5, 10),
52414
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? y : x").
WithLocation
(6, 10));
52435
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "false ? x : y").
WithLocation
(5, 10),
52438
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "true ? y : x").
WithLocation
(8, 10));
52462
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? x : y").
WithLocation
(5, 10),
52465
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? y : x").
WithLocation
(6, 10),
52468
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? x : y").
WithLocation
(10, 10),
52471
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? y : x").
WithLocation
(11, 10));
52502
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "z").WithArguments("B1", "A<object>").
WithLocation
(10, 22),
52505
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "z").WithArguments("B1", "A<object>").
WithLocation
(12, 18),
52508
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w").WithArguments("B2", "A<object?>").
WithLocation
(15, 22),
52511
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w").WithArguments("B2", "A<object?>").
WithLocation
(17, 18));
52538
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? null: null").WithArguments("<null>", "<null>").
WithLocation
(9, 10),
52541
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? default: default").WithArguments("default", "default").
WithLocation
(14, 10),
52544
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? null : x").
WithLocation
(5, 10),
52547
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? null : y").
WithLocation
(6, 10),
52550
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? x: null").
WithLocation
(7, 10),
52553
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? y: null").
WithLocation
(8, 10),
52556
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? default : x").
WithLocation
(10, 10),
52559
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? default : y").
WithLocation
(11, 10),
52562
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? x: default").
WithLocation
(12, 10),
52565
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? y: default").
WithLocation
(13, 10)
52587
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(3, 27),
52590
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(3, 38)
52620
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnknownA").WithArguments("UnknownA").
WithLocation
(8, 28),
52623
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnknownB").WithArguments("UnknownB").
WithLocation
(8, 41),
52626
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnknownA").WithArguments("UnknownA").
WithLocation
(13, 28),
52629
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnknownB").WithArguments("UnknownB").
WithLocation
(13, 41),
52632
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnknownA").WithArguments("UnknownA").
WithLocation
(3, 28),
52635
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnknownB").WithArguments("UnknownB").
WithLocation
(3, 40),
52638
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? x : y").WithArguments("UnknownA?", "UnknownB?").
WithLocation
(15, 10),
52641
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? y : x").WithArguments("UnknownB?", "UnknownA?").
WithLocation
(16, 10)
52673
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? x : y").WithArguments("A", "B").
WithLocation
(7, 10),
52676
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? y : x").WithArguments("B", "A").
WithLocation
(8, 10),
52679
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? x : y").WithArguments("A", "C").
WithLocation
(12, 10),
52682
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? y : x").WithArguments("C", "A").
WithLocation
(13, 10),
52685
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? x : y").WithArguments("B", "C").
WithLocation
(17, 10),
52688
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? y : x").WithArguments("C", "B").
WithLocation
(18, 10)
52711
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? x : throw new Exception()").
WithLocation
(6, 10),
52714
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? throw new Exception() : x").
WithLocation
(8, 10));
52749
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? throw new Exception() : throw new Exception()").WithArguments("<throw expression>", "<throw expression>").
WithLocation
(6, 10));
52830
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(15, 13),
52833
Diagnostic(ErrorCode.ERR_UseDefViolation, "y1").WithArguments("y1").
WithLocation
(16, 13),
52836
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z1").
WithLocation
(17, 13),
52839
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w1").
WithLocation
(18, 13),
52842
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z1").
WithLocation
(24, 13),
52845
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w1").
WithLocation
(25, 13),
52848
Diagnostic(ErrorCode.ERR_UseDefViolation, "y2").WithArguments("y2").
WithLocation
(37, 13),
52851
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(43, 13),
52854
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w2").
WithLocation
(39, 13),
52857
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z2").
WithLocation
(45, 13),
52860
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w2").
WithLocation
(46, 13),
52863
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(57, 13),
52866
Diagnostic(ErrorCode.ERR_UseDefViolation, "y3").WithArguments("y3").
WithLocation
(65, 13),
52869
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z3").
WithLocation
(59, 13),
52872
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z3").
WithLocation
(66, 13),
52875
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w3").
WithLocation
(67, 13));
52922
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? ref x1 : ref x1").
WithLocation
(8, 10),
52925
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x1 : ref y1").WithArguments("string?", "string").
WithLocation
(9, 10),
52928
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? ref x1 : ref y1").
WithLocation
(9, 10),
52931
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y1 : ref x1").WithArguments("string", "string?").
WithLocation
(10, 10),
52934
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? ref y1 : ref x1").
WithLocation
(10, 10),
52937
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b ? ref x2 : ref x2)/*T:I<string?>!*/.P").
WithLocation
(15, 9),
52940
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y2 : ref x2").WithArguments("I<string>", "I<string?>").
WithLocation
(16, 10),
52943
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x2 : ref y2").WithArguments("I<string?>", "I<string>").
WithLocation
(17, 10),
52946
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y3 : ref x3").WithArguments("IIn<string>", "IIn<string?>").
WithLocation
(23, 10),
52949
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x3 : ref y3").WithArguments("IIn<string?>", "IIn<string>").
WithLocation
(24, 10),
52952
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b ? ref x4 : ref x4)/*T:IOut<string?>!*/.P").
WithLocation
(29, 9),
52955
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y4 : ref x4").WithArguments("IOut<string>", "IOut<string?>").
WithLocation
(30, 10),
52958
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x4 : ref y4").WithArguments("IOut<string?>", "IOut<string>").
WithLocation
(31, 10));
53018
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref D2(s) : ref D2(s!)").WithArguments("C.MyDelegate<string?>", "C.MyDelegate<string>").
WithLocation
(36, 14),
53021
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref D2(s!) : ref D2(s)").WithArguments("C.MyDelegate<string>", "C.MyDelegate<string?>").
WithLocation
(37, 14),
53024
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "true ? ref D2(s) : ref D2(s!)").WithArguments("C.MyDelegate<string?>", "C.MyDelegate<string>").
WithLocation
(38, 14),
53027
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "false ? ref D2(s!) : ref D2(s)").WithArguments("C.MyDelegate<string>", "C.MyDelegate<string?>").
WithLocation
(41, 14)
53097
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref Create(s, s2) : ref Create(s2, s)").WithArguments("C<string, string?>", "C<string?, string>").
WithLocation
(6, 10),
53100
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 80),
53103
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref Create(s2, s) : ref Create(s, s2)").WithArguments("C<string?, string>", "C<string, string?>").
WithLocation
(7, 10),
53106
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 80)
53138
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 14),
53141
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? ref x1 : ref x1").
WithLocation
(7, 10),
53144
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x1 : ref y1").WithArguments("string?", "string").
WithLocation
(8, 10),
53147
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? ref x1 : ref y1").
WithLocation
(8, 10),
53150
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y1 : ref x1").WithArguments("string", "string?").
WithLocation
(9, 10),
53153
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? ref y1 : ref x1").
WithLocation
(9, 10),
53156
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? ref y1 : ref y1").
WithLocation
(10, 10),
53159
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x1 : ref y1").WithArguments("string?", "string").
WithLocation
(15, 10),
53162
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y1 : ref x1").WithArguments("string", "string?").
WithLocation
(16, 10)
53191
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b && false) ? x1 : x1").
WithLocation
(6, 10),
53194
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b && false) ? y1 : x1").
WithLocation
(8, 10),
53197
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b || true) ? x1 : x1").
WithLocation
(11, 10),
53200
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b || true) ? x1 : y1").
WithLocation
(12, 10)
53234
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(10, 9),
53237
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 9));
53260
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? M1(1) : M2(false ? 2 : throw new System.Exception())").
WithLocation
(7, 10)
53304
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref M1(false ? 1 : throw new System.Exception()) : ref M2(2)").WithArguments("string?", "string").
WithLocation
(6, 10),
53307
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 92),
53310
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref M1(1) : ref M2(false ? 2 : throw new System.Exception())").WithArguments("string?", "string").
WithLocation
(7, 10),
53313
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 92)
53362
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(b && false) ? ref x1 : ref y1").WithArguments("string?", "string").
WithLocation
(7, 10),
53365
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 57),
53368
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(b && false) ? ref y1 : ref x1").WithArguments("string", "string?").
WithLocation
(8, 10),
53371
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 57),
53374
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 57),
53377
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(b || true) ? ref x1 : ref y1").WithArguments("string?", "string").
WithLocation
(12, 10),
53380
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 56),
53383
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(b || true) ? ref y1 : ref x1").WithArguments("string", "string?").
WithLocation
(13, 10),
53386
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 56),
53389
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 56)
53419
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(6, 27),
53422
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(7, 27),
53425
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(8, 18),
53428
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(9, 18),
53431
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(9, 30),
53434
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(12, 27),
53437
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(13, 27),
53440
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(14, 18),
53443
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(15, 18),
53446
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(15, 30)
53475
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(6, 27),
53478
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(7, 27),
53481
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(8, 18),
53484
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(9, 18),
53487
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(9, 30),
53490
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(11, 27),
53493
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(12, 27),
53496
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(13, 18),
53499
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(14, 18),
53502
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(14, 30)
53530
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x").WithArguments("x").
WithLocation
(5, 29),
53533
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 9));
53565
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y1").
WithLocation
(9, 29),
53568
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(11, 13),
53571
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y2").
WithLocation
(16, 36),
53574
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(18, 13));
53595
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x ? y && z : w").
WithLocation
(6, 13));
53615
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "action").
WithLocation
(6, 25)
53637
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 36),
53640
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").
WithLocation
(8, 57)
53662
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 45),
53665
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").
WithLocation
(8, 66)
53723
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 30)
53748
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(9, 26),
53751
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s1?.ToString()").
WithLocation
(9, 48)
53776
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "@bool ? a : b").WithArguments("t2", "I C.M1<I>(I t1, I t2)").
WithLocation
(9, 15)
53795
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(3, 1)
53862
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C1()").WithArguments("C1", "C<string?>").
WithLocation
(7, 35),
53865
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C2()").WithArguments("C2", "C<string?>").
WithLocation
(7, 46),
53868
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C3()").WithArguments("C3", "C<string?>").
WithLocation
(8, 22),
53871
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C4()").WithArguments("C4", "C<string?>").
WithLocation
(8, 33)
53908
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? null : null").
WithLocation
(9, 24)
53971
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : default").
WithLocation
(9, 24)
54038
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? x : y").
WithLocation
(11, 24)
54136
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { _ => null }").
WithLocation
(9, 24)
54170
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { true => x, _ => y }").
WithLocation
(11, 24)
54303
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 28)
54370
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(10, 31),
54373
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(11, 31),
54376
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "map").WithArguments("C<string, string>", "C<string, string?>", "dictionary", "string? Extensions.GetOrAdd<string, string?>(C<string, string?> dictionary, string key, Func<string, string?> function)").
WithLocation
(13, 9),
54379
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "map").WithArguments("C<string, string>", "C<string, string?>", "dictionary", "string? Extensions.GetOrAdd<string, string?>(C<string, string?> dictionary, string key, Func<string, string?> function)").
WithLocation
(14, 9),
54382
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "map").WithArguments("C<string, string>", "C<string, string?>", "dictionary", "string? Extensions.GetOrAdd<string, string?>(C<string, string?> dictionary, string key, Func<string, string?> function)").
WithLocation
(15, 9)
54508
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(8, 18),
54511
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(10, 22)
54585
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(8, 22),
54588
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(10, 18)
54646
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y1").WithArguments("IIn<object?, string?>", "IIn<object, string>").
WithLocation
(8, 23),
54649
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y1").WithArguments("IIn<object?, string?>", "IIn<object, string>").
WithLocation
(10, 18),
54652
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y2").WithArguments("IOut<object?, string?>", "IOut<object, string?>").
WithLocation
(22, 23),
54655
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y2").WithArguments("IOut<object?, string?>", "IOut<object, string?>").
WithLocation
(24, 18)
54700
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x2, y2)").WithArguments("(I<object> x2, I<object?> y2)", "(I<object>, I<object>)").
WithLocation
(14, 29),
54703
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(y2, y2)").WithArguments("(I<object?>, I<object?>)", "(I<object>, I<object?>)").
WithLocation
(17, 29)
54741
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x : ref y").WithArguments("object?", "object").
WithLocation
(6, 26),
54744
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y : ref x").WithArguments("object", "object?").
WithLocation
(8, 26)
54814
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x1 : ref y1").WithArguments("I<object>", "I<object?>").
WithLocation
(7, 26),
54817
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x1 : ref z1").WithArguments("I<object>", "I<object>?").
WithLocation
(8, 26),
54820
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y1 : ref x1").WithArguments("I<object?>", "I<object>").
WithLocation
(9, 26),
54823
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y1 : ref z1").WithArguments("I<object?>", "I<object>?").
WithLocation
(11, 26),
54826
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref z1 : ref x1").WithArguments("I<object>?", "I<object>").
WithLocation
(12, 26),
54829
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref z1 : ref y1").WithArguments("I<object>?", "I<object?>").
WithLocation
(13, 26),
54832
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x2 : ref y2").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(20, 26),
54835
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x2 : ref z2").WithArguments("IIn<object>", "IIn<object>?").
WithLocation
(21, 26),
54838
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y2 : ref x2").WithArguments("IIn<object?>", "IIn<object>").
WithLocation
(22, 26),
54841
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y2 : ref z2").WithArguments("IIn<object?>", "IIn<object>?").
WithLocation
(24, 26),
54844
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref z2 : ref x2").WithArguments("IIn<object>?", "IIn<object>").
WithLocation
(25, 26),
54847
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref z2 : ref y2").WithArguments("IIn<object>?", "IIn<object?>").
WithLocation
(26, 26),
54850
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x3 : ref y3").WithArguments("IOut<object>", "IOut<object?>").
WithLocation
(33, 26),
54853
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x3 : ref z3").WithArguments("IOut<object>", "IOut<object>?").
WithLocation
(34, 26),
54856
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y3 : ref x3").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(35, 26),
54859
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y3 : ref z3").WithArguments("IOut<object?>", "IOut<object>?").
WithLocation
(37, 26),
54862
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref z3 : ref x3").WithArguments("IOut<object>?", "IOut<object>").
WithLocation
(38, 26),
54865
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref z3 : ref y3").WithArguments("IOut<object>?", "IOut<object?>").
WithLocation
(39, 26)
54908
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c ? ref x : ref y").WithArguments("string", "string?").
WithLocation
(6, 10),
54911
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 31),
54914
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c ? ref y : ref x").WithArguments("string?", "string").
WithLocation
(10, 10),
54917
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 31),
54920
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 33),
54923
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(19, 33)
54974
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(9, 21),
54977
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(10, 25),
54980
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c ? x : y").WithArguments("I<object>", "I<object?>").
WithLocation
(13, 13),
54983
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(13, 21),
54986
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "false ? x : y").WithArguments("I<object>", "I<object?>").
WithLocation
(14, 13),
54989
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(14, 25),
54992
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "true ? x : y").WithArguments("I<object>", "I<object?>").
WithLocation
(15, 13),
54995
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c ? x : y").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(24, 13),
54998
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "false ? x : y").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(25, 13),
55001
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "true ? x : y").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(26, 13),
55004
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c ? x : y").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(31, 13),
55007
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "false ? x : y").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(32, 13),
55010
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "true ? x : y").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(33, 13));
55034
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(6, 9),
55037
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "v").
WithLocation
(11, 9));
55066
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x ?? y").
WithLocation
(8, 18),
55069
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y ?? x").
WithLocation
(14, 33)
55090
Diagnostic(ErrorCode.ERR_BadBinaryOps, "null ?? null").WithArguments("??", "<null>", "<null>").
WithLocation
(5, 10),
55093
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "null ?? y").
WithLocation
(7, 10));
55188
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x1.A ?? y1.B").WithArguments("??", "A", "B").
WithLocation
(5, 10),
55191
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x2.A ?? y2.B").WithArguments("??", "A", "B").
WithLocation
(9, 10),
55194
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x3.A ?? y3.B").WithArguments("??", "A", "B").
WithLocation
(13, 10),
55197
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x4.A ?? y4.B").WithArguments("??", "A", "B").
WithLocation
(17, 10),
55200
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x5.A ?? y5.B").WithArguments("??", "A", "B").
WithLocation
(21, 10),
55203
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x6.A ?? y6.B").WithArguments("??", "A", "B").
WithLocation
(25, 10),
55206
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x7.A ?? y7.B").WithArguments("??", "A", "B").
WithLocation
(29, 10),
55209
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x8.A ?? y8.B").WithArguments("??", "A", "B").
WithLocation
(33, 10),
55212
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x9.A ?? y9.B").WithArguments("??", "A", "B").
WithLocation
(37, 10)
55265
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(3, 33),
55268
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(21, 34),
55271
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x1 ?? y1").WithArguments("??", "C", "Unknown?").
WithLocation
(8, 18),
55274
Diagnostic(ErrorCode.ERR_BadBinaryOps, "y1 ?? x1").WithArguments("??", "Unknown?", "C").
WithLocation
(11, 18));
55303
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(a ?? c)[0]").
WithLocation
(8, 13),
55306
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b ?? c)[0]").
WithLocation
(9, 13),
55309
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b ?? c)[0]").
WithLocation
(15, 13));
55332
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("(I<object?>, I<object>)?", "(I<object>, I<object?>)?").
WithLocation
(6, 21),
55335
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("(I<object?>, I<object>)", "(I<object>, I<object?>)").
WithLocation
(10, 21));
55359
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c ?? new D()").
WithLocation
(2, 7),
55362
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d").
WithLocation
(4, 1)
55387
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c ?? new D()").
WithLocation
(2, 7),
55390
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d").
WithLocation
(4, 1)
55415
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c ?? new D()").
WithLocation
(2, 7),
55418
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d").
WithLocation
(4, 1)
55443
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c ?? new D()").
WithLocation
(2, 8),
55446
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(4, 1)
55471
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new D<string>()").WithArguments("D<string>", "D<string?>").
WithLocation
(2, 22)
55488
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(string s) =>").WithArguments("s", "lambda expression", "System.Action<string?>").
WithLocation
(3, 29)
55505
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a1 ?? (Action<string>)((string s) => {})").WithArguments("System.Action<string>", "System.Action<string?>").
WithLocation
(3, 22)
55522
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(3, 32)
55539
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a1 ?? (Func<string?>)(() => null)").WithArguments("System.Func<string?>", "System.Func<string>").
WithLocation
(3, 19)
55625
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y1").WithArguments("I<object?>", "I<object>").
WithLocation
(8, 30),
55628
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y1 ?? x1").
WithLocation
(9, 25),
55631
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("I<object>", "I<object?>").
WithLocation
(9, 31),
55634
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y2 ?? x2").
WithLocation
(14, 27),
55637
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y2 ?? x2").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(14, 27),
55640
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x3 ?? y3").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(18, 27),
55643
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y3 ?? x3").
WithLocation
(19, 28),
55646
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(IIn<object?>)x4").
WithLocation
(24, 15),
55649
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(IIn<object>)x5").
WithLocation
(30, 15),
55652
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(IOut<object>)x6").
WithLocation
(36, 15),
55655
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(IOut<object?>)x7").
WithLocation
(42, 15));
55716
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x1 ?? y1").WithArguments("IIn<object>", "IIn<object?>", "x", "void C.FIn(IIn<object?>? x)").
WithLocation
(22, 14),
55719
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1 ?? x1").WithArguments("IIn<object>", "IIn<object?>", "x", "void C.FIn(IIn<object?>? x)").
WithLocation
(23, 14),
55722
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "FOut((x2 ?? y2)/*T:IOut<object?>?*/)").
WithLocation
(27, 9),
55725
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "FOut((y2 ?? x2)/*T:IOut<object?>?*/)").
WithLocation
(28, 9),
55728
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "FIn(x3) ?? FIn(y3)").WithArguments("IIn<object>", "IIn<object?>", "x", "void C.FIn(IIn<object?>? x)").
WithLocation
(34, 14),
55731
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "FIn(y3) ?? FIn(x3)").WithArguments("IIn<object>", "IIn<object?>", "x", "void C.FIn(IIn<object?>? x)").
WithLocation
(35, 14),
55734
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "FIn(x3) ?? FIn(y3)").WithArguments("IIn<object>", "IIn<object?>", "x", "void C.FIn(IIn<object?>? x)").
WithLocation
(37, 14),
55737
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "FOut((FOut(x4) ?? FOut(y4))/*T:IOut<object?>?*/)").
WithLocation
(41, 9),
55740
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "FOut((FOut(x4) ?? FOut(y4))/*T:IOut<object?>?*/)").
WithLocation
(43, 9),
55743
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "FOut((FOut(y4) ?? FOut(x4))/*T:IOut<object?>?*/)").
WithLocation
(44, 9));
55765
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(x ?? y).Item1").
WithLocation
(5, 9),
55768
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(x ?? y).Item1").
WithLocation
(9, 9));
55818
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("A<object>", "B<object?>").
WithLocation
(14, 10),
55821
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(x1 ?? y1)/*T:B<object?>*/.F").
WithLocation
(14, 9),
55824
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x2").WithArguments("A<object?>", "B<object>").
WithLocation
(18, 10),
55827
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x3").WithArguments("B<object>", "B<object?>").
WithLocation
(22, 16),
55830
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(y3 ?? x3)/*T:B<object?>*/.F").
WithLocation
(22, 9),
55833
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x4").WithArguments("B<object?>", "B<object>").
WithLocation
(26, 16),
55836
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x5").WithArguments("A<object>", "B<object?>?").
WithLocation
(30, 10),
55839
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x5 ?? y5").
WithLocation
(30, 10),
55842
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(x5 ?? y5)/*T:B<object?>?*/.Value.F").
WithLocation
(30, 9),
55845
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x5").WithArguments("B<object>?", "B<object?>?").
WithLocation
(31, 16),
55848
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y5 ?? x5").
WithLocation
(31, 10),
55851
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(y5 ?? x5)/*T:B<object?>?*/.Value.F").
WithLocation
(31, 9),
55854
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x6").WithArguments("A<object?>", "B<object>?").
WithLocation
(35, 10),
55857
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x6 ?? y6").
WithLocation
(35, 10),
55860
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x6").WithArguments("B<object?>?", "B<object>?").
WithLocation
(36, 16),
55863
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y6 ?? x6").
WithLocation
(36, 10)
55915
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F").WithArguments("field", "F").
WithLocation
(8, 16),
55918
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("A<object>", "B<object?>").
WithLocation
(14, 10),
55921
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(x1 ?? y1)/*T:B<object?>!*/.F").
WithLocation
(14, 9),
55924
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x2").WithArguments("A<object?>", "B<object>").
WithLocation
(18, 10),
55927
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x3").WithArguments("B<object>", "B<object?>").
WithLocation
(22, 16),
55930
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(y3 ?? x3)/*T:B<object?>!*/.F").
WithLocation
(22, 9),
55933
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x4").WithArguments("B<object?>", "B<object>").
WithLocation
(26, 16),
55936
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x5").WithArguments("A<object>", "B<object?>").
WithLocation
(30, 10),
55939
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x5 ?? y5").
WithLocation
(30, 10),
55942
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(x5 ?? y5)/*T:B<object?>?*/.F").
WithLocation
(30, 9),
55945
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x5").WithArguments("B<object>", "B<object?>").
WithLocation
(31, 16),
55948
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y5 ?? x5").
WithLocation
(31, 10),
55951
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(y5 ?? x5)/*T:B<object?>?*/.F").
WithLocation
(31, 9),
55954
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x6").WithArguments("A<object?>", "B<object>").
WithLocation
(35, 10),
55957
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x6 ?? y6").
WithLocation
(35, 10),
55960
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x6").WithArguments("B<object?>", "B<object>").
WithLocation
(36, 16),
55963
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y6 ?? x6").
WithLocation
(36, 10));
55986
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x ?? y").
WithLocation
(5, 10),
55989
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y ?? x").
WithLocation
(7, 10),
55992
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z ?? x").
WithLocation
(9, 10),
55995
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z ?? y").
WithLocation
(10, 10));
56107
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2.Object ?? y2.String").
WithLocation
(14, 14),
56110
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y3.String ?? x3.Object").
WithLocation
(24, 14),
56113
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x4.Object ?? y4.String").
WithLocation
(30, 14),
56116
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y4.String ?? x4.Object").
WithLocation
(32, 14),
56119
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y7.String ?? x7.Object").
WithLocation
(56, 14),
56122
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x8.Object ?? y8.String").
WithLocation
(62, 14));
56152
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F").WithArguments("field", "F").
WithLocation
(4, 16),
56155
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("B<object?>", "A<object>").
WithLocation
(11, 15),
56158
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("B<object?>", "A<object>").
WithLocation
(12, 10),
56161
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y ?? x").
WithLocation
(12, 10),
56164
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w").WithArguments("B<object>", "A<object?>").
WithLocation
(16, 15),
56167
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z ?? w").
WithLocation
(16, 10),
56170
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(z ?? w).F").
WithLocation
(16, 9),
56173
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w").WithArguments("B<object>", "A<object?>").
WithLocation
(17, 10),
56176
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w ?? z").
WithLocation
(17, 10),
56179
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(w ?? z).F").
WithLocation
(17, 9));
56214
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("IIn<object>", "IIn<string?>").
WithLocation
(10, 14),
56217
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y ?? x").
WithLocation
(12, 14),
56220
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("IIn<object>", "IIn<string?>").
WithLocation
(12, 19),
56223
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z ?? w").
WithLocation
(18, 14),
56226
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(18, 57),
56229
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(20, 57));
56264
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("IOut<string?>", "IOut<object>").
WithLocation
(10, 19),
56267
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("IOut<string?>", "IOut<object>").
WithLocation
(12, 14),
56270
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y ?? x").
WithLocation
(12, 14),
56273
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(z ?? w)/*T:IOut<object?>?*/.P").
WithLocation
(18, 13),
56276
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z ?? w").
WithLocation
(18, 14),
56279
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(w ?? z)/*T:IOut<object?>!*/.P").
WithLocation
(20, 13));
56336
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(15, 13),
56339
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(28, 13),
56342
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z2").
WithLocation
(29, 18),
56345
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(30, 13));
56439
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o").
WithLocation
(9, 20),
56442
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b1.G").
WithLocation
(11, 16),
56445
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o").
WithLocation
(26, 24),
56448
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b3.G").
WithLocation
(30, 16));
56497
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "a1.F").
WithLocation
(10, 16),
56500
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "a3.F").
WithLocation
(29, 16));
56535
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(CL1)null").
WithLocation
(10, 18));
56559
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 9));
56621
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(6, 9));
56649
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "t").WithArguments("t").
WithLocation
(5, 9),
56652
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(7, 9));
56715
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(9, 13));
56747
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(8, 13));
56780
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(9, 13));
56814
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(9, 13));
56869
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "s").WithArguments("s").
WithLocation
(5, 17));
56941
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(9, 28),
56944
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t[0]").
WithLocation
(8, 9));
56968
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b[0]").
WithLocation
(9, 9));
57030
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1[0]").
WithLocation
(11, 18),
57033
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z2").
WithLocation
(17, 17),
57036
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z5").
WithLocation
(34, 35),
57039
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z6").
WithLocation
(39, 39)
57095
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z4").
WithLocation
(37, 17),
57098
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z4").
WithLocation
(38, 19)
57131
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u1").
WithLocation
(12, 18)
57216
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new [] { y1, z1 }").WithArguments("CL1?[]", "CL1[]").
WithLocation
(13, 14),
57219
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new [,] { {y1}, {z1} }").WithArguments("CL1?[*,*]", "CL1[*,*]").
WithLocation
(14, 14),
57222
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a2").WithArguments("CL1?[]", "CL1[]").
WithLocation
(25, 14),
57225
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b2").WithArguments("CL1?[*,*]", "CL1[*,*]").
WithLocation
(26, 14),
57228
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new [] { y8, z8 }").WithArguments("CL1?[]", "CL1[]").
WithLocation
(31, 21),
57231
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new [,] { {y9}, {z9} }").WithArguments("CL1?[*,*]", "CL1[*,*]").
WithLocation
(36, 22)
57263
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u2").
WithLocation
(18, 18)
57298
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(10, 18),
57301
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(15, 20),
57304
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(20, 18),
57307
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(20, 21)
57389
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 14),
57392
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new [] { null, new object() }").WithArguments("object?[]", "object[]").
WithLocation
(16, 24),
57395
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(21, 34),
57398
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(32, 25),
57401
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u5").
WithLocation
(33, 16),
57404
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u6").
WithLocation
(39, 9),
57407
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(39, 17),
57410
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(40, 22),
57413
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(46, 27),
57416
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u7").
WithLocation
(47, 9),
57419
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(47, 17),
57422
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(48, 22),
57425
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(53, 28),
57428
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u8").
WithLocation
(54, 9),
57431
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u8[0,0]").
WithLocation
(55, 9),
57434
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u8[0,0]").
WithLocation
(56, 9),
57437
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(56, 22),
57440
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u8[0,0]").
WithLocation
(57, 9),
57443
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u9").
WithLocation
(63, 9),
57446
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u9[0,0]").
WithLocation
(64, 9),
57449
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(64, 22),
57452
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u9[0,0]").
WithLocation
(65, 9)
57512
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 53),
57515
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u6[0]").
WithLocation
(18, 9),
57518
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(18, 22),
57521
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u6[0]").
WithLocation
(19, 9),
57524
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(24, 36),
57527
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(25, 52),
57530
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(26, 17),
57533
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(27, 22),
57536
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(32, 46),
57539
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(33, 53),
57542
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(34, 17),
57545
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(35, 22),
57548
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(42, 54),
57551
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u9[0]").
WithLocation
(44, 9),
57554
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(44, 22),
57557
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u9[0]").
WithLocation
(45, 9)
57588
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("CL0<string?>", "CL0<string>").
WithLocation
(10, 27),
57591
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("CL0<string?>", "CL0<string>").
WithLocation
(11, 31),
57594
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y1").WithArguments("CL0<string>", "CL0<string?>").
WithLocation
(12, 43),
57597
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("CL0<string?>", "CL0<string>").
WithLocation
(13, 38)
57631
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(6, 24),
57634
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").
WithLocation
(7, 24),
57637
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 24),
57640
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(13, 24),
57643
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default(T)").
WithLocation
(14, 24)
57670
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b[0]").
WithLocation
(10, 9),
57673
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c[0][0]").
WithLocation
(13, 9));
57705
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b[0]").
WithLocation
(8, 9),
57708
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c[0][0]").
WithLocation
(13, 9),
57711
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d[0][0]").
WithLocation
(15, 9),
57714
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e[0][0]").
WithLocation
(17, 9)
57747
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c[0]").
WithLocation
(11, 13),
57750
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d[0]").
WithLocation
(13, 13),
57753
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e[0]").
WithLocation
(15, 13));
57772
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { y, x })[1]").
WithLocation
(6, 9));
57817
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a[0]").
WithLocation
(9, 13),
57820
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b[0][0]").
WithLocation
(11, 13));
57849
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(5, 39),
57852
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a[0]").
WithLocation
(6, 9),
57855
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)null").
WithLocation
(7, 25),
57858
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b[0]").
WithLocation
(8, 9),
57861
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)null").
WithLocation
(9, 28),
57864
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c[0]").
WithLocation
(10, 9),
57867
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(11, 25),
57870
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d[0]").
WithLocation
(12, 9));
57916
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "cy").WithArguments("C2", "B<object?>").
WithLocation
(10, 25),
57919
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "cx").WithArguments("C1", "B<object>").
WithLocation
(12, 25)
57954
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b").WithArguments("C<object?>", "C<object>").
WithLocation
(8, 32),
57957
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c[0]").
WithLocation
(9, 13),
57960
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b").WithArguments("C<object?>", "C<object>").
WithLocation
(10, 29),
57963
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d[0]").
WithLocation
(11, 13),
57966
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b").WithArguments("C<object?>", "C<object>").
WithLocation
(15, 32),
57969
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b").WithArguments("C<object?>", "C<object>").
WithLocation
(17, 29)
57998
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(10, 26),
58001
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(3, 25),
58004
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { x1, y1 }").
WithLocation
(5, 18),
58007
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { y1, x1 }").
WithLocation
(7, 18));
58105
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(7, 22),
58108
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(9, 25),
58111
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(13, 22),
58114
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(14, 28)
58189
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(8, 25),
58192
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(10, 22)
58271
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("I<IOut<string?>>", "I<IOut<string>>").
WithLocation
(10, 23),
58274
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("I<IOut<string?>>", "I<IOut<string>>").
WithLocation
(12, 27)
58371
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y0").WithArguments("B<object?>.INone", "B<object>.INone").
WithLocation
(9, 26),
58374
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y0").WithArguments("B<object?>.INone", "B<object>.INone").
WithLocation
(11, 22),
58377
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y1").WithArguments("B<object?>.I<string?>", "B<object>.I<string>").
WithLocation
(23, 26),
58380
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y1").WithArguments("B<object?>.I<string?>", "B<object>.I<string>").
WithLocation
(25, 22),
58383
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y2").WithArguments("B<object?>.IIn<string?>", "B<object>.IIn<string>").
WithLocation
(37, 26),
58386
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y2").WithArguments("B<object?>.IIn<string?>", "B<object>.IIn<string>").
WithLocation
(39, 22),
58389
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y3").WithArguments("B<object?>.IOut<string?>", "B<object>.IOut<string?>").
WithLocation
(51, 26),
58392
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y3").WithArguments("B<object?>.IOut<string?>", "B<object>.IOut<string?>").
WithLocation
(53, 22));
58444
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x2, y2)").WithArguments("(I<object> x2, I<object?> y2)", "(I<object>, I<object>)").
WithLocation
(18, 32),
58447
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(y2, y2)").WithArguments("(I<object?>, I<object?>)", "(I<object>, I<object?>)").
WithLocation
(21, 32),
58450
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x2, y2)").WithArguments("(I<object> x2, I<object?> y2)", "(I<object>, I<object>)").
WithLocation
(25, 33));
58470
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { }").
WithLocation
(5, 17),
58473
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { null }").
WithLocation
(6, 17));
58503
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").
WithLocation
(15, 27)
58577
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(5, 35),
58580
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b[0]").
WithLocation
(8, 9));
58624
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(8, 21),
58627
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x, z })[0]").
WithLocation
(9, 9),
58630
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x, w })[0]").
WithLocation
(10, 9),
58633
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w").WithArguments("I<object?>", "I<object>").
WithLocation
(10, 21),
58636
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { y, z })[0]").
WithLocation
(11, 9),
58639
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(11, 18),
58642
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { y, w })[0]").
WithLocation
(12, 9),
58645
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { w, z })[0]").
WithLocation
(13, 9),
58648
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w").WithArguments("I<object?>", "I<object>").
WithLocation
(13, 18),
58651
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x, z })[0]").
WithLocation
(18, 9),
58654
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x, w })[0]").
WithLocation
(19, 9),
58657
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { y, z })[0]").
WithLocation
(20, 9),
58660
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { y, w })[0]").
WithLocation
(21, 9),
58663
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { w, z })[0]").
WithLocation
(22, 9),
58666
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x, z })[0]").
WithLocation
(27, 9),
58669
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x, w })[0]").
WithLocation
(28, 9),
58672
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { y, z })[0]").
WithLocation
(29, 9),
58675
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { y, w })[0]").
WithLocation
(30, 9),
58678
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { w, z })[0]").
WithLocation
(31, 9)
58733
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x, x! })[0]").
WithLocation
(6, 9),
58736
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x!, x })[0]").
WithLocation
(7, 9),
58739
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x, y })[0]").
WithLocation
(11, 9),
58742
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x, y! })[0]").
WithLocation
(12, 9),
58745
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { z, z! })[0].F").
WithLocation
(18, 9),
58748
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { z!, z })[0].F").
WithLocation
(19, 9),
58751
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { z!, z! })[0].F").
WithLocation
(20, 9),
58754
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { z, w })[0].F").
WithLocation
(23, 9),
58757
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { z, w! })[0].F").
WithLocation
(24, 9),
58760
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { z!, w })[0].F").
WithLocation
(25, 9),
58763
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { z!, w! })[0].F").
WithLocation
(26, 9));
58801
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new[] { x }").WithArguments("I<object>?[]", "I<object?>?[]").
WithLocation
(8, 27),
58804
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new[] { y }").WithArguments("I<object?>?[]", "I<object?>[]").
WithLocation
(9, 26),
58807
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new[] { y }").WithArguments("I<object?>?[]", "I<object>?[]").
WithLocation
(10, 26),
58810
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new[] { x }").WithArguments("I<object>?[]", "I<object>[]").
WithLocation
(11, 25),
58813
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new[] { x }").WithArguments("IIn<object>?[]", "IIn<object?>?[]").
WithLocation
(15, 29),
58816
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new[] { y }").WithArguments("IIn<object?>?[]", "IIn<object?>[]").
WithLocation
(16, 28),
58819
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new[] { x }").WithArguments("IIn<object>?[]", "IIn<object>[]").
WithLocation
(18, 27),
58822
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new[] { y }").WithArguments("IOut<object?>?[]", "IOut<object?>[]").
WithLocation
(23, 29),
58825
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new[] { y }").WithArguments("IOut<object?>?[]", "IOut<object>?[]").
WithLocation
(24, 29),
58828
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new[] { x }").WithArguments("IOut<object>?[]", "IOut<object>[]").
WithLocation
(25, 28));
58849
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("B<object?>", "A<object>").
WithLocation
(7, 38),
58852
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("A<object>", "A<object?>").
WithLocation
(8, 36));
58878
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("IIn<object>", "IIn<string?>").
WithLocation
(7, 38),
58881
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("IOut<string?>", "IOut<object>").
WithLocation
(13, 38));
58907
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x, y })[0]").
WithLocation
(12, 9),
58910
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { y, x })[0]").
WithLocation
(13, 9));
58936
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { x, y })[0]").
WithLocation
(12, 9),
58939
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new[] { y, x })[0]").
WithLocation
(13, 9));
59005
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").
WithLocation
(9, 35),
59008
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").
WithLocation
(14, 35)
59029
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("o", "C.C(object o)").
WithLocation
(6, 23));
59108
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").
WithLocation
(9, 39),
59111
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z2.P2").
WithLocation
(10, 9)
59159
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("x", "void ITest28.Add(ITest28 x)").
WithLocation
(9, 34)
59202
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2.field").
WithLocation
(8, 1),
59205
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3.field").
WithLocation
(11, 1),
59208
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S3").
WithLocation
(28, 15));
59242
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("I<object>", "I<object?>", "y", "int C.this[I<string> x, I<object?> y]").
WithLocation
(7, 16),
59245
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<string?>", "I<string>", "x", "int C.this[I<string> x, I<object?> y]").
WithLocation
(15, 16));
59270
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("item", "void List<A<object>>.Add(A<object> item)").
WithLocation
(10, 13),
59273
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("B<object?>", "A<object>", "item", "void List<A<object>>.Add(A<object> item)").
WithLocation
(11, 13));
59344
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y1.F1").
WithLocation
(12, 14),
59347
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y2.F1").
WithLocation
(22, 14),
59350
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y4.F2.F3").
WithLocation
(35, 14),
59353
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u5.F3").
WithLocation
(43, 14)
59461
Diagnostic(ErrorCode.ERR_UseDefViolation, "y1").WithArguments("y1").
WithLocation
(11, 17),
59464
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z1.F3").
WithLocation
(12, 14),
59467
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z1.F3 ?? x1").
WithLocation
(13, 14),
59470
Diagnostic(ErrorCode.ERR_UseDefViolation, "y2").WithArguments("y2").
WithLocation
(25, 18),
59473
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z2.F3").
WithLocation
(26, 18),
59476
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z2.F3 ?? x2").
WithLocation
(27, 18),
59479
Diagnostic(ErrorCode.ERR_UseDefViolationField, "y3.F3").WithArguments("F3").
WithLocation
(34, 19),
59482
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z3").
WithLocation
(35, 14),
59485
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z3 ?? x3").
WithLocation
(36, 14),
59488
Diagnostic(ErrorCode.ERR_UseDefViolationField, "y4.F3").WithArguments("F3").
WithLocation
(42, 14),
59491
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z4").
WithLocation
(43, 14),
59494
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z4 ?? x4").
WithLocation
(44, 14),
59497
Diagnostic(ErrorCode.ERR_UseDefViolationField, "y5.F3").WithArguments("F3").
WithLocation
(50, 29),
59500
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z5.F3").
WithLocation
(51, 14),
59503
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z5.F3 ?? x5").
WithLocation
(52, 14),
59506
Diagnostic(ErrorCode.ERR_UseDefViolation, "y6").WithArguments("y6").
WithLocation
(59, 14),
59509
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z6.F3").
WithLocation
(60, 14),
59512
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z6.F3 ?? x6").
WithLocation
(61, 14),
59515
Diagnostic(ErrorCode.ERR_UseDefViolation, "y7").WithArguments("y7").
WithLocation
(68, 29),
59518
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z7.F3.F3").
WithLocation
(69, 14),
59521
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z7.F3.F3 ?? x7").
WithLocation
(70, 14),
59524
Diagnostic(ErrorCode.ERR_UseDefViolationField, "y8.F3").WithArguments("F3").
WithLocation
(81, 18),
59527
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z8").
WithLocation
(82, 18),
59530
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z8 ?? x8").
WithLocation
(83, 18)
59589
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "new S1().F1").
WithLocation
(9, 14),
59592
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "new S2().F2").
WithLocation
(24, 14)
59627
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "E2").
WithLocation
(15, 28)
59751
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y1.p2").
WithLocation
(11, 14),
59754
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "v2").WithArguments("<anonymous type: CL1? p1, CL1 p2>", "<anonymous type: CL1 p1, CL1? p2>").
WithLocation
(18, 14),
59757
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u2.p1").
WithLocation
(20, 14),
59760
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "v2.p2 ?? x2").
WithLocation
(21, 14),
59763
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "v2.p1").
WithLocation
(22, 14),
59766
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "v3.p2").
WithLocation
(30, 14),
59769
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "v4").WithArguments("<anonymous type: <anonymous type: CL1? p1, CL1 p2> p0>", "<anonymous type: <anonymous type: CL1 p1, CL1? p2> p0>").
WithLocation
(37, 14),
59772
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u4.p0.p1").
WithLocation
(39, 14),
59775
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "v4.p0.p2 ?? x4").
WithLocation
(40, 14),
59778
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "v4.p0.p1").
WithLocation
(41, 14),
59781
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "v5.p0.p2").
WithLocation
(49, 14),
59784
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "v6.p2").
WithLocation
(57, 14),
59787
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u7.p0.p1").
WithLocation
(66, 14),
59790
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "v7.p0.p2 ?? x7").
WithLocation
(67, 14),
59793
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "v7.p0.p1").
WithLocation
(68, 14),
59796
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "v8.p0.p2").
WithLocation
(76, 14),
59799
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "v9.p2").
WithLocation
(84, 14),
59802
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u10.a2.p2").
WithLocation
(100, 15));
59848
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x3").WithArguments("x3").
WithLocation
(25, 29),
59851
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y3.p1").WithArguments("x", "CL1? CL1.M1(CL1 x)").
WithLocation
(27, 29));
59910
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "v1").WithArguments("<anonymous type: CL1<string?> F1>", "<anonymous type: CL1<string> F1>").
WithLocation
(12, 14),
59913
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "u1").WithArguments("<anonymous type: CL1<string> F1>", "<anonymous type: CL1<string?> F1>").
WithLocation
(13, 14)
59962
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b0").WithArguments("<anonymous type: string? F>", "<anonymous type: string F>").
WithLocation
(10, 14),
59965
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a0").WithArguments("<anonymous type: string F>", "<anonymous type: string? F>").
WithLocation
(11, 14),
59968
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b1").WithArguments("<anonymous type: I<string?> F>", "<anonymous type: I<string> F>").
WithLocation
(17, 14),
59971
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a1").WithArguments("<anonymous type: I<string> F>", "<anonymous type: I<string?> F>").
WithLocation
(18, 14),
59974
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b2").WithArguments("<anonymous type: IIn<string?> F>", "<anonymous type: IIn<string> F>").
WithLocation
(24, 14),
59977
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a2").WithArguments("<anonymous type: IIn<string> F>", "<anonymous type: IIn<string?> F>").
WithLocation
(25, 14),
59980
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b3").WithArguments("<anonymous type: IOut<string?> F>", "<anonymous type: IOut<string> F>").
WithLocation
(31, 14),
59983
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a3").WithArguments("<anonymous type: IOut<string> F>", "<anonymous type: IOut<string?> F>").
WithLocation
(32, 14));
60045
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new { x, y }.y").
WithLocation
(6, 9),
60048
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new { y, x }.y").
WithLocation
(8, 9),
60051
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new { x = x, y = y }.y").
WithLocation
(10, 9),
60054
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new { x = y, y = x }.x").
WithLocation
(11, 9));
60081
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new { x = x, y = y }.x").
WithLocation
(6, 13),
60084
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new { x = y, y = x }.y").
WithLocation
(9, 13),
60087
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new { x, y }.x").
WithLocation
(10, 13),
60090
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new { y, x }.x").
WithLocation
(12, 13));
60114
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.y").
WithLocation
(7, 9),
60117
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new { x = y, y = x }").WithArguments("<anonymous type: T? x, T y>", "<anonymous type: T x, T? y>").
WithLocation
(8, 13),
60120
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.x").
WithLocation
(9, 9));
60150
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "a.y").
WithLocation
(9, 13),
60153
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "a.x").
WithLocation
(13, 13));
60181
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 15),
60184
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.x").
WithLocation
(8, 9),
60187
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new { x, y }").WithArguments("<anonymous type: T x, T? y>", "<anonymous type: T? x, T y>").
WithLocation
(12, 13),
60190
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.y").
WithLocation
(14, 9));
60218
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new { x = y, y = x }").WithArguments("<anonymous type: T? x, T y>", "<anonymous type: T x, T? y>", "y", "void Program.F<<anonymous type: T x, T? y>>(<anonymous type: T x, T? y> x, <anonymous type: T x, T? y> y)").
WithLocation
(9, 25),
60221
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new { x = y, y = x }").WithArguments("<anonymous type: T? x, T y>", "<anonymous type: T x, T? y>", "y", "void Program.F<<anonymous type: T x, T? y>>(<anonymous type: T x, T? y> x, <anonymous type: T x, T? y> y)").
WithLocation
(11, 33),
60224
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "new { x, y }").WithArguments("<anonymous type: T x, T? y>", "<anonymous type: T? x, T y>", "y", "void Program.F<<anonymous type: T? x, T y>>(<anonymous type: T? x, T y> x, <anonymous type: T? x, T y> y)").
WithLocation
(13, 33));
60250
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a2.t").
WithLocation
(12, 9));
60277
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a2.t").
WithLocation
(13, 9));
60298
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Missing").WithArguments("<empty anonymous type>", "Missing").
WithLocation
(5, 17),
60301
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Missing").WithArguments("<anonymous type: T t>", "Missing").
WithLocation
(7, 19));
60321
Diagnostic(ErrorCode.ERR_AnonymousTypeDuplicatePropertyName, "O1/*T:object?*/ = o2").
WithLocation
(6, 37));
60342
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new { P = o }).P").
WithLocation
(5, 9));
60363
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(new { P = new[] { o }}).P[0]").
WithLocation
(5, 9));
60385
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "AsQueryable").WithArguments("<anonymous type: int? X>[]", "AsQueryable").
WithLocation
(6, 57),
60388
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "AsQueryable").WithArguments("<anonymous type: int? X>[]", "AsQueryable").
WithLocation
(7, 57));
60501
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").
WithLocation
(12, 14),
60504
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C1").WithArguments("property", "P1").
WithLocation
(10, 12),
60507
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "P2").
WithLocation
(22, 14),
60510
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "P3").
WithLocation
(33, 14)
60588
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").
WithLocation
(12, 14),
60591
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C1").WithArguments("property", "P1").
WithLocation
(10, 12),
60594
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "P3").
WithLocation
(34, 14),
60597
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "P2").
WithLocation
(22, 14)
60644
Diagnostic(ErrorCode.ERR_UseDefViolation, "y1").WithArguments("y1").
WithLocation
(17, 18),
60647
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y1").
WithLocation
(17, 18),
60650
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y2").WithArguments("y2").
WithLocation
(28, 18),
60653
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y2").
WithLocation
(28, 18));
60774
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(12, 37),
60777
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(17, 49),
60780
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(24, 23),
60783
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(29, 35)
60819
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(12, 46),
60822
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(19, 30)
60874
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(20, 22),
60877
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(25, 22),
60880
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(30, 34),
60883
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(35, 34)
60983
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(19, 22),
60986
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(24, 22),
60989
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(29, 34),
60992
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "M1()").
WithLocation
(34, 34)
61089
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(21, 26),
61092
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").
WithLocation
(22, 28),
61095
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(30, 26),
61098
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").
WithLocation
(31, 28)
61147
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").
WithLocation
(22, 28),
61150
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").
WithLocation
(31, 28)
61196
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(12, 50),
61199
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(17, 58),
61202
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(24, 34),
61205
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(29, 42)
61251
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(12, 51),
61254
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(CL1 p1) =>").WithArguments("p1", "lambda expression", "System.Action<CL1?>").
WithLocation
(12, 34),
61257
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(17, 59),
61260
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "delegate (CL1 p2) { p2 = M1(); }").WithArguments("p2", "anonymous method", "System.Action<CL1?>").
WithLocation
(17, 34),
61263
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(24, 34),
61266
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(CL1 p3) =>").WithArguments("p3", "lambda expression", "C.D1").
WithLocation
(24, 17),
61269
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M1()").
WithLocation
(29, 42),
61272
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "delegate (CL1 p4) { p4 = M1(); }").WithArguments("p4", "anonymous method", "C.D1").
WithLocation
(29, 17)
61318
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(CL1? p1) =>").WithArguments("p1", "lambda expression", "System.Action<CL1>").
WithLocation
(12, 33),
61321
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "delegate (CL1? p2) { p2 = M1(); }").WithArguments("p2", "anonymous method", "System.Action<CL1>").
WithLocation
(17, 33),
61324
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(CL1? p3) =>").WithArguments("p3", "lambda expression", "C.D1").
WithLocation
(24, 17),
61327
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "delegate (CL1? p4) { p4 = M1(); }").WithArguments("p4", "anonymous method", "C.D1").
WithLocation
(29, 17)
61424
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(20, 29),
61427
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(21, 26),
61430
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(22, 28)
61462
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(CL1<string> p1) =>").WithArguments("p1", "lambda expression", "System.Action<CL1<string?>>").
WithLocation
(10, 42),
61465
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(CL1<string?> p2) =>").WithArguments("p2", "lambda expression", "System.Action<CL1<string>>").
WithLocation
(15, 41)
61499
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(CL1<string> p1) =>").WithArguments("p1", "lambda expression", "System.Action<CL1<string?>>").
WithLocation
(12, 54),
61502
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(CL1<string?> p2) =>").WithArguments("p2", "lambda expression", "System.Action<CL1<string>>").
WithLocation
(17, 53)
61527
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "string?").WithArguments("D<T>", "T", "string?").
WithLocation
(6, 21),
61530
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(string s1) =>").WithArguments("s1", "lambda expression", "D<string?>").
WithLocation
(6, 31),
61533
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 53),
61536
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(string? s2) =>").WithArguments("s2", "lambda expression", "D<string>").
WithLocation
(7, 30),
61539
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(7, 48),
61542
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "string?").WithArguments("D<T>", "T", "string?").
WithLocation
(10, 21),
61545
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(10, 53),
61548
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(11, 48)
61601
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1").
WithLocation
(9, 18),
61604
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2").
WithLocation
(16, 21),
61607
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z2").
WithLocation
(22, 9));
61680
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "C").WithArguments("C", "1").
WithLocation
(7, 19),
61683
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 27)
61704
Diagnostic(ErrorCode.ERR_BadArgCount, "M").WithArguments("M", "1").
WithLocation
(7, 9),
61707
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 17)
61912
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(6, 9),
61915
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 17),
61918
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(12, 13),
61921
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 9)
61945
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").
WithLocation
(9, 56));
61973
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").
WithLocation
(9, 43),
61976
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").
WithLocation
(10, 33),
61979
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").
WithLocation
(14, 33),
61982
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").
WithLocation
(15, 43));
62009
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(() => { if (b) return x; return y; })").
WithLocation
(10, 9),
62012
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(() => { if (b) return x; return y; })").
WithLocation
(14, 9));
62038
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(() => o)").
WithLocation
(10, 9),
62041
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(() => { return o; })").
WithLocation
(12, 9));
62065
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(o => o)").
WithLocation
(10, 9)
62110
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(y => F(z => z, y), x)").
WithLocation
(10, 9));
62156
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(9, 46),
62159
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(11, 65),
62162
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(17, 46),
62165
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(18, 83)
62238
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(9, 47),
62241
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(11, 32)
62299
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(9, 48),
62302
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(9, 67),
62305
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(10, 48),
62308
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(11, 48),
62311
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(12, 67),
62314
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(15, 67),
62317
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(18, 48),
62320
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object?>", "B<object>").
WithLocation
(19, 85)
62346
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y2").WithArguments("object", "object?").
WithLocation
(8, 81),
62349
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x3").WithArguments("object", "object?").
WithLocation
(9, 66)
62389
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a2").WithArguments("I<object?>", "I<object>").
WithLocation
(12, 72),
62392
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b3").WithArguments("I<object?>", "I<object>").
WithLocation
(13, 87),
62395
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c2").WithArguments("IIn<object?>", "IIn<object>").
WithLocation
(17, 76),
62398
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "d3").WithArguments("IIn<object?>", "IIn<object>").
WithLocation
(18, 91),
62401
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "f2").WithArguments("IOut<object>", "IOut<object?>").
WithLocation
(22, 93),
62404
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "e3").WithArguments("IOut<object>", "IOut<object?>").
WithLocation
(23, 78)
62428
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 31),
62431
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(9, 45));
62453
Diagnostic(ErrorCode.ERR_NoImplicitConv, "42").WithArguments("int", "string").
WithLocation
(9, 17),
62456
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "42").WithArguments("lambda expression").
WithLocation
(9, 17));
62545
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 9));
62579
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(18, 13));
62610
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 9));
62709
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 17));
62747
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(17, 17));
62855
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").
WithLocation
(8, 29),
62858
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("I<object>", "I<object?>").
WithLocation
(17, 33),
62861
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(18, 32));
62884
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(object o) =>").WithArguments("o", "lambda expression", "D<object?>").
WithLocation
(7, 24),
62887
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(object? o) =>").WithArguments("o", "lambda expression", "D<object>").
WithLocation
(8, 23),
62890
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(I<object> o) =>").WithArguments("o", "lambda expression", "D<I<object?>>").
WithLocation
(9, 27),
62893
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(I<object?> o) =>").WithArguments("o", "lambda expression", "D<I<object>>").
WithLocation
(10, 26));
62962
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("s", "void C.M0(string s)").
WithLocation
(38, 40));
62989
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(() => y)").
WithLocation
(10, 9));
63045
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(() => { if (x.Length > 0) return x; return null; })").
WithLocation
(9, 9),
63048
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(() => { if (x.Length == 0) return null; return x; })").
WithLocation
(10, 9));
63088
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x => x").
WithLocation
(5, 17));
63108
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "y => y ?? x.ToString()").
WithLocation
(5, 17),
63111
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(5, 27),
63114
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 53),
63117
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(7, 48));
63174
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1").
WithLocation
(10, 18),
63177
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2").
WithLocation
(15, 21),
63180
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z2").
WithLocation
(17, 9),
63183
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "f()").
WithLocation
(36, 9),
63186
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "f()").
WithLocation
(37, 25));
63219
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(11, 13)
63254
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 13)
63285
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 13)
63392
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(8, 13),
63395
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(16, 13),
63398
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y3").
WithLocation
(24, 13),
63401
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y3").
WithLocation
(29, 13),
63404
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x4").
WithLocation
(36, 13));
63490
Diagnostic(ErrorCode.ERR_AnnotationDisallowedInObjectCreation, "new object?()").
WithLocation
(6, 14),
63493
Diagnostic(ErrorCode.ERR_AnnotationDisallowedInObjectCreation, "new object? { }").
WithLocation
(7, 14),
63496
Diagnostic(ErrorCode.ERR_AnnotationDisallowedInObjectCreation, "new object[]? {}").
WithLocation
(9, 14),
63499
Diagnostic(ErrorCode.ERR_InvalidObjectCreation, "object[]?").
WithLocation
(9, 18),
63502
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T2?").WithArguments("9.0").
WithLocation
(14, 18),
63505
Diagnostic(ErrorCode.ERR_AnnotationDisallowedInObjectCreation, "new T2?()").
WithLocation
(14, 14),
63508
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T2?()").WithArguments("T2").
WithLocation
(14, 14),
63511
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T2?").WithArguments("9.0").
WithLocation
(15, 18),
63514
Diagnostic(ErrorCode.ERR_AnnotationDisallowedInObjectCreation, "new T2? { }").
WithLocation
(15, 14),
63517
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T2? { }").WithArguments("T2").
WithLocation
(15, 14),
63520
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T2?").WithArguments("9.0").
WithLocation
(16, 19),
63523
Diagnostic(ErrorCode.ERR_AnnotationDisallowedInObjectCreation, "new T3?()").
WithLocation
(21, 14),
63526
Diagnostic(ErrorCode.ERR_AnnotationDisallowedInObjectCreation, "new T3? { }").
WithLocation
(22, 14),
63529
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T4?").WithArguments("9.0").
WithLocation
(28, 18),
63532
Diagnostic(ErrorCode.ERR_AnnotationDisallowedInObjectCreation, "new T4?()").
WithLocation
(28, 14),
63535
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T4?").WithArguments("9.0").
WithLocation
(29, 18),
63538
Diagnostic(ErrorCode.ERR_AnnotationDisallowedInObjectCreation, "new T4? { }").
WithLocation
(29, 14),
63541
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T4?").WithArguments("9.0").
WithLocation
(30, 19),
63544
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "System.Nullable<int>?").WithArguments("System.Nullable<T>", "T", "int?").
WithLocation
(31, 18),
63547
Diagnostic(ErrorCode.ERR_AnnotationDisallowedInObjectCreation, "new T5?()").
WithLocation
(36, 14),
63550
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T5?()").WithArguments("T5").
WithLocation
(36, 14),
63553
Diagnostic(ErrorCode.ERR_AnnotationDisallowedInObjectCreation, "new T5? { }").
WithLocation
(37, 14),
63556
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T5? { }").WithArguments("T5").
WithLocation
(37, 14)
63637
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 36),
63640
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.P").
WithLocation
(12, 9),
63643
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 36),
63646
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.P").
WithLocation
(15, 9),
63649
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 39),
63652
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z.P").
WithLocation
(18, 9));
63684
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 36),
63687
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Q").
WithLocation
(12, 9),
63690
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 36),
63693
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Q").
WithLocation
(15, 9),
63696
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 39),
63699
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z.Q").
WithLocation
(18, 9));
63731
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 36),
63734
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Q").
WithLocation
(12, 9),
63737
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 36),
63740
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Q").
WithLocation
(15, 9),
63743
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 39),
63746
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z.Q").
WithLocation
(18, 9));
63778
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 36),
63781
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Q").
WithLocation
(12, 9),
63784
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 36),
63787
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Q").
WithLocation
(15, 9),
63790
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 39),
63793
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z.Q").
WithLocation
(18, 9));
64171
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").
WithLocation
(22, 22));
64223
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y2").
WithLocation
(15, 17)
64266
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(9, 14),
64269
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(14, 14)
64559
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").
WithLocation
(22, 16));
64599
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(9, 14),
64602
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(14, 14)
64635
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x3").
WithLocation
(19, 22)
64813
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("s", "void M(CustomHandler c, string s)").
WithLocation
(5, 19 + expression.IndexOf("s.ToString"))
64884
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("s", $"CustomHandler.CustomHandler(int literalLength, int formattedCount, string s{(validityParameter ? ", out bool success" : "")})").
WithLocation
(6, 3)
64920
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("o", (useBoolReturns ? "bool" : "void") + " CustomHandler.AppendFormatted(object o)").
WithLocation
(6, 6)
64959
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 5)
65010
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(9, 5),
65013
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(10, 5),
65016
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(11, 5)
65053
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("t", "CustomHandler.CustomHandler(int literalLength, int formattedCount, string t)").
WithLocation
(7, 3)
65086
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(7, 1)
65120
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "c").WithArguments("C<string?>", "C<string>", "c", "CustomHandler.CustomHandler(int literalLength, int formattedCount, C<string> c)").
WithLocation
(7, 1)
65176
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "string s1").
WithLocation
(6, 7),
65179
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "string s1").
WithLocation
(6, 7)
65240
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("s1", "void M(string s1, CustomHandler c1, string s2)").
WithLocation
(8, 3),
65243
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 11)
65274
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "GetNullableString()").WithArguments("s", "CustomHandler.CustomHandler(int literalLength, int formattedCount, string s)").
WithLocation
(6, 3)
65310
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("t", "CustomHandler.CustomHandler(int literalLength, int formattedCount, string t)").
WithLocation
(8, 7)
65343
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(7, 5)
65377
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "c").WithArguments("C<string?>", "C<string>", "c", "CustomHandler.CustomHandler(int literalLength, int formattedCount, C<string> c)").
WithLocation
(7, 5)
65442
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("s1", "string C.this[string s1, CustomHandler c1, string s2]").
WithLocation
(9, 7),
65445
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 15)
65476
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 1)
65507
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 1)
65535
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(8, 1)
65677
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b").WithArguments("a", "CustomHandler.CustomHandler(int literalLength, int formattedCount, A a)").
WithLocation
(6, 3)
65744
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "M1").WithArguments("CL0<string?> C.M1(CL0<string> x)", "C.D1").
WithLocation
(14, 24),
65747
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "M2").WithArguments("x", "CL0<string> C.M2(CL0<string> x)", "C.D1").
WithLocation
(15, 24),
65750
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "M3").WithArguments("CL0<string> C.M3(CL0<string?> x)", "C.D2").
WithLocation
(24, 24),
65753
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "M4").WithArguments("x", "CL0<string?> C.M4(CL0<string?> x)", "C.D2").
WithLocation
(25, 24)
65782
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 22),
65785
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(9, 17),
65788
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 22),
65791
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(14, 17));
65816
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 13),
65819
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").
WithLocation
(9, 26));
65841
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type").
WithLocation
(8, 25),
65844
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(8, 28));
65865
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F<T?>").WithArguments("T? Program.F<T?>()", "D<T>").
WithLocation
(7, 22));
65904
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T?>()").
WithLocation
(7, 28));
65925
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(C)").
WithLocation
(7, 15),
65928
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(C)").
WithLocation
(8, 19));
65959
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<object?>()").
WithLocation
(10, 33),
65962
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "F<I<object?>>()").WithArguments("I<object?>", "I<object>").
WithLocation
(12, 36),
65965
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "F<I<object>>()").WithArguments("I<object>", "I<object?>").
WithLocation
(13, 37),
65968
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "F<IIn<object>>()").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(15, 39),
65971
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "F<IOut<object?>>()").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(16, 39));
66002
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F<object?>").WithArguments("object? C.F<object?>()", "D<object>").
WithLocation
(10, 27),
66005
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F<I<object?>>").WithArguments("I<object?> C.F<I<object?>>()", "D<I<object>>").
WithLocation
(12, 30),
66008
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F<I<object>>").WithArguments("I<object> C.F<I<object>>()", "D<I<object?>>").
WithLocation
(13, 31),
66011
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F<IIn<object>>").WithArguments("IIn<object> C.F<IIn<object>>()", "D<IIn<object?>>").
WithLocation
(15, 33),
66014
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F<IOut<object?>>").WithArguments("IOut<object?> C.F<IOut<object?>>()", "D<IOut<object>>").
WithLocation
(16, 33));
66045
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(object? t2) =>").WithArguments("t2", "lambda expression", "D<object>").
WithLocation
(10, 27),
66048
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(object t2) =>").WithArguments("t2", "lambda expression", "D<object?>").
WithLocation
(11, 28),
66051
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(I<object?> t2) =>").WithArguments("t2", "lambda expression", "D<I<object>>").
WithLocation
(12, 30),
66054
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(I<object> t2) =>").WithArguments("t2", "lambda expression", "D<I<object?>>").
WithLocation
(13, 31),
66057
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(IIn<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object>>").
WithLocation
(14, 32),
66060
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(IIn<object> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object?>>").
WithLocation
(15, 33),
66063
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(IOut<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object>>").
WithLocation
(16, 33),
66066
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(IOut<object> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object?>>").
WithLocation
(17, 34));
66098
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<object>").WithArguments("t2", "void C.F<object>(object t2)", "D<object?>").
WithLocation
(12, 28),
66101
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object?>>").WithArguments("t2", "void C.F<I<object?>>(I<object?> t2)", "D<I<object>>").
WithLocation
(13, 30),
66104
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object>>").WithArguments("t2", "void C.F<I<object>>(I<object> t2)", "D<I<object?>>").
WithLocation
(14, 31),
66107
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IIn<object?>>").WithArguments("t2", "void C.F<IIn<object?>>(IIn<object?> t2)", "D<IIn<object>>").
WithLocation
(15, 32),
66110
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IOut<object>>").WithArguments("t2", "void C.F<IOut<object>>(IOut<object> t2)", "D<IOut<object?>>").
WithLocation
(18, 34));
66141
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(out object? t2) =>").WithArguments("t2", "lambda expression", "D<object>").
WithLocation
(10, 27),
66144
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(out object t2) =>").WithArguments("t2", "lambda expression", "D<object?>").
WithLocation
(11, 28),
66147
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(out I<object?> t2) =>").WithArguments("t2", "lambda expression", "D<I<object>>").
WithLocation
(12, 30),
66150
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(out I<object> t2) =>").WithArguments("t2", "lambda expression", "D<I<object?>>").
WithLocation
(13, 31),
66153
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(out IIn<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object>>").
WithLocation
(14, 32),
66156
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(out IIn<object> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object?>>").
WithLocation
(15, 33),
66159
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(out IOut<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object>>").
WithLocation
(16, 33),
66162
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(out IOut<object> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object?>>").
WithLocation
(17, 34));
66194
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<object?>").WithArguments("t2", "void C.F<object?>(out object? t2)", "D<object>").
WithLocation
(11, 27),
66197
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object?>>").WithArguments("t2", "void C.F<I<object?>>(out I<object?> t2)", "D<I<object>>").
WithLocation
(13, 30),
66200
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object>>").WithArguments("t2", "void C.F<I<object>>(out I<object> t2)", "D<I<object?>>").
WithLocation
(14, 31),
66203
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IIn<object>>").WithArguments("t2", "void C.F<IIn<object>>(out IIn<object> t2)", "D<IIn<object?>>").
WithLocation
(16, 33),
66206
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IOut<object?>>").WithArguments("t2", "void C.F<IOut<object?>>(out IOut<object?> t2)", "D<IOut<object>>").
WithLocation
(17, 33));
66237
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(in object? t2) =>").WithArguments("t2", "lambda expression", "D<object>").
WithLocation
(10, 27),
66240
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(in object t2) =>").WithArguments("t2", "lambda expression", "D<object?>").
WithLocation
(11, 28),
66243
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(in I<object?> t2) =>").WithArguments("t2", "lambda expression", "D<I<object>>").
WithLocation
(12, 30),
66246
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(in I<object> t2) =>").WithArguments("t2", "lambda expression", "D<I<object?>>").
WithLocation
(13, 31),
66249
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(in IIn<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object>>").
WithLocation
(14, 32),
66252
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(in IIn<object> t2) =>").WithArguments("t2", "lambda expression", "D<IIn<object?>>").
WithLocation
(15, 33),
66255
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(in IOut<object?> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object>>").
WithLocation
(16, 33),
66258
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(in IOut<object> t2) =>").WithArguments("t2", "lambda expression", "D<IOut<object?>>").
WithLocation
(17, 34));
66290
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<object>").WithArguments("t2", "void C.F<object>(in object t2)", "D<object?>").
WithLocation
(12, 28),
66293
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object?>>").WithArguments("t2", "void C.F<I<object?>>(in I<object?> t2)", "D<I<object>>").
WithLocation
(13, 30),
66296
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object>>").WithArguments("t2", "void C.F<I<object>>(in I<object> t2)", "D<I<object?>>").
WithLocation
(14, 31),
66299
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IIn<object?>>").WithArguments("t2", "void C.F<IIn<object?>>(in IIn<object?> t2)", "D<IIn<object>>").
WithLocation
(15, 32),
66302
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IOut<object>>").WithArguments("t2", "void C.F<IOut<object>>(in IOut<object> t2)", "D<IOut<object?>>").
WithLocation
(18, 34));
66332
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(ref object? t) =>").WithArguments("t", "lambda expression", "D<object>").
WithLocation
(9, 27),
66335
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(ref object t) =>").WithArguments("t", "lambda expression", "D<object?>").
WithLocation
(10, 28),
66338
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(ref I<object?> t) =>").WithArguments("t", "lambda expression", "D<I<object>>").
WithLocation
(11, 30),
66341
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(ref I<object> t) =>").WithArguments("t", "lambda expression", "D<I<object?>>").
WithLocation
(12, 31),
66344
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(ref IIn<object?> t) =>").WithArguments("t", "lambda expression", "D<IIn<object>>").
WithLocation
(13, 32),
66347
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(ref IIn<object> t) =>").WithArguments("t", "lambda expression", "D<IIn<object?>>").
WithLocation
(14, 33),
66350
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(ref IOut<object?> t) =>").WithArguments("t", "lambda expression", "D<IOut<object>>").
WithLocation
(15, 33),
66353
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(ref IOut<object> t) =>").WithArguments("t", "lambda expression", "D<IOut<object?>>").
WithLocation
(16, 34));
66384
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<object?>").WithArguments("t", "void C.F<object?>(ref object? t)", "D<object>").
WithLocation
(10, 27),
66387
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<object>").WithArguments("t", "void C.F<object>(ref object t)", "D<object?>").
WithLocation
(11, 28),
66390
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object?>>").WithArguments("t", "void C.F<I<object?>>(ref I<object?> t)", "D<I<object>>").
WithLocation
(12, 30),
66393
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object>>").WithArguments("t", "void C.F<I<object>>(ref I<object> t)", "D<I<object?>>").
WithLocation
(13, 31),
66396
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IIn<object?>>").WithArguments("t", "void C.F<IIn<object?>>(ref IIn<object?> t)", "D<IIn<object>>").
WithLocation
(14, 32),
66399
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IIn<object>>").WithArguments("t", "void C.F<IIn<object>>(ref IIn<object> t)", "D<IIn<object?>>").
WithLocation
(15, 33),
66402
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IOut<object?>>").WithArguments("t", "void C.F<IOut<object?>>(ref IOut<object?> t)", "D<IOut<object>>").
WithLocation
(16, 33),
66405
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IOut<object>>").WithArguments("t", "void C.F<IOut<object>>(ref IOut<object> t)", "D<IOut<object?>>").
WithLocation
(17, 34));
66434
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a2").
WithLocation
(11, 19),
66437
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d2").
WithLocation
(14, 24));
66484
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "a1").WithArguments("obj", "void Action<string>.Invoke(string obj)", "D2").
WithLocation
(13, 20),
66487
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "d1").WithArguments("s", "void D1.Invoke(string s)", "D2").
WithLocation
(19, 20),
66490
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "d1").WithArguments("s", "void D1.Invoke(string s)", "System.Action<string?>").
WithLocation
(25, 33),
66493
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "a1").WithArguments("obj", "void Action<string>.Invoke(string obj)", "System.Action<string?>").
WithLocation
(31, 33));
66520
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a1").
WithLocation
(9, 20));
66549
Diagnostic(ErrorCode.ERR_MethodNameExpected, "null").
WithLocation
(11, 20),
66552
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "(Action<string>?)null").
WithLocation
(12, 20),
66555
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default(D1)").
WithLocation
(14, 20));
66580
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").
WithLocation
(10, 20));
66615
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "c.M1").WithArguments("string C.M1()", "System.Func<string>").
WithLocation
(19, 30),
66618
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "c.M2").WithArguments("s2", "void C.M2(string? s2)", "System.Action<string?>").
WithLocation
(20, 33),
66621
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "c.M3").WithArguments("s2", "void Program.M3(C c, string? s2)", "System.Action<string?>").
WithLocation
(21, 33)
66662
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "c.M2").WithArguments("s", "void C.M2(out string? s)", "D1").
WithLocation
(22, 20),
66665
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "c.M3").WithArguments("s", "void C.M3(out string s)", "D1").
WithLocation
(23, 20),
66668
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "c.M4").WithArguments("s", "bool C.M4(out string s)", "D2").
WithLocation
(24, 20),
66671
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "c.M6").WithArguments("s", "void C.M6(ref string s)", "D3").
WithLocation
(26, 20)
66706
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "c.M1").WithArguments("s", "void C.M1(string s)", "D1").
WithLocation
(17, 20),
66709
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "c.M4").WithArguments("string? C.M4()", "D2").
WithLocation
(20, 20)
66770
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "c.M1").WithArguments("string C.M1()", "System.Func<object>").
WithLocation
(27, 30),
66773
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "c.M3").WithArguments("s2", "void C.M3(object? s2)", "System.Action<string?>").
WithLocation
(33, 33),
66776
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "c.M5").WithArguments("string Program.M5(C c)", "System.Func<object>").
WithLocation
(37, 30),
66779
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "c.M7").WithArguments("s2", "void Program.M7(C c, object? s2)", "System.Action<string?>").
WithLocation
(43, 33)
66810
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Action<string?, string>(c.M3)").WithArguments("M3", "System.Action<string?, string>").
WithLocation
(15, 13),
66813
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Action(c.M3)").WithArguments("M3", "System.Action").
WithLocation
(16, 13)
66841
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "e.FirstOrDefault").WithArguments("string D.FirstOrDefault(string[] e)", "System.Func<string>").
WithLocation
(13, 26)
66882
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "M2").WithArguments("ref readonly string? C.M2()", "D<string>").
WithLocation
(10, 24),
66885
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "d2").WithArguments("ref readonly string? D<string?>.Invoke()", "D<string>").
WithLocation
(15, 27),
66888
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "d1").WithArguments("D<string>", "D<string?>").
WithLocation
(19, 25),
66891
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "d2").WithArguments("D<string?>", "D<string>").
WithLocation
(20, 24)
66925
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "M2").WithArguments("ref readonly string? C.M2()", "D1").
WithLocation
(11, 17),
66928
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "d2").WithArguments("ref readonly string? D2.Invoke()", "D1").
WithLocation
(16, 20)
66982
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Helper.Method").WithArguments("string? Helper.Method(string? arg)", "System.Func<string?, string>").
WithLocation
(24, 16)
67070
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "Helper.Method1").WithArguments("y", "void Helper.Method1(string? x, out string? y)", "D4").
WithLocation
(34, 16),
67073
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "Helper.Method2").WithArguments("z", "void Helper.Method2(string? x, out string? y, out string? z)", "D7").
WithLocation
(46, 16),
67076
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "Helper.Method3").WithArguments("y", "void Helper.Method3(string? x, out string? y, out string? z)", "D9").
WithLocation
(54, 16),
67079
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "Helper.Method3").WithArguments("z", "void Helper.Method3(string? x, out string? y, out string? z)", "D9").
WithLocation
(54, 16)
67135
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Helper.Method1<string?>").WithArguments("string? Helper.Method1<string?>(string? t)", "System.Func<string?, string>").
WithLocation
(15, 16),
67138
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Helper.Method1<T?>").WithArguments("T? Helper.Method1<T?>(T? t)", "System.Func<T, T>").
WithLocation
(23, 16),
67141
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Helper.Method1<T?>").WithArguments("T? Helper.Method1<T?>(T? t)", "System.Func<T?, T>").
WithLocation
(31, 16)
67192
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "Helper.Method1").WithArguments("z", "void Helper.Method1(string? x, string? y, out string? z)", "Del<string?, string?, string>").
WithLocation
(24, 16)
67243
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Helper.Method1").WithArguments("string? Helper.Method1(string? x, string? y)", "System.Func<string?, string?, string>").
WithLocation
(23, 16)
67295
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Helper.Method1").WithArguments("string? Helper.Method1<T>(T t)", "System.Func<T, string>").
WithLocation
(7, 16),
67298
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Helper.Method1").WithArguments("string? Helper.Method1<T>(T t)", "System.Func<T, string>").
WithLocation
(19, 16),
67301
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Helper.Method1").WithArguments("string? Helper.Method1<T?>(T? t)", "System.Func<T?, string>").
WithLocation
(28, 16));
67342
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Helper.Method1").WithArguments("string? Helper.Method1<T>(T t)", "D1<T>").
WithLocation
(6, 16),
67345
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Helper.Method1").WithArguments("string? Helper.Method1<T?>(T? t)", "D2<T>").
WithLocation
(10, 16));
67395
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "Method").
WithLocation
(37, 29)
67426
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F<object?>").WithArguments("object? C.F<object?>()", "D<object>").
WithLocation
(10, 23),
67429
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F<I<object?>>").WithArguments("I<object?> C.F<I<object?>>()", "D<I<object>>").
WithLocation
(12, 26),
67432
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F<I<object>>").WithArguments("I<object> C.F<I<object>>()", "D<I<object?>>").
WithLocation
(13, 27),
67435
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F<IIn<object>>").WithArguments("IIn<object> C.F<IIn<object>>()", "D<IIn<object?>>").
WithLocation
(15, 29),
67438
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F<IOut<object?>>").WithArguments("IOut<object?> C.F<IOut<object?>>()", "D<IOut<object>>").
WithLocation
(16, 29));
67468
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<object>").WithArguments("t", "void C.F<object>(object t)", "D<object?>").
WithLocation
(11, 24),
67471
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object?>>").WithArguments("t", "void C.F<I<object?>>(I<object?> t)", "D<I<object>>").
WithLocation
(12, 26),
67474
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object>>").WithArguments("t", "void C.F<I<object>>(I<object> t)", "D<I<object?>>").
WithLocation
(13, 27),
67477
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IIn<object?>>").WithArguments("t", "void C.F<IIn<object?>>(IIn<object?> t)", "D<IIn<object>>").
WithLocation
(14, 28),
67480
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IOut<object>>").WithArguments("t", "void C.F<IOut<object>>(IOut<object> t)", "D<IOut<object?>>").
WithLocation
(17, 30));
67513
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "x.M").WithArguments("object? A<object?>.M()", "D<object>").
WithLocation
(13, 23));
67544
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<object?>").WithArguments("t", "void C.F<object?>(out object? t)", "D<object>").
WithLocation
(10, 23),
67547
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object?>>").WithArguments("t", "void C.F<I<object?>>(out I<object?> t)", "D<I<object>>").
WithLocation
(12, 26),
67550
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object>>").WithArguments("t", "void C.F<I<object>>(out I<object> t)", "D<I<object?>>").
WithLocation
(13, 27),
67553
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IIn<object>>").WithArguments("t", "void C.F<IIn<object>>(out IIn<object> t)", "D<IIn<object?>>").
WithLocation
(15, 29),
67556
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IOut<object?>>").WithArguments("t", "void C.F<IOut<object?>>(out IOut<object?> t)", "D<IOut<object>>").
WithLocation
(16, 29)
67588
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<object>").WithArguments("t", "void C.F<object>(in object t)", "D<object?>").
WithLocation
(11, 24),
67591
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object?>>").WithArguments("t", "void C.F<I<object?>>(in I<object?> t)", "D<I<object>>").
WithLocation
(12, 26),
67594
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object>>").WithArguments("t", "void C.F<I<object>>(in I<object> t)", "D<I<object?>>").
WithLocation
(13, 27),
67597
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IIn<object?>>").WithArguments("t", "void C.F<IIn<object?>>(in IIn<object?> t)", "D<IIn<object>>").
WithLocation
(14, 28),
67600
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IOut<object>>").WithArguments("t", "void C.F<IOut<object>>(in IOut<object> t)", "D<IOut<object?>>").
WithLocation
(17, 30)
67631
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<object?>").WithArguments("t", "void C.F<object?>(ref object? t)", "D<object>").
WithLocation
(10, 23),
67634
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<object>").WithArguments("t", "void C.F<object>(ref object t)", "D<object?>").
WithLocation
(11, 24),
67637
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object?>>").WithArguments("t", "void C.F<I<object?>>(ref I<object?> t)", "D<I<object>>").
WithLocation
(12, 26),
67640
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<I<object>>").WithArguments("t", "void C.F<I<object>>(ref I<object> t)", "D<I<object?>>").
WithLocation
(13, 27),
67643
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IIn<object?>>").WithArguments("t", "void C.F<IIn<object?>>(ref IIn<object?> t)", "D<IIn<object>>").
WithLocation
(14, 28),
67646
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IIn<object>>").WithArguments("t", "void C.F<IIn<object>>(ref IIn<object> t)", "D<IIn<object?>>").
WithLocation
(15, 29),
67649
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IOut<object?>>").WithArguments("t", "void C.F<IOut<object?>>(ref IOut<object?> t)", "D<IOut<object>>").
WithLocation
(16, 29),
67652
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F<IOut<object>>").WithArguments("t", "void C.F<IOut<object>>(ref IOut<object> t)", "D<IOut<object?>>").
WithLocation
(17, 30));
67774
Diagnostic(ErrorCode.ERR_BadNullableTypeof, "typeof(C<int, object, int>?)").
WithLocation
(9, 13),
67777
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(10, 20),
67780
Diagnostic(ErrorCode.ERR_BadNullableTypeof, "typeof(TClass?)").
WithLocation
(11, 13),
67783
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(13, 25));
67806
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default(C)").
WithLocation
(10, 14)
67831
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 9));
67866
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 9)
67901
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 9),
67904
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(7, 25),
67907
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(8, 9)
67942
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 9),
67945
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(8, 9));
67979
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(5, 20),
67982
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 9));
68016
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 9)
68049
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 9)
68081
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(5, 15),
68084
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 9),
68087
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(8, 9));
68130
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 9),
68133
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(18, 9));
68165
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "x").WithArguments("IIn<object?>", "IIn<object>", "x", "void C<object>.Deconstruct(out IIn<object> x, out IOut<object> y)").
WithLocation
(13, 10),
68168
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "y").WithArguments("IOut<object>", "IOut<object?>", "y", "void C<object?>.Deconstruct(out IIn<object?> x, out IOut<object?> y)").
WithLocation
(19, 13)
68192
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 9)
68218
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
68247
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(11, 9));
68275
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F()").
WithLocation
(8, 27)
68305
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(11, 13),
68308
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "x").WithArguments("x", "foreach iteration variable").
WithLocation
(12, 13),
68311
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "y").WithArguments("y", "foreach iteration variable").
WithLocation
(13, 13)
68497
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 13),
68500
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 13)
68586
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "o4").WithArguments("C<object?>", "C<object>").
WithLocation
(8, 41),
68589
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "o4").WithArguments("C<object?>", "C<object>").
WithLocation
(9, 27),
68592
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "o4").WithArguments("C<object?>", "C<object>").
WithLocation
(11, 36),
68595
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "o4").WithArguments("C<object?>", "C<object>").
WithLocation
(12, 22)
68738
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y1").WithArguments("y", "CL0 CL0.operator +(string? x, CL0 y)").
WithLocation
(10, 24),
68741
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("x", "CL1? CL1.operator +(string x, CL1? y)").
WithLocation
(16, 18),
68744
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2 + y2").
WithLocation
(16, 18),
68747
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y3").WithArguments("y", "CL0 CL0.operator +(string? x, CL0 y)").
WithLocation
(21, 23),
68750
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x4 + y4").WithArguments("x", "CL2 CL2.operator +(CL1 x, CL2 y)").
WithLocation
(26, 18)
68801
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2 + y2").
WithLocation
(19, 18),
68804
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y2").WithArguments("y", "CL1? CL1.operator +(string x, CL1? y)").
WithLocation
(19, 23)
68854
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1 + y1").
WithLocation
(8, 18),
68857
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x3 + y3").WithArguments("x", "CL2 CL2.operator +(CL0 x, CL2 y)").
WithLocation
(28, 18),
68860
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3 + y3 + z3").
WithLocation
(28, 18)
68909
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "bool CL0.operator false(CL0 x)").
WithLocation
(10, 19),
68912
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "CL0 CL0.operator &(CL0 x, CL0? y)").
WithLocation
(10, 19)
68954
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "bool CL0.operator false(CL0 x)").
WithLocation
(10, 19),
68957
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y1").WithArguments("y", "CL0 CL0.operator &(CL0? x, CL0 y)").
WithLocation
(10, 25)
69038
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "bool CL0.operator true(CL0 x)").
WithLocation
(10, 19)
69124
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1 && y1").WithArguments("x", "bool CL0.operator true(CL0 x)").
WithLocation
(10, 19),
69127
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1 && y1").WithArguments("x", "CL0 CL0.operator |(CL0 x, CL0 y)").
WithLocation
(10, 19)
69235
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x7 + y7").
WithLocation
(40, 28),
69238
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x8 - y8").
WithLocation
(45, 28)
69290
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "!y1").WithArguments("y", "CL0 CL0.operator &(CL0? x, CL0 y)").
WithLocation
(10, 25)
69332
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1 && y1").
WithLocation
(10, 18)
69407
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "y").
WithLocation
(11, 17),
69410
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "y").
WithLocation
(13, 17));
69477
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(10, 28)
69522
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "M1<string>").WithArguments("x", "void C.M1<string>(string x)", "System.Action<string?>").
WithLocation
(12, 37),
69525
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "M1<CL0<string>>").WithArguments("x", "void C.M1<CL0<string>>(CL0<string> x)", "System.Action<CL0<string?>>").
WithLocation
(22, 42),
69528
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "M1<CL0<string?>>").WithArguments("x", "void C.M1<CL0<string?>>(CL0<string?> x)", "System.Action<CL0<string>>").
WithLocation
(27, 41)
69557
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(System.Action<string?>)M1<string>").WithArguments("x", "void C.M1<string>(string x)", "System.Action<string?>").
WithLocation
(8, 37),
69560
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(System.Action<CL0<string?>>)M1<CL0<string>>").WithArguments("x", "void C.M1<CL0<string>>(CL0<string> x)", "System.Action<CL0<string?>>").
WithLocation
(10, 42),
69563
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(System.Action<CL0<string>>)M1<CL0<string?>>").WithArguments("x", "void C.M1<CL0<string?>>(CL0<string?> x)", "System.Action<CL0<string>>").
WithLocation
(11, 41)
69608
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "M1<string?>").WithArguments("string? C.M1<string?>()", "System.Func<string>").
WithLocation
(17, 34),
69611
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "M1<CL0<string>>").WithArguments("CL0<string> C.M1<CL0<string>>()", "System.Func<CL0<string?>>").
WithLocation
(22, 40),
69614
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "M1<CL0<string?>>").WithArguments("CL0<string?> C.M1<CL0<string?>>()", "System.Func<CL0<string>>").
WithLocation
(27, 39)
69647
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "(System.Func<string>)M1<string?>").WithArguments("string? C.M1<string?>()", "System.Func<string>").
WithLocation
(13, 34),
69650
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "(System.Func<CL0<string?>>)M1<CL0<string>>").WithArguments("CL0<string> C.M1<CL0<string>>()", "System.Func<CL0<string?>>").
WithLocation
(14, 40),
69653
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "(System.Func<CL0<string>>)M1<CL0<string?>>").WithArguments("CL0<string?> C.M1<CL0<string?>>()", "System.Func<CL0<string>>").
WithLocation
(15, 39)
69691
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(15, 13),
69694
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "Create(x).F").WithArguments("t", "void B<A>.F(A t)", "D<A?>").
WithLocation
(21, 14),
69697
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(23, 13));
69766
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "CL0 CL0.operator !(CL0 x)").
WithLocation
(10, 19),
69769
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "!x2").
WithLocation
(15, 18)
69906
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "CL0.implicit operator CL1(CL0 x)").
WithLocation
(10, 18),
69909
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("x", "CL0.implicit operator int(CL0 x)").
WithLocation
(15, 18),
69912
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3").
WithLocation
(22, 18),
69915
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x5").
WithLocation
(33, 18),
69918
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x7").
WithLocation
(44, 22),
69921
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x9").
WithLocation
(55, 21),
69924
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x10").
WithLocation
(60, 23),
69927
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x11").
WithLocation
(65, 19),
69930
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(CL4)x12").
WithLocation
(70, 19),
69933
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x14").
WithLocation
(81, 22),
69936
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)x14").
WithLocation
(82, 23),
69939
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x15").
WithLocation
(87, 22));
69967
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("CL0<string?>", "CL0<string>").
WithLocation
(10, 26),
69970
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(CL0<string>)x1").WithArguments("CL0<string?>", "CL0<string>").
WithLocation
(11, 26)
70005
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("B<object>", "A<object?>").
WithLocation
(7, 25),
70008
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("B<object>", "A<object?>").
WithLocation
(8, 14),
70011
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x2").WithArguments("B<object?>", "A<object>").
WithLocation
(13, 24),
70014
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x2").WithArguments("B<object?>", "A<object>").
WithLocation
(14, 14),
70017
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3").
WithLocation
(19, 25),
70020
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x3").WithArguments("B<object>", "A<object?>").
WithLocation
(19, 25),
70023
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3").
WithLocation
(20, 14),
70026
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x3").WithArguments("B<object>", "A<object?>").
WithLocation
(20, 14)
70061
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("IB<object>", "IA<object?>").
WithLocation
(7, 26),
70064
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("IB<object>", "IA<object?>").
WithLocation
(8, 14),
70067
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x2").WithArguments("IB<object?>", "IA<object>").
WithLocation
(13, 25),
70070
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x2").WithArguments("IB<object?>", "IA<object>").
WithLocation
(14, 14),
70073
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3").
WithLocation
(19, 26),
70076
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x3").WithArguments("IB<object>", "IA<object?>").
WithLocation
(19, 26),
70079
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3").
WithLocation
(20, 14),
70082
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x3").WithArguments("IB<object>", "IA<object?>").
WithLocation
(20, 14));
70105
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(10, 26));
70128
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(6, 26));
70152
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("A<string?>", "IOut<object>").
WithLocation
(11, 26));
70187
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a1").WithArguments("A<string>", "IIn<object?>").
WithLocation
(9, 26),
70190
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b1").WithArguments("B", "IIn<object?>").
WithLocation
(10, 13),
70193
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a2").WithArguments("A<string>", "IOut<object>").
WithLocation
(18, 26),
70196
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b2").WithArguments("B", "IOut<object>").
WithLocation
(19, 13));
70230
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("B<object>", "A<object?>", "a", "void C.G(A<object?> a)").
WithLocation
(18, 11)
70264
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("B<object?>", "A<object>", "a", "void C.G(params A<object>[] a)").
WithLocation
(16, 11)
70292
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 12)
70318
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 11)
70369
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("I<object>", "I<object?>").
WithLocation
(9, 25),
70372
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y1").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(10, 27),
70375
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w1").WithArguments("IBoth<object, object>", "IBoth<object?, object?>").
WithLocation
(12, 38),
70378
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x2").WithArguments("I<object?>", "I<object>").
WithLocation
(16, 24),
70381
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "z2").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(18, 27),
70384
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w2").WithArguments("IBoth<object?, object?>", "IBoth<object, object>").
WithLocation
(19, 36));
70424
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("I<object>", "I<object?>").
WithLocation
(10, 14),
70427
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y1").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(12, 14),
70430
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w1").WithArguments("IBoth<object, object>", "IBoth<object?, object?>").
WithLocation
(16, 14),
70433
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x2").WithArguments("I<object?>", "I<object>").
WithLocation
(21, 14),
70436
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "z2").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(25, 14),
70439
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w2").WithArguments("IBoth<object?, object?>", "IBoth<object, object>").
WithLocation
(27, 14));
70464
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object>", "I<object?>", "x", "void C.G(I<object?> x, IIn<object?> y, IOut<object?> z)").
WithLocation
(8, 11),
70467
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("IIn<object>", "IIn<object?>", "y", "void C.G(I<object?> x, IIn<object?> y, IOut<object?> z)").
WithLocation
(8, 14),
70470
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object?>", "I<object>", "x", "void C.F(I<object> x, IIn<object> y, IOut<object> z)").
WithLocation
(12, 11),
70473
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("IOut<object?>", "IOut<object>", "z", "void C.F(I<object> x, IIn<object> y, IOut<object> z)").
WithLocation
(12, 17));
70498
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "x").WithArguments("I<object>", "I<object?>", "x", "void C.G(out I<object?> x, out IIn<object?> y, out IOut<object?> z)").
WithLocation
(8, 15),
70501
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "z").WithArguments("IOut<object>", "IOut<object?>", "z", "void C.G(out I<object?> x, out IIn<object?> y, out IOut<object?> z)").
WithLocation
(8, 29),
70504
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "x").WithArguments("I<object?>", "I<object>", "x", "void C.F(out I<object> x, out IIn<object> y, out IOut<object> z)").
WithLocation
(12, 15),
70507
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "y").WithArguments("IIn<object?>", "IIn<object>", "y", "void C.F(out I<object> x, out IIn<object> y, out IOut<object> z)").
WithLocation
(12, 22)
70533
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object>", "I<object?>", "x", "void C.G(ref I<object?> x, ref IIn<object?> y, ref IOut<object?> z)").
WithLocation
(8, 15),
70536
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("IIn<object>", "IIn<object?>", "y", "void C.G(ref I<object?> x, ref IIn<object?> y, ref IOut<object?> z)").
WithLocation
(8, 22),
70539
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("IOut<object>", "IOut<object?>", "z", "void C.G(ref I<object?> x, ref IIn<object?> y, ref IOut<object?> z)").
WithLocation
(8, 29),
70542
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object?>", "I<object>", "x", "void C.F(ref I<object> x, ref IIn<object> y, ref IOut<object> z)").
WithLocation
(12, 15),
70545
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("IIn<object?>", "IIn<object>", "y", "void C.F(ref I<object> x, ref IIn<object> y, ref IOut<object> z)").
WithLocation
(12, 22),
70548
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("IOut<object?>", "IOut<object>", "z", "void C.F(ref I<object> x, ref IIn<object> y, ref IOut<object> z)").
WithLocation
(12, 29));
70573
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object>", "I<object?>", "x", "void C.G(in I<object?> x, in IIn<object?> y, in IOut<object?> z)").
WithLocation
(8, 14),
70576
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("IIn<object>", "IIn<object?>", "y", "void C.G(in I<object?> x, in IIn<object?> y, in IOut<object?> z)").
WithLocation
(8, 20),
70579
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object?>", "I<object>", "x", "void C.F(in I<object> x, in IIn<object> y, in IOut<object> z)").
WithLocation
(12, 14),
70582
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("IOut<object?>", "IOut<object>", "z", "void C.F(in I<object> x, in IIn<object> y, in IOut<object> z)").
WithLocation
(12, 26));
70635
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("o", "void E.F1B(object o)").
WithLocation
(11, 9),
70638
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object>", "I<object?>", "o", "void E.F2A(I<object?> o)").
WithLocation
(17, 9),
70641
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("I<object?>", "I<object>", "o", "void E.F2B(I<object> o)").
WithLocation
(20, 9),
70644
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("IIn<object>", "IIn<object?>", "o", "void E.F3A(IIn<object?> o)").
WithLocation
(26, 9),
70647
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("IOut<object?>", "IOut<object>", "o", "void E.F4B(IOut<object> o)").
WithLocation
(38, 9));
70688
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x, x!)").
WithLocation
(12, 9),
70691
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x!, x)").
WithLocation
(13, 9),
70694
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(z, z!)").
WithLocation
(23, 9),
70697
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(z!, z)").
WithLocation
(24, 9));
70725
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("I<object>", "I<object?>", "y", "object C.this[I<string> x, I<object?> y]").
WithLocation
(7, 16),
70728
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<string?>", "I<string>", "x", "object C.this[I<string> x, I<object?> y]").
WithLocation
(14, 16));
70799
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "CL0 CL0.operator ++(CL0 x)").
WithLocation
(10, 21),
70802
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("x", "CL0 CL0.operator ++(CL0 x)").
WithLocation
(16, 18),
70805
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2++").
WithLocation
(16, 18),
70808
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "--x3").
WithLocation
(21, 18),
70811
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3").
WithLocation
(22, 18),
70814
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4--").
WithLocation
(26, 19),
70817
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5").
WithLocation
(32, 18),
70820
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "--x5").
WithLocation
(32, 18),
70823
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6--").
WithLocation
(37, 9),
70826
Diagnostic(ErrorCode.ERR_UseDefViolation, "x7").WithArguments("x7").
WithLocation
(43, 9),
70829
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x7--").
WithLocation
(43, 9)
70898
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "CL0 CL0.operator ++(CL0 x)").
WithLocation
(10, 21),
70901
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("x", "CL0 CL0.operator ++(CL0 x)").
WithLocation
(16, 18),
70904
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2++").
WithLocation
(16, 18),
70907
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "--x3").
WithLocation
(21, 18),
70910
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4--").
WithLocation
(26, 19),
70913
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5").
WithLocation
(32, 18),
70916
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "--x5").
WithLocation
(32, 18)
71005
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1[0]").WithArguments("x", "CL0 CL0.operator ++(CL0 x)").
WithLocation
(10, 21),
71008
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2[0]").WithArguments("x", "CL0 CL0.operator ++(CL0 x)").
WithLocation
(16, 18),
71011
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2[0]++").
WithLocation
(16, 18),
71014
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "--x3[0]").
WithLocation
(21, 18),
71017
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4[0]--").
WithLocation
(26, 19),
71020
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5[0]").
WithLocation
(32, 18),
71023
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "--x5[0]").
WithLocation
(32, 18)
71069
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2++").
WithLocation
(16, 22),
71072
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "--x3").
WithLocation
(21, 22)
71117
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "C? A.operator ++(A x)").
WithLocation
(10, 19),
71120
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "++x1").WithArguments("x", "C.implicit operator B(C x)").
WithLocation
(10, 17)
71164
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "++x1").
WithLocation
(10, 16),
71167
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "++x1").
WithLocation
(10, 16)
71215
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("c", "Convertible.implicit operator int(Convertible c)").
WithLocation
(10, 29)
71257
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "CL1.implicit operator CL0(CL1 x)").
WithLocation
(10, 19)
71299
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "CL1 CL0.operator +(CL0 x, CL0 y)").
WithLocation
(10, 19),
71302
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y1").WithArguments("y", "CL1 CL0.operator +(CL0 x, CL0 y)").
WithLocation
(10, 25)
71364
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "CL1 CL0.operator +(CL0 x, CL0? y)").
WithLocation
(10, 19),
71367
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("x", "CL1 CL0.operator +(CL0 x, CL0? y)").
WithLocation
(17, 18),
71370
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2 += y2").
WithLocation
(17, 18),
71373
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2").
WithLocation
(18, 18),
71376
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3 += y3").
WithLocation
(24, 18),
71379
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3").
WithLocation
(25, 18),
71382
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x4").
WithLocation
(32, 18)
71454
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1").
WithLocation
(12, 18),
71457
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u1").
WithLocation
(13, 14),
71460
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2 += y2").
WithLocation
(18, 18),
71463
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2 += y2").
WithLocation
(18, 18),
71466
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2").
WithLocation
(19, 18),
71469
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x3 += y3").
WithLocation
(24, 9),
71472
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x4").WithArguments("x", "CL1? CL0.operator +(CL0 x, CL0? y)").
WithLocation
(29, 19),
71475
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x4 += y4").WithArguments("x", "CL1.implicit operator CL0(CL1 x)").
WithLocation
(29, 19),
71478
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x5 += y5").WithArguments("x", "CL1.implicit operator CL0(CL1 x)").
WithLocation
(36, 9),
71481
Diagnostic(ErrorCode.ERR_UseDefViolation, "x6").WithArguments("x6").
WithLocation
(42, 9),
71484
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6 += y6").
WithLocation
(42, 9));
71574
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1").WithArguments("x", "CL1.implicit operator CL0(CL1 x)").
WithLocation
(10, 19)
71641
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1[0]").WithArguments("x", "CL1.implicit operator CL0(CL1 x)").
WithLocation
(10, 19),
71644
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x1[0]").WithArguments("x", "CL1 CL0.operator +(CL0 x, CL0 y)").
WithLocation
(10, 19)
71680
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<object?>", "I<object>").
WithLocation
(12, 9),
71683
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("I<object?>", "I<object>", "x", "I<object> C.operator +(I<object> x, C y)").
WithLocation
(12, 9),
71686
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y += c").WithArguments("I<object>", "I<object?>").
WithLocation
(12, 9),
71689
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y += c").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(17, 9),
71692
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(22, 9),
71695
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("IOut<object?>", "IOut<object>", "x", "IOut<object> C.operator +(IOut<object> x, C y)").
WithLocation
(22, 9)
71759
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "E1").
WithLocation
(12, 9),
71762
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E2").WithArguments("event", "E2").
WithLocation
(16, 14),
71765
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(20, 12),
71768
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E3").WithArguments("event", "E3").
WithLocation
(24, 14),
71771
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "E3()").
WithLocation
(28, 21),
71774
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "E1").
WithLocation
(40, 28),
71777
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6").
WithLocation
(45, 14)
71857
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "E2").
WithLocation
(16, 28)
71897
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x1.E1 += y1").WithArguments("void", "System.Action").
WithLocation
(10, 28),
71900
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(10, 28),
71903
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x2.E1 -= y2").WithArguments("void", "System.Action").
WithLocation
(15, 28),
71906
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(15, 28)
71932
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E1").WithArguments("event", "E1").
WithLocation
(8, 32),
71935
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(12, 28)
71996
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "E1").
WithLocation
(33, 9),
71999
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "E1").
WithLocation
(39, 9)
72060
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "E1").
WithLocation
(21, 9),
72063
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "E1").
WithLocation
(27, 9),
72066
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "E1").
WithLocation
(33, 9),
72069
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "E1").
WithLocation
(39, 9),
72072
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "E1").
WithLocation
(45, 9)
72098
Diagnostic(ErrorCode.ERR_ObjectRequired, "E1").WithArguments("C.E1").
WithLocation
(10, 9),
72101
Diagnostic(ErrorCode.ERR_ObjectRequired, "E1").WithArguments("C.E1").
WithLocation
(11, 9)
72132
Diagnostic(ErrorCode.ERR_BadEventUsage, "E1").WithArguments("C.E1", "C").
WithLocation
(14, 18),
72135
Diagnostic(ErrorCode.ERR_BadEventUsage, "E1").WithArguments("C.E1", "C").
WithLocation
(16, 11)
72164
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("C.E1").
WithLocation
(6, 26)
72213
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E").WithArguments("event", "E").
WithLocation
(6, 30),
72216
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F1").WithArguments("a", "void B.F1(A<object> a)", "System.Action<A<object?>>").
WithLocation
(10, 17),
72219
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F2").WithArguments("a", "void B.F2(A<object>? a)", "System.Action<A<object?>>").
WithLocation
(11, 17),
72222
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(A<object> a) =>").WithArguments("a", "lambda expression", "System.Action<A<object?>>").
WithLocation
(26, 17),
72225
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(A<object>? a) =>").WithArguments("a", "lambda expression", "System.Action<A<object?>>").
WithLocation
(27, 17),
72228
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(A<object?>? a) =>").WithArguments("a", "lambda expression", "System.Action<A<object?>>").
WithLocation
(29, 17));
72283
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x3 as object").
WithLocation
(20, 21),
72286
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x4 as object").
WithLocation
(25, 21),
72289
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x5 as CL1").
WithLocation
(30, 18),
72292
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null as CL1").
WithLocation
(35, 18),
72295
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x7 as CL1").
WithLocation
(40, 18)
72321
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(6, 16),
72324
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(12, 60)
72362
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(6, 22),
72365
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(8, 22)
72410
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(11, 26),
72413
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(13, 26)
72443
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(6, 22),
72446
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(10, 22),
72449
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(14, 22)
72467
Diagnostic(ErrorCode.ERR_NameNotInContext, "bad").WithArguments("bad").
WithLocation
(6, 22)
72489
Diagnostic(ErrorCode.ERR_ConvertToStaticClass, "(C)x").WithArguments("C").
WithLocation
(6, 22),
72492
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C)x").
WithLocation
(6, 22),
72495
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "C").
WithLocation
(8, 60),
72498
Diagnostic(ErrorCode.ERR_ConvertToStaticClass, "(C?)y").WithArguments("C").
WithLocation
(10, 22)
72516
Diagnostic(ErrorCode.ERR_EmptyYield, "return").
WithLocation
(6, 15)
72539
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(6, 22)
72568
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(11, 26)
72643
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(8, 22),
72646
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(9, 22),
72649
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(26, 26)
72696
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(8, 22),
72699
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(9, 22),
72702
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(26, 26)
72771
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "await new D()").
WithLocation
(10, 20)
72793
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 15));
72813
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
72833
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Async()").
WithLocation
(6, 15)
72874
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "task").
WithLocation
(6, 15)
72895
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c?.M()").
WithLocation
(7, 15)
72921
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "task.Result").
WithLocation
(11, 9),
72924
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "await task").
WithLocation
(12, 10));
72948
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "thisIsNull").
WithLocation
(9, 9));
72968
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c?.field").
WithLocation
(7, 14)
72994
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "maybeNull1").
WithLocation
(7, 18),
72997
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "maybeNull2").
WithLocation
(8, 18)
73019
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c?.field").
WithLocation
(8, 14)
73050
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "M(a, b)").
WithLocation
(14, 16)
73072
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c?.field").
WithLocation
(8, 14)
73094
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c?.field").
WithLocation
(8, 14)
73126
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13),
73129
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(14, 13)
73163
Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").
WithLocation
(8, 13),
73166
Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").
WithLocation
(11, 13),
73169
Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").
WithLocation
(16, 13),
73172
Diagnostic(ErrorCode.WRN_UnreachableCode, "s1").
WithLocation
(21, 13)
73199
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 13),
73202
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(12, 13)
73224
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 13)
73380
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("B.E1").
WithLocation
(5, 33)
73443
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").
WithLocation
(10, 17),
73446
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2.P1").
WithLocation
(15, 14)
73487
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").
WithLocation
(10, 17)
73529
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "Nullable(1)").
WithLocation
(7, 6),
73532
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "Nullable(2)").
WithLocation
(8, 6),
73535
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "Nullable(0)").
WithLocation
(9, 13),
73538
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "Nullable(new byte[] {0})").
WithLocation
(11, 28),
73541
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "Nullable(0)").
WithLocation
(6, 6),
73544
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "Nullable(2)").
WithLocation
(17, 2),
73547
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("B.E1").
WithLocation
(7, 46)
73667
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").
WithLocation
(18, 18),
73670
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "E2").
WithLocation
(30, 19),
73673
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").
WithLocation
(13, 20),
73676
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").
WithLocation
(14, 20),
73679
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x21").WithArguments("x3", "void CL1.M3(Action x3)").
WithLocation
(15, 18),
73682
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.F2").
WithLocation
(29, 19),
73685
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.P2").
WithLocation
(30, 19),
73688
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.M2()").
WithLocation
(31, 19)
73700
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").
WithLocation
(13, 20),
73703
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").
WithLocation
(14, 20),
73706
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x21").WithArguments("x3", "void CL1.M3(Action x3)").
WithLocation
(15, 18),
73709
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.F2").
WithLocation
(29, 19),
73712
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.P2").
WithLocation
(30, 19),
73715
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.M2()").
WithLocation
(31, 19)
73832
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(15, 27),
73835
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 38),
73838
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E1").WithArguments("event", "E1").
WithLocation
(11, 29)
73850
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 38)
73868
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").
WithLocation
(10, 20),
73871
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").
WithLocation
(11, 20),
73874
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x21").WithArguments("x3", "void CL1.M3(Action x3)").
WithLocation
(12, 18),
73877
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.F2").
WithLocation
(24, 19),
73880
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.P2").
WithLocation
(25, 19),
73883
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.M2()").
WithLocation
(26, 19)
74000
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E1").WithArguments("event", "E1").
WithLocation
(9, 29),
74003
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(9, 38),
74006
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").
WithLocation
(15, 18),
74009
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "E2").
WithLocation
(25, 19)
74022
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(9, 38)
74141
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E1").WithArguments("event", "E1").
WithLocation
(9, 29),
74144
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 38),
74147
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").
WithLocation
(15, 18),
74150
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "E2").
WithLocation
(25, 19)
74163
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 38)
74287
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 22),
74290
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 22),
74293
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(23, 22),
74296
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 28),
74299
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "E2").
WithLocation
(30, 19),
74302
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.F2").
WithLocation
(27, 19),
74305
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.P2").
WithLocation
(28, 19),
74308
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.M2()").
WithLocation
(29, 19)
74318
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 22),
74321
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 22),
74324
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(23, 22)
74334
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.F2").
WithLocation
(27, 19),
74337
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.P2").
WithLocation
(28, 19),
74340
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.M2()").
WithLocation
(29, 19)
74350
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.F2").
WithLocation
(27, 19),
74353
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.P2").
WithLocation
(28, 19),
74356
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.M2()").
WithLocation
(29, 19)
74378
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "i").WithArguments("I<string?>", "I<string>").
WithLocation
(6, 42),
74381
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "i").WithArguments("I<string?>", "I<object>").
WithLocation
(7, 42));
74402
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "i").WithArguments("I<string>", "I<string?>").
WithLocation
(4, 42),
74405
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "i").WithArguments("I<object>", "I<string?>").
WithLocation
(5, 42));
74438
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F1").WithArguments("s", "void C.F1(string s)", "D<string?>").
WithLocation
(15, 20),
74441
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "F3").WithArguments("o", "void C.F3(object o)", "D<string?>").
WithLocation
(17, 20));
74474
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F2").WithArguments("string? C.F2()", "D<object>").
WithLocation
(12, 19),
74477
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "F4").WithArguments("object? C.F4()", "D<object>").
WithLocation
(14, 19));
74534
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(x2)[0]").
WithLocation
(15, 9),
74537
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(x3).P1").
WithLocation
(20, 9),
74540
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1<string?>").WithArguments("C.M1<T>(T?)", "T", "string?").
WithLocation
(25, 9),
74543
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1<string?>(x11)").
WithLocation
(25, 9),
74546
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1<string?[]>(x12)[0]").
WithLocation
(30, 9),
74549
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1<CL0<string?>?>").WithArguments("C.M1<T>(T?)", "T", "CL0<string?>?").
WithLocation
(35, 9),
74552
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1<CL0<string?>?>(x13)").
WithLocation
(35, 9),
74555
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1<CL0<string?>?>(x13).P1").
WithLocation
(35, 9),
74558
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P1").WithArguments("property", "P1").
WithLocation
(41, 14)
74577
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F2").WithArguments("F2").
WithLocation
(4, 6),
74580
Diagnostic(ErrorCode.ERR_NameNotInContext, "ERROR").WithArguments("ERROR").
WithLocation
(5, 8));
74624
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "F1").
WithLocation
(21, 27),
74627
Diagnostic(ErrorCode.ERR_BadArgType, "class3").WithArguments("1", "ConsoleApp1.Class3<ConsoleApp1.Class2>", "ConsoleApp1.Class3<ConsoleApp1.IClass2>").
WithLocation
(26, 20),
74630
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F3").WithArguments("F3").
WithLocation
(28, 18),
74633
Diagnostic(ErrorCode.ERR_NameNotInContext, "Console").WithArguments("Console").
WithLocation
(31, 13));
74651
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F2").WithArguments("F2").
WithLocation
(4, 6),
74654
Diagnostic(ErrorCode.ERR_NameNotInContext, "ERROR").WithArguments("ERROR").
WithLocation
(5, 8));
74672
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F2").WithArguments("F2").
WithLocation
(4, 6),
74675
Diagnostic(ErrorCode.ERR_NameNotInContext, "ERROR").WithArguments("ERROR").
WithLocation
(5, 8),
74678
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "null").WithArguments("<null>", "int").
WithLocation
(5, 39),
74681
Diagnostic(ErrorCode.ERR_NameNotInContext, "ERROR").WithArguments("ERROR").
WithLocation
(5, 45));
74704
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F2").WithArguments("F2").
WithLocation
(4, 6),
74707
Diagnostic(ErrorCode.ERR_BadAccess, "M").WithArguments("C.M()").
WithLocation
(5, 20));
74742
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result1").
WithLocation
(13, 9),
74745
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result2").
WithLocation
(16, 9),
74748
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result3").
WithLocation
(19, 9),
74751
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result4").
WithLocation
(22, 9)
74780
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "result1").
WithLocation
(9, 9),
74783
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "result2").
WithLocation
(12, 9),
74786
Diagnostic(ErrorCode.ERR_BadArgType, "null").WithArguments("2", "<null>", "int").
WithLocation
(14, 29),
74789
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Value").WithArguments("int", "Value").
WithLocation
(15, 17)
74815
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result1").
WithLocation
(9, 9),
74818
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result2").
WithLocation
(12, 9)
74844
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result1").
WithLocation
(9, 9),
74847
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result2").
WithLocation
(12, 9)
74873
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result1").
WithLocation
(9, 9),
74876
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result2").
WithLocation
(12, 9)
74910
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result1").
WithLocation
(13, 9),
74913
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result2").
WithLocation
(20, 9)
74945
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result3").
WithLocation
(15, 9),
74948
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result4").
WithLocation
(18, 9)
75040
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "value").
WithLocation
(23, 9),
75043
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "value").
WithLocation
(26, 9));
75091
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"M(""a"", default)").
WithLocation
(9, 9),
75094
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"M(""a"", null)").
WithLocation
(10, 9),
75097
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"M(""a"", s)").
WithLocation
(11, 9));
75122
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"M(""a"", default)").
WithLocation
(10, 9),
75125
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"M(""a"", null)").
WithLocation
(11, 9),
75128
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"M(""a"", s)").
WithLocation
(12, 9));
75171
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("C", "I.M<T>(T?)").
WithLocation
(5, 11),
75174
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M").WithArguments("C.M<T>(T?)").
WithLocation
(7, 12),
75177
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(7, 20));
75261
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 26));
75297
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 22),
75300
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(13, 22),
75303
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "(string)null").
WithLocation
(13, 22),
75306
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "(string?)null").
WithLocation
(14, 22),
75309
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "null as string").
WithLocation
(15, 22),
75312
Diagnostic(ErrorCode.ERR_AsNullableType, "string?").WithArguments("string").
WithLocation
(16, 30),
75315
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default(string)").
WithLocation
(17, 22),
75318
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(18, 22),
75321
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p.MiddleName").
WithLocation
(19, 23),
75324
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p.MiddleName ?? null").
WithLocation
(20, 22)
75363
Diagnostic(ErrorCode.ERR_AsNullableType, "string?").WithArguments("string").
WithLocation
(15, 18),
75366
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(12, 10),
75369
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "(string)null").
WithLocation
(12, 10),
75372
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "(string?)null").
WithLocation
(13, 10),
75375
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "null as string").WithArguments("s", "void Extensions.F(string s)").
WithLocation
(14, 10),
75378
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default(string)").
WithLocation
(16, 9),
75381
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(p != null) ? p.MiddleName : null").WithArguments("s", "void Extensions.F(string s)").
WithLocation
(17, 10),
75384
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p").
WithLocation
(18, 10),
75387
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "p.MiddleName ?? null").WithArguments("s", "void Extensions.F(string s)").
WithLocation
(18, 10)
75427
Diagnostic(ErrorCode.ERR_AsNullableType, "string?").WithArguments("string").
WithLocation
(16, 19),
75430
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 11),
75433
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(13, 11),
75436
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "(string)null").
WithLocation
(13, 11),
75439
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "(string?)null").
WithLocation
(14, 11),
75442
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "null as string").WithArguments("name", "void Program.G(string name)").
WithLocation
(15, 11),
75445
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default(string)").
WithLocation
(17, 11),
75448
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(18, 11),
75451
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(p != null) ? p.MiddleName : null").WithArguments("name", "void Program.G(string name)").
WithLocation
(19, 11),
75454
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p").
WithLocation
(20, 11),
75457
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "p.MiddleName ?? null").WithArguments("name", "void Program.G(string name)").
WithLocation
(20, 11)
75491
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(10, 27),
75494
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(11, 27),
75497
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(string)null").
WithLocation
(11, 27),
75500
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(string?)null").
WithLocation
(12, 27),
75503
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null as string").
WithLocation
(13, 27),
75506
Diagnostic(ErrorCode.ERR_AsNullableType, "string?").WithArguments("string").
WithLocation
(14, 35),
75509
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(string)").
WithLocation
(15, 27),
75512
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(16, 27),
75515
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(p != null) ? p.MiddleName : null").
WithLocation
(17, 35),
75518
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "p.MiddleName ?? null").
WithLocation
(18, 35)
75547
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(3, 25),
75550
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(5, 15),
75553
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(6, 27),
75556
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(7, 26),
75559
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(8, 18),
75562
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "default").WithArguments("default literal", "7.1").
WithLocation
(8, 11),
75565
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(9, 12));
75677
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "default").
WithLocation
(5, 11),
75680
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(6, 11),
75683
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(7, 12),
75686
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(8, 13),
75689
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(8, 13),
75692
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(9, 11),
75695
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(9, 11),
75698
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(9, 11),
75701
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(9, 11),
75704
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(9, 11),
75707
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(9, 11),
75710
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(10, 11),
75713
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(10, 11),
75716
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(10, 11),
75719
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(10, 11),
75722
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(10, 11),
75725
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, "s").
WithLocation
(10, 11)
75788
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, ".First()", isSuppressed: false).
WithLocation
(12, 24),
75791
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, ".First()", isSuppressed: false).
WithLocation
(13, 24),
75794
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, ".First()", isSuppressed: false).
WithLocation
(13, 24),
75797
Diagnostic(ErrorCode.ERR_DuplicateNullSuppression, ".First()", isSuppressed: false).
WithLocation
(13, 24));
75856
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "a.b?.c!.d.ToString()", isSuppressed: false).
WithLocation
(13, 23),
75859
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, ".c!.d", isSuppressed: false).
WithLocation
(13, 27),
75862
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "a.b?.c!.d!.ToString()", isSuppressed: false).
WithLocation
(14, 23));
75886
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "G(t!)").WithArguments("t", "T? C<T>.F(T t)").
WithLocation
(7, 11),
75889
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t").WithArguments("t", "T? C<T>.G(T t)").
WithLocation
(8, 13));
75918
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c ? x : y").
WithLocation
(7, 13),
75921
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(7, 21),
75924
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c ? y : x").
WithLocation
(8, 13),
75927
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(8, 17),
75930
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c ? x : y!").
WithLocation
(9, 13),
75933
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(10, 22),
75936
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c ? x : y").
WithLocation
(13, 13),
75939
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c ? x : y").WithArguments("C<object>", "C<object?>").
WithLocation
(13, 13),
75942
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(13, 21),
75945
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c ? x : y!").
WithLocation
(14, 13),
75948
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c ? x : y!").WithArguments("C<object>", "C<object?>").
WithLocation
(14, 13),
75951
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c ? x! : y").WithArguments("C<object>", "C<object?>").
WithLocation
(15, 13),
75954
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(15, 22),
75957
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c ? x! : y!").WithArguments("C<object>", "C<object?>").
WithLocation
(16, 13)
75984
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(6, 23),
75987
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<object>", "C<object?>").
WithLocation
(7, 23),
75990
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(8, 24),
75993
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<object>", "C<object?>").
WithLocation
(9, 24));
76022
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(6, 29),
76025
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(8, 30));
76047
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(6, 25),
76050
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(7, 25),
76053
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<object>", "C<object?>").
WithLocation
(7, 25)
76076
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(C<object>?)y").WithArguments("C<object?>", "C<object>").
WithLocation
(6, 18),
76079
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C<object?>)x").
WithLocation
(7, 18),
76082
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(C<object?>)x").WithArguments("C<object>", "C<object?>").
WithLocation
(7, 18)
76105
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "C<object>").
WithLocation
(8, 32),
76108
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(8, 39),
76111
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<object>", "C<object?>").
WithLocation
(8, 39)
76145
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("D<object?>", "D<object>", "key", "void D<int>.Add(D<object>? key, params D<object>?[] value)").
WithLocation
(19, 28),
76148
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("D<object?>", "D<object>", "key", "void D<int>.Add(D<object>? key, params D<object>?[] value)").
WithLocation
(19, 32),
76151
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("key", "void C<int>.Add(C<object?> key, params C<object?>[] value)").
WithLocation
(9, 28),
76154
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("C<object>", "C<object?>", "key", "void C<int>.Add(C<object?> key, params C<object?>[] value)").
WithLocation
(9, 28),
76157
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("C<object>", "C<object?>", "key", "void C<int>.Add(C<object?> key, params C<object?>[] value)").
WithLocation
(9, 31)
76184
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<object?>", "C<object>").
WithLocation
(7, 13),
76187
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object>", "C<object?>").
WithLocation
(10, 13)
76215
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("C<object?>", "I<object>").
WithLocation
(8, 13),
76218
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object>", "I<object?>").
WithLocation
(11, 13)
76249
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("C<object?>", "I<object>", "o", "void E.F1(I<object> o)").
WithLocation
(7, 9),
76252
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("C<object>", "I<object?>", "o", "void E.F2(I<object?> o)").
WithLocation
(9, 9)
76283
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b1").WithArguments("A<object?>", "A<object>").
WithLocation
(11, 14),
76286
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b2").WithArguments("A<object>", "A<object?>").
WithLocation
(14, 14)
76314
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(I<object?>)x").WithArguments("I<object?>", "I<object>").
WithLocation
(8, 13),
76317
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(I<object>)y").WithArguments("I<object>", "I<object?>").
WithLocation
(11, 13)
76345
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").
WithLocation
(10, 15),
76348
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t").
WithLocation
(10, 22));
76377
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").
WithLocation
(10, 15),
76380
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "c").WithArguments("List<string?>", "List<string>", "b", "void C.F(ref List<string> a, ref List<string>? b, ref List<string?> c, ref List<string?>? d)").
WithLocation
(10, 22),
76383
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").
WithLocation
(10, 22),
76386
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").
WithLocation
(10, 29),
76389
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "a").WithArguments("List<string>", "List<string?>", "d", "void C.F(ref List<string> a, ref List<string>? b, ref List<string?> c, ref List<string?>? d)").
WithLocation
(10, 36),
76392
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").
WithLocation
(10, 36));
76428
Diagnostic(ErrorCode.ERR_UseDefViolation, "b").WithArguments("b").
WithLocation
(15, 15),
76431
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").
WithLocation
(15, 15),
76434
Diagnostic(ErrorCode.ERR_UseDefViolation, "c").WithArguments("c").
WithLocation
(15, 22),
76437
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "c").WithArguments("List<string?>", "List<string>", "b", "void C.F(ref List<string> a, ref List<string>? b, ref List<string?> c, ref List<string?>? d)").
WithLocation
(15, 22),
76440
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c").
WithLocation
(15, 22),
76443
Diagnostic(ErrorCode.ERR_UseDefViolation, "d").WithArguments("d").
WithLocation
(15, 29),
76446
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").
WithLocation
(15, 29),
76449
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(15, 36),
76452
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "a").WithArguments("List<string>", "List<string?>", "d", "void C.F(ref List<string> a, ref List<string>? b, ref List<string?> c, ref List<string?>? d)").
WithLocation
(15, 36),
76455
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "a").
WithLocation
(15, 36),
76458
Diagnostic(ErrorCode.ERR_UseDefViolation, "b").WithArguments("b").
WithLocation
(23, 15),
76461
Diagnostic(ErrorCode.ERR_UseDefViolation, "c").WithArguments("c").
WithLocation
(23, 23),
76464
Diagnostic(ErrorCode.ERR_UseDefViolation, "d").WithArguments("d").
WithLocation
(23, 31),
76467
Diagnostic(ErrorCode.ERR_UseDefViolation, "a").WithArguments("a").
WithLocation
(23, 39));
76497
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").
WithLocation
(11, 22),
76500
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "c").WithArguments("List<string?>", "List<string>", "b", "void C.F(out List<string> a, out List<string>? b, out List<string?> c, out List<string?>? d)").
WithLocation
(11, 22),
76503
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").
WithLocation
(11, 36),
76506
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "a").WithArguments("List<string>", "List<string?>", "d", "void C.F(out List<string> a, out List<string>? b, out List<string?> c, out List<string?>? d)").
WithLocation
(11, 36)
76542
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(18, 19),
76545
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(18, 29),
76548
Diagnostic(ErrorCode.ERR_BadSKknown, "s").WithArguments("s", "variable", "type").
WithLocation
(18, 16),
76551
Diagnostic(ErrorCode.ERR_BadSKknown, "t").WithArguments("t", "variable", "type").
WithLocation
(18, 26),
76554
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t").
WithLocation
(13, 22),
76557
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "RefReturn()").
WithLocation
(15, 32));
76603
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(21, 9),
76606
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(25, 9));
76633
Diagnostic(ErrorCode.ERR_IllegalSuppression, "t").
WithLocation
(7, 9),
76636
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s").
WithLocation
(7, 14),
76639
Diagnostic(ErrorCode.ERR_IllegalSuppression, "t").
WithLocation
(8, 9),
76642
Diagnostic(ErrorCode.ERR_IllegalSuppression, "t").
WithLocation
(9, 10),
76645
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s").
WithLocation
(9, 16)
76677
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a").WithArguments("a", "A.implicit operator B(A a)").
WithLocation
(12, 14));
76743
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(10, 51),
76746
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c").WithArguments("C<string?>", "C<string>").
WithLocation
(10, 58),
76749
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(10, 61),
76754
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 51),
76757
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c").WithArguments("C<string?>", "C<string>").
WithLocation
(13, 58),
76760
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 61),
76765
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(16, 51),
76768
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c").WithArguments("C<string?>", "C<string>").
WithLocation
(16, 58),
76771
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(16, 61),
76776
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c").WithArguments("C<string?>", "C<string>").
WithLocation
(19, 59),
76779
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(19, 62),
76784
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default((string, (C<string>, string)))").
WithLocation
(25, 50),
76787
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default((string, (C<string>, string)))").
WithLocation
(25, 50),
76790
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default((string, (C<string>, string)))").
WithLocation
(25, 50),
76795
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(28, 51),
76798
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default((C<string>, string))").
WithLocation
(28, 57),
76801
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default((C<string>, string))").
WithLocation
(28, 57),
76806
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default((C<string>, string))").
WithLocation
(31, 58),
76809
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default((C<string>, string))").
WithLocation
(31, 58)
76869
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(c, null)").WithArguments("(C<string?> c, string?)", "(C<string>, string)").
WithLocation
(9, 51),
76872
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, (c, null))").WithArguments("(string?, (C<string>, string))", "(string, (C<string>, string))").
WithLocation
(9, 44),
76875
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1.Item1").
WithLocation
(10, 9),
76880
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(c, null)").WithArguments("(C<string?> c, string?)", "(C<string>, string)").
WithLocation
(14, 51),
76883
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2.Item1").
WithLocation
(15, 9),
76888
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, (c, null)!)").WithArguments("(string?, (C<string>, string))", "(string, (C<string>, string))").
WithLocation
(19, 44),
76891
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t3.Item1").
WithLocation
(20, 9),
76896
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t4.Item1").
WithLocation
(25, 9),
76901
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(c!, null!)").WithArguments("(C<string?>, string)", "(C<string>, string)").
WithLocation
(34, 52),
76906
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(c, null)").WithArguments("(C<string?> c, string?)", "(C<string>, string)").
WithLocation
(44, 51),
76909
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t8.Item1").
WithLocation
(45, 9));
76983
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(5, 12),
76986
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(6, 23),
76989
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(7, 21),
76992
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(8, 29));
77074
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(6, 20),
77077
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(7, 17),
77080
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(8, 27));
77115
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T1)").
WithLocation
(5, 9),
77118
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(7, 9),
77121
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T2)").
WithLocation
(12, 9)
77233
Diagnostic(ErrorCode.ERR_BadArgType, "F").WithArguments("1", "method group", "object").
WithLocation
(5, 11),
77236
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "c.P").WithArguments("C.P").
WithLocation
(6, 11));
77242
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(5, 11),
77245
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "c.P").WithArguments("C.P").
WithLocation
(6, 11));
77264
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(5, 46));
77270
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(5, 46));
77315
Diagnostic(ErrorCode.ERR_IndexedPropertyRequiresParams, "a.P").WithArguments("A.P").
WithLocation
(7, 20));
77349
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("s", "void C.G(string s)").
WithLocation
(14, 15));
77372
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(3, 17));
77424
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "i").
WithLocation
(15, 9));
77453
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "void C.F1(object o)").
WithLocation
(9, 16));
77476
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(6, 18),
77479
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "void C.F(object o)").
WithLocation
(8, 15));
77485
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "F").WithArguments("F", "object").
WithLocation
(6, 18),
77488
Diagnostic(ErrorCode.ERR_ConstantExpected, "F").
WithLocation
(6, 18),
77491
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "void C.F(object o)").
WithLocation
(8, 15));
77510
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(3, 26),
77513
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").
WithLocation
(4, 35));
77521
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(3, 26),
77524
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").
WithLocation
(4, 35));
77532
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(3, 26),
77535
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").
WithLocation
(4, 35));
77566
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 25)
77575
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "void C.G(object o)").
WithLocation
(9, 11));
77602
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F(s)").
WithLocation
(7, 13),
77605
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("s", "string? C.F(string s)").
WithLocation
(8, 11),
77608
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("s", "string? C.F(string s)").
WithLocation
(11, 11));
77638
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "a").WithArguments("a").
WithLocation
(11, 27));
77657
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "a").WithArguments("a").
WithLocation
(7, 5));
77682
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "b").WithArguments("b").
WithLocation
(11, 27));
77708
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "v").WithArguments("v").
WithLocation
(12, 21));
77728
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "v").WithArguments("v").
WithLocation
(8, 13)
77753
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(3, 37)
77773
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 13));
77826
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 31),
77829
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(7, 31),
77832
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default(string)").
WithLocation
(8, 31),
77835
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(10, 20),
77838
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "(string)null").
WithLocation
(10, 20),
77841
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "(string?)null").
WithLocation
(11, 20),
77844
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "S0").
WithLocation
(12, 31),
77847
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "S1").
WithLocation
(13, 31),
77850
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "F()").WithArguments("s").
WithLocation
(14, 31),
77853
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F()").
WithLocation
(14, 31),
77856
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(24, 12)
77893
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(7, 21),
77896
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(12, 31),
77899
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "(string)null").
WithLocation
(12, 31),
77902
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(13, 32),
77905
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(20, 15),
77908
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(21, 15),
77911
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(22, 19)
78029
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(5, 29),
78032
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 29),
78035
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(8, 29),
78038
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 29),
78041
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(10, 29),
78044
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(11, 32),
78047
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(15, 20),
78050
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(18, 20),
78053
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(24, 20),
78056
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(27, 15),
78059
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(30, 15),
78062
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(33, 28),
78065
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void P.F0<T>(T t = default(T))").
WithLocation
(39, 15),
78068
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void P.F6<T, T>(T t = default(T))").
WithLocation
(41, 18),
78071
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(46, 15),
78074
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(48, 15),
78077
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(50, 18),
78080
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void P.F0<T>(T t = default(T))").
WithLocation
(66, 15),
78083
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void P.F3<T>(T t = default(T))").
WithLocation
(69, 15),
78086
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void P.F6<T, T>(T t = default(T))").
WithLocation
(72, 18),
78089
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(78, 15),
78092
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(80, 15),
78095
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(82, 15),
78098
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(84, 15),
78101
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(86, 18),
78104
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void P.F0<T>(T t = default(T))").
WithLocation
(91, 15),
78107
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void P.F5<T>(T t = default(T))").
WithLocation
(93, 15),
78110
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void P.F6<T, T>(T t = default(T))").
WithLocation
(95, 18),
78113
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void P.F0<T>(T t = default(T))").
WithLocation
(100, 15),
78116
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void P.F6<T, U>(T t = default(T))").
WithLocation
(102, 18)
78123
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("NullableContextOptions", "Enable", "7.3", "8.0").
WithLocation
(1, 1)
78164
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(2, 2),
78167
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(9, 2),
78170
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(12, 2),
78173
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(15, 2),
78176
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(18, 2),
78179
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(20, 2)
78211
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Event").WithArguments("D.Event").
WithLocation
(19, 39)
78231
Diagnostic(ErrorCode.ERR_BadEventUsageNoField, "Event").WithArguments("D.Event").
WithLocation
(10, 11)
78238
Diagnostic(ErrorCode.ERR_BadEventUsageNoField, "Event").WithArguments("D.Event").
WithLocation
(10, 11)
78263
Diagnostic(ErrorCode.WRN_DefaultValueForUnconsumedLocation, "x").WithArguments("x").
WithLocation
(6, 34),
78266
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 38),
78269
Diagnostic(ErrorCode.WRN_DefaultValueForUnconsumedLocation, "y").WithArguments("y").
WithLocation
(6, 52),
78272
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(3, 56),
78275
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "G").WithArguments("x", "C.G(object, object?)").
WithLocation
(10, 9)
78309
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(4, 19),
78312
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(7, 19),
78315
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(10, 19),
78318
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(13, 19),
78321
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t").
WithLocation
(17, 12),
78324
Diagnostic(ErrorCode.ERR_NoConversionForNubDefaultParam, "t").WithArguments("T", "t").
WithLocation
(19, 16),
78327
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t").
WithLocation
(20, 12)
78374
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(7, 12),
78377
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(10, 12),
78380
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "i").
WithLocation
(13, 12),
78383
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "i").
WithLocation
(16, 12),
78386
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(19, 12),
78389
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(22, 12),
78392
Diagnostic(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, "null").
WithLocation
(24, 36)
78418
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(2, 22),
78421
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(6, 22),
78424
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "t").WithArguments("t").
WithLocation
(11, 18),
78427
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(11, 22)
78466
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "[Optional, DefaultParameterValue(null)] object obj").
WithLocation
(7, 20),
78469
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "[Optional, DefaultParameterValue(default(object))] object obj").
WithLocation
(11, 20),
78472
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(21, 9),
78475
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "[Optional, DefaultParameterValue((object)null)] object obj").
WithLocation
(23, 20),
78478
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)null").
WithLocation
(23, 53)
78511
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DefaultParameterValue(null!)").
WithLocation
(5, 31),
78514
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DefaultParameterValue(default)").
WithLocation
(9, 31),
78517
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "Optional").
WithLocation
(13, 21),
78520
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").
WithLocation
(13, 31),
78523
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 73),
78526
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "null").
WithLocation
(13, 73)
78553
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 40),
78556
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 24),
78559
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 36)
78586
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(2, 27),
78589
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "str").
WithLocation
(12, 32)
78621
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(4, 33),
78624
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M").WithArguments("s").
WithLocation
(19, 26)
78650
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 32),
78653
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(8, 32),
78656
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([AllowNull] string s = null) =>").WithArguments("s", "lambda expression", "<anonymous delegate>").
WithLocation
(10, 20),
78659
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([DisallowNull] string? s = null) =>").WithArguments("s", "lambda expression", "<anonymous delegate>").
WithLocation
(11, 20),
78662
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(11, 48),
78665
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, @"([DisallowNull] string? s = ""a"") =>").WithArguments("s", "lambda expression", "<anonymous delegate>").
WithLocation
(12, 20));
78682
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "throw new System.Exception()").WithArguments("throw").
WithLocation
(3, 38));
78700
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "default(T)").WithArguments("T", "System.Collections.Generic.IEnumerator<T>").
WithLocation
(4, 37),
78703
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").
WithLocation
(4, 37)
78731
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(T) v").
WithLocation
(13, 18));
78753
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(S)i").
WithLocation
(7, 15));
78800
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(S)c?.i").
WithLocation
(12, 15));
78828
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(13, 13),
78831
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.i").
WithLocation
(14, 13));
78853
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(S)i").
WithLocation
(7, 15));
78875
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)i").
WithLocation
(7, 15),
78878
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "i").
WithLocation
(8, 13));
78900
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(T)i").
WithLocation
(7, 15));
78920
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "c").WithArguments("C", "Deconstruct").
WithLocation
(5, 22),
78923
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "c").WithArguments("C", "2").
WithLocation
(5, 22),
78926
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x").WithArguments("x").
WithLocation
(5, 14),
78929
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y").WithArguments("y").
WithLocation
(5, 17));
78949
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".Invoke()").WithArguments("T").
WithLocation
(6, 18)
79009
Diagnostic(ErrorCode.ERR_ObjectRequired, "P").WithArguments("A.P").
WithLocation
(1, 4),
79012
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "A(P)").WithArguments("A", "1").
WithLocation
(1, 2),
79015
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(4, 17));
79038
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "c").WithArguments("c").
WithLocation
(5, 9),
79041
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(5, 9),
79044
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(7, 9));
79065
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "c").WithArguments("c").
WithLocation
(7, 20),
79068
Diagnostic(ErrorCode.ERR_ParamUnassigned, "G").WithArguments("c").
WithLocation
(5, 17),
79071
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.F").
WithLocation
(7, 20),
79074
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.F").
WithLocation
(8, 9));
79095
Diagnostic(ErrorCode.ERR_UseDefViolationField, "s.F").WithArguments("F").
WithLocation
(7, 20),
79098
Diagnostic(ErrorCode.ERR_ParamUnassigned, "G").WithArguments("s").
WithLocation
(5, 17),
79101
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s.F").
WithLocation
(7, 20),
79104
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s.F").
WithLocation
(8, 9)
79130
Diagnostic(ErrorCode.ERR_UseDefViolationField, "s.F").WithArguments("F").
WithLocation
(7, 13),
79133
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s.F").
WithLocation
(7, 13),
79136
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s.F").
WithLocation
(8, 9),
79139
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "F").WithArguments("S.F", "null").
WithLocation
(13, 17)
79174
Diagnostic(ErrorCode.ERR_UseDefViolationField, "s.F").WithArguments("F").
WithLocation
(14, 17),
79177
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s.F").
WithLocation
(14, 17),
79180
Diagnostic(ErrorCode.ERR_UseDefViolationField, "s.G").WithArguments("G").
WithLocation
(16, 13),
79183
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s.G").
WithLocation
(16, 13)
79209
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s.P").
WithLocation
(7, 13),
79212
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s.P").
WithLocation
(8, 9));
79232
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").
WithLocation
(6, 13),
79235
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "P").
WithLocation
(7, 9));
79255
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").
WithLocation
(6, 13),
79258
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "P").
WithLocation
(7, 9));
79278
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").
WithLocation
(6, 13),
79281
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "P").
WithLocation
(7, 9));
79303
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").
WithLocation
(6, 13),
79306
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "P").
WithLocation
(7, 9)
79328
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y.F").
WithLocation
(8, 20));
79349
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y.F").
WithLocation
(8, 20));
79369
Diagnostic(ErrorCode.ERR_ObjectRequired, "S.F").WithArguments("S.F").
WithLocation
(7, 9));
79417
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "_f").
WithLocation
(16, 22)
79459
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(4, 25),
79462
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(5, 33),
79465
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(6, 40),
79468
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(7, 37),
79471
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(Task<T>)").
WithLocation
(8, 37),
79474
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(9, 53),
79477
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(10, 48));
79507
Diagnostic(ErrorCode.ERR_TaskRetNoObjectRequired, "return").WithArguments("C.F0()", "System.Threading.Tasks.Task").
WithLocation
(5, 30),
79510
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(6, 39),
79513
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(8, 43),
79516
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").
WithLocation
(9, 43),
79519
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(10, 59),
79522
Diagnostic(ErrorCode.ERR_TaskRetNoObjectRequired, "return").WithArguments("C.G0()", "System.Threading.Tasks.Task").
WithLocation
(12, 31),
79525
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(13, 40),
79528
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(14, 44));
79547
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "i").
WithLocation
(4, 38),
79550
Diagnostic(ErrorCode.ERR_AnonDelegateCantUse, "i").WithArguments("i").
WithLocation
(6, 37));
79570
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(S)null").WithArguments("S").
WithLocation
(6, 15));
79617
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)null").
WithLocation
(6, 16),
79620
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)null").
WithLocation
(10, 16),
79623
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(14, 16),
79626
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(18, 16));
79656
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, ".F").
WithLocation
(17, 11));
79746
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("a", "A.implicit operator C(A a)").
WithLocation
(13, 13));
79771
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c").
WithLocation
(12, 15));
79806
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "new S<object>()").WithArguments("S<object>", "bool").
WithLocation
(6, 18));
79839
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b2").WithArguments("a", "A.explicit operator C(A a)").
WithLocation
(19, 26),
79842
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b2").WithArguments("a", "A.explicit operator C(A a)").
WithLocation
(20, 27));
79897
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C)a1").
WithLocation
(13, 13),
79900
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C)b1").
WithLocation
(15, 13),
79903
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C)(B)a1").
WithLocation
(17, 13),
79906
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C)(B?)a1").
WithLocation
(18, 13),
79909
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(D)a1").
WithLocation
(22, 13),
79912
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(D)b1").
WithLocation
(24, 13),
79915
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C)a2").
WithLocation
(30, 13),
79918
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C)b2").
WithLocation
(32, 13),
79921
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(D)a2").
WithLocation
(35, 13),
79924
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(D)b2").
WithLocation
(37, 13),
79927
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(A)b2").
WithLocation
(39, 16),
79930
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(D)(A)b2").
WithLocation
(39, 13),
79933
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(D)(A?)b2").
WithLocation
(40, 13),
79936
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(A)b2").
WithLocation
(41, 17));
79962
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b").WithArguments("a", "A.explicit operator S(A a)").
WithLocation
(12, 26),
79965
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b").WithArguments("a", "A.explicit operator S(A a)").
WithLocation
(13, 27));
80002
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(B)s").
WithLocation
(16, 18),
80005
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b1").
WithLocation
(17, 9),
80008
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(B)s").
WithLocation
(18, 16),
80011
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b2").
WithLocation
(19, 9),
80014
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(B)s").
WithLocation
(20, 15),
80017
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(B)s").
WithLocation
(20, 15),
80020
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(21, 9));
80049
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("a", "A.implicit operator C(A a)").
WithLocation
(13, 13),
80052
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("(B?, B)", "(C, C?)").
WithLocation
(13, 13),
80055
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("a", "A.implicit operator C(A a)").
WithLocation
(14, 13));
80080
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "t").WithArguments("t").
WithLocation
(12, 17),
80083
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("c", "C.implicit operator B(C c)").
WithLocation
(12, 22));
80164
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(string x, string? y)", "(string, string)").
WithLocation
(12, 31),
80167
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(object x, object? y)", "(object, object)").
WithLocation
(14, 31),
80170
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(x, y)").WithArguments("(string x, string? y)", "(string, string)", "t", "void E.F1A((string, string) t)").
WithLocation
(16, 13),
80173
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(x, y)").WithArguments("(object x, object? y)", "(object, object)", "t", "void E.F1C((object, object) t)").
WithLocation
(18, 13),
80176
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object>, A<object>)").
WithLocation
(27, 37),
80179
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object?>, A<object?>)").
WithLocation
(28, 39),
80182
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("A<object?>", "I<object>").
WithLocation
(29, 41),
80185
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("A<object>", "I<object?>").
WithLocation
(30, 40),
80188
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object>, A<object>)", "t", "void E.F2A((A<object>, A<object>) t)").
WithLocation
(31, 13),
80191
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object?>, A<object?>)", "t", "void E.F2B((A<object?>, A<object?>) t)").
WithLocation
(32, 13),
80194
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("A<object?>", "I<object>").
WithLocation
(33, 17),
80197
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("A<object>", "I<object?>").
WithLocation
(34, 14),
80200
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(B<object> x, B<object?> y)", "(B<object>, B<object>)").
WithLocation
(42, 37),
80203
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(B<object> x, B<object?> y)", "(B<object?>, B<object?>)").
WithLocation
(43, 39),
80206
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object>", "IIn<object?>").
WithLocation
(45, 44),
80209
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object>", "IIn<object?>").
WithLocation
(47, 14),
80212
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(C<object> x, C<object?> y)", "(C<object>, C<object>)").
WithLocation
(53, 37),
80215
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(C<object> x, C<object?> y)", "(C<object?>, C<object?>)").
WithLocation
(54, 39),
80218
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "IOut<object>").
WithLocation
(55, 47),
80221
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "IOut<object>").
WithLocation
(57, 17),
80224
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(u, default(T))").WithArguments("(T u, T?)", "(T, T)").
WithLocation
(64, 22),
80227
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(default(T), u)").WithArguments("(object?, object? u)", "(object, object)").
WithLocation
(65, 31));
80278
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(string x, string? y)", "(string, string)?").
WithLocation
(12, 32),
80281
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(object x, object? y)", "(object, object)?").
WithLocation
(14, 32),
80284
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object>, A<object>)?").
WithLocation
(19, 38),
80287
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object?>, A<object?>)?").
WithLocation
(20, 40),
80290
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("A<object?>", "I<object>").
WithLocation
(21, 42),
80293
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("A<object>", "I<object?>").
WithLocation
(22, 41),
80296
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object>", "IIn<object?>").
WithLocation
(27, 45),
80299
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "IOut<object>").
WithLocation
(31, 48),
80302
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(u, default(T))").WithArguments("(T u, T?)", "(T, T)?").
WithLocation
(36, 23),
80305
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(default(T), u)").WithArguments("(object?, object? u)", "(object, object)?").
WithLocation
(37, 32));
80356
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a1").WithArguments("(string x, string?)", "(string, string)").
WithLocation
(12, 31),
80359
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a1").WithArguments("(string x, string?)", "(object, object)").
WithLocation
(14, 31),
80362
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a2").WithArguments("(A<object> x, A<object?>)", "(A<object>, A<object>)").
WithLocation
(19, 37),
80365
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a2").WithArguments("(A<object> x, A<object?>)", "(A<object?>, A<object?>)").
WithLocation
(20, 39),
80368
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a2").WithArguments("(A<object> x, A<object?>)", "(I<object>, I<object>)").
WithLocation
(21, 37),
80371
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a2").WithArguments("(A<object> x, A<object?>)", "(I<object?>, I<object?>)").
WithLocation
(22, 39),
80374
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a3").WithArguments("(B<object> x, B<object?>)", "(IIn<object?>, IIn<object?>)").
WithLocation
(27, 43),
80377
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a4").WithArguments("(C<object> x, C<object?>)", "(IOut<object>, IOut<object>)").
WithLocation
(31, 43),
80380
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a5").WithArguments("(U, U)", "(object, object)").
WithLocation
(37, 31));
80431
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((string, string))(x, y)").WithArguments("(string x, string? y)", "(string, string)").
WithLocation
(12, 18),
80434
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((object, object))(x, y)").WithArguments("(object x, object? y)", "(object, object)").
WithLocation
(14, 18),
80437
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(14, 40),
80440
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((A<object>, A<object>))(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object>, A<object>)").
WithLocation
(19, 18),
80443
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((A<object?>, A<object?>))(x, y)").WithArguments("(A<object> x, A<object?> y)", "(A<object?>, A<object?>)").
WithLocation
(20, 18),
80446
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("A<object?>", "I<object>").
WithLocation
(21, 46),
80449
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("A<object>", "I<object?>").
WithLocation
(22, 45),
80452
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object>", "IIn<object?>").
WithLocation
(27, 49),
80455
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "IOut<object>").
WithLocation
(31, 52),
80458
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((U, U))(t, default(T))").WithArguments("(U? t, U?)", "(U, U)").
WithLocation
(36, 18),
80461
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((object, object))(default(T), t)").WithArguments("(object?, object? t)", "(object, object)").
WithLocation
(37, 18),
80464
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default(T)").
WithLocation
(37, 37),
80467
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t").
WithLocation
(37, 49));
80518
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((string, string)?)(x, y)").WithArguments("(string x, string? y)", "(string, string)?").
WithLocation
(12, 18),
80521
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(12, 41),
80524
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((object, object)?)(x, y)").WithArguments("(object x, object? y)", "(object, object)?").
WithLocation
(14, 18),
80527
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(14, 41),
80530
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("A<object?>", "A<object>").
WithLocation
(19, 47),
80533
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("A<object>", "A<object?>").
WithLocation
(20, 46),
80536
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("A<object?>", "I<object>").
WithLocation
(21, 47),
80539
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("A<object>", "I<object?>").
WithLocation
(22, 46),
80542
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("B<object>", "IIn<object?>").
WithLocation
(27, 50),
80545
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("C<object?>", "IOut<object>").
WithLocation
(31, 53),
80548
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((U, U)?)(t, default(T))").WithArguments("(U? t, U?)", "(U, U)?").
WithLocation
(36, 18),
80551
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((object, object)?)(default(T), t)").WithArguments("(object?, object? t)", "(object, object)?").
WithLocation
(37, 18),
80554
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default(T)").
WithLocation
(37, 38),
80557
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t").
WithLocation
(37, 50));
80608
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((string, string))a1").WithArguments("(string x, string?)", "(string, string)").
WithLocation
(12, 18),
80611
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((object, object))a1").WithArguments("(string x, string?)", "(object, object)").
WithLocation
(14, 18),
80614
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((A<object>, A<object>))a2").WithArguments("(A<object> x, A<object?>)", "(A<object>, A<object>)").
WithLocation
(19, 18),
80617
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((A<object?>, A<object?>))a2").WithArguments("(A<object> x, A<object?>)", "(A<object?>, A<object?>)").
WithLocation
(20, 18),
80620
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((I<object>, I<object>))a2").WithArguments("(A<object> x, A<object?>)", "(I<object>, I<object>)").
WithLocation
(21, 18),
80623
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((I<object?>, I<object?>))a2").WithArguments("(A<object> x, A<object?>)", "(I<object?>, I<object?>)").
WithLocation
(22, 18),
80626
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((IIn<object?>, IIn<object?>))a3").WithArguments("(B<object> x, B<object?>)", "(IIn<object?>, IIn<object?>)").
WithLocation
(27, 18),
80629
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((IOut<object>, IOut<object>))a4").WithArguments("(C<object> x, C<object?>)", "(IOut<object>, IOut<object>)").
WithLocation
(31, 18),
80632
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((object, object))default((T, T))").WithArguments("(T, T)", "(object, object)").
WithLocation
(37, 18));
80681
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(x, y)").WithArguments("(string x, string? y)", "(object, object)", "t", "void E.F1A((object, object) t)").
WithLocation
(11, 9),
80684
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(I<object>, I<object>)", "t", "void E.F2A((I<object>, I<object>) t)").
WithLocation
(18, 9),
80687
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(x, y)").WithArguments("(A<object> x, A<object?> y)", "(I<object?>, I<object?>)", "t", "void E.F2B((I<object?>, I<object?>) t)").
WithLocation
(19, 9),
80690
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(x, y)").WithArguments("(B<object> x, B<object?> y)", "(IIn<object?>, IIn<object?>)", "t", "void E.F3B((IIn<object?>, IIn<object?>) t)").
WithLocation
(26, 9),
80693
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(x, y)").WithArguments("(C<object> x, C<object?> y)", "(IOut<object>, IOut<object>)", "t", "void E.F4A((IOut<object>, IOut<object>) t)").
WithLocation
(32, 9));
80741
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t1").WithArguments("(string x, string?)", "(object, object)", "t", "void E.F1A((object, object) t)").
WithLocation
(11, 9),
80744
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t2").WithArguments("(A<object>, A<object?>)", "(I<object>, I<object>)", "t", "void E.F2A((I<object>, I<object>) t)").
WithLocation
(18, 9),
80747
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t2").WithArguments("(A<object>, A<object?>)", "(I<object?>, I<object?>)", "t", "void E.F2B((I<object?>, I<object?>) t)").
WithLocation
(19, 9),
80750
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t3").WithArguments("(B<object>, B<object?>)", "(IIn<object?>, IIn<object?>)", "t", "void E.F3B((IIn<object?>, IIn<object?>) t)").
WithLocation
(26, 9),
80753
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t4").WithArguments("(C<object>, C<object?>)", "(IOut<object>, IOut<object>)", "t", "void E.F4A((IOut<object>, IOut<object>) t)").
WithLocation
(32, 9));
80798
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t1").WithArguments("(string, string)?", "(string?, string?)?", "t", "void E.F1A((string?, string?)? t)").
WithLocation
(8, 9),
80801
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t2").WithArguments("(I<object?>, I<object?>)?", "(I<object>, I<object>)?", "t", "void E.F2B((I<object>, I<object>)? t)").
WithLocation
(16, 9),
80804
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t3").WithArguments("(IIn<object?>, IIn<object?>)?", "(IIn<object>, IIn<object>)?", "t", "void E.F3B((IIn<object>, IIn<object>)? t)").
WithLocation
(23, 9),
80807
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t4").WithArguments("(IOut<object?>, IOut<object?>)?", "(IOut<object>, IOut<object>)?", "t", "void E.F4B((IOut<object>, IOut<object>)? t)").
WithLocation
(30, 9));
80830
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t").WithArguments("(string, (string, string)?)", "(object, (string?, string?)?)", "t", "void E.FA((object, (string?, string?)?) t)").
WithLocation
(5, 9));
80852
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F((x, y)).Item2").
WithLocation
(7, 9),
80855
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F((y, x)).Item2").
WithLocation
(8, 9),
80858
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F((y, y)).Item2").
WithLocation
(9, 9));
80880
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F").WithArguments("C.F<T>((T, T?))", "T", "string?").
WithLocation
(8, 9),
80883
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F((y, x)).Item2").
WithLocation
(8, 9),
80886
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F").WithArguments("C.F<T>((T, T?))", "T", "string?").
WithLocation
(9, 9),
80889
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F((y, y)).Item2").
WithLocation
(9, 9));
80911
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F").WithArguments("C.F<T>((T, T?))", "T", "string?").
WithLocation
(8, 9),
80914
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(z)").
WithLocation
(8, 9),
80917
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F").WithArguments("C.F<T>((T, T?))", "T", "string?").
WithLocation
(9, 9),
80920
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(w)").
WithLocation
(9, 9));
80946
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t1").WithArguments("(string, string)", "(string, string?)", "t", "string C.F<string>(ref (string, string?) t)").
WithLocation
(7, 15),
80949
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t3").WithArguments("(string?, string)", "(string, string?)", "t", "string C.F<string>(ref (string, string?) t)").
WithLocation
(11, 15),
80952
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t4").WithArguments("(string?, string?)", "(string, string?)", "t", "string C.F<string>(ref (string, string?) t)").
WithLocation
(13, 15));
80974
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "(string, string) t1").WithArguments("(string, string)", "(string, string?)", "t", "string C.F<string>(out (string, string?) t)").
WithLocation
(6, 15),
80977
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "(string?, string) t3").WithArguments("(string?, string)", "(string, string?)", "t", "string C.F<string>(out (string, string?) t)").
WithLocation
(8, 15),
80980
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgumentForOutput, "(string?, string?) t4").WithArguments("(string?, string?)", "(string, string?)", "t", "string C.F<string>(out (string, string?) t)").
WithLocation
(9, 15));
81021
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<(string, string)>", "I<(string, string?)>", "t", "string C.F<string>(I<(string, string?)> t)").
WithLocation
(9, 11),
81024
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("I<(string?, string)>", "I<(string, string?)>", "t", "string C.F<string>(I<(string, string?)> t)").
WithLocation
(11, 11),
81027
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "w").WithArguments("I<(string?, string?)>", "I<(string, string?)>", "t", "string C.F<string>(I<(string, string?)> t)").
WithLocation
(12, 11),
81030
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("IIn<(string, string)>", "IIn<(string, string?)>", "t", "string C.F<string>(IIn<(string, string?)> t)").
WithLocation
(17, 11),
81033
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("IIn<(string?, string)>", "IIn<(string, string?)>", "t", "string C.F<string>(IIn<(string, string?)> t)").
WithLocation
(19, 11),
81036
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "w").WithArguments("IIn<(string?, string?)>", "IIn<(string, string?)>", "t", "string C.F<string>(IIn<(string, string?)> t)").
WithLocation
(20, 11),
81039
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("IOut<(string, string)>", "IOut<(string, string?)>", "t", "string C.F<string>(IOut<(string, string?)> t)").
WithLocation
(25, 11),
81042
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("IOut<(string?, string)>", "IOut<(string, string?)>", "t", "string C.F<string>(IOut<(string, string?)> t)").
WithLocation
(27, 11),
81045
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "w").WithArguments("IOut<(string?, string?)>", "IOut<(string, string?)>", "t", "string C.F<string>(IOut<(string, string?)> t)").
WithLocation
(28, 11)
81074
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1.Item1").
WithLocation
(8, 13));
81103
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t._7").
WithLocation
(8, 13),
81106
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t._8").
WithLocation
(9, 13),
81109
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item2").
WithLocation
(11, 13));
81132
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(6, 9),
81135
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(7, 9),
81138
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(8, 9)
81185
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(default(object), default(string))").WithArguments("(object?, string?)", "(object? a, string)").
WithLocation
(5, 33),
81188
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "t").WithArguments("(object? a, string)", "(object, string? b)").
WithLocation
(6, 33),
81191
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1").
WithLocation
(9, 9),
81194
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2").
WithLocation
(10, 9),
81197
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1").
WithLocation
(11, 9),
81200
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item2").
WithLocation
(12, 9));
81230
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, x, y)").WithArguments("(object?, object? x, object y)", "(object x, object? y, object? z)").
WithLocation
(5, 46),
81233
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.x").
WithLocation
(7, 9),
81236
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.y").
WithLocation
(8, 9),
81239
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, default(object))").WithArguments("(object x, object?)", "(object x, object y)").
WithLocation
(11, 34),
81242
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.y").
WithLocation
(14, 9));
81280
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, new A() { F = 1 })").WithArguments("(A?, A)", "(A, A?)").
WithLocation
(12, 22),
81283
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u1.x").
WithLocation
(14, 9),
81286
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, new B() { F = 2 })").WithArguments("(A?, A)", "(A, A?)").
WithLocation
(20, 22),
81289
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u2.x").
WithLocation
(22, 9));
81314
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(object? x, string? y)", "(object?, string)").
WithLocation
(5, 31),
81317
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "t").WithArguments("(object?, string)", "(object, string?)").
WithLocation
(6, 31),
81320
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1").
WithLocation
(7, 9),
81323
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2").
WithLocation
(8, 9),
81326
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1").
WithLocation
(9, 9),
81329
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item2").
WithLocation
(10, 9));
81354
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(object x, string? y)", "(object?, string)").
WithLocation
(5, 31),
81357
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "t").WithArguments("(object?, string)", "(object a, string? b)").
WithLocation
(6, 35),
81360
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2").
WithLocation
(8, 9),
81363
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item2").
WithLocation
(10, 9));
81391
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((object, string))(x, y)").WithArguments("(object x, string? y)", "(object, string)").
WithLocation
(5, 30),
81394
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(5, 52),
81397
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item2").
WithLocation
(11, 9),
81400
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "v.Item1").
WithLocation
(12, 9));
81432
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1.F").
WithLocation
(14, 9),
81435
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1.F").
WithLocation
(16, 9));
81476
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, x, x, y, y, (y, x), x, x, y, y)").WithArguments("(object, object, object, object?, object?, (object? y, object x), object, object, object?, object?)", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object)").
WithLocation
(6, 13),
81479
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item4").
WithLocation
(10, 9),
81482
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item5").
WithLocation
(11, 9),
81485
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item6.Item1").
WithLocation
(12, 9),
81488
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item9").
WithLocation
(18, 13),
81491
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item10").
WithLocation
(19, 13),
81494
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item2").
WithLocation
(24, 13),
81497
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item3").
WithLocation
(25, 13));
81538
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, x, x, default(object), default(object), default((object, object?)), x, x, default(object), default(object))").WithArguments("(object, object, object, object?, object?, (object, object?), object, object, object?, object?)", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object)").
WithLocation
(6, 13),
81541
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item4").
WithLocation
(10, 9),
81544
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item5").
WithLocation
(11, 9),
81547
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item6.Item1").
WithLocation
(12, 9),
81550
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item6.Item2").
WithLocation
(13, 9),
81553
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item9").
WithLocation
(18, 13),
81556
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item10").
WithLocation
(19, 13),
81559
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item2").
WithLocation
(24, 13),
81562
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item3").
WithLocation
(25, 13));
81589
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new ValueTuple<object?, string>(null, """") { Item1 = x }").WithArguments("(object?, string)", "(object, string?)").
WithLocation
(6, 31),
81592
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1").
WithLocation
(10, 9));
81641
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? y : null!").WithArguments("item4", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object).ValueTuple(object? item1, object item2, object? item3, object item4, object? item5, (object, object?) item6, object item7, (object, object?, object) rest)").
WithLocation
(10, 13),
81644
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? y : null!").WithArguments("item1", "(object, object?).ValueTuple(object item1, object? item2)").
WithLocation
(12, 45),
81647
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? y : null!").WithArguments("item3", "(object, object?, object).ValueTuple(object item1, object? item2, object item3)").
WithLocation
(14, 71),
81650
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item4").
WithLocation
(18, 9),
81653
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item5").
WithLocation
(19, 9),
81656
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item6.Item1").
WithLocation
(20, 9),
81659
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item9").
WithLocation
(26, 13),
81662
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item10").
WithLocation
(27, 13),
81665
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item2").
WithLocation
(32, 13),
81668
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item3").
WithLocation
(33, 13));
81717
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(10, 13),
81720
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item4").
WithLocation
(18, 9),
81723
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item5").
WithLocation
(19, 9),
81726
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item6.Item1").
WithLocation
(20, 9),
81729
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item6.Item2").
WithLocation
(21, 9),
81732
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item8").
WithLocation
(25, 13),
81735
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item9").
WithLocation
(26, 13),
81738
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item10").
WithLocation
(27, 13),
81741
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item1").
WithLocation
(31, 13),
81744
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item2").
WithLocation
(32, 13),
81747
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item3").
WithLocation
(33, 13));
81796
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("item4", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object).ValueTuple(object? item1, object item2, object? item3, object item4, object? item5, (object, object?) item6, object item7, (object, object?, object) rest)").
WithLocation
(10, 13),
81799
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(y, x)").WithArguments("(object? y, object x)", "(object, object?)", "item6", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object).ValueTuple(object? item1, object item2, object? item3, object item4, object? item5, (object, object?) item6, object item7, (object, object?, object) rest)").
WithLocation
(12, 13),
81802
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(x, y, y)").WithArguments("(object x, object?, object?)", "(object, object?, object)", "rest", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object).ValueTuple(object? item1, object item2, object? item3, object item4, object? item5, (object, object?) item6, object item7, (object, object?, object) rest)").
WithLocation
(14, 13),
81805
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item4").
WithLocation
(18, 9),
81808
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item5").
WithLocation
(19, 9),
81811
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item6.Item1").
WithLocation
(20, 9),
81814
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item9").
WithLocation
(26, 13),
81817
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item10").
WithLocation
(27, 13),
81820
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item2").
WithLocation
(32, 13),
81823
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item3").
WithLocation
(33, 13));
81872
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(10, 13),
81875
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item4").
WithLocation
(18, 9),
81878
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item5").
WithLocation
(19, 9),
81881
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item6.Item1").
WithLocation
(20, 9),
81884
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item6.Item2").
WithLocation
(21, 9),
81887
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item8").
WithLocation
(25, 13),
81890
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item9").
WithLocation
(26, 13),
81893
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item10").
WithLocation
(27, 13),
81896
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item1").
WithLocation
(31, 13),
81899
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item2").
WithLocation
(32, 13),
81902
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item3").
WithLocation
(33, 13));
81928
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "ValueTuple<object?, string>").WithArguments("item2", "(object?, string).ValueTuple(object?, string)").
WithLocation
(6, 21),
81931
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "ValueTuple<object?, string>").WithArguments("(object?, string)", "3").
WithLocation
(7, 21),
81934
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1").
WithLocation
(8, 9),
81937
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1").
WithLocation
(10, 9));
81973
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.y").
WithLocation
(16, 17),
81976
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "v.x").
WithLocation
(20, 17));
82004
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "t").WithArguments("(object? x, (string z, object? w) y)", "(object x, (string? z, object w) y)").
WithLocation
(6, 15),
82007
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.F.x").
WithLocation
(8, 9),
82010
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.F.y.w").
WithLocation
(10, 9),
82013
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1").
WithLocation
(11, 9),
82016
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item2.Item2").
WithLocation
(13, 9));
82041
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, s)").WithArguments("(object?, object s)", "(object, object?)?").
WithLocation
(5, 32),
82044
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Value.Item1").
WithLocation
(7, 9),
82047
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1").
WithLocation
(9, 9));
82067
Diagnostic(ErrorCode.ERR_UseDefViolation, "t").WithArguments("t").
WithLocation
(5, 31),
82070
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2").
WithLocation
(7, 9));
82093
Diagnostic(ErrorCode.ERR_NameNotInContext, "F").WithArguments("F").
WithLocation
(5, 9),
82096
Diagnostic(ErrorCode.ERR_NameNotInContext, "F").WithArguments("F").
WithLocation
(9, 36));
82122
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, 0)").WithArguments("(object? x, long)", "(object a, long b)").
WithLocation
(7, 32),
82125
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, (0, y)/*T:(int, string? y)*/)").WithArguments("(object? x, (long b, object c))", "(object a, (long b, object c))").
WithLocation
(8, 45),
82128
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(0, y)").WithArguments("(long, object? y)", "(long b, object c)").
WithLocation
(8, 49)
82180
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(default, default)").WithArguments("(object?, string?)", "(object? a, string)").
WithLocation
(5, 33),
82183
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "t").WithArguments("(object? a, string)", "(object, string? b)").
WithLocation
(6, 33),
82186
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1").
WithLocation
(9, 9),
82189
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2").
WithLocation
(10, 9),
82192
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1").
WithLocation
(11, 9),
82195
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item2").
WithLocation
(12, 9));
82225
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, x, y)").WithArguments("(object?, object? x, object y)", "(object x, object? y, object? z)").
WithLocation
(5, 46),
82228
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.x").
WithLocation
(7, 9),
82231
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.y").
WithLocation
(8, 9),
82234
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, default)").WithArguments("(object x, object?)", "(object x, object y)").
WithLocation
(11, 34),
82237
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.y").
WithLocation
(14, 9));
82259
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new ValueTuple<object?, string>(item2: """", item1: null) { Item1 = x }").WithArguments("(object?, string)", "(object, string?)").
WithLocation
(6, 31));
82307
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? y : x").WithArguments("item4", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object).ValueTuple(object? item1, object item2, object? item3, object item4, object? item5, (object, object?) item6, object item7, (object, object?, object) rest)").
WithLocation
(10, 13),
82310
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? y : x").WithArguments("item1", "(object, object?).ValueTuple(object item1, object? item2)").
WithLocation
(12, 45),
82313
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b ? y : x").WithArguments("item3", "(object, object?, object).ValueTuple(object item1, object? item2, object item3)").
WithLocation
(13, 73),
82316
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("item7", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object).ValueTuple(object? item1, object item2, object? item3, object item4, object? item5, (object, object?) item6, object item7, (object, object?, object) rest)").
WithLocation
(14, 20),
82319
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item4").
WithLocation
(18, 9),
82322
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item5").
WithLocation
(19, 9),
82325
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item6.Item1").
WithLocation
(20, 9),
82328
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item7").
WithLocation
(22, 9),
82331
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item9").
WithLocation
(26, 13),
82334
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item10").
WithLocation
(27, 13),
82337
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item2").
WithLocation
(32, 13),
82340
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Rest.Item3").
WithLocation
(33, 13));
82370
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(12, 9));
82398
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(11, 9));
82424
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Item1").
WithLocation
(7, 9));
82447
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Item1").
WithLocation
(6, 9));
82480
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.G").
WithLocation
(16, 9),
82483
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.G").
WithLocation
(18, 9));
82514
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.G").
WithLocation
(15, 9),
82517
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.G").
WithLocation
(17, 9)
82550
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Value.G").
WithLocation
(16, 9),
82553
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Value.G").
WithLocation
(18, 9)
82592
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 45),
82595
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1.F.G").
WithLocation
(13, 9),
82598
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1.G.F").
WithLocation
(14, 9),
82601
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(19, 45),
82604
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2.F.F").
WithLocation
(21, 9),
82607
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2.G.G").
WithLocation
(24, 9));
82630
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(9, 13)
82656
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(11, 13)
82681
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(9, 13)
82758
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 18),
82761
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(9, 9)
82780
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(6, 15)
82813
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 13),
82816
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(14, 13)
82839
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9),
82842
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(10, 9)
82869
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 13),
82872
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(14, 13)
82894
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 13)
82949
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e").
WithLocation
(10, 9),
82952
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e").
WithLocation
(15, 9),
82955
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e").
WithLocation
(20, 9),
82958
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e").
WithLocation
(25, 9),
82961
Diagnostic(ErrorCode.WRN_IsDynamicIsConfusing, "e is dynamic").WithArguments("is", "dynamic", "Object").
WithLocation
(39, 13));
83064
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e").
WithLocation
(17, 9));
83132
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F").WithArguments("field", "F").
WithLocation
(5, 21),
83135
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e.F").
WithLocation
(26, 9),
83138
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e.F").
WithLocation
(31, 9),
83141
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e.F").
WithLocation
(36, 9),
83144
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e.F").
WithLocation
(41, 9));
83170
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e").
WithLocation
(13, 9));
83198
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e").
WithLocation
(11, 29));
83231
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e.Property1.Property2").
WithLocation
(13, 29));
83278
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 37),
83281
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Value.G").
WithLocation
(13, 9),
83284
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Value.G").
WithLocation
(15, 9));
83308
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y").
WithLocation
(9, 9)
83359
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x1").WithArguments("long", "int?").
WithLocation
(5, 19),
83362
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x2").WithArguments("long?", "int?").
WithLocation
(10, 19),
83365
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y2").
WithLocation
(11, 9),
83368
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x3").WithArguments("long?", "int?").
WithLocation
(16, 19)
83413
Diagnostic(ErrorCode.ERR_NoImplicitConv, "a1").WithArguments("A", "B?").
WithLocation
(15, 17),
83416
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b1.Value.F").
WithLocation
(17, 9),
83419
Diagnostic(ErrorCode.ERR_NoImplicitConv, "a2").WithArguments("A?", "B?").
WithLocation
(22, 17),
83422
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b2.Value.F").
WithLocation
(24, 9),
83425
Diagnostic(ErrorCode.ERR_NoImplicitConv, "a3").WithArguments("A?", "B?").
WithLocation
(28, 17),
83428
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "b3").
WithLocation
(29, 13),
83431
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b3.Value.F").
WithLocation
(30, 9)
83459
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 36),
83462
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Value.G").
WithLocation
(13, 9));
83489
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 37),
83492
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.G").
WithLocation
(13, 9));
83516
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y").
WithLocation
(9, 9)
83541
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y").
WithLocation
(9, 9)
83575
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(int)x1").
WithLocation
(5, 18),
83578
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(long)x3").
WithLocation
(14, 19));
83601
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(int)c?.i").
WithLocation
(7, 18));
83624
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 13),
83627
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "c.i").
WithLocation
(9, 13));
83652
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b").
WithLocation
(8, 9));
83685
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1.F").
WithLocation
(14, 9),
83688
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.x.Value.F").
WithLocation
(16, 9),
83691
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "v.Item1.Value.F").
WithLocation
(18, 9)
83722
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1.F").
WithLocation
(13, 9),
83725
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Value.a.F").
WithLocation
(15, 9));
83749
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2").
WithLocation
(8, 9),
83752
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.a").
WithLocation
(9, 9),
83755
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.b").
WithLocation
(10, 9));
83779
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2").
WithLocation
(8, 9),
83782
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.b").
WithLocation
(10, 9));
83806
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y, z)").WithArguments("(object? x, object y, object? z)", "(object, object, object)").
WithLocation
(7, 38),
83809
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1").
WithLocation
(8, 9),
83812
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item3").
WithLocation
(10, 9));
83840
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(S<T>).F").
WithLocation
(12, 9),
83843
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(S<U>).F").
WithLocation
(13, 9),
83846
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "default(S<V?>).F").
WithLocation
(14, 13)
83876
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new S<T>().F").
WithLocation
(12, 9),
83879
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new S<U>().F").
WithLocation
(13, 9),
83882
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new S<V?>().F").
WithLocation
(14, 13)
83911
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F").
WithLocation
(12, 9),
83914
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(13, 9));
83941
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x.F").
WithLocation
(12, 13),
83944
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y.F").
WithLocation
(13, 13)
83972
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F").
WithLocation
(12, 9),
83975
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(13, 9));
84002
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x.F").
WithLocation
(12, 13),
84005
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y.F").
WithLocation
(13, 13)
84038
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.G").
WithLocation
(13, 9),
84041
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(15, 9),
84044
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(17, 47),
84047
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(17, 60),
84050
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z.F").
WithLocation
(18, 9),
84053
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z.G").
WithLocation
(19, 9));
84084
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(5, 14),
84087
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "S").
WithLocation
(5, 14),
84090
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F").
WithLocation
(13, 9));
84109
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(5, 13)
84149
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1.F").
WithLocation
(11, 9),
84152
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1.F").
WithLocation
(12, 9),
84155
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2.F").
WithLocation
(17, 9),
84158
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2.F").
WithLocation
(18, 9),
84161
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x3.F").
WithLocation
(23, 13),
84164
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y3.F").
WithLocation
(24, 13)
84193
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "y").WithArguments("<null>", "S<T>").
WithLocation
(9, 48),
84196
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new S<T>(default)").WithArguments("z").
WithLocation
(9, 67),
84199
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(9, 76),
84202
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F").
WithLocation
(11, 9));
84228
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(8, 42),
84231
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(11, 9));
84258
Diagnostic(ErrorCode.ERR_NoConversionForNubDefaultParam, "x").WithArguments("S<T>", "x").
WithLocation
(8, 28));
84310
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1.S1").
WithLocation
(22, 9),
84313
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1.T.T1").
WithLocation
(23, 9),
84316
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2.S1").
WithLocation
(29, 9),
84319
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2.T.T1").
WithLocation
(30, 9));
84351
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "Next").WithArguments("S.Next", "S").
WithLocation
(4, 16));
84386
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F").
WithLocation
(17, 9),
84389
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(19, 9));
84446
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "F").WithArguments("S.F", "S").
WithLocation
(4, 16),
84449
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.P").
WithLocation
(12, 9));
84476
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x.F").
WithLocation
(6, 13));
84503
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s.G").
WithLocation
(6, 9));
84565
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s.P").
WithLocation
(6, 9));
84589
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(10, 27));
84609
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default((object?, string))/*T:(object?, string!)*/.Item2").
WithLocation
(5, 9),
84612
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "default((int, int?))/*T:(int, int?)*/.Item2").
WithLocation
(6, 13)
84635
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new ValueTuple<object?, string>()/*T:(object?, string!)*/.Item2").
WithLocation
(6, 9),
84638
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "new ValueTuple<int, int?>()/*T:(int, int?)*/.Item2").
WithLocation
(7, 13)
84664
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1").
WithLocation
(7, 9),
84667
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2.Item2").
WithLocation
(8, 9),
84670
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1").
WithLocation
(9, 9),
84673
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item2.Item2").
WithLocation
(10, 9));
84695
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t.Item2").
WithLocation
(7, 13),
84698
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "u.Item2").
WithLocation
(8, 13)
84725
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1").
WithLocation
(8, 9),
84728
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2.Item2").
WithLocation
(9, 9),
84731
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1").
WithLocation
(10, 9),
84734
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item2.Item2").
WithLocation
(11, 9));
84758
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t.Item2").
WithLocation
(8, 13),
84761
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "u.Item2").
WithLocation
(9, 13)
84783
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "tuple.Item1").
WithLocation
(8, 9));
84806
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(5, 14),
84809
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(5, 23),
84812
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 17),
84815
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(7, 12),
84818
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? null : null").WithArguments("<null>", "<null>").
WithLocation
(8, 10),
84821
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(9, 10)
84850
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.x").
WithLocation
(8, 9),
84853
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.y").
WithLocation
(9, 9),
84856
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t.z").
WithLocation
(10, 13),
84859
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.x").
WithLocation
(11, 9),
84862
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.y").
WithLocation
(12, 9),
84865
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "u.z").
WithLocation
(13, 13)
84899
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "y").WithArguments("<null>", "(T, U, V?)").
WithLocation
(5, 20),
84902
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "(default(T), new U(), new V())").WithArguments("z").
WithLocation
(6, 24),
84905
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(default(T), new U(), new V())").WithArguments("(T?, U, V?)", "(T, U, V?)").
WithLocation
(6, 24),
84908
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Item1").
WithLocation
(10, 9),
84911
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Item2").
WithLocation
(11, 9),
84914
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x.Item3").
WithLocation
(12, 13),
84917
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Item1").
WithLocation
(13, 9),
84920
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y.Item3").
WithLocation
(15, 13),
84923
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z.Item1").
WithLocation
(16, 9),
84926
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "z.Item3").
WithLocation
(18, 13)
84951
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(y, x)").WithArguments("(string? y, string x)", "(string x, string? y)", "t", "C.C((string x, string? y) t)").
WithLocation
(9, 19),
84954
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(y, y)").WithArguments("(string?, string?)", "(string x, string? y)", "t", "C.C((string x, string? y) t)").
WithLocation
(10, 19));
84980
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(y, x)").WithArguments("(string? y, string x)", "(string x, string? y)", "t", "object? C.this[(string x, string? y) t]").
WithLocation
(10, 15),
84983
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(y, y)").WithArguments("(string?, string?)", "(string x, string? y)", "t", "object? C.this[(string x, string? y) t]").
WithLocation
(11, 15),
84986
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "t").WithArguments("(string? y, string x)", "(string x, string? y)", "t", "object? C.this[(string x, string? y) t]").
WithLocation
(13, 15));
85011
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(y, x)").WithArguments("(string? y, string x)", "(string, string?)", "item", "void List<(string, string?)>.Add((string, string?) item)").
WithLocation
(10, 13),
85014
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "(y, y)").WithArguments("(string?, string?)", "(string, string?)", "item", "void List<(string, string?)>.Add((string, string?) item)").
WithLocation
(11, 13));
85076
Diagnostic(ErrorCode.ERR_BadEventUsage, "E2").WithArguments("(object, object).E2", "(object, object)").
WithLocation
(27, 11),
85079
Diagnostic(ErrorCode.ERR_BadEventUsage, "E2").WithArguments("(object, object).E2", "(object, object)").
WithLocation
(32, 11),
85082
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F1").
WithLocation
(25, 9),
85085
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.P1").
WithLocation
(26, 9));
85135
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(29, 9),
85138
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Item2").
WithLocation
(30, 9));
85197
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 22),
85200
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 22)
85207
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "null").
WithLocation
(36, 22),
85210
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(45, 9),
85213
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.P").
WithLocation
(46, 9));
85240
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "x").WithArguments("(object, int)", "x").
WithLocation
(13, 22));
85246
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "x").WithArguments("(object, int)", "x").
WithLocation
(13, 22));
85272
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "x").WithArguments("(object, int)", "x").
WithLocation
(13, 42));
85352
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "i").WithArguments("I<object>", "F", "E.F<T>(I<T>, T)", "I<T>").
WithLocation
(12, 9));
85454
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 13),
85457
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(9, 13),
85460
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 9),
85463
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(11, 9),
85466
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 13),
85469
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(13, 13));
85499
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 15),
85502
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(11, 15),
85505
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.F").
WithLocation
(12, 9),
85508
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.P").
WithLocation
(13, 9));
85540
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").
WithLocation
(10, 36),
85543
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c1.F").
WithLocation
(11, 36),
85546
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.F").
WithLocation
(12, 9),
85549
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(17, 31),
85552
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c2.F").
WithLocation
(18, 31),
85555
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2.F").
WithLocation
(19, 9));
85593
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.F").
WithLocation
(9, 9),
85596
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.P").
WithLocation
(10, 9));
85669
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(17, 21),
85672
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(18, 14),
85675
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x1").
WithLocation
(19, 15),
85678
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(24, 14),
85681
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(25, 14),
85684
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2").
WithLocation
(26, 15),
85687
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(31, 14),
85690
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(32, 14),
85693
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x3").
WithLocation
(33, 15),
85696
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(38, 14),
85699
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(39, 14),
85702
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4").
WithLocation
(40, 15),
85705
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(46, 15),
85708
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(47, 15),
85711
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c.F").
WithLocation
(48, 15),
85714
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(54, 15),
85717
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(55, 15));
85768
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F").WithArguments("field", "F").
WithLocation
(4, 16),
85771
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(A<string>)null").
WithLocation
(12, 10),
85774
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(A<string>)null").
WithLocation
(12, 10),
85777
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(A<string>?)null").
WithLocation
(13, 10),
85780
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(A<string?>)default").
WithLocation
(14, 10),
85783
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(A<string?>)default").
WithLocation
(14, 10),
85786
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((A<string?>)default).F").
WithLocation
(14, 9),
85789
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(A<string?>?)default").
WithLocation
(15, 10),
85792
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((A<string?>?)default).F").
WithLocation
(15, 9),
85795
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(B2?)x1").WithArguments("A<string>", "B2").
WithLocation
(19, 10),
85798
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(B2?)x1").
WithLocation
(19, 10),
85801
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((B2?)x1).F").
WithLocation
(19, 9),
85804
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(B2)y1").
WithLocation
(20, 10),
85807
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(B2)y1").WithArguments("A<string>", "B2").
WithLocation
(20, 10),
85810
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(B2)y1").
WithLocation
(20, 10),
85813
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((B2)y1).F").
WithLocation
(20, 9),
85816
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(A<string?>?)x2").WithArguments("B1", "A<string?>").
WithLocation
(24, 10),
85819
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(A<string?>?)x2").
WithLocation
(24, 10),
85822
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((A<string?>?)x2).F").
WithLocation
(24, 9),
85825
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(A<string?>)y2").
WithLocation
(25, 10),
85828
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(A<string?>)y2").WithArguments("B1", "A<string?>").
WithLocation
(25, 10),
85831
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(A<string?>)y2").
WithLocation
(25, 10),
85834
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((A<string?>)y2).F").
WithLocation
(25, 9),
85837
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(B2?)x3").
WithLocation
(29, 10),
85840
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((B2?)x3).F").
WithLocation
(29, 9),
85843
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(B2)y3").
WithLocation
(30, 10),
85846
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(B2)y3").
WithLocation
(30, 10),
85849
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((B2)y3).F").
WithLocation
(30, 9),
85852
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(A<string>?)x4").WithArguments("B2", "A<string>").
WithLocation
(34, 10),
85855
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(A<string>?)x4").
WithLocation
(34, 10),
85858
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(A<string>)y4").
WithLocation
(35, 10),
85861
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(A<string>)y4").WithArguments("B2", "A<string>").
WithLocation
(35, 10),
85864
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(A<string>)y4").
WithLocation
(35, 10)
85897
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(B<object?>)x1").WithArguments("A<object>", "B<object?>").
WithLocation
(9, 13),
85900
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(B<object>)y1").WithArguments("A<object?>", "B<object>").
WithLocation
(10, 13),
85903
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(A<object?>)x2").WithArguments("B<object>", "A<object?>").
WithLocation
(17, 13),
85906
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(A<object>)y2").WithArguments("B<object?>", "A<object>").
WithLocation
(18, 13));
86039
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(I<object?>)x1").WithArguments("A<object>", "I<object?>").
WithLocation
(13, 13),
86042
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(I<object>)y1").WithArguments("A<object?>", "I<object>").
WithLocation
(14, 13),
86045
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(A<object?>)x2").WithArguments("I<object>", "A<object?>").
WithLocation
(21, 13),
86048
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(A<object>)y2").WithArguments("I<object?>", "A<object>").
WithLocation
(22, 13),
86051
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(IIn<object?>)x3").WithArguments("B<object>", "IIn<object?>").
WithLocation
(29, 13),
86054
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(B<object>)y4").WithArguments("IIn<object?>", "B<object>").
WithLocation
(38, 13),
86057
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(IOut<object>)y5").WithArguments("C<object?>", "IOut<object>").
WithLocation
(46, 13),
86060
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(C<object?>)x6").WithArguments("IOut<object>", "C<object?>").
WithLocation
(53, 13));
86125
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(B)x1").
WithLocation
(24, 24),
86128
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(B)y1").
WithLocation
(26, 24),
86131
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("a", "A2.implicit operator B?(A2 a)").
WithLocation
(32, 27),
86134
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(B)x2").
WithLocation
(32, 24),
86137
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("a", "A2.implicit operator B?(A2 a)").
WithLocation
(33, 28),
86140
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(B)y2").
WithLocation
(34, 24),
86143
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x4").WithArguments("a", "A4.implicit operator B(A4 a)").
WithLocation
(48, 27),
86146
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x4").WithArguments("a", "A4.implicit operator B(A4 a)").
WithLocation
(49, 28),
86149
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "flag").WithArguments("C.flag", "false").
WithLocation
(20, 17));
86182
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(A<string>)x1").WithArguments("A<string?>", "A<string>").
WithLocation
(14, 18),
86185
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(A<string?>)x2").WithArguments("A<string>", "A<string?>").
WithLocation
(18, 18));
86226
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "x1").WithArguments("A1<T>", "T", "T?").
WithLocation
(12, 27),
86229
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(B<T>)x1").WithArguments("B<T?>", "B<T>").
WithLocation
(17, 14),
86232
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(B<T>)y1").WithArguments("B<T?>", "B<T>").
WithLocation
(19, 14),
86235
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "x2").WithArguments("A2<T>", "T", "T?").
WithLocation
(21, 27),
86238
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(B<T>)x2").WithArguments("B<T?>", "B<T>").
WithLocation
(26, 14),
86241
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(B<T?>)y2").WithArguments("B<T>", "B<T?>").
WithLocation
(27, 14));
86258
Diagnostic(ErrorCode.ERR_ConvertToStaticClass, "(C)x").WithArguments("C").
WithLocation
(3, 35),
86261
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C)x").
WithLocation
(3, 35),
86264
Diagnostic(ErrorCode.ERR_ConvertToStaticClass, "(C?)y").WithArguments("C").
WithLocation
(4, 36)
86297
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(19, 13));
86329
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 13),
86332
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(16, 25),
86335
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(17, 13),
86338
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(19, 13));
86411
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(51, 13),
86414
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(52, 25),
86417
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(53, 13),
86420
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(58, 13),
86423
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "w").
WithLocation
(59, 25),
86426
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w").
WithLocation
(60, 13));
86452
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 13),
86455
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(10, 13));
86505
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "c").WithArguments("C<T>", "T", "T?").
WithLocation
(10, 28),
86508
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 13),
86511
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(15, 13),
86514
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z").
WithLocation
(16, 20),
86517
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(17, 13),
86520
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "w").
WithLocation
(18, 25),
86523
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w").
WithLocation
(19, 13));
86568
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "T?").WithArguments("S<T>", "T", "T?").
WithLocation
(25, 34),
86571
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(26, 13),
86574
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y2").
WithLocation
(27, 20),
86577
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "T?").WithArguments("S<T>", "T", "T?").
WithLocation
(27, 32),
86580
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(28, 13),
86583
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "T?").WithArguments("S<T>", "T", "T?").
WithLocation
(29, 33),
86586
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z2").
WithLocation
(30, 13),
86589
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "T?").WithArguments("S<T>", "T", "T?").
WithLocation
(31, 38),
86592
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w2").
WithLocation
(32, 13));
86631
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a1").WithArguments("I<object>", "I<object?>").
WithLocation
(9, 29),
86634
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a1.P").
WithLocation
(10, 13),
86637
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b1").WithArguments("I<object?>", "I<object>").
WithLocation
(11, 28),
86640
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a2").WithArguments("IIn<object>", "IIn<object?>").
WithLocation
(16, 31),
86643
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a3.P").
WithLocation
(24, 13),
86646
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b3").WithArguments("IOut<object?>", "IOut<object>").
WithLocation
(25, 31));
86675
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a1").
WithLocation
(8, 13),
86678
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a2").
WithLocation
(10, 13),
86681
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "a3").
WithLocation
(11, 20),
86684
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a3").
WithLocation
(12, 13),
86687
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b1").
WithLocation
(14, 13),
86690
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "b2").
WithLocation
(15, 20),
86693
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b2").
WithLocation
(16, 13));
86726
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a1.F").
WithLocation
(13, 13),
86729
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a2.F").
WithLocation
(15, 13),
86732
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a3").WithArguments("A<object?>", "A<object>").
WithLocation
(16, 28),
86735
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b1").WithArguments("A<object?>", "B").
WithLocation
(18, 20));
86770
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(15, 20),
86773
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(16, 13),
86776
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(19, 13));
86805
Diagnostic(ErrorCode.ERR_NullNotValid, "(IEnumerable?)null").
WithLocation
(7, 27),
86808
Diagnostic(ErrorCode.ERR_NullNotValid, "(IEnumerable<object>)default").
WithLocation
(10, 27),
86811
Diagnostic(ErrorCode.ERR_NullNotValid, "default(IEnumerable)").
WithLocation
(13, 27),
86814
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable?)null").
WithLocation
(7, 27),
86817
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(IEnumerable<object>)default").
WithLocation
(10, 27),
86820
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable<object>)default").
WithLocation
(10, 27));
86871
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(7, 27),
86874
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(IEnumerable)c1").
WithLocation
(16, 27),
86877
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable)c1").
WithLocation
(16, 27),
86880
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(29, 27),
86883
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable?)c2").
WithLocation
(35, 27));
86930
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(7, 27),
86933
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable<object>?)t1").
WithLocation
(13, 27),
86936
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(IEnumerable<object>)t1").
WithLocation
(19, 27),
86939
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable<object>)t1").
WithLocation
(19, 27),
86942
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable?)t2").
WithLocation
(25, 27),
86945
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(IEnumerable)t2").
WithLocation
(31, 27),
86948
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable)t2").
WithLocation
(31, 27));
86998
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(7, 27),
87001
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable?)t1").
WithLocation
(16, 27),
87004
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(IEnumerable)t1").
WithLocation
(22, 27),
87007
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable)t1").
WithLocation
(22, 27),
87010
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable<object>?)t2").
WithLocation
(28, 27),
87013
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(IEnumerable<object>)t2").
WithLocation
(34, 27),
87016
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable<object>)t2").
WithLocation
(34, 27));
87055
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e").
WithLocation
(10, 27),
87058
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(IEnumerable?)e").
WithLocation
(13, 27),
87061
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e").
WithLocation
(22, 27));
87108
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e").
WithLocation
(8, 27),
87111
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(10, 13),
87114
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(19, 13));
87139
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "item").WithArguments("object[]?[]", "object[][]").
WithLocation
(10, 29));
87219
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 13),
87222
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "enumerable2").
WithLocation
(14, 27),
87225
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "enumerable1").
WithLocation
(22, 27),
87228
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "enumerable2").
WithLocation
(42, 27),
87231
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "enumerable1").
WithLocation
(50, 27),
87234
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "enumerable2").
WithLocation
(56, 27));
87289
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 13),
87292
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 13),
87295
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(26, 13));
87353
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(15, 13),
87356
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(19, 13),
87359
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(28, 13));
87417
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(15, 13),
87420
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(19, 13),
87423
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(28, 13));
87455
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 13));
87497
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").
WithLocation
(17, 20),
87500
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t2").
WithLocation
(18, 20),
87503
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").
WithLocation
(19, 20),
87506
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "o1").
WithLocation
(24, 25),
87509
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o1").
WithLocation
(25, 20),
87512
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o2").
WithLocation
(27, 20));
87556
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").
WithLocation
(19, 20),
87559
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t2").
WithLocation
(20, 26),
87562
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").
WithLocation
(21, 20),
87565
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "o1").
WithLocation
(26, 31),
87568
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o1").
WithLocation
(27, 20),
87571
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o2").
WithLocation
(29, 20));
87616
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "alpha").
WithLocation
(23, 13),
87619
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "alpha").
WithLocation
(28, 13));
87649
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 13));
87759
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 13),
87762
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(12, 27),
87765
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(17, 27),
87768
Diagnostic(ErrorCode.ERR_NullNotValid, "(string)null").
WithLocation
(22, 27),
87771
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)null").
WithLocation
(22, 27),
87774
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(string)null").
WithLocation
(22, 27));
87821
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(10, 13),
87824
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b").
WithLocation
(11, 13)
87857
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 29));
87897
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 29),
87900
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(16, 29));
87936
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e").
WithLocation
(13, 29));
87963
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new A()").
WithLocation
(8, 26)
88015
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 17));
88071
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 17),
88074
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "new A<string?>()").WithArguments("Extensions.GetEnumerator<T>(A<T>)", "T", "string?").
WithLocation
(12, 26),
88077
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 17));
88109
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "new A<string?>()").WithArguments("Extensions.GetEnumerator<T>(A<T>)", "T", "string?").
WithLocation
(12, 26),
88112
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 17));
88141
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a").WithArguments("a", "IEnumerator<string> Extensions.GetEnumerator(A a)").
WithLocation
(8, 26));
88170
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(11, 17));
88227
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(12, 17));
88257
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(12, 17));
88287
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a").WithArguments("a", "IEnumerator<string> Extensions.GetEnumerator(A? a)").
WithLocation
(9, 26));
88314
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new A<IEnumerator<string>?>()").
WithLocation
(7, 26));
88346
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 17));
88373
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "new A<IEnumerator<string>?>()").WithArguments("Extensions.GetEnumerator<T>(A<T>)", "System.Collections.Generic.IEnumerator<string>", "T", "System.Collections.Generic.IEnumerator<string>?").
WithLocation
(7, 26),
88376
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new A<IEnumerator<string>?>()").
WithLocation
(7, 26)
88407
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new A()").
WithLocation
(8, 26)
88461
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "c").WithArguments("C<string>", "C<string?>", "c", "IEnumerator<int> CExt.GetEnumerator<string?>(C<string?> c, string? t = null)").
WithLocation
(8, 27)
88488
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(15, 71)
88516
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 17));
88572
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 17),
88575
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "new A<string?>()").WithArguments("Extensions.GetAsyncEnumerator<T>(A<T>)", "T", "string?").
WithLocation
(12, 32),
88578
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 17)
88611
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "new A<string?>()").WithArguments("Extensions.GetAsyncEnumerator<T>(A<T>)", "T", "string?").
WithLocation
(12, 32),
88614
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 17)
88644
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a").WithArguments("a", "IAsyncEnumerator<string> Extensions.GetAsyncEnumerator(A a)").
WithLocation
(8, 32)
88674
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(11, 17));
88731
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(12, 17));
88761
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(12, 17));
88791
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a").WithArguments("a", "IAsyncEnumerator<string> Extensions.GetAsyncEnumerator(A? a)").
WithLocation
(9, 32)
88819
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new A<IAsyncEnumerator<string>?>()").
WithLocation
(7, 32)
88852
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 17)
88880
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "new A<IAsyncEnumerator<string>?>()").WithArguments("Extensions.GetAsyncEnumerator<T>(A<T>)", "System.Collections.Generic.IAsyncEnumerator<string>", "T", "System.Collections.Generic.IAsyncEnumerator<string>?").
WithLocation
(7, 32),
88883
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new A<IAsyncEnumerator<string>?>()").
WithLocation
(7, 32)
88914
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "new A()").
WithLocation
(8, 32)
89013
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "F").WithArguments("C.F<T>(T?)", "A", "T", "B").
WithLocation
(8, 9));
89039
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(y)").
WithLocation
(11, 9));
89074
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(4, 22),
89077
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x1").WithArguments("I<string>", "I<string?>", "t", "string C.F1<string>(I<string?> t)").
WithLocation
(10, 12),
89080
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x2").WithArguments("I<string>", "I<string?>", "t", "string C.F2<string>(I<string?> t)").
WithLocation
(19, 12));
89245
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1").WithArguments("I<string?>", "I<string>", "y", "I<string> C.F<I<string>>(I<string> x, I<string> y)").
WithLocation
(8, 15),
89248
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1").WithArguments("I<string?>", "I<string>", "x", "I<string> C.F<I<string>>(I<string> x, I<string> y)").
WithLocation
(10, 11)
89363
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x1").WithArguments("I<IOut<string?>>", "I<IOut<string>>", "x", "I<IOut<string>> C.F<I<IOut<string>>>(I<IOut<string>> x, I<IOut<string>> y)").
WithLocation
(9, 11),
89366
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x1").WithArguments("I<IOut<string?>>", "I<IOut<string>>", "y", "I<IOut<string>> C.F<I<IOut<string>>>(I<IOut<string>> x, I<IOut<string>> y)").
WithLocation
(11, 15)
89407
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<string?>", "B<string>", "x", "string C.F<string>(B<string> x, B<string> y)").
WithLocation
(8, 11),
89410
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<string?>", "B<string>", "y", "string C.F<string>(B<string> x, B<string> y)").
WithLocation
(10, 14)
89468
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "x", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(8, 11),
89471
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "y", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(8, 14),
89474
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "x", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(10, 11),
89477
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "z", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(10, 17),
89480
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "x", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(11, 11),
89483
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "x", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(12, 11),
89486
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "x", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(14, 11),
89489
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "y", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(16, 14),
89492
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "z", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(16, 17),
89495
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "y", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(17, 14),
89498
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "y", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(18, 14),
89501
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "z", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(19, 17),
89504
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "z", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(22, 17),
89507
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "y", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(26, 14),
89510
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?>", "B<object>", "z", "B<object> Program.F<B<object>>(B<object> x, B<object> y, B<object> z)").
WithLocation
(28, 17)
89550
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "CreateB(y)").WithArguments("B<string>", "B<string?>", "y", "string? C.F<string?>(string? x, B<string?> y)").
WithLocation
(9, 14)
89595
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "CreateB(x)").WithArguments("B<string?>", "B<string>", "y", "string C.F<string>(IIn<string> x, B<string> y)").
WithLocation
(13, 25)
89653
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1").WithArguments("IIn<object?, string?>", "IIn<object, string>", "y", "IIn<object, string> C.F<IIn<object, string>>(IIn<object, string> x, IIn<object, string> y)").
WithLocation
(8, 15),
89656
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1").WithArguments("IIn<object?, string?>", "IIn<object, string>", "x", "IIn<object, string> C.F<IIn<object, string>>(IIn<object, string> x, IIn<object, string> y)").
WithLocation
(10, 11),
89659
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y2").WithArguments("IOut<object?, string?>", "IOut<object, string?>", "y", "IOut<object, string?> C.F<IOut<object, string?>>(IOut<object, string?> x, IOut<object, string?> y)").
WithLocation
(21, 15),
89662
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y2").WithArguments("IOut<object?, string?>", "IOut<object, string?>", "x", "IOut<object, string?> C.F<IOut<object, string?>>(IOut<object, string?> x, IOut<object, string?> y)").
WithLocation
(23, 11)
89688
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("IOut<string?>", "IOut<object>", "y", "IOut<object> Program.F<IOut<object>>(IOut<object> x, IOut<object> y)").
WithLocation
(7, 14));
89727
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "CreateIIn(x1)").WithArguments("IIn<IIn<string?>>", "IIn<IIn<string>>", "z", "IIn<string> Program.FIn<IIn<string>>(IIn<string> x, IIn<string> y, IIn<IIn<string>> z)").
WithLocation
(11, 21),
89730
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "CreateIIn(y2)").WithArguments("IIn<IOut<string>>", "IIn<IOut<string?>>", "z", "IOut<string?> Program.FIn<IOut<string?>>(IOut<string?> x, IOut<string?> y, IIn<IOut<string?>> z)").
WithLocation
(19, 21));
89754
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F").WithArguments("C.F<T>(T, T?)", "T", "C?").
WithLocation
(6, 9),
89757
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(x, x)").
WithLocation
(6, 9),
89760
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F").WithArguments("C.F<T>(T, T?)", "T", "C?").
WithLocation
(7, 9),
89763
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(x, y)").
WithLocation
(7, 9));
89787
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(x, x)").
WithLocation
(6, 9),
89790
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(x, y)").
WithLocation
(7, 9),
89793
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "F").WithArguments("C.F<T, U>(T, U)", "C", "U", "C?").
WithLocation
(8, 9));
89838
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("B<object?, string>", "B<object, string>", "x", "B<object, string> C.F<B<object, string>>(B<object, string> x, B<object, string> y)").
WithLocation
(13, 11),
89841
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("B<object, string?>", "B<object, string>", "y", "B<object, string> C.F<B<object, string>>(B<object, string> x, B<object, string> y)").
WithLocation
(13, 14),
89844
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("B<object?, string>", "B<object, string?>", "y", "B<object, string?> C.F<B<object, string?>>(B<object, string?> x, B<object, string?> y)").
WithLocation
(16, 14),
89847
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("B<object, string?>", "B<object, string>", "x", "B<object, string> C.F<B<object, string>>(B<object, string> x, B<object, string> y)").
WithLocation
(17, 11)
89894
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("IIn<B<object?, string>>", "IIn<B<object, string>>", "x", "B<object, string> C.F<B<object, string>>(IIn<B<object, string>> x, IIn<B<object, string>> y)").
WithLocation
(13, 11),
89897
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("IIn<B<object, string?>>", "IIn<B<object, string>>", "y", "B<object, string> C.F<B<object, string>>(IIn<B<object, string>> x, IIn<B<object, string>> y)").
WithLocation
(13, 14),
89900
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("IIn<B<object?, string>>", "IIn<B<object, string?>>", "y", "B<object, string?> C.F<B<object, string?>>(IIn<B<object, string?>> x, IIn<B<object, string?>> y)").
WithLocation
(16, 14),
89903
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("IIn<B<object, string?>>", "IIn<B<object, string>>", "x", "B<object, string> C.F<B<object, string>>(IIn<B<object, string>> x, IIn<B<object, string>> y)").
WithLocation
(17, 11)
90015
Diagnostic(ErrorCode.WRN_ManagedAddr, "x").WithArguments("object").
WithLocation
(4, 28),
90018
Diagnostic(ErrorCode.WRN_ManagedAddr, "y").WithArguments("object").
WithLocation
(4, 39),
90021
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("object*").
WithLocation
(7, 9),
90024
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("object*").
WithLocation
(8, 9),
90027
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("object*").
WithLocation
(9, 9),
90030
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("object*").
WithLocation
(10, 9),
90033
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("object*").
WithLocation
(11, 9),
90036
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("object*").
WithLocation
(12, 9),
90039
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("object*").
WithLocation
(13, 9),
90042
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("object*").
WithLocation
(14, 9),
90045
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("object*").
WithLocation
(15, 9),
90048
Diagnostic(ErrorCode.WRN_ManagedAddr, "z").WithArguments("object").
WithLocation
(20, 27)
90162
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1").WithArguments("I<(object?, string?)>", "I<(object, string)>", "y", "I<(object, string)> C.F<I<(object, string)>>(I<(object, string)> x, I<(object, string)> y)").
WithLocation
(12, 15),
90165
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1").WithArguments("I<(object?, string?)>", "I<(object, string)>", "x", "I<(object, string)> C.F<I<(object, string)>>(I<(object, string)> x, I<(object, string)> y)").
WithLocation
(14, 11),
90168
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y2").WithArguments("IIn<(object?, string?)>", "IIn<(object, string)>", "y", "IIn<(object, string)> C.F<IIn<(object, string)>>(IIn<(object, string)> x, IIn<(object, string)> y)").
WithLocation
(26, 15),
90171
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y2").WithArguments("IIn<(object?, string?)>", "IIn<(object, string)>", "x", "IIn<(object, string)> C.F<IIn<(object, string)>>(IIn<(object, string)> x, IIn<(object, string)> y)").
WithLocation
(28, 11),
90174
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x3").WithArguments("IOut<(object, string)>", "IOut<(object?, string?)>", "x", "IOut<(object?, string?)> C.F<IOut<(object?, string?)>>(IOut<(object?, string?)> x, IOut<(object?, string?)> y)").
WithLocation
(40, 11),
90177
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x3").WithArguments("IOut<(object, string)>", "IOut<(object?, string?)>", "y", "IOut<(object?, string?)> C.F<IOut<(object?, string?)>>(IOut<(object?, string?)> x, IOut<(object?, string?)> y)").
WithLocation
(42, 15));
90223
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y0").WithArguments("B<object, string?>", "B<object?, string>").
WithLocation
(17, 13),
90226
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w0").WithArguments("B<object, string>", "B<object?, string>").
WithLocation
(19, 13),
90229
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "z0").WithArguments("B<object?, string>", "B<object, string?>").
WithLocation
(20, 13),
90232
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "w0").WithArguments("B<object, string>", "B<object, string?>").
WithLocation
(21, 13),
90235
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "z0").WithArguments("B<object?, string>", "B<object, string>").
WithLocation
(22, 13)
90289
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1").WithArguments("I<string?>", "I<string>", "y", "string C.F<string>(I<string> x, I<string> y)").
WithLocation
(13, 15),
90292
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1").WithArguments("I<string?>", "I<string>", "x", "string C.F<string>(I<string> x, I<string> y)").
WithLocation
(14, 11),
90295
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(y1, y1)").
WithLocation
(15, 9),
90298
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(y2, y2)").
WithLocation
(26, 9),
90301
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(x3, y3)").
WithLocation
(35, 9),
90304
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(y3, x3)").
WithLocation
(36, 9),
90307
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(y3, y3)").
WithLocation
(37, 9));
90359
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x1").WithArguments("I<string>", "I<string?>", "y", "string C.F<string>(I<string> x, I<string?> y)").
WithLocation
(12, 15),
90362
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1").WithArguments("I<string?>", "I<string>", "x", "string C.F<string>(I<string> x, I<string?> y)").
WithLocation
(14, 11),
90365
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x1").WithArguments("I<string>", "I<string?>", "y", "string C.F<string>(I<string> x, I<string?> y)").
WithLocation
(14, 15),
90368
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1").WithArguments("I<string?>", "I<string>", "x", "string C.F<string>(I<string> x, I<string?> y)").
WithLocation
(15, 11),
90371
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x2").WithArguments("IIn<string>", "IIn<string?>", "y", "string C.F<string>(IIn<string> x, IIn<string?> y)").
WithLocation
(23, 15),
90374
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x2").WithArguments("IIn<string>", "IIn<string?>", "y", "string C.F<string>(IIn<string> x, IIn<string?> y)").
WithLocation
(25, 15),
90377
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F").WithArguments("C.F<T>(IOut<T>, IOut<T?>)", "T", "string?").
WithLocation
(36, 9),
90380
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(y3, x3)").
WithLocation
(36, 9),
90383
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F").WithArguments("C.F<T>(IOut<T>, IOut<T?>)", "T", "string?").
WithLocation
(37, 9),
90386
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(y3, y3)").
WithLocation
(37, 9));
90465
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(x2.A1, y2.A2)/*T:A<object?>!*/.F").
WithLocation
(10, 9),
90468
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(x3.A2, y3.A1)/*T:A<object?>!*/.F").
WithLocation
(14, 9),
90471
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(x4.A2, y4.A2)/*T:A<object?>!*/.F").
WithLocation
(18, 9),
90474
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x7.A2").WithArguments("A<object?>", "A<object>", "x", "A<object> C.F<A<object>>(A<object> x, A<object> y)").
WithLocation
(30, 11),
90477
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y8.A2").WithArguments("A<object?>", "A<object>", "y", "A<object> C.F<A<object>>(A<object> x, A<object> y)").
WithLocation
(34, 18)
90515
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F").WithArguments("field", "F").
WithLocation
(3, 16),
90518
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(21, 27),
90521
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(23, 19));
90549
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, @"d2[""""]").
WithLocation
(10, 9));
90578
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(y: y, x: x)").
WithLocation
(10, 9));
90604
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(y)").
WithLocation
(11, 9));
90628
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(F2())").
WithLocation
(9, 9));
90652
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(Q)").
WithLocation
(9, 9));
90676
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(F2)").
WithLocation
(9, 9));
90720
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("C.F<T>(T)").
WithLocation
(9, 9),
90723
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(default(object))").
WithLocation
(6, 9),
90726
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(default(string))").
WithLocation
(8, 9));
90747
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(t).Item2").
WithLocation
(8, 9));
90775
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(t).Item2").
WithLocation
(8, 9),
90778
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(t).y").
WithLocation
(10, 9),
90781
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(u).Item2").
WithLocation
(13, 9),
90784
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(u).b").
WithLocation
(15, 9));
90805
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.y").
WithLocation
(8, 9));
90898
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(x ?? x)").
WithLocation
(9, 17),
90901
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(x ?? y)").
WithLocation
(12, 17),
90904
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(y ?? y)").
WithLocation
(18, 17));
90934
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a.F").WithArguments("s", "void Program.G(string s)").
WithLocation
(10, 11),
90937
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b.F").WithArguments("s", "void Program.G(string s)").
WithLocation
(13, 11));
90962
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(4, 24),
90965
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.field").
WithLocation
(8, 16),
90968
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.field").
WithLocation
(11, 16));
90997
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a.P").WithArguments("s", "void Program.G(string s)").
WithLocation
(9, 11),
91000
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b.P").WithArguments("s", "void Program.G(string s)").
WithLocation
(12, 11));
91029
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a.P").WithArguments("s", "void Program.G(string s)").
WithLocation
(9, 11),
91032
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b.P").WithArguments("s", "void Program.G(string s)").
WithLocation
(12, 11));
91065
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "this.P").WithArguments("s", "void A.F(string s)").
WithLocation
(17, 11),
91068
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "base.P").WithArguments("s", "void A.F(string s)").
WithLocation
(19, 11),
91071
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "P").WithArguments("s", "void A.F(string s)").
WithLocation
(9, 11));
91093
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.F").
WithLocation
(9, 9));
91138
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.A").
WithLocation
(24, 13),
91141
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.A").
WithLocation
(26, 13),
91144
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.B").
WithLocation
(28, 13),
91147
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.A").
WithLocation
(28, 13),
91150
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.B").
WithLocation
(30, 13),
91153
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.A").
WithLocation
(30, 13),
91156
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(32, 13),
91159
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.B").
WithLocation
(32, 13),
91162
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.A").
WithLocation
(32, 13));
91208
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.A").
WithLocation
(17, 13),
91211
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.A.A").
WithLocation
(17, 13),
91214
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.F").
WithLocation
(18, 13),
91217
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.A.A").
WithLocation
(21, 13),
91220
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.F").
WithLocation
(22, 13),
91223
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.A.A").
WithLocation
(29, 13),
91226
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.F").
WithLocation
(30, 13),
91229
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.A").
WithLocation
(32, 13),
91232
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.A.A").
WithLocation
(32, 13),
91235
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.F").
WithLocation
(33, 13));
91281
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.A").
WithLocation
(17, 13),
91284
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.A.A").
WithLocation
(17, 13),
91287
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.P").
WithLocation
(18, 13),
91290
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.A.A").
WithLocation
(21, 13),
91293
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.P").
WithLocation
(22, 13),
91296
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.A.A").
WithLocation
(29, 13),
91299
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.P").
WithLocation
(30, 13),
91302
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.A").
WithLocation
(32, 13),
91305
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.A.A").
WithLocation
(32, 13),
91308
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c.B.P").
WithLocation
(33, 13));
91347
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "b.A.F").
WithLocation
(23, 13),
91350
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "b.G").
WithLocation
(25, 13),
91353
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "b.A.F").
WithLocation
(26, 13));
91382
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F.P").
WithLocation
(13, 13));
91409
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F.P").
WithLocation
(12, 13));
91440
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F.P").
WithLocation
(8, 13));
91463
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "P").
WithLocation
(8, 13));
91491
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F.P").
WithLocation
(12, 13));
91523
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "sx.P").
WithLocation
(15, 9));
91598
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.G.F2").
WithLocation
(19, 9),
91601
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.G.F1").
WithLocation
(21, 9),
91604
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.G.F1").
WithLocation
(24, 9),
91607
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.G.F2").
WithLocation
(25, 9));
91645
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.G.F2").
WithLocation
(19, 9),
91648
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.G.F1").
WithLocation
(21, 9),
91651
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.G.F1").
WithLocation
(24, 9),
91654
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.G.F2").
WithLocation
(25, 9));
91692
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Q.P2").
WithLocation
(19, 9),
91695
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Q.P1").
WithLocation
(21, 9),
91698
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Q.P1").
WithLocation
(24, 9),
91701
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Q.P2").
WithLocation
(25, 9));
91725
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.E").
WithLocation
(9, 9));
91762
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.F").
WithLocation
(18, 9),
91765
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.F").
WithLocation
(23, 9));
91806
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.F").
WithLocation
(17, 9),
91809
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.F").
WithLocation
(27, 9));
91840
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(15, 36),
91843
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((B)a).FA").
WithLocation
(16, 9));
91875
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 28));
91905
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 16));
91939
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 16),
91942
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "o").WithArguments("object", "IB").
WithLocation
(16, 13),
91945
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.PA").
WithLocation
(17, 9),
91948
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((IB)o).PA").
WithLocation
(20, 9));
91975
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((C)x).F").
WithLocation
(11, 13),
91978
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((C)y).F").
WithLocation
(13, 13)
92026
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((I)x).P").
WithLocation
(10, 13),
92029
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((I)y).P").
WithLocation
(12, 13)
92090
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(a = new B() { F = null }).F").
WithLocation
(25, 13));
92120
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 30));
92147
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 37),
92150
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Value.Q").
WithLocation
(12, 9));
92179
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 55),
92182
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(((C, C))t).Item2.G").
WithLocation
(12, 9),
92185
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 55),
92188
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((C)u.Value.Item2).G").
WithLocation
(15, 9));
92217
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 55),
92220
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(((S, S))t).Item2.G").
WithLocation
(12, 9),
92223
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 55),
92226
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((S)u.Value.Item2).G").
WithLocation
(15, 9));
92259
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 37),
92262
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1.Value.Item2.G").
WithLocation
(13, 9),
92265
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(17, 37),
92268
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2.Value.Item2.G").
WithLocation
(20, 9));
92294
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 37),
92297
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s.Value.Q").
WithLocation
(12, 9));
92325
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(12, 37),
92328
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s.Value.Q").
WithLocation
(14, 9));
92354
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 37),
92357
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s.Value.Q").
WithLocation
(12, 9));
92387
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 61));
92416
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 61),
92419
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(((A, A))t).Item1.FA").
WithLocation
(14, 9));
92460
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 38),
92463
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1.FB").
WithLocation
(16, 9),
92466
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2.Item1.FA").
WithLocation
(20, 9),
92469
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "t").WithArguments("(B, (A, A))", "(A, (B, B))").
WithLocation
(22, 13),
92472
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1.FA").
WithLocation
(23, 9),
92475
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item1.FA").
WithLocation
(26, 9));
92503
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(((C, object))t).Item1.F").
WithLocation
(10, 9),
92506
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((C)u.Value.Item1).F").
WithLocation
(12, 9));
92537
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 61),
92540
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(((S, S))t).Item1.F").
WithLocation
(11, 9),
92543
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((S, S))t").WithArguments("(S?, object?)", "(S, S)").
WithLocation
(11, 10),
92546
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((S, S))t").WithArguments("(S?, object?)", "(S, S)").
WithLocation
(12, 10),
92549
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 61));
92576
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((string, string))t1").WithArguments("(object?, object)", "(string, string)").
WithLocation
(5, 18),
92579
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u2.Item1").
WithLocation
(12, 9),
92582
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u2.Item2").
WithLocation
(13, 9));
92610
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(a, b)").WithArguments("(B? a, B b)", "(B, B)").
WithLocation
(12, 20),
92613
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1").
WithLocation
(13, 9));
92641
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((B, B))(b, a)").WithArguments("(B b, B? a)", "(B, B)").
WithLocation
(12, 17),
92644
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "a").
WithLocation
(12, 29));
92689
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(new A(), new S() { F = 1 })").WithArguments("(B?, S)", "(B, S)").
WithLocation
(16, 21),
92692
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1.Item1").
WithLocation
(17, 9),
92695
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(new A(), new S() { F = 3 })").WithArguments("(B?, S?)", "(B, S?)").
WithLocation
(28, 22),
92698
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t3.Item1").
WithLocation
(29, 9));
92743
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((S, B))(new S() { F = 1 }, new A())").WithArguments("(S, B?)", "(S, B)").
WithLocation
(16, 18),
92746
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "new A()").
WithLocation
(16, 46),
92749
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1.Item1.F").
WithLocation
(17, 9),
92752
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2.Item1").
WithLocation
(23, 9),
92755
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2.Item1.Value.F").
WithLocation
(23, 9),
92758
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((S?, B))(new S() { F = 3 }, new A())").WithArguments("(S?, B?)", "(S?, B)").
WithLocation
(28, 18),
92761
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "new A()").
WithLocation
(28, 47),
92764
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t3.Item1").
WithLocation
(29, 9),
92767
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t3.Item1.Value.F").
WithLocation
(29, 9));
92809
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").
WithLocation
(17, 22),
92812
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u1.Item1").
WithLocation
(18, 9),
92815
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((B, S?))t2").
WithLocation
(24, 18),
92818
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u2.Item1").
WithLocation
(25, 9));
92861
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").
WithLocation
(18, 36),
92864
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u1.y.Item1").
WithLocation
(19, 9),
92867
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((object x, (B, S?) y))t2").
WithLocation
(25, 18),
92870
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u2.y.Item1").
WithLocation
(26, 9));
92911
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(18, 36),
92914
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item2.Value.G").
WithLocation
(23, 9),
92917
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.Item10.Value.G").
WithLocation
(26, 9));
92954
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").
WithLocation
(13, 22),
92957
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u1.Item1").
WithLocation
(14, 9),
92960
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((B?, A))t2").
WithLocation
(19, 18),
92963
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u2.Item1").
WithLocation
(20, 9),
92966
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u2.Item2").
WithLocation
(21, 9));
93043
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s").WithArguments("S", "(A, A?)?", "t", "void Program.F2((A, A?)? t)").
WithLocation
(16, 12));
93068
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 41),
93071
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((S)o).F").
WithLocation
(11, 9));
93095
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((S)(object)new S() { F = 1 }).F").
WithLocation
(10, 9),
93098
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((S)(object)new S() { G = null }).F").
WithLocation
(11, 9),
93101
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(11, 35)
93127
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 46),
93130
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((S?)o).Value.F").
WithLocation
(11, 9));
93168
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 42),
93171
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((T)o1).P").
WithLocation
(11, 9),
93174
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 42),
93177
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((T)o2).P").
WithLocation
(17, 9),
93180
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(22, 42),
93183
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((T)o3).P").
WithLocation
(23, 9));
93218
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((T1)(object)new T1() { P = 1 }).P").
WithLocation
(10, 9),
93221
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(11, 37),
93224
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((T2)(object)new T2() { P = 2 }).P").
WithLocation
(15, 9),
93227
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 37),
93230
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((T3)(object)new T3() { P = 3 }).P").
WithLocation
(20, 9),
93233
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(21, 37));
93271
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 65),
93274
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((T)t1.Item1).P").
WithLocation
(11, 9),
93277
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 65),
93280
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((T)t2.Item1).P").
WithLocation
(17, 9),
93283
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(22, 65),
93286
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((T)t3.Item1).P").
WithLocation
(23, 9));
93312
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 45),
93315
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((T?)o).Value.P").
WithLocation
(11, 9));
93342
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "((T?, T?))(new T() { P = 1 }, new T() { Q = null })").WithArguments("(T?, T?)", "(object, object)").
WithLocation
(10, 30),
93345
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 74),
93348
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "((T?)t.Item1).Value.P").
WithLocation
(11, 9),
93351
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(((T?, T?))t).Item2").
WithLocation
(12, 9));
93371
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F.F").
WithLocation
(7, 9));
93392
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F.F.F").
WithLocation
(8, 9));
93436
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F").
WithLocation
(12, 9),
93439
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F.F").
WithLocation
(12, 9));
93459
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F.F").
WithLocation
(7, 9));
93487
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.B.A.B.A").
WithLocation
(15, 9));
93513
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "F").WithArguments("C.F").
WithLocation
(4, 7),
93516
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 15),
93519
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(10, 33));
93545
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "F").WithArguments("C.F").
WithLocation
(4, 7),
93548
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 15),
93551
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(10, 33));
93581
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(10, 15),
93584
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(13, 33));
93631
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").
WithLocation
(12, 34),
93634
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(18, 16),
93637
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").
WithLocation
(21, 34));
93696
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s.P.F").
WithLocation
(19, 9));
93726
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s.F").
WithLocation
(14, 9));
93753
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(11, 27),
93756
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "S<T>.Instance.F").
WithLocation
(13, 9));
93795
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.A1").
WithLocation
(22, 9),
93798
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.B1").
WithLocation
(25, 9));
93820
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "E").WithArguments("C.E", "").
WithLocation
(5, 10));
93866
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(11, 14),
93869
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(15, 9),
93872
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t4").
WithLocation
(25, 9),
93875
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t4.P").
WithLocation
(25, 9),
93878
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(26, 16),
93881
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(29, 41),
93884
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t5.P").
WithLocation
(31, 9)
94065
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 29),
94068
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(6, 54),
94071
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 44)
94110
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(4, 29),
94113
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(6, 54),
94116
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(8, 44)
94124
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("NullableContextOptions", "Enable", "7.3", "8.0").
WithLocation
(1, 1),
94158
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T2?").WithArguments("9.0").
WithLocation
(9, 31),
94161
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T1?").WithArguments("9.0").
WithLocation
(6, 27),
94164
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T3?").WithArguments("9.0").
WithLocation
(11, 21)
94191
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T12?").WithArguments("9.0").
WithLocation
(4, 37),
94194
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T42?").WithArguments("9.0").
WithLocation
(13, 37)
94221
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T11?").WithArguments("9.0").
WithLocation
(4, 31),
94224
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T21?").WithArguments("9.0").
WithLocation
(6, 51),
94227
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T31?").WithArguments("9.0").
WithLocation
(8, 41),
94230
Diagnostic(ErrorCode.ERR_CircularConstraint, "T4").WithArguments("T4", "T4").
WithLocation
(13, 27),
94233
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T4?").WithArguments("9.0").
WithLocation
(13, 44)
94261
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T3?").WithArguments("9.0").
WithLocation
(10, 49)
94289
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "Node<T2?>").WithArguments("Node<T2?>").
WithLocation
(7, 51),
94292
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "Node<T3?>?").WithArguments("Node<T3?>").
WithLocation
(10, 51),
94295
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "Node<T1>?").WithArguments("Node<T1>").
WithLocation
(4, 51)
94323
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T2?").WithArguments("9.0").
WithLocation
(7, 57),
94326
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "Node<T2?>").WithArguments("Node<T2?>").
WithLocation
(7, 52),
94329
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T3?").WithArguments("9.0").
WithLocation
(10, 57),
94332
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "Node<T3?>?").WithArguments("Node<T3?>").
WithLocation
(10, 52),
94335
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "Node<T1>?").WithArguments("Node<T1>").
WithLocation
(4, 52)
94363
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T2?").WithArguments("9.0").
WithLocation
(7, 50),
94366
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T3?").WithArguments("9.0").
WithLocation
(10, 50)
94419
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T3?").WithArguments("9.0").
WithLocation
(10, 58)
94453
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T32?").WithArguments("9.0").
WithLocation
(10, 89),
94456
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T41?").WithArguments("9.0").
WithLocation
(13, 78),
94459
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T42?").WithArguments("9.0").
WithLocation
(13, 90)
94487
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T22?").WithArguments("9.0").
WithLocation
(7, 37),
94490
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T32?").WithArguments("9.0").
WithLocation
(10, 37),
94493
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T31?").WithArguments("9.0").
WithLocation
(10, 84)
94517
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "System.Runtime.CompilerServices.Nullable(0)").
WithLocation
(4, 10),
94520
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "System.Runtime.CompilerServices.Nullable(1)").
WithLocation
(6, 28),
94523
Diagnostic(ErrorCode.ERR_ExplicitNullableAttribute, "System.Runtime.CompilerServices.Nullable(2)").
WithLocation
(8, 18)
94558
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B.F1<T11>(T11?)").
WithLocation
(15, 26),
94561
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "t1").WithArguments("System.Nullable<T>", "T", "T11").
WithLocation
(15, 39));
94600
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B.F1<T11>(T11?)").
WithLocation
(4, 26),
94603
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "t1").WithArguments("System.Nullable<T>", "T", "T11").
WithLocation
(4, 39));
94643
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B.F1<T11>(T11?)").
WithLocation
(4, 26),
94646
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "t1").WithArguments("System.Nullable<T>", "T", "T11").
WithLocation
(4, 39));
94752
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B.F1<T11>(T11?)").
WithLocation
(15, 26),
94755
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "t1").WithArguments("System.Nullable<T>", "T", "T11").
WithLocation
(15, 39));
94858
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F1").WithArguments("T11", "B.F1<T11>()", "T1", "IA.F1<T1>()").
WithLocation
(4, 17),
94861
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F2").WithArguments("T22", "B.F2<T22>()", "T2", "IA.F2<T2>()").
WithLocation
(8, 17),
94864
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F3").WithArguments("T33", "B.F3<T33>()", "T3", "IA.F3<T3>()").
WithLocation
(12, 17),
94867
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F4").WithArguments("T44", "B.F4<T44>()", "T4", "IA.F4<T4>()").
WithLocation
(16, 17),
94870
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F5").WithArguments("T552", "B.F5<T551, T552>()", "T52", "IA.F5<T51, T52>()").
WithLocation
(20, 17),
94873
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F6").WithArguments("T662", "B.F6<T661, T662>()", "T62", "IA.F6<T61, T62>()").
WithLocation
(24, 17)
94925
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F2").WithArguments("T22", "B.F2<T22>()", "T2", "IA.F2<T2>()").
WithLocation
(8, 17),
94928
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F3").WithArguments("T33", "B.F3<T33>()", "T3", "IA.F3<T3>()").
WithLocation
(12, 17),
94931
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F4").WithArguments("T44", "B.F4<T44>()", "T4", "IA.F4<T4>()").
WithLocation
(16, 17),
94934
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F5").WithArguments("T552", "B.F5<T551, T552>()", "T52", "IA.F5<T51, T52>()").
WithLocation
(20, 17),
94937
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T551?").WithArguments("9.0").
WithLocation
(20, 69),
94940
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T6661?").WithArguments("9.0").
WithLocation
(51, 73)
94949
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F1").WithArguments("T11", "B.F1<T11>()", "T1", "IA.F1<T1>()").
WithLocation
(4, 17),
94952
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F6").WithArguments("T662", "B.F6<T661, T662>()", "T62", "IA.F6<T61, T62>()").
WithLocation
(24, 17)
95252
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "class?").
WithLocation
(10, 42));
95389
Diagnostic(ErrorCode.ERR_UnexpectedToken, "?").WithArguments("?").
WithLocation
(4, 30),
95392
Diagnostic(ErrorCode.ERR_UnexpectedToken, "?").WithArguments("?").
WithLocation
(6, 55),
95395
Diagnostic(ErrorCode.ERR_UnexpectedToken, "?").WithArguments("?").
WithLocation
(8, 45)
95410
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("NullableContextOptions", "Enable", "7.3", "8.0").
WithLocation
(1, 1)
95433
Diagnostic(ErrorCode.ERR_DuplicateBound, "IA<object?>").WithArguments("IA<object>", "TC").
WithLocation
(5, 36),
95436
Diagnostic(ErrorCode.ERR_DuplicateBound, "IA<object>").WithArguments("IA<object>", "TB").
WithLocation
(8, 37)
95458
Diagnostic(ErrorCode.ERR_DuplicateBound, "IA<object>").WithArguments("IA<object>", "TB").
WithLocation
(5, 37),
95461
Diagnostic(ErrorCode.ERR_DuplicateBound, "IA<object>?").WithArguments("IA<object>", "TC").
WithLocation
(8, 36)
95546
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F1").WithArguments("T11", "B.F1<T11>()", "T1", "IA<string>.F1<T1>()").
WithLocation
(4, 17),
95549
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F2").WithArguments("T22", "B.F2<T22>()", "T2", "IA<string>.F2<T2>()").
WithLocation
(8, 17),
95552
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F3").WithArguments("T33", "B.F3<T33>()", "T3", "IA<string>.F3<T3>()").
WithLocation
(12, 17),
95555
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F4").WithArguments("T44", "B.F4<T44>()", "T4", "IA<string>.F4<T4>()").
WithLocation
(16, 17),
95558
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F5").WithArguments("T552", "B.F5<T551, T552>()", "T52", "IA<string>.F5<T51, T52>()").
WithLocation
(20, 17),
95561
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F6").WithArguments("T662", "B.F6<T661, T662>()", "T62", "IA<string>.F6<T61, T62>()").
WithLocation
(24, 17)
95613
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F2").WithArguments("T22", "B.F2<T22>()", "T2", "IA<string>.F2<T2>()").
WithLocation
(8, 17),
95616
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F3").WithArguments("T33", "B.F3<T33>()", "T3", "IA<string>.F3<T3>()").
WithLocation
(12, 17),
95619
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F4").WithArguments("T44", "B.F4<T44>()", "T4", "IA<string>.F4<T4>()").
WithLocation
(16, 17),
95622
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F5").WithArguments("T552", "B.F5<T551, T552>()", "T52", "IA<string>.F5<T51, T52>()").
WithLocation
(20, 17),
95625
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T551?").WithArguments("9.0").
WithLocation
(20, 69),
95628
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T6661?").WithArguments("9.0").
WithLocation
(51, 73)
95637
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F1").WithArguments("T11", "B.F1<T11>()", "T1", "IA<string>.F1<T1>()").
WithLocation
(4, 17),
95640
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F6").WithArguments("T662", "B.F6<T661, T662>()", "T62", "IA<string>.F6<T61, T62>()").
WithLocation
(24, 17)
95717
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F7").WithArguments("T771", "B.F7<T771, T772>()", "T71", "IA.F7<T71, T72>()").
WithLocation
(28, 17),
95720
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F9").WithArguments("T991", "B.F9<T991, T992>()", "T91", "IA.F9<T91, T92>()").
WithLocation
(36, 17)
95738
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T41?").WithArguments("9.0").
WithLocation
(7, 55),
95741
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T61?").WithArguments("9.0").
WithLocation
(9, 55)
95818
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F9").WithArguments("T991", "B.F9<T991, T992>()", "T91", "IA.F9<T91, T92>()").
WithLocation
(55, 17),
95821
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F7").WithArguments("T771", "B.F7<T771, T772>()", "T71", "IA.F7<T71, T72>()").
WithLocation
(47, 17)
95895
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T41?").WithArguments("9.0").
WithLocation
(7, 52),
95898
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T61?").WithArguments("9.0").
WithLocation
(9, 52),
95901
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F9").WithArguments("T991", "B.F9<T991, T992>()", "T91", "IA.F9<T91, T92>()").
WithLocation
(58, 17),
95904
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F7").WithArguments("T771", "B.F7<T771, T772>()", "T71", "IA.F7<T71, T72>()").
WithLocation
(50, 17)
95978
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T441?").WithArguments("9.0").
WithLocation
(38, 63),
95981
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T661?").WithArguments("9.0").
WithLocation
(46, 63),
95984
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F9").WithArguments("T991", "B.F9<T991, T992>()", "T91", "IA.F9<T91, T92>()").
WithLocation
(58, 17),
95987
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F7").WithArguments("T771", "B.F7<T771, T772>()", "T71", "IA.F7<T71, T72>()").
WithLocation
(50, 17)
96061
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F9").WithArguments("T991", "B.F9<T991, T992>()", "T91", "IA.F9<T91, T92>()").
WithLocation
(58, 17),
96064
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F7").WithArguments("T771", "B.F7<T771, T772>()", "T71", "IA.F7<T71, T72>()").
WithLocation
(50, 17)
96138
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F9").WithArguments("T991", "B.F9<T991, T992>()", "T91", "IA.F9<T91, T92>()").
WithLocation
(58, 17),
96141
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F7").WithArguments("T771", "B.F7<T771, T772>()", "T71", "IA.F7<T71, T72>()").
WithLocation
(50, 17)
96212
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F9").WithArguments("T991", "B.F9<T991, T992>()", "T91", "IA.F9<T91, T92>()").
WithLocation
(55, 17),
96215
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F4").WithArguments("T441", "B.F4<T441, T442>()", "T41", "IA.F4<T41, T42>()").
WithLocation
(35, 17),
96218
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F5").WithArguments("T551", "B.F5<T551, T552>()", "T51", "IA.F5<T51, T52>()").
WithLocation
(39, 17),
96221
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F6").WithArguments("T661", "B.F6<T661, T662>()", "T61", "IA.F6<T61, T62>()").
WithLocation
(43, 17),
96224
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F7").WithArguments("T771", "B.F7<T771, T772>()", "T71", "IA.F7<T71, T72>()").
WithLocation
(47, 17),
96227
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F8").WithArguments("T881", "B.F8<T881, T882>()", "T81", "IA.F8<T81, T82>()").
WithLocation
(51, 17)
96268
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T991?").WithArguments("9.0").
WithLocation
(25, 67),
96271
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T881?").WithArguments("9.0").
WithLocation
(21, 67),
96274
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T771?").WithArguments("9.0").
WithLocation
(17, 67),
96277
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F9").WithArguments("T991", "B.F9<T991, T992>()", "T91", "IA.F9<T91, T92>()").
WithLocation
(25, 17),
96280
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F8").WithArguments("T881", "B.F8<T881, T882>()", "T81", "IA.F8<T81, T82>()").
WithLocation
(21, 17),
96283
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F7").WithArguments("T771", "B.F7<T771, T772>()", "T71", "IA.F7<T71, T72>()").
WithLocation
(17, 17)
96350
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F1").WithArguments("T11", "B.F1<T11>()", "T1", "IA.F1<T1>()").
WithLocation
(4, 17),
96353
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F2").WithArguments("T22", "B.F2<T22>()", "T2", "IA.F2<T2>()").
WithLocation
(8, 17),
96356
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F3").WithArguments("T33", "B.F3<T33>()", "T3", "IA.F3<T3>()").
WithLocation
(12, 17),
96359
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F4").WithArguments("T44", "B.F4<T44>()", "T4", "IA.F4<T4>()").
WithLocation
(16, 17)
96390
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F2").WithArguments("T22", "B.F2<T22>()", "T2", "IA.F2<T2>()").
WithLocation
(8, 17),
96393
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F3").WithArguments("T33", "B.F3<T33>()", "T3", "IA.F3<T3>()").
WithLocation
(12, 17)
96423
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F1").WithArguments("T11", "B.F1<T11>()", "T1", "IA.F1<T1>()").
WithLocation
(4, 17),
96426
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F4").WithArguments("T44", "B.F4<T44>()", "T4", "IA.F4<T4>()").
WithLocation
(16, 17)
96483
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F2").WithArguments("T22", "B.F2<T22>()", "T2", "IA.F2<T2>()").
WithLocation
(4, 17),
96486
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F3").WithArguments("T33", "B.F3<T33>()", "T3", "IA.F3<T3>()").
WithLocation
(8, 17)
96509
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F2").WithArguments("T22", "B.F2<T22>()", "T2", "IA.F2<T2>()").
WithLocation
(4, 17),
96512
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F3").WithArguments("T33", "B.F3<T33>()", "T3", "IA.F3<T3>()").
WithLocation
(8, 17)
96639
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T1?").WithArguments("9.0").
WithLocation
(4, 31),
96642
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(4, 50),
96645
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T2?").WithArguments("9.0").
WithLocation
(8, 31),
96648
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "System.Object?").WithArguments("object").
WithLocation
(8, 50)
96684
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "notnull").WithArguments("notnull generic type constraint", "8.0").
WithLocation
(4, 44)
96705
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("NullableContextOptions", "Enable", "7.3", "8.0").
WithLocation
(1, 1),
96736
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T1?").WithArguments("9.0").
WithLocation
(4, 31)
96759
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "struct").
WithLocation
(8, 59),
96762
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "notnull").
WithLocation
(4, 58)
96803
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "notnull").
WithLocation
(4, 57),
96806
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(8, 59)
96848
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "notnull").
WithLocation
(4, 58),
96851
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class?").
WithLocation
(8, 59)
96887
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T1?").WithArguments("9.0").
WithLocation
(4, 31),
96890
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "B").WithArguments("B").
WithLocation
(4, 58)
97184
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "notnull").
WithLocation
(4, 53)
97260
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(4, 50)
97497
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F1").WithArguments("TF1A", "A.F1<TF1A>()", "TF1", "I1.F1<TF1>()").
WithLocation
(25, 17),
97500
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F2").WithArguments("TF2A", "A.F2<TF2A>()", "TF2", "I1.F2<TF2>()").
WithLocation
(27, 17),
97503
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F6").WithArguments("TF6A", "A.F6<TF6A>()", "TF6", "I1.F6<TF6>()").
WithLocation
(35, 17),
97506
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F8").WithArguments("TF8A", "A.F8<TF8A>()", "TF8", "I1.F8<TF8>()").
WithLocation
(39, 17),
97509
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F11").WithArguments("TF11A", "A.F11<TF11A>()", "TF11", "I1.F11<TF11>()").
WithLocation
(45, 17)
97566
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F2").WithArguments("TF2A", "A.F2<TF2A>()", "TF2", "I1.F2<TF2>()").
WithLocation
(6, 17),
97569
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F8").WithArguments("TF8A", "A.F8<TF8A>()", "TF8", "I1.F8<TF8>()").
WithLocation
(16, 17)
97647
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnImplicitImplementation, "F1").WithArguments("TF1A", "A.F1<TF1A>()", "TF1", "I1.F1<TF1>()").
WithLocation
(4, 17)
97682
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y3").
WithLocation
(18, 9),
97685
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "z3").
WithLocation
(19, 14)
97708
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M").WithArguments("C<T>", "A", "T", "A?").
WithLocation
(6, 11),
97711
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "c1").WithArguments("C<T>", "A", "T", "A?").
WithLocation
(6, 19));
97742
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "Property").WithArguments("C<T>", "T", "object?").
WithLocation
(6, 16),
97745
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "Method").WithArguments("C<T>", "T", "object?").
WithLocation
(7, 16),
97748
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "p").WithArguments("C<T>", "T", "object?").
WithLocation
(7, 34),
97751
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "Field").WithArguments("C<T>", "T", "object?").
WithLocation
(11, 23),
97754
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "object?").WithArguments("C<T>", "T", "object?").
WithLocation
(11, 37),
97757
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "Property").WithArguments("C<T>", "T", "object?").
WithLocation
(12, 16),
97760
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "Method").WithArguments("C<T>", "T", "object?").
WithLocation
(13, 16),
97763
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "p").WithArguments("C<T>", "T", "object?").
WithLocation
(13, 34),
97766
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "Property").WithArguments("C<T>", "T", "object?").
WithLocation
(15, 18),
97769
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "Method").WithArguments("C<T>", "T", "object?").
WithLocation
(16, 18),
97772
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "p").WithArguments("C<T>", "T", "object?").
WithLocation
(16, 36),
97775
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "object?").WithArguments("C<T>", "T", "object?").
WithLocation
(19, 12),
97778
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "object?").WithArguments("C<T>", "T", "object?").
WithLocation
(19, 25));
97809
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "Property").WithArguments("C<T>", "T", "object?").
WithLocation
(6, 16),
97812
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "Method").WithArguments("C<T>", "T", "object?").
WithLocation
(7, 16),
97815
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "p").WithArguments("C<T>", "T", "object?").
WithLocation
(7, 34),
97818
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "Field").WithArguments("C<T>", "T", "object?").
WithLocation
(11, 23),
97821
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "object?").WithArguments("C<T>", "T", "object?").
WithLocation
(11, 37),
97824
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "Property").WithArguments("C<T>", "T", "object?").
WithLocation
(12, 16),
97827
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "Method").WithArguments("C<T>", "T", "object?").
WithLocation
(13, 16),
97830
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "p").WithArguments("C<T>", "T", "object?").
WithLocation
(13, 34),
97833
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "Property").WithArguments("C<T>", "T", "object?").
WithLocation
(15, 18),
97836
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "Method").WithArguments("C<T>", "T", "object?").
WithLocation
(16, 18),
97839
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "p").WithArguments("C<T>", "T", "object?").
WithLocation
(16, 36),
97842
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "object?").WithArguments("C<T>", "T", "object?").
WithLocation
(19, 12),
97845
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "object?").WithArguments("C<T>", "T", "object?").
WithLocation
(19, 25));
97875
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "C1<A?>").WithArguments("C1<T>", "A", "T", "A?").
WithLocation
(6, 14),
97878
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "C3<A?>").WithArguments("C3<T>", "T", "A?").
WithLocation
(10, 14));
97908
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "D2").WithArguments("C1<T>", "A", "T", "A?").
WithLocation
(6, 7),
97911
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "D6").WithArguments("C3<T>", "T", "A?").
WithLocation
(10, 7));
97931
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "p").WithArguments("(T1, T2)", "T2", "string?").
WithLocation
(4, 31),
97934
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "p").WithArguments("(T1, T2)", "T2", "string?").
WithLocation
(6, 34));
97959
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "p").WithArguments("(T1, T2)", "T2", "string?").
WithLocation
(5, 26),
97962
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "p").WithArguments("(T1, T2)", "T2", "string?").
WithLocation
(6, 29),
97965
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "p").WithArguments("C<T>", "T", "string?").
WithLocation
(7, 19));
97988
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "c").WithArguments("C<T>", "T", "string?").
WithLocation
(9, 51),
97991
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "C<string?>").WithArguments("C<T>", "T", "string?").
WithLocation
(10, 37),
97994
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "string?").WithArguments("C<T>", "T", "string?").
WithLocation
(10, 64));
98021
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "s2").WithArguments("(T1, T2)", "T2", "string?").
WithLocation
(9, 23),
98024
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "s2").WithArguments("(T1, T2)", "T1", "string?").
WithLocation
(10, 19),
98027
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "s2").WithArguments("(T1, T2)", "T1", "string?").
WithLocation
(11, 19),
98030
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "s2").WithArguments("(T1, T2)", "T2", "string?").
WithLocation
(11, 23),
98033
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "(string)null").WithArguments("(T1, T2)", "T1", "string?").
WithLocation
(12, 19),
98036
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "(string)null").WithArguments("System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>", "T1", "string?").
WithLocation
(13, 19),
98039
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "(string)null").WithArguments("(T1, T2)", "T1", "string?").
WithLocation
(13, 57),
98042
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "(string)null").WithArguments("(T1, T2)", "T2", "string?").
WithLocation
(13, 71)
98067
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "string?").WithArguments("(T1, T2)", "T1", "string?").
WithLocation
(7, 10),
98070
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "string?").WithArguments("System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>", "T1", "string?").
WithLocation
(8, 10),
98073
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "string?").WithArguments("(T1, T2)", "T2", "string?").
WithLocation
(8, 75),
98076
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "string?").WithArguments("(T1, T2)", "T1", "string?").
WithLocation
(9, 27),
98079
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "string?").WithArguments("System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>", "T1", "string?").
WithLocation
(10, 27),
98082
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "string?").WithArguments("(T1, T2)", "T2", "string?").
WithLocation
(10, 92)
98137
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(3, 2),
98140
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(4, 2),
98143
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(4, 2),
98146
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "notnull").WithArguments("notnull generic type constraint", "8.0").
WithLocation
(6, 20),
98149
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(7, 16),
98152
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "notnull").WithArguments("notnull generic type constraint", "8.0").
WithLocation
(7, 20),
98155
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "notnull").WithArguments("notnull generic type constraint", "8.0").
WithLocation
(7, 20),
98158
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "notnull").WithArguments("notnull generic type constraint", "8.0").
WithLocation
(8, 20),
98161
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "notnull").WithArguments("notnull generic type constraint", "8.0").
WithLocation
(8, 20),
98164
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(8, 33),
98167
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "notnull").WithArguments("notnull generic type constraint", "8.0").
WithLocation
(9, 20),
98170
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "notnull").WithArguments("notnull generic type constraint", "8.0").
WithLocation
(10, 20),
98173
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "notnull").WithArguments("notnull generic type constraint", "8.0").
WithLocation
(11, 20),
98176
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "notnull").WithArguments("notnull generic type constraint", "8.0").
WithLocation
(12, 20));
98382
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 37)
98424
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 34)
98935
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 43)
98976
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 45)
99481
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "I1").WithArguments("I1<TF1>", "TF1").
WithLocation
(3, 19)
99506
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "I1").WithArguments("I1<TF1>", "TF1").
WithLocation
(3, 19)
99555
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "I1").WithArguments("I1<TF1>", "TF1").
WithLocation
(3, 19)
99606
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "I1").WithArguments("I1<TF1>", "TF1").
WithLocation
(3, 19)
99633
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "I1").WithArguments("I1<TF1>", "TF1").
WithLocation
(3, 19)
99685
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "I1").WithArguments("I1<TF1>", "TF1").
WithLocation
(3, 19)
99713
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(7, 39),
99716
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 45)
99739
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(7, 39),
99742
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 45)
99766
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(7, 44),
99769
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 50)
99800
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(7, 39)
99823
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(7, 39)
99847
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(7, 44)
99880
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(8, 39)
99904
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(8, 39)
99929
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(8, 44)
99962
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(8, 39),
99965
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 45)
99989
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(8, 39),
99992
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 45)
100017
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(8, 44),
100020
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 50)
100051
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 39),
100054
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 45)
100077
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 39),
100080
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 45)
100104
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 44),
100107
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 50)
100138
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 39)
100161
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 39)
100185
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 44)
100218
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 39),
100221
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 45)
100245
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 39),
100248
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 45)
100273
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 44),
100276
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 50)
100310
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 39)
100335
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 39)
100361
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(3, 44)
100551
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnPartialImplementation, "M1").WithArguments("A.M1<TF1>()", "TF1").
WithLocation
(7, 14)
100607
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnPartialImplementation, "M1").WithArguments("A.M1<TF1>()", "TF1").
WithLocation
(8, 14)
100636
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(7, 36),
100639
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 42)
100668
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(7, 36)
100694
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(8, 36)
100723
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(8, 36),
100726
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 42)
100866
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnPartialImplementation, "M1").WithArguments("A.M1<TF1>()", "TF1").
WithLocation
(5, 14)
100923
Diagnostic(ErrorCode.WRN_NullabilityMismatchInConstraintsOnPartialImplementation, "M1").WithArguments("A.M1<TF1>()", "TF1").
WithLocation
(5, 14)
100952
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(9, 36),
100955
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(9, 42)
100983
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(9, 36)
101009
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(10, 36)
101038
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(10, 36),
101041
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 42)
101304
Diagnostic(ErrorCode.ERR_DynamicTypeAsBound, "dynamic").
WithLocation
(4, 49),
101307
Diagnostic(ErrorCode.ERR_ConstructedDynamicTypeAsBound, "B<dynamic>").WithArguments("B<dynamic>").
WithLocation
(8, 49)
101350
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "base.M1<object?>").WithArguments("Test1<dynamic>.M1<S>()", "object", "S", "object?").
WithLocation
(18, 9),
101353
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "this.M1<object?>").WithArguments("Test2.M1<S>()", "object", "S", "object?").
WithLocation
(19, 9)
101443
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "base.M1<Test1<object?>>").WithArguments("Test1<Test1<dynamic>>.M1<S>()", "Test1<object>", "S", "Test1<object?>").
WithLocation
(18, 9),
101446
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "this.M1<Test1<object?>>").WithArguments("Test2.M1<S>()", "Test1<object>", "S", "Test1<object?>").
WithLocation
(19, 9)
101525
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M<int?>").WithArguments("A.M<T>(T)", "T", "int?").
WithLocation
(7, 9),
101528
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M").WithArguments("A.M<T>(T)", "T", "int?").
WithLocation
(8, 9),
101531
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M").WithArguments("A.M<T>(T)", "T", "int?").
WithLocation
(11, 9)
101565
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M<int?>").WithArguments("A<System.ValueType>.M<S>(S)", "System.ValueType", "S", "int?").
WithLocation
(15, 9),
101568
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M").WithArguments("A<System.ValueType>.M<S>(S)", "System.ValueType", "S", "int?").
WithLocation
(16, 9),
101571
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M").WithArguments("A<System.ValueType>.M<S>(S)", "System.ValueType", "S", "int?").
WithLocation
(19, 9)
101605
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)x").
WithLocation
(7, 10),
101608
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(object)x").
WithLocation
(7, 10),
101611
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M<int?>").WithArguments("A<System.ValueType>.M<S>(S)", "System.ValueType", "S", "int?").
WithLocation
(15, 9),
101614
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M").WithArguments("A<System.ValueType>.M<S>(S)", "System.ValueType", "S", "int?").
WithLocation
(16, 9),
101617
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M").WithArguments("A<System.ValueType>.M<S>(S)", "System.ValueType", "S", "int?").
WithLocation
(19, 9)
101651
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)x").
WithLocation
(7, 10),
101654
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(object)x").
WithLocation
(7, 10)
101688
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "B").WithArguments("A<T>", "T", "System.ValueType?").
WithLocation
(11, 14)
101718
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M<S?>").WithArguments("A<T>.M<S>(S)", "T", "S", "S?").
WithLocation
(7, 9),
101721
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M").WithArguments("A<T>.M<S>(S)", "T", "S", "S?").
WithLocation
(8, 9)
101804
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<int?>").WithArguments("Test2.M1<S>(S)", "System.ValueType", "S", "int?").
WithLocation
(26, 9),
101807
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("x", "void Test2.M2(ValueType x)").
WithLocation
(27, 12),
101810
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<int?>").WithArguments("Test3.M1<S>(S)", "object", "S", "int?").
WithLocation
(46, 9),
101813
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("x", "void Test3.M2(object x)").
WithLocation
(47, 12),
101816
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(55, 20),
101819
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(56, 9)
101876
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<int?>").WithArguments("Test22.M1<S>(S)", "System.ValueType", "S", "int?").
WithLocation
(14, 9),
101879
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("x", "void Test2.M2(ValueType x)").
WithLocation
(15, 12),
101882
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<int?>").WithArguments("Test33.M1<S>(S)", "object", "S", "int?").
WithLocation
(29, 9),
101885
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("x", "void Test3.M2(object x)").
WithLocation
(30, 12),
101888
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(38, 20),
101891
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(39, 9)
101912
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "notnull").WithArguments("notnull").
WithLocation
(5, 31),
101915
Diagnostic(ErrorCode.ERR_BadBoundType, "notnull?").WithArguments("notnull?").
WithLocation
(5, 31)
101945
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<object>").WithArguments("A.M<T>()", "notnull", "T", "object").
WithLocation
(12, 9),
101948
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M<notnull?>").WithArguments("A.M<T>()", "notnull", "T", "notnull?").
WithLocation
(13, 9)
101978
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<object>").WithArguments("A.M<T>()", "notnull", "T", "object").
WithLocation
(12, 9)
102008
Diagnostic(ErrorCode.ERR_CircularConstraint, "@notnull").WithArguments("notnull", "notnull").
WithLocation
(5, 12)
102038
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "notnull").WithArguments("notnull").
WithLocation
(5, 12),
102041
Diagnostic(ErrorCode.ERR_CircularConstraint, "notnull").WithArguments("notnull", "notnull").
WithLocation
(5, 12),
102044
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "notnull?").WithArguments("9.0").
WithLocation
(5, 39)
102065
Diagnostic(ErrorCode.ERR_CircularConstraint, "@notnull").WithArguments("notnull", "notnull").
WithLocation
(5, 12)
102086
Diagnostic(ErrorCode.ERR_CircularConstraint, "@notnull").WithArguments("notnull", "notnull").
WithLocation
(5, 12),
102089
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "notnull?").WithArguments("9.0").
WithLocation
(5, 40)
102115
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M<T>").WithArguments("A<System.ValueType, int?>.M<V>(V)", "System.ValueType", "V", "T").
WithLocation
(11, 9));
102141
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object").WithArguments("object").
WithLocation
(4, 44),
102144
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "System.Object").WithArguments("object").
WithLocation
(8, 44)
102170
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(4, 44),
102173
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "System.Object?").WithArguments("object").
WithLocation
(8, 44)
102181
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object?").WithArguments("object").
WithLocation
(4, 44),
102184
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 50),
102187
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "System.Object?").WithArguments("object").
WithLocation
(8, 44),
102190
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 57)
102385
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<object?>").WithArguments("Test1<object>.M1<S>(S)", "object", "S", "object?").
WithLocation
(7, 9),
102388
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<object?>").WithArguments("Test22.M1<S>(S)", "object", "S", "object?").
WithLocation
(21, 9),
102391
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<object?>").WithArguments("Test3.M1<S>(S)", "object", "S", "object?").
WithLocation
(29, 9),
102394
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<object?>").WithArguments("Test32.M1<S>(S)", "object", "S", "object?").
WithLocation
(43, 9),
102397
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(59, 9),
102400
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(81, 9)
103999
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T1?").WithArguments("9.0").
WithLocation
(7, 9)
104055
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "IB").WithArguments("IA<TA>", "ID<string>", "TA", "ID<string?>").
WithLocation
(8, 18),
104058
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "IC").WithArguments("IA<TA>", "ID<string>", "TA", "ID<string>?").
WithLocation
(11, 18),
104061
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "ID<string?>").WithArguments("IA<TA>", "ID<string>", "TA", "ID<string?>").
WithLocation
(24, 12),
104064
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "ID<string>?").WithArguments("IA<TA>", "ID<string>", "TA", "ID<string>?").
WithLocation
(25, 12),
104067
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B.M1<TM1>(TM1)", "ID<string>", "TM1", "ID<string?>").
WithLocation
(34, 9),
104070
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B.M1<TM1>(TM1)", "ID<string>", "TM1", "ID<string>?").
WithLocation
(36, 9),
104073
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<ID<string?>>").WithArguments("B.M1<TM1>(TM1)", "ID<string>", "TM1", "ID<string?>").
WithLocation
(37, 9),
104076
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<ID<string?>>").WithArguments("B.M1<TM1>(TM1)", "ID<string>", "TM1", "ID<string?>").
WithLocation
(38, 9),
104079
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "b2").WithArguments("ID<string>", "ID<string?>", "x", "void B.M1<ID<string?>>(ID<string?> x)").
WithLocation
(38, 25),
104082
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<ID<string>?>").WithArguments("B.M1<TM1>(TM1)", "ID<string>", "TM1", "ID<string>?").
WithLocation
(39, 9)
104129
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "IB").WithArguments("IA<TA>", "TA", "string?").
WithLocation
(8, 18),
104132
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "string?").WithArguments("IA<TA>", "TA", "string?").
WithLocation
(18, 12),
104135
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1").WithArguments("B.M1<TM1>(TM1)", "TM1", "string?").
WithLocation
(27, 9),
104138
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1<string?>").WithArguments("B.M1<TM1>(TM1)", "TM1", "string?").
WithLocation
(29, 9),
104141
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1<string?>").WithArguments("B.M1<TM1>(TM1)", "TM1", "string?").
WithLocation
(30, 9)
104285
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "IB").WithArguments("IA<TA>", "ID<string>", "TA", "TIB").
WithLocation
(8, 18),
104288
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "IC").WithArguments("IA<TA>", "ID<string>", "TA", "TIC").
WithLocation
(11, 18),
104291
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB1").WithArguments("IA<TA>", "ID<string>", "TA", "TB1").
WithLocation
(24, 12),
104294
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB2").WithArguments("IA<TA>", "ID<string>", "TA", "TB2").
WithLocation
(25, 12),
104297
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1, TB2, TB3>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB1").
WithLocation
(34, 9),
104300
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1, TB2, TB3>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB2").
WithLocation
(36, 9),
104303
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1>").WithArguments("B<TB1, TB2, TB3>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB1").
WithLocation
(37, 9),
104306
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB2>").WithArguments("B<TB1, TB2, TB3>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB2").
WithLocation
(38, 9)
104354
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "IB").WithArguments("IA<TA>", "TA", "TIB").
WithLocation
(8, 18),
104357
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "TB1").WithArguments("IA<TA>", "TA", "TB1").
WithLocation
(21, 12),
104360
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1").WithArguments("B<TB1, TB2>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(30, 9),
104363
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1<TB1>").WithArguments("B<TB1, TB2>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(32, 9)
104605
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB1").WithArguments("IA<TA>", "ID<string>", "TA", "TB1").
WithLocation
(24, 12),
104608
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB2").WithArguments("IA<TA>", "ID<string>", "TA", "TB2").
WithLocation
(25, 12),
104611
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1, TB2, TB3>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB1").
WithLocation
(34, 9),
104614
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1, TB2, TB3>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB2").
WithLocation
(36, 9),
104617
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1>").WithArguments("B<TB1, TB2, TB3>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB1").
WithLocation
(37, 9),
104620
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB2>").WithArguments("B<TB1, TB2, TB3>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB2").
WithLocation
(38, 9)
104669
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "TB1").WithArguments("IA<TA>", "TA", "TB1").
WithLocation
(21, 12),
104672
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1").WithArguments("B<TB1, TB2>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(30, 9),
104675
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1<TB1>").WithArguments("B<TB1, TB2>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(32, 9)
104720
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "IB").WithArguments("IA<TA>", "TA", "TIB").
WithLocation
(8, 18),
104723
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "TB1").WithArguments("IA<TA>", "TA", "TB1").
WithLocation
(18, 12),
104726
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1").WithArguments("B<TB1, TB2>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(27, 9),
104729
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1<TB1>").WithArguments("B<TB1, TB2>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(29, 9)
104816
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "TB1").WithArguments("IA<TA>", "TA", "TB1").
WithLocation
(18, 12),
104819
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1").WithArguments("B<TB1, TB2>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(27, 9),
104822
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1<TB1>").WithArguments("B<TB1, TB2>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(29, 9)
104889
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "IB").WithArguments("IA<TA>", "ID<string>", "TA", "TIB").
WithLocation
(8, 18),
104892
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "IC").WithArguments("IA<TA>", "ID<string>", "TA", "TIC").
WithLocation
(11, 18),
104895
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB1").WithArguments("IA<TA>", "ID<string>", "TA", "TB1").
WithLocation
(28, 12),
104898
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB2").WithArguments("IA<TA>", "ID<string>", "TA", "TB2").
WithLocation
(29, 12),
104901
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1, TB2, TB3, TB4>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB1").
WithLocation
(39, 9),
104904
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1, TB2, TB3, TB4>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB2").
WithLocation
(41, 9),
104907
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1>").WithArguments("B<TB1, TB2, TB3, TB4>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB1").
WithLocation
(43, 9),
104910
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB2>").WithArguments("B<TB1, TB2, TB3, TB4>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB2").
WithLocation
(44, 9)
105049
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB1").WithArguments("IA<TA>", "ID<string>", "TA", "TB1").
WithLocation
(33, 12),
105052
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB2").WithArguments("IA<TA>", "ID<string>", "TA", "TB2").
WithLocation
(34, 12),
105055
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1, TB2, TB3, TB4>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB1").
WithLocation
(46, 9),
105058
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1, TB2, TB3, TB4>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB2").
WithLocation
(48, 9),
105061
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1>").WithArguments("B<TB1, TB2, TB3, TB4>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB1").
WithLocation
(50, 9),
105064
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB2>").WithArguments("B<TB1, TB2, TB3, TB4>.M1<TM1>(TM1)", "ID<string>", "TM1", "TB2").
WithLocation
(51, 9)
105107
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "TB1").WithArguments("IA<TA>", "TA", "TB1").
WithLocation
(12, 12),
105110
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB1").WithArguments("IA<TA>", "IB", "TA", "TB1").
WithLocation
(12, 12),
105113
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB1").WithArguments("IA<TA>", "IC", "TA", "TB1").
WithLocation
(12, 12),
105116
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1").WithArguments("B<TB1>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(20, 9),
105119
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1>.M1<TM1>(TM1)", "IB", "TM1", "TB1").
WithLocation
(20, 9),
105122
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1>.M1<TM1>(TM1)", "IC", "TM1", "TB1").
WithLocation
(20, 9),
105125
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1<TB1>").WithArguments("B<TB1>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(21, 9),
105128
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1>").WithArguments("B<TB1>.M1<TM1>(TM1)", "IB", "TM1", "TB1").
WithLocation
(21, 9),
105131
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1>").WithArguments("B<TB1>.M1<TM1>(TM1)", "IC", "TM1", "TB1").
WithLocation
(21, 9)
105160
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1>.M1<TM1, TM2>(TM1, TM2)", "TB1", "TM2", "TB1?").
WithLocation
(9, 9),
105163
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1, TB1?>").WithArguments("B<TB1>.M1<TM1, TM2>(TM1, TM2)", "TB1", "TM2", "TB1?").
WithLocation
(10, 9)
105192
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1>.M1<TM1, TM2>(TM1, TM2)", "TB1", "TM2", "TB1?").
WithLocation
(9, 9),
105195
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1, TB1?>").WithArguments("B<TB1>.M1<TM1, TM2>(TM1, TM2)", "TB1", "TM2", "TB1?").
WithLocation
(10, 9)
105224
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1>.M1<TM1, TM2>(TM1, TM2)", "TB1", "TM2", "TB1?").
WithLocation
(9, 9),
105227
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1, TB1?>").WithArguments("B<TB1>.M1<TM1, TM2>(TM1, TM2)", "TB1", "TM2", "TB1?").
WithLocation
(10, 9)
105262
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1>.M1<TM1, TM2>(TM1, TM2)", "TB1", "TM2", "TB1?").
WithLocation
(9, 9),
105265
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1, TB1?>").WithArguments("B<TB1>.M1<TM1, TM2>(TM1, TM2)", "TB1", "TM2", "TB1?").
WithLocation
(10, 9)
105300
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1>.M1<TM1, TM2>(TM1, TM2)", "TB1", "TM2", "TB1?").
WithLocation
(9, 9),
105303
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1, TB1?>").WithArguments("B<TB1>.M1<TM1, TM2>(TM1, TM2)", "TB1", "TM2", "TB1?").
WithLocation
(10, 9)
105349
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "IB").WithArguments("IA<TA>", "TA", "string?").
WithLocation
(8, 18),
105352
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "string?").WithArguments("IA<TA>", "TA", "string?").
WithLocation
(18, 12),
105355
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1").WithArguments("B.M1<TM1>(TM1)", "TM1", "string?").
WithLocation
(27, 9),
105358
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1<string?>").WithArguments("B.M1<TM1>(TM1)", "TM1", "string?").
WithLocation
(29, 9),
105361
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1<string?>").WithArguments("B.M1<TM1>(TM1)", "TM1", "string?").
WithLocation
(30, 9)
105407
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "IB").WithArguments("IA<TA>", "TA", "string?").
WithLocation
(8, 18),
105410
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "string?").WithArguments("IA<TA>", "TA", "string?").
WithLocation
(18, 12),
105413
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1").WithArguments("B.M1<TM1>(TM1)", "TM1", "string?").
WithLocation
(27, 9),
105416
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1<string?>").WithArguments("B.M1<TM1>(TM1)", "TM1", "string?").
WithLocation
(29, 9),
105419
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1<string?>").WithArguments("B.M1<TM1>(TM1)", "TM1", "string?").
WithLocation
(30, 9)
105469
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "TB1").WithArguments("IA<TA>", "TA", "TB1").
WithLocation
(21, 12),
105472
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1").WithArguments("B<TB1, TB2>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(30, 9),
105475
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1<TB1>").WithArguments("B<TB1, TB2>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(32, 9)
105529
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "IB").WithArguments("IA<TA>", "TA", "TIB").
WithLocation
(4, 18),
105532
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "TB1").WithArguments("IA<TA>", "TA", "TB1").
WithLocation
(14, 12),
105535
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1").WithArguments("A.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(20, 9),
105538
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1<TB1>").WithArguments("A.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(22, 9)
105624
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "TB1").WithArguments("IA<TA>", "TA", "TB1").
WithLocation
(12, 12),
105627
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB1").WithArguments("IA<TA>", "IB", "TA", "TB1").
WithLocation
(12, 12),
105630
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "TB1").WithArguments("IA<TA>", "IC", "TA", "TB1").
WithLocation
(12, 12),
105633
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1").WithArguments("B<TB1>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(20, 9),
105636
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1>.M1<TM1>(TM1)", "IB", "TM1", "TB1").
WithLocation
(20, 9),
105639
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1").WithArguments("B<TB1>.M1<TM1>(TM1)", "IC", "TM1", "TB1").
WithLocation
(20, 9),
105642
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1<TB1>").WithArguments("B<TB1>.M1<TM1>(TM1)", "TM1", "TB1").
WithLocation
(21, 9),
105645
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1>").WithArguments("B<TB1>.M1<TM1>(TM1)", "IB", "TM1", "TB1").
WithLocation
(21, 9),
105648
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M1<TB1>").WithArguments("B<TB1>.M1<TM1>(TM1)", "IC", "TM1", "TB1").
WithLocation
(21, 9)
105807
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T1)NullableObject()").
WithLocation
(8, 17),
105810
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").
WithLocation
(9, 16),
105813
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(15, 23),
105816
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2)").
WithLocation
(16, 23),
105819
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T2)NullableObject()").
WithLocation
(19, 17),
105822
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").
WithLocation
(20, 16),
105825
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(26, 23),
105828
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3)").
WithLocation
(27, 23),
105831
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T3)NullableObject()").
WithLocation
(31, 16),
105834
Diagnostic(ErrorCode.ERR_NameNotInContext, "t3").WithArguments("t3").
WithLocation
(32, 16),
105837
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(38, 23),
105840
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4)").
WithLocation
(39, 23),
105843
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T4)NullableObject()").
WithLocation
(42, 17),
105846
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").
WithLocation
(43, 16),
105849
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(49, 23),
105852
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T5)").
WithLocation
(50, 23),
105855
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T5)NullableObject()").
WithLocation
(53, 17),
105858
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t5").
WithLocation
(54, 16),
105861
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(4, 23),
105864
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1)").
WithLocation
(5, 23));
105923
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t1").WithArguments("o", "void C.F(object o)").
WithLocation
(8, 18),
105926
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t1").
WithLocation
(9, 18),
105929
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(object)t1").WithArguments("o", "void C.F(object o)").
WithLocation
(9, 18),
105932
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(10, 9),
105935
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t4").WithArguments("o", "void C.F(object o)").
WithLocation
(26, 18),
105938
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t4").
WithLocation
(27, 18),
105941
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(object)t4").WithArguments("o", "void C.F(object o)").
WithLocation
(27, 18),
105944
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t4").
WithLocation
(28, 9)
105978
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)x1").
WithLocation
(7, 14),
105981
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)x3").
WithLocation
(19, 14)
106039
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(3, 34),
106042
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(6, 50),
106045
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(7, 49),
106048
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(10, 56),
106051
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(11, 34),
106054
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)t").
WithLocation
(11, 34),
106057
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(14, 50),
106060
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)t").
WithLocation
(14, 50),
106063
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)u").
WithLocation
(15, 49),
106066
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)u").
WithLocation
(15, 49),
106069
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)u").
WithLocation
(18, 56),
106072
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(object)u").
WithLocation
(18, 56));
106107
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(19, 44),
106110
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").
WithLocation
(19, 44),
106113
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(20, 51),
106116
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").
WithLocation
(20, 51),
106119
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").
WithLocation
(21, 52),
106122
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(22, 51),
106125
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").
WithLocation
(22, 51),
106128
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)(object)t").
WithLocation
(23, 32),
106131
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").
WithLocation
(23, 32),
106134
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(23, 35));
106156
Diagnostic(ErrorCode.ERR_UseDefViolation, "t").WithArguments("t").
WithLocation
(7, 9),
106159
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(7, 9));
106183
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(4, 39),
106186
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").
WithLocation
(5, 39),
106189
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)u").
WithLocation
(8, 59),
106192
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "(T)u").
WithLocation
(8, 59),
106195
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)(object)u").
WithLocation
(9, 47),
106198
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "(T)(object)u").
WithLocation
(9, 47),
106201
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)u").
WithLocation
(9, 50));
106248
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "CopyOutInherit").WithArguments("C.CopyOutInherit<T1, T2>(T1, out T2)").
WithLocation
(29, 9),
106251
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(10, 9),
106254
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(13, 9),
106257
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x3").
WithLocation
(16, 9),
106260
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x4").
WithLocation
(21, 9),
106263
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x5").
WithLocation
(24, 9),
106266
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x6").
WithLocation
(27, 9));
106289
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(4, 34),
106292
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)(object)t").
WithLocation
(4, 31),
106295
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").
WithLocation
(4, 31),
106298
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(5, 50),
106301
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)(object)t").
WithLocation
(5, 47),
106304
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").
WithLocation
(5, 47),
106307
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(6, 51),
106310
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)(object)t").
WithLocation
(6, 48)
106363
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T)").
WithLocation
(5, 9),
106366
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(11, 9),
106369
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(16, 9),
106372
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(20, 9),
106375
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(25, 9),
106378
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a2[0]").
WithLocation
(26, 9),
106381
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a3[0]").
WithLocation
(34, 9)
106409
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t1").
WithLocation
(8, 11),
106412
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(object)t1").WithArguments("o", "void C.F(object o)").
WithLocation
(8, 11)
106440
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(2, 22),
106443
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(5, 20),
106446
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(6, 22),
106449
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(7, 29),
106452
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "V?").WithArguments("9.0").
WithLocation
(8, 36)
106470
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(1, 29),
106473
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(5, 39)
106505
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(5, 10),
106508
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(11, 30),
106511
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(12, 5),
106514
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(13, 7),
106517
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(14, 22),
106520
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(14, 28),
106523
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(15, 14),
106526
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(16, 24),
106529
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(17, 39)
106563
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(16, 12),
106566
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(8, 12),
106569
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(18, 12),
106572
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(10, 12),
106575
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(20, 12),
106578
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(5, 12),
106581
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(15, 12),
106584
Diagnostic(ErrorCode.ERR_ConWithValCon, "U").WithArguments("U", "T").
WithLocation
(17, 23),
106587
Diagnostic(ErrorCode.ERR_ConWithUnmanagedCon, "U").WithArguments("U", "T").
WithLocation
(19, 23));
106619
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(4, 34),
106622
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(7, 34),
106625
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(9, 34),
106628
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.F4<T>(T?)").
WithLocation
(12, 7),
106631
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.F1<T>(T?)").
WithLocation
(12, 7),
106634
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.F2<T>(T?)").
WithLocation
(12, 7),
106637
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.F6<T>(T?)").
WithLocation
(12, 7),
106640
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.F7<T>(T?)").
WithLocation
(12, 7),
106643
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B.F1<U>(U?)").
WithLocation
(14, 28),
106646
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(14, 37),
106649
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B.F2<U>(U?)").
WithLocation
(15, 28),
106652
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(15, 37),
106655
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F4").WithArguments("B.F4<U>(U?)").
WithLocation
(17, 28),
106658
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(17, 37),
106661
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F6").WithArguments("B.F6<U>(U?)").
WithLocation
(19, 28),
106664
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 37),
106667
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F7").WithArguments("B.F7<U>(U?)").
WithLocation
(20, 28),
106670
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 37));
106691
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(9, 25),
106694
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(8, 25)
106717
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(6, 9),
106720
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(7, 24),
106723
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(8, 29),
106726
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(9, 17)
106747
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(7, 12));
106770
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(6, 9),
106773
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(10, 20));
106908
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(2, 22),
106911
Diagnostic(ErrorCode.ERR_BadBoundType, "T?").WithArguments("T?").
WithLocation
(4, 30),
106914
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(3, 9),
106917
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(2, 9),
106920
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(5, 9));
106956
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(2, 15),
106959
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(11, 15),
106962
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(12, 15),
106965
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "U").
WithLocation
(10, 9),
106968
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "U").
WithLocation
(15, 9),
106971
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "U").
WithLocation
(20, 9));
106993
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(1, 25),
106996
Diagnostic(ErrorCode.ERR_DuplicateBound, "T?").WithArguments("T", "T").
WithLocation
(1, 25),
106999
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(1, 9),
107002
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(2, 22),
107005
Diagnostic(ErrorCode.ERR_DuplicateBound, "U").WithArguments("U", "U").
WithLocation
(2, 26),
107008
Diagnostic(ErrorCode.ERR_CircularConstraint, "U").WithArguments("U", "U").
WithLocation
(2, 9),
107011
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "V?").WithArguments("9.0").
WithLocation
(3, 22),
107014
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "V?").WithArguments("9.0").
WithLocation
(3, 26),
107017
Diagnostic(ErrorCode.ERR_DuplicateBound, "V?").WithArguments("V", "V").
WithLocation
(3, 26),
107020
Diagnostic(ErrorCode.ERR_CircularConstraint, "V").WithArguments("V", "V").
WithLocation
(3, 9),
107023
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T1?").WithArguments("9.0").
WithLocation
(5, 20),
107026
Diagnostic(ErrorCode.ERR_DuplicateBound, "T1?").WithArguments("T1", "U1").
WithLocation
(5, 20),
107029
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T2?").WithArguments("9.0").
WithLocation
(7, 23),
107032
Diagnostic(ErrorCode.ERR_DuplicateBound, "T2").WithArguments("T2", "U2").
WithLocation
(7, 28),
107035
Diagnostic(ErrorCode.ERR_DuplicateBound, "T3?").WithArguments("T3", "U3").
WithLocation
(10, 20));
107057
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(5, 20),
107060
Diagnostic(ErrorCode.ERR_BadBoundType, "T?").WithArguments("T?").
WithLocation
(6, 43),
107063
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(7, 20),
107066
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(8, 38),
107069
Diagnostic(ErrorCode.ERR_BadBoundType, "T?").WithArguments("T?").
WithLocation
(10, 55),
107072
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(4, 35),
107075
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(4, 20));
107101
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(7, 32),
107104
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(7, 17),
107107
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(8, 17),
107110
Diagnostic(ErrorCode.ERR_BadBoundType, "T?").WithArguments("T?").
WithLocation
(9, 40),
107113
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(10, 17),
107116
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(11, 35),
107119
Diagnostic(ErrorCode.ERR_BadBoundType, "T?").WithArguments("T?").
WithLocation
(13, 52));
107182
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "B2").WithArguments("I<T, U>", "T", "U", "T?").
WithLocation
(15, 7),
107185
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "B3").WithArguments("A<T, U>", "T", "T?").
WithLocation
(19, 7),
107188
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "B3").WithArguments("I<T, U>", "T", "T?").
WithLocation
(19, 7),
107191
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "B4").WithArguments("A<T, U>", "T", "T?").
WithLocation
(23, 7),
107194
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "B4").WithArguments("I<T, U>", "T", "T?").
WithLocation
(23, 7));
107229
Diagnostic(ErrorCode.ERR_CircularConstraint, "object?").WithArguments("T", "T").
WithLocation
(6, 19),
107232
Diagnostic(ErrorCode.ERR_CircularConstraint, "object").WithArguments("T", "T").
WithLocation
(7, 19));
107263
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(3, 15),
107266
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 16)
107286
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "object?").WithArguments("C<T, U>", "T", "object?").
WithLocation
(6, 19),
107289
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "object?").WithArguments("C<T, U>", "T", "object?").
WithLocation
(7, 19)
107308
Diagnostic(ErrorCode.ERR_ConstructedDynamicTypeAsBound, "I<dynamic?>").WithArguments("I<dynamic?>").
WithLocation
(5, 35));
107331
Diagnostic(ErrorCode.ERR_DuplicateBound, "T").WithArguments("T", "U").
WithLocation
(4, 38),
107334
Diagnostic(ErrorCode.ERR_DuplicateBound, "T?").WithArguments("T", "U").
WithLocation
(5, 38),
107337
Diagnostic(ErrorCode.ERR_DuplicateBound, "T").WithArguments("T", "U").
WithLocation
(6, 39),
107340
Diagnostic(ErrorCode.ERR_DuplicateBound, "T?").WithArguments("T", "U").
WithLocation
(7, 39),
107343
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<T>").WithArguments("I<T>", "U").
WithLocation
(8, 41),
107346
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<T?>").WithArguments("I<T>", "U").
WithLocation
(9, 41),
107349
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "U").WithArguments("I<T>", "T", "T?").
WithLocation
(10, 20),
107352
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<T>").WithArguments("I<T>", "U").
WithLocation
(10, 42),
107355
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "U").WithArguments("I<T>", "T", "T?").
WithLocation
(11, 20),
107358
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<T?>").WithArguments("I<T>", "U").
WithLocation
(11, 42));
107397
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "B").WithArguments("B<T>", "T").
WithLocation
(2, 15));
107413
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(3, 26),
107416
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(4, 20),
107419
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(5, 20),
107422
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(5, 27),
107425
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").
WithLocation
(2, 7),
107428
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").
WithLocation
(5, 7),
107431
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").
WithLocation
(3, 7),
107434
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").
WithLocation
(4, 7)
107451
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").
WithLocation
(2, 7),
107454
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").
WithLocation
(3, 7),
107457
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(3, 26),
107460
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").
WithLocation
(4, 7),
107463
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").
WithLocation
(5, 7),
107466
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(5, 27)
107483
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").
WithLocation
(2, 7),
107486
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").
WithLocation
(3, 7),
107489
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(3, 26),
107492
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").
WithLocation
(4, 7),
107495
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").
WithLocation
(5, 7),
107498
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(5, 27)
107516
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").
WithLocation
(2, 7),
107519
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").
WithLocation
(3, 7),
107522
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").
WithLocation
(4, 7),
107525
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").
WithLocation
(5, 7));
107541
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").
WithLocation
(2, 7),
107544
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").
WithLocation
(3, 7),
107547
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").
WithLocation
(4, 7),
107550
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").
WithLocation
(5, 7));
107576
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z1 = x1").
WithLocation
(6, 10),
107579
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2").
WithLocation
(12, 15),
107582
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z2 = x2").
WithLocation
(12, 10));
107733
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("t", "void I<object>.F(object t)").
WithLocation
(11, 14));
107769
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("t", "void A<object>.F(object t)").
WithLocation
(11, 14));
107818
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 48),
107821
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 63)
107840
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A2<object>").WithArguments("B2<T, U>", "A2<object?>", "U", "A2<object>").
WithLocation
(8, 29));
107870
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 45),
107873
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(8, 44),
107876
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 51),
107879
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(8, 50),
107882
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(12, 44),
107885
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(12, 50)
107926
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 20)
107934
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 45),
107937
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 51)
107944
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 20),
107947
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "B4").WithArguments("A<T>", "T", "string?").
WithLocation
(27, 7)
107955
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 20),
107958
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "B4").WithArguments("A<T>", "T", "string?").
WithLocation
(27, 7)
108022
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(20, 14),
108025
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(20, 13),
108028
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 56),
108031
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 85),
108034
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(18, 99),
108037
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(18, 98)
108076
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(9, 14),
108079
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(9, 13),
108082
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 56),
108085
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 85),
108088
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 99),
108091
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(7, 98)
108140
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "B2").WithArguments("A<T>", "I<B2>", "T", "B2").
WithLocation
(10, 22),
108143
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "B1?").WithArguments("A<T>", "I<B1?>", "T", "B1?").
WithLocation
(11, 22)
108226
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(15, 9),
108229
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 24),
108232
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 9),
108235
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(19, 9),
108238
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "G9").WithArguments("B4<T>", "A", "T", "A?").
WithLocation
(35, 12),
108241
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(21, 9),
108244
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 9)
108300
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 31),
108303
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(15, 16),
108306
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 16),
108309
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(19, 16),
108312
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(21, 16),
108315
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 16),
108318
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "G4").WithArguments("B1<T>", "A<object?>", "T", "A<object>").
WithLocation
(30, 19),
108321
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "G8").WithArguments("B3<T>", "A<object?>", "T", "A<object>").
WithLocation
(34, 19),
108324
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "G9").WithArguments("B4<T>", "A<object>", "T", "A<object?>").
WithLocation
(35, 20)
108359
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(2, 30),
108362
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(2, 29),
108365
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 27),
108368
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(3, 26),
108371
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "T").WithArguments("A1<T, U>", "U", "T?").
WithLocation
(5, 10),
108374
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "T").WithArguments("A1<T, U>", "T", "U", "T?").
WithLocation
(5, 10),
108377
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "T").WithArguments("A2<T, U>", "T", "T?").
WithLocation
(7, 10));
108457
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "F1<S2>").WithArguments("B.F1<T>()", "I<object?>", "T", "S2").
WithLocation
(22, 9),
108460
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "F2<S1>").WithArguments("B.F2<T>()", "I<object>", "T", "S1").
WithLocation
(24, 9),
108463
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "FIn1<SIn2>").WithArguments("B.FIn1<T>()", "IIn<object?>", "T", "SIn2").
WithLocation
(34, 9),
108466
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "FOut2<SOut1>").WithArguments("B.FOut2<T>()", "IOut<object>", "T", "SOut1").
WithLocation
(48, 9));
108527
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "F1<U>").WithArguments("B.F1<T>()", "I<object?>", "T", "U").
WithLocation
(14, 9),
108530
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "F2<T>").WithArguments("B.F2<T>()", "I<object>", "T", "T").
WithLocation
(15, 9),
108533
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "FIn1<U>").WithArguments("B.FIn1<T>()", "IIn<object?>", "T", "U").
WithLocation
(23, 9),
108536
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "FOut2<T>").WithArguments("B.FOut2<T>()", "IOut<object>", "T", "T").
WithLocation
(33, 9));
108575
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "F1").WithArguments("C.F1<T>(T)", "A", "T", "A?").
WithLocation
(11, 9),
108578
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(12, 13),
108581
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "F1").WithArguments("C.F1<T>(T)", "A", "T", "A?").
WithLocation
(14, 9));
108617
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "this.F").
WithLocation
(13, 21),
108620
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "base.F").
WithLocation
(19, 21));
108655
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "this.F").
WithLocation
(12, 21),
108658
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "base.F").
WithLocation
(18, 21));
108694
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 26),
108697
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_g").
WithLocation
(15, 28),
108700
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_f").
WithLocation
(19, 28));
108736
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_f").
WithLocation
(10, 28),
108739
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(17, 26),
108742
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "_g").
WithLocation
(18, 28));
108765
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A").WithArguments("B<T>", "I<A?>", "T", "A").
WithLocation
(8, 15));
108812
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 22),
108815
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(9, 22)
108846
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 22),
108849
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(9, 22)
108862
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "string?").WithArguments("A0<T>", "System.IEquatable<string?>", "T", "string?").
WithLocation
(5, 16),
108865
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "string?").WithArguments("A5<T>", "System.IEquatable<string?>", "T", "string?").
WithLocation
(9, 16)
108906
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(2, 48),
108909
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(2, 49)
108917
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 22)
108926
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(2, 48),
108929
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(2, 49)
108936
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 22)
108948
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 22)
108956
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "string?").WithArguments("A2<T>", "T", "string?").
WithLocation
(5, 16),
108959
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "string?").WithArguments("A2<T>", "System.IEquatable<string?>", "T", "string?").
WithLocation
(5, 16)
109057
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F").WithArguments("field", "F").
WithLocation
(7, 8),
109060
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "F").WithArguments("A<T1, T2>.F").
WithLocation
(7, 8),
109063
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(15, 17),
109066
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(21, 13),
109069
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(30, 17),
109072
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(40, 17),
109075
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(50, 17)
109146
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "F").WithArguments("A<T1, T2>.F").
WithLocation
(9, 8),
109149
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 17),
109152
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(23, 13),
109155
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(31, 17),
109158
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(40, 17),
109161
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(49, 17));
109264
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "F").WithArguments("A<T1, T2>.F").
WithLocation
(8, 8),
109267
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 17),
109270
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(27, 17),
109273
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(35, 17),
109276
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(43, 17)
109345
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "F").WithArguments("A<T1, T2>.F").
WithLocation
(7, 8),
109348
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 17),
109351
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(29, 17),
109354
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(38, 17),
109357
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(47, 17));
109608
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 6)
109993
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 5)
110704
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 6)
110740
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 6)
110777
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 6)
111140
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(29, 17),
111143
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(30, 17),
111146
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(31, 17));
111188
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "T1?").WithArguments("A<T1>.B<T2>", "T1", "T2", "T1?").
WithLocation
(20, 17),
111191
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "C?").WithArguments("A<C>.B<T2>", "C", "T2", "C?").
WithLocation
(22, 16)
111275
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "obj").
WithLocation
(6, 9));
111307
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(5, 9),
111310
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(7, 9),
111313
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(7, 9),
111316
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 9),
111319
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(18, 9));
111350
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(5, 9),
111353
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(7, 9),
111356
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(7, 9),
111359
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 9),
111362
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(18, 9));
111393
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("y", "void E.F2(C x, C y)").
WithLocation
(13, 22),
111396
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "void E.F2(C x, C y)").
WithLocation
(14, 9),
111399
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("y", "void E.F2(C x, C y)").
WithLocation
(14, 14));
111426
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 17),
111429
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(12, 17),
111432
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 13));
111475
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 17),
111478
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(20, 17),
111481
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(24, 17),
111484
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(28, 17));
111506
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(6, 9));
111532
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 9),
111535
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(11, 9));
111561
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 13),
111564
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 13),
111567
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(10, 17),
111570
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(11, 9));
111602
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 13),
111605
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 13),
111608
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(16, 15),
111611
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(17, 9)
111640
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 13),
111643
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(12, 9),
111646
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(13, 9));
111674
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 13),
111677
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(12, 9),
111680
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(13, 9));
111712
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(11, 9),
111715
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(13, 9),
111718
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(14, 9),
111721
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(17, 9),
111724
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(17, 15),
111727
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z.E").
WithLocation
(18, 9));
111757
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d").
WithLocation
(5, 9),
111760
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(11, 13),
111763
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(12, 13),
111766
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(14, 9),
111769
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(15, 9));
111796
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 13));
111827
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 12),
111830
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "void E.F(C x)").
WithLocation
(12, 12));
111917
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(9, 27),
111920
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(14, 27),
111923
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(19, 27),
111926
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(24, 9));
112365
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Outer<T>.Inner<U>.Interface<U, T>").WithArguments("Outer<T>.Inner<U>.Derived4.Derived5", "Outer<T>.Inner<U>.Interface<U, T>.Method<Z>(T, U[], System.Collections.Generic.List<U>, System.Collections.Generic.Dictionary<T, Z>)").
WithLocation
(14, 39),
112368
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Method").WithArguments("Outer<T>.Inner<U>.Derived4.Derived5.Method<K>(T, U[], System.Collections.Generic.List<U>, System.Collections.Generic.Dictionary<K, T>)").
WithLocation
(20, 47)
112665
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1<(CT1 a, CT2 b)>").WithArguments("C<CT1, CT2>.I1<(CT1 a, CT2 b)>.M()", "I1<(CT1 a, CT2 b)>").
WithLocation
(4, 10)
112706
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C").WithArguments("I1<(CT1 a, CT2 b)>", "I1<(CT1, CT2)>", "C<CT1, CT2>").
WithLocation
(2, 7),
112709
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1<(CT1 c, CT2 d)>").WithArguments("C<CT1, CT2>.I1<(CT1 c, CT2 d)>.M()", "I1<(CT1 c, CT2 d)>").
WithLocation
(4, 10)
112933
Diagnostic(ErrorCode.ERR_NoTypeDef, "A").WithArguments("System.ValueType", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 10),
112936
Diagnostic(ErrorCode.ERR_NoTypeDef, "B").WithArguments("System.Enum", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 15),
112939
Diagnostic(ErrorCode.ERR_NoTypeDef, "D").WithArguments("System.MulticastDelegate", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 25)
112962
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
112964
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
112966
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
112968
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
112970
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
112972
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
112974
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
112976
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
112978
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
112980
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
112982
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
112984
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
112986
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Int32").
WithLocation
(1, 1),
112988
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
112990
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
112992
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
112994
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1));
113001
Diagnostic(ErrorCode.ERR_NoTypeDef, "A").WithArguments("System.ValueType", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 10),
113004
Diagnostic(ErrorCode.ERR_NoTypeDef, "B").WithArguments("System.Enum", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 15),
113007
Diagnostic(ErrorCode.ERR_NoTypeDef, "D").WithArguments("System.MulticastDelegate", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 25)
113088
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(7, 13)
113109
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(7, 13)
113218
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M2").WithArguments("Outer.M2<U>(U)", "U", "T").
WithLocation
(7, 9),
113221
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M2<T>").WithArguments("Outer.M2<U>(U)", "U", "T").
WithLocation
(8, 9),
113224
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M2").WithArguments("Outer.M2<U>(U)", "U", "T").
WithLocation
(10, 9),
113227
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(x0)").
WithLocation
(10, 9),
113230
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M2<T>").WithArguments("Outer.M2<U>(U)", "U", "T").
WithLocation
(11, 9),
113233
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2<T>(x0)").
WithLocation
(11, 9),
113236
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").
WithLocation
(19, 18)
113265
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(x0)").
WithLocation
(12, 9),
113268
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2<T>(x0)").
WithLocation
(13, 9)
113316
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y0").
WithLocation
(6, 14),
113319
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y1").
WithLocation
(11, 20),
113322
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y1").
WithLocation
(12, 14)
113372
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("object", "T").
WithLocation
(7, 13),
113375
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y").WithArguments("object", "T").
WithLocation
(8, 13),
113378
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(10, 9));
113404
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(10, 9)
113432
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("object", "T").
WithLocation
(7, 13),
113435
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y").WithArguments("object", "T").
WithLocation
(8, 13),
113438
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(10, 9));
113465
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(10, 9)
113493
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("object", "T").
WithLocation
(7, 13),
113496
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y").WithArguments("object", "T").
WithLocation
(8, 13),
113499
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(10, 9));
113526
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(10, 9)
113549
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("T", "U").
WithLocation
(7, 13),
113552
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 9));
113576
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("T", "U").
WithLocation
(7, 13),
113579
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 9));
113603
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("T", "U").
WithLocation
(7, 13),
113606
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 9));
113630
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("T", "U").
WithLocation
(7, 13)
113654
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("object", "T").
WithLocation
(8, 13)
113792
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(18, 9),
113795
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(34, 13),
113798
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(44, 13),
113801
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(63, 13),
113804
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(70, 13),
113807
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(82, 13),
113810
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(89, 13),
113813
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(106, 13),
113816
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(116, 13));
113881
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(16, 13),
113884
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)x").
WithLocation
(17, 13),
113887
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(18, 9),
113890
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(32, 17),
113893
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)x").
WithLocation
(33, 17),
113896
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(34, 13),
113899
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(42, 17),
113902
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(string)x").
WithLocation
(43, 17),
113905
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(44, 13));
113932
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("Outer", "T").
WithLocation
(7, 13),
113935
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y").WithArguments("Outer", "T").
WithLocation
(8, 13),
113938
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(10, 9)
113962
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("Outer", "T").
WithLocation
(8, 13)
113990
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("Outer", "T").
WithLocation
(7, 13),
113993
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(7, 13),
113996
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y").WithArguments("Outer", "T").
WithLocation
(8, 13),
113999
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)x").
WithLocation
(9, 13),
114002
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(10, 9)
114026
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("Outer", "T").
WithLocation
(8, 13)
114069
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
114090
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
114113
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
114136
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
114157
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(6, 13),
114160
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
114181
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default(T)").
WithLocation
(6, 13),
114184
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
114207
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
114230
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
114251
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 9)
114274
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 9)
114314
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 9)
114355
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1").WithArguments("Outer.M1<T>(T)", "T", "T").
WithLocation
(6, 9),
114358
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1<T>").WithArguments("Outer.M1<T>(T)", "T", "T").
WithLocation
(7, 9)
114383
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1").WithArguments("Outer.M1<T>(T)", "T", "T").
WithLocation
(7, 9),
114386
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M1<T>").WithArguments("Outer.M1<T>(T)", "T", "T").
WithLocation
(8, 9)
114410
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1").WithArguments("Outer.M1<T>(T)", "T", "T").
WithLocation
(6, 9),
114413
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1<T>").WithArguments("Outer.M1<T>(T)", "T", "T").
WithLocation
(7, 9)
114438
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1").WithArguments("Outer.M1<T>(T)", "T", "T").
WithLocation
(7, 9),
114441
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "M1<T>").WithArguments("Outer.M1<T>(T)", "T", "T").
WithLocation
(8, 9)
114462
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9));
114482
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 13),
114485
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
114506
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9));
114526
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 13),
114529
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9)
114551
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(x, x)").
WithLocation
(6, 9)
114574
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(x, y)").
WithLocation
(7, 9)
114597
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(x, y)").
WithLocation
(7, 9)
114622
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(x, y)").
WithLocation
(8, 9),
114625
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1<T>(x, y)").
WithLocation
(9, 9)
114647
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("x", "object Outer.M1<object>(object x, object y)").
WithLocation
(6, 12)
114689
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(x0, y0)").
WithLocation
(8, 9)
114735
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(x0, y0)").
WithLocation
(11, 9)
114846
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(out M3(x0), out y0)").
WithLocation
(12, 9),
114849
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2<T>(out M3(x0), out y0)").
WithLocation
(13, 9)
114879
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(out x0, out M3(y0))").
WithLocation
(12, 9),
114882
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2<T>(out x0, out M3(y0))").
WithLocation
(13, 9)
114911
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(out M3(x0), out M3(y0))").
WithLocation
(12, 9)
114936
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(out y0, out M3(z0))").
WithLocation
(8, 9)
114960
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(y0, z0)").
WithLocation
(8, 9)
115010
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(M3(x0), M3(y0))").
WithLocation
(10, 9)
115039
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(M3(x0), M3(y0))").
WithLocation
(10, 9)
115070
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(M3(x0), M3(y0))").
WithLocation
(12, 9)
115097
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(y0, M3(z0))").
WithLocation
(8, 9)
115204
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(ref M3(x0), ref y0)").
WithLocation
(10, 9)
115231
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(ref x0, ref M3(y0))").
WithLocation
(10, 9)
115257
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M2").WithArguments("Outer.M2<U>(ref U, ref U)", "U", "T").
WithLocation
(8, 9),
115260
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M2<T>").WithArguments("Outer.M2<U>(ref U, ref U)", "U", "T").
WithLocation
(9, 9)
115289
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M2").WithArguments("Outer.M2<U>(U)", "U", "T").
WithLocation
(7, 9),
115292
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "M2<T>").WithArguments("Outer.M2<U>(U)", "U", "T").
WithLocation
(8, 9)
115314
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x0").WithArguments("a", "void Outer.M2(object a)").
WithLocation
(6, 12)
115336
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x0").WithArguments("a", "void Outer.M2(in object a)").
WithLocation
(6, 12)
115363
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3").WithArguments("Outer.M3<U>(U)", "I1<object>", "U", "I1<T>").
WithLocation
(6, 9),
115366
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3<I1<T>>").WithArguments("Outer.M3<U>(U)", "I1<object>", "U", "I1<T>").
WithLocation
(7, 9),
115369
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3<I1<string?>>").WithArguments("Outer.M3<U>(U)", "I1<object>", "U", "I1<string?>").
WithLocation
(8, 9)
115400
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3").WithArguments("Outer.M3<U, W>(U, W?)", "I1<U?>", "U", "I1<T>").
WithLocation
(6, 9),
115403
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3").WithArguments("Outer.M3<U, W>(U, W?)", "I1<U?>", "U", "I1<T>").
WithLocation
(9, 9),
115406
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3<I1<T>, U>").WithArguments("Outer.M3<U, W>(U, W?)", "I1<U?>", "U", "I1<T>").
WithLocation
(11, 9),
115409
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3<I1<object>, string>").WithArguments("Outer.M3<U, W>(U, W?)", "I1<string?>", "U", "I1<object>").
WithLocation
(12, 9)
115437
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3<I1<object>, object?>").WithArguments("Outer.M3<U, W>(U, W)", "I1<object?>", "U", "I1<object>").
WithLocation
(9, 9)
115466
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3").WithArguments("Outer.M3<U>(U)", "I1<object>", "U", "I1<T>").
WithLocation
(7, 9),
115469
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3").WithArguments("Outer.M3<U>(U)", "I1<object>", "U", "I1<T>").
WithLocation
(8, 9),
115472
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3<I1<T>>").WithArguments("Outer.M3<U>(U)", "I1<object>", "U", "I1<T>").
WithLocation
(9, 9)
115530
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "M3<I1<object>, string?>").WithArguments("Outer.M3<U, W>(U, W)", "I1<string?>", "U", "I1<object>").
WithLocation
(12, 9)
115604
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(8, 9)
115649
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(z0)").
WithLocation
(10, 9)
115669
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0 ?? y0").
WithLocation
(6, 10)
115720
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z0").
WithLocation
(8, 22)
115747
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(9, 13),
115750
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(10, 13)
115771
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(6, 19),
115774
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(7, 9)
115795
Diagnostic(ErrorCode.ERR_ConstantExpected, "default(T)").
WithLocation
(6, 19),
115798
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(7, 9)
115824
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(x0)").
WithLocation
(9, 9)
115868
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(x0)").
WithLocation
(9, 9)
115898
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(x0)").
WithLocation
(10, 13),
115901
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(y0)").
WithLocation
(11, 13)
115935
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(17, 9)
115969
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(17, 9)
116078
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(4, 35)
116105
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(z0)").
WithLocation
(8, 9),
116108
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(10, 9));
116134
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(z0)").
WithLocation
(11, 9)
116179
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(v0)").
WithLocation
(11, 9)
116208
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(v0)").
WithLocation
(13, 9)
116237
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(v0)").
WithLocation
(13, 9)
116266
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a0[0]").
WithLocation
(10, 9)
116493
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(18, 9)
116529
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(20, 9)
116565
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(20, 9)
116697
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(C<T> a, C<T> b) =>").WithArguments("a", "lambda expression", "System.Action<C<T?>, C<T>>").
WithLocation
(11, 13));
116747
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(z0)").
WithLocation
(11, 9)
116778
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(z0)").
WithLocation
(11, 9)
116828
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(8, 9));
116947
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? x0 : y0").
WithLocation
(6, 10)
116968
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? x0 : y0").
WithLocation
(7, 10)
116989
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b ? x0 : y0").
WithLocation
(7, 10)
117016
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(z0)").
WithLocation
(11, 9)
117110
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(8, 9)
117137
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(8, 9)
117178
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "true ? x0 : y0").
WithLocation
(6, 10)
117199
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "true ? x0 : y0").
WithLocation
(7, 10)
117242
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(z0)").
WithLocation
(10, 9),
117245
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(12, 9));
117272
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(10, 9));
117300
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(z0)").
WithLocation
(9, 9),
117303
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(11, 9));
117329
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9));
117355
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9));
117382
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9)
117402
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "false ? x0 : y0").
WithLocation
(6, 10)
117439
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "false ? x0 : y0").
WithLocation
(7, 10)
117466
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(z0)").
WithLocation
(10, 9),
117469
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(12, 9));
117497
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(z0)").
WithLocation
(9, 9),
117500
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(11, 9));
117527
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(10, 9));
117553
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9));
117580
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9)
117607
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9));
117631
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9),
117634
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(11, 9)
117659
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9),
117662
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(11, 9));
117684
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t?.field").
WithLocation
(8, 16)
117711
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9),
117714
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(11, 9)
117740
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9),
117743
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(11, 9)
117771
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(10, 9),
117774
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(12, 9)
117801
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9),
117804
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(11, 9)
117830
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9),
117833
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(11, 9)
117857
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0?.M1()").
WithLocation
(6, 23),
117860
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(8, 9)
117885
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0?.M1()").
WithLocation
(7, 23),
117888
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9)
117912
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0?.M1()").
WithLocation
(6, 23),
117915
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(8, 9)
117940
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0?.M1()").
WithLocation
(7, 23),
117943
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9)
117967
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(8, 9)
117992
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9)
118016
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(8, 9)
118039
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(8, 9)
118064
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9)
118089
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9)
118113
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(8, 9)
118138
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9)
118162
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0?.M1()").
WithLocation
(6, 16),
118165
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(8, 9)
118190
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0?.M1()").
WithLocation
(7, 16),
118193
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(9, 9)
118215
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as object").
WithLocation
(6, 21),
118218
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118241
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
118263
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as dynamic").
WithLocation
(6, 22),
118266
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118289
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
118310
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118331
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118353
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
118374
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118395
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118417
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
118439
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118479
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
118482
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118504
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
118507
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118530
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(7, 16),
118533
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
118555
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
118558
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118580
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
118583
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118606
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(7, 16),
118609
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
118631
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as Outer<T>").
WithLocation
(6, 23),
118634
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118657
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as Outer<T>").
WithLocation
(7, 23),
118660
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
118681
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118703
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
118724
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118746
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as Outer<T>").
WithLocation
(6, 23),
118749
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118771
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
118774
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118797
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(7, 16),
118800
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
118822
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
118825
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118847
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as Outer<T>").
WithLocation
(6, 23),
118850
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118890
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118930
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
118933
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
118956
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(7, 16),
118959
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
118981
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
118984
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119008
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as I1").
WithLocation
(6, 17),
119011
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119055
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119099
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
119102
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119127
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(7, 16),
119130
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
119154
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
119157
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119179
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119238
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119315
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119374
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
119377
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119400
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(7, 16),
119403
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
119425
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
119428
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119449
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119471
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
119493
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
119496
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119517
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119539
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
119561
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(6, 16),
119564
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(8, 9)
119587
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x0 as T").
WithLocation
(7, 16),
119590
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(9, 9)
119617
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(z0)").
WithLocation
(10, 9));
119636
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0 ??= y0").
WithLocation
(6, 10));
119680
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(x0)").
WithLocation
(8, 9),
119683
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(11, 9));
119709
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(x0)").
WithLocation
(11, 9));
119739
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M1(y0)").
WithLocation
(11, 9));
119784
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t2 as T1").
WithLocation
(6, 16));
119821
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "FieldWithInferredAnnotation").WithArguments("field", "FieldWithInferredAnnotation").
WithLocation
(5, 12),
119824
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.FieldWithInferredAnnotation").
WithLocation
(19, 5));
119856
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(13, 16),
119859
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("A<object>", "A<object?>").
WithLocation
(18, 16));
119891
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(13, 16),
119894
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("A<object>", "A<object?>").
WithLocation
(18, 16));
119929
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E").WithArguments("event", "E").
WithLocation
(5, 25)
119958
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("t", "void C<object>.F(object t)").
WithLocation
(12, 13),
119961
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "z").WithArguments("t", "void C<object>.F(object t)").
WithLocation
(13, 13),
119964
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 13));
119997
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "b1.F").WithArguments("B<object>.F<U>(U)", "A<object>", "U", "A<object?>").
WithLocation
(13, 9),
120000
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "b2.F").WithArguments("B<object?>.F<U>(U)", "A<object?>", "U", "A<object>").
WithLocation
(18, 9));
120028
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c1.F").WithArguments("C<object>.F()").
WithLocation
(11, 9),
120031
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 13),
120034
Diagnostic(ErrorCode.ERR_ObjectProhibited, "c2.F").WithArguments("C<object>.F()").
WithLocation
(14, 9));
120498
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 13)
120533
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(16, 16)
120569
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 20)
120609
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 17),
120612
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 17)
120652
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 17),
120655
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 17)
120699
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 17),
120702
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 17),
120705
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(22, 17)
120745
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 17),
120748
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 17)
120787
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 17),
120790
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 17),
120793
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 17)
120829
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 17)
120869
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 17)
121109
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(27, 17),
121112
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(52, 17),
121115
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(77, 17),
121118
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(100, 21),
121121
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(124, 21),
121124
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(148, 21),
121127
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(174, 17),
121130
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(199, 17),
121133
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(224, 17)
121156
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)x").
WithLocation
(8, 13));
121194
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").
WithLocation
(11, 40),
121197
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a1.F").WithArguments("o", "void Program.F(object o)").
WithLocation
(12, 18),
121200
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b1.F").WithArguments("o", "void Program.F(object o)").
WithLocation
(14, 18),
121203
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").
WithLocation
(18, 35),
121206
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a2.F").WithArguments("o", "void Program.F(object o)").
WithLocation
(19, 18),
121209
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b2.F").WithArguments("o", "void Program.F(object o)").
WithLocation
(21, 18));
121247
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").
WithLocation
(11, 40),
121250
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a1.F").WithArguments("o", "void Program.F(object o)").
WithLocation
(12, 18),
121253
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b1.F").WithArguments("o", "void Program.F(object o)").
WithLocation
(14, 18),
121256
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").
WithLocation
(18, 35),
121259
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "a2.F").WithArguments("o", "void Program.F(object o)").
WithLocation
(19, 18),
121262
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "b2.F").WithArguments("o", "void Program.F(object o)").
WithLocation
(21, 18));
121299
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a3.B.A.B.A.B").
WithLocation
(19, 9));
121326
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.x1.x2.x3.x4.y5").
WithLocation
(10, 9));
121738
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 11)
122157
Diagnostic(ErrorCode.ERR_NullableDirectiveQualifierExpected, "safeonly").
WithLocation
(2, 11)
122956
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C<object?>() { F = null }").WithArguments("C<object?>", "C<object>").
WithLocation
(10, 23),
122959
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F").
WithLocation
(11, 9),
122962
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C<object>() { F = new object() }").WithArguments("C<object>", "C<object?>").
WithLocation
(12, 24));
122990
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new S<object?>()").WithArguments("S<object?>", "S<object>").
WithLocation
(10, 23),
122993
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F").
WithLocation
(11, 9),
122996
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new S<object>() { F = new object() }").WithArguments("S<object>", "S<object?>").
WithLocation
(12, 24));
123027
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new { F = y1 }").WithArguments("<anonymous type: C<object?>? F>", "<anonymous type: C<object> F>").
WithLocation
(8, 14),
123030
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a1.F").
WithLocation
(9, 9),
123033
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a2.F").
WithLocation
(14, 9),
123036
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new { F = y2 }").WithArguments("<anonymous type: C<object?> F>", "<anonymous type: C<object>? F>").
WithLocation
(15, 14));
123067
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(y1, y1)").WithArguments("(C<object?>?, C<object?>?)", "(C<object> x1, C<object?>? y1)").
WithLocation
(8, 14),
123070
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1.Item1").
WithLocation
(9, 9),
123073
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2.Item1").
WithLocation
(14, 9),
123076
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(y2, y2)").WithArguments("(C<object?>, C<object?>)", "(C<object>? x2, C<object?> y2)").
WithLocation
(15, 14));
123099
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, y)").WithArguments("(C<object> x, C<object?>? y)", "(C<object?>? a, C<object> b)").
WithLocation
(6, 42),
123102
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.b").
WithLocation
(8, 9));
123398
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("NullableContextOptions", "Enable", "7.0", "8.0").
WithLocation
(1, 1)
123435
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x").
WithLocation
(5, 13)
123470
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("T?", "T").
WithLocation
(5, 15),
123473
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x").
WithLocation
(5, 15));
123495
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(T)x").
WithLocation
(5, 16),
123498
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(T)default(T?)").
WithLocation
(9, 16));
123538
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(T)x").
WithLocation
(5, 13),
123541
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(T)x").
WithLocation
(8, 13),
123544
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(T)y").
WithLocation
(10, 13));
123579
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "((int, int))x").
WithLocation
(5, 17));
123604
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x").
WithLocation
(6, 13),
123607
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y").
WithLocation
(8, 13)
123634
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x").
WithLocation
(6, 13),
123637
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "z").
WithLocation
(10, 13)
123666
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t1").
WithLocation
(8, 17),
123669
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2").
WithLocation
(13, 17)
123698
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t1").
WithLocation
(8, 17),
123701
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2").
WithLocation
(13, 17)
123749
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(T)t1").
WithLocation
(8, 17),
123752
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t2").
WithLocation
(14, 22),
123755
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o2").
WithLocation
(15, 13),
123758
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(dynamic)t3").
WithLocation
(27, 22),
123761
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d3").
WithLocation
(28, 13));
123807
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t3").
WithLocation
(24, 22),
123810
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t4").
WithLocation
(31, 33)
123849
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y1").
WithLocation
(7, 13),
123852
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y2").
WithLocation
(12, 13),
123855
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x3").
WithLocation
(18, 13),
123858
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y3").
WithLocation
(19, 13),
123861
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(T)y4").
WithLocation
(25, 13)
123900
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y1").
WithLocation
(7, 13),
123903
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y2").
WithLocation
(12, 13),
123906
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x3").
WithLocation
(18, 13),
123909
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y3").
WithLocation
(19, 13),
123912
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(T)y4").
WithLocation
(25, 13)
123936
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(T)(x1 != null ? x1 : y1)").
WithLocation
(5, 13));
123965
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z1").
WithLocation
(6, 13),
123968
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w1").
WithLocation
(8, 13),
123971
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z2").
WithLocation
(14, 13),
123974
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w2").
WithLocation
(16, 13)
124028
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "na1").
WithLocation
(23, 20),
124031
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "a1.B").
WithLocation
(24, 20),
124034
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "b1.C").
WithLocation
(25, 20),
124037
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(A)na2").
WithLocation
(36, 20),
124040
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(B)a2.B").
WithLocation
(37, 20),
124043
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(C)b2.C").
WithLocation
(38, 20)
124122
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)na1").
WithLocation
(20, 22),
124125
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a1").
WithLocation
(21, 13),
124128
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(System.ValueType)na2").
WithLocation
(33, 22),
124131
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a2").
WithLocation
(34, 13),
124134
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(A)na3").
WithLocation
(47, 22),
124137
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)a3.B").
WithLocation
(48, 22),
124140
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b3").
WithLocation
(49, 13),
124143
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(A)na4").
WithLocation
(62, 22),
124146
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(System.ValueType)a4.B").
WithLocation
(63, 22),
124149
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b4").
WithLocation
(64, 13));
124204
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C)na1").
WithLocation
(25, 22),
124207
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(26, 13),
124210
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(A)na2").
WithLocation
(39, 22),
124213
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(C)a2.B").
WithLocation
(40, 22),
124216
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(41, 13));
124265
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "ns").
WithLocation
(20, 21),
124268
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(22, 13),
124271
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "nc").
WithLocation
(34, 22),
124274
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "ns").
WithLocation
(35, 17)
124330
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl3").
WithLocation
(27, 17),
124333
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl4").
WithLocation
(29, 17),
124336
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(long)ni").
WithLocation
(41, 17)
124396
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s3").
WithLocation
(31, 17),
124399
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s4").
WithLocation
(33, 17),
124402
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "ni").
WithLocation
(45, 20)
124450
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(11, 13),
124453
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(13, 13),
124456
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s3").
WithLocation
(16, 13),
124459
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(24, 17),
124462
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(26, 17),
124465
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s3").
WithLocation
(31, 17),
124468
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s4").
WithLocation
(33, 17)
124545
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(S)i").
WithLocation
(10, 13),
124548
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "ns1").
WithLocation
(18, 17),
124551
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "ns2").
WithLocation
(20, 17),
124554
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "ns3").
WithLocation
(25, 17),
124557
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "ns4").
WithLocation
(27, 17)
124602
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl1").
WithLocation
(28, 17),
124605
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl2").
WithLocation
(30, 17)
124650
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl1").
WithLocation
(11, 13),
124653
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl2").
WithLocation
(13, 13),
124656
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl1").
WithLocation
(21, 17),
124659
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl2").
WithLocation
(23, 17),
124662
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl1").
WithLocation
(28, 17),
124665
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl2").
WithLocation
(30, 17)
124763
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl1").
WithLocation
(11, 13),
124766
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl2").
WithLocation
(13, 13),
124769
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl1").
WithLocation
(21, 17),
124772
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl2").
WithLocation
(23, 17),
124775
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl3").
WithLocation
(28, 17),
124778
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "nl4").
WithLocation
(30, 17)
124827
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(24, 17),
124830
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c3").
WithLocation
(31, 17),
124833
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c4").
WithLocation
(33, 17));
124880
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(14, 13),
124883
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(16, 13),
124886
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(24, 17),
124889
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(26, 17),
124892
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c3").
WithLocation
(31, 17),
124895
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c4").
WithLocation
(33, 17));
124943
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(24, 17),
124946
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c3").
WithLocation
(31, 17));
124993
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(14, 13),
124996
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(16, 13),
124999
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(24, 17),
125002
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(26, 17),
125005
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c3").
WithLocation
(31, 17),
125008
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c4").
WithLocation
(33, 17));
125059
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "nc").WithArguments("c", "S.implicit operator S(C c)").
WithLocation
(30, 30),
125062
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "nc").WithArguments("c", "S.implicit operator S(C c)").
WithLocation
(35, 25));
125115
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(14, 13),
125118
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(16, 13),
125121
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(24, 17),
125124
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(26, 17),
125127
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "nc").WithArguments("c", "S.implicit operator S?(C c)").
WithLocation
(32, 30),
125130
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s3").
WithLocation
(33, 21),
125133
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "nc").WithArguments("c", "S.implicit operator S?(C c)").
WithLocation
(37, 25),
125136
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s4").
WithLocation
(38, 21)
125226
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(14, 13),
125229
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(16, 13),
125232
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(24, 17),
125235
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(26, 17),
125238
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s3").
WithLocation
(31, 17),
125241
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s4").
WithLocation
(33, 17)
125285
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(11, 13),
125288
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(13, 13),
125291
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(21, 17),
125294
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(26, 17));
125334
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(11, 13),
125337
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(13, 13),
125340
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(21, 17),
125343
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(26, 17));
125388
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(21, 17),
125391
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t3").
WithLocation
(28, 17),
125394
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t4").
WithLocation
(30, 17));
125439
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(21, 17),
125442
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t3").
WithLocation
(28, 17));
125486
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t3").
WithLocation
(28, 17),
125489
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t4").
WithLocation
(30, 17)
125575
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t1").
WithLocation
(11, 13),
125578
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2").
WithLocation
(13, 13),
125581
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t1").
WithLocation
(21, 17),
125584
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2").
WithLocation
(23, 17),
125587
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t3").
WithLocation
(28, 17),
125590
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t4").
WithLocation
(30, 17)
125635
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t1").
WithLocation
(11, 13),
125638
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2").
WithLocation
(13, 13),
125641
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t1").
WithLocation
(21, 17),
125644
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2").
WithLocation
(23, 17),
125647
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t3").
WithLocation
(28, 17),
125650
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t4").
WithLocation
(30, 17)
125698
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(11, 13),
125701
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(13, 13)
125750
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "nt").WithArguments("t", "S<T>.implicit operator S<T>(T t)").
WithLocation
(27, 33),
125753
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "nt").WithArguments("t", "S<T>.implicit operator S<T>(T t)").
WithLocation
(32, 28));
125803
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(11, 13),
125806
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(13, 13),
125809
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(21, 17),
125812
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(23, 17),
125815
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "nt").WithArguments("t", "S<T>.implicit operator S<T>?(T t)").
WithLocation
(29, 33),
125818
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s3").
WithLocation
(30, 21),
125821
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "nt").WithArguments("t", "S<T>.implicit operator S<T>?(T t)").
WithLocation
(34, 28),
125824
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s4").
WithLocation
(35, 21)
125867
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s3").
WithLocation
(26, 17),
125870
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s4").
WithLocation
(28, 17)
125915
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(11, 13),
125918
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(13, 13),
125921
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(21, 17),
125924
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(23, 17),
125927
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s3").
WithLocation
(28, 17),
125930
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s4").
WithLocation
(30, 17)
126014
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(11, 13),
126017
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(13, 13),
126020
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1").
WithLocation
(21, 17),
126023
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2").
WithLocation
(23, 17),
126026
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s3").
WithLocation
(28, 17),
126029
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s4").
WithLocation
(30, 17)
126065
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("U", "int?").
WithLocation
(9, 18),
126068
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(int?)x").WithArguments("U", "int?").
WithLocation
(11, 14),
126071
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("U", "int?").
WithLocation
(18, 18),
126074
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y").
WithLocation
(19, 13),
126077
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(int?)x").WithArguments("U", "int?").
WithLocation
(20, 14));
126111
Diagnostic(ErrorCode.ERR_NoImplicitConv, "t").WithArguments("int?", "U").
WithLocation
(9, 15),
126114
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(11, 9),
126117
Diagnostic(ErrorCode.ERR_NoImplicitConv, "t").WithArguments("int?", "U").
WithLocation
(19, 15));
126151
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(11, 9),
126154
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(21, 9));
126182
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(object?)x1").
WithLocation
(6, 10),
126185
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(object?)y1").
WithLocation
(7, 10),
126188
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w2").
WithLocation
(15, 9)
126229
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(object?)x").
WithLocation
(9, 10),
126232
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(object?)x").
WithLocation
(18, 10),
126235
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(object?)x").
WithLocation
(25, 10)
126262
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(T?)y1").
WithLocation
(6, 14),
126265
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "w2").
WithLocation
(13, 13)
126298
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(U)x").WithArguments("U", "int").
WithLocation
(9, 17),
126301
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)x").
WithLocation
(9, 17),
126304
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Value").WithArguments("U", "Value").
WithLocation
(16, 20),
126307
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(int?)(object)(U)x").
WithLocation
(17, 14),
126310
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)(U)x").
WithLocation
(17, 20));
126338
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "w1").
WithLocation
(8, 13),
126341
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "w2").
WithLocation
(15, 13)
126370
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "ni").
WithLocation
(13, 13),
126373
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "ni").
WithLocation
(15, 13)
126400
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x").
WithLocation
(7, 17),
126403
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y").
WithLocation
(8, 17),
126406
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x").
WithLocation
(12, 17)
126431
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y").
WithLocation
(6, 13),
126434
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "z").
WithLocation
(11, 13)
126499
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "b").
WithLocation
(13, 13),
126502
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "b2").
WithLocation
(25, 17)
126522
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x ?? y").
WithLocation
(5, 20));
126558
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "t.HasValue").WithArguments("T?.HasValue").
WithLocation
(5, 9),
126561
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "t.Value").WithArguments("T?.Value").
WithLocation
(6, 9),
126564
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t").
WithLocation
(6, 9)
126585
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(S?)F").WithArguments("method", "S?").
WithLocation
(6, 18));
126629
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(int)(i & j)").
WithLocation
(6, 13),
126632
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(int)(i | j)").
WithLocation
(7, 13),
126635
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(int)(i ^ j)").
WithLocation
(8, 13),
126638
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(int)(~i)").
WithLocation
(9, 13),
126641
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(bool)(i & b)").
WithLocation
(20, 13),
126644
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(bool)(i | b)").
WithLocation
(21, 13),
126647
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(bool)(i ^ b)").
WithLocation
(22, 13),
126650
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(bool)(!i)").
WithLocation
(23, 13));
126691
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Value.F").
WithLocation
(14, 9),
126694
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Value.F").
WithLocation
(23, 9)
126730
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "S").
WithLocation
(16, 32),
126733
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Value.F").
WithLocation
(17, 9),
126736
Diagnostic(ErrorCode.ERR_BadArgType, "null").WithArguments("1", "<null>", "S").
WithLocation
(19, 32),
126739
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z.Value.F").
WithLocation
(20, 9)
126775
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y").
WithLocation
(17, 9),
126778
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Value.F").
WithLocation
(17, 9),
126781
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z.Value.F").
WithLocation
(20, 9));
126887
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x1 as T?").
WithLocation
(5, 14),
126890
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y1 as T?").
WithLocation
(6, 14),
126893
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y2 as T?").
WithLocation
(11, 14),
126896
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x3 as T?").
WithLocation
(15, 14),
126899
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x4 as T?").
WithLocation
(19, 14),
126902
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y4 as T?").
WithLocation
(20, 14),
126905
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x5 as T?").
WithLocation
(24, 14),
126908
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y5 as T?").
WithLocation
(25, 14),
126911
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x6 as T?").
WithLocation
(29, 14)
126966
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1 as object").
WithLocation
(5, 14),
126969
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2 as T?").
WithLocation
(13, 14),
126972
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t3 as U").
WithLocation
(21, 14),
126975
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t3 as U").
WithLocation
(23, 18),
126978
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t3 as U").
WithLocation
(25, 18),
126981
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t4 as U?").
WithLocation
(29, 14),
126984
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t4 as U?").
WithLocation
(31, 18),
126987
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t4 as U?").
WithLocation
(33, 18),
126990
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t5 as dynamic").
WithLocation
(37, 14)
127023
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "u as int?").
WithLocation
(10, 14),
127026
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "u as int?").
WithLocation
(17, 14)
127059
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t as U?").
WithLocation
(9, 14),
127062
Diagnostic(ErrorCode.ERR_AsWithTypeVar, "t as U").WithArguments("U").
WithLocation
(16, 14),
127065
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t as U?").
WithLocation
(17, 14),
127068
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "U?").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(17, 19)
127091
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "i").
WithLocation
(8, 15));
127114
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(9, 15),
127117
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "c.i").
WithLocation
(9, 15));
127149
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "i").
WithLocation
(9, 15),
127152
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "i").
WithLocation
(18, 15));
127188
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "i").
WithLocation
(8, 15));
127212
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "(T)z").
WithLocation
(10, 14));
127236
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "z").
WithLocation
(10, 13)
127263
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t").
WithLocation
(13, 17)
127302
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return true;").WithArguments("s", "true").
WithLocation
(13, 9),
127305
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "s").WithArguments("variable", "s").
WithLocation
(18, 9),
127308
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return true;").WithArguments("s", "true").
WithLocation
(25, 9)
127369
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t2").
WithLocation
(9, 13)
127404
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x").
WithLocation
(12, 9),
127407
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y").
WithLocation
(15, 9),
127410
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "MemberwiseClone").WithArguments("object.MemberwiseClone()", "int?", "Program").
WithLocation
(15, 11),
127413
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Lalala").WithArguments("int?", "Lalala").
WithLocation
(17, 11)
127443
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s").
WithLocation
(11, 13),
127446
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t").
WithLocation
(16, 13)
127483
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s").
WithLocation
(11, 27),
127486
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t").
WithLocation
(18, 27)
127535
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 9),
127538
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(12, 9));
127566
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "a").WithArguments("A<object?>", "A<object>").
WithLocation
(12, 15),
127569
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "a").WithArguments("A<object?>", "B", "b", "void Program.F(B b)").
WithLocation
(13, 11));
127596
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b").WithArguments("A<object>", "A<object?>").
WithLocation
(12, 24),
127599
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "b").WithArguments("B", "A<object?>", "a", "void Program.F(A<object?> a)").
WithLocation
(13, 11));
127770
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.x").
WithLocation
(8, 9),
127773
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.y").
WithLocation
(9, 9),
127776
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.x").
WithLocation
(10, 9),
127779
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.y").
WithLocation
(11, 9));
127804
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.x").
WithLocation
(8, 9),
127807
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.y").
WithLocation
(9, 9),
127810
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.x").
WithLocation
(10, 9),
127813
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u.y").
WithLocation
(11, 9));
127840
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Item1").
WithLocation
(7, 9),
127843
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Item2").
WithLocation
(8, 9),
127846
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Item1").
WithLocation
(10, 9),
127849
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Item2").
WithLocation
(11, 9)
127899
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t.Item2").
WithLocation
(8, 13)
127921
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "t.Item2").
WithLocation
(8, 13)
127968
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, null)").WithArguments("(T?, U?)", "(T? t1, U? u2)").
WithLocation
(20, 24),
127971
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, null)").WithArguments("(T?, U?)", "(T t2, U? u1)").
WithLocation
(24, 31));
128001
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, null)").WithArguments("(T?, T?)", "(T, T)").
WithLocation
(11, 59),
128004
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, new T())").WithArguments("(T?, T)", "(T, T)").
WithLocation
(12, 32));
128035
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(y, default)").WithArguments("(T? y, T?)", "(T, T)").
WithLocation
(12, 47),
128038
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(null, x)").WithArguments("(T?, T x)", "(T x, T? y)").
WithLocation
(13, 32));
128068
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, null)").WithArguments("(object? x, object?)", "(object, object)").
WithLocation
(11, 47),
128071
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(default, x)").WithArguments("(T?, object? x)", "(T? x, object y)").
WithLocation
(12, 32));
128092
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "s").WithArguments("A<string[][][*,*]?>", "A<object>").
WithLocation
(6, 13)
128125
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(8, 58),
128128
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(15, 78)
128160
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnImplicitImplementation, "GetEnumerator").WithArguments("IEnumerator<IEquatable<T>?> Working<T>.GetEnumerator()", "IEnumerator<IEquatable<T>> IEnumerable<IEquatable<T>>.GetEnumerator()").
WithLocation
(8, 40),
128163
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnExplicitImplementation, "GetEnumerator").WithArguments("IEnumerator<IEquatable<T>> IEnumerable<IEquatable<T>>.GetEnumerator()").
WithLocation
(15, 60)
128195
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(8, 35),
128198
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(15, 28)
128287
Diagnostic(ErrorCode.ERR_NameNotInContext, "unknown").WithArguments("unknown").
WithLocation
(8, 13),
128290
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(8, 35),
128293
Diagnostic(ErrorCode.ERR_UseDefViolation, "b").WithArguments("b").
WithLocation
(10, 31),
128296
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(b ").WithArguments("bool", "1").
WithLocation
(16, 23),
128299
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(16, 24),
128302
Diagnostic(ErrorCode.ERR_CloseParenExpected, "=").
WithLocation
(16, 26),
128305
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(16, 30),
128308
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(16, 30),
128311
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(16, 30),
128314
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(18, 31));
128337
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "s4 ??= s5").
WithLocation
(8, 22),
128340
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(9, 9));
128381
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.F").
WithLocation
(14, 9),
128384
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.F").
WithLocation
(19, 9),
128387
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1.F").
WithLocation
(23, 9),
128390
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(c1 ??= c3).F").
WithLocation
(27, 9));
128424
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(9, 9),
128427
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(15, 9),
128430
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "c1").WithArguments("c", "C C.GetC(C c)").
WithLocation
(19, 31));
128496
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1[0]").
WithLocation
(7, 9));
128522
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c2").
WithLocation
(6, 20),
128525
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M2(c2)").
WithLocation
(10, 9));
128565
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c2").WithArguments("C<object?>", "C<object>").
WithLocation
(6, 16),
128568
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "c4").
WithLocation
(7, 16),
128571
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "c4").WithArguments("C<object>", "C<object?>").
WithLocation
(7, 16));
128594
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "c1").WithArguments("c1", "C C.M2(C c1)").
WithLocation
(6, 19));
128665
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "x").
WithLocation
(7, 12)
128719
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "x").
WithLocation
(6, 12),
128722
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 19)
128753
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "x").
WithLocation
(7, 12),
128756
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(15, 19)
128777
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default((T, U))").
WithLocation
(5, 22),
128780
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 9),
128783
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(7, 9));
128803
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(5, 32),
128806
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 9),
128809
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(7, 9));
128829
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 24),
128832
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 9));
128855
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b").
WithLocation
(7, 9),
128858
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "y").
WithLocation
(8, 19),
128861
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(9, 9));
128884
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b").
WithLocation
(7, 9),
128887
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t").
WithLocation
(8, 18),
128890
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(9, 9));
128911
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(default, new T())").WithArguments("(T?, T)", "(T, T?)").
WithLocation
(5, 21),
128914
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t").
WithLocation
(6, 23),
128917
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(7, 9));
128937
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(6, 9),
128940
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(7, 9));
128962
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(5, 15),
128965
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(8, 9));
128986
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(default, new T())").WithArguments("(T?, T)", "(T, T?)").
WithLocation
(5, 21),
128989
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(7, 9));
129011
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 19),
129014
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(8, 9));
129035
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(6, 9),
129038
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 9));
129059
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(6, 9),
129062
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 9));
129083
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(6, 9),
129086
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 9));
129108
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.Item1").
WithLocation
(6, 9),
129111
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(9, 9));
129133
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(5, 59),
129136
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(y, z)").WithArguments("(object y, object? z)", "(object x, object y)").
WithLocation
(5, 62),
129139
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(6, 9),
129142
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.y").
WithLocation
(9, 9));
129164
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u").
WithLocation
(8, 22),
129167
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u").
WithLocation
(9, 37));
129191
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(10, 9),
129194
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "u").
WithLocation
(11, 9));
129221
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "T y1").
WithLocation
(9, 16),
129224
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(11, 9),
129227
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(14, 9));
129251
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new Pair<T, U?>()").WithArguments("Pair<T, U?>", "(T, U?)").
WithLocation
(9, 21),
129254
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1").
WithLocation
(10, 9),
129257
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2").
WithLocation
(11, 9));
129282
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(9, 32),
129285
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(10, 9),
129288
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(12, 9));
129314
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "T a").
WithLocation
(9, 10),
129317
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(10, 9),
129320
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(12, 9)
129347
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "T a").
WithLocation
(9, 10),
129350
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(10, 9),
129353
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(12, 9)
129382
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p1").
WithLocation
(9, 22));
129484
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, x, x, y, y, (y, x), x, x, y, y)").WithArguments("(object, object, object, object?, object?, (object? y, object x), object, object, object?, object?)", "(object?, object, object?, object, object?, (object, object?), object, object, object?, object)").
WithLocation
(5, 109),
129487
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "_4").
WithLocation
(10, 9),
129490
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "_5").
WithLocation
(11, 9),
129493
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "_6a").
WithLocation
(12, 9),
129496
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "_9").
WithLocation
(16, 9),
129499
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "_10").
WithLocation
(17, 9));
129568
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(8, 13),
129571
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(9, 13),
129574
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z1").
WithLocation
(13, 13),
129577
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w1").
WithLocation
(14, 13),
129580
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(22, 13),
129583
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w2").
WithLocation
(27, 13),
129586
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y3").
WithLocation
(35, 17),
129589
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "w3").
WithLocation
(40, 13),
129592
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "el").WithArguments("(object?, object?)", "(object, object)").
WithLocation
(45, 35),
129595
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "arr").
WithLocation
(51, 44),
129598
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "arr").
WithLocation
(51, 44),
129601
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "i1").
WithLocation
(53, 13),
129604
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "i2").
WithLocation
(54, 13)
129628
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(7, 9),
129631
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(8, 9),
129634
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(9, 9));
129658
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 13),
129661
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ay[0]").
WithLocation
(10, 9)
129682
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p").
WithLocation
(7, 22)
129708
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(object? x, (object y, object? z)) = p").
WithLocation
(9, 9),
129711
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 9),
129714
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(12, 9)
129744
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(17, 9)
129775
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(18, 9)
129808
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(17, 13)
129844
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(15, 13),
129847
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "T x2").
WithLocation
(17, 18),
129850
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(19, 13)
129875
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 13),
129878
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ay").
WithLocation
(10, 9)
129911
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(14, 13),
129914
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ay[0]").
WithLocation
(18, 9)
129946
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 13),
129949
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint, "MakeList").WithArguments("Program.MakeList<T>(T)", "T", "object?").
WithLocation
(14, 31),
129952
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ay[0]").
WithLocation
(17, 9)
129993
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 13),
129996
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ay[0]").
WithLocation
(21, 9),
129999
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ay0[0][0][0]").
WithLocation
(26, 9)
130028
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(9, 14)
130055
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 14)
130083
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "p").WithArguments("Pair<object, object?>", "Pair<object?, object>", "p", "void E.Deconstruct(Pair<object?, object>? p, out object x, out object? y)").
WithLocation
(12, 34),
130086
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(14, 9));
130114
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 9)
130143
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "p").WithArguments("p", "void E.Deconstruct<object?, object>(Pair<object?, object> p, out object? t, out object u)").
WithLocation
(12, 34),
130146
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 9)
130176
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(object? x, (object y, object? z)) = p").WithArguments("p", "void E.Deconstruct<object, object?>(Pair<object, object?> p, out object t, out object? u)").
WithLocation
(12, 9),
130179
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 9),
130182
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(15, 9)
130212
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 9),
130215
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(15, 9)
130249
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(19, 9)
130280
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "b").WithArguments("B", "A<object?, object>", "a", "void E.Deconstruct(A<object?, object> a, out object? x, out object y)").
WithLocation
(15, 34),
130283
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(16, 9));
130326
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "e").WithArguments("Pair<object, object?>", "Pair<object?, object>", "p", "void E.Deconstruct(Pair<object?, object> p, out object? x, out object y)").
WithLocation
(21, 40),
130329
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(23, 13),
130332
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "object x2").
WithLocation
(26, 25),
130335
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "e").WithArguments("Pair<object, object?>", "Pair<object?, object>", "p", "void E.Deconstruct(Pair<object?, object> p, out object? x, out object y)").
WithLocation
(26, 51),
130338
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(28, 13));
130385
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "e").WithArguments("Pair<object, object?>", "Pair<object?, object>", "p", "void E.Deconstruct(Pair<object?, object> p, out object? x, out object y)").
WithLocation
(25, 40),
130388
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(27, 13),
130391
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "object x2").
WithLocation
(30, 25),
130394
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "e").WithArguments("Pair<object, object?>", "Pair<object?, object>", "p", "void E.Deconstruct(Pair<object?, object> p, out object? x, out object y)").
WithLocation
(30, 51),
130397
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(32, 13));
130427
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "p").WithArguments("E.Deconstruct<T, U>(Pair<T, U>, out T, out U)", "T", "object?").
WithLocation
(14, 22),
130430
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 9)
130469
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "var (x, (y, z)) = p").WithArguments("p", "void E.Deconstruct<object, object?>(Pair2<object, object?> p, out object t, out object? u)").
WithLocation
(21, 9),
130472
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "p").WithArguments("E.Deconstruct<T, U>(Pair<T, U>, out T, out U)", "T", "object?").
WithLocation
(21, 27),
130475
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "p").WithArguments("E.Deconstruct<T, U>(Pair2<T, U>, out T, out U)", "U", "object?").
WithLocation
(21, 27),
130478
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(22, 9),
130481
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(24, 9)
130523
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(11, 10),
130526
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(13, 18),
130529
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(18, 10),
130532
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(20, 18),
130535
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(26, 13),
130538
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(28, 21));
130594
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(11, 11),
130597
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(12, 13),
130600
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z0").
WithLocation
(13, 17),
130603
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(20, 11),
130606
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(23, 23),
130609
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z1").
WithLocation
(24, 25),
130612
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(31, 17),
130615
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(33, 25),
130618
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z2").
WithLocation
(34, 29),
130621
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x3").
WithLocation
(38, 10),
130624
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y3").
WithLocation
(40, 17),
130627
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z3").
WithLocation
(42, 26));
130672
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p0").
WithLocation
(14, 17),
130675
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p1").
WithLocation
(19, 13),
130678
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p2").
WithLocation
(24, 10),
130681
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p3").
WithLocation
(30, 10));
130743
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(13, 11),
130746
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y0").
WithLocation
(15, 17),
130749
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(22, 13),
130752
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(24, 22),
130755
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(31, 17),
130758
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(33, 25),
130761
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x3").
WithLocation
(37, 10),
130764
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y3").
WithLocation
(39, 17),
130767
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x4").
WithLocation
(46, 14),
130770
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y4").
WithLocation
(49, 25));
130793
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t").
WithLocation
(7, 42),
130796
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "t").
WithLocation
(7, 42),
130799
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(8, 9),
130802
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(10, 9));
130824
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b").
WithLocation
(8, 9));
130852
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "F").WithArguments("S.F", "null").
WithLocation
(3, 21),
130855
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Value.F").
WithLocation
(13, 9),
130858
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "z").
WithLocation
(14, 13));
130887
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.Value.F").
WithLocation
(15, 9));
130913
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "t").WithArguments("S<T?>", "S<T>?").
WithLocation
(10, 31),
130916
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "t").WithArguments("S<T>", "S<T?>?").
WithLocation
(10, 31),
130919
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Value.F").
WithLocation
(11, 9));
130945
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "t").WithArguments("(S<T?>, S<T>)", "(S<T>? x, S<T?>? y)").
WithLocation
(10, 45),
130948
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "b.x").
WithLocation
(11, 9),
130951
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "b.y").
WithLocation
(12, 9),
130954
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.y.Value.F").
WithLocation
(12, 9));
130999
Diagnostic(ErrorCode.ERR_DeconstructWrongCardinality, "(object? a, object? b) = (x, y, z = 3)").WithArguments("3", "2").
WithLocation
(5, 9),
131002
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(6, 9),
131005
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b").
WithLocation
(7, 9));
131027
Diagnostic(ErrorCode.ERR_DeconstructWrongCardinality, "(object? a, object? b, object? c) = (x, y = null)").WithArguments("2", "3").
WithLocation
(5, 9),
131030
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(5, 53),
131033
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(6, 9),
131036
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b").
WithLocation
(7, 9),
131039
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(8, 9),
131042
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 9));
131065
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x").WithArguments("x").
WithLocation
(7, 14),
131068
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y").WithArguments("y").
WithLocation
(7, 17),
131071
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "new C(z = 1)").WithArguments("C", "Deconstruct").
WithLocation
(7, 22),
131074
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C(z = 1)").WithArguments("C", "2").
WithLocation
(7, 22));
131097
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "new C(z = 1)").WithArguments("C", "Deconstruct").
WithLocation
(7, 34),
131100
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C(z = 1)").WithArguments("C", "2").
WithLocation
(7, 34),
131103
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 9),
131106
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 9));
131130
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "new C()").WithArguments("z", "C.Deconstruct(out object, out object, out object)").
WithLocation
(9, 34),
131133
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "2").
WithLocation
(9, 34),
131136
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 9),
131139
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(11, 9));
131164
Diagnostic(ErrorCode.ERR_BadArgCount, "new C()").WithArguments("Deconstruct", "3").
WithLocation
(9, 45),
131167
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "new C()").WithArguments("C", "3").
WithLocation
(9, 45),
131170
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 9),
131173
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(11, 9),
131176
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(12, 9));
131193
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 16));
131210
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 23));
131228
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 28));
131250
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 13),
131253
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(8, 9));
131277
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(8, 13),
131280
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(10, 9));
131302
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y").
WithLocation
(8, 13));
131326
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y").
WithLocation
(10, 13));
131353
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(11, 27),
131356
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(13, 9));
131383
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(13, 9));
131412
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 27),
131415
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(15, 9));
131444
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(15, 9));
131464
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("string", "string?").
WithLocation
(5, 29)
131488
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x").WithArguments("string?", "string").
WithLocation
(5, 20),
131491
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("string", "string?").
WithLocation
(9, 20)
131520
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 29),
131523
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "a = a").
WithLocation
(11, 9),
131526
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a.F").
WithLocation
(12, 9),
131529
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 43),
131532
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "b.F = b.F").
WithLocation
(14, 9),
131535
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.F.F").
WithLocation
(15, 9));
131567
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "a = a").
WithLocation
(15, 9),
131570
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "b.A = b.A").
WithLocation
(18, 9));
131594
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "c.F = c.F").
WithLocation
(10, 9),
131597
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(10, 9));
131677
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<T1>.F").
WithLocation
(10, 9),
131680
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<T2?>.F").
WithLocation
(15, 9),
131683
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "C<T4?>.F").
WithLocation
(25, 13));
131743
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(10, 19),
131746
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<T1>.F").
WithLocation
(11, 9),
131749
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(25, 19),
131752
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<T4>.F").
WithLocation
(26, 9),
131755
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(40, 23),
131758
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<string>.F").
WithLocation
(41, 13));
131821
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(13, 19),
131824
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<T1>.P").
WithLocation
(14, 9),
131827
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(28, 19),
131830
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<T4>.P").
WithLocation
(29, 9),
131833
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(43, 23),
131836
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "C<string>.P").
WithLocation
(44, 13));
131871
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(10, 19),
131874
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "S<T1>.F").
WithLocation
(11, 9),
131877
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(20, 19),
131880
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "S<T3>.F").
WithLocation
(21, 9));
131914
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P").WithArguments("property", "P").
WithLocation
(3, 23),
131917
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(9, 19),
131920
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "S<T1>.P").
WithLocation
(10, 9),
131923
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(19, 19),
131926
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "S<T3>.P").
WithLocation
(20, 9));
131945
Diagnostic(ErrorCode.ERR_RetNoObjectRequired, "return").WithArguments("Program.G(object?)").
WithLocation
(6, 9),
131948
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "object Program.F(object x)").
WithLocation
(6, 18));
131969
Diagnostic(ErrorCode.ERR_TaskRetNoObjectRequired, "return").WithArguments("Program.G(object?)", "System.Threading.Tasks.Task").
WithLocation
(8, 9),
131972
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "object Program.F(object x)").
WithLocation
(8, 18));
131991
Diagnostic(ErrorCode.ERR_RetNoObjectRequired, "return").WithArguments("Program.F()").
WithLocation
(5, 9));
132012
Diagnostic(ErrorCode.ERR_TaskRetNoObjectRequired, "return").WithArguments("Program.F()", "System.Threading.Tasks.Task").
WithLocation
(7, 9));
132033
Diagnostic(ErrorCode.ERR_RetNoObjectRequiredLambda, "return").
WithLocation
(7, 13));
132056
Diagnostic(ErrorCode.ERR_TaskRetNoObjectRequiredLambda, "return").WithArguments("System.Threading.Tasks.Task").
WithLocation
(9, 13));
132119
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1.A").
WithLocation
(19, 9),
132122
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1.B").
WithLocation
(20, 9),
132125
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(24, 16),
132128
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2.A").
WithLocation
(27, 9),
132131
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2.B").
WithLocation
(28, 9),
132134
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y4.A").
WithLocation
(41, 13),
132137
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y4.B").
WithLocation
(42, 13),
132140
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y5.A").
WithLocation
(48, 13),
132143
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "y5.B").
WithLocation
(49, 13));
132186
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(23, 15),
132189
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "xy.B").
WithLocation
(26, 9),
132192
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "yx.A").
WithLocation
(28, 9));
132253
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y1").WithArguments("t", "void IA<T>.A(T t)").
WithLocation
(22, 22),
132256
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y1").WithArguments("t", "void IB<T>.B(T t)").
WithLocation
(23, 22),
132259
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(29, 16),
132262
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("t", "void IA<T>.A(T t)").
WithLocation
(35, 22),
132265
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("t", "void IB<T>.B(T t)").
WithLocation
(36, 22));
132308
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(23, 15),
132311
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ix.A(y)").
WithLocation
(26, 9),
132314
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "iy.B(x)").
WithLocation
(29, 9));
132397
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("other", "bool IEquatable<string>.Equals(string other)").
WithLocation
(28, 18)
132431
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("other", "bool IEquatable<string>.Equals(string other)").
WithLocation
(16, 25)
132467
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, ".f").
WithLocation
(5, 27),
132470
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(6, 25),
132473
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.f").
WithLocation
(6, 25)
132515
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(7, 25)
132549
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c?.S").
WithLocation
(5, 14),
132552
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a?[0]").
WithLocation
(6, 14),
132555
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t?.S").
WithLocation
(11, 14),
132558
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t?[0]").
WithLocation
(12, 14)
132645
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "bool G<T>.M1(object o)").
WithLocation
(7, 19),
132648
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "g").WithArguments("G<string?>", "G<string>", "o", "bool G<T>.M2(G<string> o)").
WithLocation
(8, 12),
132651
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "g").WithArguments("G<string?>", "G<string>", "o", "bool G<T>.M2(G<string> o)").
WithLocation
(14, 16),
132654
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("o", "bool G<T>.M1(object o)").
WithLocation
(16, 16),
132657
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "g").WithArguments("G<string?>", "G<string>").
WithLocation
(17, 24));
132792
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "node.Next").
WithLocation
(15, 9),
132795
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "node").
WithLocation
(97, 9),
132798
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "node").
WithLocation
(104, 9));
132835
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "__refvalue(r, string?)").
WithLocation
(7, 13)
132877
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 25),
132880
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(22, 25),
132883
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(27, 40)
132918
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(9, 2)
132948
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(2, 2));
133056
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 26));
133081
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(() => o)").
WithLocation
(8, 9));
133106
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(() => o, M(1))").
WithLocation
(9, 9));
133138
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "fa1[0]()").
WithLocation
(10, 9),
133141
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "fa3[0]()").
WithLocation
(18, 9));
133165
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").
WithLocation
(8, 32));
133192
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F(() => o)").
WithLocation
(9, 9));
133318
Diagnostic(ErrorCode.ERR_DuplicateNameInNS, "C").WithArguments("C", "<global namespace>").
WithLocation
(2, 7)
133476
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "C").WithArguments("C<T>", "T").
WithLocation
(2, 15)
133502
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "C").WithArguments("C<T>", "T").
WithLocation
(2, 15)
133529
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "C").WithArguments("C<T>", "T").
WithLocation
(3, 15)
133554
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "C").WithArguments("C<T>", "T").
WithLocation
(3, 15)
133716
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "C").WithArguments("C<T>", "T").
WithLocation
(12, 15)
133757
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "C").WithArguments("C<T>", "T").
WithLocation
(12, 15)
133796
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "C").WithArguments("C<T>", "T").
WithLocation
(12, 15)
133835
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "C").WithArguments("C<T>", "T").
WithLocation
(12, 15)
133884
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "I1").WithArguments("I1<T>", "T").
WithLocation
(8, 19),
133887
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "I2").WithArguments("I2<T>", "T").
WithLocation
(14, 19),
133890
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "I3").WithArguments("I3<T>", "T").
WithLocation
(20, 19),
133893
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "I4").WithArguments("I4<T>", "T").
WithLocation
(26, 19)
133927
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C()").WithArguments("C", "Base<string?>").
WithLocation
(5, 23)
133967
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C()").WithArguments("C", "Base<string>").
WithLocation
(4, 22)
134011
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C()").WithArguments("C", "Base<string?>").
WithLocation
(5, 23)
134054
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C()").WithArguments("C", "Base<string>").
WithLocation
(4, 22)
134096
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C()").WithArguments("C", "Base<string?>").
WithLocation
(5, 23)
134132
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C()").WithArguments("C", "Base<string, object>").
WithLocation
(5, 30),
134135
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C()").WithArguments("C", "Base<string?, object?>").
WithLocation
(6, 32)
134175
Diagnostic(ErrorCode.ERR_PartialMultipleBases, "C").WithArguments("C").
WithLocation
(3, 15),
134178
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C()").WithArguments("C", "Base<string, object?>").
WithLocation
(4, 31),
134181
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C()").WithArguments("C", "Base<string, object>").
WithLocation
(5, 30),
134184
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C()").WithArguments("C", "Base<string?, object?>").
WithLocation
(6, 32)
134226
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C1()").WithArguments("C1", "Base<S, object>").
WithLocation
(5, 25),
134229
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C2()").WithArguments("C2", "Base<object?, S>").
WithLocation
(7, 26)
134271
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C1()").WithArguments("C1", "Base<S?, object>").
WithLocation
(5, 26),
134274
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C2()").WithArguments("C2", "Base<object?, S?>").
WithLocation
(7, 27)
134324
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C1()").WithArguments("C1", "Base<S, object>").
WithLocation
(5, 25),
134327
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C2()").WithArguments("C2", "Base<object?, S>").
WithLocation
(7, 26)
134370
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C1()").WithArguments("C1", "Base<S?, object>").
WithLocation
(5, 26),
134373
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C2()").WithArguments("C2", "Base<object?, S?>").
WithLocation
(7, 27)
134422
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C1<S>()").WithArguments("C1<S>", "Base<S, object>").
WithLocation
(5, 25),
134425
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "new C2<S>()").WithArguments("C2<S>", "Base<object?, S>").
WithLocation
(7, 26)
134470
Diagnostic(ErrorCode.ERR_PartialMultipleBases, "C1").WithArguments("C1<T>").
WithLocation
(3, 15),
134473
Diagnostic(ErrorCode.ERR_PartialMultipleBases, "C2").WithArguments("C2<T>").
WithLocation
(4, 15),
134476
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C1<C>()").WithArguments("C1<C>", "Base<C, object?>").
WithLocation
(4, 26),
134479
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C1<C>()").WithArguments("C1<C>", "Base<C, object>").
WithLocation
(5, 25),
134482
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C2<C>()").WithArguments("C2<C>", "Base<object?, C>").
WithLocation
(7, 26),
134485
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C2<C>()").WithArguments("C2<C>", "Base<object, C>").
WithLocation
(8, 25)
134571
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "F<U>").WithArguments("C.F<T>(I<T>)", "T", "U").
WithLocation
(16, 9),
134574
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(16, 14)
134609
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<T>", "I<T?>", "x", "void C.Test2<T>(I<T?> x)").
WithLocation
(10, 15)
134633
Diagnostic(ErrorCode.WRN_ExplicitImplCollision, "Method").WithArguments("Class.Interface<string>.Method(string)").
WithLocation
(11, 28),
134636
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "Method").WithArguments("i", "void Class.Method(string i)", "void Interface<string>.Method(string? i)").
WithLocation
(12, 17));
134659
Diagnostic(ErrorCode.WRN_ExplicitImplCollision, "Method").WithArguments("Class.Interface<string>.Method(string?)").
WithLocation
(11, 28),
134662
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "Method").WithArguments("i", "void Class.Method(string i)", "void Interface<string>.Method(string? i)").
WithLocation
(12, 17));
134685
Diagnostic(ErrorCode.WRN_ExplicitImplCollision, "Method").WithArguments("Class.Interface<string>.Method(string)").
WithLocation
(11, 28),
134688
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "Method").WithArguments("i", "void Interface<string>.Method(string? i)").
WithLocation
(11, 28)
134716
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("C2", "I.Goo<T>(T?)").
WithLocation
(13, 12),
134719
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Goo").WithArguments("C2.Goo<T>(T?)").
WithLocation
(15, 12),
134722
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "value").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(15, 22));
134749
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("C2", "I.Goo<T>(T)").
WithLocation
(13, 12),
134752
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Goo").WithArguments("C2.Goo<T>(T?)").
WithLocation
(15, 12),
134755
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "value").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(15, 22));
134782
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "Goo").WithArguments("value", "void C1.Goo<T>(T value)", "void I.Goo<T>(T? value)").
WithLocation
(10, 17),
134785
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "Goo").WithArguments("value", "void I.Goo<T>(T? value)").
WithLocation
(15, 12));
134894
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "Goo").WithArguments("U? C1<U>.Goo<T>(T value)", "U I<U>.Goo<T>(T value)").
WithLocation
(11, 15),
134897
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "Goo").WithArguments("U? C1<U>.Goo<T>(T? value)", "U I<U>.Goo<T>(T? value)").
WithLocation
(12, 15),
134900
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "Goo").WithArguments("U I<U>.Goo<T>(T value)").
WithLocation
(17, 13),
134903
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "Goo").WithArguments("U I<U>.Goo<T>(T? value)").
WithLocation
(18, 13));
134935
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "Goo").WithArguments("U? C1<U>.Goo<T>(T value)", "U I<U>.Goo<T>(T value)").
WithLocation
(11, 15),
134938
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "Goo").WithArguments("U? C1<U>.Goo<T>(T? value)", "U I<U>.Goo<T>(T? value)").
WithLocation
(12, 15),
134941
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "Goo").WithArguments("U I<U>.Goo<T>(T value)").
WithLocation
(17, 13),
134944
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnExplicitImplementation, "Goo").WithArguments("U I<U>.Goo<T>(T? value)").
WithLocation
(18, 13));
134967
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("C2", "I.Goo<T>(T?)").
WithLocation
(9, 12));
134991
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("C2", "I.Goo<T>(T?)").
WithLocation
(9, 12));
135036
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("C2", "I.Goo<T>(T?)").
WithLocation
(9, 12));
135080
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("C2", "I.Goo<T>(T?)").
WithLocation
(9, 12));
135104
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("C2", "I.Goo<T>(T?)").
WithLocation
(9, 12),
135107
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Goo").WithArguments("C2.Goo<T>(T?)").
WithLocation
(12, 14),
135110
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "value").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(12, 24));
135134
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C2").WithArguments("I.Goo<T>(T?)").
WithLocation
(9, 7),
135137
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("C2", "I.Goo<T>(T?)").
WithLocation
(9, 12),
135140
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Goo").WithArguments("I.Goo", "C2").
WithLocation
(12, 15));
135564
Diagnostic(ErrorCode.ERR_BadNullableTypeof, "typeof(string?)").
WithLocation
(9, 17),
135567
Diagnostic(ErrorCode.ERR_BadNullableTypeof, "typeof(K<int?>?)").
WithLocation
(12, 17),
135570
Diagnostic(ErrorCode.ERR_BadNullableTypeof, "typeof(K<string?>?)").
WithLocation
(13, 17),
135573
Diagnostic(ErrorCode.ERR_BadNullableTypeof, "typeof(string?)").
WithLocation
(21, 17),
135576
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(21, 30),
135579
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(23, 32),
135582
Diagnostic(ErrorCode.ERR_BadNullableTypeof, "typeof(K<int?>?)").
WithLocation
(24, 17),
135585
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(24, 31),
135588
Diagnostic(ErrorCode.ERR_BadNullableTypeof, "typeof(K<string?>?)").
WithLocation
(25, 17),
135591
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(25, 32),
135594
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(25, 34),
135597
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(32, 24),
135600
Diagnostic(ErrorCode.ERR_BadNullableTypeof, "typeof(TClass?)").
WithLocation
(33, 17));
135633
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").
WithLocation
(7, 32),
135636
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").
WithLocation
(11, 19),
135639
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 25),
135642
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(14, 28));
135677
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(12, 19),
135680
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(14, 25),
135683
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(15, 28));
135716
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").
WithLocation
(11, 24),
135719
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 25),
135722
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(14, 28));
135757
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").
WithLocation
(12, 24),
135760
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "o").
WithLocation
(12, 24),
135763
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(14, 25),
135766
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(14, 25),
135769
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(15, 28),
135772
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(15, 28));
135803
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(12, 42),
135806
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s").
WithLocation
(14, 32));
135910
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "x == null").WithArguments("false", "int", "int?").
WithLocation
(26, 13),
135913
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x == null").WithArguments("==", "T", "<null>").
WithLocation
(53, 13));
135963
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "value").
WithLocation
(10, 31));
135992
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "value").
WithLocation
(11, 31),
135995
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "value").
WithLocation
(15, 31));
136029
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "value").
WithLocation
(16, 31));
136059
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 31),
136062
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(16, 31));
136092
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 31),
136095
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(11, 31));
136125
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 31),
136128
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(15, 31),
136131
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(16, 31)
136165
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(19, 31));
136212
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "Assert(F != null)").
WithLocation
(7, 4),
136215
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "F").WithArguments("y", "A.A(object x, object y)").
WithLocation
(7, 23),
136218
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "F").
WithLocation
(7, 23));
136241
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "NotNull(F)").
WithLocation
(7, 4),
136244
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "F").WithArguments("y", "A.A(object x, object y)").
WithLocation
(7, 16),
136247
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "F").
WithLocation
(7, 16));
136285
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new[] { ""string"", null }").WithArguments("string?[]", "System.Collections.Generic.IEnumerable<object>").
WithLocation
(7, 34),
136288
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new[] { ""string"", null }").WithArguments("string?[]", "System.Collections.Generic.IList<string>").
WithLocation
(10, 28)
136314
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new[] { new[] { ""string"", null } }").WithArguments("string?[][]", "System.Collections.Generic.IEnumerable<object[]>").
WithLocation
(7, 36),
136317
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new[] { new[] { ""string"", null } }").WithArguments("string?[][]", "System.Collections.Generic.IEnumerable<object[]?>").
WithLocation
(8, 37),
136320
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new[] { new[] { ""string"" , null } }").WithArguments("string?[][]", "System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<string>>").
WithLocation
(11, 47)
136361
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("t", "void E.F<string>(string t)").
WithLocation
(14, 13),
136364
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "E.F<string>").WithArguments("t", "void E.F<string>(string t)", "D1<string?>").
WithLocation
(24, 13));
136400
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("t", "void E.F<string>(string t)").
WithLocation
(13, 20),
136403
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "E.F<string>").WithArguments("t", "void E.F<string>(string t)", "D1<string?>").
WithLocation
(21, 29));
136434
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("t", "void E.F<string>(string t, int i)").
WithLocation
(13, 13));
136463
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("t", "void E.F<string>(string t, int i)").
WithLocation
(12, 24));
136497
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("t", "void E.F<string, string?>(string t, string? u)").
WithLocation
(14, 20),
136500
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("t", "void E.F<string, string>(string t, string u)").
WithLocation
(15, 20));
136531
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("t", "void E.F<string, string?>(string t, string? u)").
WithLocation
(12, 35),
136534
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("t", "void E.F<string, string>(string t, string u)").
WithLocation
(13, 34));
136564
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "default(T).F").WithArguments("E.F<T>(T)", "T").
WithLocation
(13, 13),
136567
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "default(V).F").WithArguments("E.F<V>(V)", "V").
WithLocation
(15, 13),
136570
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "default(V?).F").WithArguments("E.F<V?>(V?)", "V?").
WithLocation
(16, 13));
136599
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "default(T).F").WithArguments("E.F<T>(T)", "T").
WithLocation
(12, 19),
136602
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "default(V).F").WithArguments("E.F<V>(V)", "V").
WithLocation
(14, 19),
136605
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "default(V?).F").WithArguments("E.F<V?>(V?)", "V?").
WithLocation
(15, 19));
136638
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "t.F").WithArguments("T? E.F<T?>(T? t)", "D<T>").
WithLocation
(12, 13),
136641
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "t.F<T?>").WithArguments("T? E.F<T?>(T? t)", "D<T>").
WithLocation
(14, 13),
136644
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "t.F").WithArguments("T? E.F<T?>(T? t)", "D<T>").
WithLocation
(16, 22),
136647
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "t.F<T?>").WithArguments("T? E.F<T?>(T? t)", "D<T>").
WithLocation
(18, 22));
136683
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 20),
136686
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Create(y).F").WithArguments("object? C<object?>.F()", "D<object>").
WithLocation
(18, 14),
136689
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Create(y).F").WithArguments("object? C<object?>.F()", "D<object>").
WithLocation
(22, 27));
136725
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 20),
136728
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "Create(x).F").WithArguments("t", "void C<object>.F(object t)", "D<object?>").
WithLocation
(15, 14),
136731
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "Create(x).F").WithArguments("t", "void C<object>.F(object t)", "D<object?>").
WithLocation
(19, 28));
136767
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 15),
136770
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "Create(x).F<T?>").WithArguments("C<T>.F<U>()", "T", "U", "T?").
WithLocation
(15, 14),
136773
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "Create(x).F<T?>").WithArguments("C<T>.F<U>()", "T", "U", "T?").
WithLocation
(19, 23));
136809
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 15),
136812
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "Create(x).F").WithArguments("C<T>.F<U>(U)", "T", "U", "T?").
WithLocation
(15, 14),
136815
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "Create(x).F").WithArguments("C<T>.F<U>(U)", "T", "U", "T?").
WithLocation
(19, 23));
136851
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 15),
136854
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "Create(x).F<T?>").WithArguments("C<T>.F<U>(U)", "T", "U", "T?").
WithLocation
(15, 14),
136857
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "Create(x).F<T?>").WithArguments("C<T>.F<U>(U)", "T", "U", "T?").
WithLocation
(19, 23));
136891
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Create(s).F").WithArguments("string? C<string?>.F()", "D<string>").
WithLocation
(15, 13),
136894
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "x.F").WithArguments("string? C<string?>.F()", "D<string>").
WithLocation
(16, 13),
136897
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "y.F").WithArguments("string? C<string?>.F()", "D<string>").
WithLocation
(17, 13),
136900
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Create(s).F").WithArguments("string? C<string?>.F()", "D<string>").
WithLocation
(18, 27),
136903
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "x.F").WithArguments("string? C<string?>.F()", "D<string>").
WithLocation
(19, 27),
136906
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "y.F").WithArguments("string? C<string?>.F()", "D<string>").
WithLocation
(20, 27));
136941
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 20),
136944
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "y.F").WithArguments("object? E.F<object?>(object? t)", "D<object>").
WithLocation
(17, 14),
136947
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "y.F").WithArguments("object? E.F<object?>(object? t)", "D<object>").
WithLocation
(21, 27));
136982
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 20));
137017
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 20),
137020
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "void E.F<object>(object x, object y)").
WithLocation
(17, 21),
137023
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("x", "void E.F<object>(object x, object y)").
WithLocation
(21, 34));
137058
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 15),
137061
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("t", "T E.F<T>(T t)").
WithLocation
(17, 21),
137064
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("t", "T E.F<T>(T t)").
WithLocation
(21, 29));
137099
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 15),
137102
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "x.F").WithArguments("E.F<T, U>(T, U)", "T", "U", "T?").
WithLocation
(14, 14),
137105
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "x.F").WithArguments("E.F<T, U>(T, U)", "T", "U", "T?").
WithLocation
(18, 23));
137142
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Create(s).F").WithArguments("string? E.F<string?>(C<string?> c)", "D<string>").
WithLocation
(18, 13),
137145
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "x.F").WithArguments("string? E.F<string?>(C<string?> c)", "D<string>").
WithLocation
(19, 13),
137148
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "y.F").WithArguments("string? E.F<string?>(C<string?> c)", "D<string>").
WithLocation
(20, 13),
137151
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "Create(s).F").WithArguments("string? E.F<string?>(C<string?> c)", "D<string>").
WithLocation
(21, 27),
137154
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "x.F").WithArguments("string? E.F<string?>(C<string?> c)", "D<string>").
WithLocation
(22, 27),
137157
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "y.F").WithArguments("string? E.F<string?>(C<string?> c)", "D<string>").
WithLocation
(23, 27));
137187
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 15),
137190
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "y.F").WithArguments("E.F<T>(T)", "T", "T?").
WithLocation
(14, 13),
137193
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "y.F").WithArguments("E.F<T>(T)", "T", "T?").
WithLocation
(16, 23));
137224
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(13, 17),
137227
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "x.F").WithArguments("T? E.F<T?>(T? t)", "D<T>").
WithLocation
(14, 22),
137230
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "x.F").WithArguments("T? E.F<T?>(T? t)", "D<T>").
WithLocation
(15, 26));
137255
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "A").WithArguments("d", "D<string>").
WithLocation
(10, 2),
137258
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "default(string).F").WithArguments("string? E.F<string?>(string? t)", "D<string>").
WithLocation
(10, 4));
137342
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator +(C<T> a, C<T> b)").
WithLocation
(44, 17),
137345
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator +(C<T?> a, C<T?> b)").
WithLocation
(46, 17));
137407
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator -(C<T> a, C<T> b)").
WithLocation
(44, 17),
137410
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator -(C<T?> a, C<T?> b)").
WithLocation
(46, 17));
137475
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator *(C<T> a, C<T> b)").
WithLocation
(47, 17),
137478
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator *(C<T?> a, C<T?> b)").
WithLocation
(49, 17));
137530
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator +(C<T> a, C<T> b)").
WithLocation
(34, 17),
137533
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator +(C<T?> a, C<T?> b)").
WithLocation
(36, 17));
137584
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator -(C<T> a, C<T> b)").
WithLocation
(33, 17),
137587
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator -(C<T?> a, C<T?> b)").
WithLocation
(35, 17));
137643
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "z").WithArguments("C<T?>", "C<T>", "b", "C<T> C<T>.operator *(C<T> a, C<T> b)").
WithLocation
(38, 17),
137646
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("C<T>", "C<T?>", "b", "C<T?> C<T?>.operator *(C<T?> a, C<T?> b)").
WithLocation
(40, 17));
137869
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 17),
137872
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(21, 17));
137935
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "ReferenceEquals").WithArguments("objA", "object.ReferenceEquals(object, object)").
WithLocation
(7, 9),
137938
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(7, 25),
137941
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 25));
137978
Diagnostic(ErrorCode.WRN_EqualsWithoutGetHashCode, "C").WithArguments("C").
WithLocation
(3, 7),
137981
Diagnostic(ErrorCode.ERR_BadArgCount, "Equals").WithArguments("Equals", "0").
WithLocation
(7, 16),
137984
Diagnostic(ErrorCode.ERR_ObjectRequired, "object.Equals").WithArguments("object.Equals(object)").
WithLocation
(8, 9),
137987
Diagnostic(ErrorCode.ERR_BadArgCount, "Equals").WithArguments("Equals", "3").
WithLocation
(9, 16),
137990
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "ReferenceEquals").WithArguments("objA", "object.ReferenceEquals(object, object)").
WithLocation
(11, 16),
137993
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "ReferenceEquals").WithArguments("objB", "object.ReferenceEquals(object, object)").
WithLocation
(12, 16),
137996
Diagnostic(ErrorCode.ERR_BadArgCount, "ReferenceEquals").WithArguments("ReferenceEquals", "3").
WithLocation
(13, 16),
137999
Diagnostic(ErrorCode.ERR_BadArgCount, "Equals").WithArguments("Equals", "0").
WithLocation
(15, 13),
138002
Diagnostic(ErrorCode.ERR_ObjectProhibited, "eq1.Equals").WithArguments("object.Equals(object, object)").
WithLocation
(16, 9),
138005
Diagnostic(ErrorCode.ERR_BadArgCount, "Equals").WithArguments("Equals", "0").
WithLocation
(18, 14),
138008
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.Equals").WithArguments("object.Equals(object, object)").
WithLocation
(19, 9));
138038
Diagnostic(ErrorCode.WRN_EqualsWithoutGetHashCode, "C").WithArguments("C").
WithLocation
(3, 7),
138041
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(9, 17),
138044
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(14, 17));
138074
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(9, 17),
138077
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(14, 17));
138122
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(9, 17),
138125
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(10, 17),
138128
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(14, 17),
138131
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(15, 17),
138134
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(23, 17),
138137
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(24, 17),
138140
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(28, 17),
138143
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(29, 17));
138186
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(10, 17),
138189
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(23, 17));
138232
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(10, 17),
138235
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(23, 17));
138316
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 17),
138319
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(25, 17));
138361
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(14, 17),
138364
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "c.i").
WithLocation
(14, 17),
138367
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(26, 17),
138370
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "c.i").
WithLocation
(26, 17));
138396
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 17));
138422
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 17));
138448
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 17),
138451
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 17)
138499
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(27, 17));
138538
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(22, 17),
138541
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(26, 17));
138569
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(15, 17));
138597
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(15, 17));
138625
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(15, 17));
138655
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 17));
138688
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(20, 17));
138714
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 15),
138717
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 15));
138747
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 15));
138778
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(19, 15));
138808
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 15),
138811
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 15));
138840
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 15));
138871
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 15),
138874
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(19, 15));
138945
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(31, 15),
138948
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(37, 15),
138951
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(38, 15),
138954
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(45, 15),
138957
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(52, 15),
138960
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(59, 15));
138996
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(24, 15));
139022
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(14, 15));
139051
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 15));
139081
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 15),
139084
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 15));
139125
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(29, 15));
139159
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(10, 15));
139193
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(10, 15));
139229
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(12, 15));
139271
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 15));
139305
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(21, 17));
139336
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c2").
WithLocation
(18, 17));
139362
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(13, 17));
139388
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(13, 17));
139417
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(16, 17),
139420
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.F").
WithLocation
(16, 17));
139449
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(15, 17));
139485
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(22, 17));
139523
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(24, 17));
139561
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(24, 17));
139590
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(15, 17));
139620
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(11, 17),
139623
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(15, 17));
139655
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 17));
139688
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(19, 17));
139718
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(17, 17));
139747
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(12, 17),
139750
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(16, 17));
139774
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(11, 15),
139777
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c1").
WithLocation
(12, 15));
139806
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 15));
139841
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(23, 15));
139871
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(17, 15),
139874
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(18, 15));
139894
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(2, 10),
139897
Diagnostic(ErrorCode.ERR_ObjectRequired, "Equals").WithArguments("object.Equals(object)").
WithLocation
(6, 13),
139900
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "other").
WithLocation
(6, 30));
139920
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(2, 11),
139923
Diagnostic(ErrorCode.ERR_ObjectRequired, "Equals").WithArguments("object.Equals(object)").
WithLocation
(6, 13),
139926
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "other").
WithLocation
(6, 30));
139946
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "o1").
WithLocation
(6, 21));
139973
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 18)
139986
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "o1").
WithLocation
(7, 21));
140003
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 18));
140044
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 18));
140056
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 18),
140059
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "o3").
WithLocation
(7, 21));
140069
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 18));
140079
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 18),
140082
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 18));
140132
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 18),
140135
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "o1").
WithLocation
(8, 21));
140191
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, location).
WithLocation
(19, 13)
140223
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, location).
WithLocation
(19, 13)
140248
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, location).
WithLocation
(12, 13)
140281
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "arr[0]").
WithLocation
(18, 13));
140317
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "location").
WithLocation
(21, 41),
140320
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "location").
WithLocation
(22, 13));
140419
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result").
WithLocation
(25, 13));
140451
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "location").
WithLocation
(17, 13),
140454
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "result").
WithLocation
(18, 13));
140489
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "location").
WithLocation
(19, 13));
140561
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "CompareExchange").WithArguments("comparand", "System.Threading.Interlocked.CompareExchange(ref object?, object?, object?)").
WithLocation
(17, 21),
140564
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "location").
WithLocation
(18, 13));
140604
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "location1").
WithLocation
(17, 41),
140607
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "location3").
WithLocation
(23, 79));
140635
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(8, 84),
140638
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "Interlocked.CompareExchange").WithArguments("System.Threading.Interlocked.CompareExchange<T>(ref T, T, T)", "T", "object?").
WithLocation
(15, 9));
140703
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "i3").WithArguments("System.IEquatable<A>", "System.IEquatable<A?>").
WithLocation
(41, 29),
140706
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "i7").WithArguments("System.IEquatable<(B, B)>", "System.IEquatable<(B?, B?)>").
WithLocation
(47, 35)
140773
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M").WithArguments("C.M<T>(System.Span<T>)", "System.IEquatable<B>", "T", "B").
WithLocation
(18, 9),
140776
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M").WithArguments("C.M<T>(System.Span<T>)", "System.IEquatable<B>", "T", "B").
WithLocation
(19, 9));
140816
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "i1").WithArguments("IEquatable<A?>", "IEquatable<A>").
WithLocation
(14, 28),
140819
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "i2").WithArguments("IEquatable<A>", "IEquatable<A?>").
WithLocation
(15, 29));
140873
Diagnostic(ErrorCode.ERR_BadArity, "FromA<TResult>").WithArguments("ResultExtensions.FromA<A, B>(A)", "method", "2").
WithLocation
(10, 24));
140970
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0a").
WithLocation
(7, 9),
140973
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(14, 9),
140976
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2b").
WithLocation
(21, 9),
140979
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3").
WithLocation
(27, 55),
140982
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4").
WithLocation
(36, 13),
140985
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(45, 33),
140988
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s6").
WithLocation
(48, 66));
141126
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 9)
141166
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 9)
141203
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C").WithArguments("I<object>", "C").
WithLocation
(13, 7)
141242
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C").WithArguments("I<object?>", "C").
WithLocation
(13, 7)
141384
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "I3").WithArguments("I<T>", "I3<T>").
WithLocation
(15, 11)
141423
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Extension").WithArguments("C", "Extension").
WithLocation
(6, 11),
141426
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C").WithArguments("I<(int c, int d)>", "I<(int a, int b)>", "C").
WithLocation
(12, 7)
141481
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "I<object>").WithArguments("I<object>", "C").
WithLocation
(15, 5)
141517
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C").WithArguments("I<object>", "C").
WithLocation
(3, 15)
141546
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C").WithArguments("I<object?>", "C").
WithLocation
(13, 7)
141575
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Extension").WithArguments("C", "Extension").
WithLocation
(7, 11),
141578
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C").WithArguments("I<(object? c, object? d)>", "I<(object a, object b)>", "C").
WithLocation
(13, 7)
141604
Diagnostic(ErrorCode.ERR_DuplicateInterfaceInBaseList, "I<object>").WithArguments("I<object>").
WithLocation
(12, 22)
141631
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Extension").WithArguments("C", "Extension").
WithLocation
(7, 11),
141634
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C").WithArguments("I<(int c, int d)>", "I<(int a, int b)>", "C").
WithLocation
(13, 7)
141724
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "C").WithArguments("I<object>", "C").
WithLocation
(15, 15)
141827
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Extension").WithArguments("T", "Extension").
WithLocation
(6, 11)
141876
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<object>").WithArguments("I<object>", "T").
WithLocation
(7, 9)
141901
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<(object? c, object? d)>").WithArguments("I<(object c, object d)>", "T").
WithLocation
(5, 62)
141925
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<(object c, object d)>").WithArguments("I<(object c, object d)>", "T").
WithLocation
(7, 9)
141949
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<(object a, object b)>").WithArguments("I<(object a, object b)>", "T").
WithLocation
(7, 9)
141973
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<(int c, int d)>").WithArguments("I<(int c, int d)>", "T").
WithLocation
(4, 56)
142008
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Enumerable").WithArguments("System.Collections.Generic.IEnumerable<C<object?>>", "Enumerable").
WithLocation
(17, 7)
142047
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Enumerable").WithArguments("System.Collections.Generic.IEnumerable<C<object>>", "Enumerable").
WithLocation
(17, 7)
142087
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "Enumerable").WithArguments("System.Collections.Generic.IEnumerable<C<(int a, int b)>>", "System.Collections.Generic.IEnumerable<C<(int c, int d)>>", "Enumerable").
WithLocation
(17, 7)
142126
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "Enumerable").WithArguments("System.Collections.Generic.IEnumerable<C<(int c, int d)>>", "System.Collections.Generic.IEnumerable<C<(int a, int b)>>", "Enumerable").
WithLocation
(17, 7)
142212
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y").WithArguments("I<object?>", "I<object>", "y", "object I<object>.operator +(I<object> x, I<object> y)").
WithLocation
(12, 21),
142215
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<object>", "I<object?>", "y", "object? I<object?>.operator +(I<object?> x, I<object?> y)").
WithLocation
(13, 17)
142245
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "I2").WithArguments("I<object?>", "I2").
WithLocation
(3, 18)
142274
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "x + y").WithArguments("+", "T", "T").
WithLocation
(13, 17),
142277
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "y + x").WithArguments("+", "T", "T").
WithLocation
(14, 13)
142314
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(19, 15),
142317
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(~Create(x)).F").
WithLocation
(20, 9));
142352
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(18, 15),
142355
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(~Create(x)).P").
WithLocation
(19, 9));
142392
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(14, 15),
142395
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1x.F").
WithLocation
(17, 9),
142398
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "~Create2(x)").
WithLocation
(18, 20),
142401
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2x.F").
WithLocation
(19, 9),
142404
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "~Create2(y)").
WithLocation
(22, 20));
142441
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(14, 15),
142444
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1x.F").
WithLocation
(17, 9),
142447
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2x.F").
WithLocation
(19, 9));
142492
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(18, 15),
142495
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(ax + bx).F").
WithLocation
(24, 9),
142498
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(ax + by).F").
WithLocation
(25, 9),
142501
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "by").WithArguments("B<T>", "B<T?>", "b", "A<T?> A<T?>.operator +(A<T?> a, B<T?> b)").
WithLocation
(25, 15),
142504
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "bx").WithArguments("B<T?>", "B<T>", "b", "A<T> A<T>.operator +(A<T> a, B<T> b)").
WithLocation
(26, 15),
142507
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(ax * bx).F").
WithLocation
(28, 9),
142510
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "ax").WithArguments("A<T?>", "A<T>", "a", "A<T> B<T>.operator *(A<T> a, B<T> b)").
WithLocation
(29, 10),
142513
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(ay * bx).F").
WithLocation
(30, 9),
142516
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "ay").WithArguments("A<T>", "A<T?>", "a", "A<T?> B<T?>.operator *(A<T?> a, B<T?> b)").
WithLocation
(30, 10));
142568
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(25, 15),
142571
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b1x + b1x).F").
WithLocation
(31, 9),
142574
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b1x + b1y).F").
WithLocation
(32, 9),
142577
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "b1y").WithArguments("B1<T>", "B1<T?>", "b", "A1<T?> A1<T?>.operator +(A1<T?> a, B1<T?> b)").
WithLocation
(32, 16),
142580
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "b1x").WithArguments("B1<T?>", "B1<T>", "b", "A1<T> A1<T>.operator +(A1<T> a, B1<T> b)").
WithLocation
(33, 16),
142583
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b2x * b2x).F").
WithLocation
(35, 9),
142586
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(b2x * b2y).F").
WithLocation
(36, 9),
142589
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "b2y").WithArguments("B2<T>", "B2<T?>", "b", "A2<T?> A2<T?>.operator *(A2<T?> a, B2<T?> b)").
WithLocation
(36, 16),
142592
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "b2x").WithArguments("B2<T?>", "B2<T>", "b", "A2<T> A2<T>.operator *(A2<T> a, B2<T> b)").
WithLocation
(37, 16));
142633
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(14, 15),
142636
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(s1x + s1y).F").
WithLocation
(20, 9),
142639
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s1y").WithArguments("S<T>", "S<T?>", "y", "S<T?> S<T?>.operator +(S<T?> x, S<T?> y)").
WithLocation
(20, 16),
142642
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s1x").WithArguments("S<T?>", "S<T>", "y", "S<T> S<T>.operator +(S<T> x, S<T> y)").
WithLocation
(21, 16),
142645
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(s1x + s2y).Value.F").
WithLocation
(22, 9),
142648
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1x + s2y").
WithLocation
(22, 10),
142651
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s2y").WithArguments("S<T>", "S<T?>", "y", "S<T?> S<T?>.operator +(S<T?> x, S<T?> y)").
WithLocation
(22, 16),
142654
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s1y + s2x").
WithLocation
(23, 10),
142657
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s2x").WithArguments("S<T?>", "S<T>", "y", "S<T> S<T>.operator +(S<T> x, S<T> y)").
WithLocation
(23, 16),
142660
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(s2x + s1y).Value.F").
WithLocation
(24, 9),
142663
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2x + s1y").
WithLocation
(24, 10),
142666
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s1y").WithArguments("S<T>", "S<T?>", "y", "S<T?> S<T?>.operator +(S<T?> x, S<T?> y)").
WithLocation
(24, 16),
142669
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2y + s1x").
WithLocation
(25, 10),
142672
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s1x").WithArguments("S<T?>", "S<T>", "y", "S<T> S<T>.operator +(S<T> x, S<T> y)").
WithLocation
(25, 16),
142675
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(s2x + s2y).Value.F").
WithLocation
(26, 9),
142678
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2x + s2y").
WithLocation
(26, 10),
142681
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s2y").WithArguments("S<T>", "S<T?>", "y", "S<T?> S<T?>.operator +(S<T?> x, S<T?> y)").
WithLocation
(26, 16),
142684
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s2y + s2x").
WithLocation
(27, 10),
142687
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s2x").WithArguments("S<T?>", "S<T>", "y", "S<T> S<T>.operator +(S<T> x, S<T> y)").
WithLocation
(27, 16));
142733
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(15, 15),
142736
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(s1x + s1y).Value.F").
WithLocation
(21, 9),
142739
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s1y").WithArguments("S<T>", "S<T?>?", "y", "S<T?>? S<T?>.operator +(S<T?> x, S<T?>? y)").
WithLocation
(21, 16),
142742
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(s1x + s2x).Value.F").
WithLocation
(22, 9),
142745
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(s1x + s2y).Value.F").
WithLocation
(23, 9),
142748
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s2y").WithArguments("S<T>?", "S<T?>?", "y", "S<T?>? S<T?>.operator +(S<T?> x, S<T?>? y)").
WithLocation
(23, 16),
142751
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s1x").WithArguments("S<T?>", "S<T>?", "y", "S<T>? S<T>.operator +(S<T> x, S<T>? y)").
WithLocation
(24, 16),
142754
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s2x").WithArguments("S<T?>?", "S<T>?", "y", "S<T>? S<T>.operator +(S<T> x, S<T>? y)").
WithLocation
(25, 16),
142757
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(s1x * s1y).Value.F").
WithLocation
(27, 9),
142760
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s1y").WithArguments("S<T>", "S<T?>", "y", "S<T?>? S<T?>.operator *(S<T?>? x, S<T?> y)").
WithLocation
(27, 16),
142763
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s1x").WithArguments("S<T?>", "S<T>", "y", "S<T>? S<T>.operator *(S<T>? x, S<T> y)").
WithLocation
(28, 16),
142766
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(s2x * s1x).Value.F").
WithLocation
(29, 9),
142769
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "(s2x * s1y).Value.F").
WithLocation
(30, 9),
142772
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s1y").WithArguments("S<T>", "S<T?>", "y", "S<T?>? S<T?>.operator *(S<T?>? x, S<T?> y)").
WithLocation
(30, 16),
142775
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "s1x").WithArguments("S<T?>", "S<T>", "y", "S<T>? S<T>.operator *(S<T>? x, S<T> y)").
WithLocation
(31, 16));
142821
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(20, 15));
142864
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(17, 15));
142915
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(11, 23));
142943
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 20),
142946
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "Create(x)").WithArguments("StructAwaitable<object>", "StructAwaitable<object?>", "s", "TaskAwaiter Program.GetAwaiter(StructAwaitable<object?> s)").
WithLocation
(13, 15));
142983
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(16, 20));
143016
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(16, 20));
143060
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(24, 20),
143063
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "Create(x)").WithArguments("StructAwaitable1<object>", "StructAwaitable1<object?>", "s", "TaskAwaiter<bool> Program.GetAwaiter(StructAwaitable1<object?> s)").
WithLocation
(25, 33),
143066
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "Create(y)").WithArguments("StructAwaitable2<object?>", "StructAwaitable2<object>", "s", "TaskAwaiter Program.GetAwaiter(StructAwaitable2<object> s)").
WithLocation
(28, 33)
143111
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(24, 20),
143114
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "Create(x)").WithArguments("StructAwaitable2<object>", "StructAwaitable2<object?>", "s", "TaskAwaiter Program.GetAwaiter(StructAwaitable2<object?> s)").
WithLocation
(25, 33),
143117
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "Create(y)").WithArguments("StructAwaitable1<object?>", "StructAwaitable1<object>", "s", "TaskAwaiter<bool> Program.GetAwaiter(StructAwaitable1<object> s)").
WithLocation
(28, 33)
143156
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1").
WithLocation
(18, 9),
143159
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item1").
WithLocation
(24, 9)
143181
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").
WithLocation
(5, 34),
143184
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(6, 34));
143263
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").
WithLocation
(9, 16),
143266
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").
WithLocation
(16, 16),
143269
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").
WithLocation
(23, 16),
143272
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").
WithLocation
(30, 16),
143275
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t7").
WithLocation
(51, 16));
143354
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").
WithLocation
(9, 16),
143357
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").
WithLocation
(30, 16),
143360
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t7").
WithLocation
(51, 16));
143478
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t2").WithArguments("t", "void C<T>.F0(T t)").
WithLocation
(19, 23),
143481
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r2").
WithLocation
(22, 16),
143484
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t3").WithArguments("t", "void C<T>.F0(T t)").
WithLocation
(35, 23),
143487
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r3").
WithLocation
(38, 16),
143490
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t4").WithArguments("t", "void C<T>.F0(T t)").
WithLocation
(51, 23),
143493
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r4").
WithLocation
(54, 16),
143496
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t7").WithArguments("t", "void C<T>.F0(T t)").
WithLocation
(83, 23),
143499
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "r7").
WithLocation
(86, 16));
143536
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").
WithLocation
(4, 26),
143539
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").
WithLocation
(5, 42),
143542
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").
WithLocation
(7, 44),
143545
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").
WithLocation
(8, 41),
143548
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").
WithLocation
(9, 48),
143551
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").
WithLocation
(11, 50),
143554
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(T)").
WithLocation
(12, 26),
143557
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").
WithLocation
(12, 26),
143560
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(T)").
WithLocation
(13, 42),
143563
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").
WithLocation
(13, 42),
143566
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(T)").
WithLocation
(15, 44),
143569
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(T)").
WithLocation
(15, 44),
143572
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(U)").
WithLocation
(16, 41),
143575
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").
WithLocation
(16, 41),
143578
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(U)").
WithLocation
(17, 48),
143581
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").
WithLocation
(17, 48),
143584
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(U)").
WithLocation
(19, 50),
143587
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)default(U)").
WithLocation
(19, 50),
143590
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)default(T)").
WithLocation
(20, 41),
143593
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").
WithLocation
(20, 41),
143596
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)default(T)").
WithLocation
(21, 48),
143599
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").
WithLocation
(21, 48),
143602
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)default(T)").
WithLocation
(22, 49),
143605
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)default(T)").
WithLocation
(23, 50),
143608
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)default(T)").
WithLocation
(23, 50),
143611
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)(object)default(T)").
WithLocation
(24, 29),
143614
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)default(T)").
WithLocation
(24, 29),
143617
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)default(T)").
WithLocation
(24, 32));
143655
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(T)").
WithLocation
(14, 61),
143658
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)default(T)").
WithLocation
(22, 67),
143661
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)default(T)").
WithLocation
(23, 68),
143664
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)default(T)").
WithLocation
(25, 51));
143670
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(T)").
WithLocation
(13, 45),
143673
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(T)").
WithLocation
(14, 61),
143676
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(T)").
WithLocation
(16, 63),
143679
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(U)").
WithLocation
(17, 60),
143682
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(U)").
WithLocation
(18, 67),
143685
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(U)").
WithLocation
(20, 69),
143688
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)default(T)").
WithLocation
(21, 60),
143691
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)default(T)").
WithLocation
(22, 67),
143694
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)default(T)").
WithLocation
(23, 68),
143697
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)default(T)").
WithLocation
(24, 69),
143700
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)(object)default(T)").
WithLocation
(25, 48),
143703
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)default(T)").
WithLocation
(25, 51));
143722
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)default(T)").
WithLocation
(5, 43),
143725
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)default(T)").
WithLocation
(6, 49));
143763
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(5, 40),
143766
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(6, 56),
143769
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(8, 58),
143772
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 55),
143775
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(10, 62),
143778
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(12, 64),
143781
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").
WithLocation
(13, 40),
143784
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)t").
WithLocation
(14, 56),
143787
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").
WithLocation
(14, 56),
143790
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").
WithLocation
(16, 58),
143793
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").
WithLocation
(17, 55),
143796
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").
WithLocation
(18, 62),
143799
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").
WithLocation
(20, 64),
143802
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").
WithLocation
(21, 55),
143805
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(22, 62),
143808
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").
WithLocation
(22, 62),
143811
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").
WithLocation
(23, 63),
143814
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").
WithLocation
(24, 64),
143817
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").
WithLocation
(25, 43),
143820
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(25, 46));
143826
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(5, 40),
143829
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(6, 56),
143832
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(8, 58),
143835
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 55),
143838
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(10, 62),
143841
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(12, 64),
143844
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)t").
WithLocation
(13, 40),
143847
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").
WithLocation
(13, 40),
143850
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)t").
WithLocation
(14, 56),
143853
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").
WithLocation
(14, 56),
143856
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)t").
WithLocation
(16, 58),
143859
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").
WithLocation
(16, 58),
143862
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)u").
WithLocation
(17, 55),
143865
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").
WithLocation
(17, 55),
143868
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)u").
WithLocation
(18, 62),
143871
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").
WithLocation
(18, 62),
143874
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)u").
WithLocation
(20, 64),
143877
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").
WithLocation
(20, 64),
143880
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(21, 55),
143883
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").
WithLocation
(21, 55),
143886
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(22, 62),
143889
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").
WithLocation
(22, 62),
143892
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").
WithLocation
(23, 63),
143895
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(24, 64),
143898
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)t").
WithLocation
(24, 64),
143901
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)(object)t").
WithLocation
(25, 43),
143904
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(U)(object)t").
WithLocation
(25, 43),
143907
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(25, 46));
143927
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(4, 46),
143930
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(5, 52),
143933
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)t").
WithLocation
(6, 46),
143936
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").
WithLocation
(6, 46),
143939
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").
WithLocation
(7, 52));
143945
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(4, 46),
143948
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(5, 52),
143951
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)t").
WithLocation
(6, 46),
143954
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)t").
WithLocation
(6, 46),
143957
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)u").
WithLocation
(7, 52),
143960
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)u").
WithLocation
(7, 52));
143998
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(22, 70),
144001
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").
WithLocation
(23, 71),
144004
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(25, 54));
144010
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(21, 63),
144013
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(22, 70),
144016
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").
WithLocation
(23, 71),
144019
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(24, 72),
144022
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)(object)t").
WithLocation
(25, 51),
144025
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(25, 54));
144044
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(6, 52));
144082
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)t").
WithLocation
(14, 75),
144085
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(22, 81),
144088
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").
WithLocation
(23, 82),
144091
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(25, 65));
144097
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)t").
WithLocation
(13, 59),
144100
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)t").
WithLocation
(14, 75),
144103
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)t").
WithLocation
(16, 77),
144106
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)u").
WithLocation
(17, 74),
144109
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)u").
WithLocation
(18, 81),
144112
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)u").
WithLocation
(20, 83),
144115
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(21, 74),
144118
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(22, 81),
144121
Diagnostic(ErrorCode.WRN_UnboxPossibleNull, "(U)t").
WithLocation
(23, 82),
144124
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(24, 83),
144127
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)(object)t").
WithLocation
(25, 62),
144130
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(object)t").
WithLocation
(25, 65));
144150
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)t").
WithLocation
(6, 47),
144153
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(7, 63));
144177
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").
WithLocation
(4, 36),
144180
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").
WithLocation
(5, 52),
144183
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").
WithLocation
(7, 54),
144186
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").
WithLocation
(8, 36),
144189
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)d").
WithLocation
(9, 52),
144192
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").
WithLocation
(9, 52),
144195
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").
WithLocation
(11, 54));
144201
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").
WithLocation
(4, 36),
144204
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").
WithLocation
(5, 52),
144207
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "d").
WithLocation
(7, 54),
144210
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)d").
WithLocation
(8, 36),
144213
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").
WithLocation
(8, 36),
144216
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)d").
WithLocation
(9, 52),
144219
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").
WithLocation
(9, 52),
144222
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)d").
WithLocation
(11, 54),
144225
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T)d").
WithLocation
(11, 54));
144250
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)d").
WithLocation
(10, 71));
144256
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)d").
WithLocation
(9, 55),
144259
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)d").
WithLocation
(10, 71),
144262
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)d").
WithLocation
(12, 73));
144287
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(5, 46),
144290
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(6, 62),
144293
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(8, 64),
144296
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(dynamic)t").
WithLocation
(9, 46),
144299
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").
WithLocation
(9, 46),
144302
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(dynamic)t").
WithLocation
(10, 62),
144305
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").
WithLocation
(10, 62),
144308
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(dynamic)t").
WithLocation
(12, 64),
144311
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(dynamic)t").
WithLocation
(12, 64));
144368
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 14),
144371
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(15, 14),
144374
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P3").
WithLocation
(21, 13));
144402
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default(T)").
WithLocation
(8, 15),
144405
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(9, 16),
144408
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").
WithLocation
(14, 18));
144450
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y.F").
WithLocation
(11, 9));
144471
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(7, 9));
144492
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(6, 15),
144495
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(7, 9));
144516
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t").
WithLocation
(7, 9));
144554
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T1>()").
WithLocation
(8, 16),
144557
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T2>()").
WithLocation
(12, 16),
144560
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T3>()").
WithLocation
(16, 16),
144563
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "F<T4>()").
WithLocation
(20, 16));
144641
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F<T1>()").
WithLocation
(8, 17),
144644
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").
WithLocation
(9, 16),
144647
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F<T2>()").
WithLocation
(13, 17),
144650
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").
WithLocation
(14, 16),
144653
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F<T3>()").
WithLocation
(18, 17),
144656
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").
WithLocation
(19, 16),
144659
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F<T4>()").
WithLocation
(23, 17),
144662
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").
WithLocation
(24, 16));
144685
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(9, 16));
144709
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").
WithLocation
(7, 25),
144712
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").
WithLocation
(8, 43),
144715
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").
WithLocation
(9, 41),
144718
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "Identity(F<T>())").
WithLocation
(10, 42));
144744
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)x1").
WithLocation
(6, 18),
144747
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(7, 13));
144768
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(6, 12),
144771
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(8, 23));
144800
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(13, 14),
144803
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").
WithLocation
(15, 14));
144824
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").
WithLocation
(6, 67),
144827
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").
WithLocation
(7, 67),
144830
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : u").
WithLocation
(8, 78));
144854
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default").
WithLocation
(5, 28),
144857
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default(T)").
WithLocation
(6, 28),
144860
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? default(U)").
WithLocation
(7, 43),
144863
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? u").
WithLocation
(9, 59),
144866
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ?? u").
WithLocation
(11, 70));
144890
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default").
WithLocation
(5, 28),
144893
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(5, 34),
144896
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default(T)").
WithLocation
(6, 28),
144899
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default(T)").
WithLocation
(6, 34),
144902
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= default(U)").
WithLocation
(7, 43),
144905
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default(U)").
WithLocation
(7, 49),
144908
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= u").
WithLocation
(9, 59),
144911
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u").
WithLocation
(9, 65),
144914
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t ??= u").
WithLocation
(11, 70),
144917
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u").
WithLocation
(11, 76));
144947
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").
WithLocation
(8, 22),
144950
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").
WithLocation
(10, 22),
144953
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(U)").
WithLocation
(14, 22),
144956
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u2").
WithLocation
(16, 22));
145023
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").
WithLocation
(4, 36),
145026
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").
WithLocation
(5, 36),
145029
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").
WithLocation
(6, 52),
145032
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").
WithLocation
(7, 52),
145035
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => t, _ => default }").
WithLocation
(10, 54),
145038
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b switch { false => default, _ => t }").
WithLocation
(11, 54));
145062
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").
WithLocation
(4, 28),
145065
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").
WithLocation
(5, 28),
145068
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").
WithLocation
(6, 44),
145071
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").
WithLocation
(7, 44),
145074
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { t, default }[0]").
WithLocation
(10, 46),
145077
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { default, t }[0]").
WithLocation
(11, 46));
145101
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").
WithLocation
(4, 36),
145104
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").
WithLocation
(5, 36),
145107
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").
WithLocation
(6, 52),
145110
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").
WithLocation
(7, 52),
145113
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? t : default").
WithLocation
(10, 54),
145116
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : t").
WithLocation
(11, 54));
145141
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(5, 74),
145144
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(6, 64),
145147
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(7, 90),
145150
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(8, 80),
145153
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(11, 92),
145156
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(12, 82));
145184
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T)").
WithLocation
(11, 24),
145187
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y").
WithLocation
(13, 25));
145213
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? Get<T>() : default").
WithLocation
(8, 31),
145216
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "b ? default : Get<T>()").
WithLocation
(9, 31),
145219
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "false ? Get<T>() : default").
WithLocation
(10, 25),
145222
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "true ? default : Get<T>()").
WithLocation
(13, 25));
145254
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(5, 32),
145257
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(8, 37),
145260
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").
WithLocation
(13, 14),
145263
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").
WithLocation
(16, 14));
145294
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(5, 30),
145297
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(6, 35),
145300
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(7, 44),
145303
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(8, 35),
145306
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(9, 40),
145309
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(10, 49),
145312
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").
WithLocation
(13, 14),
145315
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").
WithLocation
(14, 14),
145318
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").
WithLocation
(15, 14),
145321
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").
WithLocation
(16, 14),
145324
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").
WithLocation
(17, 14),
145327
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").
WithLocation
(18, 14));
145360
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(5, 67),
145363
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(6, 67),
145366
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(7, 67),
145369
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(9, 67),
145372
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").
WithLocation
(9, 70),
145375
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").
WithLocation
(14, 70));
145407
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(5, 71),
145410
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(6, 71),
145413
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(7, 71),
145416
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(9, 71),
145419
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").
WithLocation
(9, 74),
145422
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").
WithLocation
(14, 74));
145444
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").
WithLocation
(5, 64),
145447
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(6, 60),
145450
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").
WithLocation
(6, 63),
145453
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").
WithLocation
(7, 55),
145456
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").
WithLocation
(9, 58)
145489
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(5, 71),
145492
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(6, 71),
145495
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(7, 71),
145498
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").
WithLocation
(9, 71),
145501
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").
WithLocation
(9, 74),
145504
Diagnostic(ErrorCode.WRN_ParameterDisallowsNull, "}").WithArguments("y").
WithLocation
(14, 74));
145531
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").
WithLocation
(7, 16),
145534
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").
WithLocation
(13, 16));
145553
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(4, 25),
145556
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(6, 9));
145576
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(4, 31));
145592
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(4, 40),
145595
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(4, 56));
145631
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(4, 46),
145634
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(4, 46),
145637
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(5, 46),
145640
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(5, 46),
145643
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(5, 55),
145646
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(5, 55),
145649
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(5, 55),
145652
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(6, 54),
145655
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(6, 54),
145658
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(6, 54),
145661
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(7, 35),
145664
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(7, 35),
145667
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(7, 44),
145670
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(8, 41),
145673
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(8, 41),
145676
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(8, 41),
145679
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(9, 35),
145682
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(9, 35),
145685
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "F6").WithArguments("F6", "A").
WithLocation
(10, 17),
145688
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(10, 35),
145691
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(10, 35),
145694
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "notnull").
WithLocation
(10, 44),
145697
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "F6").WithArguments("F6", "A").
WithLocation
(11, 17),
145700
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(11, 46),
145703
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(11, 46),
145706
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(11, 46));
145712
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(4, 46),
145715
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(5, 46),
145718
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(5, 55),
145721
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(5, 55),
145724
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(6, 54),
145727
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(6, 54),
145730
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(7, 35),
145733
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(7, 44),
145736
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(8, 41),
145739
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(8, 41),
145742
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(9, 35),
145745
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "F6").WithArguments("F6", "A").
WithLocation
(10, 17),
145748
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(10, 35),
145751
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "notnull").
WithLocation
(10, 44),
145754
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "F6").WithArguments("F6", "A").
WithLocation
(11, 17),
145757
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(11, 46),
145760
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(11, 46));
145797
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B0").WithArguments("B0", "A.F2<T>(T?)").
WithLocation
(7, 7),
145800
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B0.F2<T>(T?)").
WithLocation
(10, 28),
145803
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "t").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(10, 37),
145806
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B1").WithArguments("B1", "A.F1<T>(T?)").
WithLocation
(12, 7),
145809
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B1.F1<T>(T?)").
WithLocation
(14, 28),
145812
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "T").WithArguments("B1.F2<T>(T?)", "T", "T", "A.F2<T>(T?)").
WithLocation
(15, 31),
145815
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(19, 58),
145818
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(20, 57),
145821
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B3").WithArguments("B3", "A.F1<T>(T?)").
WithLocation
(22, 7),
145824
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B3.F1<T>(T?)").
WithLocation
(24, 28),
145827
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "struct").
WithLocation
(24, 59),
145830
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(25, 59));
145888
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F1").WithArguments("B.F1<T>()", "A.F1<T>()", "T").
WithLocation
(4, 24),
145891
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F1").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(4, 24),
145894
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F2").WithArguments("B.F2<T>()", "A.F2<T>()", "T").
WithLocation
(5, 24),
145897
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F2").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(5, 24),
145900
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F3").WithArguments("B.F3<T>()", "A.F3<T>()", "T").
WithLocation
(6, 24),
145903
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F3").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(6, 24),
145906
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F5").WithArguments("B.F5<T>()", "A.F5<T>()", "T").
WithLocation
(8, 24),
145909
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F5").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(8, 24),
145912
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F7").WithArguments("B.F7<T>()", "A.F7<T>()", "T").
WithLocation
(10, 24),
145915
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F7").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(10, 24),
145918
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F8").WithArguments("B.F8<T>()", "A.F8<T>()", "T").
WithLocation
(11, 24),
145921
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F8").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(11, 24));
145940
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "T").WithArguments("B.F2<T>()", "T", "T", "A.F2<T>()").
WithLocation
(5, 27),
145943
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "T").WithArguments("B.F3<T>()", "T", "T", "A.F3<T>()").
WithLocation
(6, 27),
145946
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F4").WithArguments("B.F4<T>()", "A.F4<T>()", "T?").
WithLocation
(7, 24),
145949
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "T").WithArguments("B.F4<T>()", "T", "T", "A.F4<T>()").
WithLocation
(7, 27),
145952
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F6").WithArguments("B.F6<T>()", "A.F6<T>()", "T?").
WithLocation
(9, 24),
145955
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "T").WithArguments("B.F6<T>()", "T", "T", "A.F6<T>()").
WithLocation
(9, 27));
145974
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("B.F1<T>()", "T", "T", "A.F1<T>()").
WithLocation
(4, 27),
145977
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F4").WithArguments("B.F4<T>()", "A.F4<T>()", "T?").
WithLocation
(7, 24),
145980
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("B.F4<T>()", "T", "T", "A.F4<T>()").
WithLocation
(7, 27),
145983
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("B.F5<T>()", "T", "T", "A.F5<T>()").
WithLocation
(8, 27),
145986
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F6").WithArguments("B.F6<T>()", "A.F6<T>()", "T?").
WithLocation
(9, 24),
145989
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("B.F6<T>()", "T", "T", "A.F6<T>()").
WithLocation
(9, 27),
145992
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("B.F7<T>()", "T", "T", "A.F7<T>()").
WithLocation
(10, 27),
145995
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "T").WithArguments("B.F8<T>()", "T", "T", "A.F8<T>()").
WithLocation
(11, 27));
146014
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F1").WithArguments("B.F1<T>()", "A.F1<T>()", "T").
WithLocation
(4, 24),
146017
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F1").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(4, 24),
146020
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("B.F1<T>()", "T", "T", "A.F1<T>()").
WithLocation
(4, 27),
146023
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F2").WithArguments("B.F2<T>()", "A.F2<T>()", "T").
WithLocation
(5, 24),
146026
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F2").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(5, 24),
146029
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("B.F2<T>()", "T", "T", "A.F2<T>()").
WithLocation
(5, 27),
146032
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F3").WithArguments("B.F3<T>()", "A.F3<T>()", "T").
WithLocation
(6, 24),
146035
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F3").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(6, 24),
146038
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("B.F3<T>()", "T", "T", "A.F3<T>()").
WithLocation
(6, 27),
146041
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F5").WithArguments("B.F5<T>()", "A.F5<T>()", "T").
WithLocation
(8, 24),
146044
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F5").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(8, 24),
146047
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("B.F5<T>()", "T", "T", "A.F5<T>()").
WithLocation
(8, 27),
146050
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F7").WithArguments("B.F7<T>()", "A.F7<T>()", "T").
WithLocation
(10, 24),
146053
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F7").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(10, 24),
146056
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("B.F7<T>()", "T", "T", "A.F7<T>()").
WithLocation
(10, 27),
146059
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F8").WithArguments("B.F8<T>()", "A.F8<T>()", "T").
WithLocation
(11, 24),
146062
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F8").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(11, 24),
146065
Diagnostic(ErrorCode.ERR_OverrideValConstraintNotSatisfied, "T").WithArguments("B.F8<T>()", "T", "T", "A.F8<T>()").
WithLocation
(11, 27));
146092
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "F").WithArguments("F", "C").
WithLocation
(5, 17),
146144
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B1").WithArguments("B1", "A.F<T>(T?)").
WithLocation
(2, 7),
146147
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2", "A.F<T>(T?)").
WithLocation
(6, 7),
146150
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B3").WithArguments("B3", "A.F<T>(T?)").
WithLocation
(10, 7));
146187
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "F1").WithArguments("A<object>.F1<U>(object)", "B1.F1<U>(object)").
WithLocation
(3, 26),
146190
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "F1").WithArguments("A<object>.F1<U>(object)", "B2.F1<U>(object)").
WithLocation
(3, 26),
146193
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "F1").WithArguments("A<object>.F1<U>(object)", "B3.F1<U>(object)").
WithLocation
(3, 26),
146196
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "F2").WithArguments("A<object>.F2<U>(object)", "B1.F2<U>(object)").
WithLocation
(5, 26),
146199
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "F2").WithArguments("A<object>.F2<U>(object)", "B2.F2<U>(object)").
WithLocation
(5, 26),
146202
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "F2").WithArguments("A<object>.F2<U>(object)", "B3.F2<U>(object)").
WithLocation
(5, 26),
146205
Diagnostic(ErrorCode.ERR_AmbigOverride, "F1").WithArguments("A<T>.F1<U>(T)", "A<T>.F1<U>(object)", "B1").
WithLocation
(10, 26),
146208
Diagnostic(ErrorCode.ERR_AmbigOverride, "F2").WithArguments("A<T>.F2<U>(T)", "A<T>.F2<U>(object)", "B1").
WithLocation
(11, 26),
146211
Diagnostic(ErrorCode.ERR_AmbigOverride, "F1").WithArguments("A<T>.F1<U>(T)", "A<T>.F1<U>(object)", "B2").
WithLocation
(15, 26),
146214
Diagnostic(ErrorCode.ERR_OverrideRefConstraintNotSatisfied, "U").WithArguments("B2.F1<U>(object)", "U", "U", "A<object>.F1<U>(object)").
WithLocation
(15, 29),
146217
Diagnostic(ErrorCode.ERR_AmbigOverride, "F2").WithArguments("A<T>.F2<U>(T)", "A<T>.F2<U>(object)", "B2").
WithLocation
(16, 26),
146220
Diagnostic(ErrorCode.ERR_AmbigOverride, "F1").WithArguments("A<T>.F1<U>(T)", "A<T>.F1<U>(object)", "B3").
WithLocation
(20, 26),
146223
Diagnostic(ErrorCode.ERR_AmbigOverride, "F2").WithArguments("A<T>.F2<U>(T)", "A<T>.F2<U>(object)", "B3").
WithLocation
(21, 26),
146226
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B3.F2<U>(object)", "U", "U", "A<object>.F2<U>(object)").
WithLocation
(21, 29));
146280
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(5, 26),
146283
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F1<U>(U)").
WithLocation
(7, 7),
146286
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F2<U>(U?)").
WithLocation
(7, 7),
146289
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B2<T>.F1<U>(U?)").
WithLocation
(9, 26),
146292
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 35),
146295
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B2<T>.F2<U>(U?)").
WithLocation
(10, 26),
146298
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 35),
146301
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(15, 26),
146304
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F1<U>(U)").
WithLocation
(17, 7),
146307
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F2<U>(U?)").
WithLocation
(17, 7),
146310
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B4<T>.F1<U>(U?)").
WithLocation
(19, 26),
146313
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 35),
146316
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B4<T>.F2<U>(U?)").
WithLocation
(20, 26),
146319
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 35),
146322
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(25, 26));
146328
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(5, 26),
146331
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F1<U>(U)").
WithLocation
(7, 7),
146334
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F2<U>(U?)").
WithLocation
(7, 7),
146337
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B2<T>.F1<U>(U?)").
WithLocation
(9, 26),
146340
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 35),
146343
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B2<T>.F2<U>(U?)").
WithLocation
(10, 26),
146346
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 35),
146349
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(15, 26),
146352
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F1<U>(U)").
WithLocation
(17, 7),
146355
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F2<U>(U?)").
WithLocation
(17, 7),
146358
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B4<T>.F1<U>(U?)").
WithLocation
(19, 26),
146361
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 35),
146364
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B4<T>.F2<U>(U?)").
WithLocation
(20, 26),
146367
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 35),
146370
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(25, 26));
146408
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(5, 26),
146411
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F1<U>(U)").
WithLocation
(7, 7),
146414
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F2<U>(U?)").
WithLocation
(7, 7),
146417
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B2<T>.F1<U>(U?)").
WithLocation
(9, 26),
146420
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 35),
146423
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B2<T>.F2<U>(U?)").
WithLocation
(10, 26),
146426
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 35),
146429
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(15, 26),
146432
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F1<U>(U)").
WithLocation
(17, 7),
146435
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F2<U>(U?)").
WithLocation
(17, 7),
146438
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B4<T>.F1<U>(U?)").
WithLocation
(19, 26),
146441
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 35),
146444
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B4<T>.F2<U>(U?)").
WithLocation
(20, 26),
146447
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 35),
146450
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(25, 26));
146488
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(5, 26),
146491
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F1<U>(U)").
WithLocation
(7, 7),
146494
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F2<U>(U?)").
WithLocation
(7, 7),
146497
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B2<T>.F1<U>(U?)").
WithLocation
(9, 26),
146500
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 35),
146503
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B2<T>.F2<U>(U?)").
WithLocation
(10, 26),
146506
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 35),
146509
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(15, 26),
146512
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F1<U>(U)").
WithLocation
(17, 7),
146515
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F2<U>(U?)").
WithLocation
(17, 7),
146518
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B4<T>.F1<U>(U?)").
WithLocation
(19, 26),
146521
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 35),
146524
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B4<T>.F2<U>(U?)").
WithLocation
(20, 26),
146527
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 35),
146530
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(25, 26));
146568
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F1<U>(U)").
WithLocation
(7, 7),
146571
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F2<U>(U)").
WithLocation
(7, 7),
146574
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B2<T>.F1<U>(U?)").
WithLocation
(9, 26),
146577
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 35),
146580
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B2<T>.F2<U>(U?)").
WithLocation
(10, 26),
146583
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 35),
146586
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F1<U>(U)").
WithLocation
(17, 7),
146589
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F2<U>(U)").
WithLocation
(17, 7),
146592
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B4<T>.F1<U>(U?)").
WithLocation
(19, 26),
146595
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 35),
146598
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B4<T>.F2<U>(U?)").
WithLocation
(20, 26),
146601
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 35),
146604
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B5<T>.F1<U>(U)", "U", "U", "A<T?>.F1<U>(U)").
WithLocation
(24, 29),
146607
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B5<T>.F2<U>(U)", "U", "U", "A<T?>.F2<U>(U)").
WithLocation
(25, 29),
146610
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B6<T>.F1<U>(U)", "U", "U", "A<T?>.F1<U>(U)").
WithLocation
(29, 29),
146613
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B6<T>.F2<U>(U)", "U", "U", "A<T?>.F2<U>(U)").
WithLocation
(30, 29));
146651
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(5, 26),
146654
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F1<U>(U)").
WithLocation
(7, 7),
146657
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2<T>", "A<T>.F2<U>(U?)").
WithLocation
(7, 7),
146660
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B2<T>.F1<U>(U?)").
WithLocation
(9, 26),
146663
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 35),
146666
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B2<T>.F2<U>(U?)").
WithLocation
(10, 26),
146669
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 35),
146672
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(15, 26),
146675
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F1<U>(U)").
WithLocation
(17, 7),
146678
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4<T>", "A<T?>.F2<U>(U?)").
WithLocation
(17, 7),
146681
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B4<T>.F1<U>(U?)").
WithLocation
(19, 26),
146684
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 35),
146687
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B4<T>.F2<U>(U?)").
WithLocation
(20, 26),
146690
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 35),
146693
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(25, 26));
146731
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(5, 26),
146734
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2", "A<string>.F1<U>(U)").
WithLocation
(7, 7),
146737
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2", "A<string>.F2<U>(U?)").
WithLocation
(7, 7),
146740
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B2.F1<U>(U?)").
WithLocation
(9, 26),
146743
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 35),
146746
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B2.F2<U>(U?)").
WithLocation
(10, 26),
146749
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 35),
146752
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(15, 26),
146755
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4", "A<string?>.F1<U>(U)").
WithLocation
(17, 7),
146758
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4", "A<string?>.F2<U>(U?)").
WithLocation
(17, 7),
146761
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B4.F1<U>(U?)").
WithLocation
(19, 26),
146764
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 35),
146767
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B4.F2<U>(U?)").
WithLocation
(20, 26),
146770
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 35),
146773
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B5.F1<U>(U)", "U", "U", "A<string?>.F1<U>(U)").
WithLocation
(24, 29),
146776
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("u").
WithLocation
(25, 26),
146779
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B5.F2<U>(U)", "U", "U", "A<string?>.F2<U>(U?)").
WithLocation
(25, 29),
146782
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B6.F1<U>(U?)", "U", "U", "A<string?>.F1<U>(U)").
WithLocation
(29, 29),
146785
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B6.F2<U>(U?)", "U", "U", "A<string?>.F2<U>(U?)").
WithLocation
(30, 29));
146823
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2", "A<int>.F1<U>(U)").
WithLocation
(7, 7),
146826
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2", "A<int>.F2<U>(U)").
WithLocation
(7, 7),
146829
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B2.F1<U>(U?)").
WithLocation
(9, 26),
146832
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 35),
146835
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B2.F2<U>(U?)").
WithLocation
(10, 26),
146838
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 35),
146841
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4", "A<int?>.F1<U>(U)").
WithLocation
(17, 7),
146844
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B4").WithArguments("B4", "A<int?>.F2<U>(U)").
WithLocation
(17, 7),
146847
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B4.F1<U>(U?)").
WithLocation
(19, 26),
146850
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 35),
146853
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B4.F2<U>(U?)").
WithLocation
(20, 26),
146856
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 35),
146859
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B5.F1<U>(U)", "U", "U", "A<int?>.F1<U>(U)").
WithLocation
(24, 29),
146862
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B5.F2<U>(U)", "U", "U", "A<int?>.F2<U>(U)").
WithLocation
(25, 29),
146865
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B6.F1<U>(U)", "U", "U", "A<int?>.F1<U>(U)").
WithLocation
(29, 29),
146868
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("B6.F2<U>(U)", "U", "U", "A<int?>.F2<U>(U)").
WithLocation
(30, 29));
146922
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "F2").WithArguments("u", "void I<T>.F2<U>(U? u)").
WithLocation
(5, 15),
146925
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<T>").WithArguments("C2<T>", "I<T>.F2<U>(U?)").
WithLocation
(7, 15),
146928
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<T>").WithArguments("C2<T>", "I<T>.F1<U>(U)").
WithLocation
(7, 15),
146931
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F1").WithArguments("C2<T>.F1<U>(U?)").
WithLocation
(9, 15),
146934
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 24),
146937
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F2").WithArguments("C2<T>.F2<U>(U?)").
WithLocation
(10, 15),
146940
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 24),
146943
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(12, 17),
146946
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(14, 12),
146949
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(15, 12),
146952
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "F2").WithArguments("u", "void I<T?>.F2<U>(U? u)").
WithLocation
(15, 16),
146955
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<T?>").WithArguments("C4<T>", "I<T?>.F2<U>(U?)").
WithLocation
(17, 15),
146958
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<T?>").WithArguments("C4<T>", "I<T?>.F1<U>(U)").
WithLocation
(17, 15),
146961
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(17, 17),
146964
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(19, 12),
146967
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F1").WithArguments("C4<T>.F1<U>(U?)").
WithLocation
(19, 16),
146970
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 25),
146973
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(20, 12),
146976
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F2").WithArguments("C4<T>.F2<U>(U?)").
WithLocation
(20, 16),
146979
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 25),
146982
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(22, 17),
146985
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(24, 12),
146988
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(24, 37),
146991
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(25, 12),
146994
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "F2").WithArguments("u", "void I<T?>.F2<U>(U? u)").
WithLocation
(25, 16),
146997
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(25, 37),
147000
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(27, 17),
147003
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(29, 12),
147006
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(29, 22),
147009
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(29, 38),
147012
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(30, 12),
147015
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "U?").WithArguments("9.0").
WithLocation
(30, 22),
147018
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(30, 38));
147024
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "F2").WithArguments("u", "void I<T>.F2<U>(U? u)").
WithLocation
(5, 15),
147027
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<T>").WithArguments("C2<T>", "I<T>.F2<U>(U?)").
WithLocation
(7, 15),
147030
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<T>").WithArguments("C2<T>", "I<T>.F1<U>(U)").
WithLocation
(7, 15),
147033
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F1").WithArguments("C2<T>.F1<U>(U?)").
WithLocation
(9, 15),
147036
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 24),
147039
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F2").WithArguments("C2<T>.F2<U>(U?)").
WithLocation
(10, 15),
147042
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 24),
147045
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "F2").WithArguments("u", "void I<T?>.F2<U>(U? u)").
WithLocation
(15, 16),
147048
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<T?>").WithArguments("C4<T>", "I<T?>.F2<U>(U?)").
WithLocation
(17, 15),
147051
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<T?>").WithArguments("C4<T>", "I<T?>.F1<U>(U)").
WithLocation
(17, 15),
147054
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F1").WithArguments("C4<T>.F1<U>(U?)").
WithLocation
(19, 16),
147057
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 25),
147060
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F2").WithArguments("C4<T>.F2<U>(U?)").
WithLocation
(20, 16),
147063
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 25),
147066
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "F2").WithArguments("u", "void I<T?>.F2<U>(U? u)").
WithLocation
(25, 16));
147104
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "F2").WithArguments("u", "void I<string>.F2<U>(U? u)").
WithLocation
(5, 20),
147107
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<string>").WithArguments("C2", "I<string>.F2<U>(U?)").
WithLocation
(7, 12),
147110
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<string>").WithArguments("C2", "I<string>.F1<U>(U)").
WithLocation
(7, 12),
147113
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F1").WithArguments("C2.F1<U>(U?)").
WithLocation
(9, 20),
147116
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 29),
147119
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F2").WithArguments("C2.F2<U>(U?)").
WithLocation
(10, 20),
147122
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 29),
147125
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "F2").WithArguments("u", "void I<string?>.F2<U>(U? u)").
WithLocation
(15, 21),
147128
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<string?>").WithArguments("C4", "I<string?>.F2<U>(U?)").
WithLocation
(17, 12),
147131
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<string?>").WithArguments("C4", "I<string?>.F1<U>(U)").
WithLocation
(17, 12),
147134
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F1").WithArguments("C4.F1<U>(U?)").
WithLocation
(19, 21),
147137
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 30),
147140
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F2").WithArguments("C4.F2<U>(U?)").
WithLocation
(20, 21),
147143
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 30),
147146
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("C5.I<string?>.F1<U>(U)", "U", "U", "I<string?>.F1<U>(U)").
WithLocation
(24, 24),
147149
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "F2").WithArguments("u", "void I<string?>.F2<U>(U? u)").
WithLocation
(25, 21),
147152
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("C5.I<string?>.F2<U>(U)", "U", "U", "I<string?>.F2<U>(U?)").
WithLocation
(25, 24),
147155
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("C6.I<string?>.F1<U>(U?)", "U", "U", "I<string?>.F1<U>(U)").
WithLocation
(29, 24),
147158
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("C6.I<string?>.F2<U>(U?)", "U", "U", "I<string?>.F2<U>(U?)").
WithLocation
(30, 24));
147196
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<int>").WithArguments("C2", "I<int>.F2<U>(U)").
WithLocation
(7, 12),
147199
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<int>").WithArguments("C2", "I<int>.F1<U>(U)").
WithLocation
(7, 12),
147202
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F1").WithArguments("C2.F1<U>(U?)").
WithLocation
(9, 17),
147205
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(9, 26),
147208
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F2").WithArguments("C2.F2<U>(U?)").
WithLocation
(10, 17),
147211
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(10, 26),
147214
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<int?>").WithArguments("C4", "I<int?>.F2<U>(U)").
WithLocation
(17, 12),
147217
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<int?>").WithArguments("C4", "I<int?>.F1<U>(U)").
WithLocation
(17, 12),
147220
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F1").WithArguments("C4.F1<U>(U?)").
WithLocation
(19, 18),
147223
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(19, 27),
147226
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "F2").WithArguments("C4.F2<U>(U?)").
WithLocation
(20, 18),
147229
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "u").WithArguments("System.Nullable<T>", "T", "U").
WithLocation
(20, 27),
147232
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("C5.I<int?>.F1<U>(U)", "U", "U", "I<int?>.F1<U>(U)").
WithLocation
(24, 21),
147235
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("C5.I<int?>.F2<U>(U)", "U", "U", "I<int?>.F2<U>(U)").
WithLocation
(25, 21),
147238
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("C6.I<int?>.F1<U>(U)", "U", "U", "I<int?>.F1<U>(U)").
WithLocation
(29, 21),
147241
Diagnostic(ErrorCode.ERR_OverrideDefaultConstraintNotSatisfied, "U").WithArguments("C6.I<int?>.F2<U>(U)", "U", "U", "I<int?>.F2<U>(U)").
WithLocation
(30, 21));
147286
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(7, 9),
147289
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
147292
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(x)").
WithLocation
(9, 9),
147295
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
147298
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
147301
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
147304
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y)").
WithLocation
(13, 9),
147307
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9),
147310
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T))").
WithLocation
(15, 9),
147313
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?))").
WithLocation
(16, 9),
147316
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(default(T))").
WithLocation
(17, 9),
147319
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?))").
WithLocation
(18, 9));
147346
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
147349
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
147352
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
147355
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
147358
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9),
147361
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T))").
WithLocation
(15, 9),
147364
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?))").
WithLocation
(16, 9),
147367
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?))").
WithLocation
(18, 9));
147394
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(7, 9),
147397
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
147400
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(x)").
WithLocation
(9, 9),
147403
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
147406
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
147409
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
147412
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y)").
WithLocation
(13, 9),
147415
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9),
147418
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T))").
WithLocation
(15, 9),
147421
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?))").
WithLocation
(16, 9),
147424
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(default(T))").
WithLocation
(17, 9),
147427
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?))").
WithLocation
(18, 9));
147454
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1(y)").
WithLocation
(11, 9),
147457
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(y)").
WithLocation
(12, 9),
147460
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(y)").
WithLocation
(13, 9),
147463
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(y)").
WithLocation
(14, 9),
147466
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(default(T?))").
WithLocation
(16, 9),
147469
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(default(T?))").
WithLocation
(17, 9),
147472
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(default(T?))").
WithLocation
(18, 9));
147499
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
147502
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
147505
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
147508
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
147511
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9),
147514
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T))").
WithLocation
(15, 9),
147517
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?))").
WithLocation
(16, 9),
147520
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?))").
WithLocation
(18, 9));
147547
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
147550
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
147553
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
147556
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
147559
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9),
147562
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(string))").
WithLocation
(15, 9),
147565
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(string?))").
WithLocation
(16, 9),
147568
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(string?))").
WithLocation
(18, 9));
147595
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1(y)").
WithLocation
(11, 9),
147598
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(y)").
WithLocation
(12, 9),
147601
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(y)").
WithLocation
(13, 9),
147604
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(y)").
WithLocation
(14, 9),
147607
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(default(int?))").
WithLocation
(16, 9),
147610
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(default(int?))").
WithLocation
(17, 9),
147613
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(default(int?))").
WithLocation
(18, 9));
147662
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x).P").
WithLocation
(7, 9),
147665
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x).P").
WithLocation
(8, 9),
147668
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(x).P").
WithLocation
(9, 9),
147671
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x).P").
WithLocation
(10, 9),
147674
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y).P").
WithLocation
(11, 9),
147677
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y).P").
WithLocation
(12, 9),
147680
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y).P").
WithLocation
(13, 9),
147683
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y).P").
WithLocation
(14, 9),
147686
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T)).P").
WithLocation
(15, 9),
147689
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?)).P").
WithLocation
(16, 9),
147692
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(default(T)).P").
WithLocation
(17, 9),
147695
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?)).P").
WithLocation
(18, 9));
147722
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x).P").
WithLocation
(8, 9),
147725
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x).P").
WithLocation
(10, 9),
147728
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y).P").
WithLocation
(11, 9),
147731
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y).P").
WithLocation
(12, 9),
147734
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y).P").
WithLocation
(14, 9),
147737
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T)).P").
WithLocation
(15, 9),
147740
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?)).P").
WithLocation
(16, 9),
147743
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?)).P").
WithLocation
(18, 9));
147770
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x).P").
WithLocation
(7, 9),
147773
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x).P").
WithLocation
(8, 9),
147776
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(x).P").
WithLocation
(9, 9),
147779
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x).P").
WithLocation
(10, 9),
147782
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y).P").
WithLocation
(11, 9),
147785
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y).P").
WithLocation
(12, 9),
147788
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y).P").
WithLocation
(13, 9),
147791
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y).P").
WithLocation
(14, 9),
147794
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T)).P").
WithLocation
(15, 9),
147797
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?)).P").
WithLocation
(16, 9),
147800
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(default(T)).P").
WithLocation
(17, 9),
147803
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?)).P").
WithLocation
(18, 9));
147830
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1(y).P").
WithLocation
(11, 9),
147833
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(y).P").
WithLocation
(12, 9),
147836
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(y).P").
WithLocation
(13, 9),
147839
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(y).P").
WithLocation
(14, 9),
147842
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(default(T?)).P").
WithLocation
(16, 9),
147845
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(default(T?)).P").
WithLocation
(17, 9),
147848
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(default(T?)).P").
WithLocation
(18, 9));
147875
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x).P").
WithLocation
(8, 9),
147878
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x).P").
WithLocation
(10, 9),
147881
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y).P").
WithLocation
(11, 9),
147884
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y).P").
WithLocation
(12, 9),
147887
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y).P").
WithLocation
(14, 9),
147890
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T)).P").
WithLocation
(15, 9),
147893
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?)).P").
WithLocation
(16, 9),
147896
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?)).P").
WithLocation
(18, 9));
147923
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x).P").
WithLocation
(8, 9),
147926
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x).P").
WithLocation
(10, 9),
147929
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y).P").
WithLocation
(11, 9),
147932
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y).P").
WithLocation
(12, 9),
147935
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y).P").
WithLocation
(14, 9),
147938
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(string)).P").
WithLocation
(15, 9),
147941
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(string?)).P").
WithLocation
(16, 9),
147944
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(string?)).P").
WithLocation
(18, 9));
147971
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1(y).P").
WithLocation
(11, 9),
147974
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(y).P").
WithLocation
(12, 9),
147977
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(y).P").
WithLocation
(13, 9),
147980
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(y).P").
WithLocation
(14, 9),
147983
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(default(int?)).P").
WithLocation
(16, 9),
147986
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(default(int?)).P").
WithLocation
(17, 9),
147989
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(default(int?)).P").
WithLocation
(18, 9));
148031
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(7, 9),
148034
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
148037
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(x)").
WithLocation
(9, 9),
148040
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<T>", "I<T?>", "t", "T A.F3<T>(I<T?> t)").
WithLocation
(9, 12),
148043
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
148046
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<T>", "I<T?>", "t", "T? A.F4<T>(I<T?> t)").
WithLocation
(10, 12),
148049
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
148052
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
148055
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y)").
WithLocation
(13, 9),
148058
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9));
148081
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
148084
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<T>", "I<T?>", "t", "T A.F3<T>(I<T?> t)").
WithLocation
(9, 12),
148087
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
148090
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<T>", "I<T?>", "t", "T? A.F4<T>(I<T?> t)").
WithLocation
(10, 12),
148093
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
148096
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
148099
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9));
148122
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(7, 9),
148125
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
148128
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(x)").
WithLocation
(9, 9),
148131
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<T>", "I<T?>", "t", "T A.F3<T>(I<T?> t)").
WithLocation
(9, 12),
148134
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
148137
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<T>", "I<T?>", "t", "T? A.F4<T>(I<T?> t)").
WithLocation
(10, 12),
148140
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
148143
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
148146
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y)").
WithLocation
(13, 9),
148149
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9));
148172
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1(y)").
WithLocation
(11, 9),
148175
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(y)").
WithLocation
(12, 9),
148178
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(y)").
WithLocation
(13, 9),
148181
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(y)").
WithLocation
(14, 9));
148204
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
148207
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<T>", "I<T?>", "t", "T A.F3<T>(I<T?> t)").
WithLocation
(9, 12),
148210
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
148213
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<T>", "I<T?>", "t", "T? A.F4<T>(I<T?> t)").
WithLocation
(10, 12),
148216
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
148219
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
148222
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9));
148245
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
148248
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<string>", "I<string?>", "t", "string A.F3<string>(I<string?> t)").
WithLocation
(9, 12),
148251
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
148254
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x").WithArguments("I<string>", "I<string?>", "t", "string? A.F4<string>(I<string?> t)").
WithLocation
(10, 12),
148257
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
148260
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
148263
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9));
148286
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1(y)").
WithLocation
(11, 9),
148289
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(y)").
WithLocation
(12, 9),
148292
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(y)").
WithLocation
(13, 9),
148295
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(y)").
WithLocation
(14, 9));
148341
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(7, 9),
148344
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
148347
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(x)").
WithLocation
(9, 9),
148350
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
148353
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
148356
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
148359
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y)").
WithLocation
(13, 9),
148362
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9),
148365
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T))").
WithLocation
(15, 9),
148368
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?))").
WithLocation
(16, 9),
148371
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(default(T))").
WithLocation
(17, 9),
148374
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?))").
WithLocation
(18, 9));
148401
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
148404
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
148407
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
148410
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
148413
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y)").
WithLocation
(13, 9),
148416
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9),
148419
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T))").
WithLocation
(15, 9),
148422
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?))").
WithLocation
(16, 9),
148425
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(default(T))").
WithLocation
(17, 9),
148428
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?))").
WithLocation
(18, 9));
148455
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(7, 9),
148458
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
148461
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(x)").
WithLocation
(9, 9),
148464
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
148467
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
148470
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
148473
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y)").
WithLocation
(13, 9),
148476
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9),
148479
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T))").
WithLocation
(15, 9),
148482
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?))").
WithLocation
(16, 9),
148485
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(default(T))").
WithLocation
(17, 9),
148488
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?))").
WithLocation
(18, 9));
148515
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F1(y)").
WithLocation
(11, 9),
148518
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(y)").
WithLocation
(12, 9),
148521
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(y)").
WithLocation
(13, 9),
148524
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(y)").
WithLocation
(14, 9),
148527
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F2(default(T?))").
WithLocation
(16, 9),
148530
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F3(default(T?))").
WithLocation
(17, 9),
148533
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "F4(default(T?))").
WithLocation
(18, 9));
148560
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(8, 9),
148563
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(10, 9),
148566
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(11, 9),
148569
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(12, 9),
148572
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y)").
WithLocation
(13, 9),
148575
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(14, 9),
148578
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T))").
WithLocation
(15, 9),
148581
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T?))").
WithLocation
(16, 9),
148584
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(default(T))").
WithLocation
(17, 9),
148587
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T?))").
WithLocation
(18, 9));
148633
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(8, 9),
148636
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(9, 9),
148639
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(x)").
WithLocation
(10, 9),
148642
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(11, 9),
148645
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(12, 9),
148648
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(13, 9),
148651
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y)").
WithLocation
(14, 9),
148654
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(15, 9),
148657
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T))").
WithLocation
(16, 9),
148660
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T))").
WithLocation
(17, 9),
148663
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(default(T))").
WithLocation
(18, 9),
148666
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T))").
WithLocation
(19, 9));
148694
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(x)").
WithLocation
(8, 9),
148697
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(9, 9),
148700
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(x)").
WithLocation
(10, 9),
148703
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(11, 9),
148706
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(12, 9),
148709
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(13, 9),
148712
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(y)").
WithLocation
(14, 9),
148715
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(15, 9),
148718
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T))").
WithLocation
(16, 9),
148721
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T))").
WithLocation
(17, 9),
148724
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F3(default(T))").
WithLocation
(18, 9),
148727
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T))").
WithLocation
(19, 9));
148755
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(9, 9),
148758
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(11, 9),
148761
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(12, 9),
148764
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(13, 9),
148767
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(15, 9),
148770
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(T))").
WithLocation
(16, 9),
148773
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(T))").
WithLocation
(17, 9),
148776
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(T))").
WithLocation
(19, 9));
148804
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(x)").
WithLocation
(9, 9),
148807
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(x)").
WithLocation
(11, 9),
148810
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(y)").
WithLocation
(12, 9),
148813
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(y)").
WithLocation
(13, 9),
148816
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(y)").
WithLocation
(15, 9),
148819
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1(default(string))").
WithLocation
(16, 9),
148822
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F2(default(string))").
WithLocation
(17, 9),
148825
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F4(default(string))").
WithLocation
(19, 9));
148882
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t").
WithLocation
(13, 26),
148885
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t").
WithLocation
(14, 26),
148888
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t").
WithLocation
(15, 26),
148891
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t").
WithLocation
(16, 26),
148894
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t").
WithLocation
(17, 26),
148897
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t").
WithLocation
(18, 26));
148923
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F1").WithArguments("B1.F1<T>()", "A1.F1<T>()", "T").
WithLocation
(4, 24),
148926
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F1").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(4, 24),
148929
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F2").WithArguments("B1.F2<T>()", "A1.F2<T>()", "T").
WithLocation
(5, 24),
148932
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F2").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(5, 24),
148935
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F3").WithArguments("B1.F3<T>()", "A1.F3<T>()", "T").
WithLocation
(6, 24),
148938
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F3").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(6, 24),
148941
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F4").WithArguments("B1.F4<T>()", "A1.F4<T>()", "T").
WithLocation
(7, 24),
148944
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F4").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(7, 24),
148947
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F5").WithArguments("B1.F5<T>()", "A1.F5<T>()", "T").
WithLocation
(8, 24),
148950
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F5").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(8, 24),
148953
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "F6").WithArguments("B1.F6<T>()", "A1.F6<T>()", "T").
WithLocation
(9, 24),
148956
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F6").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(9, 24),
148959
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2", "A2.F5<T>(T)").
WithLocation
(11, 7),
148962
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2", "A2.F4<T>(T)").
WithLocation
(11, 7),
148965
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2", "A2.F6<T>(T)").
WithLocation
(11, 7),
148968
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2", "A2.F1<T>(T)").
WithLocation
(11, 7),
148971
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2", "A2.F3<T>(T)").
WithLocation
(11, 7),
148974
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B2").WithArguments("B2", "A2.F2<T>(T)").
WithLocation
(11, 7),
148977
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F1").WithArguments("B2.F1<T>(T?)").
WithLocation
(13, 26),
148980
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "t").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(13, 35),
148983
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F2").WithArguments("B2.F2<T>(T?)").
WithLocation
(14, 26),
148986
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "t").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(14, 35),
148989
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F3").WithArguments("B2.F3<T>(T?)").
WithLocation
(15, 26),
148992
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "t").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(15, 35),
148995
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F4").WithArguments("B2.F4<T>(T?)").
WithLocation
(16, 26),
148998
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "t").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(16, 35),
149001
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F5").WithArguments("B2.F5<T>(T?)").
WithLocation
(17, 26),
149004
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "t").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(17, 35),
149007
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "F6").WithArguments("B2.F6<T>(T?)").
WithLocation
(18, 26),
149010
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "t").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(18, 35));
149089
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t").
WithLocation
(13, 26),
149092
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t").
WithLocation
(14, 26),
149095
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t").
WithLocation
(15, 26),
149098
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t").
WithLocation
(16, 26),
149101
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t").
WithLocation
(17, 26),
149104
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t").
WithLocation
(18, 26));
149171
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void Program.F<T1>(T1 t)").
WithLocation
(9, 15),
149174
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(14, 15),
149177
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(19, 15),
149180
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void Program.F<T5>(T5 t)").
WithLocation
(29, 15));
149199
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1)").
WithLocation
(4, 27),
149202
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2)").
WithLocation
(5, 44),
149205
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3)").
WithLocation
(6, 45),
149208
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4)").
WithLocation
(7, 46));
149235
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T1?)").
WithLocation
(4, 27),
149238
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T2?)").
WithLocation
(5, 44),
149241
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T3?)").
WithLocation
(6, 45),
149244
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default(T4?)").
WithLocation
(7, 46));
149297
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "default").
WithLocation
(10, 30),
149300
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(14, 9),
149303
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(15, 9),
149306
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x3").
WithLocation
(16, 9),
149309
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x4").
WithLocation
(17, 9),
149312
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(25, 9),
149315
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(26, 9),
149318
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y1").
WithLocation
(27, 9),
149321
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y2").
WithLocation
(28, 9));
149352
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("t", "void C<T>.F1(T t)").
WithLocation
(11, 19),
149355
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)y").
WithLocation
(12, 19),
149358
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(T)y").WithArguments("t", "void C<T>.F1(T t)").
WithLocation
(12, 19),
149361
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "(T?)y").WithArguments("t", "void C<T>.F1(T t)").
WithLocation
(13, 19),
149364
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "void C<T>.F1(T t)").
WithLocation
(14, 19),
149367
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default(T)").WithArguments("t", "void C<T>.F1(T t)").
WithLocation
(15, 19));
149399
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y1").WithArguments("System.Collections.Generic.IEnumerable<T?>", "System.Collections.Generic.IEnumerable<T>", "e", "void C<T>.F1(IEnumerable<T> e)").
WithLocation
(10, 12),
149402
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y2").WithArguments("System.Collections.Generic.List<T?>", "System.Collections.Generic.IEnumerable<T>", "e", "void C<T>.F1(IEnumerable<T> e)").
WithLocation
(17, 12));
149436
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("t", "void C<T>.F(T t)").
WithLocation
(11, 15),
149439
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("t", "void C<T>.F(T t)").
WithLocation
(16, 15),
149442
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o").WithArguments("t", "void C<T>.F(T t)").
WithLocation
(21, 15));
149475
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "iy").WithArguments("t", "void C<T>.F(T t)").
WithLocation
(20, 15));
149519
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x2 : ref y2").WithArguments("T", "T?").
WithLocation
(15, 25),
149522
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x2 : ref y2").WithArguments("T", "T?").
WithLocation
(15, 25),
149525
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y2 : ref x2").WithArguments("T?", "T").
WithLocation
(16, 25),
149528
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y2 : ref x2").WithArguments("T", "T?").
WithLocation
(16, 25),
149531
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref x4 : ref y4").WithArguments("I<T>", "I<T?>").
WithLocation
(29, 28),
149534
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "b ? ref y4 : ref x4").WithArguments("I<T?>", "I<T>").
WithLocation
(30, 28));
149584
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y2").
WithLocation
(13, 16),
149587
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x2").
WithLocation
(13, 24),
149590
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x4").
WithLocation
(21, 20),
149593
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "y6").WithArguments("I<T?>", "I<T>", "x", "void Program.FB<T>(ref I<T> x, ref I<T?> y)").
WithLocation
(29, 16),
149596
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x6").WithArguments("I<T>", "I<T?>", "y", "void Program.FB<T>(ref I<T> x, ref I<T?> y)").
WithLocation
(29, 24),
149599
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "x8").WithArguments("I<T>", "I<T?>", "x", "void Program.FB<T?>(ref I<T?> x, ref I<T?> y)").
WithLocation
(37, 20));
149623
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(5, 41),
149626
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(8, 41),
149629
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 42));
149648
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(5, 41),
149651
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(8, 41),
149654
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 42));
149673
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(5, 41),
149676
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(8, 41),
149679
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 42));
149698
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(5, 41),
149701
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(8, 41),
149704
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 42));
149724
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(6, 41),
149727
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 41),
149730
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(10, 42));
149750
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(6, 41),
149753
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 41),
149756
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(10, 42));
149777
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(7, 26));
149797
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(4, 33),
149800
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(6, 34));
149815
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(6, 50));
149830
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(4, 50),
149833
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(6, 51));
149848
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(6, 51));
149863
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(6, 52));
149887
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(6, 41),
149890
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(9, 41),
149893
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(10, 42));
149917
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(8, 48),
149920
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 49));
149939
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(5, 49),
149942
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(8, 49),
149945
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 50));
149964
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(8, 50),
149967
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 51));
149987
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 44),
149990
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(10, 45));
150010
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(6, 45),
150013
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(9, 45),
150016
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(10, 46));
150048
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(5, 56),
150051
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(6, 56),
150054
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(7, 57),
150057
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(12, 56),
150060
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(13, 58),
150063
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(14, 58),
150066
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(15, 59));
150098
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(7, 60),
150101
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(8, 59),
150104
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(9, 60),
150107
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(10, 60),
150110
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(11, 61),
150113
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(13, 61),
150116
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(15, 62),
150119
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(16, 61),
150122
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(17, 62),
150125
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(18, 62),
150128
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "v").
WithLocation
(19, 63));
150173
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("u", "void A<T>.F<U>(U u)").
WithLocation
(7, 26),
150176
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<T>.F<U?>").WithArguments("A<T>.F<U>(U)", "T", "U", "U?").
WithLocation
(8, 16),
150179
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<T>.F<U?>").WithArguments("A<T>.F<U>(U)", "T", "U", "U?").
WithLocation
(9, 16),
150182
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<T>.F").WithArguments("A<T>.F<U>(U)", "T", "U", "U?").
WithLocation
(11, 9),
150185
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<T>.F<U>").WithArguments("A<T>.F<U>(U)", "T", "U", "U").
WithLocation
(15, 16),
150188
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<T>.F<U>").WithArguments("A<T>.F<U>(U)", "T", "U", "U").
WithLocation
(16, 16),
150191
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("u", "void A<T>.F<U>(U u)").
WithLocation
(16, 26),
150194
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<T>.F<U?>").WithArguments("A<T>.F<U>(U)", "T", "U", "U?").
WithLocation
(17, 16),
150197
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<T>.F<U?>").WithArguments("A<T>.F<U>(U)", "T", "U", "U?").
WithLocation
(18, 16),
150200
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<T>.F").WithArguments("A<T>.F<U>(U)", "T", "U", "U").
WithLocation
(19, 16),
150203
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "A<T>.F").WithArguments("A<T>.F<U>(U)", "T", "U", "U?").
WithLocation
(20, 16));
150356
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T1)").
WithLocation
(10, 9),
150359
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T1?)").
WithLocation
(11, 9),
150362
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T2)").
WithLocation
(12, 9),
150365
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T2?)").
WithLocation
(13, 9),
150368
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T3)").
WithLocation
(14, 9),
150371
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T3?)").
WithLocation
(15, 9),
150374
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T4)").
WithLocation
(16, 9),
150377
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T4?)").
WithLocation
(17, 9),
150380
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T5)").
WithLocation
(18, 9),
150383
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "default(T5?)").
WithLocation
(19, 9));
150423
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t1").
WithLocation
(7, 16),
150426
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t2").
WithLocation
(12, 16),
150429
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t3").
WithLocation
(17, 16),
150432
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t4").
WithLocation
(22, 16),
150435
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t5").
WithLocation
(27, 16));
150491
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y1").
WithLocation
(8, 16),
150494
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y2").
WithLocation
(14, 16),
150497
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y3").
WithLocation
(20, 16),
150500
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y4").
WithLocation
(26, 16),
150503
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "y5").
WithLocation
(32, 16));
150559
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t1").
WithLocation
(6, 16),
150562
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t2").
WithLocation
(10, 16),
150565
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t3").
WithLocation
(14, 16),
150568
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t4").
WithLocation
(18, 16),
150571
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "(T?)t5").
WithLocation
(22, 16));
150628
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F1").
WithLocation
(4, 23),
150631
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F6").
WithLocation
(9, 23));
150657
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F1").
WithLocation
(4, 24),
150660
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F2").
WithLocation
(5, 24),
150663
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F3").
WithLocation
(6, 24),
150666
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F4").
WithLocation
(7, 24),
150669
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F5").
WithLocation
(8, 24),
150672
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "F6").
WithLocation
(9, 24));
150729
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t").
WithLocation
(14, 26),
150732
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t").
WithLocation
(19, 26)
150790
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t").
WithLocation
(14, 26),
150793
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t").
WithLocation
(15, 26),
150796
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F3").WithArguments("t").
WithLocation
(16, 26),
150799
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F4").WithArguments("t").
WithLocation
(17, 26),
150802
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F5").WithArguments("t").
WithLocation
(18, 26),
150805
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F6").WithArguments("t").
WithLocation
(19, 26));
150835
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y1, x1 }[0]").
WithLocation
(6, 23),
150838
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x1, y1 }[0]").
WithLocation
(7, 16),
150841
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y2, x2 }[0]").
WithLocation
(11, 23),
150844
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x2, y2 }[0]").
WithLocation
(12, 16),
150847
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { y3, x3 }[0]").
WithLocation
(16, 23),
150850
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "new[] { x3, y3 }[0]").
WithLocation
(17, 16));
150867
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(3, 23),
150870
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 24),
150873
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(4, 23),
150876
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 24),
150879
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 44),
150882
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(5, 23),
150885
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 24));
150891
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(3, 24),
150894
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 24),
150897
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 44),
150900
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(5, 24));
151066
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F2").WithArguments("t").
WithLocation
(5, 26));
151091
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(6, 30));
151117
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "x").
WithLocation
(6, 34));
151144
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default(U)").
WithLocation
(6, 45),
151147
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default(U)").
WithLocation
(7, 46));
151177
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u").
WithLocation
(6, 49),
151180
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u").
WithLocation
(9, 49),
151183
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "u").
WithLocation
(10, 50));
151213
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(7, 16),
151216
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(12, 16),
151219
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(17, 16));
151225
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(6, 15),
151228
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(7, 16),
151231
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(T)o").
WithLocation
(11, 15),
151234
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(12, 16),
151237
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(U)t").
WithLocation
(16, 15),
151240
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "u").
WithLocation
(17, 16));
151337
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "i").
WithLocation
(10, 13),
151340
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(34, 13)
151374
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s.field").
WithLocation
(12, 9),
151377
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2.field").
WithLocation
(15, 9),
151380
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s3.field").
WithLocation
(18, 9),
151383
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s4.field").
WithLocation
(21, 9)
151435
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("null").
WithLocation
(4, 30),
151438
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(_, null)").
WithLocation
(8, 35),
151441
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(36, 9)
151518
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "t").
WithLocation
(8, 16)
151583
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local2").WithArguments("local2").
WithLocation
(11, 14),
151586
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(11, 26)
151612
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local2").WithArguments("local2").
WithLocation
(11, 14),
151615
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(11, 26)
151671
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "request.Name").
WithLocation
(12, 20),
151672
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "await request.GetName().ConfigureAwait(false)").
WithLocation
(13, 20)
151706
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field").WithArguments("C.field", "null").
WithLocation
(5, 20),
151709
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field").
WithLocation
(15, 9));
151741
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "await request.GetName().NoSync()").
WithLocation
(20, 20)
151783
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "prop").
WithLocation
(11, 9)
151817
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F").
WithLocation
(8, 9)
151851
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.F").
WithLocation
(8, 9)
151873
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(7, 15),
151876
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "t").WithArguments("", "delegate*<T, void>").
WithLocation
(8, 14),
151879
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "ptr2()").
WithLocation
(9, 9)
151906
Diagnostic(ErrorCode.ERR_BadArity, "C<System.Nullable<T?> x").WithArguments("C<T>", "type", "1").
WithLocation
(11, 32),
151909
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(11, 54),
151912
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "x").WithArguments("x").
WithLocation
(11, 54),
151915
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(">").
WithLocation
(11, 55),
151918
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(11, 55),
151921
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "").WithArguments("System.Nullable<T>", "T", "T?").
WithLocation
(11, 55),
151924
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(11, 55)
151949
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments("B.M1<T>(T??)").
WithLocation
(11, 26),
151952
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T?").
WithLocation
(11, 52),
151955
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(11, 52)
151980
Diagnostic(ErrorCode.WRN_NewNotRequired, "M1").WithArguments("B.M1<T>(T??)").
WithLocation
(11, 21),
151983
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(11, 43),
151986
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(11, 47)
152121
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 18));
152402
Diagnostic(ErrorCode.ERR_SyntaxError, "=").WithArguments("=>").
WithLocation
(9, 15),
152405
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(9, 15),
152408
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(10, 13));
152476
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return b;").WithArguments("s1", "true").
WithLocation
(12, 9),
152479
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return (bool)true;").WithArguments("s1", "true").
WithLocation
(18, 9)
152518
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return b;").WithArguments("s1", "true").
WithLocation
(12, 9),
152521
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return b && true;").WithArguments("s1", "true").
WithLocation
(19, 9)
152554
Diagnostic(ErrorCode.WRN_ParameterConditionallyDisallowsNull, "return !M1(out s1);").WithArguments("s1", "true").
WithLocation
(15, 9)
152618
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b").
WithLocation
(8, 9));
152654
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "y").WithArguments("y", "object A.this[object? x, object y]").
WithLocation
(7, 22));
152687
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "Test").WithArguments("Test").
WithLocation
(12, 15),
152690
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Select").WithArguments("System.Linq.Enumerable.Select<TSource, TResult>(System.Collections.Generic.IEnumerable<TSource>, System.Func<TSource, TResult>)").
WithLocation
(14, 11)
152764
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "string s1").
WithLocation
(16, 36),
152767
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s2").
WithLocation
(23, 20),
152770
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "T s1").
WithLocation
(40, 36),
152773
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s2").
WithLocation
(47, 20));
152924
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(8, 9),
152927
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(11, 9),
152930
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "FTC<TQ?>").WithArguments("C.FTC<TC>(TC)", "TC", "TQ").
WithLocation
(13, 11),
152933
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(16, 9),
152936
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "FTCO<TQ?>").WithArguments("C.FTCO<TCO>(TCO)", "TCO", "TQ").
WithLocation
(18, 20),
152939
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(28, 9),
152942
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "T C.FT<T>(T t)").
WithLocation
(30, 26),
152945
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(31, 9),
152948
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "FTC<T>").WithArguments("C.FTC<TC>(TC)", "TC", "T").
WithLocation
(33, 11),
152951
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "default").WithArguments("t", "T C.FTO<T>(T t)").
WithLocation
(35, 27),
152954
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(36, 9),
152957
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "FTCO<T>").WithArguments("C.FTCO<TCO>(TCO)", "TCO", "T").
WithLocation
(38, 11),
152960
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(46, 9),
152963
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(48, 27),
152966
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(51, 28),
152969
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(54, 28),
152972
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(57, 29),
152975
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "FTC<TO>").WithArguments("C.FTC<TC>(TC)", "TC", "TO").
WithLocation
(76, 11),
152978
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "FTCO<TO>").WithArguments("C.FTCO<TCO>(TCO)", "TCO", "TO").
WithLocation
(86, 11),
152981
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x0").
WithLocation
(100, 9),
152984
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(111, 14)
153042
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 24),
153045
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Property").WithArguments("property", "Property").
WithLocation
(13, 19),
153048
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Property2").WithArguments("property", "Property2").
WithLocation
(16, 18)
153078
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 24),
153081
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Property").WithArguments("property", "Property").
WithLocation
(13, 24),
153084
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Property2").WithArguments("property", "Property2").
WithLocation
(16, 18)
153271
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M").
WithLocation
(10, 24)
153294
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M").
WithLocation
(10, 24)
153317
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M").WithArguments("t").
WithLocation
(10, 26)
153340
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M").WithArguments("t").
WithLocation
(10, 26)
153363
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "M").WithArguments("T? D.M<T>()", "T I.M<T>()").
WithLocation
(10, 15)
153386
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnImplicitImplementation, "M").WithArguments("T? D.M<T>()", "T I.M<T>()").
WithLocation
(10, 15)
153409
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, "F").
WithLocation
(10, 23)
153432
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, "F").
WithLocation
(10, 23)
153469
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "FieldItem").WithArguments("C.AuditedItem<T>", "T", "object?").
WithLocation
(13, 19),
153472
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "FieldItem").WithArguments("C.AuditedItem<T>", "T", "object?").
WithLocation
(13, 19),
153475
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "FieldItem").WithArguments("C.AuditedItem<T>", "T", "object?").
WithLocation
(13, 19)
153505
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithDifferencesInBaseList, "I3").WithArguments("I<object>", "I<dynamic>", "I3").
WithLocation
(6, 11),
153508
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I<dynamic>").WithArguments("I3", "I<dynamic>").
WithLocation
(6, 16),
153511
Diagnostic(ErrorCode.ERR_AmbigMember, "Item").WithArguments("I<dynamic>.Item", "I<object>.Item").
WithLocation
(12, 15)
153542
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "I3").WithArguments("I<(int notA, int notB)>", "I<(int a, int b)>", "I3").
WithLocation
(6, 11),
153545
Diagnostic(ErrorCode.ERR_AmbigMember, "Item").WithArguments("I<(int a, int b)>.Item", "I<(int notA, int notB)>.Item").
WithLocation
(12, 15)
153580
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "I3").WithArguments("I<(object notA, object notB)>", "I<(object a, object b)>", "I3").
WithLocation
(9, 11),
153583
Diagnostic(ErrorCode.ERR_AmbigMember, "Item").WithArguments("I<(object a, object b)>.Item", "I<(object notA, object notB)>.Item").
WithLocation
(16, 15)
154107
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(17, 18)
154149
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(17, 18)
154191
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(15, 18)
154230
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "I3").WithArguments("I<object>", "I3").
WithLocation
(8, 11)
154296
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "I3").WithArguments("I<object>", "I3").
WithLocation
(8, 11)
154332
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(9, 13)
154367
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(13, 13)
154439
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "value2").WithArguments("T?", "T").
WithLocation
(9, 20)
154528
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "f1").WithArguments("object f1()", "System.Func<object>").
WithLocation
(9, 27),
154531
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "null").
WithLocation
(15, 43)
154600
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "M(objectQuestion => objectQuestion)").
WithLocation
(15, 9),
154603
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "objectQuestion =>").WithArguments("objectQuestion", "lambda expression", "Del<object?>").
WithLocation
(15, 11)
154638
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(object? o) =>").WithArguments("o", "lambda expression", "System.Action<object>").
WithLocation
(11, 14),
154641
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "(IEnumerable<object?> e) =>").WithArguments("e", "lambda expression", "System.Action<System.Collections.Generic.IEnumerable<object>>").
WithLocation
(15, 14)
154660
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "([DisallowNull] string? x) =>").WithArguments("x", "lambda expression", "System.Func<string?, string>").
WithLocation
(5, 27)
154698
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field").
WithLocation
(15, 30),
154701
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field").
WithLocation
(21, 31)
154739
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field").
WithLocation
(15, 30)
154774
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field").
WithLocation
(15, 17),
154777
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field").
WithLocation
(19, 17)
154834
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 27),
154837
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 28),
154840
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 36),
154843
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.F1").
WithLocation
(10, 9),
154846
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 41),
154849
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.F1").
WithLocation
(14, 9)
154886
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 17),
154889
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 26),
154892
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.F1").
WithLocation
(11, 9)
154948
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "C1<string>.C1(C2<string> t)").
WithLocation
(10, 17),
154951
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").
WithLocation
(13, 26),
154954
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""b"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(13, 41),
154957
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.F2.F3").
WithLocation
(15, 9),
154960
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(18, 26),
154963
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(18, 44),
154966
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new C2<string>(""d1"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(20, 42),
154969
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new C2<string>(""d2"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(20, 69),
154972
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").
WithLocation
(22, 41),
154975
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""e"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(22, 56),
154978
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e.F2.F3").
WithLocation
(24, 9)
155013
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 21),
155016
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 35),
155019
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 31)
155068
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").
WithLocation
(10, 22),
155071
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").
WithLocation
(12, 37),
155074
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").
WithLocation
(15, 32),
155077
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").
WithLocation
(17, 48)
155126
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(10, 22),
155129
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(12, 37),
155132
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, @"new() { GetC2(s), GetC2(""c1"")}").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(15, 14),
155135
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "C1<string?>").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(17, 22)
155173
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 28),
155176
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 29),
155179
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 37),
155182
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Value.F1").
WithLocation
(10, 9),
155185
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 42),
155188
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.Value.F1").
WithLocation
(14, 9)
155225
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 17),
155228
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 26),
155231
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Value.F1").
WithLocation
(11, 9)
155287
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "C1<string>.C1(C2<string> t)").
WithLocation
(10, 17),
155290
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").
WithLocation
(13, 26),
155293
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""b"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(13, 41),
155296
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Value.F2.F3").
WithLocation
(15, 9),
155299
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(18, 26),
155302
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(18, 44),
155305
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new C2<string>(""d1"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(20, 59),
155308
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new C2<string>(""d2"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(20, 86),
155311
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").
WithLocation
(22, 57),
155314
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""e"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(22, 72),
155317
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e.Value.F2.F3").
WithLocation
(24, 9)
155352
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 21),
155355
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 50),
155358
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 32)
155407
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").
WithLocation
(10, 22),
155410
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").
WithLocation
(12, 53),
155413
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").
WithLocation
(15, 32),
155416
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").
WithLocation
(17, 65)
155465
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(10, 22),
155468
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(12, 53),
155471
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, @"new() { GetC2(s), GetC2(""c1"")}").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(15, 14),
155474
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "C1<string?>").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(17, 39)
155509
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "default(string)").WithArguments("C<string>.Add<U>(U)", "string", "U", "string?").
WithLocation
(7, 21),
155512
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "default(string)").WithArguments("C<string>.Add<U>(U)", "string", "U", "string?").
WithLocation
(9, 50),
155515
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "default(string)").WithArguments("C<string>.Add<U>(U)", "string", "U", "string?").
WithLocation
(10, 32)
155555
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 37),
155558
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.F1").
WithLocation
(10, 9),
155561
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(13, 42),
155564
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.F1").
WithLocation
(14, 9)
155603
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 27),
155606
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.F1").
WithLocation
(11, 9)
155664
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").
WithLocation
(13, 28),
155667
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""b"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(13, 43),
155670
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.F2.F3").
WithLocation
(15, 9),
155673
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(18, 28),
155676
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(18, 46),
155679
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new C2<string>(""d1"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(20, 44),
155682
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"new C2<string>(""d2"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(20, 71),
155685
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "GetC2(s)").WithArguments("C2<string?>", "C2<string>").
WithLocation
(22, 43),
155688
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, @"GetC2(""e"")").WithArguments("C2<string>", "C2<string?>").
WithLocation
(22, 58),
155691
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e.F2.F3").
WithLocation
(24, 9)
155726
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(7, 23),
155729
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(9, 37),
155732
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 33)
155781
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").
WithLocation
(10, 24),
155784
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C1<string>.Add(C2<string> t)").
WithLocation
(12, 39),
155787
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, @"GetC2(""c1"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").
WithLocation
(15, 34),
155790
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, @"GetC2(""c2"")").WithArguments("C2<string>", "C2<string?>", "t", "void C1<string?>.Add(C2<string?> t)").
WithLocation
(17, 50)
155839
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(10, 24),
155842
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "GetC2(s)").WithArguments("C2<string?>", "C2<string>", "t", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(12, 39),
155845
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, @"new(dd) { GetC2(s), GetC2(""c1"")}").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(15, 14),
155848
Diagnostic(ErrorCode.WRN_NullabilityMismatchInArgument, "C1<string?>").WithArguments("C1<string?>", "C1<string>", "c", "void C.Add<string>(C1<string> c, C2<string> t)").
WithLocation
(17, 22)
155887
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(6, 28),
155890
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.F1").
WithLocation
(7, 9),
155893
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 33),
155896
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.F1").
WithLocation
(11, 9),
155899
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(14, 32),
155902
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "d.F1").
WithLocation
(15, 9)
155958
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").
WithLocation
(9, 36),
155961
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z2.P2").
WithLocation
(10, 9)
156009
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x2").WithArguments("x", "void ITest28.Add(ITest28 x)").
WithLocation
(9, 31)
156059
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new (1) { P1 = x2, P2 = y2 }").WithArguments("ITest28", "1").
WithLocation
(9, 22),
156062
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z2.P2").
WithLocation
(10, 9)
156106
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "M1").WithArguments("CL0<string?> C.M1(CL0<string> x)", "C.D1").
WithLocation
(14, 24),
156109
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "M2").WithArguments("x", "CL0<string> C.M2(CL0<string> x)", "C.D1").
WithLocation
(15, 24),
156112
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "M3").WithArguments("CL0<string> C.M3(CL0<string?> x)", "C.D2").
WithLocation
(24, 24),
156115
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, "M4").WithArguments("x", "CL0<string?> C.M4(CL0<string?> x)", "C.D2").
WithLocation
(25, 24)
156144
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 13),
156147
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "x").
WithLocation
(9, 28));
156174
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, "d2").WithArguments("ref readonly string? D<string?>.Invoke()", "D<string>").
WithLocation
(9, 28)
156249
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p2").
WithLocation
(16, 9),
156252
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p2").
WithLocation
(23, 9),
156255
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p2").
WithLocation
(33, 9),
156258
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p2").
WithLocation
(40, 9)
156307
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { M(o) }").WithArguments("D<object>").
WithLocation
(7, 11),
156310
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Item").WithArguments("D<T>.Item", "").
WithLocation
(15, 14)
156333
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { }").
WithLocation
(7, 18),
156336
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { null }").
WithLocation
(8, 18),
156339
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { x => x }").
WithLocation
(9, 18)
156378
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("bool?", "bool").
WithLocation
(7, 13),
156381
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x").
WithLocation
(9, 13),
156384
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("bool?", "bool").
WithLocation
(12, 13),
156387
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x").
WithLocation
(12, 17)
156436
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "first").
WithLocation
(13, 13),
156439
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "second").
WithLocation
(14, 13),
156442
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "first").
WithLocation
(22, 16),
156445
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "second").
WithLocation
(22, 41),
156448
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "first").
WithLocation
(30, 18),
156451
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "second").
WithLocation
(30, 43)
156487
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "first").
WithLocation
(8, 13),
156490
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "second").
WithLocation
(9, 13),
156493
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "first").
WithLocation
(13, 16),
156496
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "second").
WithLocation
(13, 41),
156499
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "first").
WithLocation
(18, 21),
156502
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "second").
WithLocation
(18, 46)
156551
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c1 < c2").WithArguments("<", "C?", "C").
WithLocation
(8, 13),
156554
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c2 < c1").WithArguments("<", "C", "C?").
WithLocation
(9, 13)
156596
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "c1").
WithLocation
(14, 13),
156599
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "c2").
WithLocation
(25, 13)
156625
Diagnostic(ErrorCode.ERR_NoSuchMember, "B").WithArguments("S", "B").
WithLocation
(12, 24)
156651
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "lam").WithArguments("lam").
WithLocation
(7, 30));
156791
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Bar").
WithLocation
(16, 36),
156794
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Bar").
WithLocation
(29, 36),
156797
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Bar").
WithLocation
(44, 36),
156800
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x.Bar").
WithLocation
(57, 36)
156825
Diagnostic(ErrorCode.ERR_SwitchArmSubsumed, "true").
WithLocation
(10, 13));
156871
Diagnostic(ErrorCode.ERR_SwitchCaseSubsumed, "true").
WithLocation
(12, 18));
Semantics\NullableReferenceTypesVsPatterns.cs (166)
76
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 13)
102
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(12, 13)
129
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 13)
156
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 13)
179
Diagnostic(ErrorCode.ERR_ConstantExpected, "nonConstant").
WithLocation
(7, 18),
182
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(9, 13)
211
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 17)
240
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(10, 17)
279
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 13)
320
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 13),
323
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(9, 13)
361
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 13)
470
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(11, 13),
473
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(22, 13));
522
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "i").
WithLocation
(11, 13),
525
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "i").
WithLocation
(23, 13));
556
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s").
WithLocation
(17, 13),
559
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "s.Value.field").
WithLocation
(18, 13)
585
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 13)
611
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(7, 13)
650
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "x").WithArguments("o", "void C.F(object o)").
WithLocation
(18, 19));
702
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(19, 9),
705
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(23, 14),
708
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x3").
WithLocation
(29, 9));
770
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(23, 9),
773
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(29, 14),
776
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t3").
WithLocation
(35, 9));
809
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(10, 9));
845
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x1").
WithLocation
(12, 9),
848
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(23, 9));
908
Diagnostic(ErrorCode.ERR_UseDefViolation, "y1").WithArguments("y1").
WithLocation
(11, 13),
911
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(21, 13),
914
Diagnostic(ErrorCode.ERR_UseDefViolation, "y2").WithArguments("y2").
WithLocation
(22, 13),
917
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(27, 14),
920
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x3").
WithLocation
(33, 13),
923
Diagnostic(ErrorCode.ERR_UseDefViolation, "y3").WithArguments("y3").
WithLocation
(34, 13),
926
Diagnostic(ErrorCode.ERR_UseDefViolation, "y4").WithArguments("y4").
WithLocation
(46, 13));
966
Diagnostic(ErrorCode.ERR_UseDefViolation, "y1").WithArguments("y1").
WithLocation
(7, 9),
969
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x2").
WithLocation
(12, 9),
972
Diagnostic(ErrorCode.ERR_UseDefViolation, "y2").WithArguments("y2").
WithLocation
(13, 9),
975
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(17, 14),
978
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x3").
WithLocation
(19, 9),
981
Diagnostic(ErrorCode.ERR_UseDefViolation, "y3").WithArguments("y3").
WithLocation
(20, 9),
984
Diagnostic(ErrorCode.ERR_UseDefViolation, "y4").WithArguments("y4").
WithLocation
(27, 9));
1026
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t1").
WithLocation
(15, 9),
1029
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t2").
WithLocation
(25, 9)
1119
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Value").
WithLocation
(14, 13));
1144
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "t.Item2").
WithLocation
(11, 13));
1219
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(14, 27),
1222
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o").
WithLocation
(28, 27),
1225
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "q").
WithLocation
(58, 17));
1326
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(null, _)").
WithLocation
(18, 15),
1329
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(null, _)").
WithLocation
(27, 15),
1332
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(not null, null)").
WithLocation
(36, 15),
1335
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(null, _)").
WithLocation
(46, 15),
1338
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(null, _)").
WithLocation
(55, 15),
1341
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(not null, null)").
WithLocation
(64, 15),
1344
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNullWithWhen, "switch").WithArguments("null").
WithLocation
(73, 15));
1391
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(null, _)").
WithLocation
(12, 25),
1394
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(null, _)").
WithLocation
(18, 25),
1397
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(null, _)").
WithLocation
(24, 25),
1400
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(null, \"\")").
WithLocation
(30, 25));
1455
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(7, 13)
1475
Diagnostic(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, "2 is 3").
WithLocation
(6, 13));
1524
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n").
WithLocation
(11, 9),
1527
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next").
WithLocation
(16, 9),
1530
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next.Next").
WithLocation
(21, 9));
1564
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n").
WithLocation
(11, 9),
1567
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next").
WithLocation
(16, 9),
1570
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next.Next").
WithLocation
(21, 9));
1604
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n").
WithLocation
(11, 9),
1607
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next").
WithLocation
(16, 9),
1610
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next.Next").
WithLocation
(21, 9));
1652
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n").
WithLocation
(15, 9),
1655
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next").
WithLocation
(22, 9),
1658
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next.Next").
WithLocation
(29, 9));
1691
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.s2").
WithLocation
(11, 9),
1694
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.s1").
WithLocation
(16, 26));
1728
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next").
WithLocation
(11, 13),
1731
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next.Next").
WithLocation
(16, 13),
1734
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next.Next.Next").
WithLocation
(21, 13));
1771
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next").
WithLocation
(11, 13),
1774
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next.Next").
WithLocation
(17, 13),
1777
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next.Next.Next").
WithLocation
(23, 13));
1814
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next").
WithLocation
(11, 13),
1817
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next.Next").
WithLocation
(17, 13),
1820
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Next.Next.Next").
WithLocation
(23, 13));
1865
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "n").
WithLocation
(7, 22),
1868
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Value.s1").
WithLocation
(13, 23),
1871
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "n").
WithLocation
(14, 23),
1874
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Value.s1").
WithLocation
(21, 24),
1877
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "n").
WithLocation
(22, 24),
1880
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "n.Value.s2").
WithLocation
(28, 26),
1883
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "n").
WithLocation
(31, 26));
1975
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(33, 15),
1978
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(34, 15),
1981
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<string?>", "I<string>").
WithLocation
(39, 37),
1984
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "y").WithArguments("I<string?>", "I<string>").
WithLocation
(40, 29)
2045
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.otherField").
WithLocation
(47, 9)
2074
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.c.c").
WithLocation
(13, 17),
2077
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.c.c.c").
WithLocation
(13, 17));
2111
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c.c.c").
WithLocation
(19, 17)
2218
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(8, 9),
2221
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 9),
2224
Diagnostic(ErrorCode.WRN_IsPatternAlways, "x is not null or _").WithArguments("C").
WithLocation
(18, 13),
2227
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(19, 13),
2230
Diagnostic(ErrorCode.WRN_IsPatternAlways, "x is null or _").WithArguments("C").
WithLocation
(24, 13),
2233
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(25, 13),
2236
Diagnostic(ErrorCode.WRN_IsPatternAlways, "x is _ or not null").WithArguments("C").
WithLocation
(30, 13),
2239
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(31, 13),
2242
Diagnostic(ErrorCode.WRN_IsPatternAlways, "x is _ or null").WithArguments("C").
WithLocation
(36, 13),
2245
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(37, 13),
2248
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(43, 13),
2251
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(50, 9),
2254
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(56, 9),
2257
Diagnostic(ErrorCode.WRN_NullableValueTypeMayBeNull, "x").
WithLocation
(62, 9),
2260
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(67, 13)
2289
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e.F.F.F.F").
WithLocation
(14, 9));
2343
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "e.P.P.P.P").
WithLocation
(14, 9));
2392
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "action").
WithLocation
(8, 29)
2414
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 51),
2417
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").
WithLocation
(8, 80)
2439
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(8, 57),
2442
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s?.ToString()").
WithLocation
(8, 86)
2504
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => s.ToString()").WithArguments("lambda expression", "object").
WithLocation
(9, 21),
2507
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 27),
2510
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => s?.ToString()").WithArguments("lambda expression", "object").
WithLocation
(10, 22));
2516
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 27));
2544
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(11, 34),
2547
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "s1?.ToString()").
WithLocation
(12, 35)
2572
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "@bool switch { true => a, false => b }").WithArguments("t2", "I C.M1<I>(I t1, I t2)").
WithLocation
(9, 15)
2591
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(3, 1)
2713
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(9, 18),
2716
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(16, 18),
2719
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(23, 18),
2722
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(29, 23),
2725
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(36, 23),
2728
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(43, 23),
2731
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(_, null)").
WithLocation
(54, 20),
2734
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(62, 28),
2737
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(_, (_, null))").
WithLocation
(66, 25),
2740
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(68, 28),
2743
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull, "switch").WithArguments("(_, (_, null))").
WithLocation
(72, 25),
2746
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "a").
WithLocation
(74, 28)
2774
Diagnostic(ErrorCode.ERR_ReturnExpected, "Test").WithArguments("Class2.Test()").
WithLocation
(11, 17),
2777
Diagnostic(ErrorCode.ERR_IllegalStatement, @"test switch { { Inner1: """" } => """" }").
WithLocation
(14, 9),
2780
Diagnostic(ErrorCode.ERR_BadTypeReference, "Inner1").WithArguments("Inner1", "Class1.Inner1").
WithLocation
(14, 25),
2783
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "Inner1").WithArguments("Inner1").
WithLocation
(14, 25)
2813
Diagnostic(ErrorCode.ERR_ReturnExpected, "Test").WithArguments("Class2.Test()").
WithLocation
(13, 17),
2816
Diagnostic(ErrorCode.ERR_IllegalStatement, @"test switch { { Next.Inner1: """" } => """" }").
WithLocation
(16, 9),
2819
Diagnostic(ErrorCode.ERR_BadTypeReference, "Inner1").WithArguments("Inner1", "Class1.Inner1").
WithLocation
(16, 30),
2822
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "Inner1").WithArguments("Inner1").
WithLocation
(16, 30)
2850
Diagnostic(ErrorCode.ERR_ReturnExpected, "Test").WithArguments("Class2.Test()").
WithLocation
(11, 17),
2853
Diagnostic(ErrorCode.ERR_IllegalStatement, @"test switch { { Method: """" } => """" }").
WithLocation
(14, 9),
2856
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "Method").WithArguments("Method").
WithLocation
(14, 25)
2892
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(15, 17)
2928
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(15, 17)
2958
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(11, 9)
2987
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(10, 9)
3057
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z.Element").
WithLocation
(10, 9)
3134
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(10, 9)
3168
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(9, 9)
3203
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(10, 9)
3230
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(9, 5)
3257
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(9, 5)
3288
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "z").
WithLocation
(8, 5)
Semantics\NullableTests.cs (14)
65
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(7, 11),
68
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "string").WithArguments("System.Nullable<T>", "T", "string").
WithLocation
(8, 14)
76
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 11),
79
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "string").WithArguments("System.Nullable<T>", "T", "string").
WithLocation
(8, 14));
100
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(7, 15),
103
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "string").WithArguments("System.Nullable<T>", "T", "string").
WithLocation
(8, 18)
2054
Diagnostic(ErrorCode.WRN_AlwaysNull, "xn0 - null").WithArguments("int?").
WithLocation
(9, 28)
2129
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "(bool?)new S()").WithArguments("S.implicit operator bool(S)").
WithLocation
(4, 5),
2132
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "new S()").WithArguments("S.implicit operator bool(S)").
WithLocation
(6, 5)
2154
Diagnostic(ErrorCode.ERR_NameNotInContext, "i").WithArguments("i").
WithLocation
(6, 23),
2157
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(":").
WithLocation
(6, 24),
2160
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 24));
2182
Diagnostic(ErrorCode.ERR_PatternNullableType, "A").WithArguments("int").
WithLocation
(7, 18));
2204
Diagnostic(ErrorCode.ERR_PatternNullableType, "A").WithArguments("int").
WithLocation
(7, 18));
Semantics\ObjectAndCollectionInitializerTests.cs (102)
887
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, @"""str""").WithArguments("MyList<string>", "Add").
WithLocation
(7, 51)
936
Diagnostic(ErrorCode.ERR_BadSKknown, @"""""").WithArguments("Add", "field", "method").
WithLocation
(12, 27),
939
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Add").WithArguments("A.Add", "null").
WithLocation
(8, 27)
982
Diagnostic(ErrorCode.ERR_BadSKknown, @"""""").WithArguments("Add", "property", "method").
WithLocation
(12, 27)
1023
Diagnostic(ErrorCode.ERR_BadEventUsage, "z").WithArguments("MemberInitializerTest.z", "MemberInitializerTest").
WithLocation
(11, 57),
1026
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "z").WithArguments("MemberInitializerTest.z").
WithLocation
(5, 20)
1064
Diagnostic(ErrorCode.ERR_NoSuchMember, "x").WithArguments("int", "x").
WithLocation
(6, 39)
1111
Diagnostic(ErrorCode.ERR_ObjectRequired, "x").WithArguments("MemberInitializerTest.x").
WithLocation
(8, 68)
1168
Diagnostic(ErrorCode.ERR_BadAccess, "x").WithArguments("MemberInitializerTest.x").
WithLocation
(13, 57),
1171
Diagnostic(ErrorCode.ERR_BadAccess, "y").WithArguments("MemberInitializerTest.y").
WithLocation
(13, 64),
1174
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("MemberInitializerTest.x", "0").
WithLocation
(4, 19)
1203
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new I() { }").WithArguments("I").
WithLocation
(7, 27)
1263
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "Prop").WithArguments("Test.Prop").
WithLocation
(15, 40)
1302
Diagnostic(ErrorCode.ERR_UseDefViolation, "m").WithArguments("m").
WithLocation
(7, 79)
1344
Diagnostic(ErrorCode.ERR_AssgReadonly, "x").
WithLocation
(12, 57)
1386
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "y").WithArguments("MemberInitializerTest.y").
WithLocation
(12, 57),
1389
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("MemberInitializerTest.x", "0").
WithLocation
(4, 25)
1426
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("X").
WithLocation
(6, 31)
1469
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Bar").WithArguments("Bar").
WithLocation
(11, 31)
1506
Diagnostic(ErrorCode.ERR_NoSuchMember, "x").WithArguments("T", "x").
WithLocation
(6, 37),
1509
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T() { x = 0 }").WithArguments("T").
WithLocation
(6, 27)
1556
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "1").WithArguments("Gen<int>.Add<U>(int)").
WithLocation
(21, 45)
1598
Diagnostic(ErrorCode.ERR_ObjectRequired, "y").WithArguments("MemberInitializerTest.y").
WithLocation
(7, 62),
1601
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "y++").
WithLocation
(7, 62)
1648
Diagnostic(ErrorCode.ERR_ObjectRequired, "Goo").WithArguments("MemberInitializerTest.Goo()").
WithLocation
(8, 64),
1651
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "Goo() = new MemberInitializerTest()").
WithLocation
(8, 64)
1709
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "Goo().x = 1").
WithLocation
(10, 46)
1753
Diagnostic(ErrorCode.ERR_MemberAlreadyInitialized, "x").WithArguments("x").
WithLocation
(7, 64)
1795
Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "Goo").WithArguments("Goo").
WithLocation
(7, 57)
1833
Diagnostic(ErrorCode.ERR_StaticMemberInObjectInitializer, "x").WithArguments("X.x").
WithLocation
(8, 37)
1879
Diagnostic(ErrorCode.ERR_StaticMemberInObjectInitializer, "x").WithArguments("MemberInitializerTest.x").
WithLocation
(9, 57),
1882
Diagnostic(ErrorCode.ERR_StaticMemberInObjectInitializer, "Prop").WithArguments("MemberInitializerTest.Prop").
WithLocation
(9, 64)
1933
Diagnostic(ErrorCode.ERR_ReadonlyValueTypeInObjectInitializer, "x").WithArguments("MemberInitializerTest.x", "MemberInitializerTest2").
WithLocation
(8, 57)
1992
Diagnostic(ErrorCode.ERR_ValueTypePropertyInObjectInitializer, "Prop").WithArguments("MemberInitializerTest.Prop", "MemberInitializerTest2").
WithLocation
(9, 64)
2104
Diagnostic(ErrorCode.ERR_EmptyElementInitializer, "{ }").
WithLocation
(11, 47),
2107
Diagnostic(ErrorCode.ERR_EmptyElementInitializer, "{ }").
WithLocation
(12, 62)
2151
Diagnostic(ErrorCode.ERR_InitializerAddHasWrongSignature, "1").WithArguments("Test.Add(int)").
WithLocation
(11, 43)
2230
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, "{ 1 }").WithArguments("B").
WithLocation
(6, 24),
2233
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, @"{ 1, ""hello"" }").WithArguments("A").
WithLocation
(7, 24)
2284
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, "{ 1 }").WithArguments("B").
WithLocation
(8, 34)
2321
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, "{ y++ }").WithArguments("MemberInitializerTest").
WithLocation
(7, 53),
2324
Diagnostic(ErrorCode.ERR_ObjectRequired, "y").WithArguments("MemberInitializerTest.y").
WithLocation
(7, 55)
2365
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, "{ Goo() = new MemberInitializerTest() }").WithArguments("MemberInitializerTest").
WithLocation
(7, 55),
2368
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "Goo() = new MemberInitializerTest()").
WithLocation
(7, 57),
2371
Diagnostic(ErrorCode.ERR_ObjectRequired, "Goo").WithArguments("MemberInitializerTest.Goo()").
WithLocation
(7, 57)
2411
Diagnostic(ErrorCode.ERR_BadArgTypesForCollectionAdd, @"""hi""").WithArguments("TestClass.Add(int)").
WithLocation
(14, 49),
2414
Diagnostic(ErrorCode.ERR_BadArgType, @"""hi""").WithArguments("1", "string", "int").
WithLocation
(14, 49)
2458
Diagnostic(ErrorCode.ERR_InitializerAddHasParamModifiers, "1").WithArguments("Test.Add(ref int)").
WithLocation
(11, 43)
2530
Diagnostic(ErrorCode.ERR_InitializerAddHasParamModifiers, @"new MyClass { tree = ""maple"" }").WithArguments("MyList<MyClass>.Add(ref MyClass)").
WithLocation
(35, 66),
2533
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "_list").WithArguments("MyList<T>._list", "null").
WithLocation
(5, 13)
2564
Diagnostic(ErrorCode.ERR_ObjectOrCollectionInitializerWithDelegateCreation, "new D<int>(GenericMethod<int>) { }").
WithLocation
(8, 33)
2740
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "1").WithArguments("B", "Add").
WithLocation
(9, 27),
2743
Diagnostic(ErrorCode.ERR_BadArgTypesForCollectionAdd, "1").WithArguments("C.Add(string)").
WithLocation
(10, 27),
2746
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "string").
WithLocation
(10, 27),
2749
Diagnostic(ErrorCode.ERR_AmbigCall, "{ 1, 2 }").WithArguments("D.Add(int, float)", "D.Add(float, int)").
WithLocation
(11, 27),
2752
Diagnostic(ErrorCode.ERR_BadAccess, "1").WithArguments("E.Add(int)").
WithLocation
(12, 27)
2804
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "{ 1 }").
WithLocation
(10, 47),
2807
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(10, 56),
2810
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "{ x = 1 }").
WithLocation
(10, 54)
2857
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(9, 13),
2860
Diagnostic(ErrorCode.ERR_RbraceExpected, ";").
WithLocation
(9, 29),
2863
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Dictionary<object, object>").WithArguments("Dictionary<,>").
WithLocation
(6, 31),
2866
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, @"{""s"", 1 }").
WithLocation
(8, 13),
2869
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(9, 9),
2872
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "var").
WithLocation
(9, 9)
2906
Diagnostic(ErrorCode.ERR_RbraceExpected, "{").
WithLocation
(6, 39),
2909
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(6, 39),
2912
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(6, 58),
2915
Diagnostic(ErrorCode.ERR_UnexpectedSemicolon, ";").
WithLocation
(6, 59),
2918
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(8, 1),
2921
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "List<int>").WithArguments("List<>").
WithLocation
(6, 23),
2924
Diagnostic(ErrorCode.ERR_EmptyElementInitializer, "{ ").
WithLocation
(6, 37)
2951
Diagnostic(ErrorCode.ERR_NotConstantExpression, "new int { }").WithArguments("Program.value").
WithLocation
(4, 33)
2991
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(9, 6),
2994
Diagnostic(ErrorCode.ERR_ValueTypePropertyInObjectInitializer, "Count").WithArguments("System.Collections.Generic.List<int>.Count", "int").
WithLocation
(8, 43)
3074
Diagnostic(ErrorCode.ERR_ReadonlyValueTypeInObjectInitializer, "StructField").WithArguments("N.C.StructField", "N.Struct").
WithLocation
(19, 17),
3077
Diagnostic(ErrorCode.ERR_ValueTypePropertyInObjectInitializer, "StructProp").WithArguments("N.C.StructProp", "N.Struct").
WithLocation
(20, 17),
3080
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("N.Struct.x", "0").
WithLocation
(4, 32),
3083
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("N.Class.x", "0").
WithLocation
(5, 30)
3160
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "{").WithArguments("{").
WithLocation
(9, 46),
3163
Diagnostic(ErrorCode.ERR_RbraceExpected, "{").
WithLocation
(9, 46),
3166
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(9, 46),
3169
Diagnostic(ErrorCode.ERR_IdentifierExpected, "3").
WithLocation
(9, 69),
3172
Diagnostic(ErrorCode.ERR_SemicolonExpected, "3").
WithLocation
(9, 69),
3175
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(9, 71),
3178
Diagnostic(ErrorCode.ERR_UnexpectedSemicolon, ";").
WithLocation
(9, 72),
3181
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(11, 1)
3257
Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i").
WithLocation
(16, 13),
3260
Diagnostic(ErrorCode.ERR_UseDefViolation, "j").WithArguments("j").
WithLocation
(20, 13)
3307
Diagnostic(ErrorCode.ERR_PartialMethodInExpressionTree, "1").
WithLocation
(15, 56),
3310
Diagnostic(ErrorCode.ERR_PartialMethodInExpressionTree, "new C().M(1)").
WithLocation
(16, 38)
3420
Diagnostic(ErrorCode.ERR_ValueTypePropertyInObjectInitializer, "A").WithArguments("B.A", "A").
WithLocation
(47, 31)
3545
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IEnumerable<int>").WithArguments("Base", "System.Collections.Generic.IEnumerable<int>.GetEnumerator()").
WithLocation
(5, 14),
3548
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "IEnumerable<int>").WithArguments("Base", "System.Collections.IEnumerable.GetEnumerator()").
WithLocation
(5, 14),
3551
Diagnostic(ErrorCode.ERR_BadAccess, "Empty").WithArguments("X.Add(string)").
WithLocation
(17, 32)
3801
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "a").WithArguments("C.a").
WithLocation
(4, 11));
3822
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "a").WithArguments("C.a").
WithLocation
(4, 12));
3961
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new I() { 1, 2 }").WithArguments("I").
WithLocation
(8, 15),
3964
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(8, 31)
4036
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "I").
WithLocation
(8, 27),
4039
Diagnostic(ErrorCode.ERR_NoImplicitConv, "2").WithArguments("int", "I").
WithLocation
(8, 30),
4042
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(8, 33)
Semantics\OperatorTests.cs (125)
1304
Diagnostic(ErrorCode.WRN_EqualityOpWithoutEquals, "S").WithArguments("S").
WithLocation
(3, 8),
1307
Diagnostic(ErrorCode.WRN_EqualityOpWithoutGetHashCode, "S").WithArguments("S").
WithLocation
(3, 8)
1352
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "new C() + new B()").WithArguments("+", "C", "B").
WithLocation
(16, 25)
1552
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "x + y").WithArguments("+", "D<object>.C", "D<dynamic>.C").
WithLocation
(16, 27)
1939
Diagnostic(ErrorCode.WRN_AlwaysNull, "new Q<int>?() + new int?()").WithArguments("int?").
WithLocation
(37, 18),
1942
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "str").WithArguments("S", "str").
WithLocation
(11, 53)
2425
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "a += b").WithArguments("int?", "int").
WithLocation
(6, 19)
2948
Diagnostic(ErrorCode.ERR_BadIncDecRetType, "--").
WithLocation
(10, 30)
2973
Diagnostic(ErrorCode.ERR_BadUnaryOp, "!1").WithArguments("!", "int").
WithLocation
(7, 12),
2976
Diagnostic(ErrorCode.ERR_BadUnaryOp, "b++").WithArguments("++", "bool").
WithLocation
(8, 9),
2979
Diagnostic(ErrorCode.ERR_NameNotInContext, "error").WithArguments("error").
WithLocation
(9, 9)
3099
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "c.ReadOnly").WithArguments("C.ReadOnly").
WithLocation
(17, 9),
3102
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "c.WriteOnly").WithArguments("C.WriteOnly").
WithLocation
(18, 9),
3105
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "i32 += i64").WithArguments("long", "int").
WithLocation
(34, 9),
3108
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "d += c").WithArguments("C", "C.D").
WithLocation
(39, 9));
5177
Diagnostic(ErrorCode.ERR_AmbigUDConv, "b2 ?? a2").WithArguments("B.implicit operator A(B)", "A.implicit operator A(B)", "B", "A").
WithLocation
(8, 18));
5647
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "c2 is Outer<long>.C").WithArguments("Outer<long>.C").
WithLocation
(16, 13),
5650
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "s1 is Outer<T>.S").WithArguments("Outer<T>.S").
WithLocation
(18, 13),
5653
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "s2 is Outer<int>.S").WithArguments("Outer<int>.S").
WithLocation
(23, 13),
5656
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "s2 is Outer<long>.S").WithArguments("Outer<long>.S").
WithLocation
(24, 13),
5659
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "e1 is Outer<T>.E").WithArguments("Outer<T>.E").
WithLocation
(26, 13),
5662
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "e2 is Outer<int>.E").WithArguments("Outer<int>.E").
WithLocation
(31, 13),
5665
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "e2 is Outer<long>.E").WithArguments("Outer<long>.E").
WithLocation
(32, 13));
5684
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "c is int").WithArguments("int").
WithLocation
(6, 16)
5715
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "s2 is Outer<T[]>.S").WithArguments("Outer<T[]>.S").
WithLocation
(11, 13));
5766
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "e1 is Enum").WithArguments("System.Enum").
WithLocation
(11, 13),
5769
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "e2 is Enum").WithArguments("System.Enum").
WithLocation
(12, 13),
5772
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "0 is Enum").WithArguments("System.Enum").
WithLocation
(13, 13),
5775
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "i is Enum").WithArguments("System.Enum").
WithLocation
(14, 13),
5779
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "e1 is ValueType").WithArguments("System.ValueType").
WithLocation
(19, 13),
5782
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "e2 is ValueType").WithArguments("System.ValueType").
WithLocation
(20, 13),
5785
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "0 is ValueType").WithArguments("System.ValueType").
WithLocation
(21, 13),
5788
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "i is ValueType").WithArguments("System.ValueType").
WithLocation
(22, 13),
5791
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "ts is ValueType").WithArguments("System.ValueType").
WithLocation
(25, 13),
5795
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "e1 is Object").WithArguments("object").
WithLocation
(27, 13),
5798
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "e2 is Object").WithArguments("object").
WithLocation
(28, 13),
5801
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "0 is Object").WithArguments("object").
WithLocation
(29, 13),
5804
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "i is Object").WithArguments("object").
WithLocation
(30, 13),
5807
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "ts is Object").WithArguments("object").
WithLocation
(33, 13));
6253
Diagnostic(ErrorCode.ERR_IdentityConversion, "(T1 fst, T2 snd)").
WithLocation
(6, 41));
6274
Diagnostic(ErrorCode.ERR_ConversionWithBase, "ValueType").WithArguments("(T1, T2).explicit operator System.ValueType((T1, T2))").
WithLocation
(6, 41));
6810
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, ">>>").WithArguments("op_UnsignedRightShift").
WithLocation
(64, 30)
8851
Diagnostic(ErrorCode.ERR_BadBinaryOps, "1 - Color.Red").WithArguments("-", "int", "Color").
WithLocation
(7, 11)
8965
Diagnostic(ErrorCode.ERR_MustHaveOpTF, "x && y").WithArguments("B.operator &(B, B)", "B").
WithLocation
(18, 13),
8968
Diagnostic(ErrorCode.ERR_MustHaveOpTF, "x || y").WithArguments("A<object>.operator |(A<object>, A<object>)", "A<object>").
WithLocation
(21, 13));
9718
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - c").WithArguments("-", "TestEnum", "int").
WithLocation
(26, 15),
9721
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum", "long").
WithLocation
(27, 15),
9724
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - g").WithArguments("-", "TestEnum", "int").
WithLocation
(28, 15),
9727
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - h").WithArguments("-", "TestEnum", "long").
WithLocation
(29, 15),
9730
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c - x").WithArguments("-", "int", "TestEnum").
WithLocation
(30, 15),
9733
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long", "TestEnum").
WithLocation
(31, 15),
9736
Diagnostic(ErrorCode.ERR_BadBinaryOps, "g - x").WithArguments("-", "int", "TestEnum").
WithLocation
(32, 15),
9739
Diagnostic(ErrorCode.ERR_BadBinaryOps, "h - x").WithArguments("-", "long", "TestEnum").
WithLocation
(33, 15),
9742
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - c").WithArguments("-", "TestEnum?", "int").
WithLocation
(44, 15),
9745
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum?", "long").
WithLocation
(45, 15),
9748
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - g").WithArguments("-", "TestEnum?", "int").
WithLocation
(46, 15),
9751
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - h").WithArguments("-", "TestEnum?", "long").
WithLocation
(47, 15),
9754
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c - x").WithArguments("-", "int", "TestEnum?").
WithLocation
(48, 15),
9757
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long", "TestEnum?").
WithLocation
(49, 15),
9760
Diagnostic(ErrorCode.ERR_BadBinaryOps, "g - x").WithArguments("-", "int", "TestEnum?").
WithLocation
(50, 15),
9763
Diagnostic(ErrorCode.ERR_BadBinaryOps, "h - x").WithArguments("-", "long", "TestEnum?").
WithLocation
(51, 15),
9766
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - c").WithArguments("-", "TestEnum", "int?").
WithLocation
(62, 15),
9769
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum", "long?").
WithLocation
(63, 15),
9772
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - g").WithArguments("-", "TestEnum", "int?").
WithLocation
(64, 15),
9775
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - h").WithArguments("-", "TestEnum", "long?").
WithLocation
(65, 15),
9778
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c - x").WithArguments("-", "int?", "TestEnum").
WithLocation
(66, 15),
9781
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long?", "TestEnum").
WithLocation
(67, 15),
9784
Diagnostic(ErrorCode.ERR_BadBinaryOps, "g - x").WithArguments("-", "int?", "TestEnum").
WithLocation
(68, 15),
9787
Diagnostic(ErrorCode.ERR_BadBinaryOps, "h - x").WithArguments("-", "long?", "TestEnum").
WithLocation
(69, 15),
9790
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - c").WithArguments("-", "TestEnum?", "int?").
WithLocation
(80, 15),
9793
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum?", "long?").
WithLocation
(81, 15),
9796
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - g").WithArguments("-", "TestEnum?", "int?").
WithLocation
(82, 15),
9799
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - h").WithArguments("-", "TestEnum?", "long?").
WithLocation
(83, 15),
9802
Diagnostic(ErrorCode.ERR_BadBinaryOps, "c - x").WithArguments("-", "int?", "TestEnum?").
WithLocation
(84, 15),
9805
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long?", "TestEnum?").
WithLocation
(85, 15),
9808
Diagnostic(ErrorCode.ERR_BadBinaryOps, "g - x").WithArguments("-", "int?", "TestEnum?").
WithLocation
(86, 15),
9811
Diagnostic(ErrorCode.ERR_BadBinaryOps, "h - x").WithArguments("-", "long?", "TestEnum?").
WithLocation
(87, 15),
9814
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum", "long").
WithLocation
(95, 15),
9817
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long", "TestEnum").
WithLocation
(96, 15),
9820
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum?", "long").
WithLocation
(104, 15),
9823
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long", "TestEnum?").
WithLocation
(105, 15),
9826
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - (long)1").WithArguments("-", "TestEnum", "long").
WithLocation
(112, 15),
9829
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(long)1 - x").WithArguments("-", "long", "TestEnum").
WithLocation
(113, 15),
9832
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - (long)1").WithArguments("-", "TestEnum?", "long").
WithLocation
(120, 15),
9835
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(long)1 - x").WithArguments("-", "long", "TestEnum?").
WithLocation
(121, 15)
10225
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum", "long").
WithLocation
(24, 15),
10228
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - h").WithArguments("-", "TestEnum", "long").
WithLocation
(25, 15),
10231
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long", "TestEnum").
WithLocation
(26, 15),
10234
Diagnostic(ErrorCode.ERR_BadBinaryOps, "h - x").WithArguments("-", "long", "TestEnum").
WithLocation
(27, 15),
10237
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum?", "long").
WithLocation
(36, 15),
10240
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - h").WithArguments("-", "TestEnum?", "long").
WithLocation
(37, 15),
10243
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long", "TestEnum?").
WithLocation
(38, 15),
10246
Diagnostic(ErrorCode.ERR_BadBinaryOps, "h - x").WithArguments("-", "long", "TestEnum?").
WithLocation
(39, 15),
10249
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum", "long?").
WithLocation
(48, 15),
10252
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - h").WithArguments("-", "TestEnum", "long?").
WithLocation
(49, 15),
10255
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long?", "TestEnum").
WithLocation
(50, 15),
10258
Diagnostic(ErrorCode.ERR_BadBinaryOps, "h - x").WithArguments("-", "long?", "TestEnum").
WithLocation
(51, 15),
10261
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum?", "long?").
WithLocation
(60, 15),
10264
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - h").WithArguments("-", "TestEnum?", "long?").
WithLocation
(61, 15),
10267
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long?", "TestEnum?").
WithLocation
(62, 15),
10270
Diagnostic(ErrorCode.ERR_BadBinaryOps, "h - x").WithArguments("-", "long?", "TestEnum?").
WithLocation
(63, 15),
10273
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum", "long").
WithLocation
(71, 15),
10276
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long", "TestEnum").
WithLocation
(72, 15),
10279
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - d").WithArguments("-", "TestEnum?", "long").
WithLocation
(80, 15),
10282
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d - x").WithArguments("-", "long", "TestEnum?").
WithLocation
(81, 15),
10285
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - (long)1").WithArguments("-", "TestEnum", "long").
WithLocation
(88, 15),
10288
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(long)1 - x").WithArguments("-", "long", "TestEnum").
WithLocation
(89, 15),
10291
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x - (long)1").WithArguments("-", "TestEnum?", "long").
WithLocation
(96, 15),
10294
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(long)1 - x").WithArguments("-", "long", "TestEnum?").
WithLocation
(97, 15)
10932
Diagnostic(ErrorCode.WRN_AlwaysNull, "((System.TypeCode)0) as int?").WithArguments("int?").
WithLocation
(15, 15),
10935
Diagnostic(ErrorCode.WRN_AlwaysNull, "0 as long?").WithArguments("long?").
WithLocation
(18, 15),
10938
Diagnostic(ErrorCode.WRN_AlwaysNull, "0 as ulong?").WithArguments("ulong?").
WithLocation
(19, 15),
10941
Diagnostic(ErrorCode.WRN_AlwaysNull, "GetNullableInt() as long?").WithArguments("long?").
WithLocation
(20, 15)
11283
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "d is string").WithArguments("string").
WithLocation
(6, 17)
11306
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "t is ValueTuple<long, int>").WithArguments("(long, int)").
WithLocation
(7, 13),
11309
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "t is ValueTuple<short, int>").WithArguments("(short, int)").
WithLocation
(8, 13),
11312
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "t is ValueTuple<int, int>").WithArguments("(int, int)").
WithLocation
(9, 13)
11332
Diagnostic(ErrorCode.ERR_NameNotInContext, "invalidExpression").WithArguments("invalidExpression").
WithLocation
(4, 22)
11407
Diagnostic(ErrorCode.ERR_ConstantStringTooLong, "C1").
WithLocation
(28, 68)
11456
Diagnostic(ErrorCode.ERR_BadBinaryOps, "d += p").WithArguments("+=", "dynamic", "int*").
WithLocation
(5, 9)
11479
Diagnostic(ErrorCode.ERR_BadUnaryOp, "+s1").WithArguments("+", "S1?").
WithLocation
(3, 10)
11500
Diagnostic(ErrorCode.ERR_BadUnaryOp, "+s1").WithArguments("+", "S1?").
WithLocation
(3, 10)
11523
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x + y").WithArguments("+", "S1", "int?").
WithLocation
(4, 2)
11546
Diagnostic(ErrorCode.ERR_BadBinaryOps, "y + x").WithArguments("+", "int?", "S1").
WithLocation
(4, 2)
11570
Diagnostic(ErrorCode.ERR_BadBinaryOps, "y > x").WithArguments(">", "int?", "S1").
WithLocation
(4, 2)
Semantics\OutVarTests.cs (1893)
54
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "out").WithArguments("out variable declaration", "7.0").
WithLocation
(6, 21));
86
Diagnostic(ErrorCode.ERR_NameNotInContext, "Test").WithArguments("Test").
WithLocation
(6, 9),
89
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "out").WithArguments("out variable declaration", "7.0").
WithLocation
(6, 14),
92
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "out").WithArguments("out variable declaration", "7.0").
WithLocation
(11, 25),
95
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Cls").WithArguments("Cls", "1").
WithLocation
(11, 21),
98
Diagnostic(ErrorCode.ERR_UseDefViolation, "int x2").WithArguments("x2").
WithLocation
(11, 29));
114
Diagnostic(ErrorCode.ERR_NameNotInContext, "Test").WithArguments("Test").
WithLocation
(6, 9),
117
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Cls").WithArguments("Cls", "1").
WithLocation
(11, 21),
120
Diagnostic(ErrorCode.ERR_UseDefViolation, "int x2").WithArguments("x2").
WithLocation
(11, 29)
160
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var (x1, x2)").
WithLocation
(6, 19),
163
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(6, 24),
166
Diagnostic(ErrorCode.ERR_NameNotInContext, "x2").WithArguments("x2").
WithLocation
(6, 28),
169
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 19),
172
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(7, 34),
175
Diagnostic(ErrorCode.ERR_NameNotInContext, "x2").WithArguments("x2").
WithLocation
(8, 34)
207
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var x1").
WithLocation
(6, 20),
210
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var x2").
WithLocation
(6, 28),
213
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(var x1, var x2)").WithArguments("System.ValueTuple`2").
WithLocation
(6, 19)
254
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int x1").
WithLocation
(6, 20),
257
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "long x2").
WithLocation
(6, 28),
260
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(int x1, long x2)").WithArguments("System.ValueTuple`2").
WithLocation
(6, 19),
263
Diagnostic(ErrorCode.ERR_UseDefViolation, "int x1").WithArguments("x1").
WithLocation
(6, 20),
266
Diagnostic(ErrorCode.ERR_UseDefViolation, "long x2").WithArguments("x2").
WithLocation
(6, 28)
308
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int x1").
WithLocation
(6, 20),
311
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "long x2").
WithLocation
(6, 29),
314
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "byte x3").
WithLocation
(6, 38),
317
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(long x2, byte x3)").WithArguments("System.ValueTuple`2").
WithLocation
(6, 28),
320
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(int x1, (long x2, byte x3))").WithArguments("System.ValueTuple`2").
WithLocation
(6, 19),
323
Diagnostic(ErrorCode.ERR_UseDefViolation, "int x1").WithArguments("x1").
WithLocation
(6, 20),
326
Diagnostic(ErrorCode.ERR_UseDefViolation, "long x2").WithArguments("x2").
WithLocation
(6, 29),
329
Diagnostic(ErrorCode.ERR_UseDefViolation, "byte x3").WithArguments("x3").
WithLocation
(6, 38)
383
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var (x1, (x2, x3))").
WithLocation
(11, 19)
421
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var (x1)").
WithLocation
(8, 19)
459
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var (x1, x2: x2)").
WithLocation
(9, 19)
497
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var (ref x1, x2)").
WithLocation
(9, 19)
535
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var (x1, (x2))").
WithLocation
(9, 19)
573
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var ((x1), x2)").
WithLocation
(9, 19)
604
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var (x1, x2)").
WithLocation
(6, 19),
607
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(6, 24),
610
Diagnostic(ErrorCode.ERR_NameNotInContext, "x2").WithArguments("x2").
WithLocation
(6, 28),
613
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 19),
616
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(7, 34),
619
Diagnostic(ErrorCode.ERR_NameNotInContext, "x2").WithArguments("x2").
WithLocation
(8, 34)
695
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var (x1, x2)").
WithLocation
(9, 19)
814
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var (x1, (a: x2, b: x3))").
WithLocation
(11, 19)
1788
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(7, 23),
1791
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(9, 29),
1794
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(6, 13)
1825
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(6, 15)
1857
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(6, 19)
1921
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(6, 19)
1972
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out int x3) && x3 > 0").
WithLocation
(8, 15),
1975
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(9, 15),
1978
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(11, 40),
1983
x5 > 0").
WithLocation
(10, 15),
1986
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(14, 37),
1989
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out int x6) && x6 > 0").
WithLocation
(13, 16),
1992
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out int x6) && x6 > 0").
WithLocation
(14, 16),
1995
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out int x7) && x7 > 0").
WithLocation
(15, 15),
1998
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(16, 15),
2001
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(17, 27)
2082
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out int x3) && x3 > 0").
WithLocation
(8, 11),
2085
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(9, 11),
2088
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(11, 36),
2093
x5 > 0").
WithLocation
(10, 11),
2096
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(14, 32),
2099
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out int x6) && x6 > 0").
WithLocation
(13, 11),
2102
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out int x6) && x6 > 0").
WithLocation
(14, 11),
2105
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out int x7) && x7 > 0").
WithLocation
(15, 11),
2108
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(16, 11),
2111
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(17, 27)
2193
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out var x3) && x3 > 0").
WithLocation
(8, 15),
2196
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(9, 15),
2199
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(11, 40),
2204
x5 > 0").
WithLocation
(10, 15),
2207
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(14, 37),
2210
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out var x6) && x6 > 0").
WithLocation
(13, 16),
2213
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out var x6) && x6 > 0").
WithLocation
(14, 16),
2216
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out var x7) && x7 > 0").
WithLocation
(15, 15),
2219
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(16, 15),
2222
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(17, 27)
2303
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out var x3) && x3 > 0").
WithLocation
(8, 11),
2306
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(9, 11),
2309
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(11, 36),
2314
x5 > 0").
WithLocation
(10, 11),
2317
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(14, 32),
2320
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out var x6) && x6 > 0").
WithLocation
(13, 11),
2323
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out var x6) && x6 > 0").
WithLocation
(14, 11),
2326
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "TakeOutParam(out var x7) && x7 > 0").
WithLocation
(15, 11),
2329
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(16, 11),
2332
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(17, 27)
2392
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "out").WithArguments("", "out").
WithLocation
(4, 11),
2395
Diagnostic(ErrorCode.ERR_SyntaxError, "x3").WithArguments(",").
WithLocation
(4, 19),
2398
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "out").WithArguments("", "out").
WithLocation
(5, 11),
2401
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(5, 15),
2404
Diagnostic(ErrorCode.ERR_SyntaxError, "x4").WithArguments(",").
WithLocation
(5, 19),
2407
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(6, 14),
2410
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(6, 14),
2413
Diagnostic(ErrorCode.ERR_SyntaxError, "var").WithArguments(",").
WithLocation
(6, 18),
2416
Diagnostic(ErrorCode.ERR_SyntaxError, "x5").WithArguments(",").
WithLocation
(6, 22),
2419
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(7, 14),
2422
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(7, 14),
2425
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(7, 18),
2428
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(7, 18),
2431
Diagnostic(ErrorCode.ERR_SyntaxError, "x6").WithArguments(",").
WithLocation
(7, 22),
2434
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(4, 15),
2437
Diagnostic(ErrorCode.ERR_NameNotInContext, "x3").WithArguments("x3").
WithLocation
(4, 19),
2440
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Test(out var x3)").WithArguments("Test", "2").
WithLocation
(4, 6),
2443
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(5, 19),
2446
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Test(out int x4)").WithArguments("Test", "2").
WithLocation
(5, 6),
2449
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 18),
2452
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "var").WithArguments("7.2").
WithLocation
(6, 18),
2455
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(6, 22),
2458
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Test(p: out var x5)").WithArguments("Test", "3").
WithLocation
(6, 6),
2461
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "int").WithArguments("7.2").
WithLocation
(7, 18),
2464
Diagnostic(ErrorCode.ERR_NameNotInContext, "x6").WithArguments("x6").
WithLocation
(7, 22),
2467
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Test(p: out int x6)").WithArguments("Test", "3").
WithLocation
(7, 6)
2613
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(25, 42),
2616
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(34, 21),
2619
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(45, 17),
2622
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(58, 34),
2625
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(68, 46),
2628
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(78, 34),
2631
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 48),
2634
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x15").WithArguments("x15").
WithLocation
(110, 48)
2830
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(25, 42),
2833
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(34, 21),
2836
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(45, 17),
2839
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(58, 34),
2842
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(68, 46),
2845
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(78, 34),
2848
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 48),
2851
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x15").WithArguments("x15").
WithLocation
(110, 48)
3186
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(13, 16),
3189
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(18, 41),
3192
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(24, 40),
3195
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(30, 16),
3198
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(32, 27)
3288
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(13, 16),
3291
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(18, 41),
3294
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(24, 40),
3297
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(30, 16),
3300
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(32, 27)
3619
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(9, 40),
3622
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(15, 13),
3625
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(21, 39),
3628
Diagnostic(ErrorCode.ERR_UseDefViolation, "x6").WithArguments("x6").
WithLocation
(24, 28),
3631
Diagnostic(ErrorCode.ERR_ImplicitlyTypedOutVariableUsedInTheSameArgumentList, "x7").WithArguments("x7").
WithLocation
(28, 28),
3634
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var x7").WithArguments("1", "out").
WithLocation
(28, 20),
3637
Diagnostic(ErrorCode.ERR_UseDefViolation, "x8").WithArguments("x8").
WithLocation
(32, 41),
3640
Diagnostic(ErrorCode.ERR_ImplicitlyTypedOutVariableUsedInTheSameArgumentList, "x9").WithArguments("x9").
WithLocation
(36, 41)
3810
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(97, 13),
3813
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(14, 19),
3816
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(22, 19),
3819
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(33, 43),
3822
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(32, 19),
3825
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(40, 16),
3828
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(39, 19),
3831
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(47, 17),
3834
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x8").WithArguments("x8").
WithLocation
(56, 19),
3837
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(59, 34),
3840
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(66, 19),
3843
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(69, 47),
3846
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(68, 23),
3849
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(81, 29),
3852
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(98, 29),
3855
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(97, 17),
3858
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(115, 46),
3861
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x14").WithArguments("x14").
WithLocation
(112, 19)
3958
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(18, 9)
4258
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(10, 29),
4261
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(13, 67),
4264
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(19, 28),
4267
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 27),
4270
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x11").WithArguments("x11").
WithLocation
(22, 56)
4462
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(18, 30),
4465
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(25, 67),
4468
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(39, 15),
4471
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(43, 15)
4478
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(18, 30),
4481
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(25, 67),
4484
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(39, 15),
4487
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(43, 15),
4490
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x11").WithArguments("x11").
WithLocation
(51, 54),
4493
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x12").WithArguments("x12").
WithLocation
(58, 54)
4660
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(10, 19),
4663
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(13, 44),
4666
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(19, 26),
4669
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 27),
4672
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x11").WithArguments("x11").
WithLocation
(22, 54)
4889
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(14, 46),
4892
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(16, 42),
4895
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(21, 15),
4898
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(26, 42),
4901
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(33, 42),
4904
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(39, 13),
4907
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(39, 13),
4910
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(59, 79),
4913
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x11").WithArguments("x11").
WithLocation
(79, 15)
5062
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(15, 9)
5162
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(10, 18),
5165
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(13, 43),
5168
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(19, 25),
5171
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 27),
5174
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(22, 57),
5177
Diagnostic(ErrorCode.ERR_NameNotInContext, "x9").WithArguments("x9").
WithLocation
(23, 19)
5257
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(6, 13),
5260
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(9, 38),
5265
x5 > 0 ? 1 : 0").WithArguments("X.Test5").
WithLocation
(8, 13),
5268
Diagnostic(ErrorCode.ERR_NotConstantExpression, "TakeOutParam(6, out int x6) && x6 > 0 ? 1 : 0").WithArguments("X.Test61").
WithLocation
(12, 14),
5271
Diagnostic(ErrorCode.ERR_NotConstantExpression, "TakeOutParam(6, out int x6) && x6 > 0 ? 1 : 0").WithArguments("X.Test62").
WithLocation
(12, 70),
5274
Diagnostic(ErrorCode.ERR_NotConstantExpression, "TakeOutParam(7, out int x7) && x7 > 0 ? 1 : 0").WithArguments("X.Test71").
WithLocation
(14, 14),
5277
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 14),
5280
Diagnostic(ErrorCode.ERR_NotConstantExpression, "TakeOutParam(3, out int x3) ? x3 : 0").WithArguments("X.Test3").
WithLocation
(4, 13)
5381
Diagnostic(ErrorCode.ERR_NotConstantExpression, "TakeOutParam(3, out int x3) && x3 > 0").WithArguments("X.Test3").
WithLocation
(8, 24),
5384
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(10, 24),
5387
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(13, 49),
5392
x5 > 0").WithArguments("X.Test5").
WithLocation
(12, 24),
5395
Diagnostic(ErrorCode.ERR_NotConstantExpression, "TakeOutParam(6, out int x6) && x6 > 0").WithArguments("X.Test61").
WithLocation
(16, 25),
5398
Diagnostic(ErrorCode.ERR_NotConstantExpression, "TakeOutParam(6, out int x6) && x6 > 0").WithArguments("X.Test62").
WithLocation
(16, 73),
5401
Diagnostic(ErrorCode.ERR_NotConstantExpression, "TakeOutParam(7, out int x7) && x7 > 0").WithArguments("X.Test71").
WithLocation
(18, 25),
5404
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(19, 25),
5407
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 27)
5491
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(8, 43),
5494
Diagnostic(ErrorCode.ERR_ImplicitlyTypedOutVariableUsedInTheSameArgumentList, "x4").WithArguments("x4").
WithLocation
(10, 43),
5497
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(15, 12),
5500
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(17, 34),
5503
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(21, 12),
5506
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(22, 33),
5509
Diagnostic(ErrorCode.ERR_NameNotInContext, "x6").WithArguments("x6").
WithLocation
(27, 34)
5573
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "int x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(9, 45)
5705
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(8, 54)
5879
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
5882
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 58),
5885
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 31),
5888
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
5891
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
5894
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 63),
5897
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 44),
5900
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 44),
5903
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
5906
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 55)
6029
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(14, 59),
6032
Diagnostic(ErrorCode.ERR_BadBinaryOps, "TakeOutParam(true, out var x1) && x1").WithArguments("&&", "bool", "int*").
WithLocation
(14, 32),
6035
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(14, 66),
6038
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(23, 21),
6041
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(32, 58),
6044
Diagnostic(ErrorCode.ERR_BadBinaryOps, "TakeOutParam(true, out var x3) && x3").WithArguments("&&", "bool", "int*").
WithLocation
(32, 31),
6047
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(41, 59)
6294
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
6297
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 47),
6300
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
6303
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(53, 17),
6306
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
6309
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(65, 9),
6312
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(76, 51),
6315
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 33),
6318
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 33),
6321
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
6324
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 44)
6532
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
6535
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 47),
6538
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
6541
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(53, 17),
6544
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
6547
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(76, 51),
6550
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 33),
6553
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 33),
6556
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
6559
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 44)
6767
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
6770
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(16, 19),
6773
Diagnostic(ErrorCode.ERR_NameNotInContext, "x2").WithArguments("x2").
WithLocation
(25, 19),
6776
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 47),
6779
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
6782
Diagnostic(ErrorCode.ERR_NameNotInContext, "x6").WithArguments("x6").
WithLocation
(44, 19),
6785
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(63, 19),
6788
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
6791
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(65, 9),
6794
Diagnostic(ErrorCode.ERR_NameNotInContext, "x9").WithArguments("x9").
WithLocation
(74, 19),
6797
Diagnostic(ErrorCode.ERR_NameNotInContext, "x9").WithArguments("x9").
WithLocation
(78, 23),
6800
Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").
WithLocation
(71, 14),
6803
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 33),
6806
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 33),
6809
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
6812
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 44),
6815
Diagnostic(ErrorCode.ERR_NameNotInContext, "x14").WithArguments("x14").
WithLocation
(128, 19)
7031
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
7034
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 47),
7037
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
7040
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(53, 17),
7043
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
7046
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(65, 9),
7049
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(76, 51),
7052
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 33),
7055
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 33),
7058
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
7061
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 44)
7269
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
7272
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 47),
7275
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
7278
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(53, 17),
7281
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
7284
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(65, 9),
7287
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(76, 51),
7290
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 33),
7293
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 33),
7296
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
7299
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 44)
7513
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 47),
7516
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(13, 54),
7519
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(21, 47),
7522
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x2").WithArguments("x2").
WithLocation
(20, 18),
7525
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(29, 47),
7528
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x3").WithArguments("x3").
WithLocation
(28, 18),
7531
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(37, 47),
7534
Diagnostic(ErrorCode.ERR_UseDefViolation, "x4").WithArguments("x4").
WithLocation
(37, 54),
7537
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(45, 47),
7540
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(44, 19),
7543
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x6").WithArguments("x6").
WithLocation
(53, 47),
7546
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x6").WithArguments("x6").
WithLocation
(52, 19),
7549
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x7").WithArguments("x7").
WithLocation
(61, 47),
7552
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(69, 52),
7555
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x8").WithArguments("x8").
WithLocation
(70, 47),
7558
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x8").WithArguments("x8").
WithLocation
(71, 47),
7561
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(77, 23),
7564
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(79, 47),
7567
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(80, 47),
7570
Diagnostic(ErrorCode.ERR_NameNotInContext, "x10").WithArguments("x10").
WithLocation
(86, 22),
7573
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x10").WithArguments("x10").
WithLocation
(88, 47),
7576
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x10").WithArguments("x10").
WithLocation
(89, 47),
7579
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(95, 23),
7582
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x11").WithArguments("x11").
WithLocation
(97, 47),
7585
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x11").WithArguments("x11").
WithLocation
(98, 47),
7588
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(104, 20),
7591
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x12").WithArguments("x12").
WithLocation
(105, 20),
7594
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x12").WithArguments("x12").
WithLocation
(107, 47),
7597
Diagnostic(ErrorCode.ERR_NameNotInContext, "x13").WithArguments("x13").
WithLocation
(113, 22),
7600
Diagnostic(ErrorCode.ERR_NameNotInContext, "x13").WithArguments("x13").
WithLocation
(114, 20),
7603
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x13").WithArguments("x13").
WithLocation
(116, 47),
7606
Diagnostic(ErrorCode.ERR_NameNotInContext, "x14").WithArguments("x14").
WithLocation
(122, 23),
7609
Diagnostic(ErrorCode.ERR_NameNotInContext, "x14").WithArguments("x14").
WithLocation
(123, 20),
7612
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(125, 47),
7615
Diagnostic(ErrorCode.ERR_NameNotInContext, "x15").WithArguments("x15").
WithLocation
(131, 20),
7618
Diagnostic(ErrorCode.ERR_NameNotInContext, "x15").WithArguments("x15").
WithLocation
(132, 20),
7621
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x15").WithArguments("x15").
WithLocation
(133, 20)
7767
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(13, 20),
7770
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(22, 47)
8354
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
8357
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 60),
8360
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 33),
8363
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
8366
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
8369
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 65),
8372
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 46),
8375
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 46),
8378
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
8381
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 57),
8384
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x15").WithArguments("x15").
WithLocation
(108, 22)
8626
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(101, 13),
8629
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(36, 17),
8632
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(46, 40),
8635
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(52, 40),
8638
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(58, 13),
8641
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(66, 17),
8644
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(83, 19),
8647
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(84, 44),
8650
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(91, 26),
8653
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(100, 26),
8656
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(101, 17)
8758
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(20, 9)
9037
Diagnostic(ErrorCode.ERR_SemicolonExpected, "x1").
WithLocation
(12, 27),
9040
Diagnostic(ErrorCode.ERR_SemicolonExpected, "var").
WithLocation
(17, 27),
9043
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(12, 23),
9046
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(12, 23),
9049
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(12, 27),
9052
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(12, 32),
9055
Diagnostic(ErrorCode.WRN_UnreachableCode, "x1").
WithLocation
(12, 27),
9058
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(17, 23),
9061
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(17, 23),
9064
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(17, 36),
9067
Diagnostic(ErrorCode.WRN_UnreachableCode, "var").
WithLocation
(17, 27),
9070
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(27, 49),
9073
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(33, 89),
9076
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(44, 15),
9079
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(45, 15),
9082
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(47, 15),
9085
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(48, 15),
9088
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x12").WithArguments("x12").
WithLocation
(82, 15)
9095
Diagnostic(ErrorCode.ERR_SemicolonExpected, "x1").
WithLocation
(12, 27),
9098
Diagnostic(ErrorCode.ERR_SemicolonExpected, "var").
WithLocation
(17, 27),
9101
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(12, 23),
9104
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(12, 23),
9107
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(12, 27),
9110
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(12, 32),
9113
Diagnostic(ErrorCode.WRN_UnreachableCode, "x1").
WithLocation
(12, 27),
9116
Diagnostic(ErrorCode.ERR_NameNotInContext, "let").WithArguments("let").
WithLocation
(17, 23),
9119
Diagnostic(ErrorCode.ERR_IllegalStatement, "let").
WithLocation
(17, 23),
9122
Diagnostic(ErrorCode.ERR_NameNotInContext, "o").WithArguments("o").
WithLocation
(17, 36),
9125
Diagnostic(ErrorCode.WRN_UnreachableCode, "var").
WithLocation
(17, 27),
9128
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(27, 49),
9131
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(33, 89),
9134
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(44, 15),
9137
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(45, 15),
9140
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(47, 15),
9143
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(48, 15),
9146
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(59, 73),
9149
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x10").WithArguments("x10").
WithLocation
(65, 73),
9152
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x11").WithArguments("x11").
WithLocation
(74, 73),
9155
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x12").WithArguments("x12").
WithLocation
(80, 73),
9158
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x12").WithArguments("x12").
WithLocation
(82, 15)
9325
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(19, 50),
9328
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(24, 23),
9331
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(36, 47)
9418
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(19, 53),
9421
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(24, 26),
9424
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(36, 50)
9495
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 51),
9498
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(13, 56),
9501
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 54),
9504
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(20, 59)
9574
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 16),
9577
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 54),
9580
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(31, 27)
9687
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var d =TakeOutParam(true, out var x1) && x1 != null;").
WithLocation
(11, 13),
9690
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(13, 9)
9881
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(19, 51),
9884
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(24, 24),
9887
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(36, 47)
9976
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(19, 61),
9979
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(24, 34),
9982
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(36, 47)
10055
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 51),
10058
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(13, 56),
10061
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 54),
10064
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(20, 59)
10136
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(12, 67),
10139
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(12, 72),
10142
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 54),
10145
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(31, 41)
10257
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(13, 9)
10690
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
10693
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(29, 48),
10696
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 21),
10699
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
10702
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(60, 19),
10705
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 52),
10708
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 34),
10711
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 34),
10714
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
10717
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 45)
10814
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(17, 9)
11017
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "TakeOutParam(3, out int x3) && x3 > 0").WithArguments("p").
WithLocation
(8, 25),
11020
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(11, 25),
11023
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(15, 50),
11028
x5 > 0").WithArguments("p").
WithLocation
(14, 25),
11031
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "TakeOutParam(6, out int x6) && x6 > 0").WithArguments("p1").
WithLocation
(19, 27),
11034
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "TakeOutParam(6, out int x6) && x6 > 0").WithArguments("p2").
WithLocation
(19, 76),
11037
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "TakeOutParam(7, out int x7) && x7 > 0").WithArguments("p").
WithLocation
(22, 26),
11040
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(26, 26),
11043
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(29, 27)
11154
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "TakeOutParam(3, out var x3) && x3 > 0").WithArguments("p").
WithLocation
(8, 25),
11157
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(11, 25),
11160
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(15, 50),
11165
x5 > 0").WithArguments("p").
WithLocation
(14, 25),
11168
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "TakeOutParam(6, out var x6) && x6 > 0").WithArguments("p1").
WithLocation
(19, 27),
11171
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "TakeOutParam(6, out var x6) && x6 > 0").WithArguments("p2").
WithLocation
(19, 76),
11174
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "TakeOutParam(7, out var x7) && x7 > 0").WithArguments("p").
WithLocation
(22, 26),
11177
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(26, 26),
11180
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(29, 27)
11253
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(10, 25),
11256
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(13, 43),
11259
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(19, 32),
11262
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 27)
11332
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "int x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(9, 52)
11424
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(8, 63)
11622
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(25, 26),
11625
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(27, 15),
11628
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(35, 32),
11631
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(37, 15),
11634
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(45, 35),
11637
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u4").WithArguments("u4").
WithLocation
(47, 35),
11640
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(49, 32),
11643
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(49, 36),
11646
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(52, 15),
11649
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(53, 15),
11652
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(61, 35),
11655
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u5").WithArguments("u5").
WithLocation
(63, 35),
11658
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(66, 32),
11661
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(66, 36),
11664
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(69, 15),
11667
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(70, 15),
11670
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(78, 26),
11673
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(80, 15),
11676
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(87, 27),
11679
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(89, 27),
11682
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(91, 26),
11685
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(91, 31),
11688
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(93, 15),
11691
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(94, 15),
11694
Diagnostic(ErrorCode.ERR_NameNotInContext, "z8").WithArguments("z8").
WithLocation
(102, 15),
11697
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(112, 25),
11700
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(109, 25),
11703
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(114, 15),
11706
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(115, 15),
11709
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y10").WithArguments("y10").
WithLocation
(121, 24),
11712
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y11").WithArguments("y11").
WithLocation
(128, 23)
11936
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(18, 35),
11939
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u4").WithArguments("u4").
WithLocation
(20, 35),
11942
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(22, 32),
11945
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(22, 36),
11948
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(25, 15),
11951
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(26, 15),
11954
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(35, 35),
11957
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u5").WithArguments("u5").
WithLocation
(37, 35),
11960
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(40, 32),
11963
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(40, 36),
11966
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(43, 15),
11969
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(44, 15)
12078
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y1").WithArguments("y1").
WithLocation
(16, 62),
12081
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y3").WithArguments("y3").
WithLocation
(18, 62)
12088
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y1").WithArguments("y1").
WithLocation
(16, 62),
12091
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y2").WithArguments("y2").
WithLocation
(17, 62),
12094
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y3").WithArguments("y3").
WithLocation
(18, 62),
12097
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y4").WithArguments("y4").
WithLocation
(19, 51),
12100
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y5").WithArguments("y5").
WithLocation
(20, 58),
12103
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y6").WithArguments("y6").
WithLocation
(21, 49),
12106
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y7").WithArguments("y7").
WithLocation
(22, 51),
12109
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y8").WithArguments("y8").
WithLocation
(23, 51),
12112
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y10").WithArguments("y10").
WithLocation
(25, 47),
12115
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y9").WithArguments("y9").
WithLocation
(24, 49),
12118
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y11").WithArguments("y11").
WithLocation
(27, 54),
12121
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y12").WithArguments("y12").
WithLocation
(28, 51)
12228
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y1").WithArguments("y1").
WithLocation
(26, 62),
12231
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y3").WithArguments("y3").
WithLocation
(28, 62)
12238
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y1").WithArguments("y1").
WithLocation
(26, 62),
12241
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y2").WithArguments("y2").
WithLocation
(27, 62),
12244
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y3").WithArguments("y3").
WithLocation
(28, 62),
12247
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y4").WithArguments("y4").
WithLocation
(29, 51),
12250
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y5").WithArguments("y5").
WithLocation
(30, 58),
12253
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y6").WithArguments("y6").
WithLocation
(31, 49),
12256
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y7").WithArguments("y7").
WithLocation
(32, 51),
12259
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y8").WithArguments("y8").
WithLocation
(33, 51),
12262
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y10").WithArguments("y10").
WithLocation
(35, 47),
12265
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y9").WithArguments("y9").
WithLocation
(34, 49),
12268
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y11").WithArguments("y11").
WithLocation
(37, 54),
12271
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y12").WithArguments("y12").
WithLocation
(38, 51)
12348
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y3").WithArguments("y3").
WithLocation
(18, 62)
12408
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y1").WithArguments("y1").
WithLocation
(19, 24),
12411
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y2").WithArguments("y2").
WithLocation
(20, 24),
12414
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y3").WithArguments("y3").
WithLocation
(22, 23),
12417
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y4").WithArguments("y4").
WithLocation
(25, 24)
12481
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y1").WithArguments("y1").
WithLocation
(14, 24),
12484
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y2").WithArguments("y2").
WithLocation
(15, 24),
12487
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y3").WithArguments("y3").
WithLocation
(17, 23),
12490
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y4").WithArguments("y4").
WithLocation
(20, 24),
12493
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y5").WithArguments("y5").
WithLocation
(23, 24)
12628
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y1").WithArguments("y1").
WithLocation
(15, 59),
12631
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y2").WithArguments("y2").
WithLocation
(23, 48),
12634
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y3").WithArguments("y3").
WithLocation
(33, 52),
12637
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y4").WithArguments("y4").
WithLocation
(40, 46),
12640
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y5").WithArguments("y5").
WithLocation
(47, 48),
12643
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y6").WithArguments("y6").
WithLocation
(56, 48),
12646
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y7").WithArguments("y7").
WithLocation
(63, 46),
12649
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y8").WithArguments("y8").
WithLocation
(71, 43),
12652
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y9").WithArguments("y9").
WithLocation
(77, 49),
12655
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y10").WithArguments("y10").
WithLocation
(84, 47)
12753
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y2").WithArguments("y2").
WithLocation
(26, 60),
12756
Diagnostic(ErrorCode.ERR_UseDefViolation, "y3").WithArguments("y3").
WithLocation
(33, 50),
12759
Diagnostic(ErrorCode.ERR_ImplicitlyTypedOutVariableUsedInTheSameArgumentList, "y4").WithArguments("y4").
WithLocation
(40, 50)
12766
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y1").WithArguments("y1").
WithLocation
(17, 62),
12769
Diagnostic(ErrorCode.ERR_LocalDuplicate, "y2").WithArguments("y2").
WithLocation
(26, 60),
12772
Diagnostic(ErrorCode.ERR_UseDefViolation, "y3").WithArguments("y3").
WithLocation
(33, 50),
12775
Diagnostic(ErrorCode.ERR_ImplicitlyTypedOutVariableUsedInTheSameArgumentList, "y4").WithArguments("y4").
WithLocation
(40, 50)
12959
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(13, 62)
13057
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsOutVariable, "int x1").
WithLocation
(13, 46)
13165
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(14, 53),
13168
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(16, 49),
13171
Diagnostic(ErrorCode.WRN_UnreachableCode, "return").
WithLocation
(14, 13),
13174
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(21, 22),
13177
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(26, 49),
13180
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(33, 49),
13183
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(39, 13),
13186
Diagnostic(ErrorCode.WRN_UnreachableCode, "var").
WithLocation
(39, 9),
13189
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(39, 13),
13192
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(59, 86),
13195
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x11").WithArguments("x11").
WithLocation
(79, 15),
13198
Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").
WithLocation
(86, 9)
13292
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(15, 9)
13581
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(27, 41),
13584
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(37, 41),
13587
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(47, 17),
13590
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(60, 21),
13593
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(71, 23),
13596
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(72, 49),
13599
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 17),
13602
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(108, 43)
13693
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(19, 15)
14076
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(30, 31),
14079
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(40, 58),
14082
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(51, 58),
14085
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(62, 58),
14088
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(102, 95),
14091
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(112, 31),
14094
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(119, 58),
14097
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(144, 17),
14100
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(146, 31),
14103
Diagnostic(ErrorCode.ERR_NameNotInContext, "x11").WithArguments("x11").
WithLocation
(147, 23),
14106
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(157, 17),
14109
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(162, 31),
14112
Diagnostic(ErrorCode.ERR_NameNotInContext, "x12").WithArguments("x12").
WithLocation
(163, 23),
14115
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x13").WithArguments("x13").
WithLocation
(175, 58),
14118
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x14").WithArguments("x14").
WithLocation
(185, 58),
14121
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x15").WithArguments("x15").
WithLocation
(198, 58),
14124
Diagnostic(ErrorCode.ERR_UseDefViolation, "x15").WithArguments("x15").
WithLocation
(198, 64)
14614
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(14, 1)
14668
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(15, 17)
14727
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(17, 21)
14921
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(15, 64),
14924
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x13").WithArguments("x13").
WithLocation
(28, 22),
14927
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x14").WithArguments("x14").
WithLocation
(38, 22),
14930
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x16").WithArguments("x16").
WithLocation
(51, 58),
14933
Diagnostic(ErrorCode.ERR_UseDefViolation, "x16").WithArguments("x16").
WithLocation
(51, 64),
14936
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x17").WithArguments("x17").
WithLocation
(62, 22),
14939
Diagnostic(ErrorCode.ERR_UseDefViolation, "x17").WithArguments("x17").
WithLocation
(62, 37)
15089
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(14, 52),
15092
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(16, 48),
15095
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(21, 21),
15098
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(26, 48),
15101
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(33, 48),
15104
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(39, 13),
15107
Diagnostic(ErrorCode.WRN_UnreachableCode, "var").
WithLocation
(39, 9),
15110
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(39, 13),
15113
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(59, 85),
15116
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x11").WithArguments("x11").
WithLocation
(79, 15),
15119
Diagnostic(ErrorCode.WRN_UnreachableCode, "Dummy").
WithLocation
(86, 9)
15212
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(15, 9)
15500
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
15503
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 49),
15506
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 22),
15509
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
15512
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
15515
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 53),
15518
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 35),
15521
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 35),
15524
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
15527
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 46)
15713
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
15716
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 57),
15719
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 30),
15722
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
15725
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
15728
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 61),
15731
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 43),
15734
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 43),
15737
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
15740
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 54)
15926
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
15929
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 72),
15932
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 45),
15935
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
15938
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
15941
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 76),
15944
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 58),
15947
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 58),
15950
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
15953
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 69)
16059
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(12, 58),
16062
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x1").WithArguments("x1").
WithLocation
(12, 63),
16065
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 73),
16068
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(20, 78)
16149
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 35),
16152
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(22, 73),
16155
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(39, 46)
16369
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
16372
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 43),
16375
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 16),
16378
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
16381
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
16384
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 47),
16387
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 29),
16390
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 29),
16393
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
16396
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 46)
16492
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(18, 9)
16932
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(16, 59),
16935
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(18, 55),
16938
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(23, 28),
16941
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(28, 55),
16944
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(35, 55),
16947
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(41, 13),
16950
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(41, 13),
16953
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(61, 92),
16956
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x11").WithArguments("x11").
WithLocation
(72, 15)
17048
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(15, 9)
17317
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x1").WithArguments("x1").
WithLocation
(14, 46),
17320
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(16, 42),
17323
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(12, 1),
17326
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(14, 1),
17329
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(16, 1),
17332
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x2").WithArguments("x2").
WithLocation
(21, 15),
17335
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(21, 1),
17338
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(26, 42),
17341
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(26, 1),
17344
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(33, 42),
17347
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(33, 1),
17350
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(39, 13),
17353
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(38, 1),
17356
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(39, 13),
17359
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(59, 79),
17362
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(59, 1),
17365
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "a: Dummy(TakeOutParam(true, out var x9), x9);").
WithLocation
(65, 1),
17368
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(65, 1),
17371
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "a: Dummy(TakeOutParam(true, out var x10), x10);").
WithLocation
(73, 1),
17374
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(73, 1),
17377
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x11").WithArguments("x11").
WithLocation
(79, 15),
17380
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(80, 1),
17383
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(85, 1)
17479
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "a: Dummy(TakeOutParam(true, out var x1));").
WithLocation
(13, 1),
17482
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(15, 9),
17485
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(13, 1)
17580
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(11, 1),
17583
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(11, 4),
17586
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(11, 7)
17639
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(15, 1)
17674
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(7, 22)
17707
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(7, 22)
17740
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x2").WithArguments("x2").
WithLocation
(7, 13)
17779
Diagnostic(ErrorCode.ERR_BadArgType, "int x1").WithArguments("1", "out int", "out short").
WithLocation
(6, 18)
17811
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 14),
17814
Diagnostic(ErrorCode.ERR_SyntaxError, "x1").WithArguments(",").
WithLocation
(6, 18),
17817
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(7, 18),
17820
Diagnostic(ErrorCode.ERR_SyntaxError, "x2").WithArguments(",").
WithLocation
(7, 22),
17823
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(6, 18),
17826
Diagnostic(ErrorCode.ERR_NameNotInContext, "x2").WithArguments("x2").
WithLocation
(7, 22)
17856
Diagnostic(ErrorCode.ERR_SyntaxError, ".").WithArguments(",").
WithLocation
(6, 24)
17887
Diagnostic(ErrorCode.ERR_BadSKknown, "System.Collections.Generic.IEnumerable<System.Int32>").WithArguments("System.Collections.Generic.IEnumerable<int>", "type", "variable").
WithLocation
(6, 18)
18024
Diagnostic(ErrorCode.ERR_NameNotInContext, "Test1").WithArguments("Test1").
WithLocation
(6, 9),
18027
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "val").WithArguments("Cls.var.val", "0").
WithLocation
(11, 20)
18099
Diagnostic(ErrorCode.ERR_NameNotInContext, "Test1").WithArguments("Test1").
WithLocation
(6, 15)
18138
Diagnostic(ErrorCode.ERR_ImplicitlyTypedOutVariableUsedInTheSameArgumentList, "x1").WithArguments("x1").
WithLocation
(7, 23)
18179
Diagnostic(ErrorCode.ERR_ImplicitlyTypedOutVariableUsedInTheSameArgumentList, "x1").WithArguments("x1").
WithLocation
(7, 25)
18222
Diagnostic(ErrorCode.ERR_BadArgRef, "var x1").WithArguments("1", "ref").
WithLocation
(6, 25)
18265
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var x1").WithArguments("1", "out").
WithLocation
(6, 25)
18304
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "x1").WithArguments("x1").
WithLocation
(7, 31)
18380
Diagnostic(ErrorCode.ERR_MethodNameExpected, "var x1").
WithLocation
(6, 37)
18441
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "var x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(25, 26)
18505
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "var x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(29, 26)
18776
=> System.Console.WriteLine(x1);").
WithLocation
(23, 9)
18869
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(20, 40)
18913
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(22, 38)
18955
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(21, 37)
19005
=> System.Console.WriteLine(x1);").
WithLocation
(19, 9),
19008
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(22, 38)
19053
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(20, 40)
19096
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(20, 40)
19147
=> System.Console.WriteLine(x1);").
WithLocation
(19, 9),
19150
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(20, 40)
19465
Diagnostic(ErrorCode.ERR_AmbigCall, "Test1").WithArguments("Cls.Test1(out int, object)", "Cls.Test1(out short, object)").
WithLocation
(6, 9)
19503
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "out System.ArgIterator x").WithArguments("System.ArgIterator").
WithLocation
(9, 25)
19542
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "out System.ArgIterator x").WithArguments("System.ArgIterator").
WithLocation
(9, 25)
19583
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "out System.ArgIterator x").WithArguments("System.ArgIterator").
WithLocation
(11, 25),
19586
Diagnostic(ErrorCode.ERR_BadSpecialByRefLocal, "var").WithArguments("System.ArgIterator").
WithLocation
(8, 25),
19589
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Test").
WithLocation
(6, 16)
19632
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "out System.ArgIterator x").WithArguments("System.ArgIterator").
WithLocation
(12, 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),
19641
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(9, 13),
19644
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Test").
WithLocation
(6, 16)
19686
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var x1").WithArguments("1", "out").
WithLocation
(7, 21),
19689
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "x1").WithArguments("x1").
WithLocation
(7, 25),
19692
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var _").WithArguments("1", "out").
WithLocation
(9, 21),
19695
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "var _").
WithLocation
(9, 21)
19729
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var x1").WithArguments("1", "out").
WithLocation
(7, 21),
19732
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "x1").WithArguments("x1").
WithLocation
(7, 25)
19766
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "int x1").WithArguments("1", "out").
WithLocation
(7, 21),
19769
Diagnostic(ErrorCode.ERR_UseDefViolation, "int x1").WithArguments("x1").
WithLocation
(7, 21)
19800
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("i", "Program.M(int, out string)").
WithLocation
(5, 13)
19997
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "out var y").WithArguments("7.2").
WithLocation
(6, 21),
20000
Diagnostic(ErrorCode.ERR_BadArgRef, "var y").WithArguments("2", "ref").
WithLocation
(6, 25)
20033
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Test1").WithArguments("x", "Cls.Test1(int, ref int)").
WithLocation
(7, 9));
20172
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "var _").
WithLocation
(7, 23)
20192
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(7, 23)
20220
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "x1").WithArguments("x1").
WithLocation
(7, 27)
20612
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var x1").WithArguments("1", "out").
WithLocation
(9, 18),
20615
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var _").WithArguments("1", "out").
WithLocation
(10, 18),
20618
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "_").WithArguments("1", "out").
WithLocation
(11, 18),
20621
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(14, 30),
20624
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "_").WithArguments("1", "out").
WithLocation
(18, 58)
20657
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(6, 13),
20660
Diagnostic(ErrorCode.ERR_SyntaxError, "x1").WithArguments(",").
WithLocation
(6, 21),
20663
Diagnostic(ErrorCode.ERR_SemicolonExpected, "=").
WithLocation
(7, 27),
20666
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(7, 27),
20669
Diagnostic(ErrorCode.ERR_CStyleArray, "[out var x3]").
WithLocation
(8, 14),
20672
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(8, 15),
20675
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "var").
WithLocation
(8, 19),
20678
Diagnostic(ErrorCode.ERR_SyntaxError, "x3").WithArguments(",").
WithLocation
(8, 23),
20681
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "x3").
WithLocation
(8, 23),
20684
Diagnostic(ErrorCode.ERR_BadVarDecl, "(out var x4").
WithLocation
(10, 17),
20687
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(10, 17),
20690
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(10, 28),
20693
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[out var x1]").
WithLocation
(6, 12),
20696
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 17),
20699
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(6, 21),
20702
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "b").WithArguments("b(out var)").
WithLocation
(7, 13),
20705
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(7, 19),
20708
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(8, 29),
20711
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(8, 19),
20714
Diagnostic(ErrorCode.ERR_NameNotInContext, "x3").WithArguments("x3").
WithLocation
(8, 23),
20717
Diagnostic(ErrorCode.ERR_ParamUnassigned, "b").WithArguments("x2").
WithLocation
(7, 13),
20720
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").
WithLocation
(6, 25),
20723
Diagnostic(ErrorCode.WRN_UnreferencedVar, "d").WithArguments("d").
WithLocation
(10, 13),
20726
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(10, 16),
20729
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "b").WithArguments("b").
WithLocation
(7, 13)
20782
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var x1").WithArguments("1", "out").
WithLocation
(8, 29),
20785
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "x1").WithArguments("x1").
WithLocation
(8, 33),
20788
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var x2").WithArguments("1", "out").
WithLocation
(13, 29),
20791
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "x2").WithArguments("x2").
WithLocation
(13, 33),
20794
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "var x4").WithArguments("1", "out").
WithLocation
(19, 33),
20797
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "x4").WithArguments("x4").
WithLocation
(19, 37)
20822
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(4, 18),
20825
Diagnostic(ErrorCode.ERR_SyntaxError, "x1").WithArguments(",").
WithLocation
(4, 26),
20828
Diagnostic(ErrorCode.ERR_FixedBufferTooManyDimensions, "[out var x1, x1]").
WithLocation
(4, 17),
20831
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(4, 22)
20894
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(19, 50),
20897
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(24, 23),
20900
Diagnostic(ErrorCode.ERR_UseDefViolation, "x8").WithArguments("x8").
WithLocation
(30, 34),
20903
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(36, 47)
21004
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableWithNoInitializer, "d").
WithLocation
(12, 13),
21007
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 51),
21010
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 54),
21013
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(21, 15),
21016
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(27, 54),
21019
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(28, 15)
21105
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 16),
21108
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(14, 15),
21111
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 54),
21114
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(31, 27)
21203
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 16),
21206
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(13, 27),
21209
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 54),
21212
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(20, 59),
21215
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(26, 27),
21218
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(31, 27)
21337
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var d,e(TakeOutParam(true, out var x1) && x1 != null);").
WithLocation
(11, 13),
21340
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableWithNoInitializer, "d").
WithLocation
(11, 17),
21343
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(13, 9)
21564
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(109, 13),
21567
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(34, 47),
21570
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(42, 20),
21573
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(53, 17),
21576
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(65, 34),
21579
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(65, 9),
21582
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(76, 51),
21585
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(85, 33),
21588
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(107, 33),
21591
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(109, 17),
21594
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(124, 44)
21729
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 47),
21732
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x7").WithArguments("x7").
WithLocation
(21, 47),
21735
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x7").WithArguments("x7").
WithLocation
(20, 19),
21738
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x8").WithArguments("x8").
WithLocation
(29, 52),
21741
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x8").WithArguments("x8").
WithLocation
(30, 47),
21744
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x8").WithArguments("x8").
WithLocation
(31, 47),
21747
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x9").WithArguments("x9").
WithLocation
(37, 23),
21750
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(39, 47),
21753
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(40, 47)
21922
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
21925
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 57),
21928
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 30),
21931
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
21934
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
21937
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 61),
21940
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 43),
21943
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 43),
21946
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
21949
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 54)
22073
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(12, 58),
22076
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(20, 73)
22168
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 35),
22171
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(22, 73),
22174
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(39, 46)
22335
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(87, 13),
22338
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(29, 58),
22341
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(35, 31),
22344
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(43, 17),
22347
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(53, 34),
22350
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(61, 63),
22353
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(68, 44),
22356
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(86, 44),
22359
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(87, 17),
22362
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(99, 55)
22502
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(14, 59),
22505
Diagnostic(ErrorCode.ERR_BadBinaryOps, "TakeOutParam(true, out var x1) && x1").WithArguments("&&", "bool", "int*").
WithLocation
(14, 32),
22508
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(23, 21),
22511
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(32, 58),
22514
Diagnostic(ErrorCode.ERR_BadBinaryOps, "TakeOutParam(true, out var x3) && x3").WithArguments("&&", "bool", "int*").
WithLocation
(32, 31),
22517
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(41, 59)
22596
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 27)
22710
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(10, 18),
22713
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(13, 43),
22716
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(20, 25),
22719
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(21, 27)
22801
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(21, 27)
22885
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(21, 27)
22946
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(8, 28),
22949
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(8, 39),
22952
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var x3").
WithLocation
(8, 33)
22982
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(8, 22),
22985
Diagnostic(ErrorCode.ERR_SyntaxError, "x3").WithArguments(",").
WithLocation
(8, 30),
22988
Diagnostic(ErrorCode.ERR_FixedBufferTooManyDimensions, "[out var x3]").
WithLocation
(8, 21),
22991
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(8, 26)
23023
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "StaticType").WithArguments("Cls.StaticType").
WithLocation
(9, 29),
23026
Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "StaticType").WithArguments("Cls.StaticType").
WithLocation
(6, 19)
23129
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(20, 13),
23132
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(28, 9),
23135
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(38, 26),
23138
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(45, 38),
23141
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(52, 26),
23144
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(67, 42),
23147
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x15").WithArguments("x15").
WithLocation
(75, 42)
23214
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(14, 34),
23217
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(20, 13),
23220
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(28, 9),
23223
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(38, 26),
23226
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(45, 38),
23229
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(52, 26),
23232
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(67, 42),
23235
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x15").WithArguments("x15").
WithLocation
(75, 42),
23238
Diagnostic(ErrorCode.ERR_LocalDuplicate, "TakeOutParam").WithArguments("TakeOutParam").
WithLocation
(85, 13),
23241
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "TakeOutParam").WithArguments("TakeOutParam").
WithLocation
(85, 13)
23379
Diagnostic(ErrorCode.ERR_NameNotInContext, "x3").WithArguments("x3").
WithLocation
(15, 9)
23406
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x2").WithArguments("x2").
WithLocation
(7, 8),
23409
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(9, 31),
23412
Diagnostic(ErrorCode.ERR_NameNotInContext, "x3").WithArguments("x3").
WithLocation
(15, 9)
23580
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(74, 5),
23583
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(25, 15),
23586
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(33, 9),
23589
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(42, 26),
23592
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(50, 46),
23595
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(56, 28),
23598
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(72, 28),
23601
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(83, 37),
23604
Diagnostic(ErrorCode.WRN_UnreachableCode, "for").
WithLocation
(11, 1),
23607
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(74, 9)
23675
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(20, 42),
23678
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(74, 5),
23681
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(25, 15),
23684
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(33, 9),
23687
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(42, 26),
23690
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(50, 46),
23693
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(56, 28),
23696
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(72, 28),
23699
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(83, 37),
23702
Diagnostic(ErrorCode.WRN_UnreachableCode, "for").
WithLocation
(11, 1),
23705
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(74, 9)
23918
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(52, 5),
23921
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(18, 25),
23924
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(23, 9),
23927
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(30, 26),
23930
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(35, 57),
23933
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(39, 38),
23936
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(51, 38),
23939
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(58, 49),
23942
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x15").WithArguments("x15").
WithLocation
(64, 14),
23945
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(52, 9)
24019
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(15, 52),
24022
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(52, 5),
24025
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(18, 25),
24028
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(23, 9),
24031
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(30, 26),
24034
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(35, 57),
24037
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(39, 38),
24040
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(51, 38),
24043
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(58, 49),
24046
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x15").WithArguments("x15").
WithLocation
(64, 14),
24049
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(52, 9)
24217
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(6, 41),
24220
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(9, 82),
24223
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(14, 7),
24226
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 7),
24229
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(17, 9),
24232
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(18, 7)
24308
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(6, 41),
24311
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(9, 82),
24314
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(14, 7),
24317
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 7),
24320
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(17, 9),
24323
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(18, 7),
24326
Diagnostic(ErrorCode.ERR_BadBinaryOps, "TakeOutParam(true, out var x8) && x8").WithArguments("&&", "bool", "int").
WithLocation
(20, 7),
24329
Diagnostic(ErrorCode.ERR_BadBinaryOps, "TakeOutParam(o, out var y8) && x8").WithArguments("&&", "bool", "int").
WithLocation
(20, 79),
24332
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x12").WithArguments("x12").
WithLocation
(37, 9),
24335
Diagnostic(ErrorCode.ERR_LocalDuplicate, "TakeOutParam").WithArguments("TakeOutParam").
WithLocation
(47, 13),
24338
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "TakeOutParam").WithArguments("TakeOutParam").
WithLocation
(47, 13)
24580
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(14, 21),
24583
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(21, 25),
24586
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(28, 29),
24589
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u4").WithArguments("u4").
WithLocation
(30, 29),
24592
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(32, 25),
24595
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(32, 29),
24598
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(41, 29),
24601
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u5").WithArguments("u5").
WithLocation
(43, 29),
24604
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(46, 25),
24607
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(46, 29),
24610
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(55, 21),
24613
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(61, 21),
24616
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(63, 21),
24619
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(65, 21),
24622
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(65, 26),
24625
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(80, 17),
24628
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(77, 17),
24631
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(16, 7),
24634
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(23, 7),
24637
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(35, 7),
24640
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(36, 7),
24643
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(49, 7),
24646
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(50, 7),
24649
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(57, 7),
24652
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(67, 7),
24655
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(68, 7),
24658
Diagnostic(ErrorCode.ERR_NameNotInContext, "z8").WithArguments("z8").
WithLocation
(73, 7),
24661
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(82, 7),
24664
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(83, 7)
24833
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(14, 21),
24836
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(16, 7),
24839
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(21, 25),
24842
Diagnostic(ErrorCode.ERR_NameNotInContext, "z3").WithArguments("z3").
WithLocation
(23, 7),
24845
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(28, 29),
24848
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u4").WithArguments("u4").
WithLocation
(30, 29),
24851
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(32, 25),
24854
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(32, 29),
24857
Diagnostic(ErrorCode.ERR_NameNotInContext, "u4").WithArguments("u4").
WithLocation
(35, 7),
24860
Diagnostic(ErrorCode.ERR_NameNotInContext, "v4").WithArguments("v4").
WithLocation
(36, 7),
24863
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(41, 29),
24866
Diagnostic(ErrorCode.ERR_QueryInnerKey, "u5").WithArguments("u5").
WithLocation
(43, 29),
24869
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(46, 25),
24872
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(46, 29),
24875
Diagnostic(ErrorCode.ERR_NameNotInContext, "u5").WithArguments("u5").
WithLocation
(49, 7),
24878
Diagnostic(ErrorCode.ERR_NameNotInContext, "v5").WithArguments("v5").
WithLocation
(50, 7),
24881
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(55, 21),
24884
Diagnostic(ErrorCode.ERR_NameNotInContext, "z6").WithArguments("z6").
WithLocation
(57, 7),
24887
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(61, 21),
24890
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(63, 21),
24893
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(65, 21),
24896
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(65, 26),
24899
Diagnostic(ErrorCode.ERR_NameNotInContext, "z7").WithArguments("z7").
WithLocation
(67, 7),
24902
Diagnostic(ErrorCode.ERR_NameNotInContext, "u7").WithArguments("u7").
WithLocation
(68, 7),
24905
Diagnostic(ErrorCode.ERR_NameNotInContext, "z8").WithArguments("z8").
WithLocation
(73, 7),
24908
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(77, 17),
24911
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(80, 17),
24914
Diagnostic(ErrorCode.ERR_NameNotInContext, "z9").WithArguments("z9").
WithLocation
(82, 7),
24917
Diagnostic(ErrorCode.ERR_NameNotInContext, "u9").WithArguments("u9").
WithLocation
(83, 7),
24920
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y10").WithArguments("y10").
WithLocation
(86, 18),
24923
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "y11").WithArguments("y11").
WithLocation
(90, 17)
25203
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(52, 5),
25206
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(18, 14),
25209
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(23, 9),
25212
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(30, 26),
25215
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(35, 45),
25218
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(39, 27),
25221
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(51, 27),
25224
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(58, 41),
25227
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(52, 9)
25299
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x4").WithArguments("x4").
WithLocation
(15, 41),
25302
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x6").WithArguments("x6").
WithLocation
(18, 14),
25305
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x7").WithArguments("x7").
WithLocation
(23, 9),
25308
Diagnostic(ErrorCode.ERR_NameNotInContext, "x8").WithArguments("x8").
WithLocation
(30, 26),
25311
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x9").WithArguments("x9").
WithLocation
(35, 45),
25314
Diagnostic(ErrorCode.ERR_NameNotInContext, "y10").WithArguments("y10").
WithLocation
(39, 27),
25317
Diagnostic(ErrorCode.ERR_NameNotInContext, "y12").WithArguments("y12").
WithLocation
(51, 27),
25320
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "var y12 = 12;").
WithLocation
(52, 5),
25323
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y12").WithArguments("y12").
WithLocation
(52, 9),
25326
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x14").WithArguments("x14").
WithLocation
(58, 41)
25490
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 27),
25493
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
25496
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 36),
25499
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
25502
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
25505
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
25537
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 27),
25540
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
25543
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
25546
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 36),
25549
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(13, 1)
25615
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 27),
25618
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
25621
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 36),
25624
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
25627
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
25630
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
25662
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 27),
25665
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
25668
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
25671
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 36),
25674
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(13, 1)
25795
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 31),
25798
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
25801
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 40),
25804
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(30, 17),
25807
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(30, 21),
25810
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(30, 25)
25849
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 31),
25852
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
25855
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
25858
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 40),
25861
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 37),
25864
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x6").WithArguments("x6").
WithLocation
(21, 5),
25867
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x6").WithArguments("x6").
WithLocation
(24, 12),
25870
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(33, 1)
25952
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 31),
25955
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
25958
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 40),
25961
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
25964
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
25967
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
26006
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 31),
26009
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
26012
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 40),
26015
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x5").WithArguments("x5").
WithLocation
(16, 29),
26018
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(21, 34),
26021
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(26, 1),
26024
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8)
26193
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 40),
26196
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
26199
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 49),
26202
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(2, 1),
26205
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(6, 1),
26208
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(8, 1),
26211
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(11, 1),
26214
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
26217
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
26220
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
26252
Diagnostic(ErrorCode.ERR_BadIteratorReturn, "yield return H.TakeOutParam(1, out int x1);").WithArguments("<top-level-statements-entry-point>", "void").
WithLocation
(2, 1),
26255
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 40),
26258
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
26261
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
26264
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 49),
26267
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(19, 1)
26335
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 40),
26338
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
26341
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 49),
26344
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(2, 1),
26347
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(6, 1),
26350
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(8, 1),
26353
Diagnostic(ErrorCode.ERR_YieldNotAllowedInScript, "yield").
WithLocation
(11, 1),
26356
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
26359
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
26362
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
26395
Diagnostic(ErrorCode.ERR_BadIteratorReturn, "yield return H.TakeOutParam(1, out var x1);").WithArguments("<top-level-statements-entry-point>", "void").
WithLocation
(2, 1),
26398
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 40),
26401
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
26404
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
26407
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 49),
26410
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(19, 1)
26476
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 34),
26479
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
26482
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 43),
26485
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
26488
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
26491
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
26494
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
26526
Diagnostic(ErrorCode.ERR_NoImplicitConv, "H.TakeOutParam(1, out int x1)").WithArguments("bool", "int").
WithLocation
(2, 8),
26529
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
26532
Diagnostic(ErrorCode.ERR_NoImplicitConv, "H.TakeOutParam(2, out int x2)").WithArguments("bool", "int").
WithLocation
(6, 8),
26535
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 34),
26538
Diagnostic(ErrorCode.ERR_NoImplicitConv, "H.TakeOutParam(3, out int x3)").WithArguments("bool", "int").
WithLocation
(8, 8),
26541
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
26544
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
26548
H.TakeOutParam(42, out int x4))").WithArguments("bool", "int").
WithLocation
(11, 8),
26551
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 43),
26554
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(14, 6)
26620
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 34),
26623
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
26626
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 43),
26629
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
26632
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
26635
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
26638
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
26670
Diagnostic(ErrorCode.ERR_NoImplicitConv, "H.TakeOutParam(1, out var x1)").WithArguments("bool", "int").
WithLocation
(2, 8),
26673
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
26676
Diagnostic(ErrorCode.ERR_NoImplicitConv, "H.TakeOutParam(2, out var x2)").WithArguments("bool", "int").
WithLocation
(6, 8),
26679
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 34),
26682
Diagnostic(ErrorCode.ERR_NoImplicitConv, "H.TakeOutParam(3, out var x3)").WithArguments("bool", "int").
WithLocation
(8, 8),
26685
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
26688
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
26692
H.TakeOutParam(42, out var x4))").WithArguments("bool", "int").
WithLocation
(11, 8),
26695
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 43),
26698
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(14, 6)
26811
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 33),
26814
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
26817
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 42),
26820
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
26823
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
26826
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
26829
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
26861
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
26864
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 33),
26867
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
26870
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
26873
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 42)
26941
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 33),
26944
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
26947
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 42),
26950
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
26953
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
26956
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
26959
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
26992
Diagnostic(ErrorCode.WRN_UnreachableCode, "H").
WithLocation
(3, 1),
26995
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 33),
26998
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
27001
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
27004
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 42)
27081
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 35),
27084
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
27087
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 44),
27090
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(25, 17),
27093
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(25, 21),
27096
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(25, 25)
27135
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 35),
27138
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
27141
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 44),
27144
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(17, 37),
27147
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(28, 1),
27150
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8)
27234
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 35),
27237
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
27240
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 44),
27243
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(25, 17),
27246
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(25, 21),
27249
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(25, 25)
27288
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 35),
27291
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
27294
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 44),
27297
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(17, 34),
27300
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(28, 1),
27303
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8)
27431
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
27434
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 43),
27437
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 37),
27440
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(19, 9),
27443
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
27446
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
27449
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29)
27495
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
27498
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(6, 34),
27501
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(8, 34),
27504
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 43),
27507
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 37),
27510
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(19, 9),
27513
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(21, 6),
27516
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
27519
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
27522
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29)
27608
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
27611
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 43),
27614
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 34),
27617
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(19, 9),
27620
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
27623
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
27626
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29)
27672
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
27675
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(6, 34),
27678
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(8, 34),
27681
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 43),
27684
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 34),
27687
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(19, 9),
27690
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(21, 6),
27693
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
27696
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
27699
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29)
27821
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
27824
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 49),
27827
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 37),
27830
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 9),
27833
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(24, 13),
27836
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(24, 25),
27839
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(24, 29)
27885
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
27888
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(6, 40),
27891
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(8, 40),
27894
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 49),
27897
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 37),
27900
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 9),
27903
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(22, 6),
27906
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(24, 13),
27909
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(24, 25),
27912
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(24, 29)
27999
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
28002
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 49),
28005
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 34),
28008
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 9),
28011
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(24, 13),
28014
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(24, 25),
28017
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(24, 29)
28063
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(3, 9),
28066
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(6, 40),
28069
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(8, 40),
28072
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 49),
28075
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 34),
28078
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 9),
28081
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(22, 6),
28084
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(24, 13),
28087
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(24, 25),
28090
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(24, 29)
28223
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 33),
28226
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
28229
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 42),
28232
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
28235
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
28238
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25)
28277
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 33),
28280
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
28283
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
28286
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 42),
28289
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 37),
28292
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(26, 1)
28374
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 33),
28377
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
28380
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 42),
28383
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
28386
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
28389
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25)
28428
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 33),
28431
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
28434
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
28437
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 42),
28440
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x5").WithArguments("x5").
WithLocation
(16, 34),
28443
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(26, 1)
28615
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 46),
28618
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
28621
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 48),
28624
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(14, 49),
28627
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(15, 49),
28630
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(19, 17),
28633
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(19, 21),
28636
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(19, 25),
28639
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(19, 29),
28642
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(19, 33)
28685
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 46),
28688
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
28691
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
28694
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 48),
28697
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(14, 49),
28700
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(15, 49),
28703
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(16, 1)
28783
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 30),
28786
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
28789
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 39),
28792
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
28795
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(6, 1),
28798
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(8, 1),
28801
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").
WithLocation
(11, 1),
28804
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
28807
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
28810
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
28842
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
28845
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(6, 1),
28848
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 30),
28851
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(8, 1),
28854
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
28857
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
28860
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").
WithLocation
(11, 1),
28863
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 39),
28866
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(19, 1)
28934
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 30),
28937
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
28940
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 39),
28943
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
28946
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(6, 1),
28949
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(8, 1),
28952
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").
WithLocation
(11, 1),
28955
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(16, 17),
28958
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(16, 21),
28961
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(16, 25)
28993
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
28996
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(6, 1),
28999
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 30),
29002
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(8, 1),
29005
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
29008
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
29011
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").
WithLocation
(11, 1),
29014
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 39),
29017
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(19, 1)
29076
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(3, 1),
29079
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(3, 3),
29082
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(3, 5)
29138
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 36),
29141
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
29144
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 45),
29147
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
29150
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(6, 1),
29153
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").
WithLocation
(8, 1),
29156
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").
WithLocation
(11, 1),
29159
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").
WithLocation
(14, 1),
29162
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(20, 17),
29165
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(20, 21),
29168
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(20, 25)
29205
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
29208
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(6, 1),
29211
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(7, 36),
29214
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").
WithLocation
(8, 1),
29217
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(10, 8),
29220
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(10, 8),
29223
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").
WithLocation
(11, 1),
29226
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 45),
29229
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").
WithLocation
(14, 1),
29232
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(15, 37),
29235
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(23, 1)
29314
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 36),
29317
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
29320
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 45),
29323
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
29326
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(6, 1),
29329
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").
WithLocation
(8, 1),
29332
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").
WithLocation
(11, 1),
29335
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").
WithLocation
(14, 1),
29338
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(20, 17),
29341
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(20, 21),
29344
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(20, 25)
29381
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(2, 1),
29384
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(6, 1),
29387
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(7, 36),
29390
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "e").
WithLocation
(8, 1),
29393
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(10, 8),
29396
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(10, 8),
29399
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "g").
WithLocation
(11, 1),
29402
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 45),
29405
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "i").
WithLocation
(14, 1),
29408
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(15, 37),
29411
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(23, 1)
29478
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(3, 1),
29481
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(3, 3),
29484
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(3, 5)
29527
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(3, 1),
29530
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(3, 3),
29533
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(3, 5)
29589
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 46),
29592
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
29595
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 48),
29598
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(14, 49),
29601
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(15, 49),
29604
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").
WithLocation
(1, 1),
29607
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").
WithLocation
(5, 1),
29610
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").
WithLocation
(7, 1),
29613
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").
WithLocation
(10, 1),
29616
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").
WithLocation
(13, 1),
29619
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(19, 17),
29622
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(19, 21),
29625
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(19, 25),
29628
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(19, 29),
29631
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(19, 33)
29674
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").
WithLocation
(1, 1),
29677
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").
WithLocation
(5, 1),
29680
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 46),
29683
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").
WithLocation
(7, 1),
29686
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
29689
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
29692
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").
WithLocation
(10, 1),
29695
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 48),
29698
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").
WithLocation
(13, 1),
29701
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(14, 49),
29704
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(15, 49),
29707
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(22, 1)
29790
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(6, 46),
29793
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(9, 8),
29796
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(12, 48),
29799
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(14, 49),
29802
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(15, 49),
29805
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").
WithLocation
(1, 1),
29808
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").
WithLocation
(5, 1),
29811
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").
WithLocation
(7, 1),
29814
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").
WithLocation
(10, 1),
29817
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").
WithLocation
(13, 1),
29820
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(19, 17),
29823
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(19, 21),
29826
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(19, 25),
29829
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(19, 29),
29832
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(19, 33)
29875
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").
WithLocation
(1, 1),
29878
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l2").
WithLocation
(5, 1),
29881
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(6, 46),
29884
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l3").
WithLocation
(7, 1),
29887
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(9, 8),
29890
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 8),
29893
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l4").
WithLocation
(10, 1),
29896
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(12, 48),
29899
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l5").
WithLocation
(13, 1),
29902
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(14, 49),
29905
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(15, 49),
29908
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(22, 1)
29980
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "a").
WithLocation
(3, 1),
29983
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "b").
WithLocation
(3, 3),
29986
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "c").
WithLocation
(3, 5)
30045
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 36),
30048
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
30051
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 45),
30054
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 37),
30057
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(19, 10),
30060
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
30063
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
30066
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25),
30069
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(23, 29),
30072
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(23, 33)
30112
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(7, 36),
30115
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(10, 8),
30118
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(10, 8),
30121
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 45),
30124
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(16, 37),
30127
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(19, 10),
30130
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x6").WithArguments("x6").
WithLocation
(19, 10),
30133
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(26, 1)
30217
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 36),
30220
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
30223
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 45),
30226
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 37),
30229
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(19, 10),
30232
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
30235
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
30238
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25),
30241
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(23, 29),
30244
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(23, 33)
30284
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(7, 36),
30287
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x3").WithArguments("x3").
WithLocation
(10, 8),
30290
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(10, 8),
30293
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 45),
30296
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(16, 37),
30299
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(19, 10),
30302
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x6").WithArguments("x6").
WithLocation
(19, 10),
30305
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(26, 1)
30465
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
30468
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
30509
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
30512
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
30612
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 45),
30615
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
30618
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 54),
30621
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 37),
30624
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(20, 17),
30627
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(20, 21),
30630
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(20, 25),
30633
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(20, 29)
30669
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").
WithLocation
(3, 6),
30672
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
30675
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").
WithLocation
(7, 6),
30678
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").
WithLocation
(9, 6),
30681
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").
WithLocation
(12, 6),
30684
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 54),
30687
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").
WithLocation
(15, 6),
30690
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(20, 13),
30693
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(20, 25),
30696
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 29),
30699
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(23, 1),
30702
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x3").
WithLocation
(23, 1)
30783
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 45),
30786
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
30789
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 54),
30792
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 37),
30795
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(20, 17),
30798
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(20, 21),
30801
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(20, 25),
30804
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(20, 29)
30840
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").
WithLocation
(3, 6),
30843
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
30846
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").
WithLocation
(7, 6),
30849
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "f").
WithLocation
(9, 6),
30852
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "h").
WithLocation
(12, 6),
30855
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 54),
30858
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x5").
WithLocation
(15, 6),
30861
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(20, 13),
30864
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(20, 25),
30867
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(20, 29),
30870
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x2").
WithLocation
(23, 1),
30873
Diagnostic(ErrorCode.ERR_UseDefViolation, "Test()").WithArguments("x3").
WithLocation
(23, 1)
31033
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
31036
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
31077
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
31080
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
31137
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 51),
31140
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
31143
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 52),
31146
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 37),
31149
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(19, 10),
31152
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
31155
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
31158
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25),
31161
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(23, 29),
31164
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(23, 33)
31205
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
31208
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 52),
31211
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(21, 6),
31214
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
31217
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
31220
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29),
31223
Diagnostic(ErrorCode.ERR_NameNotInContext, "x6").WithArguments("x6").
WithLocation
(23, 33)
31310
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x2").WithArguments("Script", "x2").
WithLocation
(7, 51),
31313
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x3").WithArguments("Script", "x3").
WithLocation
(10, 8),
31316
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x4").WithArguments("Script", "x4").
WithLocation
(13, 52),
31319
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x5").WithArguments("Script", "x5").
WithLocation
(16, 37),
31322
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "x6").WithArguments("Script", "x6").
WithLocation
(19, 10),
31325
Diagnostic(ErrorCode.ERR_AmbigMember, "x2").WithArguments("x2", "x2").
WithLocation
(23, 17),
31328
Diagnostic(ErrorCode.ERR_AmbigMember, "x3").WithArguments("x3", "x3").
WithLocation
(23, 21),
31331
Diagnostic(ErrorCode.ERR_AmbigMember, "x4").WithArguments("x4", "x4").
WithLocation
(23, 25),
31334
Diagnostic(ErrorCode.ERR_AmbigMember, "x5").WithArguments("x5", "x5").
WithLocation
(23, 29),
31337
Diagnostic(ErrorCode.ERR_AmbigMember, "x6").WithArguments("x6", "x6").
WithLocation
(23, 33)
31378
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
31381
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x4").WithArguments("x4").
WithLocation
(13, 52),
31384
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(21, 6),
31387
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(23, 13),
31390
Diagnostic(ErrorCode.ERR_NameNotInContext, "x4").WithArguments("x4").
WithLocation
(23, 25),
31393
Diagnostic(ErrorCode.ERR_NameNotInContext, "x5").WithArguments("x5").
WithLocation
(23, 29),
31396
Diagnostic(ErrorCode.ERR_NameNotInContext, "x6").WithArguments("x6").
WithLocation
(23, 33)
31561
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
31564
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
31605
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(4, 16),
31608
Diagnostic(ErrorCode.ERR_ObjectRequired, "x1").WithArguments("x1").
WithLocation
(8, 13)
31694
Diagnostic(ErrorCode.ERR_BadVarDecl, "(out var x1").
WithLocation
(3, 10),
31697
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 10),
31700
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 21),
31703
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "x1").WithArguments("x1").
WithLocation
(3, 19)
31722
Diagnostic(ErrorCode.ERR_BadVarDecl, "(out var x1").
WithLocation
(3, 10),
31725
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 10),
31728
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 21),
31731
Diagnostic(ErrorCode.WRN_UnreferencedVar, "a").WithArguments("a").
WithLocation
(3, 6),
31734
Diagnostic(ErrorCode.WRN_UnreferencedVar, "b").WithArguments("b").
WithLocation
(3, 9),
31737
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(6, 6)
31781
Diagnostic(ErrorCode.ERR_BadVarDecl, "(H.TakeOutParam(1, out var x1)").
WithLocation
(3, 10),
31784
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 10),
31787
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 40),
31790
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").
WithLocation
(2, 1)
31809
Diagnostic(ErrorCode.ERR_BadVarDecl, "(H.TakeOutParam(1, out var x1)").
WithLocation
(3, 10),
31812
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 10),
31815
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 40),
31818
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label").
WithLocation
(2, 1),
31821
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(4, 9),
31824
Diagnostic(ErrorCode.WRN_UnreferencedVar, "a").WithArguments("a").
WithLocation
(3, 6),
31827
Diagnostic(ErrorCode.WRN_UnreferencedVar, "b").WithArguments("b").
WithLocation
(3, 9),
31830
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(6, 6)
31874
Diagnostic(ErrorCode.ERR_BadVarDecl, "(H.TakeOutParam(1, out var x1)").
WithLocation
(3, 25),
31877
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 25),
31880
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 55)
31899
Diagnostic(ErrorCode.ERR_BadVarDecl, "(H.TakeOutParam(1, out var x1)").
WithLocation
(3, 25),
31902
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(3, 25),
31905
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(3, 55),
31908
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
31911
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(6, 6),
31914
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(8, 13)
31961
Diagnostic(ErrorCode.ERR_FixedNotInStruct, "b").
WithLocation
(3, 18),
31964
Diagnostic(ErrorCode.ERR_NotConstantExpression, "H.TakeOutParam(1, out var x1)").WithArguments("b").
WithLocation
(3, 20),
31967
Diagnostic(ErrorCode.ERR_FixedNotInStruct, "a").
WithLocation
(3, 12),
31970
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "a[2]").
WithLocation
(3, 12)
31989
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "a").
WithLocation
(3, 12),
31992
Diagnostic(ErrorCode.ERR_FixedNotInStruct, "b").
WithLocation
(3, 18),
31995
Diagnostic(ErrorCode.ERR_NotConstantExpression, "H.TakeOutParam(1, out var x1)").WithArguments("<invalid-global-code>.b").
WithLocation
(3, 20),
31998
Diagnostic(ErrorCode.ERR_FixedNotInStruct, "a").
WithLocation
(3, 12),
32001
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "a[2]").
WithLocation
(3, 12),
32004
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(4, 9),
32007
Diagnostic(ErrorCode.ERR_NameNotInContext, "x1").WithArguments("x1").
WithLocation
(8, 13),
32010
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Test").WithArguments("Test").
WithLocation
(6, 6)
32049
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "out System.ArgIterator x").WithArguments("System.ArgIterator").
WithLocation
(9, 37),
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)
32093
Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "x2").WithArguments("StaticType").
WithLocation
(5, 31),
32096
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "StaticType").WithArguments("StaticType").
WithLocation
(9, 41),
32099
Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "x1").WithArguments("StaticType").
WithLocation
(3, 24)
32133
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "x1").WithArguments("x1").
WithLocation
(3, 24)
32179
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "b").WithArguments("b").
WithLocation
(4, 5)
32219
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "b").WithArguments("b").
WithLocation
(4, 5)
32259
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "a").WithArguments("a").
WithLocation
(3, 5)
32279
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "x1").WithArguments("x1").
WithLocation
(4, 32)
32317
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "x1").WithArguments("x1").
WithLocation
(3, 32)
32337
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "b").WithArguments("b").
WithLocation
(4, 5)
32362
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "x1").WithArguments("x1").
WithLocation
(2, 24),
32365
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "TakeOutParam").WithArguments("H.TakeOutParam<T>(out T)").
WithLocation
(2, 3)
32371
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "x1").WithArguments("x1").
WithLocation
(2, 24)
32401
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "x1").WithArguments("x1").
WithLocation
(2, 10),
32404
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var x1").
WithLocation
(2, 6),
32407
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "int x2").
WithLocation
(2, 14),
32410
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(var x1, int x2)").WithArguments("System.ValueTuple`2").
WithLocation
(2, 5),
32413
Diagnostic(ErrorCode.ERR_BadArgType, "(var x1, int x2)").WithArguments("1", "(var, int)", "object").
WithLocation
(2, 5)
32418
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "x1").WithArguments("x1").
WithLocation
(2, 10)
32458
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "varx1").
WithLocation
(4, 24)
32604
Diagnostic(ErrorCode.ERR_ConstantExpected, "!TakeOutParam(3, out var x1)").
WithLocation
(8, 18)
32637
Diagnostic(ErrorCode.ERR_NameNotInContext, "TakeOutParam").WithArguments("TakeOutParam").
WithLocation
(8, 19),
32640
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UndeclaredType").WithArguments("UndeclaredType").
WithLocation
(8, 39)
32801
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "TakeOutParam").WithArguments("X.TakeOutParam<T>(out T)").
WithLocation
(6, 9)
32830
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "TakeOutParam").WithArguments("X.TakeOutParam<T>(out T, T)").
WithLocation
(7, 9),
32833
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "TakeOutParam").WithArguments("X.TakeOutParam<T>(out T, T)").
WithLocation
(9, 9)
33061
Diagnostic(ErrorCode.ERR_BadArgType, "long x1").WithArguments("1", "out long", "out int").
WithLocation
(7, 19),
33064
Diagnostic(ErrorCode.ERR_BadArgType, "long _").WithArguments("1", "out long", "out int").
WithLocation
(8, 19),
33067
Diagnostic(ErrorCode.ERR_UseDefViolation, "long x1").WithArguments("x1").
WithLocation
(7, 19)
33173
Diagnostic(ErrorCode.ERR_BadArgType, "alias1 _").WithArguments("1", "out alias1", "out int").
WithLocation
(10, 19),
33176
Diagnostic(ErrorCode.ERR_BadArgType, "var _").WithArguments("1", "out var", "out int").
WithLocation
(11, 19)
33273
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(6, 9),
33276
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(7, 11),
33279
Diagnostic(ErrorCode.ERR_NameNotInContext, "_<T>").WithArguments("_").
WithLocation
(8, 9),
33282
Diagnostic(ErrorCode.ERR_NameNotInContext, "_<T>").WithArguments("_").
WithLocation
(9, 10),
33285
Diagnostic(ErrorCode.ERR_NameNotInContext, "_<T>").WithArguments("_").
WithLocation
(9, 16),
33288
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").
WithLocation
(10, 11),
33291
Diagnostic(ErrorCode.ERR_NoSuchMember, "_").WithArguments("C", "_").
WithLocation
(11, 19)
33340
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(out T)").
WithLocation
(10, 9),
33343
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(out T)").
WithLocation
(11, 9)
33389
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(out object)", "C.M(out int)").
WithLocation
(8, 9),
33392
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(out object)", "C.M(out int)").
WithLocation
(9, 9),
33395
Diagnostic(ErrorCode.ERR_BadArgType, "byte _").WithArguments("1", "out byte", "out object").
WithLocation
(10, 15)
33421
Diagnostic(ErrorCode.ERR_BadArgType, "A x").WithArguments("2", "out A", "out B").
WithLocation
(7, 18),
33424
Diagnostic(ErrorCode.ERR_BadArgType, "A _").WithArguments("2", "out A", "out B").
WithLocation
(8, 18)
33478
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(10, 29),
33481
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(13, 29),
33484
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(13, 34)
33520
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(6, 75),
33523
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(M(out int z1), z1)").WithArguments("b").
WithLocation
(6, 30),
33526
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(6, 61),
33529
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(7, 75),
33532
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(M(out var z2), z2)").WithArguments("b").
WithLocation
(7, 30),
33535
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(7, 61),
33538
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(9, 17),
33541
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(9, 22),
33544
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local2").WithArguments("Local2").
WithLocation
(6, 14),
33547
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local5").WithArguments("Local5").
WithLocation
(7, 14)
33597
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(7, 56),
33600
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(M(out int z1), z1)").WithArguments("b").
WithLocation
(7, 58),
33603
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(8, 56),
33606
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(8, 58),
33609
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(9, 55),
33612
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(11, 56),
33615
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(M(out var z2), z2)").WithArguments("b").
WithLocation
(11, 58),
33618
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(12, 56),
33621
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(12, 58),
33624
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(13, 55),
33627
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(15, 17),
33630
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(15, 22));
33705
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(18, 19),
33708
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(8, 23),
33711
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(10, 48),
33714
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(13, 45),
33717
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 23)
33803
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(18, 19),
33806
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(8, 19),
33809
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(10, 44),
33812
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(13, 40),
33815
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 19)
33902
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(18, 19),
33905
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(8, 23),
33908
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(10, 48),
33911
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(13, 45),
33914
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 23)
34000
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(18, 19),
34003
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x4").WithArguments("x4").
WithLocation
(8, 19),
34006
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x5").WithArguments("x5").
WithLocation
(10, 44),
34009
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x6").WithArguments("x6").
WithLocation
(13, 40),
34012
Diagnostic(ErrorCode.ERR_NameNotInContext, "x7").WithArguments("x7").
WithLocation
(15, 19)
34085
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(10, 44)
34141
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(10, 40)
34183
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[Test1(out int x1), x1]").
WithLocation
(7, 12),
34186
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x1").WithArguments("x1").
WithLocation
(7, 27),
34189
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[Test1(out int x2), x2]").
WithLocation
(8, 12),
34192
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(8, 36),
34195
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(6, 13),
34198
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x1").WithArguments("x1").
WithLocation
(7, 27),
34201
Diagnostic(ErrorCode.WRN_UnreferencedVar, "_1").WithArguments("_1").
WithLocation
(7, 36),
34204
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x2").WithArguments("x2").
WithLocation
(8, 27),
34207
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x2").WithArguments("x2").
WithLocation
(8, 36)
34289
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "int[TakeOutParam(true, out var x1),x1] d = null").WithArguments("int[*,*]").
WithLocation
(12, 16),
34292
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[TakeOutParam(true, out var x1),x1]").
WithLocation
(12, 19),
34295
Diagnostic(ErrorCode.ERR_NoImplicitConv, "TakeOutParam(true, out var x1)").WithArguments("bool", "int").
WithLocation
(12, 20),
34298
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x1").WithArguments("bool", "int").
WithLocation
(12, 51),
34301
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(14, 19),
34304
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "int[TakeOutParam(true, out var x2),x2] d = null").WithArguments("int[*,*]").
WithLocation
(20, 16),
34307
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[TakeOutParam(true, out var x2),x2]").
WithLocation
(20, 19),
34310
Diagnostic(ErrorCode.ERR_NoImplicitConv, "TakeOutParam(true, out var x2)").WithArguments("bool", "int").
WithLocation
(20, 20),
34313
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x2").WithArguments("bool", "int").
WithLocation
(20, 51),
34316
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(21, 19),
34319
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "int[TakeOutParam(true, out var x3),x3] d = null").WithArguments("int[*,*]").
WithLocation
(29, 16),
34322
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[TakeOutParam(true, out var x3),x3]").
WithLocation
(29, 19),
34325
Diagnostic(ErrorCode.ERR_NoImplicitConv, "TakeOutParam(true, out var x3)").WithArguments("bool", "int").
WithLocation
(29, 20),
34328
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(29, 47),
34331
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x3").WithArguments("bool", "int").
WithLocation
(29, 51),
34334
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(30, 19)
34398
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "using int[TakeOutParam(true, out var x1), x1] d = null;").WithArguments("int[*,*]").
WithLocation
(12, 9),
34401
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[TakeOutParam(true, out var x1), x1]").
WithLocation
(12, 18),
34404
Diagnostic(ErrorCode.ERR_NoImplicitConv, "TakeOutParam(true, out var x1)").WithArguments("bool", "int").
WithLocation
(12, 19),
34407
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x1").WithArguments("bool", "int").
WithLocation
(12, 51),
34410
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(13, 15),
34413
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "using int[TakeOutParam(true, out var x2), x2] d = null;").WithArguments("int[*,*]").
WithLocation
(21, 9),
34416
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[TakeOutParam(true, out var x2), x2]").
WithLocation
(21, 18),
34419
Diagnostic(ErrorCode.ERR_NoImplicitConv, "TakeOutParam(true, out var x2)").WithArguments("bool", "int").
WithLocation
(21, 19),
34422
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x2").WithArguments("x2").
WithLocation
(21, 46),
34425
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x2").WithArguments("x2").
WithLocation
(21, 46)
34502
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[TakeOutParam(true, out var x1),x1]").
WithLocation
(12, 17),
34505
Diagnostic(ErrorCode.ERR_NoImplicitConv, "TakeOutParam(true, out var x1)").WithArguments("bool", "int").
WithLocation
(12, 18),
34508
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x1").WithArguments("bool", "int").
WithLocation
(12, 49),
34511
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(13, 19),
34514
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").
WithLocation
(12, 53),
34517
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[TakeOutParam(true, out var x2),x2]").
WithLocation
(21, 17),
34520
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x2").WithArguments("x2").
WithLocation
(21, 45),
34523
Diagnostic(ErrorCode.ERR_NoImplicitConv, "TakeOutParam(true, out var x2)").WithArguments("bool", "int").
WithLocation
(21, 18),
34526
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x2").WithArguments("bool", "int").
WithLocation
(21, 49),
34529
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(22, 19),
34532
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").
WithLocation
(21, 53)
34599
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Test1").
WithLocation
(10, 17),
34602
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[TakeOutParam(true, out var x1), x1]").
WithLocation
(12, 19),
34605
Diagnostic(ErrorCode.ERR_NoImplicitConv, "TakeOutParam(true, out var x1)").WithArguments("bool", "int").
WithLocation
(12, 20),
34608
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x1").WithArguments("bool", "int").
WithLocation
(12, 52),
34611
Diagnostic(ErrorCode.ERR_BadFixedInitType, "d = null").
WithLocation
(12, 56),
34614
Diagnostic(ErrorCode.ERR_UseDefViolation, "x1").WithArguments("x1").
WithLocation
(14, 19),
34617
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Test2").
WithLocation
(18, 17),
34620
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[TakeOutParam(true, out var x2), x2]").
WithLocation
(20, 19),
34623
Diagnostic(ErrorCode.ERR_NoImplicitConv, "TakeOutParam(true, out var x2)").WithArguments("bool", "int").
WithLocation
(20, 20),
34626
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x2").WithArguments("bool", "int").
WithLocation
(20, 52),
34629
Diagnostic(ErrorCode.ERR_BadFixedInitType, "d = null").
WithLocation
(20, 56),
34632
Diagnostic(ErrorCode.ERR_UseDefViolation, "x2").WithArguments("x2").
WithLocation
(21, 19),
34635
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Test3").
WithLocation
(24, 17),
34638
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[TakeOutParam(true, out var x3), x3]").
WithLocation
(29, 19),
34641
Diagnostic(ErrorCode.ERR_NoImplicitConv, "TakeOutParam(true, out var x3)").WithArguments("bool", "int").
WithLocation
(29, 20),
34644
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x3").WithArguments("x3").
WithLocation
(29, 47),
34647
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x3").WithArguments("bool", "int").
WithLocation
(29, 52),
34650
Diagnostic(ErrorCode.ERR_BadFixedInitType, "d = null").
WithLocation
(29, 56),
34653
Diagnostic(ErrorCode.ERR_UseDefViolation, "x3").WithArguments("x3").
WithLocation
(30, 19)
34694
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M2(M1(out var x1), x1)").
WithLocation
(6, 24)
34731
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(6, 83),
34734
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out int z1)").
WithLocation
(6, 39),
34737
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(nameof(M(out int z1)), z1)").WithArguments("b").
WithLocation
(6, 30),
34740
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(6, 69),
34743
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(7, 83),
34746
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out var z2)").
WithLocation
(7, 39),
34749
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M(nameof(M(out var z2)), z2)").WithArguments("b").
WithLocation
(7, 30),
34752
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(7, 69),
34755
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(9, 17),
34758
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(9, 22),
34761
Diagnostic(ErrorCode.ERR_UseDefViolation, "z1").WithArguments("z1").
WithLocation
(6, 55),
34764
Diagnostic(ErrorCode.ERR_UseDefViolation, "z2").WithArguments("z2").
WithLocation
(7, 55),
34767
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local2").WithArguments("Local2").
WithLocation
(6, 14),
34770
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local5").WithArguments("Local5").
WithLocation
(7, 14)
34810
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "C.M(out int z1)").
WithLocation
(2, 16),
34813
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "C.M(nameof(C.M(out int z1)), z1)").
WithLocation
(2, 5),
34816
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "z1").
WithLocation
(2, 39),
34819
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "C.M(out var z2)").
WithLocation
(3, 16),
34822
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "C.M(nameof(C.M(out var z2)), z2)").
WithLocation
(3, 5),
34825
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "z2").
WithLocation
(3, 39)
34864
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "C.M(out int z1)").
WithLocation
(2, 26),
34867
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "C.M(nameof(C.M(out int z1)), z1)").
WithLocation
(2, 15),
34870
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "z1").
WithLocation
(2, 49),
34873
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "C.M(out var z2)").
WithLocation
(3, 26),
34876
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "C.M(nameof(C.M(out var z2)), z2)").
WithLocation
(3, 15),
34879
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "z2").
WithLocation
(3, 49)
34922
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out int z1)").
WithLocation
(8, 28),
34925
Diagnostic(ErrorCode.ERR_ConstantExpected, "!M(nameof(M(out int z1)), z1)").
WithLocation
(8, 18),
34928
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out var z2)").
WithLocation
(11, 28),
34931
Diagnostic(ErrorCode.ERR_ConstantExpected, "!M(nameof(M(out var z2)), z2)").
WithLocation
(11, 18),
34934
Diagnostic(ErrorCode.ERR_UseDefViolation, "z1").WithArguments("z1").
WithLocation
(8, 44),
34937
Diagnostic(ErrorCode.ERR_UseDefViolation, "z2").WithArguments("z2").
WithLocation
(11, 44)
34972
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out var z2)").
WithLocation
(5, 29),
34975
Diagnostic(ErrorCode.ERR_NotConstantExpression, "M(nameof(M(out var z2)), z2)").WithArguments("C.b").
WithLocation
(5, 20),
34978
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(6, 21),
34981
Diagnostic(ErrorCode.ERR_NameNotInContext, "z2").WithArguments("z2").
WithLocation
(6, 26),
34984
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out int z1)").
WithLocation
(4, 29),
34987
Diagnostic(ErrorCode.ERR_NotConstantExpression, "M(nameof(M(out int z1)), z1)").WithArguments("C.a").
WithLocation
(4, 20)
35026
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out int z1)").
WithLocation
(6, 33),
35029
Diagnostic(ErrorCode.ERR_NotConstantExpression, "M(nameof(M(out int z1)), z1)").WithArguments("a").
WithLocation
(6, 24),
35032
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "M(out var z2)").
WithLocation
(7, 33),
35035
Diagnostic(ErrorCode.ERR_NotConstantExpression, "M(nameof(M(out var z2)), z2)").WithArguments("b").
WithLocation
(7, 24),
35038
Diagnostic(ErrorCode.ERR_UseDefViolation, "z1").WithArguments("z1").
WithLocation
(6, 49),
35041
Diagnostic(ErrorCode.ERR_UseDefViolation, "z2").WithArguments("z2").
WithLocation
(7, 49)
35078
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "(System.Action)(() => M(M(out var z1), z1))").
WithLocation
(6, 27),
35081
Diagnostic(ErrorCode.ERR_NameNotInContext, "z1").WithArguments("z1").
WithLocation
(7, 18)
35481
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(6, 16),
35484
Diagnostic(ErrorCode.ERR_InExpected, ";").
WithLocation
(7, 60),
35487
Diagnostic(ErrorCode.ERR_BadForeachDecl, ";").
WithLocation
(7, 60),
35490
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(7, 60),
35493
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(7, 60)
35529
Diagnostic(ErrorCode.ERR_BadArgCount, "G").WithArguments("G", "1").
WithLocation
(6, 9));
35557
Diagnostic(ErrorCode.ERR_BadArgCount, "G").WithArguments("G", "1").
WithLocation
(7, 9));
35706
Diagnostic(ErrorCode.ERR_CantUseInOrOutInArglist, "int y").
WithLocation
(6, 28),
35709
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "z").WithArguments("z").
WithLocation
(7, 32),
35712
Diagnostic(ErrorCode.ERR_CantUseInOrOutInArglist, "var z").
WithLocation
(7, 28)
35742
Diagnostic(ErrorCode.ERR_CantUseInOrOutInArglist, "int y").
WithLocation
(6, 23),
35745
Diagnostic(ErrorCode.ERR_IllegalArglist, "__arglist(out int y)").
WithLocation
(6, 9),
35748
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedOutVariable, "z").WithArguments("z").
WithLocation
(7, 27),
35751
Diagnostic(ErrorCode.ERR_CantUseInOrOutInArglist, "var z").
WithLocation
(7, 23),
35754
Diagnostic(ErrorCode.ERR_IllegalArglist, "__arglist(out var z)").
WithLocation
(7, 9)
35783
Diagnostic(ErrorCode.ERR_NewTyvarWithArgs, "new T(out var z)").WithArguments("T").
WithLocation
(6, 17)
35829
Diagnostic(ErrorCode.ERR_NewTyvarWithArgs, "new T(out var z) {F1 = 1}").WithArguments("T").
WithLocation
(6, 17)
35897
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "int x1").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(9, 76)
36294
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "M2(out var x)").
WithLocation
(6, 13),
36297
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(7, 14)
36341
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "() => { [My(M2(out var x))] static string M2(out int x) => throw null; }").WithArguments("lambda expression", "string").
WithLocation
(6, 13),
36344
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(7, 14)
36381
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(6, 14),
36384
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M2(out var x)").WithArguments("parameter").
WithLocation
(6, 39)
36423
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(6, 14),
36426
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @"() => { static string M2(out int x, string y = M2(out var a, ""b"")) => throw null; }").WithArguments("parameter").
WithLocation
(6, 39)
36462
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "M2(out var x)").WithArguments("parameter").
WithLocation
(5, 39));
36500
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @"() => { static string M2(out int x, string y = M2(out var a, ""b"")) => throw null; }").WithArguments("parameter").
WithLocation
(5, 39));
Semantics\OverloadResolutionPerfTests.cs (8)
43
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("C.F(C0)", "C.F(C1)").
WithLocation
(3, 23));
69
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "x + null").WithArguments("+", "C", "<null>").
WithLocation
(3, 29));
552
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(6, 21),
555
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "i65535").
WithLocation
(65542, 16));
587
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "value").
WithLocation
(16395, 16));
618
Diagnostic(ErrorCode.ERR_InsufficientStack, "new").
WithLocation
(7, 15));
654
Diagnostic(ErrorCode.ERR_InsufficientStack, "new").
WithLocation
(10, 15));
787
Diagnostic(ErrorCode.WRN_UnreferencedVar, "tmp2").WithArguments("tmp2").
WithLocation
(9, 13));
Semantics\OverloadResolutionTests.cs (162)
392
Diagnostic(ErrorCode.ERR_AmbigCall, "M1").WithArguments("P.M1(P.DA, object)", "P.M1(P.DB, int)").
WithLocation
(15, 5));
519
Diagnostic(ErrorCode.ERR_AmbigCall, "h").WithArguments("C.h<T>(System.Func<System.Threading.Tasks.Task<T>>)", "C.h<T>(System.Func<MyTask<T>>)").
WithLocation
(9, 9)
568
Diagnostic(ErrorCode.ERR_AmbigCall, "k").WithArguments("C.k<T>(System.Func<YourTask<T>>)", "C.k<T>(System.Func<MyTask<T>>)").
WithLocation
(9, 9)
691
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "(MyTask, char, byte, short, ushort, int, uint, long, ulong, char, byte, short, ushort, int, uint, long, MyTask<T>)").WithArguments("Rest", "System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, T8>", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(10, 12));
807
Diagnostic(ErrorCode.WRN_ManagedAddr, "F0").WithArguments("C<MyTask<int>>").
WithLocation
(6, 28));
972
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(7, 19),
975
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A<int, MyTask>").WithArguments("A<,>").
WithLocation
(6, 12));
1251
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "J").WithArguments("C.J<T>(T, T)").
WithLocation
(8, 9));
1308
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "ToStrign").WithArguments("string", "ToStrign").
WithLocation
(26, 36),
1311
Diagnostic(ErrorCode.ERR_BadBinaryOps, "y == string.Empty").WithArguments("==", "int", "string").
WithLocation
(30, 34),
1314
Diagnostic(ErrorCode.ERR_BadBinaryOps, "y / 4.5").WithArguments("/", "string", "double").
WithLocation
(30, 53),
1317
Diagnostic(ErrorCode.ERR_BadBinaryOps, "z - 4.5").WithArguments("-", "string", "double").
WithLocation
(45, 53),
1320
Diagnostic(ErrorCode.ERR_BadBinaryOps, "z == string.Empty").WithArguments("==", "double", "string").
WithLocation
(45, 34));
1349
Diagnostic(ErrorCode.ERR_BadArgType, "x => x").WithArguments("1", "lambda expression", "ref System.Func<string, string>").
WithLocation
(14, 21),
1352
Diagnostic(ErrorCode.ERR_BadArgType, "x => x").WithArguments("1", "lambda expression", "out System.Func<string, string>").
WithLocation
(15, 21),
1355
Diagnostic(ErrorCode.ERR_BadArgType, "x => x").WithArguments("1", "lambda expression", "ref System.Linq.Expressions.Expression<System.Func<string, string>>").
WithLocation
(16, 22),
1358
Diagnostic(ErrorCode.ERR_BadArgType, "x => x").WithArguments("1", "lambda expression", "out System.Linq.Expressions.Expression<System.Func<string, string>>").
WithLocation
(17, 22));
1382
Diagnostic(ErrorCode.ERR_AmbigCall, "X").WithArguments("C.X(params string[])", "C.X<T>(T)").
WithLocation
(9, 9)
1472
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "ny").WithArguments("C.N<T>", "T", "Y").
WithLocation
(67, 36),
1475
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "Test1<string>").WithArguments("C.Test1<U>(U, C.N<U>)", "U", "string").
WithLocation
(17, 9),
1478
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "Test2").WithArguments("C.Test2<V>(V, C.N<V>)", "V", "string").
WithLocation
(21, 9),
1481
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "Test4").WithArguments("C.Test4<X>(X)", "X", "string").
WithLocation
(36, 9),
1484
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "Test5").WithArguments("C.N<T>", "T", "string").
WithLocation
(47, 9),
1487
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "string").WithArguments("C.L<S>", "S", "string").
WithLocation
(58, 17),
1490
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "Test6<L<string>>").WithArguments("C.L<S>", "S", "string").
WithLocation
(58, 9));
1495
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "ny").WithArguments("C.N<T>", "T", "Y").
WithLocation
(67, 36),
1498
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "Test1<string>").WithArguments("C.Test1<U>(U, C.N<U>)", "U", "string").
WithLocation
(17, 9),
1501
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "Test2").WithArguments("C.Test2<V>(V, C.N<V>)", "V", "string").
WithLocation
(21, 9),
1504
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "Test5").WithArguments("C.N<T>", "T", "string").
WithLocation
(47, 9),
1507
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "string").WithArguments("C.L<S>", "S", "string").
WithLocation
(58, 17),
1510
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "Test6<L<string>>").WithArguments("C.L<S>", "S", "string").
WithLocation
(58, 9));
1529
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Goo").WithArguments("C.Goo<T>(params T[])").
WithLocation
(6, 9));
1548
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "byte").WithArguments("byte", "1").
WithLocation
(7, 22),
1551
Diagnostic(ErrorCode.ERR_BadArgType, "VoidReturning()").WithArguments("1", "void", "bool").
WithLocation
(8, 34));
2784
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "M").WithArguments("Ref1Impl.M(ref int, int)", "Ref1Impl").
WithLocation
(13, 16));
2820
Diagnostic(ErrorCode.ERR_BadArgRef, "10").WithArguments("1", "ref").
WithLocation
(21, 25));
2856
Diagnostic(ErrorCode.ERR_BadArgRef, "x").WithArguments("1", "out").
WithLocation
(22, 25),
2859
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(22, 25));
2896
Diagnostic(ErrorCode.ERR_ComImportWithBase, "Attr2").WithArguments("Attr2").
WithLocation
(13, 7),
2899
Diagnostic(ErrorCode.ERR_ComImportWithUserCtor, "Attr2").
WithLocation
(15, 12),
2902
Diagnostic(ErrorCode.ERR_BadArgRef, "1").WithArguments("1", "ref").
WithLocation
(20, 20),
2905
Diagnostic(ErrorCode.ERR_BadArgRef, "1").WithArguments("1", "ref").
WithLocation
(21, 14),
2908
Diagnostic(ErrorCode.ERR_BadArgRef, "1").WithArguments("1", "ref").
WithLocation
(22, 8));
2944
Diagnostic(ErrorCode.ERR_BadArgRef, "x").WithArguments("1", "ref").
WithLocation
(7, 26));
3238
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "E").WithArguments("E").
WithLocation
(22, 11));
6491
Diagnostic(ErrorCode.ERR_AmbigCall, "overload1").WithArguments("Ambig.overload1(byte, goo)", "Ambig.overload1(int, baz)").
WithLocation
(6, 9),
6494
Diagnostic(ErrorCode.ERR_AmbigCall, "overload2").WithArguments("Ambig.overload2(int, baz)", "Ambig.overload2(byte, goo)").
WithLocation
(7, 9)
7559
Diagnostic(ErrorCode.ERR_BadArgType, @"""aaa""").WithArguments("1", "string", "int").
WithLocation
(8, 46)
7582
Diagnostic(ErrorCode.ERR_RbraceExpected, "[").
WithLocation
(8, 28),
7585
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(8, 36),
7588
Diagnostic(ErrorCode.ERR_UnexpectedSemicolon, ";").
WithLocation
(8, 37),
7591
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(10, 1),
7594
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System.Collections.Generic;").
WithLocation
(2, 1)
7626
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M<T>(System.Func<bool, T>)", "C.M<T>(System.Func<byte, T>)").
WithLocation
(8, 44)
7840
Diagnostic(ErrorCode.ERR_AmbigCall, "Test").WithArguments("A.B.X.Test(int)", "A.C.X.Test(int)").
WithLocation
(30, 19)
7920
Diagnostic(ErrorCode.ERR_AmbigCall, "Create").WithArguments("ConsoleApplication2.Program.Bar<T, V>.Create(System.Func<T, bool>)", "ConsoleApplication2.Program.Bar<T, V>.Create(System.Func<T, V>, params System.Func<T, bool>[])").
WithLocation
(25, 38)
8000
Diagnostic(ErrorCode.ERR_AmbigCall, "Create").WithArguments("ConsoleApplication2.Program.Bar<T, V>.Create(System.Func<T, bool>, params int[])", "ConsoleApplication2.Program.Bar<T, V>.Create(System.Func<T, V>)").
WithLocation
(25, 38)
8042
Diagnostic(ErrorCode.ERR_AmbigCall, "Create").WithArguments("ConsoleApplication2.Program.Bar<T, V>.Create(System.Func<T, V>)", "ConsoleApplication2.Program.Bar<T, V>.Create(System.Func<T, bool>, params int[])").
WithLocation
(25, 38)
8084
Diagnostic(ErrorCode.ERR_AmbigCall, "Create").WithArguments("ConsoleApplication2.Program.Bar<T, V>.Create(System.Func<T, V>, params System.Func<T, bool>[])", "ConsoleApplication2.Program.Bar<T, V>.Create(System.Func<T, bool>)").
WithLocation
(25, 38)
8124
Diagnostic(ErrorCode.ERR_AmbigCall, "Create").WithArguments("ConsoleApplication2.Program.Bar<T, V>.Create(System.Func<T, bool>, params int[])", "ConsoleApplication2.Program.Bar<T, V>.Create(System.Func<T, V>, params int[])").
WithLocation
(23, 38)
8320
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(16, 35),
8323
Diagnostic(ErrorCode.ERR_ParamsLast, "params SecurityAction p2").
WithLocation
(30, 22),
8326
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "A").WithArguments("A", "System.Security.Permissions.SecurityAttribute.CreatePermission()").
WithLocation
(14, 14),
8329
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "C").WithArguments("C", "System.Security.Permissions.SecurityAttribute.CreatePermission()").
WithLocation
(28, 14),
8332
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "System.Security.Permissions.SecurityAttribute.CreatePermission()").
WithLocation
(21, 14),
8335
Diagnostic(ErrorCode.ERR_ParamsMustBeArray, "params").
WithLocation
(16, 14),
8338
Diagnostic(ErrorCode.ERR_ParamsMustBeArray, "params").
WithLocation
(23, 22),
8341
Diagnostic(ErrorCode.ERR_ParamsMustBeArray, "params").
WithLocation
(30, 22),
8344
Diagnostic(ErrorCode.ERR_SecurityAttributeMissingAction, "B").
WithLocation
(7, 6),
8347
Diagnostic(ErrorCode.ERR_SecurityAttributeMissingAction, "C").
WithLocation
(8, 6),
8350
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "A").WithArguments("action", "System.Security.Permissions.CodeAccessSecurityAttribute.CodeAccessSecurityAttribute(System.Security.Permissions.SecurityAction)").
WithLocation
(16, 12),
8353
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "B").WithArguments("action", "System.Security.Permissions.CodeAccessSecurityAttribute.CodeAccessSecurityAttribute(System.Security.Permissions.SecurityAction)").
WithLocation
(23, 12),
8356
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "C").WithArguments("action", "System.Security.Permissions.CodeAccessSecurityAttribute.CodeAccessSecurityAttribute(System.Security.Permissions.SecurityAction)").
WithLocation
(30, 12));
8385
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "params int[]").
WithLocation
(12, 13));
8415
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "M").WithArguments("M", "method group").
WithLocation
(12, 36),
8418
Diagnostic(ErrorCode.ERR_MethodNameExpected, "a1").
WithLocation
(14, 36)
8637
Diagnostic(ErrorCode.ERR_AmbigCall, "Test2").WithArguments("VS2015CompilerBug.VS2015CompilerBug.Test2(int, int)", "VS2015CompilerBug.VS2015CompilerBug.Test2(int, int, int)").
WithLocation
(9, 39),
8640
Diagnostic(ErrorCode.ERR_AmbigCall, "Test3").WithArguments("VS2015CompilerBug.VS2015CompilerBug.Test3(int, int, int, int)", "VS2015CompilerBug.VS2015CompilerBug.Test3(int, int, int)").
WithLocation
(10, 39)
8698
Diagnostic(ErrorCode.ERR_AmbigCall, "M1").WithArguments("Test.M1(object, object, string)", "Test.M1(string, object, object)").
WithLocation
(14, 9)
8848
Diagnostic(ErrorCode.ERR_BadNamedArgument, "z").WithArguments("F1", "z").
WithLocation
(12, 24),
8851
Diagnostic(ErrorCode.ERR_BadNamedArgument, "z").WithArguments("F2", "z").
WithLocation
(13, 24),
8854
Diagnostic(ErrorCode.ERR_BadArgCount, "M1").WithArguments("M1", "2").
WithLocation
(15, 9),
8857
Diagnostic(ErrorCode.ERR_BadNamedArgument, "x").WithArguments("M2", "x").
WithLocation
(17, 15),
8860
Diagnostic(ErrorCode.ERR_BadNamedArgument, "x").WithArguments("M3", "x").
WithLocation
(18, 15),
8863
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "x").WithArguments("x").
WithLocation
(20, 15),
8866
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "x").WithArguments("x").
WithLocation
(21, 15),
8869
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "x").WithArguments("x").
WithLocation
(22, 15),
8872
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M7").WithArguments("w", "C.M7(int, int, int)").
WithLocation
(24, 9),
8875
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M9").WithArguments("w", "C.M9(int, int, int)").
WithLocation
(25, 9),
8878
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M8").WithArguments("w", "C.M8(int, int, int)").
WithLocation
(26, 9),
8881
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M10").WithArguments("w", "C.M10(int, int, int)").
WithLocation
(27, 9),
8884
Diagnostic(ErrorCode.ERR_BadNamedArgument, "z").WithArguments("M11", "z").
WithLocation
(29, 25),
8887
Diagnostic(ErrorCode.ERR_BadArgCount, "M12").WithArguments("M12", "4").
WithLocation
(31, 9),
8890
Diagnostic(ErrorCode.ERR_BadArgCount, "M13").WithArguments("M13", "4").
WithLocation
(32, 9),
8893
Diagnostic(ErrorCode.ERR_BadArgCount, "M14").WithArguments("M14", "3").
WithLocation
(34, 9),
8896
Diagnostic(ErrorCode.ERR_BadArgCount, "M15").WithArguments("M15", "2").
WithLocation
(36, 9),
8899
Diagnostic(ErrorCode.ERR_BadArgCount, "M16").WithArguments("M16", "2").
WithLocation
(37, 9),
8902
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "y").WithArguments("y").
WithLocation
(39, 22),
8905
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "y").WithArguments("y").
WithLocation
(40, 22),
8908
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "x").WithArguments("x").
WithLocation
(41, 16)
8978
Diagnostic(ErrorCode.ERR_AmbigCall, "Should").WithArguments("FluentAssertions.AssertionExtensions.Should<TKey, TValue>(System.Collections.Generic.IDictionary<TKey, TValue>)", "Extensions.TestExtensions.Should<TKey, TValue>(System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>)").
WithLocation
(34, 18)
9071
Diagnostic(ErrorCode.ERR_BadAccess, "M").WithArguments("D.M(int)").
WithLocation
(6, 11)
9108
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(Del1)", "Program.Method(Del2)").
WithLocation
(11, 9)
9132
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(Del1)", "Program.Method(Del2)").
WithLocation
(11, 9)
9156
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(Del1<string>)", "Program.Method(Del2<string>)").
WithLocation
(11, 9)
9181
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(Del1)", "Program.Method(Del2)").
WithLocation
(12, 9)
9304
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Assert").WithArguments("Test.Assert<T>(T, T)").
WithLocation
(17, 9),
9307
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Assert").WithArguments("Test.Assert<T>(T, T)").
WithLocation
(18, 9)
9343
Diagnostic(ErrorCode.ERR_BadArgType, "a").WithArguments("3", "A", "B").
WithLocation
(9, 22));
9378
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "a").WithArguments("A", "F", "E.F(B, System.Action<object>, A)", "B").
WithLocation
(9, 9));
9419
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("E.F(A)", "E.F(B)").
WithLocation
(28, 36)
9477
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "x").WithArguments("1", "ref").
WithLocation
(11, 20));
9500
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "x").WithArguments("1", "out").
WithLocation
(11, 20));
9544
Diagnostic(ErrorCode.ERR_BadArgType, "x").WithArguments("1", "System.Exception", "in int").
WithLocation
(11, 16)
9569
Diagnostic(ErrorCode.ERR_BadArgRef, "x").WithArguments("1", "ref").
WithLocation
(11, 16)
10037
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(in int, int)", "Program.Method(int, in int)").
WithLocation
(18, 9),
10040
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(in int, int)", "Program.Method(int, in int)").
WithLocation
(19, 9));
10071
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(int, in int)", "Program.Method(in int, int)").
WithLocation
(18, 9),
10074
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(int, in int)", "Program.Method(in int, int)").
WithLocation
(19, 9));
10105
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(in int, int, in int)", "Program.Method(int, in int, int)").
WithLocation
(18, 9),
10108
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(in int, int, in int)", "Program.Method(int, in int, int)").
WithLocation
(19, 9));
10139
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(int, in int, int)", "Program.Method(in int, int, in int)").
WithLocation
(18, 9),
10142
Diagnostic(ErrorCode.ERR_AmbigCall, "Method").WithArguments("Program.Method(int, in int, int)", "Program.Method(in int, int, in int)").
WithLocation
(19, 9));
10167
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "a + b").WithArguments("+", "Test", "Test").
WithLocation
(15, 27));
10192
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "a + b").WithArguments("+", "Test", "Test").
WithLocation
(15, 27));
10329
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "x").WithArguments("1", "in").
WithLocation
(17, 19));
10394
Diagnostic(ErrorCode.ERR_BadArgType, "x").WithArguments("1", "in byte", "in int").
WithLocation
(17, 19),
10397
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "2").
WithLocation
(20, 26),
10400
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "2").
WithLocation
(21, 25)
10491
Diagnostic(ErrorCode.ERR_BadArgType, "x").WithArguments("1", "in byte", "in int").
WithLocation
(27, 18),
10494
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "2").
WithLocation
(30, 25),
10497
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "2").
WithLocation
(31, 23));
10798
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(string)", "Program.M(System.Text.StringBuilder)").
WithLocation
(11, 9));
10875
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(in T, in T)").
WithLocation
(15, 9),
10878
Diagnostic(ErrorCode.ERR_BadArgType, "null").WithArguments("1", "<null>", "in int").
WithLocation
(16, 12),
10881
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(in T, in T)").
WithLocation
(17, 9),
10884
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M1").WithArguments("Program.RefLike").
WithLocation
(19, 9),
10887
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M1").WithArguments("Program.RefLike").
WithLocation
(20, 9),
10890
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(in T, in T)").
WithLocation
(22, 9),
10893
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(in T, in T)").
WithLocation
(23, 9)
10970
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Method").WithArguments("Program.Method<T>(in (T arg1, T arg2))").
WithLocation
(15, 9),
10973
Diagnostic(ErrorCode.ERR_BadArgType, "(null, 1)").WithArguments("1", "(<null>, int)", "in (int arg1, int arg2)").
WithLocation
(16, 16),
10976
Diagnostic(ErrorCode.ERR_BadTypeArgument, "default(RefLike)").WithArguments("Program.RefLike").
WithLocation
(17, 31),
10979
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Method").WithArguments("Program.Method<T>(in (T arg1, T arg2))").
WithLocation
(17, 9),
10982
Diagnostic(ErrorCode.ERR_BadTypeArgument, "rl").WithArguments("Program.RefLike").
WithLocation
(19, 17),
10985
Diagnostic(ErrorCode.ERR_BadTypeArgument, "rl").WithArguments("Program.RefLike").
WithLocation
(19, 21),
10988
Diagnostic(ErrorCode.ERR_BadTypeArgument, "Method").WithArguments("Program.RefLike").
WithLocation
(19, 9),
10991
Diagnostic(ErrorCode.ERR_BadTypeArgument, "rl").WithArguments("Program.RefLike").
WithLocation
(20, 20),
10994
Diagnostic(ErrorCode.ERR_BadTypeArgument, "rl").WithArguments("Program.RefLike").
WithLocation
(20, 24),
10997
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "(rl, rl)").
WithLocation
(20, 19),
11000
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "(y, x)").
WithLocation
(22, 19));
11024
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Method").WithArguments("Program.Method<T>(in T)").
WithLocation
(11, 9));
11050
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("Program.M1<T>(T, T)").
WithLocation
(13, 9)
11099
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "y").WithArguments("variable", "y").
WithLocation
(13, 10),
11102
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "1").
WithLocation
(14, 10)
11108
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "y").WithArguments("variable", "y").
WithLocation
(13, 10),
11111
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "1").
WithLocation
(14, 10)
11139
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "F").WithArguments("F", "System.Action<System.DateTime>").
WithLocation
(13, 30)
11232
Diagnostic(ErrorCode.ERR_DelegateRefMismatch, "F").WithArguments("Program.F(in System.DateTime)", "Program.D").
WithLocation
(16, 15)
11264
Diagnostic(ErrorCode.ERR_BadRetType, "F").WithArguments("Program.F(in System.DateTime)", "string").
WithLocation
(16, 15)
11468
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<object>").WithArguments("B.F<T>(T)", "T", "object").
WithLocation
(11, 35)
11496
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<object>").WithArguments("B.F<T>(T)", "T", "object").
WithLocation
(11, 9)
Semantics\PrimaryConstructorTests.cs (409)
63
Diagnostic(ErrorCode.ERR_FeatureInPreview, "()").WithArguments("primary constructors").
WithLocation
(3, 1)
89
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(3, 5)
96
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(3, 5)
103
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(3, 5)
118
Diagnostic(ErrorCode.ERR_FeatureInPreview, ";").WithArguments("primary constructors").
WithLocation
(3, 1)
160
Diagnostic(ErrorCode.ERR_FeatureInPreview, "()").WithArguments("primary constructors").
WithLocation
(3, 1)
185
Diagnostic(ErrorCode.ERR_FeatureInPreview, "()").WithArguments("primary constructors").
WithLocation
(3, 1),
188
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(4, 7)
195
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(4, 7)
202
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(4, 7)
221
Diagnostic(ErrorCode.ERR_FeatureInPreview, "()").WithArguments("primary constructors").
WithLocation
(3, 1)
246
Diagnostic(ErrorCode.ERR_FeatureInPreview, "()").WithArguments("primary constructors").
WithLocation
(3, 1),
249
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(4, 7)
256
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(4, 7)
263
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(4, 7)
283
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(3, 7),
286
Diagnostic(ErrorCode.ERR_FeatureInPreview, ";").WithArguments("primary constructors").
WithLocation
(4, 1)
293
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(3, 7)
300
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(3, 7)
317
Diagnostic(ErrorCode.ERR_FeatureInPreview, "()").WithArguments("primary constructors").
WithLocation
(3, 1)
396
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(1, 14),
399
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(1, 24)
542
Diagnostic(ErrorCode.ERR_BadMemberFlag, "C").WithArguments("static").
WithLocation
(4, 15)
550
Diagnostic(ErrorCode.ERR_ConstructorInStaticClass, "C").
WithLocation
(4, 14)
584
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "C").WithArguments("C", "C").
WithLocation
(5, 12),
587
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "C").
WithLocation
(5, 12)
618
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "C").
WithLocation
(5, 12)
674
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "C").
WithLocation
(5, 12)
750
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(int U, int V)").
WithLocation
(8, 17)
786
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(int U)").
WithLocation
(8, 17)
885
Diagnostic(ErrorCode.WRN_SequentialOnPartialClass, "C").WithArguments("C").
WithLocation
(5, 23)
1251
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(13, 15)
1297
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(17, 23)
1350
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(13, 23),
1353
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(17, 23)
1412
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(17, 23)
1501
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(13, 23)
1586
Diagnostic(ErrorCode.ERR_ObjectRequired, "Y").WithArguments("C.Y").
WithLocation
(11, 23)
1613
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(11, 23)
1639
Diagnostic(ErrorCode.ERR_NoDynamicPhantomOnBaseCtor, "(X)").
WithLocation
(11, 26)
1671
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(13, 13)
1697
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "C").WithArguments("X", "Base.Base(int)").
WithLocation
(11, 7),
1700
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X)").
WithLocation
(11, 15)
1740
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X)").
WithLocation
(10, 23)
1780
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X)").
WithLocation
(10, 22),
1783
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(10, 22)
1928
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y").WithArguments("y").
WithLocation
(12, 28),
1931
Diagnostic(ErrorCode.ERR_NameNotInContext, "z").WithArguments("z").
WithLocation
(15, 13)
1962
Diagnostic(ErrorCode.ERR_LocalDuplicate, "z").WithArguments("z").
WithLocation
(13, 32)
1997
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(GetInt(X, out var xx) + xx, Y)").WithArguments("Base", "2").
WithLocation
(11, 29),
2000
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "this").WithArguments("C", "4").
WithLocation
(13, 30)
2179
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(GetInt(X, out var xx) + xx, Y)").
WithLocation
(11, 15),
2182
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "base").WithArguments("Base", "4").
WithLocation
(13, 30)
2308
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "Base").WithArguments("Base").
WithLocation
(10, 19),
2311
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X)").
WithLocation
(10, 23)
2347
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error1").WithArguments("Error1").
WithLocation
(2, 20),
2350
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(0, 1)").
WithLocation
(2, 26),
2353
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error2").WithArguments("Error2").
WithLocation
(5, 20),
2356
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(5, 26),
2359
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error3").WithArguments("Error3").
WithLocation
(8, 20)
2399
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error").WithArguments("Error").
WithLocation
(2, 20),
2402
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("Error", "1").
WithLocation
(2, 25)
2418
Diagnostic(ErrorCode.ERR_DeriveFromDynamic, "dynamic").WithArguments("R").
WithLocation
(2, 19),
2421
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(2, 26)
2440
Diagnostic(ErrorCode.ERR_DerivingFromATyVar, "T").WithArguments("T").
WithLocation
(4, 23),
2443
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(4, 24)
2459
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(2, 25)
2475
Diagnostic(ErrorCode.ERR_DeriveFromEnumOrValueType, "System.ValueType").WithArguments("R", "System.ValueType").
WithLocation
(2, 19),
2478
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(2, 35)
2502
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(6, 13),
2505
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(0)").
WithLocation
(10, 14)
2565
Diagnostic(ErrorCode.ERR_InvalidPrimaryConstructorParameterReference, "X").WithArguments("int X").
WithLocation
(6, 20)
2599
Diagnostic(ErrorCode.ERR_InvalidPrimaryConstructorParameterReference, "X").WithArguments("int X").
WithLocation
(6, 19),
2602
Diagnostic(ErrorCode.ERR_NotConstantExpression, "X + 1").WithArguments("C.Z").
WithLocation
(6, 19)
2733
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "P2").WithArguments("P2").
WithLocation
(17, 19),
2736
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "P3").WithArguments("P3").
WithLocation
(19, 19),
2739
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "P4").WithArguments("P4").
WithLocation
(28, 17)
2755
Diagnostic(ErrorCode.ERR_ParamUnassigned, "R").WithArguments("P2").
WithLocation
(2, 8)
2849
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(3, 10)
2982
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "param").
WithLocation
(10, 6),
2985
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "property").WithArguments("property", "param").
WithLocation
(11, 6),
2988
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "C").WithArguments("C", "field").
WithLocation
(26, 6),
2991
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "D").WithArguments("D", "property, indexer").
WithLocation
(27, 6)
3031
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "param").
WithLocation
(8, 6),
3034
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "C").WithArguments("C", "field").
WithLocation
(20, 6)
5516
Diagnostic(ErrorCode.WRN_BadXMLRef, "I1").WithArguments("I1").
WithLocation
(3, 49),
5519
Diagnostic(ErrorCode.WRN_BadXMLRef, "I1").WithArguments("I1").
WithLocation
(3, 49),
5522
Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").
WithLocation
(7, 52),
5525
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "x").WithArguments("x").
WithLocation
(11, 22),
5528
Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").
WithLocation
(11, 52),
5531
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "I1").WithArguments("I1").
WithLocation
(16, 22),
5534
Diagnostic(ErrorCode.WRN_BadXMLRef, "I1").WithArguments("I1").
WithLocation
(16, 53)
5553
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "Error").WithArguments("Error").
WithLocation
(3, 18),
5556
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "Error").WithArguments("Error").
WithLocation
(3, 18)
5575
Diagnostic(ErrorCode.WRN_DuplicateParamTag, @"name=""I1""").WithArguments("I1").
WithLocation
(4, 12),
5578
Diagnostic(ErrorCode.WRN_DuplicateParamTag, @"name=""I1""").WithArguments("I1").
WithLocation
(4, 12)
5619
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "Error").WithArguments("Error", "C").
WithLocation
(2, 38),
5622
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "Error").WithArguments("Error", "C.C(int)").
WithLocation
(2, 38)
5646
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "I1").WithArguments("I1", "C.M1(int)").
WithLocation
(5, 42),
5649
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "x").WithArguments("x", "C.M2(int)").
WithLocation
(8, 42)
5807
Diagnostic(ErrorCode.WRN_MissingXMLComment, "E").WithArguments("E.E(int)").
WithLocation
(2, 23),
5810
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "I1").WithArguments("I1").
WithLocation
(5, 18)
5842
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "I1").WithArguments("I1").
WithLocation
(3, 18),
5845
Diagnostic(ErrorCode.WRN_MissingXMLComment, "E").WithArguments("E.E(int)").
WithLocation
(6, 23)
5878
Diagnostic(ErrorCode.WRN_MissingXMLComment, "C").WithArguments("C.C(int)").
WithLocation
(2, 23),
5881
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "I1").WithArguments("I1").
WithLocation
(5, 18),
5884
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(int I1)").
WithLocation
(6, 24)
5917
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(int I1)").
WithLocation
(6, 24)
5957
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "I1").WithArguments("I1").
WithLocation
(7, 18),
5960
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(int I1)").
WithLocation
(8, 24)
6000
Diagnostic(ErrorCode.WRN_MissingXMLComment, "E").WithArguments("E.E(int)").
WithLocation
(2, 23),
6003
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "S1").WithArguments("S1").
WithLocation
(5, 18),
6006
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(string S1)").
WithLocation
(6, 24)
6041
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "S1").WithArguments("S1").
WithLocation
(7, 18),
6044
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(string S1)").
WithLocation
(8, 24)
6128
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "O1").WithArguments("O1").
WithLocation
(11, 22),
6131
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "O1").WithArguments("O1").
WithLocation
(11, 22),
6134
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "P1").WithArguments("P1").
WithLocation
(12, 22),
6137
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "P1").WithArguments("P1").
WithLocation
(12, 22),
6140
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "C").WithArguments("C").
WithLocation
(13, 22),
6143
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "C").WithArguments("C").
WithLocation
(13, 22)
6175
Diagnostic(ErrorCode.ERR_ComImportWithUserCtor, "R1").
WithLocation
(6, 7)
6195
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "System.Runtime.InteropServices.ComImport").WithArguments("System.Runtime.InteropServices.ComImport", "class, interface").
WithLocation
(4, 2)
6268
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "A.M(out int a) + a").WithArguments("X").
WithLocation
(2, 18)
6496
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(4, 12),
6499
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[512]").WithArguments("System.Span<byte>").
WithLocation
(4, 31),
6502
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "ReadOnlySpan<int>").WithArguments("System.ReadOnlySpan<int>").
WithLocation
(5, 12),
6505
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[512]").WithArguments("System.Span<int>").
WithLocation
(5, 50));
7245
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(1000, 1)
7254
Diagnostic(ErrorCode.ERR_InvalidPrimaryConstructorParameterReference, "p1").WithArguments("int p1").
WithLocation
(2000, 1)
7263
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "p1").
WithLocation
(2000, 1)
7272
Diagnostic(ErrorCode.ERR_NotConstantExpression, "p1").WithArguments("C1.F").
WithLocation
(2000, 1)
7281
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "p1").WithArguments("x").
WithLocation
(2000, 1)
7290
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterInMember, "p1").
WithLocation
(2000, 1)
7302
Diagnostic(ErrorCode.ERR_ObjectRequired, "p1").WithArguments("C1.p1").
WithLocation
(2000, 1)
7312
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "p1").WithArguments("x").
WithLocation
(2000, 1)
7324
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "p1").
WithLocation
(2000, 1)
7339
Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "p1").
WithLocation
(2000, 1)
7348
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(1000, 1)
7357
Diagnostic(ErrorCode.ERR_NotConstantExpression, "p1").WithArguments("C1.F").
WithLocation
(2000, 1)
7367
Diagnostic(ErrorCode.ERR_NameNotInContext, "p1").WithArguments("p1").
WithLocation
(2000, 1)
7377
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "p1").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(1000, 1)
7387
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "p1").WithArguments("C1.p1").
WithLocation
(2000, 1)
7689
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(4, 15)
7761
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p1").WithArguments("int p1").
WithLocation
(17, 50)
8355
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(5, 24)
8411
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(5, 15),
8414
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p2").WithArguments("p2").
WithLocation
(5, 33),
8417
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "global").WithArguments("global").
WithLocation
(5, 48),
8420
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "C2").WithArguments("C2").
WithLocation
(5, 64)
8470
Diagnostic(ErrorCode.ERR_ConstantExpected, "p1").
WithLocation
(6, 21),
8473
Diagnostic(ErrorCode.ERR_ConstantExpected, "p2.F").
WithLocation
(6, 32)
8512
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 2:").WithArguments("case 2:").
WithLocation
(10, 13),
8515
Diagnostic(ErrorCode.ERR_ConstantExpected, "goto case p1;").
WithLocation
(11, 17)
8533
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "delegate").WithArguments("", "delegate").
WithLocation
(4, 38)
8869
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(1000, 15)
8929
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "_").WithArguments("_").
WithLocation
(2, 15)
8982
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(2, 15)
9004
Diagnostic(ErrorCode.ERR_MethodNameExpected, "nameof").
WithLocation
(4, 29)
9028
Diagnostic(ErrorCode.ERR_DuplicateParamName, "p1").WithArguments("p1").
WithLocation
(2, 22),
9031
Diagnostic(ErrorCode.ERR_AmbigMember, "p1").WithArguments("int p1", "C1 p1").
WithLocation
(6, 16)
9176
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(6, 28)
9211
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(6, 28)
9254
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(6, 28)
9399
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
9435
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
9474
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
9513
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
9549
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
9585
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
9624
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
9663
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
9738
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
9774
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
9814
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
9861
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 17)
9905
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 17)
10035
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 17)
10077
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 17)
10122
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 17)
10157
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 17)
10184
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 17),
10187
Diagnostic(ErrorCode.ERR_InvalidPrimaryConstructorParameterReference, "Color").WithArguments("Color Color").
WithLocation
(4, 20)
10222
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 17)
10249
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 17),
10252
Diagnostic(ErrorCode.ERR_InvalidPrimaryConstructorParameterReference, "Color").WithArguments("Color Color").
WithLocation
(4, 33)
10287
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 17)
10354
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9)
10385
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(5, 9)
10428
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 16)
10503
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(6, 28),
10506
Diagnostic(ErrorCode.ERR_ConstantExpected, "Color.Red").
WithLocation
(10, 22)
10546
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(6, 28)
10589
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(6, 28)
10774
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(6, 24)
10820
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(7, 18),
10823
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "Test").WithArguments("Program.Test<T>(T)", "T", "S1").
WithLocation
(15, 9)
10897
Diagnostic(ErrorCode.ERR_AmbigMember, "P").WithArguments("Color.P", "Color.P").
WithLocation
(6, 19)
10933
Diagnostic(ErrorCode.ERR_AmbigMember, "P").WithArguments("I1.P", "I2.P").
WithLocation
(19, 19)
11021
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(2, 15),
11024
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "P2").WithArguments("P2").
WithLocation
(7, 26)
11047
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(2, 15),
11050
Diagnostic(ErrorCode.ERR_NameNotInContext, "P1").WithArguments("P1").
WithLocation
(4, 27),
11053
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "P2").WithArguments("P2").
WithLocation
(7, 18),
11056
Diagnostic(ErrorCode.ERR_NameNotInContext, "p2").WithArguments("p2").
WithLocation
(9, 24)
11141
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Color").WithArguments("Color").
WithLocation
(2, 17)
11184
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(6, 9),
11187
Diagnostic(ErrorCode.ERR_AmbiguousPrimaryConstructorParameterAsColorColorReceiver, "Color").WithArguments("Color", "Color", "Color Color").
WithLocation
(7, 9)
11436
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p1").WithArguments("int p1").
WithLocation
(2, 25)
11473
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p1").WithArguments("int p1").
WithLocation
(2, 25),
11476
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p2").WithArguments("int p2").
WithLocation
(10, 28)
11552
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p1").WithArguments("int p1").
WithLocation
(2, 33),
11555
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p2").WithArguments("int p2").
WithLocation
(2, 40)
11607
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p1").WithArguments("int p1").
WithLocation
(2, 30)
11675
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p1").WithArguments("int[] p1").
WithLocation
(2, 27)
11766
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p1").WithArguments("int p1").
WithLocation
(2, 25),
11769
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p1").WithArguments("int p1").
WithLocation
(10, 25),
11772
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p1").WithArguments("int p1").
WithLocation
(18, 25)
11857
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p1").
WithLocation
(2000, 9),
11860
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "p1").
WithLocation
(4000, 9)
11887
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s.Buf").
WithLocation
(12, 26),
11890
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").
WithLocation
(13, 26),
11893
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s.Buf").
WithLocation
(14, 19),
11896
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").
WithLocation
(15, 19)
11921
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s.Buf").
WithLocation
(12, 18),
11924
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").
WithLocation
(13, 18)
11950
Diagnostic(ErrorCode.WRN_UnreferencedField, "s_f").WithArguments("C.s_f").
WithLocation
(9, 7)
11975
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s.Buf").
WithLocation
(12, 18),
11978
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").
WithLocation
(13, 18)
12000
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").
WithLocation
(7, 18),
12003
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f").
WithLocation
(8, 18)
12045
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(2, 22),
12048
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "s").WithArguments("s").
WithLocation
(2, 27)
12072
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(7, 21),
12075
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "s").WithArguments("s").
WithLocation
(7, 26)
12103
Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").
WithLocation
(4, 15),
12106
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").
WithLocation
(5, 15)
12135
Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").
WithLocation
(7, 36),
12138
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").
WithLocation
(7, 40)
12169
Diagnostic(ErrorCode.ERR_LocalCantBeFixedAndHoisted, "&x").WithArguments("x").
WithLocation
(6, 29),
12172
Diagnostic(ErrorCode.ERR_LocalCantBeFixedAndHoisted, "&s.f").WithArguments("s").
WithLocation
(7, 29),
12177
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(2, 22),
12180
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "s").WithArguments("s").
WithLocation
(2, 27)
12207
Diagnostic(ErrorCode.ERR_LocalCantBeFixedAndHoisted, "&x").WithArguments("x").
WithLocation
(9, 50),
12210
Diagnostic(ErrorCode.ERR_LocalCantBeFixedAndHoisted, "&s.f").WithArguments("s").
WithLocation
(10, 50),
12215
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(7, 21),
12218
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "s").WithArguments("s").
WithLocation
(7, 26)
12251
Diagnostic(ErrorCode.ERR_LocalCantBeFixedAndHoisted, "&x").WithArguments("x").
WithLocation
(4, 15),
12254
Diagnostic(ErrorCode.ERR_LocalCantBeFixedAndHoisted, "&s.f").WithArguments("s").
WithLocation
(5, 15)
12284
Diagnostic(ErrorCode.ERR_LocalCantBeFixedAndHoisted, "&x").WithArguments("x").
WithLocation
(12, 15),
12287
Diagnostic(ErrorCode.ERR_LocalCantBeFixedAndHoisted, "&s.f").WithArguments("s").
WithLocation
(13, 15)
12321
Diagnostic(ErrorCode.ERR_LocalCantBeFixedAndHoisted, "&x").WithArguments("x").
WithLocation
(7, 36),
12324
Diagnostic(ErrorCode.ERR_LocalCantBeFixedAndHoisted, "&s.f").WithArguments("s").
WithLocation
(7, 40)
12360
Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").
WithLocation
(6, 29),
12363
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").
WithLocation
(7, 29)
12371
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterCaptured, "x").
WithLocation
(6, 30)
12375
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterCaptured, "s").
WithLocation
(7, 30)
12412
Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").
WithLocation
(9, 50),
12415
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").
WithLocation
(10, 50)
12453
Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").
WithLocation
(4, 15),
12456
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").
WithLocation
(5, 15)
12464
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterCaptured, "x").
WithLocation
(9, 23)
12468
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterCaptured, "s").
WithLocation
(9, 27)
12506
Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").
WithLocation
(12, 15),
12509
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").
WithLocation
(13, 15)
12548
Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").
WithLocation
(7, 36),
12551
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s.f").
WithLocation
(7, 40)
12647
Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("x").
WithLocation
(2, 7),
12650
Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("s").
WithLocation
(2, 7),
12653
Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("y").
WithLocation
(2, 7),
12656
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(6, 13),
12659
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(6, 17),
12662
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(6, 23),
12665
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(11, 13),
12668
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(11, 19),
12671
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(11, 30),
12674
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(16, 13),
12677
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(16, 24),
12680
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(16, 28),
12683
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(21, 13),
12686
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(26, 13),
12689
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(31, 13)
12716
Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("x").
WithLocation
(2, 7),
12719
Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("s").
WithLocation
(2, 7),
12722
Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("y").
WithLocation
(2, 7),
12725
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x").WithArguments("x").
WithLocation
(4, 14),
12728
Diagnostic(ErrorCode.ERR_UseDefViolationField, "s.f").WithArguments("f").
WithLocation
(4, 18),
12731
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").
WithLocation
(4, 24)
12777
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").
WithLocation
(4, 14)
12801
Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("x").
WithLocation
(7, 7),
12804
Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("s").
WithLocation
(7, 7),
12807
Diagnostic(ErrorCode.ERR_ParamUnassigned, "C1").WithArguments("y").
WithLocation
(7, 7),
12810
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x").WithArguments("x").
WithLocation
(7, 51),
12813
Diagnostic(ErrorCode.ERR_UseDefViolationField, "s.f").WithArguments("f").
WithLocation
(7, 54),
12816
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").
WithLocation
(7, 59)
12882
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "y").WithArguments("y").
WithLocation
(4, 14)
12888
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "x").WithArguments("x").
WithLocation
(4, 14)
12924
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(14, 13)
12961
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(17, 13)
12995
Diagnostic(ErrorCode.WRN_AssignmentToLockOrDispose, "p1").WithArguments("p1").
WithLocation
(9, 13)
13036
Diagnostic(ErrorCode.WRN_AssignmentToLockOrDispose, "p1").WithArguments("p1").
WithLocation
(8, 13)
13183
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(6, 13),
13186
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(6, 17),
13189
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(6, 23),
13192
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(11, 13),
13195
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(11, 19),
13198
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(11, 30),
13201
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(16, 13),
13204
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(16, 24),
13207
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(16, 28),
13210
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(21, 13),
13213
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(26, 13),
13216
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(31, 13)
13266
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(6, 13),
13269
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(6, 17),
13272
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(6, 23),
13275
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(11, 13),
13278
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(11, 19),
13281
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(11, 30),
13284
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(16, 13),
13287
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(16, 24),
13290
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(16, 28),
13293
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(21, 13),
13296
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "s").WithArguments("s").
WithLocation
(26, 13),
13299
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(31, 13)
13357
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(2000, 9),
13360
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(2001, 9),
13363
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(5000, 9),
13366
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "y").
WithLocation
(5001, 9)
13437
Diagnostic(ErrorCode.ERR_StructLayoutCyclePrimaryConstructorParameter, "x").WithArguments("S1 x", "S1").
WithLocation
(2, 14)
13461
Diagnostic(ErrorCode.ERR_StructLayoutCyclePrimaryConstructorParameter, "x").WithArguments("S2 x", "S2").
WithLocation
(2, 14),
13464
Diagnostic(ErrorCode.ERR_StructLayoutCyclePrimaryConstructorParameter, "x").WithArguments("S1 x", "S1").
WithLocation
(7, 14)
13482
Diagnostic(ErrorCode.ERR_StructLayoutCyclePrimaryConstructorParameter, "x").WithArguments("S1<S1<int>> x", "S1<S1<int>>").
WithLocation
(2, 26)
13508
Diagnostic(ErrorCode.ERR_StructLayoutCyclePrimaryConstructorParameter, "x").WithArguments("S1<S2> x", "S1<S2>").
WithLocation
(7, 18)
13516
Diagnostic(ErrorCode.ERR_StructLayoutCyclePrimaryConstructorParameter, "x").WithArguments("S1<S2> x", "S1<S2>").
WithLocation
(2, 18)
13599
Diagnostic(ErrorCode.ERR_AssgReadonlyPrimaryConstructorParameter, "x").
WithLocation
(6, 9)
13650
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(2, 35)
13672
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "x").WithArguments("x").
WithLocation
(6, 9)
13701
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "x").WithArguments("x").
WithLocation
(12, 13)
13730
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "x").WithArguments("x").
WithLocation
(12, 13)
13786
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(7, 9),
13789
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "x").WithArguments("variable", "x").
WithLocation
(7, 9),
13792
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(11, 9),
13795
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "z").WithArguments("z").
WithLocation
(15, 9)
13840
Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").
WithLocation
(5, 19),
13843
Diagnostic(ErrorCode.ERR_FixedNeeded, "&y").
WithLocation
(6, 19)
13862
Diagnostic(ErrorCode.ERR_RefReturnReadonlyPrimaryConstructorParameter, "x").
WithLocation
(4, 25)
13882
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterCaptured, "x").
WithLocation
(4, 43),
13885
Diagnostic(ErrorCode.ERR_RefReturnReadonlyPrimaryConstructorParameter, "x").
WithLocation
(4, 43)
13924
Diagnostic(ErrorCode.ERR_RefReadonlyPrimaryConstructorParameter, "x").
WithLocation
(4, 25),
13927
Diagnostic(ErrorCode.ERR_RefReadonlyPrimaryConstructorParameter, "x").
WithLocation
(7, 25)
13996
Diagnostic(ErrorCode.ERR_AssgReadonlyPrimaryConstructorParameter2, "x.F").WithArguments("S2 x").
WithLocation
(6, 9)
14052
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(2, 33)
14079
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "x.F").WithArguments("x.F").
WithLocation
(6, 9)
14113
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "x.F").WithArguments("x.F").
WithLocation
(12, 13)
14147
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "x.F").WithArguments("x.F").
WithLocation
(12, 13)
14213
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(7, 9),
14216
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "x.F").WithArguments("variable", "x").
WithLocation
(7, 9),
14219
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "y").WithArguments("y").
WithLocation
(11, 9),
14222
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "z").WithArguments("z").
WithLocation
(15, 9)
14277
Diagnostic(ErrorCode.ERR_FixedNeeded, "&x.F").
WithLocation
(5, 19),
14280
Diagnostic(ErrorCode.ERR_FixedNeeded, "&y.F").
WithLocation
(6, 19)
14304
Diagnostic(ErrorCode.ERR_RefReturnReadonlyPrimaryConstructorParameter2, "x.F").WithArguments("S2 x").
WithLocation
(4, 25)
14329
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterCaptured, "x").
WithLocation
(4, 43),
14332
Diagnostic(ErrorCode.ERR_RefReturnReadonlyPrimaryConstructorParameter2, "x.F").WithArguments("S2 x").
WithLocation
(4, 43)
14376
Diagnostic(ErrorCode.ERR_RefReadonlyPrimaryConstructorParameter2, "x.F").WithArguments("S2 x").
WithLocation
(4, 25),
14379
Diagnostic(ErrorCode.ERR_RefReadonlyPrimaryConstructorParameter2, "x.F").WithArguments("S2 x").
WithLocation
(7, 25)
14436
Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "x").WithArguments("x").
WithLocation
(4, 34)
14462
Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "x.F").WithArguments("x.F").
WithLocation
(4, 34)
14484
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "x").WithArguments("x").
WithLocation
(6, 9)
14503
Diagnostic(ErrorCode.ERR_RefReturnPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(4, 34)
14530
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, "x").WithArguments("x").
WithLocation
(6, 9),
14533
Diagnostic(ErrorCode.ERR_AssgReadonlyPrimaryConstructorParameter2, "x.F").WithArguments("S2 x").
WithLocation
(6, 9)
14562
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, "x").WithArguments("x").
WithLocation
(6, 9),
14565
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "x.F").WithArguments("x.F").
WithLocation
(6, 9)
14584
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "x").WithArguments("x").
WithLocation
(4, 37)
14603
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "x").
WithLocation
(4, 45)
14636
Diagnostic(ErrorCode.ERR_RefReturnParameter, "x").WithArguments("x").
WithLocation
(4, 25),
14639
Diagnostic(ErrorCode.ERR_RefReturnParameter, "x").WithArguments("x").
WithLocation
(5, 34),
14642
Diagnostic(ErrorCode.ERR_RefReturnParameter, "x").WithArguments("x").
WithLocation
(11, 34),
14645
Diagnostic(ErrorCode.ERR_RefReturnParameter, "x").WithArguments("x").
WithLocation
(12, 43),
14648
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y").WithArguments("C1.y").
WithLocation
(14, 34),
14651
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y").WithArguments("C1.y").
WithLocation
(15, 43),
14654
Diagnostic(ErrorCode.ERR_RefReturnParameter, "z").WithArguments("z").
WithLocation
(17, 34),
14657
Diagnostic(ErrorCode.ERR_RefReturnParameter, "z").WithArguments("z").
WithLocation
(18, 43)
14677
Diagnostic(ErrorCode.ERR_EscapeCall, "M2(ref x)").WithArguments("C1.M2(ref int)", "x").
WithLocation
(4, 25),
14680
Diagnostic(ErrorCode.ERR_RefReturnParameter, "x").WithArguments("x").
WithLocation
(4, 32)
14820
Diagnostic(ErrorCode.WRN_CapturedPrimaryConstructorParameterPassedToBase, "p1").WithArguments("int p1").
WithLocation
(17, 42)
15047
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(2, 15)
15077
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(2, 15)
15123
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterInMember, "p1").
WithLocation
(4, 54),
15126
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterInMember, "p2").
WithLocation
(5, 47)
15146
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterCaptured, "p1").
WithLocation
(4, 32)
15263
Diagnostic(ErrorCode.ERR_AnonDelegateCantUse, "p1").WithArguments("p1").
WithLocation
(2000, 1)
15271
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseRefLike, "p1").WithArguments("p1").
WithLocation
(2000, 1)
15279
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRef, "p1").WithArguments("p1").
WithLocation
(2000, 1)
15287
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, "p1").WithArguments("p1").
WithLocation
(2000, 1)
15323
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, "r").WithArguments("r").
WithLocation
(9, 17),
15326
Diagnostic(ErrorCode.ERR_UnsupportedPrimaryConstructorParameterCapturingRefLike, "r").WithArguments("r").
WithLocation
(10, 25)
15358
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "p4").WithArguments("p4").
WithLocation
(2, 62),
15361
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "p1").WithArguments("p1").
WithLocation
(4, 61),
15364
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "p2").WithArguments("p2").
WithLocation
(5, 54),
15367
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "p3").WithArguments("p3").
WithLocation
(6, 39),
15370
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p1").WithArguments("p1").
WithLocation
(9, 14),
15373
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "p2").WithArguments("p2").
WithLocation
(9, 22)
15403
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "X").WithArguments("X").
WithLocation
(2, 13),
15406
Diagnostic(ErrorCode.ERR_ObjectRequired, "X.ToString").WithArguments("object.ToString()").
WithLocation
(6, 9),
15409
Diagnostic(ErrorCode.ERR_ObjectRequired, "X.M").WithArguments("C.X.M()").
WithLocation
(7, 9)
15430
Diagnostic(ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, "this").
WithLocation
(6, 27)
Semantics\QueryTests.cs (72)
1823
Diagnostic(ErrorCode.ERR_NameNotInContext, "nums").WithArguments("nums").
WithLocation
(8, 39),
1826
Diagnostic(ErrorCode.ERR_NameNotInContext, "nums").WithArguments("nums").
WithLocation
(9, 29)
1894
Diagnostic(ErrorCode.ERR_TypeExpected, "null").
WithLocation
(8, 66),
1897
Diagnostic(ErrorCode.ERR_IdentifierExpected, "null").
WithLocation
(8, 66),
1900
Diagnostic(ErrorCode.ERR_SyntaxError, "null").WithArguments("in").
WithLocation
(8, 66)
2769
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "string.Empty.Cast<GC>").WithArguments("System.GC").
WithLocation
(9, 18),
2772
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "from GC x in string.Empty").WithArguments("System.GC").
WithLocation
(10, 28)
2801
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "string.Empty.Cast<GC>").WithArguments("System.GC").
WithLocation
(9, 18),
2804
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "from GC x in string.Empty").WithArguments("System.GC").
WithLocation
(10, 28)
2824
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "Cast<GC>").WithArguments("System.GC").
WithLocation
(9, 31),
2827
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "from GC x in string.Empty").WithArguments("System.GC").
WithLocation
(10, 28)
2868
Diagnostic(ErrorCode.ERR_BadSKunknown, "Main").WithArguments("Program.Main()", "method").
WithLocation
(9, 38),
2871
Diagnostic(ErrorCode.ERR_BadSKunknown, "Main").WithArguments("Program.Main()", "method").
WithLocation
(10, 18)
2964
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type parameter").
WithLocation
(9, 27)
3088
Diagnostic(ErrorCode.ERR_QueryNoProvider, "list").WithArguments("System.Collections.ArrayList", "Select").
WithLocation
(10, 41)
3207
Diagnostic(ErrorCode.ERR_NullNotValid, "select x").
WithLocation
(7, 42)
3254
Diagnostic(ErrorCode.ERR_QueryNoProvider, "select x").WithArguments("anonymous method", "Select").
WithLocation
(7, 44)
3339
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(34, 32)
3735
Diagnostic(ErrorCode.ERR_UnsupportedTransparentIdentifierAccess, "x").WithArguments("x", "int").
WithLocation
(27, 20)
3772
Diagnostic(ErrorCode.ERR_QueryNoProvider, "select a + 1").WithArguments("Test", "Select").
WithLocation
(6, 34)
3811
Diagnostic(ErrorCode.ERR_QueryNoProvider, "where a > 0").WithArguments("Test", "Where").
WithLocation
(7, 34)
3851
Diagnostic(ErrorCode.ERR_QueryNoProvider, "select a + 1").WithArguments("Test", "Select").
WithLocation
(6, 34),
3854
Diagnostic(ErrorCode.ERR_QueryNoProvider, "where a > 0").WithArguments("Test", "Where").
WithLocation
(7, 34)
3917
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(10, 53),
3920
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(11, 57),
3923
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(12, 53),
3926
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(13, 57),
3929
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(14, 51),
3932
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(15, 49),
3935
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(17, 58),
3938
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(18, 67),
3941
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(19, 51),
3944
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(20, 54),
3947
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(21, 49),
3950
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(22, 54)
3988
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(10, 54),
3991
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(11, 58),
3994
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(12, 54),
3997
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(13, 58),
4000
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(14, 52),
4003
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(15, 50),
4006
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(17, 59),
4009
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(18, 68),
4012
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(19, 52),
4015
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(20, 55),
4018
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(21, 50),
4021
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(22, 55)
4076
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(10, 50),
4079
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(11, 54),
4082
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(12, 50),
4085
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(13, 54),
4088
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(14, 48),
4091
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(15, 46),
4094
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(17, 55),
4097
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(18, 64),
4100
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(19, 48),
4103
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(20, 51),
4106
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(21, 46),
4109
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "z").WithArguments("declaration of expression variables in member initializers and queries", "7.3").
WithLocation
(22, 51)
4159
Diagnostic(ErrorCode.ERR_BadSKunknown, "ConsoleApp").WithArguments("ParentNamespace.ConsoleApp", "namespace").
WithLocation
(13, 35),
4162
Diagnostic(ErrorCode.ERR_BadSKunknown, "ParentNamespace.ConsoleApp").WithArguments("ParentNamespace.ConsoleApp", "namespace").
WithLocation
(14, 35),
4165
Diagnostic(ErrorCode.ERR_BadSKunknown, "NSAlias").WithArguments("ParentNamespace.ConsoleApp", "namespace").
WithLocation
(15, 45)
4228
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "a").WithArguments("a").
WithLocation
(10, 43)
4447
Diagnostic(ErrorCode.ERR_ObjectRequired, "from object a in IEnumerable").WithArguments("System.Linq.Enumerable.Cast<object>(System.Collections.IEnumerable)").
WithLocation
(10, 22),
4450
Diagnostic(ErrorCode.ERR_QueryNoProviderCastable, "IEnumerable").WithArguments("System.Collections.IEnumerable", "Select", "b").
WithLocation
(11, 32),
4453
Diagnostic(ErrorCode.ERR_ObjectRequired, "from int c in IEnumerable<int>").WithArguments("System.Linq.Enumerable.Cast<int>(System.Collections.IEnumerable)").
WithLocation
(13, 22),
4456
Diagnostic(ErrorCode.ERR_QueryNoProvider, "select 4").WithArguments("System.Collections.Generic.IEnumerable<int>", "Select").
WithLocation
(14, 49),
4459
Diagnostic(ErrorCode.ERR_ObjectRequired, "from object d in T").WithArguments("System.Linq.Enumerable.Cast<object>(System.Collections.IEnumerable)").
WithLocation
(16, 22),
4462
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type parameter").
WithLocation
(16, 39),
4465
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type parameter").
WithLocation
(17, 32),
4468
Diagnostic(ErrorCode.ERR_QueryNoProvider, "T").WithArguments("T", "Select").
WithLocation
(17, 32)
4494
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "c.Prop").WithArguments("C.Prop").
WithLocation
(6, 22)
Semantics\RawInterpolationTests.cs (56)
111
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(5, 75));
130
").
WithLocation
(5, 70),
133
Diagnostic(ErrorCode.ERR_UnterminatedRawString, "}").
WithLocation
(6, 5),
136
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(6, 6),
139
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 6),
142
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 2));
160
Diagnostic(ErrorCode.ERR_UnterminatedRawString, "}").
WithLocation
(6, 5),
163
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(6, 6),
166
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 6),
169
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 2));
187
Diagnostic(ErrorCode.ERR_UnclosedExpressionHole, "{").
WithLocation
(5, 63),
190
Diagnostic(ErrorCode.ERR_OpenEndedComment, "").
WithLocation
(5, 73),
193
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(7, 2),
196
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 2),
199
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 2),
202
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 2));
321
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(12, 1));
347
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(12, 1));
415
").
WithLocation
(6, 39),
418
Diagnostic(ErrorCode.ERR_UnterminatedRawString, "}").
WithLocation
(7, 5),
421
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(7, 6),
424
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 6),
427
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(8, 2));
443
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(5, 21),
446
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(5, 22),
449
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 22),
452
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 22));
470
Diagnostic(ErrorCode.ERR_EmptyFormatSpecifier, ":").
WithLocation
(6, 34));
488
Diagnostic(ErrorCode.ERR_TrailingWhitespaceInFormatSpecifier, ":d ").
WithLocation
(6, 34));
508
").
WithLocation
(6, 34));
526
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(6, 34));
544
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(6, 34));
666
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1E10").WithArguments("double", "int").
WithLocation
(5, 24),
669
Diagnostic(ErrorCode.ERR_ConstantExpected, "1E10").
WithLocation
(5, 24),
672
Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)1E10").WithArguments("10000000000", "int").
WithLocation
(6, 24),
675
Diagnostic(ErrorCode.ERR_ConstantExpected, "(int)1E10").
WithLocation
(6, 24));
897
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"$""""""test""""""").WithArguments("System.Runtime.CompilerServices.FormattableStringFactory").
WithLocation
(5, 26));
955
Diagnostic(ErrorCode.WRN_AlignmentMagnitude, "32768").WithArguments("32768", "32767").
WithLocation
(5, 44),
958
Diagnostic(ErrorCode.WRN_AlignmentMagnitude, "-(32768)").WithArguments("-32768", "32767").
WithLocation
(6, 43),
961
Diagnostic(ErrorCode.WRN_AlignmentMagnitude, "int.MaxValue").WithArguments("2147483647", "32767").
WithLocation
(9, 43),
964
Diagnostic(ErrorCode.WRN_AlignmentMagnitude, "int.MinValue").WithArguments("-2147483648", "32767").
WithLocation
(10, 43));
983
Diagnostic(ErrorCode.ERR_BadSKunknown, "String").WithArguments("string", "type").
WithLocation
(5, 37));
1003
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "x=>3").
WithLocation
(5, 37),
1006
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "Program.Main").WithArguments("Main", "object").
WithLocation
(6, 37),
1009
Diagnostic(ErrorCode.ERR_NoImplicitConv, "Program.Main(null)").WithArguments("void", "object").
WithLocation
(7, 37));
1039
Diagnostic(ErrorCode.ERR_NoSuchMember, @"$""""""X = { 1 } """"""").WithArguments("string", "Format").
WithLocation
(15, 21));
1071
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""""""X = { 1 } """"""").WithArguments("bool", "string").
WithLocation
(17, 21));
1184
Diagnostic(ErrorCode.ERR_EmptyFormatSpecifier, ":").
WithLocation
(6, 41),
1187
Diagnostic(ErrorCode.ERR_TooManyCloseBracesForRawString, "}").
WithLocation
(6, 43));
1225
Diagnostic(ErrorCode.ERR_CircConstValue, "a").WithArguments("C.a").
WithLocation
(3, 19),
1228
Diagnostic(ErrorCode.ERR_NotNullConstRefField, "a").WithArguments("C.a", "dynamic").
WithLocation
(3, 23),
1231
Diagnostic(ErrorCode.ERR_ConstantExpected, "a").
WithLocation
(4, 23));
1285
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""""""{""""}""""""").WithArguments("System.FormattableString", "System.IFormattable").
WithLocation
(23, 33));
1303
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, @"$""""""hello""""""").WithArguments("interpolated strings", "6").
WithLocation
(6, 16));
1322
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, @"""""""world""""""").WithArguments("raw string literals", "11.0").
WithLocation
(6, 24),
1325
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, @"$""""""hello + {other}""""""").WithArguments("interpolated strings", "6").
WithLocation
(7, 16));
Semantics\RawInterpolationTests_Handler.cs (194)
594
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""""""{span}""""""").WithArguments("raw string literals", "11.0").
WithLocation
(4, 19),
597
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "span").WithArguments("interpolated string handlers", "10.0").
WithLocation
(4, 24));
1658
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""""{(object)1}""""""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler", "2").
WithLocation
(1, 5),
1661
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""""{(object)1}""""""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler", "3").
WithLocation
(1, 5));
1687
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""""{(object)1}""""""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler", "2").
WithLocation
(1, 5),
1690
Diagnostic(ErrorCode.ERR_BadCtorArgCount, @"$""""""{(object)1}""""""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler", "3").
WithLocation
(1, 5));
1716
Diagnostic(ErrorCode.ERR_BadArgRef, @"$""""""{(object)1}""""""").WithArguments("1", "ref").
WithLocation
(1, 5));
1747
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"$""""""{(object)1}""""""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler", "ToStringAndClear").
WithLocation
(1, 5));
1774
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, @"$""""""{(object)1}""""""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.DefaultInterpolatedStringHandler(int, int)", "Constructor is obsolete").
WithLocation
(1, 5));
1801
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "base").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "AppendLiteral is obsolete").
WithLocation
(1, 9));
1828
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "{(object)1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted<T>(T, int, string)", "AppendFormatted is obsolete").
WithLocation
(1, 13));
1927
Diagnostic(ErrorCode.ERR_BindToBogus, "{(object)1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted<T>(T, int, string)").
WithLocation
(1, 9));
2002
Diagnostic(ErrorCode.ERR_BindToBogus, @"$""""""{(object)1}""""""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.ToStringAndClear()").
WithLocation
(1, 5));
2030
Diagnostic(ErrorCode.ERR_BadTypeArgument, "{i}").WithArguments("int*").
WithLocation
(6, 13),
2033
Diagnostic(ErrorCode.ERR_BadTypeArgument, "{s}").WithArguments("S").
WithLocation
(6, 26));
2040
Diagnostic(ErrorCode.ERR_BadTypeArgument, "{i}").WithArguments("int*").
WithLocation
(6, 13),
2043
Diagnostic(ErrorCode.ERR_BadTypeArgument, "{s}").WithArguments("S").
WithLocation
(6, 16));
2125
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""""""{(null, default)}""""""").WithArguments("raw string literals", "11.0").
WithLocation
(1, 26),
2128
Diagnostic(ErrorCode.ERR_BadArgType, "(null, default)").WithArguments("1", "(<null>, default)", "object").
WithLocation
(1, 31),
2131
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(null, default)").WithArguments("interpolated string handlers", "10.0").
WithLocation
(1, 31),
2134
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""""""{new()}""""""").WithArguments("raw string literals", "11.0").
WithLocation
(1, 53),
2137
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new()").WithArguments("string", "0").
WithLocation
(1, 58));
2144
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""""""{(null, default)}{new()}""""""").WithArguments("raw string literals", "11.0").
WithLocation
(1, 26),
2147
Diagnostic(ErrorCode.ERR_BadArgType, "(null, default)").WithArguments("1", "(<null>, default)", "object").
WithLocation
(1, 31),
2150
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(null, default)").WithArguments("interpolated string handlers", "10.0").
WithLocation
(1, 31),
2153
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "new()").WithArguments("string", "0").
WithLocation
(1, 48));
2511
Diagnostic(ErrorCode.ERR_BadTypeArgument, "{s}").WithArguments("S").
WithLocation
(5, 23));
2612
Diagnostic(ErrorCode.ERR_BadArgType, "Text").WithArguments("1", "string", "CustomStruct").
WithLocation
(4, 23));
2648
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)").
WithLocation
(4, 23),
2651
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)").
WithLocation
(4, 37));
2658
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)").
WithLocation
(4, 23),
2661
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)").
WithLocation
(4, 27));
2684
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Literal").WithArguments("CustomHandler", "AppendLiteral").
WithLocation
(4, 23),
2687
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "Literal").WithArguments("?.()").
WithLocation
(4, 23),
2690
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "{1}").WithArguments("CustomHandler", "AppendFormatted").
WithLocation
(4, 30),
2693
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnMalformed, "{1}").WithArguments("?.()").
WithLocation
(4, 30));
2709
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"$""""""Literal{1}""""""").WithArguments("System.Boolean").
WithLocation
(1, 19));
2768
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").
WithLocation
(4, 37),
2771
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").
WithLocation
(5, 36));
2778
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "bool").
WithLocation
(4, 27),
2781
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "void").
WithLocation
(5, 26));
2818
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").
WithLocation
(4, 37),
2821
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").
WithLocation
(5, 36));
2828
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "{1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(object)", "void").
WithLocation
(4, 27),
2831
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerMethodReturnInconsistent, "Text").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "bool").
WithLocation
(5, 26));
3222
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "Attr").WithArguments("c", "CustomHandler").
WithLocation
(4, 2));
3285
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(CustomHandler1)", "C.M(CustomHandler2)").
WithLocation
(2, 3));
3414
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M").WithArguments("C.M<T>(T)", "CustomHandler", "T", "string").
WithLocation
(2, 3));
3436
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(T, T)").
WithLocation
(2, 3),
3439
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(T, T)").
WithLocation
(3, 3));
3461
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(T, System.Func<T>)").
WithLocation
(3, 3));
3779
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""""""{new S { Field = """"""Field"""""" }}""""""").WithArguments("raw string literals", "11.0").
WithLocation
(3, 11),
3782
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"""""""Field""""""").WithArguments("raw string literals", "11.0").
WithLocation
(3, 32),
3787
""""""").WithArguments("raw string literals", "11.0").
WithLocation
(3, 52));
3794
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""""""{new S { Field = """"""Field"""""" }}""""""").WithArguments("raw string literals", "11.0").
WithLocation
(3, 11),
3797
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"""""""Field""""""").WithArguments("raw string literals", "11.0").
WithLocation
(3, 32));
4052
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(System.Func<bool, string>)", "C.M(System.Func<bool, CustomHandler>)").
WithLocation
(3, 3));
4082
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""""""{1}""""""").WithArguments("raw string literals", "11.0").
WithLocation
(5, 17),
4085
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""""""{2}""""""").WithArguments("raw string literals", "11.0").
WithLocation
(5, 30));
4092
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, @"$""""""{1}""""""").WithArguments("raw string literals", "11.0").
WithLocation
(5, 17));
4102
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(System.Action<string>)", "C.M(System.Action<CustomHandler>)").
WithLocation
(3, 3));
4109
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(System.Action<string>)", "C.M(System.Action<CustomHandler>)").
WithLocation
(3, 3));
4261
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"(bool)(object)false ? default(CustomHandler) : " + expression).WithArguments("string", "CustomHandler").
WithLocation
(4, 19));
4346
Diagnostic(ErrorCode.ERR_AmbigQM, @"(bool)(object)false ? default(CustomHandler) : " + expression).WithArguments("CustomHandler", "string").
WithLocation
(4, 9));
4429
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(4, 29));
4663
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(4, 29));
4789
Diagnostic(ErrorCode.ERR_BadArgRef, expression).WithArguments("1", "ref").
WithLocation
(2, 3),
4792
Diagnostic(ErrorCode.ERR_RefLvalueExpected, expression).
WithLocation
(3, 7));
5074
Diagnostic(ErrorCode.ERR_TypeIsNotAnInterpolatedStringHandlerType, "InterpolatedStringHandlerArgumentAttribute").WithArguments("string").
WithLocation
(expression.Contains('+') ? 12 : 10, 27));
5139
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "string").
WithLocation
(expression.Contains('+') ? 12 : 10, 70));
5176
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 5),
5179
Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""NonExistant"")").WithArguments("NonExistant", "C.M(CustomHandler)").
WithLocation
(expression.Contains('+') ? 12 : 10, 27));
5213
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 5),
5218
""""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 5),
5223
""""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 5));
5263
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 8),
5266
Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""i"", ""NonExistant"")").WithArguments("NonExistant", "C.M(int, CustomHandler)").
WithLocation
(expression.Contains('+') ? 12 : 10, 34));
5300
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 8),
5305
""""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 8),
5310
""""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 8));
5350
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 8),
5353
Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""NonExistant1"", ""NonExistant2"")").WithArguments("NonExistant1", "C.M(int, CustomHandler)").
WithLocation
(expression.Contains('+') ? 12 : 10, 34),
5356
Diagnostic(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute(""NonExistant1"", ""NonExistant2"")").WithArguments("NonExistant2", "C.M(int, CustomHandler)").
WithLocation
(expression.Contains('+') ? 12 : 10, 34));
5390
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 8),
5395
""""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 8),
5400
""""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 8));
5440
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 8),
5443
Diagnostic(ErrorCode.ERR_CannotUseSelfAsInterpolatedStringHandlerArgument, @"InterpolatedStringHandlerArgumentAttribute(""c"")").
WithLocation
(expression.Contains('+') ? 12 : 10, 34));
5477
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 5),
5482
""""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 5),
5487
""""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 5));
5527
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 8),
5530
Diagnostic(ErrorCode.ERR_NullInvalidInterpolatedStringHandlerArgumentName, "InterpolatedStringHandlerArgumentAttribute(new string[] { null })").
WithLocation
(expression.Contains('+') ? 12 : 10, 34));
5564
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 8),
5569
""""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 8),
5574
""""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 8));
5611
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 8),
5616
""""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 8),
5621
""""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 8));
5658
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 8),
5663
""""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 8),
5668
""""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 8));
5708
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 5),
5711
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.M(CustomHandler)").
WithLocation
(expression.Contains('+') ? 12 : 10, 27));
5747
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 5),
5752
""""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 5),
5757
""""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 5));
5797
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 11),
5800
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgumentAttribute("""")").WithArguments("C.C(CustomHandler)").
WithLocation
(expression.Contains('+') ? 12 : 10, 15));
5836
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 11),
5841
""""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 11),
5846
""""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 11));
5886
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentAttributeMalformed, expression).WithArguments("CustomHandler t", "CustomHandler").
WithLocation
(4, 20),
5889
Diagnostic(ErrorCode.ERR_TypeIsNotAnInterpolatedStringHandlerType, "InterpolatedStringHandlerArgumentAttribute").WithArguments("T").
WithLocation
(expression.Contains('+') ? 12 : 10, 27));
5929
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(1, 20),
5934
""""""").WithArguments("CustomHandler", "2").
WithLocation
(1, 20),
5939
""""""").WithArguments("CustomHandler", "3").
WithLocation
(1, 20));
6016
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentOptionalNotSpecified, expression).WithArguments("i", "c").
WithLocation
(4, 5),
6020
Diagnostic(ErrorCode.WRN_ParameterOccursAfterInterpolatedStringHandlerParameter, @"InterpolatedStringHandlerArgumentAttribute(""i"")").WithArguments("i", "c").
WithLocation
(expression.Contains('+') ? 12 : 10, 27));
6058
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerArgumentOptionalNotSpecified, expression).WithArguments("i", "c").
WithLocation
(4, 5),
6062
Diagnostic(ErrorCode.WRN_ParameterOccursAfterInterpolatedStringHandlerParameter, @"InterpolatedStringHandlerArgumentAttribute(""i"")").WithArguments("i", "c").
WithLocation
(expression.Contains('+') ? 12 : 10, 27));
6093
Diagnostic(ErrorCode.ERR_BadCtorArgCount, expression).WithArguments("CustomHandler", "3").
WithLocation
(1, 8),
6096
Diagnostic(ErrorCode.ERR_BadCtorArgCount, expression).WithArguments("CustomHandler", "4").
WithLocation
(1, 8));
6145
Diagnostic(ErrorCode.ERR_BadAccess, expression).WithArguments("CustomHandler.CustomHandler(int, int, int)").
WithLocation
(1, 8));
6156
Diagnostic(ErrorCode.ERR_BadCtorArgCount, expression).WithArguments("CustomHandler", "4").
WithLocation
(1, 8),
6159
Diagnostic(ErrorCode.ERR_BadCtorArgCount, expression).WithArguments("CustomHandler", "3").
WithLocation
(1, 8));
6165
Diagnostic(ErrorCode.ERR_BadAccess, expression).WithArguments("CustomHandler.CustomHandler(int, int, int)").
WithLocation
(1, 8));
6219
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("3", "ref").
WithLocation
(5, 9));
6236
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "out").
WithLocation
(5, 9));
6253
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("3", "ref").
WithLocation
(5, 9));
6270
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("3", "in").
WithLocation
(5, 8));
6287
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "out").
WithLocation
(5, 8));
6304
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "ref").
WithLocation
(5, 8));
6321
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("3", "out").
WithLocation
(5, 9));
6338
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "ref").
WithLocation
(5, 9));
6355
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "ref").
WithLocation
(5, 6));
6372
Diagnostic(ErrorCode.ERR_BadArgRef, "i").WithArguments("3", "out").
WithLocation
(5, 6));
6409
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("3", "int", "string").
WithLocation
(1, 5)
6415
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("3", "int", "string").
WithLocation
(1, 5),
6418
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, string, out bool)").
WithLocation
(1, 8)
7358
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, expression).WithArguments("i", "CustomHandler.CustomHandler(int, int, int)").
WithLocation
(1, 12),
7361
Diagnostic(ErrorCode.ERR_BadArgExtraRef, expression).WithArguments("3", "out").
WithLocation
(1, 12)
7367
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, expression).WithArguments("i", "CustomHandler.CustomHandler(int, int, int, out bool)").
WithLocation
(1, 12),
7370
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, int, out bool)").
WithLocation
(1, 12)
7862
Diagnostic(ErrorCode.ERR_BadArgRef, "GetC(ref c)").WithArguments("3", "ref").
WithLocation
(6, 1),
7865
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, expression).WithArguments("success", "CustomHandler.CustomHandler(int, int, ref C, out bool)").
WithLocation
(6, 15)
7870
Diagnostic(ErrorCode.ERR_BadArgRef, "GetC(ref c)").WithArguments("3", "ref").
WithLocation
(6, 1)
7907
Diagnostic(ErrorCode.ERR_BadArgRef, "GetC()").WithArguments("3", "ref").
WithLocation
(5, 1));
8235
Diagnostic(ErrorCode.ERR_BadArgRef, "s1").WithArguments("3", "ref").
WithLocation
(8, 1));
9474
Diagnostic(ErrorCode.ERR_InterpolatedStringsReferencingInstanceCannotBeInObjectInitializers, expression).
WithLocation
(5, 17));
9853
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsInterpolatedStringHandlerConversion, expression).
WithLocation
(5, 46));
10328
Diagnostic(ErrorCode.ERR_BadArgType, @"$""""""{1}"""""" + $""""""literal""""""").WithArguments("1", "string", "System.FormattableString").
WithLocation
(2, 3),
10331
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""""""{1}"""""" + $""""""literal""""""").WithArguments("string", "System.FormattableString").
WithLocation
(3, 30));
10349
Diagnostic(ErrorCode.ERR_BadArgType, @"$""""""{1}"""""" + $""""""literal""""""").WithArguments("1", "string", "System.IFormattable").
WithLocation
(2, 3),
10352
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""""""{1}"""""" + $""""""literal""""""").WithArguments("string", "System.IFormattable").
WithLocation
(3, 25));
10384
Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i").
WithLocation
(6, 5),
10387
Diagnostic(ErrorCode.ERR_UseDefViolation, "o").WithArguments("o").
WithLocation
(7, 5),
10390
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(8, 5));
10397
Diagnostic(ErrorCode.ERR_UseDefViolation, "o").WithArguments("o").
WithLocation
(7, 5),
10400
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(8, 5));
10470
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerCreationCannotUseDynamic, expression).WithArguments("CustomHandler").
WithLocation
(4, 6));
10503
Diagnostic(ErrorCode.ERR_InterpolatedStringHandlerCreationCannotUseDynamic, expression).WithArguments("CustomHandler").
WithLocation
(4, 6));
10992
Diagnostic(ErrorCode.ERR_EscapeVariable, "s").WithArguments("s").
WithLocation
(17, 21));
11027
Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").
WithLocation
(17, 9));
11062
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, expression).
WithLocation
(17, 20));
11104
Diagnostic(ErrorCode.ERR_CallArgMixing, @"M2(ref s1, " + expression + @")").WithArguments("CustomHandler.M2(ref S1, ref CustomHandler)", "handler").
WithLocation
(17, 9),
11107
Diagnostic(ErrorCode.ERR_EscapeVariable, "s").WithArguments("s").
WithLocation
(17, 25));
11249
Diagnostic(ErrorCode.ERR_EscapeVariable, "c").WithArguments("c").
WithLocation
(18, 16));
11287
Diagnostic(ErrorCode.ERR_EscapeVariable, "this").WithArguments("out CustomHandler this").
WithLocation
(10, 107),
11290
Diagnostic(ErrorCode.ERR_CallArgMixing, @"M2(ref s1, $""""""{s2}"""""")").WithArguments("CustomHandler.M2(ref S1, CustomHandler)", "handler").
WithLocation
(15, 9),
11293
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(15, 25));
11325
Diagnostic(ErrorCode.ERR_EscapeVariable, "this").WithArguments("out CustomHandler this").
WithLocation
(5, 104));
11692
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s").
WithLocation
(9, 38));
11712
Diagnostic(ErrorCode.ERR_UseDefViolation, "o2").WithArguments("o2").
WithLocation
(7, 1),
11715
Diagnostic(ErrorCode.ERR_UseDefViolation, "o3").WithArguments("o3").
WithLocation
(8, 1));
12724
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 3),
12727
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgument("""")").WithArguments("M(CustomHandler)").
WithLocation
(8, 10 + mod.Length));
12791
Diagnostic(ErrorCode.WRN_InterpolatedStringHandlerArgumentAttributeIgnoredOnLambdaParameters, @"InterpolatedStringHandlerArgument("""")").
WithLocation
(4, 12 + mod.Length),
12794
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgument("""")").WithArguments("lambda expression").
WithLocation
(4, 12 + mod.Length));
12822
Diagnostic(ErrorCode.WRN_InterpolatedStringHandlerArgumentAttributeIgnoredOnLambdaParameters, @"InterpolatedStringHandlerArgument(""i"")").
WithLocation
(5, 19 + mod.Length));
12868
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(6, 3),
12871
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgument("""")").WithArguments("M.Invoke(CustomHandler)").
WithLocation
(10, 18));
12903
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(4, 3),
12908
""""""").WithArguments("CustomHandler", "2").
WithLocation
(4, 3),
12913
""""""").WithArguments("CustomHandler", "3").
WithLocation
(4, 3));
13180
Diagnostic(ErrorCode.ERR_BadInstanceArgType, @"$""""""Test""""""").WithArguments("string", "M", "StringExt.M(CustomHandler)", "CustomHandler").
WithLocation
(2, 1));
13217
""""""").WithArguments("CustomHandler c", "CustomHandler").
WithLocation
(5, 5),
13220
Diagnostic(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, @"InterpolatedStringHandlerArgument("""")").WithArguments("S1Ext.M(S1, CustomHandler)").
WithLocation
(17, 38));
13393
Diagnostic(ErrorCode.ERR_BadArgRef, "s").WithArguments("3", "ref").
WithLocation
(5, 1));
13428
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "s").WithArguments("3", "ref").
WithLocation
(5, 1));
13454
""""""").WithArguments("s", "CustomHandler.CustomHandler(int, int, string)").
WithLocation
(4, 19),
13459
""""""").WithArguments("3", "out").
WithLocation
(4, 19));
13507
Diagnostic(ErrorCode.ERR_InterpolatedStringsReferencingInstanceCannotBeInObjectInitializers, expression).
WithLocation
(4, 15));
13561
Diagnostic(ErrorCode.ERR_InterpolatedStringsReferencingInstanceCannotBeInObjectInitializers, expression).
WithLocation
(5, 22));
Semantics\ReadOnlyStructsTests.cs (123)
43
Diagnostic(ErrorCode.ERR_AutoPropsInRoStruct, "rw").
WithLocation
(11, 9)
78
Diagnostic(ErrorCode.ERR_FieldsInRoStruct, "x").
WithLocation
(11, 9),
81
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "this").WithArguments("this").
WithLocation
(16, 9),
84
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "this.x").WithArguments("this.x").
WithLocation
(18, 9));
152
Diagnostic(ErrorCode.ERR_FieldlikeEventsInRoStruct, "e").
WithLocation
(7, 32),
155
Diagnostic(ErrorCode.ERR_FieldlikeEventsInRoStruct, "ei1").
WithLocation
(10, 25),
158
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "e").WithArguments("e").
WithLocation
(43, 9),
161
Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "e").WithArguments("e").
WithLocation
(46, 16)
193
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "this").WithArguments("this").
WithLocation
(11, 9),
196
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "this.x").WithArguments("this.x").
WithLocation
(13, 9));
225
Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").
WithLocation
(9, 16),
228
Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").
WithLocation
(15, 16));
257
Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").
WithLocation
(15, 16));
283
Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").
WithLocation
(12, 24));
319
Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "f2").WithArguments("f2").
WithLocation
(21, 16));
355
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(7, 52),
358
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(8, 52),
361
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(9, 56));
386
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(12, 9));
415
Diagnostic(ErrorCode.ERR_PartialMethodReadOnlyDifference, "M").
WithLocation
(10, 27),
418
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(12, 9));
448
Diagnostic(ErrorCode.ERR_PartialMethodReadOnlyDifference, "M").
WithLocation
(10, 18));
478
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(12, 9));
517
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S1.GetPinnableReference()", "this").
WithLocation
(12, 25));
547
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(16, 9));
578
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(16, 9));
623
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "M").WithArguments("S.M()", "this").
WithLocation
(11, 13));
665
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "P2").WithArguments("S.P2.get", "this").
WithLocation
(11, 17));
707
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "P2").WithArguments("P2").
WithLocation
(27, 9));
730
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(7, 9),
733
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(8, 9),
736
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(9, 11),
739
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(10, 11));
760
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(7, 9),
763
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(8, 9));
805
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "E").WithArguments("S.E.add", "this").
WithLocation
(10, 9),
808
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "E").WithArguments("S.E.remove", "this").
WithLocation
(12, 9));
936
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "E").WithArguments("S.E.add", "this").
WithLocation
(9, 9),
939
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "E").WithArguments("S.E.remove", "this").
WithLocation
(10, 9),
942
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "E").WithArguments("E").
WithLocation
(11, 9));
964
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(8, 15),
967
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "i").WithArguments("i").
WithLocation
(9, 18));
1133
Diagnostic(ErrorCode.ERR_AssgReadonlyStatic2, "s.field").WithArguments("Program.s").
WithLocation
(8, 9)
1349
Diagnostic(ErrorCode.ERR_BadMemberFlag, "C").WithArguments("readonly").
WithLocation
(4, 23),
1352
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M").WithArguments("readonly").
WithLocation
(6, 25),
1355
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P").WithArguments("readonly").
WithLocation
(7, 25),
1358
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("readonly").
WithLocation
(8, 25),
1361
Diagnostic(ErrorCode.ERR_BadMemberFlag, "E").WithArguments("readonly").
WithLocation
(9, 45));
1381
Diagnostic(ErrorCode.ERR_BadMemberFlag, "C").WithArguments("readonly").
WithLocation
(2, 23));
1402
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I").WithArguments("readonly").
WithLocation
(4, 27),
1405
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M").WithArguments("readonly").
WithLocation
(6, 18),
1408
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P").WithArguments("readonly").
WithLocation
(7, 18),
1411
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("readonly").
WithLocation
(8, 18),
1414
Diagnostic(ErrorCode.ERR_BadMemberFlag, "E").WithArguments("readonly").
WithLocation
(9, 38));
1430
Diagnostic(ErrorCode.ERR_BadMemberFlag, "E").WithArguments("readonly").
WithLocation
(2, 22),
1433
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "").WithArguments("", "readonly").
WithLocation
(3, 2),
1436
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "readonly").WithArguments("", "readonly").
WithLocation
(4, 17));
1456
Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "M").WithArguments("S.M()").
WithLocation
(5, 32));
1507
Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "get").WithArguments("S.P.get").
WithLocation
(7, 18));
1524
Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "P").WithArguments("S.P").
WithLocation
(5, 32));
1575
Diagnostic(ErrorCode.ERR_ReadOnlyModMissingAccessor, "P1").WithArguments("S.P1").
WithLocation
(4, 16),
1578
Diagnostic(ErrorCode.ERR_DuplicatePropertyReadOnlyMods, "P4").WithArguments("S.P4").
WithLocation
(7, 16),
1581
Diagnostic(ErrorCode.ERR_AutoSetterCantBeReadOnly, "set").WithArguments("S.P4.set").
WithLocation
(7, 44),
1584
Diagnostic(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly, "P5").WithArguments("S.P5").
WithLocation
(8, 25),
1587
Diagnostic(ErrorCode.ERR_ReadOnlyModMissingAccessor, "P6").WithArguments("S.P6").
WithLocation
(9, 25),
1590
Diagnostic(ErrorCode.ERR_InvalidPropertyReadOnlyMods, "get").WithArguments("S.P6").
WithLocation
(9, 39),
1593
Diagnostic(ErrorCode.ERR_AutoSetterCantBeReadOnly, "set").WithArguments("S.P7.set").
WithLocation
(10, 35),
1596
Diagnostic(ErrorCode.ERR_AutoPropertyWithSetterCantBeReadOnly, "P8").WithArguments("S.P8").
WithLocation
(11, 25),
1599
Diagnostic(ErrorCode.ERR_InvalidPropertyReadOnlyMods, "set").WithArguments("S.P8").
WithLocation
(11, 44));
1671
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "get").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(12, 30));
1677
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "get").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute", ".ctor").
WithLocation
(12, 30));
1693
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "get").WithArguments("System.Runtime.CompilerServices.IsReadOnlyAttribute").
WithLocation
(4, 30));
1712
Diagnostic(ErrorCode.ERR_InvalidPropertyReadOnlyMods, "get").WithArguments("S.P").
WithLocation
(4, 38));
1729
Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "P1").WithArguments("S.P1").
WithLocation
(4, 32),
1732
Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "get").WithArguments("S.P2.get").
WithLocation
(5, 37));
1761
Diagnostic(ErrorCode.ERR_RefReturnReadonlyStatic, "f2").
WithLocation
(9, 43));
1778
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S").WithArguments("readonly").
WithLocation
(4, 21),
1781
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S").WithArguments("readonly").
WithLocation
(5, 21));
1807
Diagnostic(ErrorCode.ERR_AssgReadonly, "s.i").
WithLocation
(12, 9));
1846
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S1.GetEnumerator()", "this").
WithLocation
(13, 27));
1865
Diagnostic(ErrorCode.ERR_ForEachMissingMember, "this").WithArguments("S1", "GetEnumerator").
WithLocation
(6, 27));
1909
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S1.GetAsyncEnumerator()", "this").
WithLocation
(16, 33));
1953
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S1.Dispose()", "this").
WithLocation
(13, 16));
2002
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("S1.Deconstruct(out int, out int)", "this").
WithLocation
(11, 22));
2021
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "x").WithArguments("x").
WithLocation
(6, 14),
2024
Diagnostic(ErrorCode.ERR_TypeInferenceFailedForImplicitlyTypedDeconstructionVariable, "y").WithArguments("y").
WithLocation
(6, 17),
2027
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "this").WithArguments("S2", "Deconstruct").
WithLocation
(6, 22),
2030
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "this").WithArguments("S2", "2").
WithLocation
(6, 22));
2046
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S").WithArguments("readonly").
WithLocation
(4, 15),
2049
Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "S").
WithLocation
(4, 15));
2066
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("readonly").
WithLocation
(4, 39),
2069
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("readonly").
WithLocation
(5, 46));
2082
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Del").WithArguments("readonly").
WithLocation
(2, 30));
2107
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(7, 9),
2110
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(12, 9));
2133
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M2").WithArguments("a", "S.M2(System.Func<int>)").
WithLocation
(6, 9),
2136
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(6, 12),
2139
Diagnostic(ErrorCode.ERR_SemicolonExpected, "readonly").
WithLocation
(6, 12),
2142
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(6, 12),
2145
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(6, 22),
2148
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(6, 24),
2151
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(6, 24),
2154
Diagnostic(ErrorCode.ERR_SemicolonExpected, "42").
WithLocation
(6, 27),
2157
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(6, 29),
2160
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(6, 29));
2222
Diagnostic(ErrorCode.ERR_DuplicatePropertyReadOnlyMods, "this").WithArguments("S3.this[int]").
WithLocation
(21, 16),
2225
Diagnostic(ErrorCode.ERR_ReadOnlyModMissingAccessor, "this").WithArguments("S4.this[int]").
WithLocation
(31, 16),
2228
Diagnostic(ErrorCode.ERR_InvalidPropertyReadOnlyMods, "get").WithArguments("S5.this[int]").
WithLocation
(42, 18),
2231
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(50, 32));
2250
Diagnostic(ErrorCode.ERR_FieldLikeEventCantBeReadOnly, "E").WithArguments("S1.E").
WithLocation
(6, 45));
2291
Diagnostic(ErrorCode.ERR_StaticMemberCantBeReadOnly, "E").WithArguments("S1.E").
WithLocation
(6, 52));
2313
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "readonly").
WithLocation
(8, 9),
2316
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "readonly").
WithLocation
(9, 9));
2343
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "readonly").WithArguments("readonly members", "8.0").
WithLocation
(6, 12),
2346
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "readonly").WithArguments("readonly members", "8.0").
WithLocation
(8, 12),
2349
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "readonly").WithArguments("readonly members", "8.0").
WithLocation
(9, 21),
2352
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "readonly").WithArguments("readonly members", "8.0").
WithLocation
(10, 33),
2355
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "readonly").WithArguments("readonly members", "8.0").
WithLocation
(12, 12),
2358
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "readonly").WithArguments("readonly members", "8.0").
WithLocation
(13, 37),
2361
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "readonly").WithArguments("readonly members", "8.0").
WithLocation
(15, 12));
2399
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "P1").WithArguments("P1").
WithLocation
(20, 9),
2402
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "P2").WithArguments("P2").
WithLocation
(21, 9),
2405
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "P3").WithArguments("S.P3.get", "this").
WithLocation
(22, 9));
Semantics\RecordStructTests.cs (402)
128
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("S").
WithLocation
(5, 17));
170
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("S").
WithLocation
(5, 17));
255
Diagnostic(ErrorCode.ERR_FeatureInPreview, "(int x, int y)").WithArguments("primary constructors").
WithLocation
(2, 13),
258
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(2, 18),
261
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(2, 25)
268
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(2, 8));
274
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(2, 8));
280
Diagnostic(ErrorCode.ERR_FeatureInPreview, "(int x, int y)").WithArguments("primary constructors").
WithLocation
(2, 13),
283
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(2, 18),
286
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(2, 25)
327
Diagnostic(ErrorCode.ERR_FeatureInPreview, "(int x, int y)").WithArguments("primary constructors").
WithLocation
(4, 17),
330
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(4, 22),
333
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(4, 29)
340
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(4, 12));
346
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(4, 12));
352
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(4, 12));
358
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(4, 22),
361
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(4, 29)
440
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "c").WithArguments("C3<T>", "T", "Point").
WithLocation
(16, 22)
461
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "c").WithArguments("C<T>", "T", "Point2").
WithLocation
(8, 23)
616
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "object").WithArguments("object").
WithLocation
(2, 37),
619
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "System.ValueType").WithArguments("System.ValueType").
WithLocation
(3, 38)
634
Diagnostic(ErrorCode.ERR_ConstraintOnlyAllowedOnGenericDecl, "where").
WithLocation
(2, 35)
688
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S1").WithArguments("abstract").
WithLocation
(2, 24),
691
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S2").WithArguments("volatile").
WithLocation
(3, 24),
694
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S3").WithArguments("extern").
WithLocation
(4, 22),
697
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S4").WithArguments("virtual").
WithLocation
(5, 23),
700
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S5").WithArguments("override").
WithLocation
(6, 24),
703
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S6").WithArguments("async").
WithLocation
(7, 21),
706
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S7").WithArguments("ref").
WithLocation
(8, 19),
709
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "S8").
WithLocation
(9, 22),
712
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S9").WithArguments("static").
WithLocation
(10, 22),
715
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S10").WithArguments("sealed").
WithLocation
(11, 22)
730
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(2, 8)
746
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "System.Console.WriteLine();").
WithLocation
(3, 1)
781
Diagnostic(ErrorCode.ERR_ProtectedInStruct, "Property").WithArguments("S.Property").
WithLocation
(4, 19),
784
Diagnostic(ErrorCode.ERR_ProtectedInStruct, "field").WithArguments("S.field").
WithLocation
(5, 31),
787
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field").WithArguments("S.field", "null").
WithLocation
(5, 31),
790
Diagnostic(ErrorCode.ERR_VirtualPrivate, "M").WithArguments("S.M()").
WithLocation
(6, 19),
793
Diagnostic(ErrorCode.ERR_VirtualPrivate, "M2").WithArguments("S.M2()").
WithLocation
(7, 18)
911
Diagnostic(ErrorCode.ERR_StructWithBaseConstructorCall, "S").WithArguments("S").
WithLocation
(4, 12)
930
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(1, 8),
933
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(2, 8),
936
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(3, 8),
939
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S2").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(5, 12));
974
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(1, 8),
977
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S1").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(3, 5),
980
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "S1").
WithLocation
(3, 5),
983
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(5, 8),
986
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S2").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(7, 14),
989
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "S2").
WithLocation
(7, 14));
995
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "S1").
WithLocation
(3, 5),
998
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "S2").
WithLocation
(7, 14));
1035
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "S3").
WithLocation
(13, 5),
1038
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "S5").
WithLocation
(21, 12)
1106
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(2, 15),
1109
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S").
WithLocation
(2, 22),
1112
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "field").WithArguments("struct field initializers", "10.0").
WithLocation
(4, 16),
1115
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "Property").WithArguments("struct field initializers", "10.0").
WithLocation
(5, 16));
1121
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S").
WithLocation
(2, 22));
1140
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(2, 15),
1143
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(4, 12),
1146
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "field").WithArguments("struct field initializers", "10.0").
WithLocation
(5, 16),
1149
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "Property").WithArguments("struct field initializers", "10.0").
WithLocation
(6, 16));
1170
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(2, 15));
1189
Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "S").
WithLocation
(4, 6)
1235
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "S1").WithArguments("S1").
WithLocation
(3, 16),
1238
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "S2").WithArguments("S2").
WithLocation
(6, 23),
1241
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "S3").WithArguments("S3").
WithLocation
(9, 16),
1244
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "S4").WithArguments("S4").
WithLocation
(12, 22),
1247
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "S5").WithArguments("S5").
WithLocation
(15, 15),
1250
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "S6").WithArguments("S6").
WithLocation
(18, 19),
1253
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "C1").WithArguments("C1").
WithLocation
(21, 16),
1256
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "C2").WithArguments("C2").
WithLocation
(24, 23),
1259
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "C4").WithArguments("C4").
WithLocation
(30, 15),
1262
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "C5").WithArguments("C5").
WithLocation
(33, 19)
1283
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(int i)").
WithLocation
(3, 24),
1286
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "()").
WithLocation
(6, 25),
1289
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "()").
WithLocation
(9, 25)
1314
Diagnostic(ErrorCode.WRN_SequentialOnPartialClass, "C").WithArguments("C").
WithLocation
(5, 30)
1382
Diagnostic(ErrorCode.ERR_ParamUnassigned, "R").WithArguments("P2").
WithLocation
(2, 15),
1385
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(2, 17),
1388
Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").
WithLocation
(2, 29)
1403
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(2, 17)
1451
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(2, 25),
1454
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(5, 12),
1457
Diagnostic(ErrorCode.WRN_UnreferencedField, "Clone").WithArguments("C2.Clone").
WithLocation
(5, 12),
1460
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(9, 12),
1463
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(13, 10),
1466
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(14, 10),
1469
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(18, 11),
1472
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(22, 19),
1475
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(26, 25),
1478
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Clone").WithArguments("C8.Clone").
WithLocation
(26, 25)
1507
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "P1").WithArguments("int*").
WithLocation
(7, 10),
1510
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "P2").WithArguments("int*[]").
WithLocation
(8, 12),
1513
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "P4").WithArguments("delegate*<int, int>").
WithLocation
(10, 25),
1516
Diagnostic(ErrorCode.ERR_NoVoidParameter, "void").
WithLocation
(11, 5),
1519
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "C2").WithArguments("C2").
WithLocation
(12, 5),
1522
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "C2").WithArguments("C2").
WithLocation
(12, 5),
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),
1531
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "RefLike").WithArguments("RefLike").
WithLocation
(15, 5)
1562
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f1").WithArguments("int*").
WithLocation
(8, 17),
1565
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f2").WithArguments("int*[]").
WithLocation
(9, 19),
1568
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f4").WithArguments("delegate*<int, int>").
WithLocation
(11, 32),
1571
Diagnostic(ErrorCode.ERR_FieldCantHaveVoidType, "void").
WithLocation
(12, 12),
1574
Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "f6").WithArguments("C2").
WithLocation
(13, 15),
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),
1583
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "RefLike").WithArguments("RefLike").
WithLocation
(16, 12)
1614
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f1").WithArguments("int*").
WithLocation
(8, 17),
1617
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f2").WithArguments("int*[]").
WithLocation
(9, 19),
1620
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f4").WithArguments("delegate*<int, int>").
WithLocation
(11, 32),
1623
Diagnostic(ErrorCode.ERR_PropertyCantHaveVoidType, "f5").WithArguments("C.f5").
WithLocation
(12, 17),
1626
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "C2").WithArguments("C2").
WithLocation
(13, 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),
1635
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "RefLike").WithArguments("RefLike").
WithLocation
(16, 12)
1676
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(4, 29),
1679
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(4, 40),
1682
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(4, 54)
1714
Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "f6").WithArguments("C2").
WithLocation
(12, 22),
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),
1723
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "RefLike").WithArguments("RefLike").
WithLocation
(15, 19)
1838
Diagnostic(ErrorCode.ERR_AutoPropsInRoStruct, "X").
WithLocation
(4, 16)
1866
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "C").WithArguments("C", "C").
WithLocation
(5, 12),
1869
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "C").
WithLocation
(5, 12),
1872
Diagnostic(ErrorCode.ERR_AmbigCall, "C").WithArguments("C.C(int, int)", "C.C(int, int)").
WithLocation
(11, 21)
1896
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "C").WithArguments("C.X", "11.0").
WithLocation
(3, 15),
1899
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(3, 21)
1906
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(3, 21)
1943
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(3, 21)
1967
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(3, 21)
1982
Diagnostic(ErrorCode.ERR_DuplicateParamName, "X").WithArguments("X").
WithLocation
(2, 28),
1985
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "X").WithArguments("C", "X").
WithLocation
(2, 28)
2034
Diagnostic(ErrorCode.ERR_MemberReserved, "X").WithArguments("get_X", "C").
WithLocation
(2, 21),
2037
Diagnostic(ErrorCode.ERR_MemberReserved, "Y").WithArguments("set_Y", "C").
WithLocation
(2, 28)
2078
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P").WithArguments("C1", "get_P").
WithLocation
(2, 25),
2081
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P").WithArguments("C2", "get_P").
WithLocation
(3, 39)
2112
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P1").WithArguments("C", "P1").
WithLocation
(2, 24),
2115
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(2, 35),
2118
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P3").WithArguments("C", "P3").
WithLocation
(6, 9),
2121
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P4").WithArguments("C", "P4").
WithLocation
(7, 9)
2137
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P").WithArguments("C.P", "object", "P").
WithLocation
(2, 24),
2140
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(2, 24)
2160
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "C1").WithArguments("C1.O1", "11.0").
WithLocation
(2, 15),
2163
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "O1").WithArguments("O1").
WithLocation
(2, 25),
2166
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "O3").WithArguments("O3").
WithLocation
(2, 47)
2173
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "O1").WithArguments("O1").
WithLocation
(2, 25),
2176
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "O3").WithArguments("O3").
WithLocation
(2, 47));
2217
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "O3").WithArguments("O3").
WithLocation
(2, 47)
2230
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "c").WithArguments("C.c", "C").
WithLocation
(2, 19)
2301
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(2, 22)
2325
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(2, 31)
2401
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "X").WithArguments("System.ValueType.X", "bool", "X").
WithLocation
(2, 22),
2404
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(2, 22)
2456
Diagnostic(ErrorCode.ERR_StaticConstParam, "R").WithArguments("R.R(R)").
WithLocation
(4, 12)
2500
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongInitOnly, "I").WithArguments("R", "I.P1.init", "R.P1.set").
WithLocation
(6, 27)
2540
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongInitOnly, "I").WithArguments("R", "I.P1.set", "R.P1.init").
WithLocation
(6, 36)
2567
Diagnostic(ErrorCode.ERR_NoSuchMember, "P3").WithArguments("R", "P3").
WithLocation
(2, 28)
2623
Diagnostic(ErrorCode.ERR_InvalidPrimaryConstructorParameterReference, "X").WithArguments("int X").
WithLocation
(4, 20)
2654
Diagnostic(ErrorCode.ERR_InvalidPrimaryConstructorParameterReference, "X").WithArguments("int X").
WithLocation
(4, 19),
2657
Diagnostic(ErrorCode.ERR_NotConstantExpression, "X + 1").WithArguments("C.Z").
WithLocation
(4, 19)
2824
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(5, 28)
2861
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "R").WithArguments("R.P", "11.0").
WithLocation
(2, 15),
2864
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(2, 21)
2871
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(2, 21)
2932
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "string?").WithArguments("R<T>", "T", "string?").
WithLocation
(3, 15),
2935
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "string?").WithArguments("R2<T>", "T", "string?").
WithLocation
(4, 17)
2960
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("R<T>", "T", "int").
WithLocation
(9, 19),
2963
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("R2<T>", "T", "int").
WithLocation
(10, 20)
2982
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "A<B<T>>").WithArguments("A<B<T>>").
WithLocation
(3, 22),
2985
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "B<A<T>>").WithArguments("B<A<T>>").
WithLocation
(2, 22)
3010
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C1").WithArguments("I<(int notA, int notB)>", "I<(int a, int b)>", "C1").
WithLocation
(3, 23),
3013
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C2").WithArguments("I<(int, int)>", "I<(int a, int b)>", "C2").
WithLocation
(6, 23),
3016
Diagnostic(ErrorCode.ERR_DuplicateInterfaceWithTupleNamesInBaseList, "C4").WithArguments("I<(int b, int a)>", "I<(int a, int b)>", "C4").
WithLocation
(12, 23)
3032
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(2, 1)
3045
Diagnostic(ErrorCode.ERR_BadMemberFlag, "R").WithArguments("sealed").
WithLocation
(2, 29),
3048
Diagnostic(ErrorCode.ERR_BadMemberFlag, "R").WithArguments("static").
WithLocation
(2, 29)
3065
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("abstract").
WithLocation
(5, 25),
3068
Diagnostic(ErrorCode.ERR_BadMemberFlag, "E").WithArguments("abstract").
WithLocation
(4, 41)
3085
Diagnostic(ErrorCode.ERR_BadDestructorName, "iiii").
WithLocation
(4, 6),
3088
Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "iiii").
WithLocation
(4, 6)
3106
Diagnostic(ErrorCode.ERR_BadMemberFlag, "R").WithArguments("static").
WithLocation
(2, 22),
3109
Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "R").
WithLocation
(5, 6)
3124
Diagnostic(ErrorCode.ERR_PartialMethodOnlyInPartialClass, "M").
WithLocation
(3, 18)
3139
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M").WithArguments("R.M()").
WithLocation
(3, 24)
3250
Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").
WithLocation
(7, 52)
3295
Diagnostic(ErrorCode.WRN_MissingParamTag, "I2").WithArguments("I2", "C.C(int, int)").
WithLocation
(4, 36),
3298
Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").
WithLocation
(7, 52)
3343
Diagnostic(ErrorCode.WRN_XMLParseError, "seealso").WithArguments("seealso", "param").
WithLocation
(3, 77),
3346
Diagnostic(ErrorCode.WRN_XMLParseError, "<").
WithLocation
(3, 85),
3349
Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").
WithLocation
(7, 52)
3550
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(3, 21)
3585
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "X").WithArguments("B", "X").
WithLocation
(4, 16)
3623
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(4, 21),
3626
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "X").WithArguments("C.X").
WithLocation
(6, 9));
3658
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "()").WithArguments("C", "Deconstruct").
WithLocation
(8, 19),
3661
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "()").WithArguments("C", "0").
WithLocation
(8, 19));
3699
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(5, 25),
3702
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(5, 35)
3735
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "()").WithArguments("C", "Deconstruct").
WithLocation
(8, 19),
3738
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "()").WithArguments("C", "0").
WithLocation
(8, 19));
3811
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "I").WithArguments("I").
WithLocation
(2, 21));
3881
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "Deconstruct").WithArguments("B.Deconstruct(out int)", "void").
WithLocation
(5, 16),
3884
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int x)").WithArguments("B", "1").
WithLocation
(11, 19));
3907
Diagnostic(ErrorCode.ERR_NonPublicAPIInRecord, "Deconstruct").WithArguments("A.Deconstruct(out int)").
WithLocation
(4, 11 + accessibility.Length)
3926
Diagnostic(ErrorCode.ERR_StaticAPIInRecord, "Deconstruct").WithArguments("A.Deconstruct(out int)").
WithLocation
(4, 24)
3945
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "A.M(out int a) + a").WithArguments("X").
WithLocation
(2, 25)
3969
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "Pos").WithArguments("Pos.x", "11.0").
WithLocation
(2, 15),
3972
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "X").
WithLocation
(5, 16)
3979
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "X").
WithLocation
(5, 16)
4066
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 17),
4069
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B").
WithLocation
(12, 17)
4137
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.IEquatable`1").
WithLocation
(2, 15),
4140
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.IEquatable`1").
WithLocation
(2, 15)
4169
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B").
WithLocation
(8, 17)
4193
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "a2").WithArguments("1", "in").
WithLocation
(4, 39)
4217
Diagnostic(ErrorCode.ERR_ProtectedInStruct, "Equals").WithArguments("A.Equals(A)").
WithLocation
(4, 11 + accessibility.Length),
4220
Diagnostic(ErrorCode.ERR_NonPublicAPIInRecord, "Equals").WithArguments("A.Equals(A)").
WithLocation
(4, 11 + accessibility.Length),
4223
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 11 + accessibility.Length)
4247
Diagnostic(ErrorCode.ERR_NonPublicAPIInRecord, "Equals").WithArguments("A.Equals(A)").
WithLocation
(4, 11 + accessibility.Length),
4250
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 11 + accessibility.Length)
4352
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "Equals").WithArguments("A.Equals(A)", "bool").
WithLocation
(4, 16),
4355
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 16)
4382
}").WithArguments("System.Boolean").
WithLocation
(2, 1),
4391
}").WithArguments("System.Boolean").
WithLocation
(2, 1),
4394
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Boolean").
WithLocation
(2, 15),
4397
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Boolean").
WithLocation
(2, 15),
4400
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Boolean").
WithLocation
(2, 15),
4403
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Boolean").
WithLocation
(2, 15),
4406
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "bool").WithArguments("System.Boolean").
WithLocation
(4, 12),
4409
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 17)
4426
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "A").WithArguments("A", "System.IEquatable<A>.Equals(A)", "A.Equals(A)").
WithLocation
(2, 15),
4429
Diagnostic(ErrorCode.ERR_StaticAPIInRecord, "Equals").WithArguments("A.Equals(A)").
WithLocation
(4, 24),
4432
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 24)
4485
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1)
4665
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Equals").WithArguments("Equals", "A").
WithLocation
(4, 28)
4682
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Equals").WithArguments("Equals", "A").
WithLocation
(4, 26)
4762
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
4765
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "A").WithArguments("A.GetHashCode()").
WithLocation
(2, 22)
4792
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "public record struct A(int I);").WithArguments("System.Collections.Generic.EqualityComparer`1", "GetHashCode").
WithLocation
(2, 1),
4795
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "public record struct A(int I);").WithArguments("System.Collections.Generic.EqualityComparer`1", "get_Default").
WithLocation
(2, 1)
4837
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("C").
WithLocation
(5, 17));
4938
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "==").WithArguments("op_Equality", "A").
WithLocation
(4, 32)
4960
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "!=").WithArguments("op_Inequality", "A").
WithLocation
(4, 32)
4980
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "op_Equality").WithArguments("op_Equality", "A").
WithLocation
(4, 24)
5000
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "op_Inequality").WithArguments("op_Inequality", "A").
WithLocation
(4, 24)
5018
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "A").WithArguments("A", "System.IEquatable<A>.Equals(A)", "A.Equals(A)").
WithLocation
(2, 15),
5021
Diagnostic(ErrorCode.ERR_StaticAPIInRecord, "Equals").WithArguments("A.Equals(A)").
WithLocation
(4, 24),
5024
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 24)
5181
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "record struct C1;").WithArguments("System.Text.StringBuilder").
WithLocation
(2, 1),
5184
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record struct C1;").WithArguments("System.Text.StringBuilder", ".ctor").
WithLocation
(2, 1),
5187
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "C1").WithArguments("System.Text.StringBuilder").
WithLocation
(2, 15)
5203
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record struct C1;").WithArguments("System.Text.StringBuilder", ".ctor").
WithLocation
(2, 1)
5219
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record struct C1;").WithArguments("System.Text.StringBuilder", "Append").
WithLocation
(2, 1)
5235
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record struct C1(int P);").WithArguments("System.Text.StringBuilder", "Append").
WithLocation
(2, 1),
5238
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record struct C1(int P);").WithArguments("System.Text.StringBuilder", "Append").
WithLocation
(2, 1)
5270
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field").WithArguments("C1.field").
WithLocation
(7, 17),
5273
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "a").WithArguments("C1.a").
WithLocation
(11, 32),
5276
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field1").WithArguments("C1.field1").
WithLocation
(13, 17)
5453
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field3").WithArguments("C1.field3").
WithLocation
(10, 20)
5604
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "ToString").WithArguments("C1.ToString()").
WithLocation
(4, 23)
5622
Diagnostic(ErrorCode.ERR_BadMemberFlag, "ToString").WithArguments("sealed").
WithLocation
(4, 35)
5653
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error").WithArguments("Error").
WithLocation
(4, 13)
5670
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)", "bool").
WithLocation
(4, 17)
5751
Diagnostic(ErrorCode.ERR_NonPrivateAPIInRecord, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").
WithLocation
(7, 19)
5769
Diagnostic(ErrorCode.ERR_StaticAPIInRecord, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").
WithLocation
(4, 25)
5814
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "X").WithArguments("R.X", "R").
WithLocation
(4, 14)
5838
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "X").WithArguments("R.X", "R").
WithLocation
(2, 19)
5856
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "I").WithArguments("I").
WithLocation
(2, 21)
6872
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "this with { X = 42 }").WithArguments("with on structs", "10.0").
WithLocation
(13, 16)
6969
Diagnostic(ErrorCode.ERR_MemberAlreadyInitialized, "X").WithArguments("X").
WithLocation
(8, 36)
7035
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "{").WithArguments("{").
WithLocation
(12, 32),
7038
Diagnostic(ErrorCode.ERR_RbraceExpected, "{").
WithLocation
(12, 32),
7041
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(12, 32),
7044
Diagnostic(ErrorCode.ERR_NameNotInContext, "Y").WithArguments("Y").
WithLocation
(12, 34),
7047
Diagnostic(ErrorCode.WRN_UnreachableCode, "Y").
WithLocation
(12, 34),
7050
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(12, 40),
7053
Diagnostic(ErrorCode.ERR_UnexpectedSemicolon, ";").
WithLocation
(12, 43),
7056
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(14, 1)
7125
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "i").
WithLocation
(8, 28),
7128
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "j++").
WithLocation
(8, 31),
7131
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "M2()").
WithLocation
(8, 36)
7498
Diagnostic(ErrorCode.ERR_UseDefViolationThisUnsupportedVersion, "this").WithArguments("11.0").
WithLocation
(8, 13)
7779
Diagnostic(ErrorCode.ERR_AssgReadonly, "X").
WithLocation
(2, 17),
7782
Diagnostic(ErrorCode.ERR_AssgReadonly, "X").
WithLocation
(9, 28),
7785
Diagnostic(ErrorCode.ERR_AssgReadonly, "X").
WithLocation
(13, 25),
7788
Diagnostic(ErrorCode.ERR_AssgReadonly, "X").
WithLocation
(18, 25)
7823
Diagnostic(ErrorCode.ERR_CannotClone, "i").WithArguments("int*").
WithLocation
(6, 16)
7846
Diagnostic(ErrorCode.ERR_CannotClone, "i").WithArguments("I").
WithLocation
(10, 16)
7904
Diagnostic(ErrorCode.ERR_EscapeVariable, "Field2 = inner").WithArguments("inner").
WithLocation
(12, 48),
7907
Diagnostic(ErrorCode.ERR_EscapeVariable, "Field1 = inner").WithArguments("inner").
WithLocation
(23, 34)
7943
Diagnostic(ErrorCode.ERR_EscapeVariable, "local").WithArguments("local").
WithLocation
(9, 26),
7946
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref local)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(9, 14));
8014
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").
WithLocation
(8, 26));
8042
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(7, 21),
8045
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(9, 21),
8048
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(14, 21));
8079
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(10, 13),
8082
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Y").
WithLocation
(11, 13),
8085
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(15, 9));
8117
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Y").
WithLocation
(14, 13)
8193
Diagnostic(ErrorCode.ERR_MemberAlreadyInitialized, "X").WithArguments("X").
WithLocation
(7, 29)
8222
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "Identity(a) with { A = Identity(30), B = Identity(40) }").WithArguments("with on anonymous types", "10.0").
WithLocation
(9, 17)
9498
Diagnostic(ErrorCode.ERR_NoSuchMember, "Error").WithArguments("<anonymous type: int A>", "Error").
WithLocation
(7, 26)
9611
Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "ToString").WithArguments("ToString").
WithLocation
(7, 26)
9724
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "{").WithArguments("{").
WithLocation
(10, 35),
9727
Diagnostic(ErrorCode.ERR_RbraceExpected, "{").
WithLocation
(10, 35),
9730
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(10, 35),
9733
Diagnostic(ErrorCode.ERR_NameNotInContext, "A").WithArguments("A").
WithLocation
(10, 37),
9736
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(10, 44),
9739
Diagnostic(ErrorCode.ERR_UnexpectedSemicolon, ";").
WithLocation
(10, 47),
9742
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "(").WithArguments("(").
WithLocation
(11, 29),
9745
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(11, 31),
9748
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(11, 32),
9751
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(13, 1)
9884
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "i").
WithLocation
(7, 26),
9887
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "j++").
WithLocation
(7, 29),
9890
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "M2()").
WithLocation
(7, 34)
9993
Diagnostic(ErrorCode.ERR_RbraceExpected, "[").
WithLocation
(7, 26),
9996
Diagnostic(ErrorCode.ERR_SemicolonExpected, "[").
WithLocation
(7, 26),
9999
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[").
WithLocation
(7, 26),
10002
Diagnostic(ErrorCode.ERR_IdentifierExpected, "0").
WithLocation
(7, 27),
10005
Diagnostic(ErrorCode.ERR_SyntaxError, "0").WithArguments("]").
WithLocation
(7, 27),
10008
Diagnostic(ErrorCode.ERR_SemicolonExpected, "]").
WithLocation
(7, 28),
10011
Diagnostic(ErrorCode.ERR_RbraceExpected, "]").
WithLocation
(7, 28),
10014
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(7, 30),
10017
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(7, 35),
10020
Diagnostic(ErrorCode.ERR_UnexpectedSemicolon, ";").
WithLocation
(7, 36),
10023
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(9, 1)
10155
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "a.A").WithArguments("<anonymous type: int A>.A").
WithLocation
(7, 9),
10158
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "b.B.A").WithArguments("<anonymous type: int A>.A").
WithLocation
(10, 9)
10181
Diagnostic(ErrorCode.ERR_AnonymousTypeDuplicatePropertyName, "A = 20").
WithLocation
(6, 31)
10340
Diagnostic(ErrorCode.ERR_MemberAlreadyInitialized, "A").WithArguments("A").
WithLocation
(7, 54)
10545
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(8, 8),
10548
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int X").WithArguments("positional fields in records", "10.0").
WithLocation
(8, 17));
10584
Diagnostic(ErrorCode.ERR_FieldsInRoStruct, "X").
WithLocation
(4, 16)
10601
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P").WithArguments("C.P", "int[]", "P").
WithLocation
(2, 30),
10604
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "P").WithArguments("int*").
WithLocation
(4, 22)
10623
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "X").WithArguments("A.X", "int", "X").
WithLocation
(2, 21)
10643
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "X").WithArguments("A", "X").
WithLocation
(5, 16)
10676
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(6, 27),
10679
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X)").
WithLocation
(10, 28)
10703
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(6, 20),
10706
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(0)").
WithLocation
(10, 21)
10730
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(6, 13),
10733
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(0)").
WithLocation
(10, 14)
10755
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error1").WithArguments("Error1").
WithLocation
(2, 27),
10758
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(0, 1)").
WithLocation
(2, 33),
10761
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error2").WithArguments("Error2").
WithLocation
(5, 27),
10764
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(5, 33),
10767
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error3").WithArguments("Error3").
WithLocation
(8, 27)
10815
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "Value").
WithLocation
(4, 13),
10818
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "Value").
WithLocation
(5, 13),
10821
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "Boxed").
WithLocation
(10, 13),
10824
Diagnostic(ErrorCode.ERR_CopyConstructorWrongAccessibility, "Boxed").WithArguments("Boxed.Boxed(Boxed)").
WithLocation
(11, 13)
10915
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "S2").
WithLocation
(7, 12),
10918
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "S3").
WithLocation
(11, 12),
10921
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "S4").
WithLocation
(15, 12));
11008
Diagnostic(ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, "this").
WithLocation
(3, 27),
11011
Diagnostic(ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, "this").
WithLocation
(7, 27));
11033
Diagnostic(ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, "this").
WithLocation
(4, 27),
11036
Diagnostic(ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, "this").
WithLocation
(9, 27));
11143
Diagnostic(ErrorCode.ERR_AmbigCall, "this").WithArguments("S2.S2()", "S2.S2()").
WithLocation
(3, 27),
11146
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "S2").WithArguments("S2", "S2").
WithLocation
(4, 12),
11149
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "S2").
WithLocation
(4, 12));
11172
Diagnostic(ErrorCode.ERR_StructWithBaseConstructorCall, "S1").WithArguments("S1").
WithLocation
(3, 12),
11175
Diagnostic(ErrorCode.ERR_StructWithBaseConstructorCall, "S2").WithArguments("S2").
WithLocation
(7, 12),
11178
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "base").
WithLocation
(7, 27),
11181
Diagnostic(ErrorCode.ERR_StructWithBaseConstructorCall, "S3").WithArguments("S3").
WithLocation
(11, 12),
11184
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "base").
WithLocation
(11, 27));
11201
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("S.F", "11.0").
WithLocation
(1, 15),
11204
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "F").WithArguments("F").
WithLocation
(1, 24),
11207
Diagnostic(ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, "this").
WithLocation
(4, 23));
11213
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "F").WithArguments("F").
WithLocation
(1, 24),
11216
Diagnostic(ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, "this").
WithLocation
(4, 23));
11232
Diagnostic(ErrorCode.ERR_StaticConstructorWithExplicitConstructorCall, "this").WithArguments("S").
WithLocation
(4, 18));
11243
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "record").WithArguments("record").
WithLocation
(1, 8)
11250
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(1, 8)
11257
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(1, 8)
11269
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "record").WithArguments("record").
WithLocation
(1, 7)
11276
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(1, 7)
11283
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(1, 7)
11295
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "record").WithArguments("record").
WithLocation
(1, 8)
11302
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(1, 8)
11309
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(1, 8)
11321
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "record").WithArguments("record").
WithLocation
(1, 7)
11328
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(1, 7)
11335
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(1, 7)
11350
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "record").WithArguments("record").
WithLocation
(3, 8)
11357
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(3, 8)
11364
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(3, 8)
11379
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "record").WithArguments("record").
WithLocation
(3, 8)
11386
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(3, 8)
11393
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(3, 8)
11408
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "record").WithArguments("record").
WithLocation
(3, 7)
11415
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(3, 7)
11422
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(3, 7)
11441
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "System.Runtime.InteropServices.ComImport").WithArguments("System.Runtime.InteropServices.ComImport", "class, interface").
WithLocation
(2, 2)
Semantics\RecordTests.cs (1108)
55
Diagnostic(ErrorCode.ERR_FeatureInPreview, "(int x, int y)").WithArguments("primary constructors").
WithLocation
(2, 12),
58
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(2, 17),
61
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(2, 24)
67
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(2, 1),
70
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Point").
WithLocation
(2, 8),
73
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "Point").WithArguments("<invalid-global-code>.Point").
WithLocation
(2, 8)
79
Diagnostic(ErrorCode.ERR_SimpleProgramNotAnExecutable, "record Point(int x, int y);").
WithLocation
(2, 1),
82
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "record Point(int x, int y);").WithArguments("top-level statements", "9.0").
WithLocation
(2, 1),
85
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(2, 1),
88
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "Point").WithArguments("Point(int, int)").
WithLocation
(2, 8),
91
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Point").WithArguments("Point").
WithLocation
(2, 8)
98
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(2, 17),
101
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(2, 24)
148
Diagnostic(ErrorCode.ERR_FeatureInPreview, "(int x, int y)").WithArguments("primary constructors").
WithLocation
(4, 16),
151
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(4, 21),
154
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(4, 28)
161
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(4, 5),
164
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "Point").WithArguments("D.Point").
WithLocation
(4, 12)
171
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(4, 5),
174
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "Point").WithArguments("E.Point(int, int)").
WithLocation
(4, 12)
181
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(4, 21),
184
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(4, 28)
204
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "record ").WithArguments("top-level statements", "9.0").
WithLocation
(2, 1),
207
Diagnostic(ErrorCode.ERR_SimpleProgramNotAnExecutable, "record ").
WithLocation
(2, 1),
210
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(2, 1),
213
Diagnostic(ErrorCode.ERR_IdentifierExpected, "class").
WithLocation
(2, 8),
216
Diagnostic(ErrorCode.ERR_SemicolonExpected, "class").
WithLocation
(2, 8),
219
Diagnostic(ErrorCode.ERR_FeatureInPreview, "(int x, int y)").WithArguments("primary constructors").
WithLocation
(2, 19),
222
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(2, 24),
225
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(2, 31)
232
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "class").WithArguments("record structs", "10.0").
WithLocation
(2, 8)
314
Diagnostic(ErrorCode.ERR_RecordAmbigCtor, "R").
WithLocation
(2, 8),
317
Diagnostic(ErrorCode.ERR_RecordAmbigCtor, "R2").
WithLocation
(5, 8),
320
Diagnostic(ErrorCode.ERR_RecordAmbigCtor, "R3").
WithLocation
(7, 8)
340
Diagnostic(ErrorCode.ERR_RecordAmbigCtor, "R").
WithLocation
(2, 8),
343
Diagnostic(ErrorCode.ERR_RecordAmbigCtor, "R2").
WithLocation
(5, 8)
360
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "R").WithArguments("R", "R").
WithLocation
(4, 12)
396
Diagnostic(ErrorCode.ERR_RecordAmbigCtor, "R").
WithLocation
(4, 8),
399
Diagnostic(ErrorCode.ERR_AmbigCall, "(y)").WithArguments("R.R(R)", "R.R(R)").
WithLocation
(6, 30),
402
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Derived").WithArguments("Derived", "Derived").
WithLocation
(8, 12),
405
Diagnostic(ErrorCode.ERR_AmbigCall, "base").WithArguments("R.R(R)", "R.R(R)").
WithLocation
(8, 33),
408
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "base").
WithLocation
(8, 33),
411
Diagnostic(ErrorCode.ERR_RecordAmbigCtor, "Derived2").
WithLocation
(11, 8),
414
Diagnostic(ErrorCode.ERR_NoCopyConstructorInBaseType, "Derived2").WithArguments("R").
WithLocation
(11, 8),
417
Diagnostic(ErrorCode.ERR_AmbigCall, "(y)").WithArguments("R.R(R)", "R.R(R)").
WithLocation
(11, 32),
420
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "R2").WithArguments("R2", "R2").
WithLocation
(15, 12),
423
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "R2").
WithLocation
(15, 12),
426
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "R3").WithArguments("R3", "R3").
WithLocation
(20, 12)
443
Diagnostic(ErrorCode.ERR_RecordAmbigCtor, "R").
WithLocation
(2, 8)
475
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "I").WithArguments("I").
WithLocation
(2, 14)
497
Diagnostic(ErrorCode.ERR_TypeExpected, ")").
WithLocation
(2, 23),
500
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(2, 23)
532
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(2, 23),
535
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(2, 23),
538
Diagnostic(ErrorCode.ERR_TypeExpected, ")").
WithLocation
(4, 15),
541
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(4, 15),
544
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "").WithArguments("A", "").
WithLocation
(4, 15)
567
Diagnostic(ErrorCode.ERR_TypeExpected, ")").
WithLocation
(4, 14),
570
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(4, 14)
589
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(2, 28)
617
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(2, 20),
620
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(2, 29),
623
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "").WithArguments("A", "").
WithLocation
(2, 29)
651
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(2, 20),
654
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(2, 26),
657
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "").WithArguments("A", "").
WithLocation
(2, 26)
687
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(2, 20),
690
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(4, 18),
693
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "").WithArguments("A", "").
WithLocation
(4, 18)
711
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "x").WithArguments("x").
WithLocation
(2, 10),
714
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(2, 11),
717
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(2, 12),
720
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(2, 12)
741
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsWithExpression, "c with { i = 5 }").
WithLocation
(8, 44)
760
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "C").WithArguments("C").
WithLocation
(5, 15)
935
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "C").WithArguments("C", "C").
WithLocation
(5, 12),
938
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "C").
WithLocation
(5, 12),
941
Diagnostic(ErrorCode.ERR_AmbigCall, "C").WithArguments("C.C(int, int)", "C.C(int, int)").
WithLocation
(11, 21)
966
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(3, 14)
991
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(3, 14)
1006
Diagnostic(ErrorCode.ERR_DuplicateParamName, "X").WithArguments("X").
WithLocation
(2, 21),
1009
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "X").WithArguments("C", "X").
WithLocation
(2, 21)
1058
Diagnostic(ErrorCode.ERR_DuplicateParamName, "X").WithArguments("X").
WithLocation
(2, 27),
1061
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "X").WithArguments("C", "X").
WithLocation
(2, 27)
1114
Diagnostic(ErrorCode.ERR_MemberReserved, "X").WithArguments("get_X", "C").
WithLocation
(2, 14),
1117
Diagnostic(ErrorCode.ERR_MemberReserved, "Y").WithArguments("set_Y", "C").
WithLocation
(2, 21));
1160
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P").WithArguments("C1", "get_P").
WithLocation
(2, 18),
1163
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P").WithArguments("C2", "get_P").
WithLocation
(3, 32)
1194
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P1").WithArguments("C", "P1").
WithLocation
(1, 17),
1197
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "object P2").WithArguments("positional fields in records", "10.0").
WithLocation
(1, 21),
1200
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(1, 28),
1203
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P3").WithArguments("C", "P3").
WithLocation
(5, 9),
1206
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P4").WithArguments("C", "P4").
WithLocation
(6, 9)
1213
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P1").WithArguments("C", "P1").
WithLocation
(1, 17),
1216
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(1, 28),
1219
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P3").WithArguments("C", "P3").
WithLocation
(5, 9),
1222
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P4").WithArguments("C", "P4").
WithLocation
(6, 9)
1251
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "P1").WithArguments("int*").
WithLocation
(7, 10),
1254
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "P2").WithArguments("int*[]").
WithLocation
(8, 12),
1257
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "P4").WithArguments("delegate*<int, int>").
WithLocation
(10, 25),
1260
Diagnostic(ErrorCode.ERR_NoVoidParameter, "void").
WithLocation
(11, 5),
1263
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "C2").WithArguments("C2").
WithLocation
(12, 5),
1266
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "C2").WithArguments("C2").
WithLocation
(12, 5),
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),
1275
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "RefLike").WithArguments("RefLike").
WithLocation
(15, 5)
1306
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f1").WithArguments("int*").
WithLocation
(8, 17),
1309
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f2").WithArguments("int*[]").
WithLocation
(9, 19),
1312
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f4").WithArguments("delegate*<int, int>").
WithLocation
(11, 32),
1315
Diagnostic(ErrorCode.ERR_FieldCantHaveVoidType, "void").
WithLocation
(12, 12),
1318
Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "f6").WithArguments("C2").
WithLocation
(13, 15),
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),
1327
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "RefLike").WithArguments("RefLike").
WithLocation
(16, 12)
1358
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f1").WithArguments("int*").
WithLocation
(8, 17),
1361
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f2").WithArguments("int*[]").
WithLocation
(9, 19),
1364
Diagnostic(ErrorCode.ERR_BadFieldTypeInRecord, "f4").WithArguments("delegate*<int, int>").
WithLocation
(11, 32),
1367
Diagnostic(ErrorCode.ERR_PropertyCantHaveVoidType, "f5").WithArguments("C.f5").
WithLocation
(12, 17),
1370
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "C2").WithArguments("C2").
WithLocation
(13, 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),
1379
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "RefLike").WithArguments("RefLike").
WithLocation
(16, 12)
1420
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(4, 22),
1423
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(4, 33),
1426
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(4, 47)
1457
Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "f6").WithArguments("C2").
WithLocation
(12, 22),
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),
1466
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "RefLike").WithArguments("RefLike").
WithLocation
(15, 19)
1506
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "O1").WithArguments("O1").
WithLocation
(2, 18),
1509
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "O3").WithArguments("O3").
WithLocation
(2, 40),
1512
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "O5").WithArguments("O5").
WithLocation
(16, 18),
1515
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "O7").WithArguments("O7").
WithLocation
(26, 18)
1537
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "O3").WithArguments("O3").
WithLocation
(2, 40)
1658
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "C", isSuppressed: false).
WithLocation
(4, 5)
1753
Diagnostic(ErrorCode.ERR_StaticConstParam, "R").WithArguments("R.R(R)").
WithLocation
(4, 12)
1775
Diagnostic(ErrorCode.ERR_InvalidWithReceiverType, "Main()").
WithLocation
(7, 13),
1778
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(8, 13),
1781
Diagnostic(ErrorCode.ERR_InvalidWithReceiverType, "null").
WithLocation
(9, 13)
1932
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "X").WithArguments("B.X").
WithLocation
(14, 22)
1976
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(4, 19)
1997
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""""").WithArguments("string", "int").
WithLocation
(8, 26)
2140
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(8, 22)
2161
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(8, 26)
2187
Diagnostic(ErrorCode.ERR_CannotClone, "b").WithArguments("B").
WithLocation
(12, 13)
2213
Diagnostic(ErrorCode.ERR_CannotClone, "b").WithArguments("B").
WithLocation
(12, 13)
2238
Diagnostic(ErrorCode.ERR_CannotClone, "b").WithArguments("B").
WithLocation
(12, 13)
2261
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "X").WithArguments("C.X").
WithLocation
(5, 25)
2285
Diagnostic(ErrorCode.ERR_BadTypeReference, "X").WithArguments("X", "B.X").
WithLocation
(11, 22),
2288
Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "X").WithArguments("X").
WithLocation
(11, 22)
2333
Diagnostic(ErrorCode.ERR_CannotClone, "b").WithArguments("B").
WithLocation
(12, 13),
2336
Diagnostic(ErrorCode.ERR_NoSuchMember, "Y").WithArguments("B", "Y").
WithLocation
(12, 22)
2356
Diagnostic(ErrorCode.ERR_CannotClone, "c").WithArguments("dynamic").
WithLocation
(7, 17)
2519
Diagnostic(ErrorCode.ERR_BadSKknown, "r").WithArguments("r", "variable", "type").
WithLocation
(7, 9),
2522
Diagnostic(ErrorCode.WRN_UnreferencedVar, "with").WithArguments("with").
WithLocation
(7, 11),
2525
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(7, 16),
2528
Diagnostic(ErrorCode.ERR_AssignmentInitOnly, "X").WithArguments("R.X").
WithLocation
(7, 18),
2531
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(7, 24)
2550
Diagnostic(ErrorCode.ERR_CannotClone, "t").WithArguments("T").
WithLocation
(6, 13),
2553
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("T", "X").
WithLocation
(6, 22)
2574
Diagnostic(ErrorCode.ERR_CannotClone, "t").WithArguments("T").
WithLocation
(8, 13),
2577
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("T", "X").
WithLocation
(8, 22)
2627
Diagnostic(ErrorCode.ERR_CannotClone, "t").WithArguments("T").
WithLocation
(6, 13),
2630
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("T", "X").
WithLocation
(6, 22)
2709
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "t with { X = 2, Property = 3 }").WithArguments("with on structs", "10.0").
WithLocation
(11, 13),
2712
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("U", "X").
WithLocation
(11, 22),
2715
Diagnostic(ErrorCode.ERR_NoSuchMember, "Property").WithArguments("U", "Property").
WithLocation
(11, 29)
2722
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("U", "X").
WithLocation
(11, 22),
2725
Diagnostic(ErrorCode.ERR_NoSuchMember, "Property").WithArguments("U", "Property").
WithLocation
(11, 29)
2781
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("C").
WithLocation
(5, 17));
2798
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(2, 7),
2801
Diagnostic(ErrorCode.ERR_LbraceExpected, "=>").
WithLocation
(6, 24),
2804
Diagnostic(ErrorCode.ERR_RbraceExpected, "=>").
WithLocation
(6, 24),
2807
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=>").WithArguments("=>").
WithLocation
(6, 24),
2810
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(6, 28),
2813
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(6, 28)
2820
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "record").WithArguments("record").
WithLocation
(2, 7)
2837
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(2, 8)
2851
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(2, 11)
2865
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(2, 6)
2879
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(2, 15)
2903
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using record = System.Console;").
WithLocation
(2, 1),
2906
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(2, 7)
2920
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using @record = System.Console;").
WithLocation
(2, 1)
2950
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(2, 9),
2953
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(5, 18),
2956
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(9, 17),
2959
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(13, 20)
3029
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(3, 17),
3032
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(5, 17),
3035
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(8, 17),
3038
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(9, 17),
3041
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(16, 26),
3044
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(22, 25),
3047
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(25, 26),
3050
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(27, 26),
3053
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(30, 26)
3067
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(2, 8)
3082
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(2, 15),
3085
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(3, 15)
3110
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(3, 15)
3125
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(2, 15)
3164
Diagnostic(ErrorCode.WRN_RecordNamedDisallowed, "record").
WithLocation
(2, 7)
3217
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(2, 18),
3220
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(5, 12),
3223
Diagnostic(ErrorCode.WRN_UnreferencedField, "Clone").WithArguments("C2.Clone").
WithLocation
(5, 12),
3226
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(9, 12),
3229
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "string").WithArguments("string").
WithLocation
(13, 10),
3232
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(13, 17),
3235
Diagnostic(ErrorCode.WRN_UnreferencedField, "Clone").WithArguments("C4.Clone").
WithLocation
(13, 17),
3238
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(17, 10),
3241
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(18, 10),
3244
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(22, 11),
3247
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(26, 19),
3250
Diagnostic(ErrorCode.ERR_CloneDisallowedInRecord, "Clone").
WithLocation
(30, 25),
3253
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Clone").WithArguments("C8.Clone").
WithLocation
(30, 25)
3436
Diagnostic(ErrorCode.ERR_AbstractSealedStatic, "C1").WithArguments("C1").
WithLocation
(2, 24)
3467
Diagnostic(ErrorCode.ERR_AbstractSealedStatic, "C1").WithArguments("C1").
WithLocation
(2, 24)
3499
Diagnostic(ErrorCode.ERR_AbstractSealedStatic, "C2").WithArguments("C2").
WithLocation
(3, 24)
3526
Diagnostic(ErrorCode.ERR_AbstractSealedStatic, "C2").WithArguments("C2").
WithLocation
(3, 24)
3642
Diagnostic(ErrorCode.ERR_BadRecordBase, "A").
WithLocation
(2, 19)
3745
Diagnostic(ErrorCode.ERR_CannotClone, "new A()").WithArguments("A").
WithLocation
(6, 15)
3858
Diagnostic(ErrorCode.ERR_BadRecordBase, "A").
WithLocation
(2, 19)
3971
Diagnostic(ErrorCode.ERR_CannotClone, "new A()").WithArguments("A").
WithLocation
(6, 15)
4083
Diagnostic(ErrorCode.ERR_BadRecordBase, "A").
WithLocation
(2, 19)
4196
Diagnostic(ErrorCode.ERR_CannotClone, "new A()").WithArguments("A").
WithLocation
(6, 15)
4265
Diagnostic(ErrorCode.ERR_NoTypeDef, "c1").WithArguments("A", "Clone_12, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 18)
4304
Diagnostic(ErrorCode.ERR_CannotClone, "c1").WithArguments("C").
WithLocation
(7, 18),
4307
Diagnostic(ErrorCode.ERR_NoTypeDef, "c1").WithArguments("B", "Clone_13, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 18),
4310
Diagnostic(ErrorCode.ERR_NoTypeDef, "X").WithArguments("B", "Clone_13, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 28),
4313
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("C", "X").
WithLocation
(7, 28)
4320
Diagnostic(ErrorCode.ERR_CannotClone, "c1").WithArguments("C").
WithLocation
(7, 18),
4323
Diagnostic(ErrorCode.ERR_NoTypeDef, "c1").WithArguments("B", "Clone_13, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 18),
4326
Diagnostic(ErrorCode.ERR_NoTypeDef, "X").WithArguments("B", "Clone_13, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 28),
4329
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("C", "X").
WithLocation
(7, 28)
4395
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "C").WithArguments("C.Equals(object?)").
WithLocation
(2, 8),
4398
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "C").WithArguments("C.GetHashCode()").
WithLocation
(2, 8),
4401
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "C").WithArguments("C.ToString()").
WithLocation
(2, 8),
4404
Diagnostic(ErrorCode.ERR_NoTypeDef, "C").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 8),
4407
Diagnostic(ErrorCode.ERR_NoTypeDef, "B").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 19),
4410
Diagnostic(ErrorCode.ERR_NoTypeDef, "B").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 19),
4413
Diagnostic(ErrorCode.ERR_NoTypeDef, "C").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 22),
4416
Diagnostic(ErrorCode.ERR_NoTypeDef, "c1").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 18),
4419
Diagnostic(ErrorCode.ERR_NoTypeDef, "System").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 9),
4422
Diagnostic(ErrorCode.ERR_NoTypeDef, "System").WithArguments("A", "Clone_15, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(9, 9)
4461
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "D").WithArguments("D.Equals(object?)").
WithLocation
(2, 8),
4464
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "D").WithArguments("D.GetHashCode()").
WithLocation
(2, 8),
4467
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "D").WithArguments("D.ToString()").
WithLocation
(2, 8),
4470
Diagnostic(ErrorCode.ERR_NoTypeDef, "C").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 19),
4473
Diagnostic(ErrorCode.ERR_BadRecordBase, "C").
WithLocation
(2, 19),
4476
Diagnostic(ErrorCode.ERR_NoTypeDef, "C").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 19),
4479
Diagnostic(ErrorCode.ERR_NoTypeDef, "D").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 22)
4486
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "D").WithArguments("D.Equals(object?)").
WithLocation
(2, 8),
4489
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "D").WithArguments("D.GetHashCode()").
WithLocation
(2, 8),
4492
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "D").WithArguments("D.ToString()").
WithLocation
(2, 8),
4495
Diagnostic(ErrorCode.ERR_NoTypeDef, "C").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 19),
4498
Diagnostic(ErrorCode.ERR_BadRecordBase, "C").
WithLocation
(2, 19),
4501
Diagnostic(ErrorCode.ERR_NoTypeDef, "C").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 19),
4504
Diagnostic(ErrorCode.ERR_NoTypeDef, "D").WithArguments("B", "Clone_16, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 22)
4604
Diagnostic(ErrorCode.ERR_BadRecordBase, "A").
WithLocation
(2, 19)
4707
Diagnostic(ErrorCode.ERR_BadRecordBase, "A").
WithLocation
(2, 19)
4907
Diagnostic(ErrorCode.ERR_CantOverrideSealed, "C").WithArguments("C.<Clone>$()", "B.<Clone>$()").
WithLocation
(2, 15)
5149
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "record C1;").WithArguments("System.Text.StringBuilder").
WithLocation
(2, 1),
5152
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record C1;").WithArguments("System.Text.StringBuilder", ".ctor").
WithLocation
(2, 1),
5155
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "C1").WithArguments("System.Text.StringBuilder").
WithLocation
(2, 8)
5171
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record C1;").WithArguments("System.Text.StringBuilder", ".ctor").
WithLocation
(2, 1)
5187
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record C1;").WithArguments("System.Text.StringBuilder", "Append").
WithLocation
(2, 1)
5203
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record C1(int P);").WithArguments("System.Text.StringBuilder", "Append").
WithLocation
(2, 1),
5206
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record C1(int P);").WithArguments("System.Text.StringBuilder", "Append").
WithLocation
(2, 1)
5223
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record C1(int P);").WithArguments("System.Text.StringBuilder", "Append").
WithLocation
(2, 1),
5226
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record C1(int P);").WithArguments("System.Text.StringBuilder", "Append").
WithLocation
(2, 1)
5312
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "a", isSuppressed: false).WithArguments("C1.a").
WithLocation
(12, 32),
5315
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field1", isSuppressed: false).WithArguments("C1.field1").
WithLocation
(14, 17)
5395
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error").WithArguments("Error").
WithLocation
(2, 12)
5410
Diagnostic(ErrorCode.ERR_CircularBase, "R").WithArguments("R", "R").
WithLocation
(2, 8)
5425
Diagnostic(ErrorCode.ERR_AbstractSealedStatic, "C1").WithArguments("C1").
WithLocation
(2, 24)
5632
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error").WithArguments("Error").
WithLocation
(4, 12),
5635
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field").WithArguments("C1.field", "null").
WithLocation
(4, 18)
5663
Diagnostic(ErrorCode.WRN_UnreferencedField, "field3").WithArguments("C1.field3").
WithLocation
(10, 20),
5666
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field4").WithArguments("C1.field4", "null").
WithLocation
(11, 21),
5669
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field5").WithArguments("C1.field5", "null").
WithLocation
(12, 22),
5672
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field6").WithArguments("C1.field6", "null").
WithLocation
(13, 31),
5675
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field7").WithArguments("C1.field7", "null").
WithLocation
(14, 30)
5726
Diagnostic(ErrorCode.WRN_UnreferencedField, "Property2").WithArguments("C1.Property2").
WithLocation
(7, 17),
5729
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Property3").WithArguments("C1.Property3", "0").
WithLocation
(8, 18)
5852
Diagnostic(ErrorCode.ERR_AbstractSealedStatic, "C2").WithArguments("C2").
WithLocation
(3, 24)
5899
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "ToString").WithArguments("sealed ToString in record", "10.0").
WithLocation
(7, 35)
5946
Diagnostic(ErrorCode.ERR_CantOverrideSealed, "ToString").WithArguments("C2.ToString()", "C1.ToString()").
WithLocation
(11, 28)
6414
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.PrintMembers(System.Text.StringBuilder)", "A.PrintMembers(System.Text.StringBuilder)").
WithLocation
(2, 15)
6486
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.PrintMembers(System.Text.StringBuilder)").
WithLocation
(2, 15)
6558
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "B").WithArguments("B.PrintMembers(System.Text.StringBuilder)", "A.PrintMembers(System.Text.StringBuilder)", "int").
WithLocation
(2, 15)
6630
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "B").WithArguments("B.EqualityContract", "A.EqualityContract", "int").
WithLocation
(2, 15)
6770
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.PrintMembers(System.Text.StringBuilder)").
WithLocation
(2, 15)
7003
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseMethod, "PrintMembers").WithArguments("C.PrintMembers(System.Text.StringBuilder)", "B").
WithLocation
(4, 29)
7013
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseMethod, "C").WithArguments("C.PrintMembers(System.Text.StringBuilder)", "B").
WithLocation
(2, 15)
7169
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "B").WithArguments("B.ToString()").
WithLocation
(2, 15)
7287
Diagnostic(ErrorCode.ERR_InheritingFromRecordWithSealedToString, "B").WithArguments("9.0", "10.0").
WithLocation
(5, 15)
7335
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "ToString").WithArguments("sealed ToString in record", "10.0").
WithLocation
(4, 35)
7383
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error").WithArguments("Error").
WithLocation
(4, 23)
7401
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)", "bool").
WithLocation
(4, 27)
7420
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "PrintMembers").WithArguments("C2.PrintMembers(System.Text.StringBuilder)").
WithLocation
(5, 36)
7438
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").
WithLocation
(4, 20)
7471
Diagnostic(ErrorCode.ERR_StaticAPIInRecord, "PrintMembers").WithArguments("C.PrintMembers(System.Text.StringBuilder)").
WithLocation
(4, 25)
7511
Diagnostic(ErrorCode.ERR_NonProtectedAPIInRecord, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").
WithLocation
(4, 25)
7529
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").
WithLocation
(4, 20),
7532
Diagnostic(ErrorCode.ERR_NonPrivateAPIInRecord, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").
WithLocation
(4, 20)
7551
Diagnostic(ErrorCode.ERR_NonProtectedAPIInRecord, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").
WithLocation
(5, 17),
7554
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseMethod, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)", "B").
WithLocation
(5, 17),
7557
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").
WithLocation
(5, 17),
7560
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)", "B.PrintMembers(System.Text.StringBuilder)").
WithLocation
(5, 17)
7578
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseMethod, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)", "B").
WithLocation
(5, 32)
7992
Diagnostic(ErrorCode.ERR_CannotClone, "c").WithArguments("C").
WithLocation
(8, 13),
7995
Diagnostic(ErrorCode.ERR_BadBinaryOps, @"""""-3").WithArguments("-", "string", "int").
WithLocation
(8, 26)
8017
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""""").WithArguments("string", "int").
WithLocation
(8, 26)
8041
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "X").WithArguments("C.X").
WithLocation
(11, 22)
8374
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "s").WithArguments("S", "long").
WithLocation
(19, 41)
8466
Diagnostic(ErrorCode.ERR_ObjectProhibited, "X").WithArguments("C.X").
WithLocation
(9, 22)
8488
Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "X").WithArguments("X").
WithLocation
(9, 22)
8511
Diagnostic(ErrorCode.ERR_CannotClone, "c").WithArguments("C").
WithLocation
(9, 13),
8514
Diagnostic(ErrorCode.ERR_CannotClone, "c").WithArguments("C").
WithLocation
(10, 13)
8542
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "c with { }").WithArguments("B", "C").
WithLocation
(13, 13),
8545
Diagnostic(ErrorCode.ERR_NoSuchMember, "X").WithArguments("B", "X").
WithLocation
(14, 22)
8566
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""a""").WithArguments("string", "int").
WithLocation
(8, 26)
8822
Diagnostic(ErrorCode.ERR_CannotClone, "r").WithArguments("R").
WithLocation
(11, 13));
8844
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "5").
WithLocation
(8, 22),
8847
Diagnostic(ErrorCode.ERR_RbraceExpected, "{").
WithLocation
(9, 22),
8850
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(9, 22),
8853
Diagnostic(ErrorCode.ERR_ObjectRequired, "X").WithArguments("C.X").
WithLocation
(9, 24),
8856
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(9, 30),
8859
Diagnostic(ErrorCode.ERR_UnexpectedSemicolon, ";").
WithLocation
(9, 33),
8862
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(11, 1)
8943
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(7, 26));
8978
Diagnostic(ErrorCode.ERR_UseDefViolation, "b").WithArguments("b").
WithLocation
(7, 19));
9056
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").
WithLocation
(8, 26));
9084
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(7, 21),
9087
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(9, 21),
9090
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(14, 21));
9116
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b").
WithLocation
(7, 18),
9119
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b").
WithLocation
(14, 10));
9150
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(10, 13),
9153
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Y").
WithLocation
(11, 13),
9156
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(15, 9));
9188
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.Y").
WithLocation
(14, 13)
9214
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "[AllowNull] string X").
WithLocation
(5, 10),
9217
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 26),
9220
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(11, 9));
9245
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b.X").
WithLocation
(11, 9));
9275
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b1.X").
WithLocation
(11, 9),
9278
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b1.Y").
WithLocation
(12, 9),
9281
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b2.Y").
WithLocation
(14, 9),
9284
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "b3.X").
WithLocation
(15, 9));
9308
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "local").
WithLocation
(11, 17));
9334
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "local").
WithLocation
(13, 17));
9388
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "{ X = null }").
WithLocation
(10, 21),
9391
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "{ X = null }").
WithLocation
(11, 18));
9419
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "{ X = null }").
WithLocation
(13, 21),
9422
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "{ X = null }").
WithLocation
(14, 18));
9650
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "set").
WithLocation
(9, 9),
9653
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "X").
WithLocation
(15, 28),
9656
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "X").
WithLocation
(17, 22)
9675
Diagnostic(ErrorCode.ERR_MemberAlreadyInitialized, "X").WithArguments("X").
WithLocation
(7, 29)
9735
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(11, 17),
9738
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(11, 28),
9741
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(11, 39),
9744
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P4").WithArguments("P4").
WithLocation
(11, 50),
9747
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P5").WithArguments("P5").
WithLocation
(11, 61)
9776
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(6, 29),
9779
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(6, 40)
9816
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Q").WithArguments("Q").
WithLocation
(1, 28)
9844
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(12, 17),
9847
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(12, 28),
9850
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(12, 39),
9853
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P4").WithArguments("A.P4", "object", "P4").
WithLocation
(12, 50),
9856
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P4").WithArguments("P4").
WithLocation
(12, 50),
9859
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P5").WithArguments("P5").
WithLocation
(12, 61),
9862
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P6").WithArguments("A.P6", "object", "P6").
WithLocation
(12, 72),
9865
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P6").WithArguments("P6").
WithLocation
(12, 72),
9868
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P7").WithArguments("P7").
WithLocation
(12, 83));
9890
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P1").WithArguments("A.P1", "int", "P1").
WithLocation
(7, 14),
9893
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(7, 14),
9896
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P2").WithArguments("A.P2", "object", "P2").
WithLocation
(7, 25),
9899
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(7, 25));
9934
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(7, 14),
9937
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "Y").WithArguments("A.Y", "int", "Y").
WithLocation
(7, 21),
9940
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(7, 21),
9943
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int Z").WithArguments("positional fields in records", "10.0").
WithLocation
(7, 24),
9946
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Z").WithArguments("Z").
WithLocation
(7, 28));
9971
Diagnostic(ErrorCode.ERR_NoSetToOverride, "X").WithArguments("B1.X.init", "A.X").
WithLocation
(6, 24),
9974
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(6, 31),
9977
Diagnostic(ErrorCode.ERR_NoSetToOverride, "X").WithArguments("B2.X.init", "A.X").
WithLocation
(9, 15),
9980
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(9, 22));
10012
Diagnostic(ErrorCode.ERR_NoSetToOverride, "X").WithArguments("C.X.init", "A.X").
WithLocation
(11, 14),
10015
Diagnostic(ErrorCode.ERR_NoSetToOverride, "Y").WithArguments("C.Y.init", "B.Y").
WithLocation
(11, 21),
10018
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Z").WithArguments("Z").
WithLocation
(11, 28));
10037
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(1, 23),
10040
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(1, 30)
10147
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "IA").WithArguments("C", "IA.X", "C.X", "int").
WithLocation
(9, 32),
10150
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongInitOnly, "IB").WithArguments("C", "IB.Y.set", "C.Y.init").
WithLocation
(9, 36)
10172
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(6, 17),
10175
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(6, 27),
10178
Diagnostic(ErrorCode.WRN_NewRequired, "X").WithArguments("B.X", "A.X").
WithLocation
(8, 19),
10181
Diagnostic(ErrorCode.WRN_NewRequired, "Y").WithArguments("B.Y", "A.Y").
WithLocation
(9, 19));
10209
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(5, 17),
10212
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(5, 27),
10215
Diagnostic(ErrorCode.WRN_NewRequired, "X").WithArguments("B.X", "A.X").
WithLocation
(7, 19),
10218
Diagnostic(ErrorCode.WRN_NewRequired, "Y").WithArguments("B.Y", "A.Y").
WithLocation
(8, 19));
10252
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P1").WithArguments("B.P1", "object", "P1").
WithLocation
(13, 17),
10255
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(13, 17),
10258
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(13, 25),
10261
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(13, 36),
10264
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P4").WithArguments("A.P4", "int", "P4").
WithLocation
(13, 44),
10267
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P4").WithArguments("P4").
WithLocation
(13, 44));
10285
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P1").WithArguments("C.P1", "int", "P1").
WithLocation
(1, 14),
10288
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(1, 14),
10291
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P2").WithArguments("C.P2", "object", "P2").
WithLocation
(1, 25),
10294
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(1, 25));
10325
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(8, 17),
10328
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P2").WithArguments("B.P2", "int", "P2").
WithLocation
(8, 25),
10331
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(8, 25),
10334
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P3").WithArguments("A.P3", "object", "P3").
WithLocation
(8, 36),
10337
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(8, 36),
10340
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P4").WithArguments("P4").
WithLocation
(8, 44));
10371
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P1").WithArguments("B.P1", "object", "P1").
WithLocation
(8, 17),
10374
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(8, 17),
10377
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(8, 25),
10380
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(8, 36),
10383
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P4").WithArguments("A.P4", "int", "P4").
WithLocation
(8, 44),
10386
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P4").WithArguments("P4").
WithLocation
(8, 44));
10414
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(1, 17),
10417
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(1, 28),
10420
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P3").WithArguments("C.P3", "object", "P3").
WithLocation
(1, 39),
10423
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(1, 39),
10426
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P4").WithArguments("C.P4", "object", "P4").
WithLocation
(1, 50),
10429
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P4").WithArguments("P4").
WithLocation
(1, 50),
10432
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P5").WithArguments("P5").
WithLocation
(1, 61));
10472
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(15, 18),
10475
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(15, 31),
10478
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(15, 42),
10481
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P4").WithArguments("P4").
WithLocation
(15, 56),
10484
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P5").WithArguments("P5").
WithLocation
(15, 71),
10487
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P6").WithArguments("P6").
WithLocation
(15, 92),
10490
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P7").WithArguments("P7").
WithLocation
(15, 110),
10493
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P8").WithArguments("P8").
WithLocation
(15, 122)
10520
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(3, 18),
10523
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(3, 31),
10526
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(3, 42),
10529
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P4").WithArguments("P4").
WithLocation
(3, 56),
10532
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P5").WithArguments("P5").
WithLocation
(3, 71),
10535
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P6").WithArguments("P6").
WithLocation
(3, 92),
10538
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P7").WithArguments("P7").
WithLocation
(3, 110),
10541
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P8").WithArguments("P8").
WithLocation
(3, 122)
10598
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(1, 17),
10601
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(1, 28)
10663
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(11, 17),
10666
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(11, 28)
10693
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(11, 17),
10696
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P2").WithArguments("B.P2", "object", "P2").
WithLocation
(11, 28),
10699
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(11, 28));
10725
Diagnostic(ErrorCode.ERR_MemberReserved, "P").WithArguments("get_P", "C").
WithLocation
(9, 17));
10805
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P1").WithArguments("A.P1", "object", "P1").
WithLocation
(1, 17),
10808
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(1, 17),
10811
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "object P2").WithArguments("positional fields in records", "10.0").
WithLocation
(1, 21),
10814
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(1, 28),
10817
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P3").WithArguments("A.P3", "object", "P3").
WithLocation
(1, 39),
10820
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(1, 39));
10835
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P1").WithArguments("A.P1", "object", "P1").
WithLocation
(1, 17),
10838
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(1, 17),
10841
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P3").WithArguments("A.P3", "object", "P3").
WithLocation
(1, 39),
10844
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(1, 39));
10871
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P").WithArguments("A.P", "object", "P").
WithLocation
(1, 17),
10874
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(1, 17));
10967
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.EqualityContract").
WithLocation
(1, 8),
10970
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.Equals(A?)").
WithLocation
(1, 8),
10973
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.PrintMembers(System.Text.StringBuilder)").
WithLocation
(1, 8),
10976
Diagnostic(ErrorCode.ERR_NoCopyConstructorInBaseType, "B").WithArguments("A").
WithLocation
(1, 8),
10979
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(1, 17),
10982
Diagnostic(ErrorCode.ERR_BadRecordBase, "A").
WithLocation
(1, 32)
11038
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.EqualityContract").
WithLocation
(1, 8),
11041
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.Equals(A?)").
WithLocation
(1, 8),
11044
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.PrintMembers(System.Text.StringBuilder)").
WithLocation
(1, 8),
11047
Diagnostic(ErrorCode.ERR_NoCopyConstructorInBaseType, "B").WithArguments("A").
WithLocation
(1, 8),
11050
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(1, 17),
11053
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Q").WithArguments("Q").
WithLocation
(1, 27),
11056
Diagnostic(ErrorCode.ERR_BadRecordBase, "A").
WithLocation
(1, 32)
11128
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "C").WithArguments("C.EqualityContract").
WithLocation
(1, 8),
11131
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "C").WithArguments("C.Equals(B?)").
WithLocation
(1, 8),
11134
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "C").WithArguments("C.PrintMembers(System.Text.StringBuilder)").
WithLocation
(1, 8),
11137
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "C").WithArguments("b", "B.B(B)").
WithLocation
(1, 8),
11140
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(1, 17),
11143
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Q").WithArguments("Q").
WithLocation
(1, 27),
11146
Diagnostic(ErrorCode.ERR_BadRecordBase, "B").
WithLocation
(1, 42)
11178
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(11, 17),
11181
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(11, 28),
11184
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P3").WithArguments("P3").
WithLocation
(11, 39),
11187
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P4").WithArguments("P4").
WithLocation
(11, 50),
11190
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P5").WithArguments("A.P5", "object", "P5").
WithLocation
(11, 61),
11193
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P5").WithArguments("P5").
WithLocation
(11, 61),
11196
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P6").WithArguments("A.P6", "object", "P6").
WithLocation
(11, 72),
11199
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P6").WithArguments("P6").
WithLocation
(11, 72),
11202
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P7").WithArguments("A.P7", "object", "P7").
WithLocation
(11, 83),
11205
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P7").WithArguments("P7").
WithLocation
(11, 83));
11230
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.P6.set").
WithLocation
(10, 8),
11233
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.P5.init").
WithLocation
(10, 8),
11236
Diagnostic(ErrorCode.ERR_NoSetToOverride, "P1").WithArguments("B.P1.init", "A.P1").
WithLocation
(10, 17),
11239
Diagnostic(ErrorCode.ERR_CantChangeInitOnlyOnOverride, "P2").WithArguments("B.P2", "A.P2").
WithLocation
(10, 28),
11242
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "P3").WithArguments("B.P3.init", "protected", "A.P3.init").
WithLocation
(10, 39),
11245
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "P4").WithArguments("B.P4.get", "protected", "A.P4.get").
WithLocation
(10, 50),
11248
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P5").WithArguments("A.P5", "object", "P5").
WithLocation
(10, 61),
11251
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P5").WithArguments("P5").
WithLocation
(10, 61),
11254
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P6").WithArguments("A.P6", "object", "P6").
WithLocation
(10, 72),
11257
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P6").WithArguments("P6").
WithLocation
(10, 72));
11287
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.P1.init").
WithLocation
(6, 8),
11290
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.P1.get").
WithLocation
(6, 8),
11293
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P1").WithArguments("A.P1", "string", "P1").
WithLocation
(6, 17),
11296
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(6, 17),
11299
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P2").WithArguments("A.P2", "string", "P2").
WithLocation
(6, 28),
11302
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P2").WithArguments("P2").
WithLocation
(6, 28));
11354
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(2, 26),
11357
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(2, 36)
11806
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(2, 26),
11809
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(2, 36)
12079
Diagnostic(ErrorCode.ERR_HidingAbstractMethod, "X").WithArguments("B.X()", "A.X").
WithLocation
(9, 21),
12082
Diagnostic(ErrorCode.ERR_HidingAbstractMethod, "Y").WithArguments("B.Y", "A.Y").
WithLocation
(10, 23),
12085
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "C").WithArguments("C", "A.Y.get").
WithLocation
(12, 8),
12088
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "C").WithArguments("C", "A.X.get").
WithLocation
(12, 8),
12091
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "C").WithArguments("C", "A.X.init").
WithLocation
(12, 8),
12094
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "C").WithArguments("C", "A.Y.init").
WithLocation
(12, 8),
12097
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "X").WithArguments("B.X", "object", "X").
WithLocation
(12, 17),
12100
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(12, 17),
12103
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "Y").WithArguments("B.Y", "object", "Y").
WithLocation
(12, 27),
12106
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(12, 27));
12205
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "CB").WithArguments("CB", "A.P.get").
WithLocation
(2, 8),
12208
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "CB").WithArguments("CB", "A.P.init").
WithLocation
(2, 8),
12211
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P").WithArguments("B.P", "object", "P").
WithLocation
(2, 18),
12214
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(2, 18));
12586
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.EqualityContract").
WithLocation
(1, 8));
12785
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field").WithArguments("C.field").
WithLocation
(3, 17)
12882
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "C").WithArguments("B", "0").
WithLocation
(6, 12),
12885
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "C").
WithLocation
(6, 12)
12912
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "I").WithArguments("I").
WithLocation
(1, 21)
12955
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "I").WithArguments("I").
WithLocation
(1, 21)
12986
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "base").WithArguments("object", "1").
WithLocation
(4, 21),
12989
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "base").
WithLocation
(4, 21)
13040
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "this").
WithLocation
(3, 21)
13100
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "C").WithArguments("B", "0").
WithLocation
(6, 12),
13103
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "C").
WithLocation
(6, 12)
13125
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "this").
WithLocation
(6, 21)
13154
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "base").
WithLocation
(6, 21),
13157
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "base").
WithLocation
(13, 22)
13271
Diagnostic(ErrorCode.ERR_CopyConstructorWrongAccessibility, "B").WithArguments("B.B(B)").
WithLocation
(3, 13),
13274
Diagnostic(ErrorCode.ERR_CopyConstructorWrongAccessibility, "C").WithArguments("C.C(C)").
WithLocation
(7, 13),
13277
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "base").
WithLocation
(7, 22),
13280
Diagnostic(ErrorCode.ERR_CopyConstructorWrongAccessibility, "D").WithArguments("D.D(D)").
WithLocation
(11, 13),
13283
Diagnostic(ErrorCode.ERR_BadAccess, "base").WithArguments("B.B(B)").
WithLocation
(11, 22),
13286
Diagnostic(ErrorCode.ERR_NoCopyConstructorInBaseType, "E").WithArguments("B").
WithLocation
(13, 15)
13302
Diagnostic(ErrorCode.ERR_CopyConstructorWrongAccessibility, "B").WithArguments("B.B(B)").
WithLocation
(3, 14)
13314
Diagnostic(ErrorCode.ERR_NoCopyConstructorInBaseType, "C").WithArguments("B").
WithLocation
(2, 8)
13327
Diagnostic(ErrorCode.ERR_BadAccess, "base").WithArguments("B.B(B)").
WithLocation
(4, 24)
13364
Diagnostic(ErrorCode.ERR_BadAccess, "B").WithArguments("B").
WithLocation
(2, 19),
13367
Diagnostic(ErrorCode.ERR_BadAccess, "(3, 4)").WithArguments("B.B(object, object)").
WithLocation
(2, 20)
13418
Diagnostic(ErrorCode.ERR_CopyConstructorWrongAccessibility, "Unsealed").WithArguments("Unsealed.Unsealed(Unsealed)").
WithLocation
(12, 14)
13449
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "B").
WithLocation
(3, 12)
13593
Diagnostic(ErrorCode.ERR_NoCopyConstructorInBaseType, "C").WithArguments("B").
WithLocation
(2, 15)
13605
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "C").
WithLocation
(4, 12)
13678
Diagnostic(ErrorCode.ERR_NoCopyConstructorInBaseType, "C").WithArguments("B").
WithLocation
(2, 15)
13859
Diagnostic(ErrorCode.ERR_NoCopyConstructorInBaseType, "C").WithArguments("B").
WithLocation
(2, 15)
13958
Diagnostic(ErrorCode.ERR_CopyConstructorWrongAccessibility, "A").WithArguments("A.A(A)").
WithLocation
(4, 6 + accessibility.Length)
14045
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "A").WithArguments("A.A(A)").
WithLocation
(4, 6 + accessibility.Length)
14262
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(3, 14)
14297
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "X").WithArguments("B", "X").
WithLocation
(4, 16)
14335
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "X").WithArguments("B.X", "int", "X").
WithLocation
(7, 14),
14338
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(7, 14)
14382
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(9, 14)
14417
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "X").WithArguments("C", "X").
WithLocation
(4, 16)
14455
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int X").WithArguments("positional fields in records", "10.0").
WithLocation
(4, 10),
14458
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(4, 14),
14461
Diagnostic(ErrorCode.WRN_UnreferencedField, "X").WithArguments("C.X").
WithLocation
(6, 9)
14468
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(4, 14),
14471
Diagnostic(ErrorCode.WRN_UnreferencedField, "X").WithArguments("C.X").
WithLocation
(6, 9)
14509
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "X").WithArguments("C", "X").
WithLocation
(6, 18),
14512
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "X").WithArguments("C.X").
WithLocation
(6, 18)
14553
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "X").WithArguments("B.X", "int", "X").
WithLocation
(9, 14),
14556
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(9, 14));
14625
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "()").WithArguments("C", "Deconstruct").
WithLocation
(8, 19),
14628
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "()").WithArguments("C", "0").
WithLocation
(8, 19));
14772
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(9, 14),
14775
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(9, 21)
14902
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "X").WithArguments("C.X", "int", "X").
WithLocation
(4, 14),
14905
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(4, 14),
14908
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "Y").WithArguments("C.Y", "int", "Y").
WithLocation
(4, 21),
14911
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(4, 21));
14951
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(5, 18),
14954
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(5, 28)
14997
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "X").WithArguments("C.X", "Derived", "X").
WithLocation
(7, 18),
15000
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(7, 18),
15003
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "Y").WithArguments("C.Y", "Base", "Y").
WithLocation
(7, 26),
15006
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(7, 26));
15038
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "()").WithArguments("C", "Deconstruct").
WithLocation
(8, 19),
15041
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "()").WithArguments("C", "0").
WithLocation
(8, 19));
15174
Diagnostic(ErrorCode.ERR_ObjectProhibited, "()", isSuppressed: false).WithArguments("C.Deconstruct()").
WithLocation
(8, 19),
15177
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "()").WithArguments("C", "0").
WithLocation
(8, 19));
15210
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "()").WithArguments("C", "0").
WithLocation
(8, 19));
15325
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "Deconstruct").WithArguments("B.Deconstruct(out int)", "void").
WithLocation
(5, 16),
15328
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(int x)").WithArguments("B", "1").
WithLocation
(11, 19));
15404
Diagnostic(ErrorCode.ERR_OverloadRefKind, "Deconstruct").WithArguments("B", "method", "ref", "out").
WithLocation
(5, 17)
15503
Diagnostic(ErrorCode.ERR_NonPublicAPIInRecord, "Deconstruct").WithArguments("A.Deconstruct(out int)").
WithLocation
(4, 11 + accessibility.Length)
15522
Diagnostic(ErrorCode.ERR_StaticAPIInRecord, "Deconstruct").WithArguments("A.Deconstruct(out int)").
WithLocation
(4, 24)
15546
Diagnostic(ErrorCode.ERR_HidingAbstractMethod, "B").WithArguments("B.Deconstruct(out int, out int)", "A.Deconstruct(out int, out int)").
WithLocation
(6, 17)
15564
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "X").WithArguments("A.X", "int", "X").
WithLocation
(2, 14),
15567
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(2, 14)
15587
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "X").WithArguments("A.X", "int", "X").
WithLocation
(7, 14),
15590
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(7, 14)
15699
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "Y").WithArguments("B.Y", "int", "Y").
WithLocation
(4, 21),
15702
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(4, 21));
15730
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Equals").WithArguments("Equals", "A").
WithLocation
(3, 33),
15733
Diagnostic(ErrorCode.ERR_SealedAPIInRecord, "GetHashCode").WithArguments("A.GetHashCode()").
WithLocation
(4, 32),
15736
Diagnostic(ErrorCode.ERR_CantOverrideSealed, "B").WithArguments("B.GetHashCode()", "A.GetHashCode()").
WithLocation
(7, 8)
15744
Diagnostic(ErrorCode.ERR_SealedAPIInRecord, "GetHashCode").WithArguments("A.GetHashCode()").
WithLocation
(4, 32),
15747
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "ToString").WithArguments("sealed ToString in record", "10.0").
WithLocation
(5, 35),
15750
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Equals").WithArguments("Equals", "A").
WithLocation
(3, 33),
15753
Diagnostic(ErrorCode.ERR_CantOverrideSealed, "B").WithArguments("B.GetHashCode()", "A.GetHashCode()").
WithLocation
(7, 8)
15802
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Equals").WithArguments("Equals", "A").
WithLocation
(3, 35),
15805
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.Equals(object)").
WithLocation
(7, 8)
15940
Diagnostic(ErrorCode.ERR_CantOverrideSealed, "B").WithArguments("B.Equals(object?)", "A.Equals(object)").
WithLocation
(2, 15)
16046
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "B").WithArguments("B.Equals(object?)").
WithLocation
(2, 15)
16146
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.Equals(object?)", "A.Equals(object)").
WithLocation
(2, 15)
16246
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "B").WithArguments("B.Equals(object?)", "A.Equals(object)", "int").
WithLocation
(2, 15)
16296
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "A").WithArguments("A.Equals(object?)", "object.Equals(object)", "int").
WithLocation
(2, 15),
16300
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Type").
WithLocation
(2, 15),
16304
}").WithArguments("System.Exception").
WithLocation
(2, 1),
16308
}").WithArguments("System.Exception").
WithLocation
(2, 1),
16312
}").WithArguments("System.Exception").
WithLocation
(2, 1),
16314
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
16316
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
16318
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
16320
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
16322
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
16324
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
16326
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
16328
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
16330
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
16332
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
16334
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
16338
}").WithArguments("System.Type", "GetTypeFromHandle").
WithLocation
(2, 1),
16342
}").WithArguments("System.Collections.Generic.EqualityComparer`1", "GetHashCode").
WithLocation
(2, 1),
16346
}").WithArguments("System.Type", "op_Equality").
WithLocation
(2, 1)
16365
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Equals").WithArguments("Equals", "A").
WithLocation
(3, 28)
16478
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "B").WithArguments("B.GetHashCode()").
WithLocation
(2, 15)
16485
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "GetHashCode").WithArguments("B.GetHashCode()").
WithLocation
(3, 25)
16492
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "B").WithArguments("B.GetHashCode()").
WithLocation
(2, 15)
16499
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "B").WithArguments("B.GetHashCode()").
WithLocation
(2, 15)
16506
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "GetHashCode").WithArguments("B.GetHashCode()").
WithLocation
(3, 25)
16513
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "GetHashCode").WithArguments("B.GetHashCode()").
WithLocation
(3, 25)
16613
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.GetHashCode()", "A.GetHashCode()").
WithLocation
(2, 15)
16624
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "GetHashCode").WithArguments("B.GetHashCode()", "A.GetHashCode()").
WithLocation
(3, 25)
16724
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "B").WithArguments("B.GetHashCode()", "A.GetHashCode()", "bool").
WithLocation
(2, 15)
16735
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "GetHashCode").WithArguments("B.GetHashCode()", "A.GetHashCode()", "bool").
WithLocation
(3, 25)
16752
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "GetHashCode").WithArguments("A.GetHashCode()", "object.GetHashCode()", "int").
WithLocation
(3, 26)
16769
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "GetHashCode").WithArguments("A.GetHashCode()").
WithLocation
(3, 20)
16788
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "GetHashCode").WithArguments("A.GetHashCode()").
WithLocation
(3, 27),
16791
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.GetHashCode()", "A.GetHashCode()").
WithLocation
(6, 8)
16808
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "GetHashCode").WithArguments("A", "GetHashCode").
WithLocation
(3, 20)
16825
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "GetHashCode").WithArguments("A.GetHashCode()").
WithLocation
(3, 21)
16858
Diagnostic(ErrorCode.ERR_SealedAPIInRecord, "GetHashCode").WithArguments("A.GetHashCode()").
WithLocation
(4, 32)
16972
Diagnostic(ErrorCode.ERR_CantOverrideSealed, "B").WithArguments("B.GetHashCode()", "A.GetHashCode()").
WithLocation
(2, 15)
16983
Diagnostic(ErrorCode.ERR_CantOverrideSealed, "GetHashCode").WithArguments("B.GetHashCode()", "A.GetHashCode()").
WithLocation
(3, 25)
17084
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "GetHashCode").WithArguments("B.GetHashCode()").
WithLocation
(3, 23)
17191
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses, "GetHashCode").WithArguments("B.GetHashCode()", "A.GetHashCode()", "A").
WithLocation
(3, 23)
17246
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "GetHashCode").WithArguments("A.GetHashCode()").
WithLocation
(3, 31),
17251
}").WithArguments("System.Exception").
WithLocation
(2, 1),
17256
}").WithArguments("System.Exception").
WithLocation
(2, 1),
17259
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Type").
WithLocation
(2, 15),
17261
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
17263
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
17265
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
17267
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
17269
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
17271
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
17273
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
17275
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
17277
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
17279
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
17281
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
17286
}").WithArguments("System.Type", "GetTypeFromHandle").
WithLocation
(2, 1),
17291
}").WithArguments("System.Type", "op_Equality").
WithLocation
(2, 1)
17342
Diagnostic(ErrorCode.ERR_DoesNotOverrideMethodFromObject, "GetHashCode").WithArguments("A.GetHashCode()").
WithLocation
(3, 26),
17347
}").WithArguments("System.Exception").
WithLocation
(2, 1),
17352
}").WithArguments("System.Exception").
WithLocation
(2, 1),
17355
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Type").
WithLocation
(2, 15),
17357
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
17359
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
17361
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
17363
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
17365
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
17367
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
17369
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
17371
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
17373
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
17375
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
17377
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
17382
}").WithArguments("System.Type", "GetTypeFromHandle").
WithLocation
(2, 1),
17387
}").WithArguments("System.Type", "op_Equality").
WithLocation
(2, 1)
17437
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "A").WithArguments("A.GetHashCode()", "object.GetHashCode()", "bool").
WithLocation
(2, 15),
17441
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Type").
WithLocation
(2, 15),
17445
}").WithArguments("System.Exception").
WithLocation
(2, 1),
17449
}").WithArguments("System.Exception").
WithLocation
(2, 1),
17453
}").WithArguments("System.Exception").
WithLocation
(2, 1),
17455
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
17457
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
17459
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
17461
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
17463
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
17465
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
17467
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Attribute").
WithLocation
(1, 1),
17469
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Byte").
WithLocation
(1, 1),
17471
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", ".ctor").
WithLocation
(1, 1),
17473
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "AllowMultiple").
WithLocation
(1, 1),
17475
Diagnostic(ErrorCode.ERR_MissingPredefinedMember).WithArguments("System.AttributeUsageAttribute", "Inherited").
WithLocation
(1, 1),
17479
}").WithArguments("System.Type", "GetTypeFromHandle").
WithLocation
(2, 1),
17483
}").WithArguments("System.Collections.Generic.EqualityComparer`1", "GetHashCode").
WithLocation
(2, 1),
17487
}").WithArguments("System.Type", "op_Equality").
WithLocation
(2, 1)
17587
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.Equals(A?)", "A.Equals(A)").
WithLocation
(2, 15)
17687
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.Equals(A?)", "A.Equals(A)").
WithLocation
(2, 15)
17793
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "B").WithArguments("B.Equals(A?)", "A.Equals(A)", "int").
WithLocation
(2, 15)
17990
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseMethod, "C").WithArguments("C.Equals(B?)", "B").
WithLocation
(2, 15)
18012
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Equals").WithArguments("Equals", "B").
WithLocation
(8, 26)
18048
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(5, 26),
18051
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B").
WithLocation
(9, 25)
18087
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B").
WithLocation
(9, 26)
18118
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "Equals").WithArguments("B.Equals(B)").
WithLocation
(9, 33),
18121
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B").
WithLocation
(9, 33)
18157
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B").
WithLocation
(9, 33)
18195
Diagnostic(ErrorCode.ERR_HidingAbstractMethod, "B").WithArguments("B.Equals(B?)", "A.Equals(B)").
WithLocation
(7, 17)
18229
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.Equals(B)").
WithLocation
(8, 8)
18396
Diagnostic(ErrorCode.ERR_NonPublicAPIInRecord, "Equals").WithArguments("A.Equals(A)").
WithLocation
(4, 19 + accessibility.Length),
18399
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 19 + accessibility.Length)
18422
Diagnostic(ErrorCode.ERR_VirtualPrivate, "Equals").WithArguments("A.Equals(A)").
WithLocation
(4, 19 + accessibility.Length),
18425
Diagnostic(ErrorCode.ERR_NonPublicAPIInRecord, "Equals").WithArguments("A.Equals(A)").
WithLocation
(4, 19 + accessibility.Length),
18428
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 19 + accessibility.Length)
18489
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "Equals").WithArguments("A.Equals(A)", "bool").
WithLocation
(4, 24),
18492
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 24)
18520
}").WithArguments("System.Boolean").
WithLocation
(2, 1),
18529
}").WithArguments("System.Boolean").
WithLocation
(2, 1),
18538
}").WithArguments("System.Boolean").
WithLocation
(2, 1),
18547
}").WithArguments("System.Boolean").
WithLocation
(2, 1),
18550
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Boolean").
WithLocation
(2, 8),
18553
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Boolean").
WithLocation
(2, 8),
18556
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Boolean").
WithLocation
(2, 8),
18559
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Boolean").
WithLocation
(2, 8),
18562
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "bool").WithArguments("System.Boolean").
WithLocation
(4, 20),
18565
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 25)
18586
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Boolean").WithArguments("Boolean").
WithLocation
(4, 20),
18589
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 28)
18723
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "A").WithArguments("A", "System.IEquatable<A>.Equals(A)", "A.Equals(A)").
WithLocation
(2, 8),
18726
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "Equals").WithArguments("A.Equals(A)").
WithLocation
(4, 24),
18729
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 24),
18732
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.Equals(A?)", "A.Equals(A)").
WithLocation
(7, 8)
18750
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "A").WithArguments("A", "System.IEquatable<A>.Equals(A)", "A.Equals(A)").
WithLocation
(2, 15),
18753
Diagnostic(ErrorCode.ERR_StaticAPIInRecord, "Equals").WithArguments("A.Equals(A)").
WithLocation
(4, 24),
18756
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 24)
18827
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "EqualityContract").WithArguments("B.EqualityContract").
WithLocation
(9, 43)
18955
Diagnostic(ErrorCode.ERR_NonProtectedAPIInRecord, "EqualityContract").WithArguments("A.EqualityContract").
WithLocation
(4, 26 + accessibility.Length)
18978
Diagnostic(ErrorCode.ERR_VirtualPrivate, "EqualityContract").WithArguments("A.EqualityContract").
WithLocation
(4, 26 + accessibility.Length),
18981
Diagnostic(ErrorCode.ERR_NonProtectedAPIInRecord, "EqualityContract").WithArguments("A.EqualityContract").
WithLocation
(4, 26 + accessibility.Length)
19150
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "EqualityContract").WithArguments("A.EqualityContract", "System.Type").
WithLocation
(4, 27)
19170
}").WithArguments("System.Type", "GetTypeFromHandle").
WithLocation
(2, 1),
19175
}").WithArguments("System.Type", "op_Equality").
WithLocation
(2, 1),
19178
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Type").
WithLocation
(2, 8)
19197
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Type").WithArguments("Type").
WithLocation
(4, 23)
19234
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "EqualityContract").WithArguments("A.EqualityContract").
WithLocation
(4, 27),
19237
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("B.EqualityContract").
WithLocation
(10, 27),
19240
Diagnostic(ErrorCode.ERR_NonPrivateAPIInRecord, "EqualityContract").WithArguments("B.EqualityContract").
WithLocation
(10, 27),
19243
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "throw null").WithArguments("B.EqualityContract.get").
WithLocation
(11, 12),
19246
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("C.EqualityContract").
WithLocation
(16, 35),
19249
Diagnostic(ErrorCode.ERR_NonPrivateAPIInRecord, "EqualityContract").WithArguments("C.EqualityContract").
WithLocation
(16, 35),
19252
Diagnostic(ErrorCode.ERR_NewVirtualInSealed, "throw null").WithArguments("C.EqualityContract.get", "C").
WithLocation
(17, 12)
19310
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseEqualityContract, "EqualityContract").WithArguments("B.EqualityContract", "A").
WithLocation
(7, 27),
19313
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "EqualityContract").WithArguments("B.EqualityContract").
WithLocation
(7, 27),
19316
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "EqualityContract").WithArguments("B.EqualityContract", "A.EqualityContract").
WithLocation
(7, 27),
19319
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("C.EqualityContract").
WithLocation
(13, 27),
19322
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseEqualityContract, "EqualityContract").WithArguments("C.EqualityContract", "A").
WithLocation
(13, 27),
19325
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "EqualityContract").WithArguments("C.EqualityContract", "A.EqualityContract").
WithLocation
(13, 27),
19328
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "throw null").WithArguments("C.EqualityContract.get").
WithLocation
(14, 12),
19331
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("D.EqualityContract").
WithLocation
(19, 35),
19334
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseEqualityContract, "EqualityContract").WithArguments("D.EqualityContract", "A").
WithLocation
(19, 35),
19337
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "EqualityContract").WithArguments("D.EqualityContract", "A.EqualityContract").
WithLocation
(19, 35),
19340
Diagnostic(ErrorCode.ERR_NewVirtualInSealed, "throw null").WithArguments("D.EqualityContract.get", "D").
WithLocation
(20, 12),
19343
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseEqualityContract, "EqualityContract").WithArguments("E.EqualityContract", "A").
WithLocation
(25, 35),
19346
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "EqualityContract").WithArguments("E.EqualityContract", "A.EqualityContract").
WithLocation
(25, 35),
19349
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "EqualityContract").WithArguments("G.EqualityContract").
WithLocation
(37, 43)
19470
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.EqualityContract", "A.EqualityContract").
WithLocation
(2, 15),
19473
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseEqualityContract, "EqualityContract").WithArguments("C.EqualityContract", "A").
WithLocation
(6, 39),
19476
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "EqualityContract").WithArguments("D.EqualityContract", "System.Type").
WithLocation
(11, 31),
19479
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Type").WithArguments("Type").
WithLocation
(16, 27),
19482
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "EqualityContract").WithArguments("F.EqualityContract", "A.EqualityContract").
WithLocation
(21, 36)
19511
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "EqualityContract").WithArguments("A.EqualityContract", "System.Type").
WithLocation
(4, 27),
19514
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "B").WithArguments("B.EqualityContract", "A.EqualityContract", "int").
WithLocation
(8, 8),
19517
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "EqualityContract").WithArguments("C.EqualityContract", "A.EqualityContract", "int").
WithLocation
(14, 36)
19638
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.EqualityContract", "A.EqualityContract").
WithLocation
(2, 15),
19641
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseEqualityContract, "EqualityContract").WithArguments("C.EqualityContract", "A").
WithLocation
(6, 39),
19644
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "EqualityContract").WithArguments("D.EqualityContract", "System.Type").
WithLocation
(11, 31),
19647
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Type").WithArguments("Type").
WithLocation
(16, 27),
19650
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "EqualityContract").WithArguments("F.EqualityContract", "A.EqualityContract").
WithLocation
(21, 36)
19757
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.EqualityContract").
WithLocation
(2, 15),
19760
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseEqualityContract, "EqualityContract").WithArguments("C.EqualityContract", "A").
WithLocation
(6, 35),
19763
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "EqualityContract").WithArguments("D.EqualityContract", "System.Type").
WithLocation
(11, 27),
19766
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Type").WithArguments("Type").
WithLocation
(16, 23),
19769
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "EqualityContract").WithArguments("F.EqualityContract").
WithLocation
(21, 36)
19967
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseEqualityContract, "C").WithArguments("C.EqualityContract", "B").
WithLocation
(2, 15),
19970
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseEqualityContract, "EqualityContract").WithArguments("D.EqualityContract", "B").
WithLocation
(6, 39),
19973
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "EqualityContract").WithArguments("E.EqualityContract", "System.Type").
WithLocation
(11, 31),
19976
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Type").WithArguments("Type").
WithLocation
(16, 27),
19979
Diagnostic(ErrorCode.ERR_DoesNotOverrideBaseEqualityContract, "EqualityContract").WithArguments("G.EqualityContract", "B").
WithLocation
(21, 36)
19996
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("A.EqualityContract").
WithLocation
(3, 34),
19999
Diagnostic(ErrorCode.ERR_NonPrivateAPIInRecord, "EqualityContract").WithArguments("A.EqualityContract").
WithLocation
(3, 34),
20002
Diagnostic(ErrorCode.ERR_StaticAPIInRecord, "EqualityContract").WithArguments("A.EqualityContract").
WithLocation
(3, 34),
20005
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "throw null").WithArguments("A.EqualityContract.get").
WithLocation
(3, 54)
20022
Diagnostic(ErrorCode.ERR_StaticAPIInRecord, "EqualityContract").WithArguments("A.EqualityContract").
WithLocation
(3, 32)
20103
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "EqualityContract").WithArguments("A.EqualityContract").
WithLocation
(4, 34),
20106
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.EqualityContract", "A.EqualityContract").
WithLocation
(7, 8)
20125
Diagnostic(ErrorCode.ERR_EqualityContractRequiresGetter, "EqualityContract").WithArguments("R.EqualityContract").
WithLocation
(4, 35)
20163
Diagnostic(ErrorCode.ERR_EqualityContractRequiresGetter, "EqualityContract").WithArguments("R.EqualityContract").
WithLocation
(5, 36),
20166
Diagnostic(ErrorCode.ERR_NoSetToOverride, "set").WithArguments("R.EqualityContract.set", "Base.EqualityContract").
WithLocation
(5, 55)
20261
Diagnostic(ErrorCode.ERR_NoGetToOverride, "R").WithArguments("R.EqualityContract.get", "Base.EqualityContract").
WithLocation
(2, 8)
20274
Diagnostic(ErrorCode.ERR_NoGetToOverride, "typeof(R)").WithArguments("R.EqualityContract.get", "Base.EqualityContract").
WithLocation
(4, 56)
20458
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(6, 25)
20536
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "==").WithArguments("op_Equality", "A").
WithLocation
(4, 32)
20559
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "!=").WithArguments("op_Inequality", "A").
WithLocation
(4, 32)
20580
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "op_Equality").WithArguments("op_Equality", "A").
WithLocation
(4, 24)
20601
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "op_Inequality").WithArguments("op_Inequality", "A").
WithLocation
(4, 24)
20620
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "A").WithArguments("A", "System.IEquatable<A>.Equals(A)", "A.Equals(A)").
WithLocation
(2, 8),
20623
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "Equals").WithArguments("A.Equals(A)").
WithLocation
(4, 24),
20626
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 24)
20645
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "A").WithArguments("A", "System.IEquatable<A>.Equals(A)", "A.Equals(A)", "bool").
WithLocation
(2, 8),
20648
Diagnostic(ErrorCode.ERR_SignatureMismatchInRecord, "Equals").WithArguments("A.Equals(A)", "bool").
WithLocation
(4, 27),
20651
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(4, 27)
20708
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P").WithArguments("C", "P").
WithLocation
(4, 19));
20737
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(1, 17),
20740
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "Q").WithArguments("C.Q", "object", "Q").
WithLocation
(1, 27),
20743
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Q").WithArguments("Q").
WithLocation
(1, 27),
20746
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P").WithArguments("C", "P").
WithLocation
(4, 16),
20749
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Q").WithArguments("C", "Q").
WithLocation
(6, 19));
20781
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P").WithArguments("A", "P").
WithLocation
(4, 19),
20784
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Q").WithArguments("A", "Q").
WithLocation
(6, 16),
20787
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Q").WithArguments("Q").
WithLocation
(8, 17));
21444
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(13, 16)
21490
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(17, 24)
21543
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(13, 24),
21546
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(17, 24)
21605
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(17, 24)
21694
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X, Y)").
WithLocation
(13, 24)
21779
Diagnostic(ErrorCode.ERR_ObjectRequired, "Y").WithArguments("C.Y").
WithLocation
(11, 24)
21806
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(11, 24)
21832
Diagnostic(ErrorCode.ERR_NoDynamicPhantomOnBaseCtor, "(X)").
WithLocation
(11, 27)
21864
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(13, 13)
21890
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "C").WithArguments("Base", "0").
WithLocation
(11, 8),
21893
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X)").
WithLocation
(11, 16)
21930
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X)").
WithLocation
(8, 16)
21967
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X)").
WithLocation
(8, 23),
21970
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(8, 23)
22005
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X)").
WithLocation
(8, 19)
22159
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y").WithArguments("y").
WithLocation
(12, 28),
22162
Diagnostic(ErrorCode.ERR_NameNotInContext, "z").WithArguments("z").
WithLocation
(15, 13)
22193
Diagnostic(ErrorCode.ERR_LocalDuplicate, "z").WithArguments("z").
WithLocation
(13, 32)
22228
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(GetInt(X, out var xx) + xx, Y)").WithArguments("Base", "2").
WithLocation
(11, 30),
22231
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "this").WithArguments("C", "4").
WithLocation
(13, 30)
22410
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(GetInt(X, out var xx) + xx, Y)").
WithLocation
(11, 16),
22413
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "base").WithArguments("Base", "4").
WithLocation
(13, 30)
22715
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(3, 15),
22718
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(8, 15)
22830
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(2, 14),
22833
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(7, 15),
22836
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(11, 15)
22947
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B").
WithLocation
(8, 25)
23243
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(4, 14),
23246
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B").
WithLocation
(15, 25),
23249
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(17, 14),
23252
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(17, 21),
23255
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Z").WithArguments("Z").
WithLocation
(17, 28)
23411
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(2, 14),
23414
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(7, 14),
23417
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(7, 21),
23420
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(12, 14),
23423
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(12, 21),
23426
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Z").WithArguments("Z").
WithLocation
(12, 28)
23601
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "EqualityContract").WithArguments("A.EqualityContract").
WithLocation
(3, 27),
23604
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.EqualityContract", "A.EqualityContract").
WithLocation
(5, 8));
23622
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "EqualityContract").WithArguments("B.EqualityContract").
WithLocation
(4, 43),
23625
Diagnostic(ErrorCode.ERR_CantOverrideSealed, "C").WithArguments("C.EqualityContract", "B.EqualityContract").
WithLocation
(6, 8));
23689
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B1").
WithLocation
(8, 25),
23692
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B2").
WithLocation
(15, 25)
23732
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B1").
WithLocation
(8, 25),
23735
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B2").
WithLocation
(15, 25)
23909
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record C;").WithArguments("System.Collections.Generic.EqualityComparer`1", "GetHashCode").
WithLocation
(2, 1)
23925
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "record C;").WithArguments("System.Collections.Generic.EqualityComparer`1", "get_Default").
WithLocation
(2, 1)
23948
}").WithArguments("System.Collections.Generic.EqualityComparer`1", "get_Default").
WithLocation
(2, 1),
23954
}").WithArguments("System.Collections.Generic.EqualityComparer`1", "get_Default").
WithLocation
(2, 1),
23957
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "x").WithArguments("C.x").
WithLocation
(4, 9)
23984
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("Program.F<T>(System.IEquatable<T>)").
WithLocation
(11, 9));
24080
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(5, 25),
24083
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B").
WithLocation
(9, 25)
24145
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(5, 25),
24148
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("B").
WithLocation
(9, 25)
24297
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.IEquatable`1").
WithLocation
(1, 8),
24300
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.IEquatable`1").
WithLocation
(1, 8),
24303
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Type").
WithLocation
(1, 8),
24306
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.IEquatable`1").
WithLocation
(2, 8),
24309
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.IEquatable`1").
WithLocation
(2, 8),
24312
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.Type").
WithLocation
(2, 8)
24362
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.IEquatable`1").
WithLocation
(1, 8),
24365
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.IEquatable`1").
WithLocation
(1, 8),
24368
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Type").
WithLocation
(1, 8),
24371
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IEquatable<A<T>>").WithArguments("IEquatable<>", "System").
WithLocation
(1, 22),
24374
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.IEquatable`1").
WithLocation
(2, 8),
24377
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.IEquatable`1").
WithLocation
(2, 8),
24380
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.Type").
WithLocation
(2, 8),
24383
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IEquatable<B>").WithArguments("IEquatable<>", "System").
WithLocation
(2, 27));
24433
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(1, 1),
24436
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.IEquatable`1").
WithLocation
(2, 8),
24439
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.IEquatable`1").
WithLocation
(2, 8),
24442
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Type").
WithLocation
(2, 8),
24445
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IEquatable<A<T>>").WithArguments("IEquatable<>").
WithLocation
(2, 15),
24448
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.IEquatable`1").
WithLocation
(3, 8),
24451
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.IEquatable`1").
WithLocation
(3, 8),
24454
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.Type").
WithLocation
(3, 8),
24457
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "IEquatable<B>").WithArguments("IEquatable<>").
WithLocation
(3, 20));
24517
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Type").
WithLocation
(1, 8),
24520
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "A").WithArguments("A", "System.IEquatable<A>.Other()").
WithLocation
(1, 8));
24535
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "A").WithArguments("A", "System.IEquatable<A>.Equals(A)", "A.Equals(A)").
WithLocation
(1, 8),
24538
Diagnostic(ErrorCode.ERR_NonPublicAPIInRecord, "Equals").WithArguments("A.Equals(A)").
WithLocation
(3, 27),
24541
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(3, 27)
24560
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "Equals").WithArguments("A.Equals(A)").
WithLocation
(3, 17),
24563
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("A").
WithLocation
(3, 17),
24566
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "B").WithArguments("B.Equals(A?)", "A.Equals(A)").
WithLocation
(5, 8));
24600
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "B").WithArguments("A<T>.B<U>", "System.IEquatable<A<T>.B<T>>", "System.IEquatable<A<T>.B<U>>").
WithLocation
(4, 12));
24683
Diagnostic(ErrorCode.ERR_InvalidPrimaryConstructorParameterReference, "X").WithArguments("int X").
WithLocation
(4, 20)
24714
Diagnostic(ErrorCode.ERR_InvalidPrimaryConstructorParameterReference, "X").WithArguments("int X").
WithLocation
(4, 19),
24717
Diagnostic(ErrorCode.ERR_NotConstantExpression, "X + 1").WithArguments("C.Z").
WithLocation
(4, 19)
24833
Diagnostic(ErrorCode.ERR_ParamUnassigned, "R").WithArguments("P2").
WithLocation
(2, 8),
24836
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(2, 10),
24839
Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").
WithLocation
(2, 22)
24855
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(3, 10),
24858
Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").
WithLocation
(3, 22)
24904
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(2, 10)
24976
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(2, 14)
25013
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(2, 14)
25310
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "method").WithArguments("method", "field, property, param").
WithLocation
(8, 6)
25385
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "param").
WithLocation
(27, 6),
25388
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "property").WithArguments("property", "param").
WithLocation
(28, 6),
25391
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(31, 9)
25469
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "field").WithArguments("field", "param").
WithLocation
(27, 6),
25472
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "property").WithArguments("property", "param").
WithLocation
(28, 6),
25475
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(31, 9)
25539
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P1").WithArguments("P1").
WithLocation
(20, 9)
25578
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "P2").
WithLocation
(10, 15)
25626
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "string?").WithArguments("R<T>", "T", "string?").
WithLocation
(10, 23),
25629
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterReferenceTypeConstraint, "string?").WithArguments("R2<T>", "T", "string?").
WithLocation
(11, 25)
25654
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("R<T>", "T", "int").
WithLocation
(9, 19),
25657
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("R2<T>", "T", "int").
WithLocation
(10, 20)
25688
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C").WithArguments("B.C", "X<B.C.D.E>").
WithLocation
(8, 12),
25691
Diagnostic(ErrorCode.ERR_BadVisParamType, "C").WithArguments("B.C.Equals(X<B.C.D.E>?)", "X<B.C.D.E>").
WithLocation
(8, 12)
25699
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C").WithArguments("B.C", "X<B.C.D.E>").
WithLocation
(8, 12),
25702
Diagnostic(ErrorCode.ERR_BadVisReturnType, "C").WithArguments("B.C.<Clone>$()", "X<B.C.D.E>").
WithLocation
(8, 12),
25705
Diagnostic(ErrorCode.ERR_BadVisParamType, "C").WithArguments("B.C.Equals(X<B.C.D.E>?)", "X<B.C.D.E>").
WithLocation
(8, 12)
25727
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new()").WithArguments("C").
WithLocation
(6, 16),
25730
Diagnostic(ErrorCode.ERR_NoNewAbstract, "new()").WithArguments("C").
WithLocation
(7, 21)
25748
Diagnostic(ErrorCode.ERR_CircularBase, "B").WithArguments("A<B<T>>", "B<T>").
WithLocation
(3, 8),
25751
Diagnostic(ErrorCode.ERR_CircularBase, "A").WithArguments("B<A<T>>", "A<T>").
WithLocation
(2, 8)
25797
Diagnostic(ErrorCode.ERR_PartialMultipleBases, "C1").WithArguments("C1").
WithLocation
(3, 23),
25800
Diagnostic(ErrorCode.ERR_PartialMultipleBases, "C2").WithArguments("C2").
WithLocation
(5, 23)
25816
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(2, 1));
25836
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "Goo<int>").WithArguments("Goo<T>").
WithLocation
(2, 2)
25855
Diagnostic(ErrorCode.ERR_ClassBoundNotFirst, "A").WithArguments("A").
WithLocation
(5, 18),
25857
Diagnostic(ErrorCode.ERR_ClassBoundNotFirst, "B").WithArguments("B").
WithLocation
(6, 18),
25859
Diagnostic(ErrorCode.ERR_ClassBoundNotFirst, "A").WithArguments("A").
WithLocation
(8, 30),
25861
Diagnostic(ErrorCode.ERR_ClassBoundNotFirst, "B").WithArguments("B").
WithLocation
(8, 33));
25873
Diagnostic(ErrorCode.ERR_BadMemberFlag, "R").WithArguments("static").
WithLocation
(2, 22)
25920
Diagnostic(ErrorCode.ERR_ConversionWithBase, "Derived").WithArguments("Derived.explicit operator Derived(Base<(int, int)>)").
WithLocation
(9, 37),
25923
Diagnostic(ErrorCode.ERR_ConversionWithBase, "Base<(int, int)>").WithArguments("Derived.explicit operator Base<(int, int)>(Derived)").
WithLocation
(5, 37)
25967
Diagnostic(ErrorCode.ERR_BadDestructorName, "iiii").
WithLocation
(6, 10));
25999
Diagnostic(ErrorCode.ERR_BadMemberFlag, "NV").WithArguments("static").
WithLocation
(2, 15),
26002
Diagnostic(ErrorCode.ERR_BadVisParamType, "C1").WithArguments("C1.Equals(NV?)", "NV").
WithLocation
(6, 23),
26005
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C1").WithArguments("C1", "NV").
WithLocation
(10, 16)
26013
Diagnostic(ErrorCode.ERR_BadMemberFlag, "NV").WithArguments("static").
WithLocation
(2, 15),
26016
Diagnostic(ErrorCode.ERR_BadVisReturnType, "C1").WithArguments("C1.<Clone>$()", "NV").
WithLocation
(6, 23),
26019
Diagnostic(ErrorCode.ERR_BadVisParamType, "C1").WithArguments("C1.Equals(NV?)", "NV").
WithLocation
(6, 23),
26022
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C1").WithArguments("C1", "NV").
WithLocation
(10, 16)
26041
Diagnostic(ErrorCode.ERR_BadMemberFlag, "R").WithArguments("static").
WithLocation
(2, 15)
26056
Diagnostic(ErrorCode.ERR_PartialMethodOnlyInPartialClass, "M").
WithLocation
(3, 18)
26072
Diagnostic(ErrorCode.ERR_NoMultipleInheritance, "Base2").WithArguments("R", "Base1", "Base2").
WithLocation
(4, 19)
26087
Diagnostic(ErrorCode.ERR_BaseClassMustBeFirst, "Base").WithArguments("Base").
WithLocation
(4, 15)
27762
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "C").WithArguments("B", "0").
WithLocation
(4, 8)
27816
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "C").WithArguments("B", "0").
WithLocation
(4, 8)
27839
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "C").WithArguments("x", "C.C(int)").
WithLocation
(8, 17)
27865
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "C").WithArguments("C", "0").
WithLocation
(11, 17)
27891
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "C").WithArguments("C", "0").
WithLocation
(11, 17)
28318
Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").
WithLocation
(7, 52)
28353
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "Error").WithArguments("Error").
WithLocation
(3, 18),
28356
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "Error").WithArguments("Error").
WithLocation
(3, 18)
28383
Diagnostic(ErrorCode.WRN_DuplicateParamTag, @"name=""I1""").WithArguments("I1").
WithLocation
(4, 12),
28386
Diagnostic(ErrorCode.WRN_DuplicateParamTag, @"name=""I1""").WithArguments("I1").
WithLocation
(4, 12)
28443
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "Error").WithArguments("Error", "C").
WithLocation
(2, 38),
28446
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "Error").WithArguments("Error", "C.C(int)").
WithLocation
(2, 38)
28654
Diagnostic(ErrorCode.WRN_MissingXMLComment, "E").WithArguments("E.E(int)").
WithLocation
(2, 23),
28657
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "I1").WithArguments("I1").
WithLocation
(5, 18)
28702
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "I1").WithArguments("I1").
WithLocation
(3, 18),
28705
Diagnostic(ErrorCode.WRN_MissingXMLComment, "E").WithArguments("E.E(int)").
WithLocation
(6, 23)
28750
Diagnostic(ErrorCode.WRN_MissingXMLComment, "C").WithArguments("C.C(int)").
WithLocation
(2, 23),
28753
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "I1").WithArguments("I1").
WithLocation
(5, 18),
28756
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(int I1)").
WithLocation
(6, 24)
28802
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(int I1)").
WithLocation
(6, 24)
28855
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "I1").WithArguments("I1").
WithLocation
(7, 18),
28858
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(int I1)").
WithLocation
(8, 24)
28912
Diagnostic(ErrorCode.WRN_MissingXMLComment, "E").WithArguments("E.E(int)").
WithLocation
(2, 23),
28915
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "S1").WithArguments("S1").
WithLocation
(5, 18),
28918
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(string S1)").
WithLocation
(6, 24)
28962
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "S1").WithArguments("S1").
WithLocation
(7, 18),
28965
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(string S1)").
WithLocation
(8, 24)
29077
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "O1").WithArguments("O1").
WithLocation
(11, 22),
29080
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "O1").WithArguments("O1").
WithLocation
(11, 22),
29083
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "P1").WithArguments("P1").
WithLocation
(12, 22),
29086
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "P1").WithArguments("P1").
WithLocation
(12, 22),
29089
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "C").WithArguments("C").
WithLocation
(13, 22),
29092
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "C").WithArguments("C").
WithLocation
(13, 22)
29117
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(2, 21),
29120
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(2, 22),
29123
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(2, 22),
29126
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(2, 22)
29148
Diagnostic(ErrorCode.ERR_HiddenPositionalMember, "I").WithArguments("Base.I").
WithLocation
(7, 21),
29151
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I()", "Base.I").
WithLocation
(9, 17)
29173
Diagnostic(ErrorCode.ERR_HiddenPositionalMember, "I").WithArguments("Base.I").
WithLocation
(7, 21),
29176
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I()", "Base.I").
WithLocation
(9, 17)
29198
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "I").WithArguments("C.I", "int", "I").
WithLocation
(7, 21),
29201
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I", "Base.I").
WithLocation
(9, 22)
29224
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "int X").WithArguments("positional fields in records", "10.0").
WithLocation
(8, 10)
29323
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(2, 14),
29326
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "X").WithArguments("A.X", "0").
WithLocation
(4, 16)
29351
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I", "Base.I").
WithLocation
(12, 16)
29389
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I", "Base.I").
WithLocation
(12, 16)
29458
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "I").WithArguments("C.I", "int", "I").
WithLocation
(7, 21),
29461
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I", "Base.I").
WithLocation
(9, 23)
29468
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "I").WithArguments("C.I", "int", "I").
WithLocation
(7, 21),
29471
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I", "Base.I").
WithLocation
(9, 23)
29489
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "I").WithArguments("C.I", "int", "I").
WithLocation
(7, 21),
29492
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I", "Base.I").
WithLocation
(9, 23)
29510
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "X").WithArguments("A.X", "int", "X").
WithLocation
(2, 14)
29531
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P").WithArguments("C.P", "int", "P").
WithLocation
(2, 14),
29534
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(2, 14),
29537
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P").WithArguments("C2.P", "int", "P").
WithLocation
(6, 15),
29540
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "P").WithArguments("P").
WithLocation
(6, 15),
29543
Diagnostic(ErrorCode.ERR_InvalidPrimaryConstructorParameterReference, "P").WithArguments("int P").
WithLocation
(8, 19),
29546
Diagnostic(ErrorCode.ERR_NotConstantExpression, "P").WithArguments("C2.P").
WithLocation
(8, 19)
29596
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "P").WithArguments("C.P", "int", "P").
WithLocation
(2, 14)
29618
Diagnostic(ErrorCode.ERR_HiddenPositionalMember, "I").WithArguments("Base.I").
WithLocation
(7, 21),
29621
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I()", "Base.I").
WithLocation
(9, 17)
29650
Diagnostic(ErrorCode.ERR_HiddenPositionalMember, "I").WithArguments("Base.I").
WithLocation
(7, 21),
29653
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I()", "Base.I").
WithLocation
(9, 17)
29681
Diagnostic(ErrorCode.ERR_HiddenPositionalMember, "I").WithArguments("Base.I").
WithLocation
(7, 21)
29708
Diagnostic(ErrorCode.ERR_HiddenPositionalMember, "I").WithArguments("Base.I").
WithLocation
(11, 21),
29711
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I<T>()", "Base.I").
WithLocation
(13, 17)
29736
Diagnostic(ErrorCode.ERR_HiddenPositionalMember, "I").WithArguments("GrandBase.I").
WithLocation
(10, 21),
29739
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I()", "GrandBase.I").
WithLocation
(12, 17)
29838
Diagnostic(ErrorCode.ERR_HiddenPositionalMember, "I").WithArguments("Base.I").
WithLocation
(7, 21),
29841
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I", "Base.I").
WithLocation
(9, 18)
29864
Diagnostic(ErrorCode.ERR_HiddenPositionalMember, "I").WithArguments("Base.I").
WithLocation
(7, 21),
29867
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I", "Base.I").
WithLocation
(9, 32),
29870
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "I").WithArguments("C.I").
WithLocation
(9, 32)
29893
Diagnostic(ErrorCode.ERR_BadRecordMemberForPositionalParameter, "I").WithArguments("C.I", "int", "I").
WithLocation
(7, 21),
29896
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("C.I", "Base.I").
WithLocation
(9, 25)
29917
Diagnostic(ErrorCode.WRN_NewRequired, "I").WithArguments("Derived.I()", "Base.I").
WithLocation
(8, 16),
29920
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "I").WithArguments("Derived", "I").
WithLocation
(8, 16)
29941
Diagnostic(ErrorCode.ERR_HidingAbstractMethod, "I").WithArguments("Derived.I()", "Base.I").
WithLocation
(8, 16),
29944
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "I").WithArguments("Derived", "I").
WithLocation
(8, 16)
29968
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(6, 20),
29971
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X)").
WithLocation
(10, 21),
29974
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(10, 21)
29998
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(6, 26),
30001
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(X)").
WithLocation
(10, 27),
30004
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(10, 27)
30020
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Error").WithArguments("Error").
WithLocation
(2, 20),
30023
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("Error", "1").
WithLocation
(2, 25)
30039
Diagnostic(ErrorCode.ERR_DeriveFromDynamic, "dynamic").WithArguments("R").
WithLocation
(2, 19),
30042
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(2, 26)
30061
Diagnostic(ErrorCode.ERR_DerivingFromATyVar, "T").WithArguments("T").
WithLocation
(4, 23),
30064
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(4, 24)
30080
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(2, 25)
30096
Diagnostic(ErrorCode.ERR_DeriveFromEnumOrValueType, "System.ValueType").WithArguments("R", "System.ValueType").
WithLocation
(2, 19),
30099
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "(X)").WithArguments("object", "1").
WithLocation
(2, 35)
30123
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "()").
WithLocation
(6, 13),
30126
Diagnostic(ErrorCode.ERR_UnexpectedArgumentList, "(0)").
WithLocation
(10, 14)
30241
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type").
WithLocation
(16, 11)
30266
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(2, 11),
30269
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").
WithLocation
(6, 13),
30272
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(10, 17)
30291
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "R1").WithArguments("R1.Equals(R1?)", "R1").
WithLocation
(4, 8),
30294
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "R1").WithArguments("R1.ToString()", "R1").
WithLocation
(4, 8),
30297
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "R1").WithArguments("R1.Deconstruct(out int)", "R1").
WithLocation
(4, 8),
30300
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "R1").WithArguments("R1.<Clone>$()", "R1").
WithLocation
(4, 8),
30303
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "R1").WithArguments("R1.EqualityContract.get", "R1").
WithLocation
(4, 8),
30306
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "R1").WithArguments("R1.Equals(object?)", "R1").
WithLocation
(4, 8),
30309
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "R1").WithArguments("R1.GetHashCode()", "R1").
WithLocation
(4, 8),
30312
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "R1").WithArguments("R1.operator ==(R1?, R1?)", "R1").
WithLocation
(4, 8),
30315
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "R1").WithArguments("R1.operator !=(R1?, R1?)", "R1").
WithLocation
(4, 8),
30318
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "R1").WithArguments("R1.PrintMembers(System.Text.StringBuilder)", "R1").
WithLocation
(4, 8),
30321
Diagnostic(ErrorCode.ERR_ComImportWithUserCtor, "R1").
WithLocation
(4, 8),
30324
Diagnostic(ErrorCode.ERR_ComImportWithInitializers, "int x").WithArguments("R1").
WithLocation
(4, 11),
30327
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "x").WithArguments("R1.x.get", "R1").
WithLocation
(4, 15),
30330
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "x").WithArguments("R1.x.init", "R1").
WithLocation
(4, 15)
Semantics\RefEscapingTests.cs (375)
96
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var x = GetRefStruct()").WithArguments("C.S2").
WithLocation
(6, 16));
117
Diagnostic(ErrorCode.ERR_AnonymousTypePropertyAssignedBadValue, "Outer = outer").WithArguments("System.Span<int>").
WithLocation
(10, 22),
120
Diagnostic(ErrorCode.ERR_AnonymousTypePropertyAssignedBadValue, "Inner = inner").WithArguments("System.Span<int>").
WithLocation
(10, 37));
144
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(10, 21));
166
Diagnostic(ErrorCode.ERR_LockNeedsReference, "s").WithArguments("System.Span<int>").
WithLocation
(9, 15));
194
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s1").WithArguments("System.Span<int>", "object").
WithLocation
(9, 22),
197
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s2").WithArguments("System.Span<int>", "object").
WithLocation
(14, 22));
239
Diagnostic(ErrorCode.ERR_EscapeVariable, "local").WithArguments("local").
WithLocation
(23, 42),
242
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref local)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(23, 30),
245
Diagnostic(ErrorCode.ERR_EscapeCall, "Test1(MayWrap(ref local))").WithArguments("Program.Test1(Program.S1)", "arg").
WithLocation
(23, 24)
288
Diagnostic(ErrorCode.ERR_EscapeVariable, "sp").WithArguments("sp").
WithLocation
(24, 30),
291
Diagnostic(ErrorCode.ERR_EscapeCall, "Test1(sp)").WithArguments("Program.Test1(Program.S1)", "arg").
WithLocation
(24, 24)
339
Diagnostic(ErrorCode.ERR_RefReturnLocal, "sp").WithArguments("sp").
WithLocation
(23, 34),
342
Diagnostic(ErrorCode.ERR_EscapeCall, "Test1(ref sp)").WithArguments("Program.Test1(ref Program.S1)", "arg").
WithLocation
(23, 24),
345
Diagnostic(ErrorCode.ERR_RefReturnLocal, "sp").WithArguments("sp").
WithLocation
(29, 34),
348
Diagnostic(ErrorCode.ERR_EscapeCall, "Test1(ref sp)").WithArguments("Program.Test1(ref Program.S1)", "arg").
WithLocation
(29, 24)
355
Diagnostic(ErrorCode.ERR_EscapeVariable, "sp").WithArguments("sp").
WithLocation
(23, 34),
358
Diagnostic(ErrorCode.ERR_EscapeCall, "Test1(ref sp)").WithArguments("Program.Test1(ref Program.S1)", "arg").
WithLocation
(23, 24),
361
Diagnostic(ErrorCode.ERR_RefReturnLocal, "sp").WithArguments("sp").
WithLocation
(29, 34),
364
Diagnostic(ErrorCode.ERR_EscapeCall, "Test1(ref sp)").WithArguments("Program.Test1(ref Program.S1)", "arg").
WithLocation
(29, 24)
421
Diagnostic(ErrorCode.ERR_EscapeVariable, "spNr").WithArguments("spNr").
WithLocation
(33, 19),
424
Diagnostic(ErrorCode.ERR_EscapeVariable, "ternary").WithArguments("ternary").
WithLocation
(39, 19)
473
Diagnostic(ErrorCode.ERR_EscapeVariable, "sp").WithArguments("sp").
WithLocation
(31, 30),
476
Diagnostic(ErrorCode.ERR_EscapeCall, "Test1(sp)").WithArguments("Program.Test1(Program.S1)", "arg").
WithLocation
(31, 24),
479
Diagnostic(ErrorCode.WRN_AssignmentToSelf, "sp = sp").
WithLocation
(28, 13)
521
Diagnostic(ErrorCode.ERR_EscapeCall, "Test1(MayNotWrap())").WithArguments("Program.Test1(Program.S1)", "arg").
WithLocation
(21, 24),
524
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "MayNotWrap()").
WithLocation
(21, 30),
527
Diagnostic(ErrorCode.ERR_EscapeCall, "MayNotWrap()").WithArguments("Program.MayNotWrap(in int)", "arg").
WithLocation
(21, 30));
569
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(18, 29),
572
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(inner)").WithArguments("Program.MayWrap(System.Span<int>)", "arg").
WithLocation
(18, 21)
615
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(18, 35),
618
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(__arglist(inner))").WithArguments("Program.MayWrap(__arglist)", "__arglist").
WithLocation
(18, 17)
673
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "__refvalue(ai.GetNextArg(), int)").
WithLocation
(24, 20),
676
Diagnostic(ErrorCode.ERR_EscapeVariable, "local").WithArguments("local").
WithLocation
(32, 50),
679
Diagnostic(ErrorCode.ERR_EscapeCall, "ReturnsRefSpan1(__arglist(ref local))").WithArguments("Program.ReturnsRefSpan1(__arglist)", "__arglist").
WithLocation
(32, 20)
762
Diagnostic(ErrorCode.ERR_EscapeVariable, "local").WithArguments("local").
WithLocation
(22, 18),
765
Diagnostic(ErrorCode.ERR_EscapeVariable, "local").WithArguments("local").
WithLocation
(25, 26)
796
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "var _").
WithLocation
(12, 36),
799
Diagnostic(ErrorCode.ERR_EscapeCall, "ReturnsRef1(out var _)").WithArguments("Program.ReturnsRef1(out int)", "x").
WithLocation
(12, 20)
804
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(18, 20)
835
Diagnostic(ErrorCode.ERR_EscapeCall, "ReturnsRef1(out var _)").WithArguments("Program.ReturnsRef1(out int)", "x").
WithLocation
(7, 20),
838
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "var _").
WithLocation
(7, 36));
845
Diagnostic(ErrorCode.WRN_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(13, 20));
882
Diagnostic(ErrorCode.ERR_RefReturnLocal, "var z").WithArguments("z").
WithLocation
(12, 35),
885
Diagnostic(ErrorCode.ERR_EscapeCall, "ReturnsRef(out var z)").WithArguments("Program.ReturnsRef(out int)", "x").
WithLocation
(12, 20),
888
Diagnostic(ErrorCode.ERR_RefReturnLocal, "z").WithArguments("z").
WithLocation
(17, 35),
891
Diagnostic(ErrorCode.ERR_EscapeCall, "ReturnsRef(out z)").WithArguments("Program.ReturnsRef(out int)", "x").
WithLocation
(17, 20)
896
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(24, 20)
947
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(23, 13),
950
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(32, 35)
955
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(23, 13),
958
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(32, 35),
961
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(38, 20)
1005
Diagnostic(ErrorCode.WRN_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(14, 13),
1008
Diagnostic(ErrorCode.WRN_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(20, 35));
1015
Diagnostic(ErrorCode.WRN_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(14, 13),
1018
Diagnostic(ErrorCode.WRN_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(20, 35),
1021
Diagnostic(ErrorCode.WRN_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(26, 20)
1122
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(7, 15),
1125
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(14, 15),
1128
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(19, 31),
1131
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(24, 31));
1290
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s1").WithArguments("s1").
WithLocation
(7, 20),
1293
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s2").WithArguments("s2").
WithLocation
(12, 20),
1296
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s3").WithArguments("s3").
WithLocation
(17, 20),
1299
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s4").WithArguments("s4").
WithLocation
(22, 20),
1302
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s5").WithArguments("s5").
WithLocation
(28, 20),
1305
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s6").WithArguments("s6").
WithLocation
(33, 20));
1358
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s1").WithArguments("s1").
WithLocation
(6, 20),
1361
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s2").WithArguments("s2").
WithLocation
(11, 20),
1364
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s3").WithArguments("s3").
WithLocation
(16, 20),
1367
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s4").WithArguments("s4").
WithLocation
(21, 20),
1370
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s5").WithArguments("s5").
WithLocation
(27, 20),
1373
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s6").WithArguments("s6").
WithLocation
(32, 20));
1416
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(13, 14),
1419
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(19, 13));
1448
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(13, 13));
1489
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "_ = ref y4").WithArguments("_", "y4").
WithLocation
(25, 9));
1723
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(23, 13),
1726
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(31, 34),
1729
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(49, 13),
1732
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(60, 30)
1737
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(23, 13),
1740
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(31, 34),
1743
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(49, 13),
1746
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(60, 30),
1749
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(66, 20)
1792
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(19, 33),
1795
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(19, 21)
1802
Diagnostic(ErrorCode.ERR_RefReturnLocal, "outer").WithArguments("outer").
WithLocation
(16, 33),
1805
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref outer)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(16, 21),
1808
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(19, 33),
1811
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(19, 21)
1861
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(21, 33),
1864
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(21, 21)
1925
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(20, 32),
1928
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(20, 20),
1931
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(25, 32),
1934
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(25, 20),
1937
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(28, 50),
1940
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref inner)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(28, 38));
1989
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(18, 31),
1992
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(inner)").WithArguments("Program.MayWrap(System.Span<int>)", "arg").
WithLocation
(18, 23)
2136
Diagnostic(ErrorCode.ERR_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(20, 39),
2139
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssign(ref rOuter, ref rInner)").WithArguments("Program.MayAssign(ref Program.S1, ref Program.S1)", "arg2").
WithLocation
(20, 13),
2142
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(23, 27),
2145
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssign(ref inner, ref rOuter)").WithArguments("Program.MayAssign(ref System.Span<int>, ref Program.S1)", "arg1").
WithLocation
(23, 13));
2151
Diagnostic(ErrorCode.ERR_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(20, 39),
2154
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssign(ref rOuter, ref rInner)").WithArguments("Program.MayAssign(ref Program.S1, ref Program.S1)", "arg2").
WithLocation
(20, 13),
2157
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(23, 27),
2160
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssign(ref inner, ref rOuter)").WithArguments("Program.MayAssign(ref System.Span<int>, ref Program.S1)", "arg1").
WithLocation
(23, 13),
2163
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "arg1").WithArguments("arg1").
WithLocation
(28, 32),
2166
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref arg1)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(28, 20)
2219
Diagnostic(ErrorCode.WRN_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(16, 35),
2222
Diagnostic(ErrorCode.WRN_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(19, 23)
2229
Diagnostic(ErrorCode.WRN_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(16, 35),
2232
Diagnostic(ErrorCode.WRN_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(19, 23),
2235
Diagnostic(ErrorCode.WRN_RefReturnOnlyParameter, "arg1").WithArguments("arg1").
WithLocation
(24, 28)
2301
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(46, 23),
2304
Diagnostic(ErrorCode.ERR_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(20, 46),
2307
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssign2(__arglist(ref rOuter, ref rInner))").WithArguments("Program.MayAssign2(__arglist)", "__arglist").
WithLocation
(20, 9),
2310
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(23, 34),
2313
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssign1(__arglist(ref inner, ref rOuter))").WithArguments("Program.MayAssign1(__arglist)", "__arglist").
WithLocation
(23, 9)
2320
Diagnostic(ErrorCode.ERR_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(20, 46),
2323
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssign2(__arglist(ref rOuter, ref rInner))").WithArguments("Program.MayAssign2(__arglist)", "__arglist").
WithLocation
(20, 9),
2326
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(23, 34),
2329
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssign1(__arglist(ref inner, ref rOuter))").WithArguments("Program.MayAssign1(__arglist)", "__arglist").
WithLocation
(23, 9)
2468
Diagnostic(ErrorCode.ERR_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(24, 29),
2471
Diagnostic(ErrorCode.ERR_CallArgMixing, "rOuter[rInner]").WithArguments("Program.S1.this[in Program.S1]", "arg1").
WithLocation
(24, 22),
2474
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(27, 29),
2477
Diagnostic(ErrorCode.ERR_CallArgMixing, "rOuter[inner]").WithArguments("Program.S1.this[in System.Span<int>]", "arg1").
WithLocation
(27, 22)
2484
Diagnostic(ErrorCode.ERR_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(24, 29),
2487
Diagnostic(ErrorCode.ERR_CallArgMixing, "rOuter[rInner]").WithArguments("Program.S1.this[in Program.S1]", "arg1").
WithLocation
(24, 22),
2490
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(27, 29),
2493
Diagnostic(ErrorCode.ERR_CallArgMixing, "rOuter[inner]").WithArguments("Program.S1.this[in System.Span<int>]", "arg1").
WithLocation
(27, 22),
2496
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "arg1").WithArguments("arg1").
WithLocation
(44, 32),
2499
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(arg1)").WithArguments("Program.MayWrap(in System.Span<int>)", "arg").
WithLocation
(44, 24),
2502
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter2, "arg1").WithArguments("arg1").
WithLocation
(54, 32),
2505
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(arg1.field)").WithArguments("Program.MayWrap(in System.Span<int>)", "arg").
WithLocation
(54, 24)
2567
Diagnostic(ErrorCode.ERR_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(26, 43),
2570
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssignDel1(ref rOuter, ref rInner)").WithArguments("Program.D1.Invoke(ref Program.S1, ref Program.S1)", "arg2").
WithLocation
(26, 13),
2573
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(29, 31),
2576
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssignDel2(ref inner, ref rOuter)").WithArguments("Program.D2.Invoke(ref System.Span<int>, ref Program.S1)", "arg1").
WithLocation
(29, 13)
2583
Diagnostic(ErrorCode.ERR_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(26, 43),
2586
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssignDel1(ref rOuter, ref rInner)").WithArguments("Program.D1.Invoke(ref Program.S1, ref Program.S1)", "arg2").
WithLocation
(26, 13),
2589
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(29, 31),
2592
Diagnostic(ErrorCode.ERR_CallArgMixing, "MayAssignDel2(ref inner, ref rOuter)").WithArguments("Program.D2.Invoke(ref System.Span<int>, ref Program.S1)", "arg1").
WithLocation
(29, 13),
2595
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "arg1").WithArguments("arg1").
WithLocation
(34, 32),
2598
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref arg1)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(34, 20)
2661
Diagnostic(ErrorCode.ERR_EscapeVariable, "Field2 = inner").WithArguments("inner").
WithLocation
(16, 47),
2664
Diagnostic(ErrorCode.ERR_EscapeVariable, "Field1 = inner").WithArguments("inner").
WithLocation
(27, 33)
2730
Diagnostic(ErrorCode.ERR_EscapeVariable, "x1").WithArguments("x1").
WithLocation
(18, 20),
2733
Diagnostic(ErrorCode.ERR_EscapeVariable, "x2").WithArguments("x2").
WithLocation
(29, 20)
2805
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(16, 28),
2808
Diagnostic(ErrorCode.ERR_EscapeVariable, "[outer] = inner").WithArguments("inner").
WithLocation
(25, 27)
2889
Diagnostic(ErrorCode.ERR_EscapeVariable, "x1").WithArguments("x1").
WithLocation
(18, 16),
2892
Diagnostic(ErrorCode.ERR_EscapeVariable, "[outer] = inner").WithArguments("inner").
WithLocation
(29, 29)
2979
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(15, 38),
2982
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(25, 16),
2985
Diagnostic(ErrorCode.ERR_EscapeVariable, "[outer] = inner").WithArguments("inner").
WithLocation
(33, 37),
2988
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field2").WithArguments("Program.S3.Field2", "").
WithLocation
(67, 19)
3070
Diagnostic(ErrorCode.ERR_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(20, 54),
3073
Diagnostic(ErrorCode.ERR_CallArgMixing, "new Program(ref rOuter, ref rInner)").WithArguments("Program.Program(ref Program.S1, ref Program.S1)", "arg2").
WithLocation
(20, 26),
3076
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(23, 42),
3079
Diagnostic(ErrorCode.ERR_CallArgMixing, "new Program(ref inner, ref rOuter)").WithArguments("Program.Program(ref System.Span<int>, ref Program.S1)", "arg1").
WithLocation
(23, 26)
3086
Diagnostic(ErrorCode.ERR_EscapeVariable, "rInner").WithArguments("rInner").
WithLocation
(20, 54),
3089
Diagnostic(ErrorCode.ERR_CallArgMixing, "new Program(ref rOuter, ref rInner)").WithArguments("Program.Program(ref Program.S1, ref Program.S1)", "arg2").
WithLocation
(20, 26),
3092
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(23, 42),
3095
Diagnostic(ErrorCode.ERR_CallArgMixing, "new Program(ref inner, ref rOuter)").WithArguments("Program.Program(ref System.Span<int>, ref Program.S1)", "arg1").
WithLocation
(23, 26),
3098
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "arg1").WithArguments("arg1").
WithLocation
(28, 32),
3101
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref arg1)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(28, 20)
3150
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(arg2)").WithArguments("Program.MayWrap(in System.Span<int>)", "arg").
WithLocation
(25, 20),
3153
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "arg2").WithArguments("arg2").
WithLocation
(25, 28));
3192
Diagnostic(ErrorCode.ERR_RefReturnLocal, "local").WithArguments("local").
WithLocation
(17, 47),
3195
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "ternary1").WithArguments("ternary1").
WithLocation
(25, 24),
3198
Diagnostic(ErrorCode.ERR_ReturnExpected, "Test1").WithArguments("Program.Test1()").
WithLocation
(12, 13)
3270
Diagnostic(ErrorCode.ERR_EscapeVariable, "sInner").WithArguments("sInner").
WithLocation
(27, 44),
3273
Diagnostic(ErrorCode.ERR_EscapeVariable, "sInner").WithArguments("sInner").
WithLocation
(30, 35),
3276
Diagnostic(ErrorCode.ERR_EscapeVariable, "sInner").WithArguments("sInner").
WithLocation
(33, 60),
3279
Diagnostic(ErrorCode.ERR_MismatchedRefEscapeInTernary, "true ? ref sOuter : ref sInner").
WithLocation
(33, 36),
3282
Diagnostic(ErrorCode.ERR_EscapeVariable, "sInner").WithArguments("sInner").
WithLocation
(36, 47),
3285
Diagnostic(ErrorCode.ERR_MismatchedRefEscapeInTernary, "true ? ref sInner : ref sOuter").
WithLocation
(36, 36),
3288
Diagnostic(ErrorCode.ERR_EscapeVariable, "ternarySame1").WithArguments("ternarySame1").
WithLocation
(39, 47),
3291
Diagnostic(ErrorCode.ERR_MismatchedRefEscapeInTernary, "true ? ref ternarySame1 : ref ternarySame2").
WithLocation
(39, 36)
3363
Diagnostic(ErrorCode.WRN_EscapeVariable, "sInner").WithArguments("sInner").
WithLocation
(27, 44),
3366
Diagnostic(ErrorCode.WRN_EscapeVariable, "sInner").WithArguments("sInner").
WithLocation
(30, 35),
3369
Diagnostic(ErrorCode.WRN_EscapeVariable, "sInner").WithArguments("sInner").
WithLocation
(33, 60),
3372
Diagnostic(ErrorCode.WRN_MismatchedRefEscapeInTernary, "true ? ref sOuter : ref sInner").
WithLocation
(33, 36),
3375
Diagnostic(ErrorCode.WRN_EscapeVariable, "sInner").WithArguments("sInner").
WithLocation
(36, 47),
3378
Diagnostic(ErrorCode.WRN_MismatchedRefEscapeInTernary, "true ? ref sInner : ref sOuter").
WithLocation
(36, 36),
3381
Diagnostic(ErrorCode.WRN_EscapeVariable, "ternarySame1").WithArguments("ternarySame1").
WithLocation
(39, 47),
3384
Diagnostic(ErrorCode.WRN_MismatchedRefEscapeInTernary, "true ? ref ternarySame1 : ref ternarySame2").
WithLocation
(39, 36)
3431
Diagnostic(ErrorCode.ERR_EscapeVariable, "local").WithArguments("local").
WithLocation
(19, 26),
3434
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[10]").WithArguments("System.Span<int>").
WithLocation
(24, 19),
3437
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[10]").WithArguments("System.Span<int>").
WithLocation
(31, 21)
3486
Diagnostic(ErrorCode.ERR_EscapeVariable, "local").WithArguments("local").
WithLocation
(16, 30),
3489
Diagnostic(ErrorCode.ERR_EscapeCall, "MayWrap(ref local)").WithArguments("Program.MayWrap(ref System.Span<int>)", "arg").
WithLocation
(16, 18),
3492
Diagnostic(ErrorCode.ERR_EscapeVariable, "sp1").WithArguments("sp1").
WithLocation
(22, 20)
3543
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "x").
WithLocation
(31, 28)
3601
Diagnostic(ErrorCode.ERR_CallArgMixing, "new SW().TryGet(out value1)").WithArguments("SW.TryGet(out System.Span<int>)", "result").
WithLocation
(14, 13),
3604
Diagnostic(ErrorCode.ERR_EscapeVariable, "value1").WithArguments("value1").
WithLocation
(14, 33)
3613
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "new SW()").
WithLocation
(18, 13),
3616
Diagnostic(ErrorCode.ERR_CallArgMixing, "new SW().TryGet2(out value2)").WithArguments("SW.TryGet2(out System.Span<int>)", "this").
WithLocation
(18, 13)
3660
Diagnostic(ErrorCode.ERR_EscapeVariable, "stackAllocated").WithArguments("stackAllocated").
WithLocation
(17, 43),
3663
Diagnostic(ErrorCode.ERR_CallArgMixing, "new NotReadOnly<int>().CopyTo(stackAllocated)").WithArguments("NotReadOnly<int>.CopyTo(System.Span<int>)", "other").
WithLocation
(17, 13)
3739
Diagnostic(ErrorCode.WRN_EscapeVariable, "x").WithArguments("x").
WithLocation
(11, 15));
3789
Diagnostic(ErrorCode.WRN_EscapeVariable, "x").WithArguments("x").
WithLocation
(11, 15));
3839
Diagnostic(ErrorCode.WRN_EscapeVariable, "x").WithArguments("x").
WithLocation
(11, 15));
3891
Diagnostic(ErrorCode.WRN_EscapeVariable, "x").WithArguments("x").
WithLocation
(13, 18));
3918
Diagnostic(ErrorCode.WRN_EscapeVariable, "x").WithArguments("x").
WithLocation
(10, 15),
3921
Diagnostic(ErrorCode.WRN_EscapeVariable, "x").WithArguments("x").
WithLocation
(11, 11));
3987
Diagnostic(ErrorCode.ERR_EscapeVariable, "local").WithArguments("local").
WithLocation
(13, 56),
3990
Diagnostic(ErrorCode.ERR_MismatchedRefEscapeInTernary, "flag1 ? ref global : ref local").
WithLocation
(13, 31),
3993
Diagnostic(ErrorCode.ERR_EscapeVariable, "local").WithArguments("local").
WithLocation
(14, 56),
3996
Diagnostic(ErrorCode.ERR_MismatchedRefEscapeInTernary, "flag2 ? ref global : ref local").
WithLocation
(14, 31)
4076
Diagnostic(ErrorCode.ERR_EscapeVariable, "(global, global) = local").WithArguments("(global, global) = local").
WithLocation
(10, 9),
4079
Diagnostic(ErrorCode.ERR_CallArgMixing, "local").WithArguments("Extensions.Deconstruct(System.Span<int>, out System.Span<int>, out System.Span<int>)", "self").
WithLocation
(10, 28),
4082
Diagnostic(ErrorCode.ERR_EscapeVariable, "(global, local) = local").WithArguments("(global, local) = local").
WithLocation
(11, 9),
4085
Diagnostic(ErrorCode.ERR_CallArgMixing, "local").WithArguments("Extensions.Deconstruct(System.Span<int>, out System.Span<int>, out System.Span<int>)", "self").
WithLocation
(11, 27),
4088
Diagnostic(ErrorCode.ERR_EscapeVariable, "(global, _) = local").WithArguments("(global, _) = local").
WithLocation
(13, 9),
4091
Diagnostic(ErrorCode.ERR_CallArgMixing, "local").WithArguments("Extensions.Deconstruct(System.Span<int>, out System.Span<int>, out System.Span<int>)", "self").
WithLocation
(13, 23));
4120
Diagnostic(ErrorCode.ERR_EscapeVariable, "(M(), M()) = local").WithArguments("(M(), M()) = local").
WithLocation
(9, 9),
4123
Diagnostic(ErrorCode.ERR_CallArgMixing, "local").WithArguments("Extensions.Deconstruct(System.Span<int>, out System.Span<int>, out System.Span<int>)", "self").
WithLocation
(9, 22));
4150
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "(global, global) = global").
WithLocation
(8, 9)
4178
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "(global, global) = global").
WithLocation
(8, 9)
4211
Diagnostic(ErrorCode.ERR_EscapeVariable, "(global, global) = local").WithArguments("(global, global) = local").
WithLocation
(10, 9),
4214
Diagnostic(ErrorCode.ERR_CallArgMixing, "local").WithArguments("Extensions.Deconstruct(in System.Span<int>, out System.Span<int>, out System.Span<int>)", "self").
WithLocation
(10, 28));
4221
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "(global, global) = global").
WithLocation
(9, 9),
4224
Diagnostic(ErrorCode.ERR_CallArgMixing, "global").WithArguments("Extensions.Deconstruct(in System.Span<int>, out System.Span<int>, out System.Span<int>)", "self").
WithLocation
(9, 28),
4227
Diagnostic(ErrorCode.ERR_EscapeVariable, "(global, global) = local").WithArguments("(global, global) = local").
WithLocation
(10, 9),
4230
Diagnostic(ErrorCode.ERR_CallArgMixing, "local").WithArguments("Extensions.Deconstruct(in System.Span<int>, out System.Span<int>, out System.Span<int>)", "self").
WithLocation
(10, 28));
4263
Diagnostic(ErrorCode.ERR_EscapeVariable, "(x1, y1) = local").WithArguments("(x1, y1) = local").
WithLocation
(10, 9),
4266
Diagnostic(ErrorCode.ERR_CallArgMixing, "local").WithArguments("Extensions.Deconstruct(in System.Span<int>, out System.Span<int>, out System.Span<int>)", "self").
WithLocation
(10, 20));
4298
Diagnostic(ErrorCode.ERR_EscapeVariable, "(x1, y1) = local").WithArguments("(x1, y1) = local").
WithLocation
(10, 9),
4301
Diagnostic(ErrorCode.ERR_CallArgMixing, "local").WithArguments("Extensions.Deconstruct(in System.ReadOnlySpan<int>, out System.ReadOnlySpan<int>, out System.ReadOnlySpan<int>)", "self").
WithLocation
(10, 20));
4341
Diagnostic(ErrorCode.ERR_BadTypeArgument, "global").WithArguments("System.Span<int>").
WithLocation
(8, 19),
4344
Diagnostic(ErrorCode.ERR_BadTypeArgument, "global").WithArguments("System.Span<int>").
WithLocation
(8, 27)
4397
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(12, 29),
4400
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(12, 36),
4403
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(14, 24),
4406
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(15, 24),
4409
Diagnostic(ErrorCode.ERR_BadTypeArgument, "global").WithArguments("System.Span<int>").
WithLocation
(17, 23),
4412
Diagnostic(ErrorCode.ERR_BadTypeArgument, "global").WithArguments("System.Span<int>").
WithLocation
(18, 23),
4415
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(20, 19)
4482
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(local, local)").WithArguments("System.ValueTuple`2").
WithLocation
(12, 28),
4485
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(12, 29),
4488
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(12, 36),
4491
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, @"(local, """")").WithArguments("System.ValueTuple`2").
WithLocation
(14, 23),
4494
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(14, 24),
4497
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(local, null)").WithArguments("System.ValueTuple`2").
WithLocation
(15, 23),
4500
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, @"(global, """")").WithArguments("System.ValueTuple`2").
WithLocation
(17, 22),
4503
Diagnostic(ErrorCode.ERR_BadTypeArgument, "global").WithArguments("System.Span<int>").
WithLocation
(17, 23),
4506
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(global, null)").WithArguments("System.ValueTuple`2").
WithLocation
(18, 22),
4509
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, @"(local, """")").WithArguments("System.ValueTuple`2").
WithLocation
(20, 18),
4512
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(20, 19),
4515
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(local, null)").WithArguments("System.ValueTuple`2").
WithLocation
(21, 18)
4597
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(12, 29),
4600
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(12, 36),
4603
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(14, 24),
4606
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(15, 24),
4609
Diagnostic(ErrorCode.ERR_BadTypeArgument, "global").WithArguments("System.Span<int>").
WithLocation
(17, 23),
4612
Diagnostic(ErrorCode.ERR_BadTypeArgument, "global").WithArguments("System.Span<int>").
WithLocation
(18, 23),
4615
Diagnostic(ErrorCode.ERR_BadTypeArgument, "local").WithArguments("System.Span<int>").
WithLocation
(20, 19));
4683
Diagnostic(ErrorCode.ERR_EscapeVariable, "local1").WithArguments("local1").
WithLocation
(10, 18),
4686
Diagnostic(ErrorCode.ERR_EscapeVariable, "local2").WithArguments("local2").
WithLocation
(11, 18));
4721
Diagnostic(ErrorCode.ERR_EscapeVariable, "local").WithArguments("local").
WithLocation
(11, 22)
4760
Diagnostic(ErrorCode.ERR_EscapeVariable, "local1").WithArguments("local1").
WithLocation
(11, 22),
4763
Diagnostic(ErrorCode.ERR_EscapeVariable, "local2").WithArguments("local2").
WithLocation
(12, 22));
4797
Diagnostic(ErrorCode.ERR_EscapeVariable, "local1").WithArguments("local1").
WithLocation
(10, 18),
4800
Diagnostic(ErrorCode.ERR_EscapeVariable, "local2").WithArguments("local2").
WithLocation
(11, 18));
4833
Diagnostic(ErrorCode.ERR_EscapeVariable, "local2").WithArguments("local2").
WithLocation
(11, 18));
4932
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "TestStruct").WithArguments("TestStruct").
WithLocation
(8, 36));
4958
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "TestStruct").WithArguments("TestStruct").
WithLocation
(8, 36));
4990
Diagnostic(ErrorCode.ERR_BadTypeArgument, "t").WithArguments("S").
WithLocation
(8, 26),
4993
Diagnostic(ErrorCode.ERR_BadSpecialByRefLocal, "var").WithArguments("S").
WithLocation
(12, 9),
4996
Diagnostic(ErrorCode.ERR_BadSpecialByRefLocal, "var").WithArguments("S").
WithLocation
(14, 9),
4999
Diagnostic(ErrorCode.ERR_CallArgMixing, "M(await t, ref r)").WithArguments("C.M(S, ref S)", "t").
WithLocation
(15, 9)
5023
Diagnostic(ErrorCode.ERR_BadTypeArgument, "S?").WithArguments("S").
WithLocation
(8, 14),
5026
Diagnostic(ErrorCode.ERR_BadTypeArgument, "S?").WithArguments("S").
WithLocation
(10, 18)
5050
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "S").WithArguments("S").
WithLocation
(8, 15),
5053
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "S").WithArguments("S").
WithLocation
(10, 19)
5079
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".Test()").WithArguments("S").
WithLocation
(8, 23),
5082
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".Test()").WithArguments("S").
WithLocation
(10, 27)
5107
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "Span<Thing>").WithArguments("System.Span<Thing>").
WithLocation
(5, 21));
5128
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(6, 9),
5131
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "this").
WithLocation
(6, 20),
5134
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "this").
WithLocation
(7, 19),
5137
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(8, 9));
5158
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(6, 9),
5161
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "obj = ref this").WithArguments("obj", "this").
WithLocation
(7, 9),
5164
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(8, 9));
5185
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(6, 9),
5188
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "this").
WithLocation
(7, 19),
5191
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(8, 9));
5214
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(6, 9),
5217
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "obj = ref this").WithArguments("obj", "this").
WithLocation
(7, 9),
5220
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(8, 9));
5241
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(6, 9),
5244
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "this").
WithLocation
(7, 19),
5247
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(8, 9));
5303
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(8, 24)
5343
Diagnostic(ErrorCode.ERR_SpecialByRefInLambda, "handle = RentArray<int>(200, out var array)").WithArguments("PooledArrayHandle<int>").
WithLocation
(20, 19));
5488
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "xyzw1").WithArguments("xyzw1").
WithLocation
(22, 20),
5491
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "xyzw2").WithArguments("xyzw2").
WithLocation
(29, 20),
5494
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "xyzw3").WithArguments("xyzw3").
WithLocation
(35, 20),
5497
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "xyzw4").WithArguments("xyzw4").
WithLocation
(42, 20)
5555
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r1").WithArguments("r1").
WithLocation
(12, 16),
5558
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r2").WithArguments("r2").
WithLocation
(19, 16),
5561
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r3").WithArguments("r3").
WithLocation
(25, 16),
5564
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r4").WithArguments("r4").
WithLocation
(32, 16)
5703
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw1").WithArguments("xyzw1").
WithLocation
(16, 16),
5706
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw2").WithArguments("xyzw2").
WithLocation
(23, 16)
5849
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw1").WithArguments("xyzw1").
WithLocation
(16, 16),
5852
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw2").WithArguments("xyzw2").
WithLocation
(23, 16)
5893
Diagnostic(ErrorCode.ERR_AssgReadonlyStatic2, "ReadOnlyVec.Self").WithArguments("Program.ReadOnlyVec").
WithLocation
(15, 9)
5983
Diagnostic(ErrorCode.WRN_ImplicitCopyInReadOnlyMember, "this").WithArguments("Vec4.Self2()", "this").
WithLocation
(16, 30),
5986
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "xyzw3").WithArguments("xyzw3").
WithLocation
(17, 20),
5989
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "xyzw4").WithArguments("xyzw4").
WithLocation
(25, 20)
6140
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw1").WithArguments("xyzw1").
WithLocation
(14, 25),
6143
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw2").WithArguments("xyzw2").
WithLocation
(22, 17),
6146
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw3").WithArguments("xyzw3").
WithLocation
(29, 13)
6190
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "S").WithArguments("S").
WithLocation
(8, 20),
6193
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "ReadOnlyVec").WithArguments("Program.ReadOnlyVec").
WithLocation
(10, 31),
6196
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "ReadOnlyVec").WithArguments("Program.ReadOnlyVec").
WithLocation
(11, 37),
6199
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "ReadOnlyVec").WithArguments("Program.ReadOnlyVec").
WithLocation
(12, 38)
6243
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "S").WithArguments("S").
WithLocation
(8, 20),
6246
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "ReadOnlyVec").WithArguments("Program.ReadOnlyVec").
WithLocation
(10, 38),
6249
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "ReadOnlyVec").WithArguments("Program.ReadOnlyVec").
WithLocation
(11, 44),
6252
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "ReadOnlyVec").WithArguments("Program.ReadOnlyVec").
WithLocation
(12, 45)
6315
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "S").WithArguments("S").
WithLocation
(8, 20),
6318
Diagnostic(ErrorCode.ERR_EscapeCall, "new S(xyzw2)").WithArguments("S.S(System.Span<float>)", "x").
WithLocation
(18, 25),
6321
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw2").WithArguments("xyzw2").
WithLocation
(18, 31),
6324
Diagnostic(ErrorCode.ERR_EscapeCall, "new S(xyzw3)").WithArguments("S.S(System.Span<float>)", "x").
WithLocation
(26, 17),
6327
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw3").WithArguments("xyzw3").
WithLocation
(26, 23),
6330
Diagnostic(ErrorCode.ERR_EscapeCall, "new S(xyzw4)").WithArguments("S.S(System.Span<float>)", "x").
WithLocation
(33, 13),
6333
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw4").WithArguments("xyzw4").
WithLocation
(33, 19)
6377
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "S").WithArguments("S").
WithLocation
(8, 20),
6380
Diagnostic(ErrorCode.ERR_EscapeCall, "new S(ReadOnlyVec.Self2())").WithArguments("S.S(System.Span<float>)", "x").
WithLocation
(11, 45),
6383
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "ReadOnlyVec").
WithLocation
(11, 51),
6386
Diagnostic(ErrorCode.ERR_EscapeCall, "new S(ReadOnlyVec.Self2())").WithArguments("S.S(System.Span<float>)", "x").
WithLocation
(12, 25),
6389
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "ReadOnlyVec").
WithLocation
(12, 31)
6433
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "S").WithArguments("S").
WithLocation
(8, 20),
6436
Diagnostic(ErrorCode.ERR_EscapeCall, "new S(ReadOnlyVec.Self2())").WithArguments("S.S(System.Span<float>)", "x").
WithLocation
(11, 52),
6439
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "ReadOnlyVec").
WithLocation
(11, 58),
6442
Diagnostic(ErrorCode.ERR_EscapeCall, "new S(ReadOnlyVec.Self2())").WithArguments("S.S(System.Span<float>)", "x").
WithLocation
(12, 32),
6445
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "ReadOnlyVec").
WithLocation
(12, 38)
6506
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "S").WithArguments("S").
WithLocation
(8, 20),
6509
Diagnostic(ErrorCode.ERR_EscapeCall, "new S(xyz2)").WithArguments("S.S(System.Span<float>)", "x").
WithLocation
(21, 29),
6512
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyz2").WithArguments("xyz2").
WithLocation
(21, 35),
6515
Diagnostic(ErrorCode.ERR_EscapeCall, "new S(xyz3)").WithArguments("S.S(System.Span<float>)", "x").
WithLocation
(29, 21),
6518
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyz3").WithArguments("xyz3").
WithLocation
(29, 27)
6579
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw1").WithArguments("xyzw1").
WithLocation
(16, 16),
6582
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw2").WithArguments("xyzw2").
WithLocation
(23, 16),
6585
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw3").WithArguments("xyzw3").
WithLocation
(29, 16),
6588
Diagnostic(ErrorCode.ERR_EscapeVariable, "xyzw4").WithArguments("xyzw4").
WithLocation
(36, 16)
6636
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs4").WithArguments("rs4").
WithLocation
(19, 16),
6639
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs4").WithArguments("rs4").
WithLocation
(25, 16),
6642
Diagnostic(ErrorCode.ERR_CallArgMixing, "M0(ref rs3, out rs4)").WithArguments("Program.M0(ref RS, out RS)", "rs1").
WithLocation
(31, 9),
6645
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "rs3").WithArguments("rs3").
WithLocation
(31, 16));
6689
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs4").WithArguments("rs4").
WithLocation
(16, 16),
6692
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs4").WithArguments("rs4").
WithLocation
(22, 16),
6695
Diagnostic(ErrorCode.ERR_CallArgMixing, "M0(rs3, out rs4)").WithArguments("Program.M0(RS, out RS)", "rs1").
WithLocation
(28, 9),
6698
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs3").WithArguments("scoped RS rs3").
WithLocation
(28, 12));
6762
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs3").WithArguments("rs3").
WithLocation
(9, 15)
6839
Diagnostic(ErrorCode.ERR_EscapeCall, "new RS(ref __refvalue(ai.GetNextArg(), int))").WithArguments("RS.RS(ref int)", "i").
WithLocation
(17, 15),
6842
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "__refvalue(ai.GetNextArg(), int)").
WithLocation
(17, 26),
6845
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs3").WithArguments("rs3").
WithLocation
(23, 16),
6848
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs5").WithArguments("rs5").
WithLocation
(29, 16));
6889
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs4").WithArguments("rs4").
WithLocation
(19, 16));
6916
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(out int i)").WithArguments("Program.F1(out int)", "i").
WithLocation
(12, 20),
6919
Diagnostic(ErrorCode.ERR_RefReturnLocal, "int i").WithArguments("i").
WithLocation
(12, 27));
6979
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs4").WithArguments("rs4").
WithLocation
(19, 16),
6982
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs6").WithArguments("rs6").
WithLocation
(27, 16),
6985
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs4").WithArguments("rs4").
WithLocation
(36, 16),
6988
Diagnostic(ErrorCode.ERR_EscapeVariable, "rs6").WithArguments("rs6").
WithLocation
(45, 16)
Semantics\RefExtensionMethodsTests.cs (91)
42
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "5").
WithLocation
(13, 9));
209
Diagnostic(ErrorCode.ERR_InitializerAddHasParamModifiers, "1").WithArguments("MyStructExtension.Add(ref MyStruct, ref int)").
WithLocation
(20, 32));
241
Diagnostic(ErrorCode.ERR_InitializerAddHasParamModifiers, "1").WithArguments("MyStructExtension.Add(in MyStruct, ref int)").
WithLocation
(19, 32));
335
Diagnostic(ErrorCode.ERR_BadUnaryOp, "?").WithArguments("?", "TestType").
WithLocation
(10, 25));
358
Diagnostic(ErrorCode.ERR_BadUnaryOp, "?").WithArguments("?", "TestType").
WithLocation
(10, 25));
423
Diagnostic(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, "PrintValue").WithArguments("PrintValue").
WithLocation
(4, 24),
426
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(14, 11));
440
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
467
Diagnostic(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, "PrintValue").WithArguments("PrintValue").
WithLocation
(4, 24),
470
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("System.IComparable", "PrintValue").
WithLocation
(14, 11));
484
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("System.IComparable", "PrintValue").
WithLocation
(7, 11));
511
Diagnostic(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, "PrintValue").WithArguments("PrintValue").
WithLocation
(4, 24),
514
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(14, 11));
528
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
593
Diagnostic(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, "PrintValue").WithArguments("PrintValue").
WithLocation
(4, 24),
596
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(14, 11));
610
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
637
Diagnostic(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, "PrintValue").WithArguments("PrintValue").
WithLocation
(4, 24),
640
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(14, 11));
654
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
724
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
760
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("System.IComparable", "PrintValue").
WithLocation
(7, 11));
796
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
867
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
903
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
968
Diagnostic(ErrorCode.ERR_InExtensionMustBeValueType, "PrintValue").WithArguments("PrintValue").
WithLocation
(4, 24),
971
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(14, 11));
985
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
1012
Diagnostic(ErrorCode.ERR_InExtensionMustBeValueType, "PrintValue").WithArguments("PrintValue").
WithLocation
(4, 24),
1015
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("System.IComparable", "PrintValue").
WithLocation
(14, 11));
1029
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("System.IComparable", "PrintValue").
WithLocation
(7, 11));
1056
Diagnostic(ErrorCode.ERR_InExtensionMustBeValueType, "PrintValue").WithArguments("PrintValue").
WithLocation
(4, 24),
1059
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(14, 11));
1073
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
1100
Diagnostic(ErrorCode.ERR_InExtensionMustBeValueType, "PrintValue").WithArguments("PrintValue").
WithLocation
(4, 24),
1103
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("int", "PrintValue").
WithLocation
(14, 11));
1117
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("int", "PrintValue").
WithLocation
(7, 11));
1144
Diagnostic(ErrorCode.ERR_InExtensionMustBeValueType, "PrintValue").WithArguments("PrintValue").
WithLocation
(4, 24),
1147
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(14, 11));
1161
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
1188
Diagnostic(ErrorCode.ERR_InExtensionMustBeValueType, "PrintValue").WithArguments("PrintValue").
WithLocation
(4, 24),
1191
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(14, 11));
1205
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
1280
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
1319
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("System.IComparable", "PrintValue").
WithLocation
(7, 11));
1358
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
1397
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("int", "PrintValue").
WithLocation
(7, 11));
1436
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
1475
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "PrintValue").WithArguments("string", "PrintValue").
WithLocation
(7, 11));
1501
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "p").WithArguments("variable", "p").
WithLocation
(6, 9));
1634
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "intValue").WithArguments("int", "Print", "Extensions.Print(ref long)", "ref long").
WithLocation
(14, 9));
1663
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "intValue").WithArguments("int", "Print", "Extensions.Print(in long)", "in long").
WithLocation
(14, 9));
1696
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "intTuple").WithArguments("(int intValue1, int intValue2)", "Print", "Extensions.Print(ref (long, long))", "ref (long, long)").
WithLocation
(16, 9));
1729
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "intTuple").WithArguments("(int intValue1, int intValue2)", "Print", "Extensions.Print(in (long, long))", "in (long, long)").
WithLocation
(16, 9));
1760
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "0").WithArguments("int", "Print", "Extensions.Print(ref int?)", "ref int?").
WithLocation
(13, 9),
1763
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "intValue").WithArguments("int", "Print", "Extensions.Print(ref int?)", "ref int?").
WithLocation
(16, 9));
1794
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "0").WithArguments("int", "Print", "Extensions.Print(in int?)", "in int?").
WithLocation
(13, 9),
1797
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "intValue").WithArguments("int", "Print", "Extensions.Print(in int?)", "in int?").
WithLocation
(16, 9));
1828
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "stringValue").WithArguments("string", "Print", "Extensions.Print(ref Test)", "ref Test").
WithLocation
(16, 9));
1859
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "stringValue").WithArguments("string", "Print", "Extensions.Print(ref Test)", "ref Test").
WithLocation
(16, 9));
2071
Diagnostic(ErrorCode.ERR_AmbigCall, "Print").WithArguments("Ext1.Print(ref int)", "Ext2.Print(in int)").
WithLocation
(20, 11));
2107
Diagnostic(ErrorCode.ERR_AmbigCall, "Print").WithArguments("Ext1.Print(ref int)", "Ext2.Print(in int)").
WithLocation
(21, 15));
2129
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "p").WithArguments("variable", "p").
WithLocation
(6, 17));
2236
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21),
2239
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21),
2242
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21),
2245
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21),
2248
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21),
2251
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21),
2254
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21),
2257
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21),
2260
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21),
2263
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21),
2266
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21),
2269
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(3, 21));
2295
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "this").WithArguments("ref extension methods", "7.2").
WithLocation
(4, 34),
2298
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "p").WithArguments("ref extension methods", "7.2").
WithLocation
(14, 9));
2331
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "p").WithArguments("ref extension methods", "7.2").
WithLocation
(7, 9));
2339
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "p").WithArguments("ref extension methods", "7.2").
WithLocation
(7, 9));
2375
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "in").WithArguments("readonly references", "7.2").
WithLocation
(4, 31),
2378
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "this").WithArguments("ref extension methods", "7.2").
WithLocation
(4, 34),
2381
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "in").WithArguments("readonly references", "7.2").
WithLocation
(6, 36),
2384
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "in").WithArguments("ref extension methods", "7.2").
WithLocation
(6, 36),
2387
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "this").WithArguments("ref extension methods", "7.2").
WithLocation
(8, 35),
2390
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "ref").WithArguments("ref extension methods", "7.2").
WithLocation
(10, 36),
2393
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "p").WithArguments("ref extension methods", "7.2").
WithLocation
(18, 9),
2396
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "p").WithArguments("ref extension methods", "7.2").
WithLocation
(19, 9),
2399
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "p").WithArguments("ref extension methods", "7.2").
WithLocation
(20, 9),
2402
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "p").WithArguments("ref extension methods", "7.2").
WithLocation
(21, 9));
2435
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "p").WithArguments("ref extension methods", "7.2").
WithLocation
(7, 9));
2443
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "p").WithArguments("ref extension methods", "7.2").
WithLocation
(7, 9));
Semantics\RefFieldTests.cs (2093)
88
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref T").WithArguments("ref fields", "11.0").
WithLocation
(3, 12),
91
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref readonly T").WithArguments("ref fields", "11.0").
WithLocation
(4, 12),
94
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(25, 9));
129
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "F1").WithArguments("ref fields", "11.0").
WithLocation
(8, 25),
132
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(12, 9),
135
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "F1").WithArguments("ref fields", "11.0").
WithLocation
(14, 25),
138
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "s.F1").WithArguments("ref fields", "11.0").
WithLocation
(19, 12),
141
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "s.F2").WithArguments("ref fields", "11.0").
WithLocation
(20, 12),
144
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "s.F1").WithArguments("ref fields", "11.0").
WithLocation
(21, 16));
170
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref T").WithArguments("ref fields", "11.0").
WithLocation
(3, 12));
200
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "s.F").WithArguments("ref fields", "11.0").
WithLocation
(8, 9),
203
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "s.F").WithArguments("ref fields", "11.0").
WithLocation
(9, 27),
206
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "s.F").WithArguments("ref fields", "11.0").
WithLocation
(12, 27));
239
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref readonly T").WithArguments("ref fields", "11.0").
WithLocation
(3, 12));
274
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "s.F").WithArguments("ref fields", "11.0").
WithLocation
(13, 9),
277
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "s.F").WithArguments("ref fields", "11.0").
WithLocation
(14, 27),
280
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "s.F").WithArguments("ref fields", "11.0").
WithLocation
(17, 27));
397
Diagnostic(ErrorCode.ERR_FieldsInRoStruct, "B1").
WithLocation
(11, 13),
400
Diagnostic(ErrorCode.ERR_FieldsInRoStruct, "B2").
WithLocation
(12, 22));
567
Diagnostic(ErrorCode.ERR_FixedFieldMustNotBeRef, "F1").
WithLocation
(3, 26),
570
Diagnostic(ErrorCode.ERR_FixedFieldMustNotBeRef, "F2").
WithLocation
(4, 35));
605
Diagnostic(ErrorCode.ERR_BindToBogus, "F").WithArguments("S.F").
WithLocation
(7, 29));
635
Diagnostic(ErrorCode.ERR_BindToBogus, "F1").WithArguments("R.F1").
WithLocation
(7, 29),
638
Diagnostic(ErrorCode.ERR_BindToBogus, "F2").WithArguments("R.F2").
WithLocation
(8, 29));
659
Diagnostic(ErrorCode.ERR_BadMemberFlag, "_s1").WithArguments("static").
WithLocation
(4, 20),
662
Diagnostic(ErrorCode.ERR_BadMemberFlag, "_s2").WithArguments("static").
WithLocation
(5, 29),
665
Diagnostic(ErrorCode.ERR_BadMemberFlag, "_c1").WithArguments("static").
WithLocation
(6, 19),
668
Diagnostic(ErrorCode.ERR_BadMemberFlag, "_c1").WithArguments("const").
WithLocation
(6, 19),
671
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "= default").
WithLocation
(6, 23),
674
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "default").
WithLocation
(6, 25),
677
Diagnostic(ErrorCode.ERR_BadMemberFlag, "_c2").WithArguments("static").
WithLocation
(7, 28),
680
Diagnostic(ErrorCode.ERR_BadMemberFlag, "_c2").WithArguments("const").
WithLocation
(7, 28),
683
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "= default").
WithLocation
(7, 32),
686
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "default").
WithLocation
(7, 34),
689
Diagnostic(ErrorCode.ERR_BadMemberFlag, "_v1").WithArguments("volatile").
WithLocation
(8, 22),
692
Diagnostic(ErrorCode.ERR_BadMemberFlag, "_v2").WithArguments("volatile").
WithLocation
(9, 31));
729
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "S*").
WithLocation
(14, 9),
732
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "S2*").
WithLocation
(15, 9),
735
Diagnostic(ErrorCode.WRN_ManagedAddr, "s2").WithArguments("S2").
WithLocation
(15, 13),
738
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "C*").
WithLocation
(16, 9),
741
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("C").
WithLocation
(16, 12),
744
Diagnostic(ErrorCode.WRN_ManagedAddr, "s2").WithArguments("S2").
WithLocation
(22, 13),
747
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("C").
WithLocation
(23, 12)
775
Diagnostic(ErrorCode.WRN_ManagedAddr, "M2").WithArguments("S2").
WithLocation
(14, 9),
778
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(14, 18),
781
Diagnostic(ErrorCode.WRN_ManagedAddr, "M3").WithArguments("C").
WithLocation
(15, 8),
784
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(15, 17)
824
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(20, 9),
827
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(25, 9)
907
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(23, 16),
910
Diagnostic(ErrorCode.WRN_ManagedAddr, "&Prop2").WithArguments("S2").
WithLocation
(23, 25),
913
Diagnostic(ErrorCode.WRN_ManagedAddr, "&Prop2").WithArguments("S2").
WithLocation
(23, 25),
916
Diagnostic(ErrorCode.WRN_ManagedAddr, "&Prop2").WithArguments("S2").
WithLocation
(27, 27),
919
Diagnostic(ErrorCode.WRN_ManagedAddr, "&Prop2").WithArguments("S2").
WithLocation
(27, 27),
922
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(31, 16),
925
Diagnostic(ErrorCode.WRN_ManagedAddr, "&Prop3").WithArguments("C").
WithLocation
(31, 24),
928
Diagnostic(ErrorCode.WRN_ManagedAddr, "&Prop3").WithArguments("C").
WithLocation
(31, 24),
931
Diagnostic(ErrorCode.WRN_ManagedAddr, "&Prop3").WithArguments("C").
WithLocation
(35, 27),
934
Diagnostic(ErrorCode.WRN_ManagedAddr, "&Prop3").WithArguments("C").
WithLocation
(35, 27)
1005
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "void*").
WithLocation
(13, 12),
1008
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "_ = (S*)p").
WithLocation
(15, 9),
1011
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "(S*)p").
WithLocation
(15, 13),
1014
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "S*").
WithLocation
(15, 14),
1017
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "p").
WithLocation
(15, 17),
1020
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "_ = (S2*)p").
WithLocation
(16, 9),
1023
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "(S2*)p").
WithLocation
(16, 13),
1026
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "S2*").
WithLocation
(16, 14),
1029
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(16, 14),
1032
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "p").
WithLocation
(16, 18),
1035
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "_ = (C*)p").
WithLocation
(17, 9),
1038
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "(C*)p").
WithLocation
(17, 13),
1041
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "C*").
WithLocation
(17, 14),
1044
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(17, 14),
1047
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "p").
WithLocation
(17, 17),
1050
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(23, 14),
1053
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(24, 14)
1098
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(19, 23),
1101
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(23, 23),
1104
Diagnostic(ErrorCode.WRN_ManagedAddr, "sizeof(S2)").WithArguments("S2").
WithLocation
(27, 16),
1107
Diagnostic(ErrorCode.WRN_ManagedAddr, "sizeof(C)").WithArguments("C").
WithLocation
(31, 16)
1163
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(19, 23),
1166
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(23, 23)
1239
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "&s").
WithLocation
(15, 17),
1242
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("S2").
WithLocation
(19, 17),
1245
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "&s").
WithLocation
(19, 17),
1248
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("S2").
WithLocation
(23, 17),
1251
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").
WithLocation
(23, 17),
1254
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("S2").
WithLocation
(35, 17),
1257
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("S2").
WithLocation
(39, 17),
1260
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s").
WithLocation
(39, 17)
1282
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("S2").
WithLocation
(11, 17)
1319
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("S2").
WithLocation
(13, 25)
1353
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(10, 11)
1398
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("S2").
WithLocation
(19, 17)
1443
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("S2").
WithLocation
(19, 17)
1491
Diagnostic(ErrorCode.ERR_ManagedAddr, "S2").WithArguments("S2").
WithLocation
(16, 29),
1494
Diagnostic(ErrorCode.ERR_ManagedAddr, "C").WithArguments("C").
WithLocation
(17, 29),
1497
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(20, 9),
1500
Diagnostic(ErrorCode.ERR_ManagedAddr, "S2").WithArguments("S2").
WithLocation
(20, 29),
1503
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(21, 9),
1506
Diagnostic(ErrorCode.ERR_ManagedAddr, "C").WithArguments("C").
WithLocation
(21, 28)
1547
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { new S2() }").WithArguments("S2").
WithLocation
(16, 18),
1550
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { new C() }").WithArguments("C").
WithLocation
(17, 18),
1553
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(20, 9),
1556
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { new S2() }").WithArguments("S2").
WithLocation
(20, 18),
1559
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(24, 9),
1562
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { new C() }").WithArguments("C").
WithLocation
(24, 17)
1599
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(16, 29),
1602
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(17, 29),
1605
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(20, 9),
1608
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(20, 30),
1611
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(21, 9),
1614
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(21, 29)
1655
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(16, 19),
1658
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(17, 19),
1661
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(24, 9),
1664
Diagnostic(ErrorCode.WRN_ManagedAddr, "C*").WithArguments("C").
WithLocation
(25, 9)
1802
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field").WithArguments("R.field", "0").
WithLocation
(7, 29)
1889
Diagnostic(ErrorCode.ERR_BindToBogus, "F").WithArguments("A.F").
WithLocation
(7, 29));
1921
Diagnostic(ErrorCode.ERR_BindToBogus, "F").WithArguments("A.F").
WithLocation
(7, 29));
1961
Diagnostic(ErrorCode.ERR_NoTypeDef, "F").WithArguments("A", "A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 29));
2059
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref int").WithArguments("ref fields", "11.0").
WithLocation
(4, 5),
2062
Diagnostic(ErrorCode.ERR_RefFieldInNonRefStruct, "F").
WithLocation
(4, 13));
2068
Diagnostic(ErrorCode.ERR_RefFieldInNonRefStruct, "F").
WithLocation
(4, 13));
2167
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref T").WithArguments("ref fields", "11.0").
WithLocation
(3, 12),
2170
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, "F").
WithLocation
(3, 18),
2173
Diagnostic(ErrorCode.ERR_RefReturnParameter2, "r").WithArguments("r").
WithLocation
(10, 20));
2181
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref T").WithArguments("ref fields", "11.0").
WithLocation
(3, 12));
2189
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, "F").
WithLocation
(3, 18));
2294
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref T").WithArguments("ref fields", "11.0").
WithLocation
(5, 21),
2297
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "F1").WithArguments("required members", "11.0").
WithLocation
(5, 27),
2300
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref readonly U").WithArguments("ref fields", "11.0").
WithLocation
(6, 21),
2303
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "F2").WithArguments("required members", "11.0").
WithLocation
(6, 36));
2366
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F2").
WithLocation
(9, 13),
2369
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F1").
WithLocation
(9, 13),
2372
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F2").
WithLocation
(10, 13),
2375
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F1").
WithLocation
(10, 13),
2378
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F2").
WithLocation
(11, 13),
2381
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F1").
WithLocation
(12, 13),
2384
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "R<int, double>").WithArguments("R<int, double>.F2").
WithLocation
(14, 17),
2387
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "R<int, double>").WithArguments("R<int, double>.F1").
WithLocation
(14, 17),
2390
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "R<int, double>").WithArguments("R<int, double>.F2").
WithLocation
(15, 17),
2393
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "R<int, double>").WithArguments("R<int, double>.F1").
WithLocation
(15, 17),
2396
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F2").
WithLocation
(16, 13),
2399
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F1").
WithLocation
(16, 13),
2402
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F2").
WithLocation
(17, 13),
2405
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F1").
WithLocation
(17, 13),
2408
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F2").
WithLocation
(18, 13),
2411
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("R<int, double>.F1").
WithLocation
(19, 13));
2442
Diagnostic(ErrorCode.ERR_RefFieldCannotReferToRefStruct, "ref R1<T>").
WithLocation
(8, 12),
2445
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "r2.F = ref r1").WithArguments("F", "r1").
WithLocation
(15, 9));
2480
Diagnostic(ErrorCode.ERR_BindToBogus, "F").WithArguments("R2.F").
WithLocation
(6, 12));
2506
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref T").WithArguments("ref fields", "11.0").
WithLocation
(3, 5),
2509
Diagnostic(ErrorCode.ERR_EscapeVariable, "r2.F").WithArguments("r2").
WithLocation
(13, 20));
2515
Diagnostic(ErrorCode.ERR_EscapeVariable, "r2.F").WithArguments("r2").
WithLocation
(13, 20));
2537
Diagnostic(ErrorCode.WRN_EscapeVariable, "r2.F").WithArguments("r2").
WithLocation
(9, 20));
2588
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref T").WithArguments("ref fields", "11.0").
WithLocation
(3, 5),
2591
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "F = ref t").WithArguments("F", "t").
WithLocation
(7, 9),
2594
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "r1.F = ref t").WithArguments("F", "t").
WithLocation
(12, 9),
2597
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r2.F = ref t").WithArguments("F", "t").
WithLocation
(18, 9)
2604
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "F = ref t").WithArguments("F", "t").
WithLocation
(7, 9),
2607
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "r1.F = ref t").WithArguments("F", "t").
WithLocation
(12, 9),
2610
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r2.F = ref t").WithArguments("F", "t").
WithLocation
(18, 9)
2699
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r.Field = ref i").WithArguments("Field", "i").
WithLocation
(10, 9)
2820
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(3, 25),
2823
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(7, 25)
2850
Diagnostic(ErrorCode.WRN_RefReturnStructThis, "this").
WithLocation
(3, 32),
2853
Diagnostic(ErrorCode.WRN_RefReturnStructThis, "this").
WithLocation
(7, 32)
2885
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "c").WithArguments("c").
WithLocation
(12, 56),
2888
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "s").WithArguments("s").
WithLocation
(13, 56),
2891
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "r").WithArguments("r").
WithLocation
(14, 56)
2944
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").
WithLocation
(11, 70),
2947
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(11, 79),
2950
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(12, 70),
2953
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(12, 78),
2956
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(13, 70),
2959
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(13, 75),
2962
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F3(out t)").WithArguments("S.F3<T>(out T)", "t").
WithLocation
(14, 70),
2965
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(14, 79),
2968
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").
WithLocation
(29, 61),
2971
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(29, 70),
2974
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(30, 75),
2977
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(30, 83)
2984
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").
WithLocation
(11, 70),
2987
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(11, 79),
2990
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(12, 70),
2993
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(12, 78),
2996
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(13, 70),
2999
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(13, 75),
3002
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").
WithLocation
(24, 75),
3005
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(24, 84),
3008
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(25, 75),
3011
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(25, 83),
3014
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(26, 75),
3017
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(26, 80),
3020
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").
WithLocation
(29, 61),
3023
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(29, 70),
3026
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(30, 75),
3029
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(30, 83)
3074
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(ref t)").WithArguments("C.F1<T>(ref T)", "t").
WithLocation
(9, 48),
3077
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(9, 55),
3080
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(in t)").WithArguments("C.F2<T>(in T)", "t").
WithLocation
(10, 48),
3083
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(10, 54),
3086
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(t)").WithArguments("C.F2<T>(in T)", "t").
WithLocation
(11, 48),
3089
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(11, 51),
3092
Diagnostic(ErrorCode.ERR_EscapeCall, "F3(out t)").WithArguments("C.F3<T>(out T)", "t").
WithLocation
(12, 48),
3095
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(12, 55)
3102
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(ref t)").WithArguments("C.F1<T>(ref T)", "t").
WithLocation
(9, 48),
3105
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(9, 55),
3108
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(in t)").WithArguments("C.F2<T>(in T)", "t").
WithLocation
(10, 48),
3111
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(10, 54),
3114
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(t)").WithArguments("C.F2<T>(in T)", "t").
WithLocation
(11, 48),
3117
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(11, 51),
3120
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(ref t)").WithArguments("C.F1<T>(ref T)", "t").
WithLocation
(22, 53),
3123
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(22, 60),
3126
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(in t)").WithArguments("C.F2<T>(in T)", "t").
WithLocation
(23, 53),
3129
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(23, 59),
3132
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(t)").WithArguments("C.F2<T>(in T)", "t").
WithLocation
(24, 53),
3135
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(24, 56)
3251
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(t, ref u)").WithArguments("Program.F1<T, U>(T, ref U)", "u").
WithLocation
(23, 20),
3254
Diagnostic(ErrorCode.ERR_RefReturnLocal, "u").WithArguments("u").
WithLocation
(23, 30),
3257
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(t, in u)").WithArguments("Program.F2<T, U>(T, in U)", "u").
WithLocation
(29, 20),
3260
Diagnostic(ErrorCode.ERR_RefReturnLocal, "u").WithArguments("u").
WithLocation
(29, 29),
3263
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(t, u)").WithArguments("Program.F2<T, U>(T, in U)", "u").
WithLocation
(35, 20),
3266
Diagnostic(ErrorCode.ERR_RefReturnLocal, "u").WithArguments("u").
WithLocation
(35, 26),
3269
Diagnostic(ErrorCode.ERR_EscapeCall, "F3(t, out u)").WithArguments("Program.F3<T, U>(T, out U)", "u").
WithLocation
(41, 20),
3272
Diagnostic(ErrorCode.ERR_RefReturnLocal, "u").WithArguments("u").
WithLocation
(41, 30),
3275
Diagnostic(ErrorCode.ERR_EscapeCall, "F4(ref t, ref u)").WithArguments("Program.F4<T, U>(ref T, ref U)", "t").
WithLocation
(47, 20),
3278
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(47, 27),
3281
Diagnostic(ErrorCode.ERR_EscapeCall, "F5(ref t, in u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").
WithLocation
(53, 20),
3284
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(53, 27),
3287
Diagnostic(ErrorCode.ERR_EscapeCall, "F5(ref t, u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").
WithLocation
(59, 20),
3290
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(59, 27),
3293
Diagnostic(ErrorCode.ERR_EscapeCall, "F6(ref t, out u)").WithArguments("Program.F6<T, U>(ref T, out U)", "t").
WithLocation
(65, 20),
3296
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(65, 27),
3299
Diagnostic(ErrorCode.ERR_EscapeCall, "F7(in t, in u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").
WithLocation
(71, 20),
3302
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(71, 26),
3305
Diagnostic(ErrorCode.ERR_EscapeCall, "F7(t, u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").
WithLocation
(77, 20),
3308
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(77, 23),
3311
Diagnostic(ErrorCode.ERR_EscapeCall, "F8(in t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").
WithLocation
(83, 20),
3314
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(83, 26),
3317
Diagnostic(ErrorCode.ERR_EscapeCall, "F8(t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").
WithLocation
(89, 20),
3320
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(89, 23),
3323
Diagnostic(ErrorCode.ERR_EscapeCall, "F9(out t, out u)").WithArguments("Program.F9<T, U>(out T, out U)", "t").
WithLocation
(95, 20),
3326
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(95, 27)
3333
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(t, ref u)").WithArguments("Program.F1<T, U>(T, ref U)", "u").
WithLocation
(23, 20),
3336
Diagnostic(ErrorCode.ERR_RefReturnLocal, "u").WithArguments("u").
WithLocation
(23, 30),
3339
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(t, in u)").WithArguments("Program.F2<T, U>(T, in U)", "u").
WithLocation
(29, 20),
3342
Diagnostic(ErrorCode.ERR_RefReturnLocal, "u").WithArguments("u").
WithLocation
(29, 29),
3345
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(t, u)").WithArguments("Program.F2<T, U>(T, in U)", "u").
WithLocation
(35, 20),
3348
Diagnostic(ErrorCode.ERR_RefReturnLocal, "u").WithArguments("u").
WithLocation
(35, 26),
3351
Diagnostic(ErrorCode.ERR_EscapeCall, "F4(ref t, ref u)").WithArguments("Program.F4<T, U>(ref T, ref U)", "t").
WithLocation
(47, 20),
3354
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(47, 27),
3357
Diagnostic(ErrorCode.ERR_EscapeCall, "F5(ref t, in u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").
WithLocation
(53, 20),
3360
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(53, 27),
3363
Diagnostic(ErrorCode.ERR_EscapeCall, "F5(ref t, u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").
WithLocation
(59, 20),
3366
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(59, 27),
3369
Diagnostic(ErrorCode.ERR_EscapeCall, "F6(ref t, out u)").WithArguments("Program.F6<T, U>(ref T, out U)", "t").
WithLocation
(65, 20),
3372
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(65, 27),
3375
Diagnostic(ErrorCode.ERR_EscapeCall, "F7(in t, in u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").
WithLocation
(71, 20),
3378
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(71, 26),
3381
Diagnostic(ErrorCode.ERR_EscapeCall, "F7(t, u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").
WithLocation
(77, 20),
3384
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(77, 23),
3387
Diagnostic(ErrorCode.ERR_EscapeCall, "F8(in t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").
WithLocation
(83, 20),
3390
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(83, 26),
3393
Diagnostic(ErrorCode.ERR_EscapeCall, "F8(t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").
WithLocation
(89, 20),
3396
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(89, 23)
3678
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").
WithLocation
(14, 65),
3681
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(14, 74),
3684
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(15, 65),
3687
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(15, 73),
3690
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(16, 65),
3693
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(16, 70),
3696
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").
WithLocation
(27, 70),
3699
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(27, 79),
3702
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(28, 70),
3705
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(28, 78),
3708
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(29, 70),
3711
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(29, 75),
3714
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F1(ref t)").WithArguments("S.F1<T>(ref T)", "t").
WithLocation
(32, 56),
3717
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(32, 65),
3720
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(in t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(33, 70),
3723
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(33, 78),
3726
Diagnostic(ErrorCode.ERR_EscapeCall, "s.F2(t)").WithArguments("S.F2<T>(in T)", "t").
WithLocation
(34, 70),
3729
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(34, 75)
3781
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(ref t)").WithArguments("C.F1<T>(ref T)", "t").
WithLocation
(12, 40),
3784
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(12, 47),
3787
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(in t)").WithArguments("C.F2<T>(in T)", "t").
WithLocation
(13, 40),
3790
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(13, 46),
3793
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(t)").WithArguments("C.F2<T>(in T)", "t").
WithLocation
(14, 40),
3796
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(14, 43),
3799
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(ref t)").WithArguments("C.F1<T>(ref T)", "t").
WithLocation
(25, 45),
3802
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(25, 52),
3805
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(in t)").WithArguments("C.F2<T>(in T)", "t").
WithLocation
(26, 45),
3808
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(26, 51),
3811
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(t)").WithArguments("C.F2<T>(in T)", "t").
WithLocation
(27, 45),
3814
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(27, 48)
3937
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(t, ref u)").WithArguments("Program.F1<T, U>(T, ref U)", "u").
WithLocation
(26, 16),
3940
Diagnostic(ErrorCode.ERR_RefReturnLocal, "u").WithArguments("u").
WithLocation
(26, 26),
3943
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(t, in u)").WithArguments("Program.F2<T, U>(T, in U)", "u").
WithLocation
(32, 16),
3946
Diagnostic(ErrorCode.ERR_RefReturnLocal, "u").WithArguments("u").
WithLocation
(32, 25),
3949
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(t, u)").WithArguments("Program.F2<T, U>(T, in U)", "u").
WithLocation
(38, 16),
3952
Diagnostic(ErrorCode.ERR_RefReturnLocal, "u").WithArguments("u").
WithLocation
(38, 22),
3955
Diagnostic(ErrorCode.ERR_EscapeCall, "F4(ref t, ref u)").WithArguments("Program.F4<T, U>(ref T, ref U)", "t").
WithLocation
(50, 16),
3958
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(50, 23),
3961
Diagnostic(ErrorCode.ERR_EscapeCall, "F5(ref t, in u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").
WithLocation
(56, 16),
3964
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(56, 23),
3967
Diagnostic(ErrorCode.ERR_EscapeCall, "F5(ref t, u)").WithArguments("Program.F5<T, U>(ref T, in U)", "t").
WithLocation
(62, 16),
3970
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(62, 23),
3973
Diagnostic(ErrorCode.ERR_EscapeCall, "F6(ref t, out u)").WithArguments("Program.F6<T, U>(ref T, out U)", "t").
WithLocation
(68, 16),
3976
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(68, 23),
3979
Diagnostic(ErrorCode.ERR_EscapeCall, "F7(in t, in u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").
WithLocation
(74, 16),
3982
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(74, 22),
3985
Diagnostic(ErrorCode.ERR_EscapeCall, "F7(t, u)").WithArguments("Program.F7<T, U>(in T, in U)", "t").
WithLocation
(80, 16),
3988
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(80, 19),
3991
Diagnostic(ErrorCode.ERR_EscapeCall, "F8(in t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").
WithLocation
(86, 16),
3994
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(86, 22),
3997
Diagnostic(ErrorCode.ERR_EscapeCall, "F8(t, out u)").WithArguments("Program.F8<T, U>(in T, out U)", "t").
WithLocation
(92, 16),
4000
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(92, 19)
4036
Diagnostic(ErrorCode.ERR_EscapeCall, "F0(ref x, ref y)").WithArguments("Program.F0<T>(ref R<T>, ref R<T>)", "y").
WithLocation
(9, 68),
4039
Diagnostic(ErrorCode.ERR_RefReturnLocal, "y").WithArguments("y").
WithLocation
(9, 82),
4042
Diagnostic(ErrorCode.ERR_EscapeCall, "F0(ref x, ref y)").WithArguments("Program.F0<T>(ref R<T>, ref R<T>)", "x").
WithLocation
(13, 75),
4045
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(13, 82),
4048
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(ref x, ref y)").WithArguments("Program.F2<T>(ref R<T>, scoped ref R<T>)", "x").
WithLocation
(14, 75),
4051
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(14, 82));
4080
Diagnostic(ErrorCode.ERR_EscapeCall, "F0(x, y)").WithArguments("Program.F0(R, R)", "y").
WithLocation
(11, 61),
4083
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(11, 67),
4086
Diagnostic(ErrorCode.ERR_EscapeCall, "F0(x, y)").WithArguments("Program.F0(R, R)", "x").
WithLocation
(15, 68),
4089
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("scoped R x").
WithLocation
(15, 71),
4092
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(x, y)").WithArguments("Program.F1(R, scoped R)", "x").
WithLocation
(16, 68),
4095
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("scoped R x").
WithLocation
(16, 71));
4129
Diagnostic(ErrorCode.ERR_EscapeCall, "M1(r)").WithArguments("Program.M1(R, params object[])", "input").
WithLocation
(15, 16),
4132
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(15, 19),
4135
Diagnostic(ErrorCode.ERR_EscapeCall, "M1(r, 0, 1, 2)").WithArguments("Program.M1(R, params object[])", "input").
WithLocation
(21, 16),
4138
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(21, 19));
4239
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref x, ref y)").WithArguments("Program.F0<T>(ref R<T>, ref R<T>)", "b").
WithLocation
(20, 9),
4242
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(20, 23),
4245
Diagnostic(ErrorCode.ERR_CallArgMixing, "F2(ref x, ref y)").WithArguments("Program.F2<T>(ref R<T>, scoped ref R<T>)", "b").
WithLocation
(21, 9),
4248
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(21, 23),
4251
Diagnostic(ErrorCode.ERR_CallArgMixing, "F5(ref x, ref y)").WithArguments("Program.F5<T>(scoped ref R<T>, scoped ref R<T>)", "b").
WithLocation
(22, 9),
4254
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(22, 23),
4257
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref y, ref x)").WithArguments("Program.F0<T>(ref R<T>, ref R<T>)", "a").
WithLocation
(24, 9),
4260
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(24, 16),
4263
Diagnostic(ErrorCode.ERR_CallArgMixing, "F2(ref y, ref x)").WithArguments("Program.F2<T>(ref R<T>, scoped ref R<T>)", "a").
WithLocation
(25, 9),
4266
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(25, 16),
4269
Diagnostic(ErrorCode.ERR_CallArgMixing, "F5(ref y, ref x)").WithArguments("Program.F5<T>(scoped ref R<T>, scoped ref R<T>)", "a").
WithLocation
(26, 9),
4272
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(26, 16));
4394
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r.RB = ref r.B").WithArguments("RB", "r.B").
WithLocation
(17, 9));
4424
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(10, 20));
4462
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(__arglist(ref x, ref y))").WithArguments("Program.F0(__arglist)", "__arglist").
WithLocation
(16, 9),
4465
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(16, 33),
4468
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(__arglist(ref y, ref x))").WithArguments("Program.F0(__arglist)", "__arglist").
WithLocation
(17, 9),
4471
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(17, 26));
4507
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref x, __arglist(ref y))").WithArguments("Program.F0(ref R<int>, __arglist)", "__arglist").
WithLocation
(14, 9),
4510
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(14, 33),
4513
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref y, __arglist(ref x))").WithArguments("Program.F0(ref R<int>, __arglist)", "a").
WithLocation
(15, 9),
4516
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(15, 16));
4599
Diagnostic(ErrorCode.ERR_CallArgMixing, "F2(ref x1, ref y1)").WithArguments("Program.F2(ref R, ref R)", "y2").
WithLocation
(12, 9),
4602
Diagnostic(ErrorCode.ERR_EscapeVariable, "y1").WithArguments("y1").
WithLocation
(12, 24),
4605
Diagnostic(ErrorCode.ERR_CallArgMixing, "F2(ref y1, ref x1)").WithArguments("Program.F2(ref R, ref R)", "x2").
WithLocation
(13, 9),
4608
Diagnostic(ErrorCode.ERR_EscapeVariable, "y1").WithArguments("y1").
WithLocation
(13, 16));
4645
Diagnostic(ErrorCode.ERR_CallArgMixing, "rwLocal.M1(local)").WithArguments("RWRS.M1(RS)", "rs").
WithLocation
(16, 9),
4648
Diagnostic(ErrorCode.ERR_EscapeVariable, "local").WithArguments("local").
WithLocation
(16, 20));
4696
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref x1, ref i1)").WithArguments("Program.F0(ref R, ref int)", "i0").
WithLocation
(14, 9),
4699
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i1").WithArguments("i1").
WithLocation
(14, 24),
4702
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref y1, ref i1)").WithArguments("Program.F0(ref R, ref int)", "i0").
WithLocation
(16, 9),
4705
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i1").WithArguments("i1").
WithLocation
(16, 24),
4708
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref x2, ref i2)").WithArguments("Program.F0(ref R, ref int)", "i0").
WithLocation
(22, 9),
4711
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "i2").WithArguments("i2").
WithLocation
(22, 24),
4714
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref y2, ref i2)").WithArguments("Program.F0(ref R, ref int)", "i0").
WithLocation
(24, 9),
4717
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "i2").WithArguments("i2").
WithLocation
(24, 24));
4766
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref x1, in i1)").WithArguments("Program.F0(ref R, in int)", "i0").
WithLocation
(14, 9),
4769
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i1").WithArguments("i1").
WithLocation
(14, 23),
4772
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref y1, in i1)").WithArguments("Program.F0(ref R, in int)", "i0").
WithLocation
(16, 9),
4775
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i1").WithArguments("i1").
WithLocation
(16, 23),
4778
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref x2, in i2)").WithArguments("Program.F0(ref R, in int)", "i0").
WithLocation
(22, 9),
4781
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "i2").WithArguments("i2").
WithLocation
(22, 23),
4784
Diagnostic(ErrorCode.ERR_CallArgMixing, "F0(ref y2, in i2)").WithArguments("Program.F0(ref R, in int)", "i0").
WithLocation
(24, 9),
4787
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "i2").WithArguments("i2").
WithLocation
(24, 23));
4818
Diagnostic(ErrorCode.ERR_CallArgMixing, "F2(ref x, ref y.FB())").WithArguments("Program.F2(ref R, ref int)", "i2").
WithLocation
(17, 9),
4821
Diagnostic(ErrorCode.ERR_RefReturnLocal, "y").WithArguments("y").
WithLocation
(17, 23));
4857
Diagnostic(ErrorCode.ERR_CallArgMixing, "F2(ref x, y.FB())").WithArguments("Program.F2(ref R, in int)", "i2").
WithLocation
(17, 9),
4860
Diagnostic(ErrorCode.ERR_RefReturnLocal, "y").WithArguments("y").
WithLocation
(17, 19),
4863
Diagnostic(ErrorCode.ERR_CallArgMixing, "F2(ref x, in y.FB())").WithArguments("Program.F2(ref R, in int)", "i2").
WithLocation
(21, 9),
4866
Diagnostic(ErrorCode.ERR_RefReturnLocal, "y").WithArguments("y").
WithLocation
(21, 22));
4902
Diagnostic(ErrorCode.ERR_CallArgMixing, "F2(ref x, y.FB())").WithArguments("Program.F2(ref R, in int)", "i2").
WithLocation
(17, 9),
4905
Diagnostic(ErrorCode.ERR_RefReturnLocal, "y").WithArguments("y").
WithLocation
(17, 19),
4908
Diagnostic(ErrorCode.ERR_CallArgMixing, "F2(ref x, in y.FB())").WithArguments("Program.F2(ref R, in int)", "i2").
WithLocation
(21, 9),
4911
Diagnostic(ErrorCode.ERR_RefReturnLocal, "y").WithArguments("y").
WithLocation
(21, 22));
4937
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(11, 20));
4964
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "__refvalue(args.GetNextArg(), int)").
WithLocation
(7, 20));
4998
Diagnostic(ErrorCode.ERR_EscapeCall, "new R<int>(ref i)").WithArguments("R<int>.R(ref int)", "t").
WithLocation
(12, 16),
5001
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "i").WithArguments("i").
WithLocation
(12, 31));
5075
Diagnostic(ErrorCode.ERR_EscapeCall, "F(in i1)").WithArguments("Program.F<int>(in int)", "t").
WithLocation
(10, 20),
5078
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i1").WithArguments("i1").
WithLocation
(10, 25),
5081
Diagnostic(ErrorCode.ERR_EscapeCall, "F(i2)").WithArguments("Program.F<int>(in int)", "t").
WithLocation
(15, 20),
5084
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i2").WithArguments("i2").
WithLocation
(15, 22),
5087
Diagnostic(ErrorCode.ERR_EscapeCall, "F(3)").WithArguments("Program.F<int>(in int)", "t").
WithLocation
(19, 20),
5090
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "3").
WithLocation
(19, 22));
5126
Diagnostic(ErrorCode.ERR_EscapeCall, "F(in x1, in y1)").WithArguments("Program.F<int>(in int, scoped in int)", "x").
WithLocation
(11, 20),
5129
Diagnostic(ErrorCode.ERR_RefReturnLocal, "x1").WithArguments("x1").
WithLocation
(11, 25),
5132
Diagnostic(ErrorCode.ERR_EscapeCall, "F(x2, in y2)").WithArguments("Program.F<int>(in int, scoped in int)", "x").
WithLocation
(17, 20),
5135
Diagnostic(ErrorCode.ERR_RefReturnLocal, "x2").WithArguments("x2").
WithLocation
(17, 22),
5138
Diagnostic(ErrorCode.ERR_EscapeCall, "F(3, in y3)").WithArguments("Program.F<int>(in int, scoped in int)", "x").
WithLocation
(22, 20),
5141
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "3").
WithLocation
(22, 22));
5268
Diagnostic(ErrorCode.ERR_EscapeCall, "new S<T>(ref t0)").WithArguments("S<T>.S(ref T)", "t").
WithLocation
(12, 16),
5271
Diagnostic(ErrorCode.ERR_RefReturnParameter, "t0").WithArguments("t0").
WithLocation
(12, 29),
5274
Diagnostic(ErrorCode.ERR_EscapeCall, "new S<T>(ref t1)").WithArguments("S<T>.S(ref T)", "t").
WithLocation
(19, 16),
5277
Diagnostic(ErrorCode.ERR_RefReturnParameter, "t1").WithArguments("t1").
WithLocation
(19, 29),
5280
Diagnostic(ErrorCode.ERR_EscapeCall, "new S<T>(ref t2)").WithArguments("S<T>.S(ref T)", "t").
WithLocation
(27, 14),
5283
Diagnostic(ErrorCode.ERR_RefReturnParameter, "t2").WithArguments("t2").
WithLocation
(27, 27),
5286
Diagnostic(ErrorCode.ERR_EscapeCall, "new S<T>(ref t4)").WithArguments("S<T>.S(ref T)", "t").
WithLocation
(40, 13),
5289
Diagnostic(ErrorCode.ERR_RefReturnParameter, "t4").WithArguments("t4").
WithLocation
(40, 26));
5343
Diagnostic(ErrorCode.WRN_RefReturnParameter, "t0").WithArguments("t0").
WithLocation
(13, 29),
5346
Diagnostic(ErrorCode.WRN_RefReturnParameter, "t1").WithArguments("t1").
WithLocation
(20, 29),
5349
Diagnostic(ErrorCode.WRN_RefReturnParameter, "t2").WithArguments("t2").
WithLocation
(28, 27),
5352
Diagnostic(ErrorCode.WRN_RefReturnParameter, "t4").WithArguments("t4").
WithLocation
(41, 26));
5381
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(13, 22),
5384
Diagnostic(ErrorCode.ERR_CallArgMixing, "y[x]").WithArguments("R.this[R]", "r").
WithLocation
(14, 9),
5387
Diagnostic(ErrorCode.ERR_EscapeVariable, "x").WithArguments("x").
WithLocation
(14, 11));
5434
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "new S1<T>().F").
WithLocation
(27, 9),
5437
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "new S2<T>().F").
WithLocation
(28, 9),
5440
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "new S3<T>().F").
WithLocation
(29, 9),
5443
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "new S4<T>().F").
WithLocation
(30, 9));
5503
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F1 = ref t").WithArguments("F1", "t").
WithLocation
(10, 9),
5506
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F2 = ref t").WithArguments("F2", "t").
WithLocation
(11, 9),
5509
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F3 = ref t").WithArguments("F3", "t").
WithLocation
(12, 9),
5512
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F4 = ref t").WithArguments("F4", "t").
WithLocation
(13, 9),
5515
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "x.F1 = ref t").WithArguments("F1", "t").
WithLocation
(21, 9),
5518
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "x.F2 = ref t").WithArguments("F2", "t").
WithLocation
(22, 9),
5521
Diagnostic(ErrorCode.ERR_AssgReadonly, "x.F3").
WithLocation
(23, 9),
5524
Diagnostic(ErrorCode.ERR_AssgReadonly, "x.F4").
WithLocation
(24, 9),
5527
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "y.F1 = ref t").WithArguments("F1", "t").
WithLocation
(26, 9),
5530
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "y.F2 = ref t").WithArguments("F2", "t").
WithLocation
(27, 9),
5533
Diagnostic(ErrorCode.ERR_AssgReadonly, "y.F3").
WithLocation
(28, 9),
5536
Diagnostic(ErrorCode.ERR_AssgReadonly, "y.F4").
WithLocation
(29, 9));
5603
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(7, 9),
5606
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(8, 9),
5609
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(9, 9),
5612
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(10, 9),
5615
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(16, 13),
5618
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(17, 13),
5621
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(18, 13));
5688
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(7, 9),
5691
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(8, 9),
5694
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(9, 9),
5697
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(10, 9),
5700
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(16, 13),
5703
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(17, 13),
5706
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(18, 13));
5740
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref tValue").WithArguments("F", "tValue").
WithLocation
(7, 9),
5743
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref tOut").WithArguments("F", "tOut").
WithLocation
(9, 9),
5746
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "tIn").WithArguments("variable", "tIn").
WithLocation
(10, 17),
5749
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref value").WithArguments("F", "value").
WithLocation
(16, 13),
5752
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "GetRefReadonly()").WithArguments("method", "GetRefReadonly").
WithLocation
(18, 21));
5786
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref tValue").WithArguments("F", "tValue").
WithLocation
(7, 9),
5789
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref tOut").WithArguments("F", "tOut").
WithLocation
(9, 9),
5792
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref value").WithArguments("F", "value").
WithLocation
(16, 13));
5826
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref tValue").WithArguments("F", "tValue").
WithLocation
(7, 9),
5829
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref tOut").WithArguments("F", "tOut").
WithLocation
(9, 9),
5832
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "tIn").WithArguments("variable", "tIn").
WithLocation
(10, 17),
5835
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref value").WithArguments("F", "value").
WithLocation
(16, 13),
5838
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "GetRefReadonly()").WithArguments("method", "GetRefReadonly").
WithLocation
(18, 21));
5872
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref tValue").WithArguments("F", "tValue").
WithLocation
(7, 9),
5875
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref tOut").WithArguments("F", "tOut").
WithLocation
(9, 9),
5878
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "F = ref value").WithArguments("F", "value").
WithLocation
(16, 13));
6238
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(9, 59),
6241
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(10, 59),
6244
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(11, 75),
6247
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(12, 59),
6250
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sRef.F").WithArguments("field", "F").
WithLocation
(14, 64),
6253
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sRef.F").WithArguments("field", "F").
WithLocation
(15, 64),
6256
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sRef.F").WithArguments("field", "F").
WithLocation
(16, 80),
6259
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sRef.F").WithArguments("field", "F").
WithLocation
(17, 64),
6262
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sOut.F").WithArguments("field", "F").
WithLocation
(19, 80),
6265
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sOut.F").WithArguments("field", "F").
WithLocation
(20, 80),
6268
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sOut.F").WithArguments("field", "F").
WithLocation
(21, 96),
6271
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sOut.F").WithArguments("field", "F").
WithLocation
(22, 80),
6274
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sIn.F").WithArguments("field", "F").
WithLocation
(24, 61),
6277
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sIn.F").WithArguments("field", "F").
WithLocation
(25, 61),
6280
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sIn.F").WithArguments("field", "F").
WithLocation
(26, 77),
6283
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sIn.F").WithArguments("field", "F").
WithLocation
(27, 61));
6643
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(9, 59),
6646
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(10, 59),
6649
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(11, 75),
6652
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(12, 59),
6655
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sRef.F").WithArguments("field", "F").
WithLocation
(14, 64),
6658
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sRef.F").WithArguments("field", "F").
WithLocation
(15, 64),
6661
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sRef.F").WithArguments("field", "F").
WithLocation
(16, 80),
6664
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sRef.F").WithArguments("field", "F").
WithLocation
(17, 64),
6667
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sOut.F").WithArguments("field", "F").
WithLocation
(19, 80),
6670
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sOut.F").WithArguments("field", "F").
WithLocation
(20, 80),
6673
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sOut.F").WithArguments("field", "F").
WithLocation
(21, 96),
6676
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sOut.F").WithArguments("field", "F").
WithLocation
(22, 80),
6679
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sIn.F").WithArguments("field", "F").
WithLocation
(24, 61),
6682
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sIn.F").WithArguments("field", "F").
WithLocation
(25, 61),
6685
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sIn.F").WithArguments("field", "F").
WithLocation
(26, 77),
6688
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "sIn.F").WithArguments("field", "F").
WithLocation
(27, 61));
6727
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s.F = ref tValue").WithArguments("F", "tValue").
WithLocation
(9, 59),
6730
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "s.F = ref tRef").WithArguments("F", "tRef").
WithLocation
(10, 59),
6733
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s.F = ref tOut").WithArguments("F", "tOut").
WithLocation
(11, 75),
6736
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "tIn").WithArguments("variable", "tIn").
WithLocation
(12, 69),
6739
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "sRef.F = ref tValue").WithArguments("F", "tValue").
WithLocation
(14, 64),
6742
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "sRef.F = ref tRef").WithArguments("F", "tRef").
WithLocation
(15, 64),
6745
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "sRef.F = ref tOut").WithArguments("F", "tOut").
WithLocation
(16, 80),
6748
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "tIn").WithArguments("variable", "tIn").
WithLocation
(17, 77),
6751
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "sOut.F = ref tValue").WithArguments("F", "tValue").
WithLocation
(19, 80),
6754
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "sOut.F = ref tOut").WithArguments("F", "tOut").
WithLocation
(21, 96),
6757
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "tIn").WithArguments("variable", "tIn").
WithLocation
(22, 93),
6760
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "sIn.F").WithArguments("variable", "sIn").
WithLocation
(24, 61),
6763
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "sIn.F").WithArguments("variable", "sIn").
WithLocation
(25, 61),
6766
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "sIn.F").WithArguments("variable", "sIn").
WithLocation
(26, 77),
6769
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "sIn.F").WithArguments("variable", "sIn").
WithLocation
(27, 61));
6850
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s.F = ref tValue").WithArguments("F", "tValue").
WithLocation
(9, 59),
6853
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "s.F = ref tRef").WithArguments("F", "tRef").
WithLocation
(10, 59),
6856
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s.F = ref tOut").WithArguments("F", "tOut").
WithLocation
(11, 75),
6859
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "s.F = ref tIn").WithArguments("F", "tIn").
WithLocation
(12, 59),
6862
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "sRef.F = ref tValue").WithArguments("F", "tValue").
WithLocation
(14, 64),
6865
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "sRef.F = ref tRef").WithArguments("F", "tRef").
WithLocation
(15, 64),
6868
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "sRef.F = ref tOut").WithArguments("F", "tOut").
WithLocation
(16, 80),
6871
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "sRef.F = ref tIn").WithArguments("F", "tIn").
WithLocation
(17, 64),
6874
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "sOut.F = ref tValue").WithArguments("F", "tValue").
WithLocation
(19, 80),
6877
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "sOut.F = ref tOut").WithArguments("F", "tOut").
WithLocation
(21, 96),
6880
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "sIn.F").WithArguments("variable", "sIn").
WithLocation
(24, 61),
6883
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "sIn.F").WithArguments("variable", "sIn").
WithLocation
(25, 61),
6886
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "sIn.F").WithArguments("variable", "sIn").
WithLocation
(26, 77),
6889
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "sIn.F").WithArguments("variable", "sIn").
WithLocation
(27, 61));
6986
Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").
WithLocation
(9, 59),
6989
Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").
WithLocation
(10, 59),
6992
Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").
WithLocation
(11, 75),
6995
Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").
WithLocation
(12, 59),
6998
Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").
WithLocation
(14, 64),
7001
Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").
WithLocation
(15, 64),
7004
Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").
WithLocation
(16, 80),
7007
Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").
WithLocation
(17, 64),
7010
Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").
WithLocation
(19, 80),
7013
Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").
WithLocation
(20, 80),
7016
Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").
WithLocation
(21, 96),
7019
Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").
WithLocation
(22, 80),
7022
Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").
WithLocation
(24, 61),
7025
Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").
WithLocation
(25, 61),
7028
Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").
WithLocation
(26, 77),
7031
Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").
WithLocation
(27, 61));
7070
Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").
WithLocation
(9, 59),
7073
Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").
WithLocation
(10, 59),
7076
Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").
WithLocation
(11, 75),
7079
Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").
WithLocation
(12, 59),
7082
Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").
WithLocation
(14, 64),
7085
Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").
WithLocation
(15, 64),
7088
Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").
WithLocation
(16, 80),
7091
Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").
WithLocation
(17, 64),
7094
Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").
WithLocation
(19, 80),
7097
Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").
WithLocation
(20, 80),
7100
Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").
WithLocation
(21, 96),
7103
Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").
WithLocation
(22, 80),
7106
Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").
WithLocation
(24, 61),
7109
Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").
WithLocation
(25, 61),
7112
Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").
WithLocation
(26, 77),
7115
Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").
WithLocation
(27, 61));
7195
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.RefReadonly").WithArguments("field", "RefReadonly").
WithLocation
(12, 73),
7198
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.ReadonlyRefReadonly").WithArguments("field", "ReadonlyRefReadonly").
WithLocation
(14, 73),
7201
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.RefReadonly").WithArguments("field", "RefReadonly").
WithLocation
(17, 75),
7204
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.ReadonlyRefReadonly").WithArguments("field", "ReadonlyRefReadonly").
WithLocation
(19, 75),
7207
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.RefReadonly").WithArguments("field", "RefReadonly").
WithLocation
(22, 88),
7210
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.ReadonlyRefReadonly").WithArguments("field", "ReadonlyRefReadonly").
WithLocation
(24, 88),
7213
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.RefReadonly").WithArguments("field", "RefReadonly").
WithLocation
(27, 73),
7216
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.ReadonlyRefReadonly").WithArguments("field", "ReadonlyRefReadonly").
WithLocation
(29, 73));
7276
Diagnostic(ErrorCode.ERR_RefReturnParameter, "t").WithArguments("t").
WithLocation
(3, 36),
7279
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(5, 59),
7282
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "t").WithArguments("variable", "t").
WithLocation
(6, 39),
7285
Diagnostic(ErrorCode.ERR_RefReturnParameter, "t").WithArguments("t").
WithLocation
(7, 45),
7288
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(9, 68));
7341
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(4, 30),
7344
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(9, 39),
7347
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(10, 43),
7350
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(11, 62),
7353
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(12, 42));
7406
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(4, 30),
7409
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(9, 39),
7412
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(10, 43),
7415
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(11, 62),
7418
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(12, 42));
7509
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(8, 16),
7512
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(9, 16),
7515
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(18, 20),
7518
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(19, 20),
7521
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(27, 16),
7524
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(28, 16));
7615
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(8, 16),
7618
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(9, 16),
7621
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(18, 20),
7624
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(19, 20),
7627
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(27, 16),
7630
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(28, 16));
7721
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(14, 49),
7724
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(15, 49),
7727
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(20, 51),
7730
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(21, 51),
7733
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(26, 64),
7736
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(27, 64),
7739
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(32, 49),
7742
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(33, 49));
7833
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(14, 49),
7836
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(15, 49),
7839
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(20, 51),
7842
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(21, 51),
7845
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(26, 64),
7848
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(27, 64),
7851
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(32, 49),
7854
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "s.F").WithArguments("field", "F").
WithLocation
(33, 49));
8044
Diagnostic(ErrorCode.ERR_RefFieldCannotReferToRefStruct, "ref R1<T>").
WithLocation
(10, 12));
8072
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "new S<T>().F").
WithLocation
(11, 16),
8075
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "new S<T>(1).F").
WithLocation
(15, 16));
8785
Diagnostic(ErrorCode.ERR_EscapeVariable, "(x1, y1) = s").WithArguments("(x1, y1) = s").
WithLocation
(9, 9),
8788
Diagnostic(ErrorCode.ERR_CallArgMixing, "s").WithArguments("Program.Deconstruct(System.Span<int>, out int, out System.Span<byte>)", "s").
WithLocation
(9, 20),
8791
Diagnostic(ErrorCode.ERR_EscapeVariable, "s").WithArguments("s").
WithLocation
(10, 9),
8794
Diagnostic(ErrorCode.ERR_CallArgMixing, "s.Deconstruct(out x1, out y1)").WithArguments("Program.Deconstruct(System.Span<int>, out int, out System.Span<byte>)", "s").
WithLocation
(10, 9));
8829
Diagnostic(ErrorCode.ERR_EscapeVariable, "(x1, y1) = s").WithArguments("(x1, y1) = s").
WithLocation
(9, 9),
8832
Diagnostic(ErrorCode.ERR_CallArgMixing, "s").WithArguments("Program.Deconstruct(System.ReadOnlySpan<int>, out int, out System.ReadOnlySpan<byte>)", "s").
WithLocation
(9, 20),
8835
Diagnostic(ErrorCode.ERR_EscapeVariable, "s").WithArguments("s").
WithLocation
(10, 9),
8838
Diagnostic(ErrorCode.ERR_CallArgMixing, "s.Deconstruct(out x1, out y1)").WithArguments("Program.Deconstruct(System.ReadOnlySpan<int>, out int, out System.ReadOnlySpan<byte>)", "s").
WithLocation
(10, 9));
8875
Diagnostic(ErrorCode.ERR_EscapeVariable, "(x, (y, z2)) = s").WithArguments("(x, (y, z2)) = s").
WithLocation
(20, 9),
8878
Diagnostic(ErrorCode.ERR_CallArgMixing, "s").WithArguments("R1.Deconstruct(out R2, out R2)", "this").
WithLocation
(20, 24),
8881
Diagnostic(ErrorCode.ERR_EscapeVariable, "(z2, (y, z1)) = s").WithArguments("(z2, (y, z1)) = s").
WithLocation
(21, 9),
8884
Diagnostic(ErrorCode.ERR_CallArgMixing, "s").WithArguments("Program.Deconstruct(System.Span<int>, out R2, out R1)", "s").
WithLocation
(21, 25));
8979
Diagnostic(ErrorCode.ERR_BadTypeArgument, "y").WithArguments("System.Span<int>").
WithLocation
(8, 19),
8982
Diagnostic(ErrorCode.ERR_BadTypeArgument, "x").WithArguments("System.Span<int>").
WithLocation
(8, 22));
9038
Diagnostic(ErrorCode.ERR_EscapeVariable, "y1").WithArguments("y1").
WithLocation
(16, 16),
9041
Diagnostic(ErrorCode.ERR_EscapeVariable, "y2").WithArguments("y2").
WithLocation
(23, 16));
9084
Diagnostic(ErrorCode.ERR_EscapeVariable, "y1").WithArguments("y1").
WithLocation
(8, 16),
9087
Diagnostic(ErrorCode.ERR_EscapeVariable, "y2").WithArguments("y2").
WithLocation
(14, 16));
9132
Diagnostic(ErrorCode.ERR_EscapeVariable, "y1").WithArguments("y1").
WithLocation
(21, 20));
9184
Diagnostic(ErrorCode.ERR_EscapeVariable, "(x1, y1) = span").WithArguments("(x1, y1) = span").
WithLocation
(11, 9),
9187
Diagnostic(ErrorCode.ERR_CallArgMixing, "span").WithArguments("Program.Deconstruct(System.Span<int>, out R, out R)", "s").
WithLocation
(11, 20),
9190
Diagnostic(ErrorCode.ERR_EscapeVariable, "y2").WithArguments("y2").
WithLocation
(18, 16),
9193
Diagnostic(ErrorCode.ERR_EscapeVariable, "y3").WithArguments("y3").
WithLocation
(24, 16),
9196
Diagnostic(ErrorCode.ERR_EscapeVariable, "y4").WithArguments("y4").
WithLocation
(30, 16));
9311
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(8, 28),
9314
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "y2").WithArguments("y2").
WithLocation
(15, 20));
9321
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "y2").WithArguments("y2").
WithLocation
(15, 20));
9374
Diagnostic(ErrorCode.ERR_RefFieldCannotReferToRefStruct, "ref R<T>").
WithLocation
(5, 12),
9377
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "Next").WithArguments("R<T>.Next", "R<T>").
WithLocation
(5, 21),
9380
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "r.Next = ref r").WithArguments("Next", "r").
WithLocation
(11, 9));
9421
Diagnostic(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, "P0").
WithLocation
(4, 18),
9424
Diagnostic(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, "P1").
WithLocation
(5, 18),
9427
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "set").
WithLocation
(5, 28),
9430
Diagnostic(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, "P2").
WithLocation
(6, 18),
9433
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "init").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(6, 28),
9436
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "init").
WithLocation
(6, 28),
9439
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "P0").
WithLocation
(9, 9),
9442
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "P1").
WithLocation
(10, 9),
9445
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "P2").
WithLocation
(11, 9),
9448
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "s.P0").
WithLocation
(23, 9),
9451
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "s.P1").
WithLocation
(24, 9),
9454
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "s.P2").
WithLocation
(25, 9));
9492
Diagnostic(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, "P0").
WithLocation
(4, 27),
9495
Diagnostic(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, "P1").
WithLocation
(5, 27),
9498
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "set").
WithLocation
(5, 37),
9501
Diagnostic(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, "P2").
WithLocation
(6, 27),
9504
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "init").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(6, 37),
9507
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "init").
WithLocation
(6, 37),
9510
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "P0").
WithLocation
(9, 9),
9513
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "P1").
WithLocation
(10, 9),
9516
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "P2").
WithLocation
(11, 9),
9519
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "s.P0").
WithLocation
(20, 9),
9522
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "s.P1").
WithLocation
(21, 9),
9525
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "s.P2").
WithLocation
(22, 9));
9571
Diagnostic(ErrorCode.ERR_RefProperty, "c.N").
WithLocation
(5, 17),
9574
Diagnostic(ErrorCode.ERR_RefProperty, "c[0]").
WithLocation
(6, 17),
9577
Diagnostic(ErrorCode.ERR_RefProperty, "c.N").
WithLocation
(8, 11),
9580
Diagnostic(ErrorCode.ERR_RefProperty, "c[0]").
WithLocation
(10, 11),
9583
Diagnostic(ErrorCode.ERR_RefProperty, "c.N").
WithLocation
(12, 12),
9586
Diagnostic(ErrorCode.ERR_RefProperty, "c[0]").
WithLocation
(14, 12)
9618
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "t").
WithLocation
(5, 31));
9688
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(7, 20));
9729
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(7, 20));
9755
Diagnostic(ErrorCode.WRN_ManagedAddr, "StructWithRefField*").WithArguments("StructWithRefField").
WithLocation
(4, 5),
9758
Diagnostic(ErrorCode.ERR_ManagedAddr, "StructWithRefField").WithArguments("StructWithRefField").
WithLocation
(4, 40),
9761
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M<StructWithRefField>").WithArguments("StructWithRefField").
WithLocation
(5, 7)
9794
Diagnostic(ErrorCode.WRN_ManagedAddr, "StructWithIndirectRefField*").WithArguments("StructWithIndirectRefField").
WithLocation
(4, 5),
9797
Diagnostic(ErrorCode.ERR_ManagedAddr, "StructWithIndirectRefField").WithArguments("StructWithIndirectRefField").
WithLocation
(4, 48),
9800
Diagnostic(ErrorCode.ERR_BadTypeArgument, "M<StructWithIndirectRefField>").WithArguments("StructWithIndirectRefField").
WithLocation
(5, 7),
9803
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field").WithArguments("StructWithIndirectRefField.Field", "").
WithLocation
(10, 36),
9806
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "RefField").WithArguments("StructWithRefField<T>.RefField", "").
WithLocation
(14, 18)
9834
Diagnostic(ErrorCode.WRN_ManagedAddr, "StructWithIndirectRefField*").WithArguments("StructWithIndirectRefField").
WithLocation
(4, 5),
9837
Diagnostic(ErrorCode.ERR_ManagedAddr, "StructWithIndirectRefField").WithArguments("StructWithIndirectRefField").
WithLocation
(4, 48)
9876
Diagnostic(ErrorCode.WRN_RefAssignValEscapeWider, "rL = ref s").WithArguments("rL", "s").
WithLocation
(13, 9));
9883
Diagnostic(ErrorCode.ERR_RefAssignValEscapeWider, "rL = ref s").WithArguments("rL", "s").
WithLocation
(13, 9));
9920
Diagnostic(ErrorCode.WRN_RefAssignValEscapeWider, "rL = ref s").WithArguments("rL", "s").
WithLocation
(13, 9),
9923
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "rL").
WithLocation
(14, 9));
9930
Diagnostic(ErrorCode.ERR_RefAssignValEscapeWider, "rL = ref s").WithArguments("rL", "s").
WithLocation
(13, 9),
9933
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "rL").
WithLocation
(14, 9));
9978
Diagnostic(ErrorCode.WRN_RefAssignValEscapeWider, "r2 = ref r1").WithArguments("r2", "r1").
WithLocation
(17, 9));
9985
Diagnostic(ErrorCode.ERR_RefAssignValEscapeWider, "r2 = ref r1").WithArguments("r2", "r1").
WithLocation
(17, 9));
10030
Diagnostic(ErrorCode.ERR_RefAssignValEscapeWider, "r2 = ref r1.F").WithArguments("r2", "r1.F").
WithLocation
(21, 9));
10059
Diagnostic(ErrorCode.ERR_RefAssignValEscapeWider, "r2 = ref r1").WithArguments("r2", "r1").
WithLocation
(11, 13));
10089
Diagnostic(ErrorCode.ERR_RefAssignValEscapeWider, "r2 = ref r1").WithArguments("r2", "r1").
WithLocation
(14, 9));
10122
Diagnostic(ErrorCode.WRN_EscapeVariable, "r2").WithArguments("r2").
WithLocation
(13, 18));
10129
Diagnostic(ErrorCode.ERR_EscapeVariable, "r2").WithArguments("r2").
WithLocation
(13, 18));
10154
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(6, 20));
10261
Diagnostic(ErrorCode.ERR_EscapeCall, "MayCaptureArg(ref i)").WithArguments("A.MayCaptureArg(ref int)", "i").
WithLocation
(6, 16),
10264
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(6, 34),
10267
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "MayCaptureDefaultArg()").
WithLocation
(10, 16),
10270
Diagnostic(ErrorCode.ERR_EscapeCall, "MayCaptureDefaultArg()").WithArguments("A.MayCaptureDefaultArg(in int)", "i").
WithLocation
(10, 16));
10320
Diagnostic(ErrorCode.ERR_EscapeCall, "new R1(ref o)").WithArguments("R1.R1(ref object)", "o").
WithLocation
(6, 16),
10323
Diagnostic(ErrorCode.ERR_RefReturnLocal, "o").WithArguments("o").
WithLocation
(6, 27),
10326
Diagnostic(ErrorCode.ERR_EscapeCall, "new R2(new object())").WithArguments("R2.R2(in object)", "o").
WithLocation
(10, 16),
10329
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "new object()").
WithLocation
(10, 23));
10372
Diagnostic(ErrorCode.WRN_RefReturnLocal, "i").WithArguments("i").
WithLocation
(6, 34));
10428
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 33),
10431
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(8, 37),
10434
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(9, 36),
10437
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(10, 37));
10459
Diagnostic(ErrorCode.ERR_CallArgMixing, "A.F2(ref x, ref y)").WithArguments("A.F2(ref R, scoped ref R)", "y2").
WithLocation
(7, 9),
10462
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("y").
WithLocation
(7, 25));
10503
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(3, 7),
10506
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(4, 12),
10509
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(5, 42));
10546
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 30),
10549
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(8, 36),
10552
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(9, 35),
10555
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(10, 36),
10558
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(11, 34),
10561
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(12, 33),
10564
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(13, 34));
10617
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(6, 25),
10620
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 31),
10623
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(8, 30),
10626
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(9, 31),
10629
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "System.Diagnostics.CodeAnalysis.UnscopedRefAttribute").
WithLocation
(9, 51),
10632
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(10, 29),
10635
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(11, 28),
10638
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(12, 29));
10696
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(2, 18),
10699
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(3, 18));
10734
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(4, 20),
10737
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(5, 20),
10740
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(5, 36),
10743
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(9, 19),
10746
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(10, 19),
10749
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(10, 33)
10757
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(9, 19),
10760
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(10, 19),
10763
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(10, 33)
10820
Diagnostic(ErrorCode.ERR_NameNotInContext, "scoped").WithArguments("scoped").
WithLocation
(6, 19),
10823
Diagnostic(ErrorCode.ERR_CloseParenExpected, "scoped").
WithLocation
(6, 26),
10826
Diagnostic(ErrorCode.ERR_SemicolonExpected, "scoped").
WithLocation
(6, 26),
10829
Diagnostic(ErrorCode.WRN_UnreferencedVar, "r").WithArguments("r").
WithLocation
(6, 35),
10832
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(6, 36),
10835
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(6, 36),
10838
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(7, 19),
10841
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(7, 19),
10844
Diagnostic(ErrorCode.ERR_CloseParenExpected, "scoped").
WithLocation
(7, 30),
10847
Diagnostic(ErrorCode.ERR_SemicolonExpected, "scoped").
WithLocation
(7, 30),
10850
Diagnostic(ErrorCode.ERR_LocalDuplicate, "r").WithArguments("r").
WithLocation
(7, 39),
10853
Diagnostic(ErrorCode.WRN_UnreferencedVar, "r").WithArguments("r").
WithLocation
(7, 39),
10856
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(7, 40),
10859
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(7, 40),
10862
Diagnostic(ErrorCode.ERR_NameNotInContext, "scoped").WithArguments("scoped").
WithLocation
(8, 19),
10865
Diagnostic(ErrorCode.ERR_CloseParenExpected, "scoped").
WithLocation
(8, 26),
10868
Diagnostic(ErrorCode.ERR_SemicolonExpected, "scoped").
WithLocation
(8, 26),
10871
Diagnostic(ErrorCode.ERR_LocalDuplicate, "r").WithArguments("r").
WithLocation
(8, 39),
10874
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "r").
WithLocation
(8, 39),
10877
Diagnostic(ErrorCode.WRN_UnreferencedVar, "r").WithArguments("r").
WithLocation
(8, 39),
10880
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(8, 40),
10883
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(8, 40)
10936
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "r2 => r2").WithArguments("r2", "D2").
WithLocation
(9, 17));
11141
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(6, 23),
11144
Diagnostic(ErrorCode.ERR_IdentifierExpected, "this").
WithLocation
(6, 30),
11147
Diagnostic(ErrorCode.ERR_SyntaxError, "this").WithArguments(",").
WithLocation
(6, 30),
11150
Diagnostic(ErrorCode.ERR_BadThisParam, "this").WithArguments("F2").
WithLocation
(6, 30)
11172
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "params scoped object[] args").
WithLocation
(4, 20));
11199
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F1").WithArguments("scoped").
WithLocation
(4, 21),
11202
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F2").WithArguments("scoped").
WithLocation
(5, 25),
11205
Diagnostic(ErrorCode.ERR_BadMemberFlag, "scoped").WithArguments("scoped").
WithLocation
(9, 16),
11208
Diagnostic(ErrorCode.ERR_BadMemberFlag, "scoped").WithArguments("scoped").
WithLocation
(10, 16));
11224
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(2, 14),
11227
Diagnostic(ErrorCode.ERR_DuplicateNameInNS, "R").WithArguments("R", "<global namespace>").
WithLocation
(2, 21),
11230
Diagnostic(ErrorCode.ERR_SyntaxError, "D").WithArguments("(").
WithLocation
(2, 23),
11233
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "D").WithArguments("D").
WithLocation
(2, 23),
11236
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(2, 24),
11239
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(",").
WithLocation
(2, 24),
11242
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(2, 25),
11245
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(2, 26),
11248
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(2, 26)
11266
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(1, 1),
11269
Diagnostic(ErrorCode.ERR_IdentifierExpected, "struct").
WithLocation
(1, 8),
11272
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 8),
11275
Diagnostic(ErrorCode.ERR_TypeExpected, "struct").
WithLocation
(2, 12),
11278
Diagnostic(ErrorCode.ERR_BadModifierLocation, "readonly").WithArguments("readonly").
WithLocation
(3, 8)
11296
Diagnostic(ErrorCode.ERR_BadSKknown, "record").WithArguments("record", "variable", "type").
WithLocation
(1, 8),
11299
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "A").
WithLocation
(1, 15),
11302
Diagnostic(ErrorCode.ERR_BadMemberFlag, "A").WithArguments("scoped").
WithLocation
(1, 15),
11305
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "A").WithArguments("<invalid-global-code>.A").
WithLocation
(1, 15),
11308
Diagnostic(ErrorCode.ERR_BadModifierLocation, "readonly").WithArguments("readonly").
WithLocation
(2, 8),
11311
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "readonly scoped record ").
WithLocation
(3, 1),
11314
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(3, 1),
11317
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(3, 10),
11320
Diagnostic(ErrorCode.WRN_UnreferencedVar, "record").WithArguments("record").
WithLocation
(3, 17),
11323
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(3, 24),
11326
Diagnostic(ErrorCode.ERR_FeatureInPreview, "()").WithArguments("primary constructors").
WithLocation
(3, 32)
11346
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F1").WithArguments("scoped").
WithLocation
(5, 15),
11349
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref int").WithArguments("ref fields", "11.0").
WithLocation
(6, 12),
11352
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F3").WithArguments("scoped").
WithLocation
(6, 20));
11358
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F1").WithArguments("scoped").
WithLocation
(5, 15),
11361
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F3").WithArguments("scoped").
WithLocation
(6, 20));
11380
Diagnostic(ErrorCode.ERR_BadModifierLocation, "private").WithArguments("private").
WithLocation
(5, 12),
11383
Diagnostic(ErrorCode.ERR_BadModifierLocation, "private").WithArguments("private").
WithLocation
(6, 12),
11386
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref int").WithArguments("ref fields", "11.0").
WithLocation
(6, 20));
11392
Diagnostic(ErrorCode.ERR_BadModifierLocation, "private").WithArguments("private").
WithLocation
(5, 12),
11395
Diagnostic(ErrorCode.ERR_BadModifierLocation, "private").WithArguments("private").
WithLocation
(6, 12));
11416
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("scoped").
WithLocation
(4, 15),
11419
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P2").WithArguments("scoped").
WithLocation
(5, 15),
11422
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P3").WithArguments("scoped").
WithLocation
(6, 15),
11425
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P5").WithArguments("scoped").
WithLocation
(7, 20));
11541
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 9),
11544
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(8, 9),
11547
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(9, 9),
11550
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(10, 9),
11553
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(11, 9),
11556
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(12, 9)
11620
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped R").WithArguments("R").
WithLocation
(2, 1),
11623
Diagnostic(ErrorCode.ERR_BadMemberFlag, "r1").WithArguments("scoped").
WithLocation
(2, 10),
11626
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped var").WithArguments("R").
WithLocation
(3, 1),
11629
Diagnostic(ErrorCode.ERR_BadMemberFlag, "r11").WithArguments("scoped").
WithLocation
(3, 12)
11688
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 14),
11691
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(8, 14),
11694
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(9, 14));
11773
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 10),
11776
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(8, 10),
11779
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(8, 17),
11782
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(9, 10),
11785
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(9, 17),
11788
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(10, 10),
11791
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(11, 10),
11794
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(12, 10),
11797
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(12, 17),
11800
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(13, 10),
11803
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(13, 17),
11806
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(14, 10),
11809
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(14, 17),
11812
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(15, 10),
11815
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(15, 17),
11818
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(16, 10),
11821
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(17, 10),
11824
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(17, 17),
11827
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(18, 10),
11830
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(18, 17)
11839
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(8, 17),
11842
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(9, 17),
11845
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(10, 10),
11848
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(11, 10),
11851
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(12, 10),
11854
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(12, 17),
11857
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(13, 10),
11860
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(13, 17),
11863
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(14, 10),
11866
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(14, 17),
11869
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(15, 10),
11872
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(15, 17),
11875
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(17, 17),
11878
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(18, 17)
11990
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped R").WithArguments("R").
WithLocation
(3, 2),
11993
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(3, 2),
11996
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped ref R").WithArguments("R").
WithLocation
(4, 2),
11999
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(4, 2),
12002
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(4, 9),
12005
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped ref readonly R").WithArguments("R").
WithLocation
(5, 2),
12008
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(5, 2),
12011
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(5, 9),
12014
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(6, 2),
12017
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(7, 2),
12020
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(8, 2),
12023
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(8, 9),
12026
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(9, 2),
12029
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(9, 9),
12032
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(10, 2),
12035
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(10, 9),
12038
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(11, 2),
12041
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(11, 9),
12044
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped var").WithArguments("R").
WithLocation
(12, 2),
12047
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(12, 2),
12050
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped ref var").WithArguments("R").
WithLocation
(13, 2),
12053
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(13, 2),
12056
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(13, 9),
12059
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped ref readonly var").WithArguments("R").
WithLocation
(14, 2),
12062
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(14, 2),
12065
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(14, 9)
12169
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 16),
12172
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(8, 16),
12175
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref R").
WithLocation
(8, 23),
12178
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(9, 16),
12181
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly R").
WithLocation
(9, 23),
12184
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(10, 16),
12187
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(11, 16),
12190
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(12, 16),
12193
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref R").
WithLocation
(12, 23),
12196
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(13, 16),
12199
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref var").
WithLocation
(13, 23),
12202
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(14, 16),
12205
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly R").
WithLocation
(14, 23),
12208
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(15, 16),
12211
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly var").
WithLocation
(15, 23),
12214
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(16, 16),
12217
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(17, 16),
12220
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref var").
WithLocation
(17, 23),
12223
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(18, 16),
12226
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly var").
WithLocation
(18, 23),
12229
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(20, 16),
12232
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(21, 16),
12235
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(21, 23)
12244
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref R").
WithLocation
(8, 23),
12247
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly R").
WithLocation
(9, 23),
12250
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(10, 16),
12253
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(11, 16),
12256
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(12, 16),
12259
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref R").
WithLocation
(12, 23),
12262
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(13, 16),
12265
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref var").
WithLocation
(13, 23),
12268
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(14, 16),
12271
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly R").
WithLocation
(14, 23),
12274
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(15, 16),
12277
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly var").
WithLocation
(15, 23),
12280
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref var").
WithLocation
(17, 23),
12283
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly var").
WithLocation
(18, 23),
12286
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(20, 16),
12289
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(21, 16),
12292
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(21, 23)
12400
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped R").WithArguments("R").
WithLocation
(3, 8),
12403
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(3, 8),
12406
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped ref R").WithArguments("R").
WithLocation
(4, 8),
12409
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(4, 8),
12412
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(4, 15),
12415
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped ref readonly R").WithArguments("R").
WithLocation
(5, 8),
12418
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(5, 8),
12421
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(5, 15),
12424
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(6, 8),
12427
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(7, 8),
12430
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(8, 8),
12433
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref R").
WithLocation
(8, 15),
12436
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(9, 8),
12439
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref var").
WithLocation
(9, 15),
12442
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(10, 8),
12445
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly R").
WithLocation
(10, 15),
12448
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(11, 8),
12451
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly var").
WithLocation
(11, 15),
12454
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped var").WithArguments("R").
WithLocation
(12, 8),
12457
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(12, 8),
12460
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped ref var").WithArguments("R").
WithLocation
(13, 8),
12463
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(13, 8),
12466
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(13, 15),
12469
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "scoped ref readonly var").WithArguments("R").
WithLocation
(14, 8),
12472
Diagnostic(ErrorCode.ERR_UnexpectedToken, "scoped").WithArguments("scoped").
WithLocation
(14, 8),
12475
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(14, 15)
12561
Diagnostic(ErrorCode.ERR_BadSKknown, "scoped").WithArguments("scoped", "variable", "type").
WithLocation
(6, 16),
12564
Diagnostic(ErrorCode.WRN_UnreferencedVar, "R").WithArguments("R").
WithLocation
(6, 23),
12567
Diagnostic(ErrorCode.ERR_SemicolonExpected, "x").
WithLocation
(6, 25),
12570
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(6, 25),
12573
Diagnostic(ErrorCode.ERR_BadSKknown, "scoped").WithArguments("scoped", "variable", "type").
WithLocation
(7, 9),
12576
Diagnostic(ErrorCode.WRN_UnreferencedVar, "scoped").WithArguments("scoped").
WithLocation
(7, 16),
12579
Diagnostic(ErrorCode.ERR_SemicolonExpected, "ref").
WithLocation
(7, 23),
12582
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(7, 37)
12599
Diagnostic(ErrorCode.ERR_BadSKknown, "scoped").WithArguments("scoped", "variable", "type").
WithLocation
(1, 8),
12602
Diagnostic(ErrorCode.WRN_UnreferencedVar, "R").WithArguments("R").
WithLocation
(1, 15),
12605
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(1, 17),
12608
Diagnostic(ErrorCode.ERR_BadSKknown, "scoped").WithArguments("scoped", "variable", "type").
WithLocation
(2, 1),
12611
Diagnostic(ErrorCode.WRN_UnreferencedVar, "scoped").WithArguments("scoped").
WithLocation
(2, 8),
12614
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(2, 15));
12633
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(4, 1),
12636
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s4").WithArguments("s4").
WithLocation
(4, 15),
12639
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(5, 1),
12642
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(6, 1)
12650
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s4").WithArguments("s4").
WithLocation
(4, 15)
12688
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(4, 10),
12691
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s4").WithArguments("s4").
WithLocation
(4, 24),
12694
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(5, 10),
12697
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(6, 10)
12705
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s4").WithArguments("s4").
WithLocation
(4, 24)
12750
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(5, 2),
12753
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(6, 2),
12756
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(9, 2)
12764
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(9, 2)
12800
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(4, 7),
12803
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(5, 7)
12840
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "scoped").WithArguments("scoped").
WithLocation
(1, 6));
12864
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "scoped").WithArguments("scoped").
WithLocation
(1, 11)
12934
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "r1").WithArguments("r1").
WithLocation
(6, 20)
12998
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "r1").WithArguments("r1").
WithLocation
(6, 25)
13074
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(7, 17)
13145
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref var").
WithLocation
(7, 23)
13210
Diagnostic(ErrorCode.ERR_NameNotInContext, "scoped").WithArguments("scoped").
WithLocation
(7, 9),
13213
Diagnostic(ErrorCode.ERR_SemicolonExpected, "extern").
WithLocation
(7, 16),
13216
Diagnostic(ErrorCode.ERR_BadMemberFlag, "extern").WithArguments("extern").
WithLocation
(7, 16)
13249
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[M(out var b)]").
WithLocation
(6, 23),
13252
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "a").
WithLocation
(6, 38),
13255
Diagnostic(ErrorCode.WRN_UnreferencedVar, "a").WithArguments("a").
WithLocation
(6, 38),
13258
Diagnostic(ErrorCode.ERR_UseDefViolation, "b").WithArguments("b").
WithLocation
(7, 9)
13283
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[M(out var b)]").
WithLocation
(6, 28),
13286
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "a").
WithLocation
(6, 43),
13289
Diagnostic(ErrorCode.WRN_UnreferencedVar, "a").WithArguments("a").
WithLocation
(6, 43),
13292
Diagnostic(ErrorCode.ERR_UseDefViolation, "b").WithArguments("b").
WithLocation
(7, 13)
13471
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r0 = ref r1").WithArguments("r0", "r1").
WithLocation
(9, 13),
13474
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r0 = ref r2").WithArguments("r0", "r2").
WithLocation
(13, 13));
13511
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r0 = ref r1").WithArguments("r0", "r1").
WithLocation
(8, 13),
13514
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r0 = ref r2").WithArguments("r0", "r2").
WithLocation
(12, 13));
13550
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r0 = ref r1").WithArguments("r0", "r1").
WithLocation
(9, 13),
13553
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r0 = ref r2").WithArguments("r0", "r2").
WithLocation
(12, 13)
13591
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(10, 18),
13594
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(14, 18));
13633
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(10, 22),
13636
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(15, 18)
13674
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(10, 18),
13677
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(13, 18)
13735
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(10, 18),
13738
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(14, 18),
13741
Diagnostic(ErrorCode.ERR_EscapeVariable, "(s11, d) = new S(ref i1)").WithArguments("(s11, d) = new S(ref i1)").
WithLocation
(24, 13),
13744
Diagnostic(ErrorCode.ERR_CallArgMixing, "new S(ref i1)").WithArguments("S.Deconstruct(out S, out int)", "this").
WithLocation
(24, 24),
13747
Diagnostic(ErrorCode.ERR_EscapeVariable, "s21").WithArguments("s21").
WithLocation
(31, 18),
13750
Diagnostic(ErrorCode.ERR_EscapeVariable, "(s31, f) = s0").WithArguments("(s31, f) = s0").
WithLocation
(36, 13),
13753
Diagnostic(ErrorCode.ERR_CallArgMixing, "s0").WithArguments("S.Deconstruct(out S, out int)", "this").
WithLocation
(36, 24)
13813
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(10, 18),
13816
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(14, 18),
13819
Diagnostic(ErrorCode.ERR_EscapeVariable, "s21").WithArguments("s21").
WithLocation
(23, 18),
13822
Diagnostic(ErrorCode.ERR_EscapeVariable, "s4").WithArguments("s4").
WithLocation
(29, 18),
13825
Diagnostic(ErrorCode.ERR_EscapeVariable, "s5").WithArguments("s5").
WithLocation
(34, 18),
13828
Diagnostic(ErrorCode.ERR_EscapeVariable, "s7").WithArguments("s7").
WithLocation
(39, 18)
13849
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 9)
13891
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 14)
13936
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "var").
WithLocation
(7, 21),
13939
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(10, 21),
13942
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(10, 21)
13966
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "var").
WithLocation
(7, 17),
13969
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(9, 17)
13995
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "var").
WithLocation
(7, 22),
13998
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(9, 22)
14086
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 18),
14089
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(8, 18),
14092
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(9, 18)
14238
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 19),
14241
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(7, 32),
14244
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(8, 19),
14247
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(8, 26),
14250
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(8, 36),
14253
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(8, 43),
14256
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(9, 19),
14259
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(9, 26),
14262
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(9, 45),
14265
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(9, 52),
14268
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(11, 19),
14271
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(11, 35),
14274
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(12, 19),
14277
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(12, 26),
14280
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(12, 39),
14283
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(12, 46),
14286
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(13, 19),
14289
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(13, 26),
14292
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(13, 48),
14295
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(13, 55)
14303
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(7, 32),
14306
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(8, 26),
14309
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(8, 36),
14312
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(8, 43),
14315
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(9, 26),
14318
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(9, 45),
14321
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(9, 52),
14324
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(11, 35),
14327
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(12, 26),
14330
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(12, 39),
14333
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(12, 46),
14336
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(13, 26),
14339
Diagnostic(ErrorCode.ERR_ScopedDiscard, "scoped").
WithLocation
(13, 48),
14342
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(13, 55)
14476
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(10, 19),
14479
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(10, 29),
14482
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(11, 19),
14485
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(11, 38),
14488
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(14, 19),
14491
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(14, 32),
14494
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(15, 19),
14497
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(15, 41));
14540
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(4, 14),
14543
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(5, 14),
14546
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(6, 14)
14698
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "foreach iteration variable").
WithLocation
(2, 33)
14848
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r0 = ref r1").WithArguments("r0", "r1").
WithLocation
(8, 13),
14851
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r0 = ref r2").WithArguments("r0", "r2").
WithLocation
(12, 13),
14854
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r0 = ref r5").WithArguments("r0", "r5").
WithLocation
(24, 13),
14857
Diagnostic(ErrorCode.ERR_EscapeVariable, "r6").WithArguments("r6").
WithLocation
(28, 22));
14907
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "r0").WithArguments("r0", "foreach iteration variable").
WithLocation
(9, 13),
14910
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "r0").WithArguments("r0", "foreach iteration variable").
WithLocation
(12, 13),
14913
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "r0").WithArguments("r0", "foreach iteration variable").
WithLocation
(15, 13),
14916
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "r0").WithArguments("r0", "foreach iteration variable").
WithLocation
(18, 13)
14970
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(15, 18)
15022
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "s0").WithArguments("s0", "foreach iteration variable").
WithLocation
(10, 13),
15025
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "s0").WithArguments("s0", "foreach iteration variable").
WithLocation
(13, 13),
15028
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "s0").WithArguments("s0", "foreach iteration variable").
WithLocation
(16, 13)
15071
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(10, 22)
15126
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(10, 22));
15172
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "var").
WithLocation
(7, 25),
15175
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(9, 25)
15212
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "var").
WithLocation
(6, 26),
15215
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(6, 41)
15290
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("scoped R r").
WithLocation
(4, 39),
15293
Diagnostic(ErrorCode.ERR_EscapeVariable, "(R)r").WithArguments("scoped R r").
WithLocation
(7, 39));
15333
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(R x, R y) => x").WithArguments("y", "D2").
WithLocation
(11, 17),
15336
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(ref R x, ref R y) => ref x").WithArguments("y", "D5").
WithLocation
(13, 17),
15339
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(D2)((R x, R y) => x)").WithArguments("y", "D2").
WithLocation
(18, 18),
15342
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(D5)((ref R x, ref R y) => ref x)").WithArguments("y", "D5").
WithLocation
(20, 18),
15345
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(R x, R y) => x").WithArguments("y", "D2").
WithLocation
(25, 25),
15348
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(ref R x, ref R y) => ref x").WithArguments("y", "D5").
WithLocation
(27, 25));
15392
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "M1").WithArguments("y", "D2").
WithLocation
(15, 17),
15395
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "M3").WithArguments("y", "D5").
WithLocation
(17, 17),
15398
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(D2)M1").WithArguments("y", "D2").
WithLocation
(22, 18),
15401
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(D5)M3").WithArguments("y", "D5").
WithLocation
(24, 18),
15404
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "M1").WithArguments("y", "D2").
WithLocation
(29, 25),
15407
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "M3").WithArguments("y", "D5").
WithLocation
(31, 25));
15440
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(ref int x, ref int y) => ref x").WithArguments("x", "D2").
WithLocation
(10, 24),
15443
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(ref int x, ref int y) => ref x").WithArguments("x", "D2").
WithLocation
(15, 30),
15446
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(ref int x, ref int y) => ref x").WithArguments("x", "D2").
WithLocation
(20, 32));
15481
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "M1").WithArguments("x", "D2").
WithLocation
(12, 24),
15484
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "(D1R)M2").WithArguments("M2", "D1R").
WithLocation
(16, 18),
15487
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "(D2R)M1").WithArguments("M1", "D2R").
WithLocation
(17, 18),
15490
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new D1R(M2)").WithArguments("M2", "D1R").
WithLocation
(21, 18),
15493
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new D2R(M1)").WithArguments("M1", "D2R").
WithLocation
(22, 18));
15533
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "delegate(R x, R y) { return x; }").WithArguments("y", "D2").
WithLocation
(11, 17),
15536
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "delegate(ref R x, ref R y) { return ref x; }").WithArguments("y", "D5").
WithLocation
(13, 17),
15539
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(D2)(delegate(R x, R y) { return x; })").WithArguments("y", "D2").
WithLocation
(18, 18),
15542
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(D5)(delegate(ref R x, ref R y) { return ref x; })").WithArguments("y", "D5").
WithLocation
(20, 18),
15545
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "delegate(R x, R y) { return x; }").WithArguments("y", "D2").
WithLocation
(25, 25),
15548
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "delegate(ref R x, ref R y) { return ref x; }").WithArguments("y", "D5").
WithLocation
(27, 25));
15582
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "x").WithArguments("R").
WithLocation
(11, 32),
15585
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "y").WithArguments("R").
WithLocation
(11, 44),
15588
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "x").WithArguments("R").
WithLocation
(11, 50),
15591
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(R x, R y) => x").WithArguments("y", "System.Linq.Expressions.Expression<D2>").
WithLocation
(12, 29),
15594
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "x").WithArguments("R").
WithLocation
(12, 32),
15597
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "y").WithArguments("R").
WithLocation
(12, 37),
15600
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "x").WithArguments("R").
WithLocation
(12, 43),
15603
Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(ref int x, scoped ref int y) => ref x").
WithLocation
(13, 29),
15606
Diagnostic(ErrorCode.ERR_ByRefParameterInExpressionTree, "x").
WithLocation
(13, 38),
15609
Diagnostic(ErrorCode.ERR_ByRefParameterInExpressionTree, "y").
WithLocation
(13, 56),
15612
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(ref int x, ref int y) => ref x").WithArguments("y", "System.Linq.Expressions.Expression<D4>").
WithLocation
(14, 29),
15615
Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(ref int x, ref int y) => ref x").
WithLocation
(14, 29),
15618
Diagnostic(ErrorCode.ERR_ByRefParameterInExpressionTree, "x").
WithLocation
(14, 38),
15621
Diagnostic(ErrorCode.ERR_ByRefParameterInExpressionTree, "y").
WithLocation
(14, 49),
15624
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "x").WithArguments("R").
WithLocation
(18, 38),
15627
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "y").WithArguments("R").
WithLocation
(18, 50),
15630
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "x").WithArguments("R").
WithLocation
(18, 56),
15633
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(Expression<D2>)((R x, R y) => x)").WithArguments("y", "System.Linq.Expressions.Expression<D2>").
WithLocation
(19, 18),
15636
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "x").WithArguments("R").
WithLocation
(19, 38),
15639
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "y").WithArguments("R").
WithLocation
(19, 43),
15642
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, "x").WithArguments("R").
WithLocation
(19, 49),
15645
Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(ref int x, scoped ref int y) => ref x").
WithLocation
(20, 35),
15648
Diagnostic(ErrorCode.ERR_ByRefParameterInExpressionTree, "x").
WithLocation
(20, 44),
15651
Diagnostic(ErrorCode.ERR_ByRefParameterInExpressionTree, "y").
WithLocation
(20, 62),
15654
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(Expression<D4>)((ref int x, ref int y) => ref x)").WithArguments("y", "System.Linq.Expressions.Expression<D4>").
WithLocation
(21, 18),
15657
Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(ref int x, ref int y) => ref x").
WithLocation
(21, 35),
15660
Diagnostic(ErrorCode.ERR_ByRefParameterInExpressionTree, "x").
WithLocation
(21, 44),
15663
Diagnostic(ErrorCode.ERR_ByRefParameterInExpressionTree, "y").
WithLocation
(21, 55));
15713
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(ref R<int> r) => ref F()").WithArguments("r", "D1<int>").
WithLocation
(13, 22),
15716
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(in R<int> r) => ref F()").WithArguments("r", "D3<int>").
WithLocation
(15, 22),
15719
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "([UnscopedRef] out R<int> r) => { r = default; return ref F(); }").WithArguments("r", "D5<int>").
WithLocation
(17, 22),
15722
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(D1<int>)((ref R<int> r) => ref F())").WithArguments("r", "D1<int>").
WithLocation
(22, 18),
15725
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(D3<int>)((in R<int> r) => ref F())").WithArguments("r", "D3<int>").
WithLocation
(24, 18),
15728
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(D5<int>)(([UnscopedRef] out R<int> r) => { r = default; return ref F(); })").WithArguments("r", "D5<int>").
WithLocation
(26, 18),
15731
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(ref R<int> r) => ref F()").WithArguments("r", "D1<int>").
WithLocation
(31, 30),
15734
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(in R<int> r) => ref F()").WithArguments("r", "D3<int>").
WithLocation
(33, 30),
15737
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "([UnscopedRef] out R<int> r) => { r = default; return ref F(); }").WithArguments("r", "D5<int>").
WithLocation
(35, 30));
15768
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, $"({refModifier} int i) => ref F()").WithArguments("i", "D2<int>").
WithLocation
(14, 22),
15771
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, $"({refModifier} int i) => ref F()").WithArguments("i", "D3<int>").
WithLocation
(15, 22),
15774
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, $"({refModifier} int i) => new R<int>()").WithArguments("i", "D4<int>").
WithLocation
(16, 22));
15803
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, $"({refModifier} int i, ref R<int> r) => {{ }}").WithArguments("i", "D1<int>").
WithLocation
(12, 22),
15806
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, $"({refModifier} int i, out R<int> r) => {{ r = default; }}").WithArguments("i", "D3<int>").
WithLocation
(14, 22));
15839
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(ref int i) => new R<int>()").WithArguments("i", "D2<int>").
WithLocation
(16, 22),
15842
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(in int i) => new R<int>()").WithArguments("i", "D3<int>").
WithLocation
(17, 22),
15845
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "([UnscopedRef] out int i) => { i = 0; return new R<int>(); }").WithArguments("i", "D4B<int>").
WithLocation
(19, 24),
15848
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(R<int> r) => new R<int>()").WithArguments("r", "D5<int>").
WithLocation
(20, 22));
15882
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(ref int i) => ref F()").WithArguments("i", "D2<int>").
WithLocation
(16, 22),
15885
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(in int i) => ref F()").WithArguments("i", "D3<int>").
WithLocation
(17, 22),
15888
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "([UnscopedRef] out int i) => { i = 0; return ref F(); }").WithArguments("i", "D4<int>").
WithLocation
(18, 22),
15891
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(R<int> r) => ref F()").WithArguments("r", "D5<int>").
WithLocation
(19, 22));
16006
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "r => r").WithArguments("r", "D1").
WithLocation
(12, 17),
16009
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("scoped R r").
WithLocation
(13, 35)
16043
Diagnostic(ErrorCode.ERR_AmbigCall, "M2").WithArguments("C.M2(D1)", "C.M2(D2)").
WithLocation
(13, 9),
16046
Diagnostic(ErrorCode.ERR_AmbigCall, "M2").WithArguments("C.M2(D1)", "C.M2(D2)").
WithLocation
(14, 9),
16049
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("scoped R r").
WithLocation
(14, 28),
16052
Diagnostic(ErrorCode.ERR_AmbigCall, "M2").WithArguments("C.M2(D1)", "C.M2(D2)").
WithLocation
(15, 9)
16090
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "delegate { }").WithArguments("<p0>", "D1").
WithLocation
(12, 17),
16093
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "delegate { }").WithArguments("<p1>", "D1").
WithLocation
(12, 17)
16133
Diagnostic(ErrorCode.ERR_CantConvAnonMethNoParams, "delegate { }").WithArguments("D1").
WithLocation
(13, 17)
16169
Diagnostic(ErrorCode.ERR_BadDelArgCount, "() => new R()").WithArguments("D1", "0").
WithLocation
(12, 17)
16197
Diagnostic(ErrorCode.ERR_BadDelArgCount, "r => r").WithArguments("D1", "1").
WithLocation
(12, 17),
16200
Diagnostic(ErrorCode.ERR_BadDelArgCount, "(scoped R r) => r").WithArguments("D1", "1").
WithLocation
(13, 17)
16232
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(r2, t2) => r2").WithArguments("r2", "D<U>").
WithLocation
(16, 25));
16278
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped T t").
WithLocation
(3, 17)
16327
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "r1 => r1").WithArguments("r1", "D1").
WithLocation
(10, 17),
16330
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(11, 9),
16333
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(12, 9),
16336
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(13, 18),
16339
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(14, 9),
16342
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(17, 9),
16345
Diagnostic(ErrorCode.ERR_EscapeVariable, "r8").WithArguments("scoped R r8").
WithLocation
(18, 36),
16348
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(19, 9),
16351
Diagnostic(ErrorCode.ERR_EscapeVariable, "r9").WithArguments("scoped R r9").
WithLocation
(19, 28)
16386
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(16, 9));
16425
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(D1)", "Program.M(D2)").
WithLocation
(18, 9));
16458
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(10, 22),
16461
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(12, 27),
16464
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(17, 32),
16467
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(19, 37));
16508
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M1").WithArguments("M1", "C<T>").
WithLocation
(7, 17),
16511
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M2").WithArguments("M2", "C<T>").
WithLocation
(8, 10),
16514
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "C<T>").
WithLocation
(9, 12));
16539
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M1").WithArguments("M1", "C").
WithLocation
(9, 17),
16542
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M2").WithArguments("M2", "C").
WithLocation
(10, 17),
16545
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M3").WithArguments("M3", "C").
WithLocation
(11, 17),
16548
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M4").WithArguments("M4", "C").
WithLocation
(12, 17),
16551
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M5").WithArguments("M5", "C").
WithLocation
(13, 17));
16601
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, "M1").WithArguments("r").
WithLocation
(3, 25),
16604
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, "M2").WithArguments("r").
WithLocation
(4, 25),
16607
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, "M3").WithArguments("r").
WithLocation
(5, 25),
16610
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, "M4").WithArguments("r").
WithLocation
(6, 25),
16613
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, "M5").WithArguments("r").
WithLocation
(7, 25),
16616
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, "M6").WithArguments("r").
WithLocation
(8, 25)
16666
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, "F1").WithArguments("i").
WithLocation
(3, 26),
16669
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, "F2").WithArguments("i").
WithLocation
(4, 26),
16672
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, "F3").WithArguments("i").
WithLocation
(5, 26),
16675
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfPartial, "F4").WithArguments("i").
WithLocation
(6, 26)
16762
Diagnostic(ErrorCode.WRN_NewRequired, "M1").WithArguments("B2.M1(scoped R<string>)", "A<string>.M1(R<string>)").
WithLocation
(11, 17),
16765
Diagnostic(ErrorCode.WRN_NewRequired, "M2").WithArguments("B2.M2(R<string>)", "A<string>.M2(scoped R<string>)").
WithLocation
(12, 17),
16768
Diagnostic(ErrorCode.WRN_NewRequired, "M3").WithArguments("B2.M3(scoped ref R<string>)", "A<string>.M3(ref R<string>)").
WithLocation
(13, 17),
16771
Diagnostic(ErrorCode.WRN_NewRequired, "this").WithArguments("B2.this[scoped R<string>]", "A<string>.this[R<string>]").
WithLocation
(14, 19),
16774
Diagnostic(ErrorCode.WRN_NewRequired, "this").WithArguments("B2.this[int, R<string>]", "A<string>.this[int, scoped R<string>]").
WithLocation
(15, 19));
16819
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F2").WithArguments("r").
WithLocation
(13, 31),
16822
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F4").WithArguments("r").
WithLocation
(15, 31),
16825
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "default").WithArguments("y").
WithLocation
(17, 59));
16869
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F4").WithArguments("s").
WithLocation
(15, 32),
16872
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F6").WithArguments("s").
WithLocation
(17, 32));
16923
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F2").WithArguments("r").
WithLocation
(15, 22),
16926
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F4").WithArguments("r").
WithLocation
(17, 22),
16929
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "default").WithArguments("y").
WithLocation
(19, 50),
16932
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "default").WithArguments("x").
WithLocation
(21, 53));
16961
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F2").WithArguments("r").
WithLocation
(15, 25),
16964
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F4").WithArguments("r").
WithLocation
(17, 25),
16967
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "default").WithArguments("y").
WithLocation
(19, 53),
16970
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "default").WithArguments("x").
WithLocation
(21, 56));
17014
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F4").WithArguments("s").
WithLocation
(15, 32),
17017
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F6").WithArguments("s").
WithLocation
(17, 32));
17042
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F4").WithArguments("s").
WithLocation
(15, 35),
17045
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F6").WithArguments("s").
WithLocation
(17, 35));
17144
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "F1").WithArguments("t").
WithLocation
(14, 26));
17183
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "F1").WithArguments("t", "void C2.F1<T>(out T? t)", "void I.F1<T>(out T t)").
WithLocation
(14, 17),
17186
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "F1").WithArguments("t", "void I.F1<T>(out T t)").
WithLocation
(24, 12));
17232
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("r").
WithLocation
(13, 23));
17268
Diagnostic(ErrorCode.ERR_EscapeCall, "d2(new R(ref i))").WithArguments("D2.Invoke(R)", "x").
WithLocation
(18, 16),
17271
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(ref i)").WithArguments("R.R(ref int)", "i").
WithLocation
(18, 19),
17274
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(18, 29),
17277
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(R x) => x").WithArguments("x", "D1").
WithLocation
(22, 19));
17294
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("scoped R y").
WithLocation
(4, 53),
17297
Diagnostic(ErrorCode.ERR_EscapeVariable, "y").WithArguments("scoped R y").
WithLocation
(5, 49));
17314
Diagnostic(ErrorCode.WRN_EscapeVariable, "y").WithArguments("scoped R y").
WithLocation
(4, 53),
17317
Diagnostic(ErrorCode.WRN_EscapeVariable, "y").WithArguments("scoped R y").
WithLocation
(5, 49));
17333
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(3, 75),
17336
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(4, 83));
17358
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { (R r) => { }, (scoped R r) => { } }").
WithLocation
(6, 18),
17361
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { (ref R r) => { }, (scoped ref R r) => { } }").
WithLocation
(8, 18));
17391
Diagnostic(ErrorCode.ERR_EscapeCall, "f(y1, x1)").WithArguments("<anonymous delegate>.Invoke(R, scoped R)", "arg1").
WithLocation
(9, 13),
17394
Diagnostic(ErrorCode.ERR_EscapeVariable, "y1").WithArguments("scoped R y1").
WithLocation
(9, 15));
17434
Diagnostic(ErrorCode.ERR_AmbigCall, "o.F1").WithArguments("E1.F1(object, R)", "E2.F1(object, scoped R)").
WithLocation
(17, 18),
17437
Diagnostic(ErrorCode.ERR_AmbigCall, "o.F2").WithArguments("E1.F2(object, ref R)", "E2.F2(object, scoped ref R)").
WithLocation
(18, 18));
17459
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped S s").
WithLocation
(4, 20));
17478
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped T t").
WithLocation
(4, 16),
17481
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped T t").
WithLocation
(5, 16),
17484
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped T t").
WithLocation
(6, 16),
17487
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped T t").
WithLocation
(7, 16));
17508
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped E y").
WithLocation
(6, 34),
17511
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped E y").
WithLocation
(8, 39));
17530
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped C c").
WithLocation
(1, 17),
17533
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(6, 19));
17573
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(6, 22),
17576
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "S").
WithLocation
(6, 29),
17579
Diagnostic(ErrorCode.WRN_UnreferencedVar, "S").WithArguments("S").
WithLocation
(6, 29),
17582
Diagnostic(ErrorCode.ERR_SemicolonExpected, "s1").
WithLocation
(6, 31),
17585
Diagnostic(ErrorCode.ERR_NameNotInContext, "s1").WithArguments("s1").
WithLocation
(6, 31),
17588
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(7, 29),
17591
Diagnostic(ErrorCode.ERR_LocalDuplicate, "S").WithArguments("S").
WithLocation
(7, 36),
17594
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "S").
WithLocation
(7, 36),
17597
Diagnostic(ErrorCode.WRN_UnreferencedVar, "S").WithArguments("S").
WithLocation
(7, 36),
17600
Diagnostic(ErrorCode.ERR_SemicolonExpected, "s3").
WithLocation
(7, 38),
17603
Diagnostic(ErrorCode.ERR_NameNotInContext, "s3").WithArguments("s3").
WithLocation
(7, 38)
17630
Diagnostic(ErrorCode.ERR_EscapeVariable, "x1").WithArguments("x1").
WithLocation
(8, 33),
17633
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "var").
WithLocation
(9, 16),
17636
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(11, 16),
17639
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(11, 16)
17661
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped Unknown x").
WithLocation
(4, 20),
17664
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(4, 27),
17667
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(4, 47),
17670
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(6, 29),
17673
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(7, 18),
17676
Diagnostic(ErrorCode.ERR_NameNotInContext, "F2").WithArguments("F2").
WithLocation
(8, 24));
17754
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1").WithArguments("scoped R<int> r1").
WithLocation
(5, 43));
17773
Diagnostic(ErrorCode.ERR_RefReturnParameter, "r0").WithArguments("r0").
WithLocation
(4, 44),
17776
Diagnostic(ErrorCode.ERR_RefReturnParameter, "r1").WithArguments("r1").
WithLocation
(5, 51),
17779
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "r3").WithArguments("r3").
WithLocation
(7, 55));
17814
Diagnostic(ErrorCode.ERR_EscapeVariable, "l1").WithArguments("l1").
WithLocation
(12, 16));
17849
Diagnostic(ErrorCode.ERR_RefReturnLocal, "l0").WithArguments("l0").
WithLocation
(7, 20),
17852
Diagnostic(ErrorCode.ERR_RefReturnLocal, "l1").WithArguments("l1").
WithLocation
(12, 20),
17855
Diagnostic(ErrorCode.ERR_RefReturnLocal, "l2").WithArguments("l2").
WithLocation
(17, 20),
17858
Diagnostic(ErrorCode.ERR_RefReturnLocal, "l3").WithArguments("l3").
WithLocation
(22, 20));
17893
Diagnostic(ErrorCode.ERR_EscapeVariable, "l0").WithArguments("l0").
WithLocation
(7, 16),
17896
Diagnostic(ErrorCode.ERR_EscapeVariable, "l1").WithArguments("l1").
WithLocation
(12, 16),
17899
Diagnostic(ErrorCode.ERR_EscapeVariable, "l2").WithArguments("l2").
WithLocation
(17, 16),
17902
Diagnostic(ErrorCode.ERR_EscapeVariable, "l3").WithArguments("l3").
WithLocation
(22, 16));
17937
Diagnostic(ErrorCode.ERR_RefReturnLocal, "l0").WithArguments("l0").
WithLocation
(7, 20),
17940
Diagnostic(ErrorCode.ERR_RefReturnLocal, "l1").WithArguments("l1").
WithLocation
(12, 20),
17943
Diagnostic(ErrorCode.ERR_RefReturnLocal, "l2").WithArguments("l2").
WithLocation
(17, 20),
17946
Diagnostic(ErrorCode.ERR_RefReturnLocal, "l3").WithArguments("l3").
WithLocation
(22, 20));
17981
Diagnostic(ErrorCode.ERR_EscapeVariable, "l1").WithArguments("l1").
WithLocation
(12, 16));
18016
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "l0").WithArguments("l0").
WithLocation
(7, 20),
18019
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "l1").WithArguments("l1").
WithLocation
(12, 20),
18022
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "l3").WithArguments("l3").
WithLocation
(22, 20));
18052
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1").WithArguments("scoped R<int> r1").
WithLocation
(11, 36));
18087
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "l0").WithArguments("l0").
WithLocation
(7, 20),
18090
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1").WithArguments("scoped R<int> r1").
WithLocation
(11, 36),
18093
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "l1").WithArguments("l1").
WithLocation
(12, 20),
18096
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "l2").WithArguments("l2").
WithLocation
(17, 20),
18099
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "l3").WithArguments("l3").
WithLocation
(22, 20));
18117
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "F").
WithLocation
(5, 34),
18120
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "F").
WithLocation
(6, 51));
18138
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "F").
WithLocation
(5, 34),
18141
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "F").
WithLocation
(6, 51));
18174
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "F").WithArguments("field", "F").
WithLocation
(5, 34));
18216
Diagnostic(ErrorCode.ERR_RefReturnParameter2, "r0").WithArguments("r0").
WithLocation
(7, 40),
18219
Diagnostic(ErrorCode.ERR_RefReturnParameter2, "r1").WithArguments("r1").
WithLocation
(8, 47),
18222
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter2, "r3").WithArguments("r3").
WithLocation
(10, 51));
18252
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter2, "rs").WithArguments("rs").
WithLocation
(16, 34)
18281
Diagnostic(ErrorCode.WRN_RefReturnOnlyParameter2, "rs").WithArguments("rs").
WithLocation
(16, 34)
18304
Diagnostic(ErrorCode.WRN_RefReturnParameter2, "r0").WithArguments("r0").
WithLocation
(7, 40),
18307
Diagnostic(ErrorCode.WRN_RefReturnParameter2, "r1").WithArguments("r1").
WithLocation
(8, 47),
18310
Diagnostic(ErrorCode.WRN_RefReturnScopedParameter2, "r3").WithArguments("r3").
WithLocation
(10, 51));
18385
Diagnostic(ErrorCode.ERR_EscapeVariable, "r.F").WithArguments("scoped R<T> r").
WithLocation
(12, 55));
18415
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1.F").WithArguments("r1").
WithLocation
(11, 20),
18418
Diagnostic(ErrorCode.ERR_EscapeCall, "new R<T>(ref t)").WithArguments("R<T>.R(ref T)", "t").
WithLocation
(16, 14),
18421
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(16, 27));
18450
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1.F").WithArguments("r1").
WithLocation
(11, 20),
18453
Diagnostic(ErrorCode.ERR_EscapeVariable, "r2.F").WithArguments("r2").
WithLocation
(16, 20));
18476
Diagnostic(ErrorCode.ERR_EscapeCall, "new R<T>(ref t)").WithArguments("R<T>.R(ref T)", "t").
WithLocation
(9, 63),
18479
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(9, 76),
18482
Diagnostic(ErrorCode.ERR_EscapeCall, "new R<T>(ref t)").WithArguments("R<T>.R(ref T)", "t").
WithLocation
(10, 42),
18485
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(10, 55),
18488
Diagnostic(ErrorCode.ERR_EscapeCall, "new R<T>(ref t)").WithArguments("R<T>.R(ref T)", "t").
WithLocation
(11, 70),
18491
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t").WithArguments("t").
WithLocation
(11, 83));
18519
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1.F1").WithArguments("scoped R1<T> r1").
WithLocation
(14, 44));
18547
Diagnostic(ErrorCode.ERR_RefReturnParameter2, "r0").WithArguments("r0").
WithLocation
(13, 45),
18550
Diagnostic(ErrorCode.ERR_RefReturnParameter2, "r1").WithArguments("r1").
WithLocation
(14, 52),
18553
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter2, "r3").WithArguments("r3").
WithLocation
(16, 56));
18585
Diagnostic(ErrorCode.ERR_EscapeCall, "F0(new R<T>(ref t))").WithArguments("Program.F0<T>(R<T>)", "r0").
WithLocation
(19, 20),
18588
Diagnostic(ErrorCode.ERR_EscapeCall, "new R<T>(ref t)").WithArguments("R<T>.R(ref T)", "t").
WithLocation
(19, 23),
18591
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t").WithArguments("t").
WithLocation
(19, 36));
18629
Diagnostic(ErrorCode.ERR_EscapeCall, "this[x2, new R(ref i2)]").WithArguments("C.this[R, R]", "y").
WithLocation
(16, 16),
18632
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(ref i2)").WithArguments("R.R(ref int)", "i").
WithLocation
(16, 25),
18635
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i2").WithArguments("i2").
WithLocation
(16, 35),
18638
Diagnostic(ErrorCode.ERR_EscapeCall, "c[new R(ref i4), y4]").WithArguments("C.this[R, R]", "x").
WithLocation
(25, 16),
18641
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(ref i4)").WithArguments("R.R(ref int)", "i").
WithLocation
(25, 18),
18644
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i4").WithArguments("i4").
WithLocation
(25, 28));
18682
Diagnostic(ErrorCode.ERR_EscapeCall, "this[x2, y2]").WithArguments("C.this[in int, in int]", "y").
WithLocation
(16, 16),
18685
Diagnostic(ErrorCode.ERR_RefReturnLocal, "y2").WithArguments("y2").
WithLocation
(16, 25),
18688
Diagnostic(ErrorCode.ERR_EscapeCall, "c[x4, y4]").WithArguments("C.this[in int, in int]", "x").
WithLocation
(25, 16),
18691
Diagnostic(ErrorCode.ERR_RefReturnLocal, "x4").WithArguments("x4").
WithLocation
(25, 18));
18729
Diagnostic(ErrorCode.ERR_EscapeCall, "this[x2, new R(ref i2)]").WithArguments("C.this[R, R]", "y").
WithLocation
(16, 20),
18732
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(ref i2)").WithArguments("R.R(ref int)", "i").
WithLocation
(16, 29),
18735
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i2").WithArguments("i2").
WithLocation
(16, 39),
18738
Diagnostic(ErrorCode.ERR_EscapeCall, "c[new R(ref i4), y4]").WithArguments("C.this[R, R]", "x").
WithLocation
(25, 20),
18741
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(ref i4)").WithArguments("R.R(ref int)", "i").
WithLocation
(25, 22),
18744
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i4").WithArguments("i4").
WithLocation
(25, 32));
18777
Diagnostic(ErrorCode.ERR_EscapeCall, "this[x2, y2]").WithArguments("C.this[in int, in int]", "y").
WithLocation
(11, 20),
18780
Diagnostic(ErrorCode.ERR_RefReturnLocal, "y2").WithArguments("y2").
WithLocation
(11, 29),
18783
Diagnostic(ErrorCode.ERR_EscapeCall, "c[x4, y4]").WithArguments("C.this[in int, in int]", "x").
WithLocation
(20, 20),
18786
Diagnostic(ErrorCode.ERR_RefReturnLocal, "x4").WithArguments("x4").
WithLocation
(20, 22));
18868
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r3.F = ref t").WithArguments("F", "t").
WithLocation
(29, 9),
18871
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r7.F = ref t").WithArguments("F", "t").
WithLocation
(59, 9)
18946
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r3.F = ref t").WithArguments("F", "t").
WithLocation
(26, 9),
18949
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r7.F = ref t").WithArguments("F", "t").
WithLocation
(52, 9));
19031
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1").WithArguments("r1").
WithLocation
(16, 16),
19034
Diagnostic(ErrorCode.ERR_EscapeVariable, "r2").WithArguments("r2").
WithLocation
(23, 16),
19037
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r3.F = ref t").WithArguments("F", "t").
WithLocation
(29, 9),
19040
Diagnostic(ErrorCode.ERR_EscapeVariable, "r4").WithArguments("r4").
WithLocation
(39, 16),
19043
Diagnostic(ErrorCode.ERR_EscapeVariable, "r5").WithArguments("r5").
WithLocation
(46, 16),
19046
Diagnostic(ErrorCode.ERR_EscapeVariable, "r6").WithArguments("r6").
WithLocation
(53, 16),
19049
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r7.F = ref t").WithArguments("F", "t").
WithLocation
(59, 9),
19052
Diagnostic(ErrorCode.ERR_EscapeVariable, "r8").WithArguments("r8").
WithLocation
(69, 16));
19126
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1").WithArguments("r1").
WithLocation
(15, 16),
19129
Diagnostic(ErrorCode.ERR_EscapeVariable, "r2").WithArguments("r2").
WithLocation
(21, 16),
19132
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r3.F = ref t").WithArguments("F", "t").
WithLocation
(26, 9),
19135
Diagnostic(ErrorCode.ERR_EscapeVariable, "r4").WithArguments("r4").
WithLocation
(35, 16),
19138
Diagnostic(ErrorCode.ERR_EscapeVariable, "r5").WithArguments("r5").
WithLocation
(41, 16),
19141
Diagnostic(ErrorCode.ERR_EscapeVariable, "r6").WithArguments("r6").
WithLocation
(47, 16),
19144
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r7.F = ref t").WithArguments("F", "t").
WithLocation
(52, 9),
19147
Diagnostic(ErrorCode.ERR_EscapeVariable, "r8").WithArguments("r8").
WithLocation
(61, 16));
19249
Diagnostic(ErrorCode.ERR_EscapeCall, "new R<T>(ref t1)").WithArguments("R<T>.R(ref T)", "t").
WithLocation
(11, 16),
19252
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t1").WithArguments("t1").
WithLocation
(11, 29),
19255
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "this.F = ref t2").WithArguments("F", "t2").
WithLocation
(18, 9),
19258
Diagnostic(ErrorCode.ERR_EscapeCall, "Create(ref t3)").WithArguments("R<T>.Create(ref T)", "t").
WithLocation
(24, 16),
19261
Diagnostic(ErrorCode.ERR_RefReturnLocal, "t3").WithArguments("t3").
WithLocation
(24, 27),
19264
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "this.F = ref t4").WithArguments("F", "t4").
WithLocation
(31, 9));
19305
Diagnostic(ErrorCode.ERR_EscapeCall, "new R<T>(ref t1)").WithArguments("R<T>.R(ref T)", "t").
WithLocation
(10, 16),
19308
Diagnostic(ErrorCode.ERR_RefReturnParameter, "t1").WithArguments("t1").
WithLocation
(10, 29),
19311
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "this.F = ref t2").WithArguments("F", "t2").
WithLocation
(16, 9),
19314
Diagnostic(ErrorCode.ERR_EscapeCall, "Create(ref t3)").WithArguments("R<T>.Create(ref T)", "t").
WithLocation
(21, 16),
19317
Diagnostic(ErrorCode.ERR_RefReturnParameter, "t3").WithArguments("t3").
WithLocation
(21, 27),
19320
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "this.F = ref t4").WithArguments("F", "t4").
WithLocation
(27, 9));
19347
Diagnostic(ErrorCode.ERR_EscapeCall, "new R<T>(ref t2)").WithArguments("R<T>.R(ref T)", "t").
WithLocation
(13, 16),
19350
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "t2").WithArguments("t2").
WithLocation
(13, 29));
19376
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("R<T>.F").
WithLocation
(4, 19));
19397
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("C", "I.M<T>(T)").
WithLocation
(6, 11),
19400
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M").WithArguments("C.M<T>(scoped T?)").
WithLocation
(8, 12),
19403
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "scoped T? s").
WithLocation
(8, 17),
19406
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(8, 25),
19409
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "s").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(8, 27));
19436
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r.F = ref t").WithArguments("F", "t").
WithLocation
(12, 13));
19464
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1").WithArguments("r1").
WithLocation
(13, 9),
19467
Diagnostic(ErrorCode.ERR_CallArgMixing, "r1.F(out r)").WithArguments("R.F(out R)", "this").
WithLocation
(13, 9));
19493
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1").WithArguments("r1").
WithLocation
(13, 9),
19496
Diagnostic(ErrorCode.ERR_CallArgMixing, "r1.F(out r)").WithArguments("R.F(out R)", "this").
WithLocation
(13, 9));
19525
Diagnostic(ErrorCode.ERR_CallArgMixing, "r.F(out s)").WithArguments("R.F(out System.Span<int>)", "s").
WithLocation
(12, 9),
19528
Diagnostic(ErrorCode.ERR_EscapeVariable, "s").WithArguments("s").
WithLocation
(12, 17));
19558
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "_i = ref i").WithArguments("_i", "i").
WithLocation
(11, 9));
19584
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "_i = ref i").WithArguments("_i", "i").
WithLocation
(12, 9));
19618
Diagnostic(ErrorCode.ERR_EscapeCall, "c[r1]").WithArguments("C.this[R<int>]", "r").
WithLocation
(12, 16),
19621
Diagnostic(ErrorCode.ERR_EscapeVariable, "r1").WithArguments("r1").
WithLocation
(12, 18));
19656
Diagnostic(ErrorCode.ERR_EscapeCall, "c[i1]").WithArguments("C.this[in int]", "i").
WithLocation
(10, 16),
19659
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i1").WithArguments("i1").
WithLocation
(10, 18),
19662
Diagnostic(ErrorCode.ERR_EscapeCall, "c[2]").WithArguments("C.this[in int]", "i").
WithLocation
(14, 16),
19665
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "2").
WithLocation
(14, 18));
19684
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(4, 23),
19687
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(5, 32));
19706
Diagnostic(ErrorCode.ERR_RefReturnThis, "this").
WithLocation
(4, 23),
19709
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(5, 32));
19753
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "field").
WithLocation
(11, 26),
19756
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "refField = ref this.field").
WithLocation
(18, 24),
19759
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "refField = ref this.field").
WithLocation
(23, 23),
19762
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter2, "s").WithArguments("s").
WithLocation
(28, 59));
19781
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "ref int").WithArguments("ref fields", "11.0").
WithLocation
(7, 12)
19811
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "field").WithArguments("ref fields", "11.0").
WithLocation
(3, 20),
19814
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "field").WithArguments("ref fields", "11.0").
WithLocation
(4, 20),
19817
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "field").WithArguments("ref fields", "11.0").
WithLocation
(7, 15)
19824
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "field").WithArguments("ref fields", "11.0").
WithLocation
(3, 20),
19827
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, "field").
WithLocation
(3, 20),
19830
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "field").WithArguments("ref fields", "11.0").
WithLocation
(4, 20),
19833
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, "field").
WithLocation
(4, 20),
19836
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "field").WithArguments("ref fields", "11.0").
WithLocation
(7, 15),
19839
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, "field").
WithLocation
(7, 15)
19916
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(3, 31)
19941
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "x").WithArguments("int").
WithLocation
(3, 31)
19971
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "x").WithArguments("S2").
WithLocation
(3, 31)
19995
Diagnostic(ErrorCode.ERR_StaticMemberInObjectInitializer, "field").WithArguments("R.field").
WithLocation
(3, 19),
19998
Diagnostic(ErrorCode.ERR_BadMemberFlag, "field").WithArguments("static").
WithLocation
(7, 27)
20017
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var()").
WithLocation
(2, 31),
20020
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(2, 31)
20040
Diagnostic(ErrorCode.ERR_AssgReadonly, "field").
WithLocation
(3, 19)
20084
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "Value()").WithArguments("method", "Value").
WithLocation
(8, 39)
20115
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "i").WithArguments("variable", "i").
WithLocation
(7, 31)
20142
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "Property").
WithLocation
(8, 27)
20169
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "Property").
WithLocation
(8, 27),
20172
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "set").
WithLocation
(14, 50)
20196
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "[0]").
WithLocation
(2, 19),
20199
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "r2[0]").
WithLocation
(5, 1)
20223
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "[0]").
WithLocation
(2, 19),
20226
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "r2[0]").
WithLocation
(5, 1)
20253
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "Value()").
WithLocation
(8, 39)
20301
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "field").
WithLocation
(12, 20),
20304
Diagnostic(ErrorCode.ERR_RefFieldInNonRefStruct, "field").
WithLocation
(12, 20)
20330
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "Property").
WithLocation
(7, 27)
20354
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(4, 5),
20357
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(5, 5),
20360
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(6, 19),
20363
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(6, 26)
20386
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "field").
WithLocation
(3, 19),
20389
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "r2.field").
WithLocation
(6, 1)
20412
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "Property").
WithLocation
(3, 19),
20415
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "r2.Property").
WithLocation
(6, 1)
20438
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "[0]").
WithLocation
(3, 19),
20441
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "r2[0]").
WithLocation
(6, 1)
20472
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "[0]").
WithLocation
(7, 35),
20475
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "c2.array[0]").
WithLocation
(15, 9)
20506
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "[0]").
WithLocation
(9, 37),
20509
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "c2.pointer[0]").
WithLocation
(17, 9)
20532
Diagnostic(ErrorCode.ERR_BadEventUsage, "a").WithArguments("C.a", "C").
WithLocation
(3, 17),
20535
Diagnostic(ErrorCode.ERR_BadEventUsage, "a").WithArguments("C.a", "C").
WithLocation
(6, 3)
20555
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, "{ this.a = ref x }").WithArguments("C").
WithLocation
(3, 16),
20558
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "this.a = ref x").
WithLocation
(3, 18),
20561
Diagnostic(ErrorCode.ERR_ThisInStaticMeth, "this").
WithLocation
(3, 18),
20564
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "a").WithArguments("C.a").
WithLocation
(7, 32)
20587
Diagnostic(ErrorCode.ERR_MemberCannotBeInitialized, "F").WithArguments("F").
WithLocation
(3, 17),
20590
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "c.F").WithArguments("F", "method group").
WithLocation
(6, 1)
20672
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x2").WithArguments("S<object?>", "S<object>").
WithLocation
(8, 33),
20675
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("S<object>", "S<object?>").
WithLocation
(9, 34),
20678
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x2").WithArguments("S<object?>", "S<object>").
WithLocation
(13, 40),
20681
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "x1").WithArguments("S<object>", "S<object?>").
WithLocation
(14, 41)
20705
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(2, 5),
20708
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "{").WithArguments("{").
WithLocation
(3, 29),
20711
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(3, 29),
20714
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "{ item = 42 }").
WithLocation
(3, 29),
20717
Diagnostic(ErrorCode.ERR_NameNotInContext, "item").WithArguments("item").
WithLocation
(3, 31)
20740
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "field").
WithLocation
(3, 23),
20743
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "s.D.field").
WithLocation
(6, 1)
20763
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "i").WithArguments("dynamic").
WithLocation
(3, 34)
20959
Diagnostic(ErrorCode.ERR_InvalidObjectCreation, "dynamic").
WithLocation
(3, 13),
20962
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "field").
WithLocation
(3, 23),
20965
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "r2.field").
WithLocation
(6, 1)
20991
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "[0]").
WithLocation
(3, 23),
20994
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "s.D[0]").
WithLocation
(6, 1)
21018
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "X").
WithLocation
(4, 36),
21021
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "a2[y: x, x: x].X").
WithLocation
(7, 1)
21076
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(8, 16),
21079
Diagnostic(ErrorCode.ERR_RefReturnLocal, "field = ref x").WithArguments("x").
WithLocation
(20, 25),
21082
Diagnostic(ErrorCode.ERR_RefReturnLocal, "field = ref x").WithArguments("x").
WithLocation
(29, 25),
21085
Diagnostic(ErrorCode.ERR_RefReturnLocal, "field = ref x").WithArguments("x").
WithLocation
(36, 21)
21138
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(8, 16),
21141
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(ref x)").WithArguments("R.R(ref int)", "i").
WithLocation
(20, 17),
21144
Diagnostic(ErrorCode.ERR_RefReturnLocal, "x").WithArguments("x").
WithLocation
(20, 27),
21147
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(ref x)").WithArguments("R.R(ref int)", "i").
WithLocation
(29, 17),
21150
Diagnostic(ErrorCode.ERR_RefReturnLocal, "x").WithArguments("x").
WithLocation
(29, 27),
21153
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(ref x)").WithArguments("R.R(ref int)", "i").
WithLocation
(36, 13),
21156
Diagnostic(ErrorCode.ERR_RefReturnLocal, "x").WithArguments("x").
WithLocation
(36, 23)
21209
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "r").WithArguments("r").
WithLocation
(9, 17),
21212
Diagnostic(ErrorCode.ERR_RefReturnLocal, "field = ref x").WithArguments("x").
WithLocation
(18, 42),
21215
Diagnostic(ErrorCode.ERR_RefReturnLocal, "field = ref x").WithArguments("x").
WithLocation
(25, 38),
21218
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(31, 16)
21325
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(8, 16),
21328
Diagnostic(ErrorCode.ERR_RefReturnLocal, "field = ref x").WithArguments("x").
WithLocation
(20, 32),
21331
Diagnostic(ErrorCode.ERR_RefReturnLocal, "field = ref x").WithArguments("x").
WithLocation
(29, 32),
21334
Diagnostic(ErrorCode.ERR_RefReturnLocal, "field = ref x").WithArguments("x").
WithLocation
(36, 28)
21350
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(3, 9),
21353
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "R").WithArguments("R").
WithLocation
(3, 16),
21356
Diagnostic(ErrorCode.WRN_UnreferencedField, "R").WithArguments("R.R").
WithLocation
(3, 16),
21359
Diagnostic(ErrorCode.ERR_SemicolonExpected, "field").
WithLocation
(3, 18),
21362
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(3, 23),
21365
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(3, 23)
21377
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(3, 9),
21380
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, "R").
WithLocation
(3, 16),
21383
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "R").WithArguments("R").
WithLocation
(3, 16),
21386
Diagnostic(ErrorCode.WRN_UnreferencedField, "R").WithArguments("R.R").
WithLocation
(3, 16),
21389
Diagnostic(ErrorCode.ERR_SemicolonExpected, "Property").
WithLocation
(3, 18),
21392
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "{").WithArguments("{").
WithLocation
(3, 27),
21395
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "{").WithArguments("{").
WithLocation
(3, 27),
21398
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=>").WithArguments("=>").
WithLocation
(3, 33),
21401
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=>").WithArguments("=>").
WithLocation
(3, 33),
21404
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(4, 1)
21418
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(3, 16),
21421
Diagnostic(ErrorCode.ERR_SyntaxError, "parameter").WithArguments(",").
WithLocation
(3, 25),
21424
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(3, 25),
21427
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(3, 34)
21441
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(3, 15),
21444
Diagnostic(ErrorCode.ERR_SyntaxError, "parameter").WithArguments(",").
WithLocation
(3, 24),
21447
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(3, 24),
21450
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(3, 33)
21464
Diagnostic(ErrorCode.ERR_ParamUnassigned, "M").WithArguments("R").
WithLocation
(3, 10),
21467
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(3, 16),
21470
Diagnostic(ErrorCode.ERR_SyntaxError, "parameter").WithArguments(",").
WithLocation
(3, 25),
21473
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(3, 25),
21476
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(3, 34)
21490
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(3, 16),
21493
Diagnostic(ErrorCode.ERR_SyntaxError, "R").WithArguments(",").
WithLocation
(3, 30)
21508
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(5, 13),
21511
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "R").
WithLocation
(5, 20),
21514
Diagnostic(ErrorCode.WRN_UnreferencedVar, "R").WithArguments("R").
WithLocation
(5, 20),
21517
Diagnostic(ErrorCode.ERR_SemicolonExpected, "local").
WithLocation
(5, 22),
21520
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(5, 22),
21523
Diagnostic(ErrorCode.ERR_IllegalStatement, "local").
WithLocation
(5, 22)
21538
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(5, 20),
21541
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "R").
WithLocation
(5, 27),
21544
Diagnostic(ErrorCode.WRN_UnreferencedVar, "R").WithArguments("R").
WithLocation
(5, 27),
21547
Diagnostic(ErrorCode.ERR_SemicolonExpected, "local").
WithLocation
(5, 29),
21550
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(5, 29),
21553
Diagnostic(ErrorCode.ERR_IllegalStatement, "local").
WithLocation
(5, 29)
21565
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(3, 9),
21568
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, "R").
WithLocation
(3, 16),
21571
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "R").WithArguments("R").
WithLocation
(3, 16),
21574
Diagnostic(ErrorCode.WRN_UnreferencedField, "R").WithArguments("R.R").
WithLocation
(3, 16),
21577
Diagnostic(ErrorCode.ERR_SemicolonExpected, "M").
WithLocation
(3, 18),
21580
Diagnostic(ErrorCode.ERR_MemberNeedsType, "M").
WithLocation
(3, 18),
21583
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "M").
WithLocation
(3, 18)
21594
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "scoped").WithArguments("scoped").
WithLocation
(2, 21),
21597
Diagnostic(ErrorCode.ERR_SyntaxError, "parameter").WithArguments(",").
WithLocation
(2, 30),
21600
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "parameter").WithArguments("parameter").
WithLocation
(2, 30),
21603
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(2, 39)
21619
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "void").WithArguments("void").
WithLocation
(6, 13),
21622
Diagnostic(ErrorCode.ERR_NameNotInContext, "scoped").WithArguments("scoped").
WithLocation
(6, 23),
21625
Diagnostic(ErrorCode.ERR_SyntaxError, "R").WithArguments(",").
WithLocation
(6, 30),
21628
Diagnostic(ErrorCode.ERR_BadSKunknown, "R").WithArguments("R", "type").
WithLocation
(6, 30),
21631
Diagnostic(ErrorCode.ERR_SyntaxError, "parameter").WithArguments(",").
WithLocation
(6, 32),
21634
Diagnostic(ErrorCode.ERR_NameNotInContext, "parameter").WithArguments("parameter").
WithLocation
(6, 32),
21637
Diagnostic(ErrorCode.ERR_SemicolonExpected, "=>").
WithLocation
(6, 43),
21640
Diagnostic(ErrorCode.ERR_RbraceExpected, "=>").
WithLocation
(6, 43)
21715
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "scoped").WithArguments("scoped").
WithLocation
(1, 9),
21718
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "scoped").WithArguments("scoped").
WithLocation
(9, 20),
21721
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "scoped").WithArguments("scoped").
WithLocation
(21, 12)
21728
Diagnostic(ErrorCode.ERR_ScopedTypeNameDisallowed, "scoped").
WithLocation
(1, 9),
21731
Diagnostic(ErrorCode.ERR_ScopedTypeNameDisallowed, "scoped").
WithLocation
(9, 20),
21734
Diagnostic(ErrorCode.ERR_ScopedTypeNameDisallowed, "scoped").
WithLocation
(21, 12)
21748
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using scoped = System.Int32;").
WithLocation
(1, 1),
21751
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "scoped").WithArguments("scoped").
WithLocation
(1, 7)
21758
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using scoped = System.Int32;").
WithLocation
(1, 1),
21761
Diagnostic(ErrorCode.ERR_ScopedTypeNameDisallowed, "scoped").
WithLocation
(1, 7)
21775
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using @scoped = System.Int32;").
WithLocation
(1, 1)
21782
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using @scoped = System.Int32;").
WithLocation
(1, 1)
21803
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "_field").
WithLocation
(5, 39));
21830
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "s1").WithArguments("s1").
WithLocation
(7, 20));
21867
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s").WithArguments("s").
WithLocation
(11, 20));
21909
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(ref this)").WithArguments("R.R(ref S1)", "s1").
WithLocation
(11, 14),
21912
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(11, 24),
21915
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(ref this)").WithArguments("R.R(ref S1)", "s1").
WithLocation
(15, 14),
21918
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(15, 24),
21921
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(in this)").WithArguments("R.R(in S2)", "s2").
WithLocation
(22, 14),
21924
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(22, 23),
21927
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(in this)").WithArguments("R.R(in S2)", "s2").
WithLocation
(26, 14),
21930
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(26, 23));
21948
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "_field").
WithLocation
(5, 37));
21985
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s").WithArguments("s").
WithLocation
(11, 20));
22013
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(6, 6),
22016
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(15, 10));
22044
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "_t").
WithLocation
(7, 20));
22077
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "value.F = ref this").WithArguments("F", "this").
WithLocation
(11, 15),
22080
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "value.F = ref this").WithArguments("F", "this").
WithLocation
(20, 15));
22113
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "value.F = ref this").WithArguments("F", "this").
WithLocation
(11, 16),
22116
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(19, 10),
22119
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "value.F = ref this").WithArguments("F", "this").
WithLocation
(20, 16));
22148
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(6, 6),
22151
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(7, 6),
22154
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(11, 6),
22157
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(12, 6),
22160
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(16, 6),
22163
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(17, 6));
22193
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(6, 19),
22196
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(7, 27),
22199
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(11, 19),
22202
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(12, 27),
22205
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(16, 19),
22208
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(17, 27));
22233
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(6, 18),
22236
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(7, 10));
22284
Diagnostic(ErrorCode.ERR_RefReturnLocal, "r2").WithArguments("r2").
WithLocation
(12, 27),
22287
Diagnostic(ErrorCode.ERR_RefReturnLocal, "r2").WithArguments("r2").
WithLocation
(13, 20));
22328
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "_t").
WithLocation
(7, 50));
22352
Diagnostic(ErrorCode.ERR_RefReturnLocal, "r2").WithArguments("r2").
WithLocation
(12, 27),
22355
Diagnostic(ErrorCode.ERR_RefReturnLocal, "r2").WithArguments("r2").
WithLocation
(13, 20));
22403
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r.F = ref this").WithArguments("F", "this").
WithLocation
(10, 9),
22406
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "UnscopedRef").WithArguments("UnscopedRef", "method, property, indexer, parameter").
WithLocation
(15, 6),
22409
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r.F = ref this").WithArguments("F", "this").
WithLocation
(18, 9));
22416
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r.F = ref this").WithArguments("F", "this").
WithLocation
(10, 9),
22419
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "UnscopedRef").WithArguments("1.cs", "System.Diagnostics.CodeAnalysis.UnscopedRefAttribute", "System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Diagnostics.CodeAnalysis.UnscopedRefAttribute").
WithLocation
(15, 6),
22422
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(15, 6),
22425
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r.F = ref this").WithArguments("F", "this").
WithLocation
(18, 9));
22441
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(4, 6));
22459
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(4, 6),
22462
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(5, 6),
22465
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(6, 6));
22489
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(4, 6),
22492
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(8, 6));
22516
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(8, 24));
22569
Diagnostic(ErrorCode.ERR_EscapeCall, "F1A(ref r)").WithArguments("A<int>.F1A(ref R<int>)", "r1").
WithLocation
(7, 20),
22572
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(7, 28),
22575
Diagnostic(ErrorCode.ERR_EscapeCall, "F2A(ref r)").WithArguments("A<int>.F2A(scoped ref R<int>)", "r2").
WithLocation
(13, 20),
22578
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(13, 28)
22616
Diagnostic(ErrorCode.ERR_EscapeCall, "F1A(ref r)").WithArguments("A<int>.F1A(ref R<int>)", "r1").
WithLocation
(6, 20),
22619
Diagnostic(ErrorCode.ERR_RefReturnLocal, "r").WithArguments("r").
WithLocation
(6, 28),
22622
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "y").WithArguments("y").
WithLocation
(18, 20));
22659
Diagnostic(ErrorCode.ERR_UnscopedScoped, "UnscopedRef").
WithLocation
(9, 22),
22662
Diagnostic(ErrorCode.ERR_UnscopedScoped, "UnscopedRef").
WithLocation
(13, 22),
22665
Diagnostic(ErrorCode.ERR_UnscopedScoped, "UnscopedRef").
WithLocation
(18, 22),
22668
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(22, 22));
22752
Diagnostic(ErrorCode.ERR_BindToBogus, "F4A").WithArguments("A<T>.F4A(ref R<T>)").
WithLocation
(7, 20));
22772
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(4, 20),
22775
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(4, 41));
22803
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "x").WithArguments("x").
WithLocation
(9, 24));
22859
Diagnostic(ErrorCode.ERR_EscapeCall, "F3A(out i)").WithArguments("A<int>.F3A(out int)", "t3").
WithLocation
(16, 20),
22862
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(16, 28));
22909
Diagnostic(ErrorCode.ERR_UnscopedScoped, "UnscopedRef").
WithLocation
(7, 23),
22912
Diagnostic(ErrorCode.ERR_EscapeCall, "F1A(ref i)").WithArguments("A<int>.F1A(ref int)", "t1").
WithLocation
(14, 20),
22915
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(14, 28),
22918
Diagnostic(ErrorCode.ERR_EscapeCall, "F3A(ref i)").WithArguments("A<int>.F3A(ref int)", "t3").
WithLocation
(24, 20),
22921
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(24, 28),
22924
Diagnostic(ErrorCode.ERR_EscapeCall, "F4A(ref i)").WithArguments("A<int>.F4A(ref int)", "t4").
WithLocation
(29, 20),
22927
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(29, 28));
22975
Diagnostic(ErrorCode.ERR_UnscopedScoped, "UnscopedRef").
WithLocation
(7, 32),
22978
Diagnostic(ErrorCode.ERR_EscapeCall, "F1A(in i)").WithArguments("A<int>.F1A(in int)", "t1").
WithLocation
(14, 20),
22981
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(14, 27),
22984
Diagnostic(ErrorCode.ERR_EscapeCall, "F3A(in i)").WithArguments("A<int>.F3A(in int)", "t3").
WithLocation
(24, 20),
22987
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(24, 27),
22990
Diagnostic(ErrorCode.ERR_EscapeCall, "F4A(in i)").WithArguments("A<int>.F4A(in int)", "t4").
WithLocation
(29, 20),
22993
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(29, 27));
23062
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(17, 23),
23065
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(21, 23),
23068
Diagnostic(ErrorCode.ERR_EscapeCall, "F1A(r)").WithArguments("A<int>.F1A(R<int>)", "r1").
WithLocation
(32, 20),
23071
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(32, 24),
23074
Diagnostic(ErrorCode.ERR_EscapeCall, "F3A(r)").WithArguments("A<int>.F3A(R<int>)", "r3").
WithLocation
(44, 20),
23077
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(44, 24),
23080
Diagnostic(ErrorCode.ERR_EscapeCall, "F4A(r)").WithArguments("A<int>.F4A(R<int>)", "r4").
WithLocation
(50, 20),
23083
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(50, 24));
23112
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(8, 24));
23145
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("i").
WithLocation
(14, 31));
23173
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("i").
WithLocation
(14, 31));
23204
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("r").
WithLocation
(17, 31));
23242
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("i").
WithLocation
(14, 29),
23245
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("o").
WithLocation
(24, 35));
23283
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("i").
WithLocation
(14, 29),
23286
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("o").
WithLocation
(24, 35));
23327
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("r").
WithLocation
(17, 29),
23330
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("r").
WithLocation
(27, 35));
23357
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "([UnscopedRef] out int i2) => { i2 = 2; return ref F<int>(); }").WithArguments("i2", "D1<int>").
WithLocation
(10, 14));
23393
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "([UnscopedRef] ref int i2) => ref F<int>()").WithArguments("i2", "D1<int>").
WithLocation
(10, 14));
23430
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "(ref R<int> r2) => ref F<int>()").WithArguments("r2", "D1<int>").
WithLocation
(11, 14));
23482
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(in i1)").WithArguments("R.R(in int)", "i").
WithLocation
(7, 16),
23485
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "i1").WithArguments("i1").
WithLocation
(7, 25),
23488
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(in i2)").WithArguments("R.R(in int)", "i").
WithLocation
(11, 16),
23491
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "i2").WithArguments("i2").
WithLocation
(11, 25),
23494
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(in i3)").WithArguments("R.R(in int)", "i").
WithLocation
(16, 16),
23497
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "i3").WithArguments("i3").
WithLocation
(16, 25),
23500
Diagnostic(ErrorCode.ERR_EscapeCall, "new R(in i6)").WithArguments("R.R(in int)", "i").
WithLocation
(29, 16),
23503
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "i6").WithArguments("i6").
WithLocation
(29, 25));
23546
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "_i = ref i1").WithArguments("_i", "i1").
WithLocation
(7, 9),
23549
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "_i = ref i2").WithArguments("_i", "i2").
WithLocation
(11, 9),
23552
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "_i = ref i3").WithArguments("_i", "i3").
WithLocation
(16, 9),
23555
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "_i = ref i6").WithArguments("_i", "i6").
WithLocation
(29, 9));
23645
Diagnostic(ErrorCode.ERR_CallArgMixing, "UnscopedRef(ref i2, ref r2)").WithArguments("A<int>.UnscopedRef(ref int, ref R1<int>)", "t2").
WithLocation
(11, 9),
23648
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i2").WithArguments("i2").
WithLocation
(11, 25),
23651
Diagnostic(ErrorCode.ERR_CallArgMixing, "UnscopedIn(in i4, ref r4)").WithArguments("A<int>.UnscopedIn(in int, ref R2<int>)", "t4").
WithLocation
(21, 9),
23654
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i4").WithArguments("i4").
WithLocation
(21, 23),
23657
Diagnostic(ErrorCode.ERR_EscapeCall, "UnscopedOut(out i6)").WithArguments("A<int>.UnscopedOut(out int)", "t6").
WithLocation
(31, 20),
23660
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i6").WithArguments("i6").
WithLocation
(31, 36));
23678
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "UnscopedRef").WithArguments("i", "System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.UnscopedRefAttribute(out int)").
WithLocation
(5, 38));
23721
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "UnscopedRef").WithArguments("b", "System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.UnscopedRefAttribute(bool)").
WithLocation
(4, 24),
23724
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "i2").WithArguments("i2").
WithLocation
(12, 20),
23727
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(out i3)").WithArguments("Program.F1(out int)", "i1").
WithLocation
(17, 20),
23730
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i3").WithArguments("i3").
WithLocation
(17, 27));
23762
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "F1()").
WithLocation
(8, 36),
23765
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "i").WithArguments("i").
WithLocation
(11, 20));
23851
Diagnostic(ErrorCode.ERR_EscapeCall, "A.UnscopedRefOnly(out i)").WithArguments("A.UnscopedRefOnly(out int)", "i").
WithLocation
(16, 20),
23854
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(16, 42),
23857
Diagnostic(ErrorCode.ERR_BindToBogus, "ScopedRefAndUnscopedRef").WithArguments("A.ScopedRefAndUnscopedRef(out int)").
WithLocation
(21, 22));
23953
Diagnostic(ErrorCode.ERR_CallArgMixing, "A.UnscopedRefOnly(ref x, ref y)").WithArguments("A.UnscopedRefOnly(ref R, ref R)", "x").
WithLocation
(13, 9),
23956
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "x").WithArguments("x").
WithLocation
(13, 31),
23959
Diagnostic(ErrorCode.ERR_BindToBogus, "ScopedRefAndUnscopedRef").WithArguments("A.ScopedRefAndUnscopedRef(ref R, ref R)").
WithLocation
(17, 11));
24061
Diagnostic(ErrorCode.ERR_CallArgMixing, "A.UnscopedRefOnly(in x, ref y)").WithArguments("A.UnscopedRefOnly(in R, ref R)", "x").
WithLocation
(13, 9),
24064
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "x").WithArguments("x").
WithLocation
(13, 30),
24067
Diagnostic(ErrorCode.ERR_BindToBogus, "ScopedRefAndUnscopedRef").WithArguments("A.ScopedRefAndUnscopedRef(in R, ref R)").
WithLocation
(17, 11));
24293
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(11, 21));
24300
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(10, 21),
24303
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(11, 21),
24306
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(12, 21),
24309
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(13, 21),
24312
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, "UnscopedRef").
WithLocation
(14, 21));
24364
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("i1").
WithLocation
(3, 29),
24367
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F5").WithArguments("r5").
WithLocation
(7, 29));
24423
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("i1").
WithLocation
(3, 29),
24426
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F5").WithArguments("r5").
WithLocation
(7, 29),
24429
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("o1").
WithLocation
(11, 35),
24432
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F5").WithArguments("r5").
WithLocation
(15, 35));
24550
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfTarget, "F1").WithArguments("i1", "D1<int>").
WithLocation
(10, 22),
24553
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfTarget, "F5").WithArguments("r5", "D5<int>").
WithLocation
(14, 22));
24602
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("i").
WithLocation
(3, 38),
24605
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F2").WithArguments("s").
WithLocation
(4, 26),
24608
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfTarget, "F3").WithArguments("o", "D3<object>").
WithLocation
(11, 25));
24629
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("i").
WithLocation
(4, 38),
24632
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F2").WithArguments("s").
WithLocation
(5, 26),
24635
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "F3").WithArguments("o", "D3<object>").
WithLocation
(12, 25));
24683
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("r").
WithLocation
(3, 38),
24686
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F2").WithArguments("r").
WithLocation
(4, 26),
24689
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfTarget, "F3").WithArguments("r", "D3<object>").
WithLocation
(11, 25));
24696
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("r").
WithLocation
(3, 38),
24699
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F2").WithArguments("r").
WithLocation
(4, 26),
24702
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "F3").WithArguments("r", "D3<object>").
WithLocation
(11, 25));
24762
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("i").
WithLocation
(4, 38),
24765
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F2").WithArguments("i").
WithLocation
(5, 38),
24768
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F3").WithArguments("i").
WithLocation
(6, 38),
24771
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("s").
WithLocation
(7, 26),
24774
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F2").WithArguments("s").
WithLocation
(8, 26),
24777
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfOverrideOrImplementation, "F3").WithArguments("s").
WithLocation
(9, 26),
24780
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfTarget, "F1").WithArguments("o", "D2<object>").
WithLocation
(18, 25),
24783
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfTarget, "F2").WithArguments("o", "D3<object>").
WithLocation
(19, 25),
24786
Diagnostic(ErrorCode.WRN_ScopedMismatchInParameterOfTarget, "F3").WithArguments("o", "D4<object>").
WithLocation
(20, 25));
24793
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("i").
WithLocation
(4, 38),
24796
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F2").WithArguments("i").
WithLocation
(5, 38),
24799
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F3").WithArguments("i").
WithLocation
(6, 38),
24802
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F1").WithArguments("s").
WithLocation
(7, 26),
24805
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F2").WithArguments("s").
WithLocation
(8, 26),
24808
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfOverrideOrImplementation, "F3").WithArguments("s").
WithLocation
(9, 26),
24811
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "F1").WithArguments("o", "D2<object>").
WithLocation
(18, 25),
24814
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "F2").WithArguments("o", "D3<object>").
WithLocation
(19, 25),
24817
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "F3").WithArguments("o", "D4<object>").
WithLocation
(20, 25));
24921
Diagnostic(ErrorCode.ERR_CallArgMixing, "A.F2(ref x, ref y)").WithArguments("A.F2(ref R, ref R)", "x").
WithLocation
(9, 9),
24924
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "x").WithArguments("x").
WithLocation
(9, 18),
24927
Diagnostic(ErrorCode.ERR_CallArgMixing, "A.F4(in x, ref y)").WithArguments("A.F4(in R, ref R)", "x").
WithLocation
(17, 9),
24930
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "x").WithArguments("x").
WithLocation
(17, 17));
24993
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F1").
WithLocation
(23, 34),
24996
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F2").
WithLocation
(24, 31),
24999
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F3").
WithLocation
(25, 31),
25002
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "ref _f2").
WithLocation
(26, 39),
25005
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F1").
WithLocation
(38, 34),
25008
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F2").
WithLocation
(39, 31),
25011
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F3").
WithLocation
(40, 31),
25014
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "ref _f4").
WithLocation
(41, 39));
25070
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(8, 6),
25073
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(9, 6),
25076
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(10, 6),
25079
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(11, 6),
25082
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F1").
WithLocation
(23, 34),
25085
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F2").
WithLocation
(24, 31),
25088
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F3").
WithLocation
(25, 31),
25091
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "ref _f2").
WithLocation
(26, 39),
25094
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F1").
WithLocation
(38, 34),
25097
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F2").
WithLocation
(39, 31),
25100
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "F3").
WithLocation
(40, 31),
25103
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "ref _f4").
WithLocation
(41, 39));
25144
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "throw null").
WithLocation
(16, 40),
25147
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "get").
WithLocation
(17, 35),
25150
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "set").
WithLocation
(17, 40),
25153
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "get").
WithLocation
(21, 39),
25156
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "get").
WithLocation
(22, 35),
25159
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "set").
WithLocation
(26, 40),
25162
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeInterfaceImplementation, "set").
WithLocation
(27, 35));
25215
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(5, 6),
25218
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(10, 6),
25221
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(11, 6),
25224
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(16, 6),
25227
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(17, 6));
25253
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(9, 6),
25256
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(10, 6));
25279
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(9, 6),
25282
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(10, 6));
25325
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(10, 6),
25328
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(14, 6),
25331
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(18, 6),
25334
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(22, 6),
25337
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(26, 6),
25340
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(30, 6));
25380
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(11, 31),
25383
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(12, 39),
25386
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(16, 37),
25389
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(17, 45),
25392
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(21, 31),
25395
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(22, 39),
25398
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(26, 37),
25401
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(27, 45));
25431
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(9, 6),
25434
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(13, 36),
25437
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(17, 44));
25464
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(6, 6),
25467
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(10, 6),
25470
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(14, 6));
25508
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(13, 6),
25511
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(14, 6),
25514
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(15, 32),
25517
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(15, 70),
25520
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(16, 37),
25523
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(16, 59),
25526
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(20, 6),
25529
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(21, 6),
25532
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(22, 38),
25535
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(22, 76),
25538
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(23, 43),
25541
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(23, 65));
25570
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(13, 6),
25573
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(14, 6),
25576
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(15, 39),
25579
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(15, 77),
25582
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(16, 44),
25585
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(16, 66));
25615
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(5, 6),
25618
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(16, 6),
25621
Diagnostic(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, "UnscopedRef").
WithLocation
(17, 6));
25671
Diagnostic(ErrorCode.ERR_UnrecognizedRefSafetyRulesAttributeVersion, "A.F1").WithArguments("A.F1(out int)").
WithLocation
(3, 41));
25711
Diagnostic(ErrorCode.ERR_UnrecognizedRefSafetyRulesAttributeVersion, "A.F1").WithArguments("A.F1(out int)").
WithLocation
(3, 41));
25750
Diagnostic(ErrorCode.ERR_UnrecognizedRefSafetyRulesAttributeVersion, "A.F1").WithArguments("A.F1(out int)").
WithLocation
(3, 41));
25787
Diagnostic(ErrorCode.ERR_EscapeCall, "F1(out T t)").WithArguments("Program.F1<T>(out T)", "t").
WithLocation
(4, 33),
25790
Diagnostic(ErrorCode.ERR_RefReturnLocal, "T t").WithArguments("t").
WithLocation
(4, 40));
26224
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "bc").WithArguments("bc").
WithLocation
(42, 15),
26227
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "bc").WithArguments("bc").
WithLocation
(47, 15),
26230
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "bc").WithArguments("bc").
WithLocation
(60, 12),
26233
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "bc").WithArguments("bc").
WithLocation
(64, 12));
26261
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 15),
26264
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(8, 15),
26267
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(8, 22),
26270
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(9, 15),
26273
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(9, 22)
26281
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(8, 22),
26284
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(9, 22)
26351
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 16),
26354
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(8, 16),
26357
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(8, 23),
26360
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(9, 16),
26363
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(9, 23)
26371
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(8, 23),
26374
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(9, 23)
26435
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(2, 7),
26438
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(2, 27),
26441
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(3, 7),
26444
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(3, 28),
26447
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(4, 7),
26450
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(5, 7),
26453
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(5, 14),
26456
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(5, 34),
26459
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(6, 7),
26462
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(6, 14),
26465
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(6, 35)
26473
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(2, 7),
26476
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(2, 27),
26479
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(3, 7),
26482
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(3, 28),
26485
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(5, 14),
26488
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(5, 34),
26491
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(6, 14),
26494
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(6, 35)
26536
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(3, 12),
26539
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(3, 32),
26542
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(4, 16),
26545
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(4, 37),
26548
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(5, 20),
26551
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(6, 24),
26554
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(6, 31),
26557
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(6, 51),
26560
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 28),
26563
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(7, 35),
26566
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(7, 56)
26574
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(3, 12),
26577
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(3, 32),
26580
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(4, 16),
26583
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(4, 37),
26586
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(6, 31),
26589
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(6, 51),
26592
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(7, 35),
26595
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "s1").WithArguments("s1", "using variable").
WithLocation
(7, 56)
26848
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(10, 18),
26851
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(14, 18));
26895
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1").WithArguments("s1").
WithLocation
(11, 22),
26898
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(17, 22)
26925
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 15)
26973
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(7, 16)
27027
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "var").
WithLocation
(7, 22),
27030
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(8, 22),
27033
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(8, 22)
27066
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "var").
WithLocation
(7, 23),
27069
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(8, 23),
27072
Diagnostic(ErrorCode.ERR_ScopedRefAndRefStructOnly, "S<int>").
WithLocation
(8, 23)
27232
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").
WithLocation
(7, 5),
27235
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").
WithLocation
(13, 5),
27238
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").
WithLocation
(19, 5),
27241
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "p2.refField = ref p1.refField").WithArguments("refField", "p1.refField").
WithLocation
(20, 5),
27244
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").
WithLocation
(26, 5),
27247
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "p2.refField = ref p1.refField").WithArguments("refField", "p1.refField").
WithLocation
(27, 5),
27250
Diagnostic(ErrorCode.ERR_EscapeCall, "Inner1(ref p1)").WithArguments("Inner1(ref S)", "s").
WithLocation
(31, 10),
27253
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "p1").WithArguments("p1").
WithLocation
(31, 21),
27256
Diagnostic(ErrorCode.ERR_EscapeCall, "Inner1(ref p1)").WithArguments("Inner1(ref S)", "s").
WithLocation
(41, 10),
27259
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "p1").WithArguments("p1").
WithLocation
(41, 21),
27262
Diagnostic(ErrorCode.ERR_EscapeCall, "Inner1(ref p)").WithArguments("Inner1(ref S)", "s").
WithLocation
(46, 29),
27265
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "p").WithArguments("p").
WithLocation
(46, 40)
27348
Diagnostic(ErrorCode.WRN_RefAssignNarrower, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").
WithLocation
(7, 5),
27351
Diagnostic(ErrorCode.WRN_RefAssignNarrower, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").
WithLocation
(13, 5),
27354
Diagnostic(ErrorCode.WRN_RefAssignNarrower, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").
WithLocation
(19, 5),
27357
Diagnostic(ErrorCode.WRN_RefAssignReturnOnly, "p2.refField = ref p1.refField").WithArguments("refField", "p1.refField").
WithLocation
(20, 5),
27360
Diagnostic(ErrorCode.WRN_RefAssignReturnOnly, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").
WithLocation
(26, 5),
27363
Diagnostic(ErrorCode.WRN_RefAssignReturnOnly, "p2.refField = ref p1.refField").WithArguments("refField", "p1.refField").
WithLocation
(27, 5),
27366
Diagnostic(ErrorCode.WRN_RefReturnOnlyParameter, "p1").WithArguments("p1").
WithLocation
(31, 21),
27369
Diagnostic(ErrorCode.WRN_RefReturnScopedParameter, "p1").WithArguments("p1").
WithLocation
(41, 21),
27372
Diagnostic(ErrorCode.WRN_RefReturnScopedParameter, "p").WithArguments("p").
WithLocation
(46, 40)
27428
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "p.refField = ref this.field").WithArguments("refField", "this.field").
WithLocation
(13, 9),
27431
Diagnostic(ErrorCode.ERR_RefAssignReturnOnly, "p.refField = ref this.field").WithArguments("refField", "this.field").
WithLocation
(19, 9),
27434
Diagnostic(ErrorCode.ERR_EscapeCall, "Inner1(ref this)").WithArguments("S.Inner1(ref S)", "s").
WithLocation
(31, 13),
27437
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(31, 24),
27440
Diagnostic(ErrorCode.ERR_EscapeCall, "Inner1(ref this)").WithArguments("S.Inner1(ref S)", "s").
WithLocation
(36, 13),
27443
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(36, 24));
27497
Diagnostic(ErrorCode.WRN_RefAssignNarrower, "p.refField = ref this.field").WithArguments("refField", "this.field").
WithLocation
(13, 9),
27500
Diagnostic(ErrorCode.WRN_RefAssignReturnOnly, "p.refField = ref this.field").WithArguments("refField", "this.field").
WithLocation
(19, 9),
27503
Diagnostic(ErrorCode.WRN_RefReturnStructThis, "this").
WithLocation
(31, 24),
27506
Diagnostic(ErrorCode.WRN_RefReturnStructThis, "this").
WithLocation
(36, 24));
27566
Diagnostic(ErrorCode.WRN_RefAssignNarrower, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").
WithLocation
(6, 9),
27569
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "p3.refField = ref p1.field").WithArguments("refField", "p1.field").
WithLocation
(9, 9));
27600
Diagnostic(ErrorCode.ERR_EscapeCall, "new RS(ref i)").WithArguments("RS.RS(ref int)", "i").
WithLocation
(13, 16),
27603
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(13, 27));
27629
Diagnostic(ErrorCode.ERR_EscapeCall, "new RS(ref i)").WithArguments("RS.RS(ref int)", "i").
WithLocation
(9, 50),
27632
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "i").WithArguments("i").
WithLocation
(9, 61));
27658
Diagnostic(ErrorCode.ERR_EscapeCall, "new RS(in i)").WithArguments("RS.RS(in int)", "i").
WithLocation
(9, 49),
27661
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter, "i").WithArguments("i").
WithLocation
(9, 59));
27690
Diagnostic(ErrorCode.ERR_EscapeCall, "new RS(ref i.field)").WithArguments("RS.RS(ref int)", "i").
WithLocation
(11, 49),
27693
Diagnostic(ErrorCode.ERR_RefReturnOnlyParameter2, "i").WithArguments("i").
WithLocation
(11, 60));
27757
Diagnostic(ErrorCode.ERR_CallArgMixing, "F2(ref local, out local)").WithArguments("Program.F2(ref R, out R)", "a").
WithLocation
(18, 9),
27760
Diagnostic(ErrorCode.ERR_RefReturnLocal, "local").WithArguments("local").
WithLocation
(18, 16),
27763
Diagnostic(ErrorCode.ERR_CallArgMixing, "F3(in local, out local)").WithArguments("Program.F3(in R, out R)", "a").
WithLocation
(19, 9),
27766
Diagnostic(ErrorCode.ERR_RefReturnLocal, "local").WithArguments("local").
WithLocation
(19, 15)
27831
Diagnostic(ErrorCode.ERR_EscapeCall, "F(stackalloc byte[1])").WithArguments("R.F(System.Span<byte>)", "s").
WithLocation
(4, 31),
27834
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[1]").WithArguments("System.Span<byte>").
WithLocation
(4, 33),
27837
Diagnostic(ErrorCode.ERR_EscapeCall, "F(stackalloc byte[1])").WithArguments("R.F(System.Span<byte>)", "s").
WithLocation
(5, 40),
27840
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[1]").WithArguments("System.Span<byte>").
WithLocation
(5, 42));
27919
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "= 1").
WithLocation
(4, 17),
27922
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "1").
WithLocation
(4, 19),
27925
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "= 2").
WithLocation
(5, 26),
27928
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "2").
WithLocation
(5, 28));
27948
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "= F(stackalloc byte[1])").
WithLocation
(4, 18),
27951
Diagnostic(ErrorCode.ERR_EscapeCall, "F(stackalloc byte[1])").WithArguments("R.F<byte>(System.Span<byte>)", "s").
WithLocation
(4, 20),
27954
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[1]").WithArguments("System.Span<byte>").
WithLocation
(4, 22),
27957
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "= F(stackalloc byte[1])").
WithLocation
(5, 27),
27960
Diagnostic(ErrorCode.ERR_EscapeCall, "F(stackalloc byte[1])").WithArguments("R.F<byte>(System.Span<byte>)", "s").
WithLocation
(5, 29),
27963
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[1]").WithArguments("System.Span<byte>").
WithLocation
(5, 31));
27982
Diagnostic(ErrorCode.ERR_RefFieldCannotReferToRefStruct, "ref readonly Span<int>").
WithLocation
(4, 5),
27985
Diagnostic(ErrorCode.ERR_EscapeCall, "F(stackalloc int[1])").WithArguments("R.F<int>(in System.Span<int>)", "s").
WithLocation
(4, 37),
27988
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "stackalloc int[1]").
WithLocation
(4, 39));
28032
Diagnostic(ErrorCode.ERR_EscapeCall, "F<byte>(out var b1)").WithArguments("R.F<byte>(out byte)", "t").
WithLocation
(4, 24),
28035
Diagnostic(ErrorCode.ERR_RefReturnLocal, "var b1").WithArguments("b1").
WithLocation
(4, 36),
28038
Diagnostic(ErrorCode.ERR_EscapeCall, "F<byte>(out var b2)").WithArguments("R.F<byte>(out byte)", "t").
WithLocation
(5, 33),
28041
Diagnostic(ErrorCode.ERR_RefReturnLocal, "var b2").WithArguments("b2").
WithLocation
(5, 45));
28276
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "F2").WithArguments("y", "<anonymous delegate>").
WithLocation
(12, 14),
28279
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "F3").WithArguments("x", "<anonymous delegate>").
WithLocation
(13, 14),
28282
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "F3").WithArguments("y", "<anonymous delegate>").
WithLocation
(13, 14),
28285
Diagnostic(ErrorCode.ERR_ScopedMismatchInParameterOfTarget, "F3").WithArguments("x", "<anonymous delegate>").
WithLocation
(15, 14));
28316
Diagnostic(ErrorCode.ERR_EscapeCall, "new(ref i1)").WithArguments("RS.RS(ref int)", "i0").
WithLocation
(3, 40),
28319
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "i1").WithArguments("i1").
WithLocation
(3, 48),
28322
Diagnostic(ErrorCode.ERR_EscapeCall, "new(ref i2)").WithArguments("RS.RS(ref int)", "i0").
WithLocation
(6, 16),
28325
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "i2").WithArguments("i2").
WithLocation
(6, 24),
28328
Diagnostic(ErrorCode.ERR_EscapeCall, "new RS(ref i3)").WithArguments("RS.RS(ref int)", "i0").
WithLocation
(9, 40),
28331
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "i3").WithArguments("i3").
WithLocation
(9, 51),
28334
Diagnostic(ErrorCode.ERR_EscapeCall, "new RS(ref i4)").WithArguments("RS.RS(ref int)", "i0").
WithLocation
(12, 16),
28337
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "i4").WithArguments("i4").
WithLocation
(12, 27));
28373
Diagnostic(ErrorCode.ERR_EscapeCall, "new(ref i1)").WithArguments("RS.RS(ref int)", "i0").
WithLocation
(5, 43),
28376
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "i1").WithArguments("i1").
WithLocation
(5, 51),
28379
Diagnostic(ErrorCode.ERR_EscapeCall, "new(ref i2)").WithArguments("RS.RS(ref int)", "i0").
WithLocation
(8, 20),
28382
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "i2").WithArguments("i2").
WithLocation
(8, 28),
28385
Diagnostic(ErrorCode.ERR_EscapeCall, "new RS(ref i3)").WithArguments("RS.RS(ref int)", "i0").
WithLocation
(11, 43),
28388
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "i3").WithArguments("i3").
WithLocation
(11, 54),
28391
Diagnostic(ErrorCode.ERR_EscapeCall, "new RS(ref i4)").WithArguments("RS.RS(ref int)", "i0").
WithLocation
(14, 20),
28394
Diagnostic(ErrorCode.ERR_RefReturnScopedParameter, "i4").WithArguments("i4").
WithLocation
(14, 31));
28435
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s1.RefField = ref value").WithArguments("RefField", "value").
WithLocation
(8, 9),
28438
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s1.RefProperty.RefField = ref value").WithArguments("RefField", "value").
WithLocation
(14, 9),
28441
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s1.RefMethod().RefField = ref value").WithArguments("RefField", "value").
WithLocation
(20, 9));
28512
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s1.RefField = ref value").WithArguments("RefField", "value").
WithLocation
(7, 9),
28515
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s1.RefProperty.RefField = ref value").WithArguments("RefField", "value").
WithLocation
(12, 9),
28518
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s1.RefMethod().RefField = ref value").WithArguments("RefField", "value").
WithLocation
(17, 9),
28521
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "s1.RefField").WithArguments("variable", "s1").
WithLocation
(22, 9),
28524
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s1.RefProperty.RefField = ref value").WithArguments("RefField", "value").
WithLocation
(27, 9),
28527
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s1.RefMethod().RefField = ref value").WithArguments("RefField", "value").
WithLocation
(32, 9),
28530
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "s1.RefField").WithArguments("variable", "s1").
WithLocation
(37, 9),
28533
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s1.RefProperty.RefField = ref value").WithArguments("RefField", "value").
WithLocation
(42, 9),
28536
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s1.RefMethod().RefField = ref value").WithArguments("RefField", "value").
WithLocation
(47, 9));
28582
Diagnostic(ErrorCode.ERR_EscapeCall, "new RefStruct(ref value)").WithArguments("Repro.RefStruct.RefStruct(ref int)", "i").
WithLocation
(7, 14),
28585
Diagnostic(ErrorCode.ERR_RefReturnParameter, "value").WithArguments("value").
WithLocation
(7, 32),
28588
Diagnostic(ErrorCode.ERR_EscapeCall, "new RefStruct(ref value)").WithArguments("Repro.RefStruct.RefStruct(ref int)", "i").
WithLocation
(12, 26),
28591
Diagnostic(ErrorCode.ERR_RefReturnParameter, "value").WithArguments("value").
WithLocation
(12, 44),
28594
Diagnostic(ErrorCode.ERR_EscapeCall, "new RefStruct(ref value)").WithArguments("Repro.RefStruct.RefStruct(ref int)", "i").
WithLocation
(17, 26),
28597
Diagnostic(ErrorCode.ERR_RefReturnParameter, "value").WithArguments("value").
WithLocation
(17, 44),
28600
Diagnostic(ErrorCode.ERR_EscapeCall, "new RefStruct(ref value)").WithArguments("Repro.RefStruct.RefStruct(ref int)", "i").
WithLocation
(22, 26),
28603
Diagnostic(ErrorCode.ERR_RefReturnParameter, "value").WithArguments("value").
WithLocation
(22, 44));
28642
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(10, 14));
28677
Diagnostic(ErrorCode.ERR_EscapeCall, "M1(ref s1, ref s2)").WithArguments("Repro.M1(ref Repro.RefStruct, ref Repro.RefStruct)", "s2").
WithLocation
(14, 20),
28680
Diagnostic(ErrorCode.ERR_RefReturnLocal, "s2").WithArguments("s2").
WithLocation
(14, 35)
28745
Diagnostic(ErrorCode.ERR_CallArgMixing, "M1(ref s1, s2)").WithArguments("Repro.M1(ref Repro.RefStruct, Repro.RefStruct)", "s2").
WithLocation
(14, 20),
28748
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(14, 31)
28790
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "GetReference1(ref s1).RefField = ref value").WithArguments("RefField", "value").
WithLocation
(8, 9),
28793
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "GetReference2(in s1).RefField = ref value").WithArguments("RefField", "value").
WithLocation
(9, 9),
28796
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "GetReference3(out s1).RefField = ref value").WithArguments("RefField", "value").
WithLocation
(10, 9),
28799
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "GetReadonlyReference1(ref s1).RefField").WithArguments("method", "GetReadonlyReference1").
WithLocation
(12, 9),
28802
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "GetReadonlyReference2(in s1).RefField").WithArguments("method", "GetReadonlyReference2").
WithLocation
(13, 9),
28805
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField2, "GetReadonlyReference3(out s1).RefField").WithArguments("method", "GetReadonlyReference3").
WithLocation
(14, 9));
29017
Diagnostic(ErrorCode.ERR_CallArgMixing, ": this(ref s, stackalloc int[1])").WithArguments("A.A(ref System.Span<int>, System.Span<int>)", "y").
WithLocation
(6, 31),
29020
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(6, 45),
29023
Diagnostic(ErrorCode.ERR_CallArgMixing, ": base(ref s, stackalloc int[2])").WithArguments("A.A(ref System.Span<int>, System.Span<int>)", "y").
WithLocation
(11, 31),
29026
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[2]").WithArguments("System.Span<int>").
WithLocation
(11, 45));
29043
Diagnostic(ErrorCode.ERR_CallArgMixing, ": this(x)").WithArguments("R.R(in int)", "i").
WithLocation
(4, 21),
29046
Diagnostic(ErrorCode.ERR_RefReturnParameter, "x").WithArguments("x").
WithLocation
(4, 28));
29073
Diagnostic(ErrorCode.WRN_EscapeStackAlloc, "stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(11, 18));
29105
Diagnostic(ErrorCode.WRN_RefReturnParameter, "i2").WithArguments("i2").
WithLocation
(18, 19));
29149
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "i3").WithArguments("i3").
WithLocation
(24, 20),
29152
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "i4").WithArguments("i4").
WithLocation
(30, 20));
29186
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(19, 39),
29189
Diagnostic(ErrorCode.ERR_EscapeVariable, "r2").WithArguments("r2").
WithLocation
(20, 16));
29224
Diagnostic(ErrorCode.ERR_EscapeVariable, "r").WithArguments("r").
WithLocation
(20, 40),
29227
Diagnostic(ErrorCode.ERR_EscapeVariable, "r2").WithArguments("r2").
WithLocation
(21, 16));
29246
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "r").WithArguments("r").
WithLocation
(5, 31),
29249
Diagnostic(ErrorCode.ERR_UseDefViolation, "r").WithArguments("r").
WithLocation
(5, 31));
29273
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(out _)").WithArguments("Program.F2(out int)", "i").
WithLocation
(5, 20),
29276
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "_").
WithLocation
(5, 27));
29301
Diagnostic(ErrorCode.ERR_EscapeCall, "F2(out _)").WithArguments("Program.F2(out int)", "i").
WithLocation
(6, 20),
29304
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "_").
WithLocation
(6, 27));
29365
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(10, 32));
29391
Diagnostic(ErrorCode.ERR_EscapeCall, "F(x, y switch { Span<int> inner => inner })").WithArguments("Program.F(System.Span<int>, System.Span<int>)", "y").
WithLocation
(12, 13),
29394
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(12, 48));
29418
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(9, 32));
29499
Diagnostic(ErrorCode.ERR_EscapeCall, "F0(ref x1, ref y1)").WithArguments("Program.F0(ref int, ref int)", "y").
WithLocation
(12, 24),
29502
Diagnostic(ErrorCode.ERR_RefReturnParameter, "y1").WithArguments("y1").
WithLocation
(12, 39),
29505
Diagnostic(ErrorCode.WRN_RefReturnParameter, "y2").WithArguments("y2").
WithLocation
(16, 39),
29508
Diagnostic(ErrorCode.WRN_RefReturnParameter, "y3").WithArguments("y3").
WithLocation
(22, 43),
29511
Diagnostic(ErrorCode.WRN_RefReturnParameter, "y4").WithArguments("y4").
WithLocation
(26, 43));
29550
Diagnostic(ErrorCode.WRN_RefReturnParameter, "y1").WithArguments("y1").
WithLocation
(15, 39),
29553
Diagnostic(ErrorCode.WRN_RefReturnParameter, "y2").WithArguments("y2").
WithLocation
(24, 39),
29556
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(27, 2));
Semantics\RefLocalsAndReturnsTests.cs (331)
40
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseLocal, "rx").WithArguments("rx").
WithLocation
(10, 42));
64
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r1 = ref rx").WithArguments("r1", "rx").
WithLocation
(8, 30),
67
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "r1 = ref rx").WithArguments("r1", "rx").
WithLocation
(11, 33));
103
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "rx").
WithLocation
(7, 22),
106
Diagnostic(ErrorCode.WRN_UnreferencedVar, "rx").WithArguments("rx").
WithLocation
(7, 22));
140
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "rd = ref rd.Length").WithArguments("rd", "rd.Length").
WithLocation
(7, 9));
177
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s = ref this").WithArguments("s", "this").
WithLocation
(6, 9),
180
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(7, 9));
199
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "rx = ref (new int[1])[0]").WithArguments("rx").
WithLocation
(8, 21));
218
Diagnostic(ErrorCode.ERR_BadArgType, "rs = ref s").WithArguments("1", "in string", "in object").
WithLocation
(7, 16));
253
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "x").WithArguments("x").
WithLocation
(20, 28));
270
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "ref int").WithArguments("ref for-loop variables", "7.3").
WithLocation
(6, 14));
288
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "ref int").WithArguments("ref foreach iteration variables", "7.3").
WithLocation
(7, 18));
313
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "rro = ref _rw").WithArguments("variable", "rro").
WithLocation
(13, 36),
316
Diagnostic(ErrorCode.ERR_AssgReadonly, "_ro").
WithLocation
(15, 47));
335
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "i").WithArguments("variable", "i").
WithLocation
(5, 37),
338
Diagnostic(ErrorCode.ERR_RefReturnReadonlyNotField, "i").WithArguments("variable", "i").
WithLocation
(6, 43)
382
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "rro = ref _ro").
WithLocation
(12, 20),
385
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "rro = ref rrw").
WithLocation
(13, 20),
388
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "rro = ref _rw").
WithLocation
(16, 28),
393
: ref (rrw = ref _rw)").
WithLocation
(15, 20));
412
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 31));
429
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "x").WithArguments("variable", "x").
WithLocation
(6, 30));
454
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "i").WithArguments("i").
WithLocation
(11, 28));
500
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new int[0]").
WithLocation
(7, 31),
503
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new int[0]").
WithLocation
(10, 40),
506
Diagnostic(ErrorCode.ERR_AssignReadonlyNotField, "new RefEnumerable()").WithArguments("method", "Current.get").
WithLocation
(13, 31));
530
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "(string)o").
WithLocation
(11, 18),
533
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "s").WithArguments("object").
WithLocation
(12, 18));
556
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "ref").WithArguments("ref reassignment", "7.3").
WithLocation
(7, 13),
559
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "ref").WithArguments("ref reassignment", "7.3").
WithLocation
(10, 13),
562
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "ref").WithArguments("ref reassignment", "7.3").
WithLocation
(12, 13));
589
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s = ref s2").WithArguments("s", "s2").
WithLocation
(8, 9),
592
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[10]").WithArguments("System.Span<int>").
WithLocation
(10, 14),
595
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s = ref s3").WithArguments("s", "s3").
WithLocation
(13, 9));
613
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "s = ref s2").WithArguments("s", "s2").
WithLocation
(7, 9));
632
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "s2").
WithLocation
(8, 17));
665
Diagnostic(ErrorCode.ERR_AssgReadonlyStatic, "string.Empty").
WithLocation
(6, 17));
698
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "x").WithArguments("x", "foreach iteration variable").
WithLocation
(21, 13));
718
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "rx = ref y").WithArguments("rx", "y").
WithLocation
(9, 9));
743
Diagnostic(ErrorCode.ERR_QueryOutRefRangeVariable, "c").WithArguments("c").
WithLocation
(12, 22),
746
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "c").
WithLocation
(13, 13));
765
Diagnostic(ErrorCode.ERR_ParamUnassigned, "x").WithArguments("x").
WithLocation
(7, 9));
785
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "x = ref y").WithArguments("x", "y").
WithLocation
(8, 9),
788
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(8, 17));
794
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(8, 17));
815
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "x = ref y").WithArguments("x", "y").
WithLocation
(7, 9),
818
Diagnostic(ErrorCode.ERR_RefAssignNarrower, "x = ref z").WithArguments("x", "z").
WithLocation
(10, 9));
839
Diagnostic(ErrorCode.WRN_RefAssignNarrower, "x = ref y").WithArguments("x", "y").
WithLocation
(7, 9),
842
Diagnostic(ErrorCode.WRN_RefAssignNarrower, "x = ref z").WithArguments("x", "z").
WithLocation
(10, 9)
878
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(10, 9),
881
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(13, 9),
884
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(16, 9),
887
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(18, 9),
890
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(21, 9),
893
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(24, 9));
910
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "this").
WithLocation
(6, 9));
928
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "_f").
WithLocation
(7, 9));
946
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "2 + 3").
WithLocation
(7, 10));
965
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "x").
WithLocation
(8, 9));
985
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "rrx").
WithLocation
(9, 18));
1005
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "M2()").
WithLocation
(8, 9));
1028
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "P").
WithLocation
(8, 9));
1041
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(3, 16));
1060
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "readonly").WithArguments("readonly references", "7.2").
WithLocation
(7, 13));
1078
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "s").WithArguments("object").
WithLocation
(7, 37));
1096
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "x").WithArguments("long").
WithLocation
(7, 35));
1113
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "42").
WithLocation
(6, 34));
1135
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseLocal, "x").WithArguments("x").
WithLocation
(10, 21));
1176
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseLocal, "x").WithArguments("x").
WithLocation
(9, 21));
1215
Diagnostic(ErrorCode.ERR_BadAsyncLocalType, "x").
WithLocation
(7, 26));
1235
Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").
WithLocation
(7, 26));
1266
Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").
WithLocation
(10, 34));
1291
Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").
WithLocation
(10, 34),
1294
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "x").
WithLocation
(10, 34),
1297
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(12, 30));
1321
Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").
WithLocation
(10, 43));
1342
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "ref int x = ref (new int[1])[0];").
WithLocation
(8, 13),
1345
Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").
WithLocation
(8, 21));
1366
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "ref int x = ref (new int[1])[0];").
WithLocation
(8, 13),
1369
Diagnostic(ErrorCode.ERR_BadAsyncLocalType, "x").
WithLocation
(8, 21));
1401
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "rs.X").
WithLocation
(17, 9),
1404
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "rs.X").
WithLocation
(21, 9));
1422
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "rp").
WithLocation
(7, 20));
1449
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "y").WithArguments("variable", "y").
WithLocation
(9, 19),
1452
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "x").WithArguments("2", "ref").
WithLocation
(10, 26),
1455
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "xr").
WithLocation
(14, 26),
1458
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "xr").
WithLocation
(15, 19));
1486
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "42").
WithLocation
(8, 15),
1489
Diagnostic(ErrorCode.ERR_BadArgRef, "xr").WithArguments("1", "ref").
WithLocation
(11, 11),
1492
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "xr").
WithLocation
(12, 15),
1495
Diagnostic(ErrorCode.ERR_BadArgRef, "L2()").WithArguments("1", "ref").
WithLocation
(16, 11),
1498
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "L2()").WithArguments("method", "L2").
WithLocation
(17, 15));
1520
Diagnostic(ErrorCode.ERR_RefReadonlyNotField, "L()").WithArguments("method", "L").
WithLocation
(8, 25),
1523
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "y = x").
WithLocation
(10, 17),
1526
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "x").
WithLocation
(10, 21),
1529
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "x").
WithLocation
(11, 25)
1548
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "x").
WithLocation
(6, 17),
1551
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(6, 17)
1572
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "x = a").
WithLocation
(7, 17)
1593
Diagnostic(ErrorCode.ERR_InitializeByValueVariableWithReference, "y = ref x").
WithLocation
(8, 13)
1637
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "2 + 2").
WithLocation
(6, 20),
1640
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "2").
WithLocation
(11, 20),
1643
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "null").
WithLocation
(16, 20),
1646
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "VoidMethod()").
WithLocation
(23, 20),
1649
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "P1").
WithLocation
(30, 20)
1678
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "2 + 2").
WithLocation
(9, 27),
1681
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "2").
WithLocation
(10, 27),
1684
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "null").
WithLocation
(11, 27),
1687
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "VoidMethod()").
WithLocation
(12, 27),
1690
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "P1").
WithLocation
(13, 27));
1751
Diagnostic(ErrorCode.ERR_RefReturnLocal, "l").WithArguments("l").
WithLocation
(18, 24),
1754
Diagnostic(ErrorCode.ERR_RefReturnLocal2, "l").WithArguments("l").
WithLocation
(28, 24),
1757
Diagnostic(ErrorCode.ERR_RefReturnParameter, "arg1").WithArguments("arg1").
WithLocation
(37, 24),
1760
Diagnostic(ErrorCode.ERR_RefReturnParameter2, "arg2").WithArguments("arg2").
WithLocation
(46, 24)
1805
Diagnostic(ErrorCode.WRN_RefReturnLocal, "l").WithArguments("l").
WithLocation
(13, 20),
1808
Diagnostic(ErrorCode.WRN_RefReturnLocal2, "l").WithArguments("l").
WithLocation
(20, 20),
1811
Diagnostic(ErrorCode.WRN_RefReturnParameter, "arg1").WithArguments("arg1").
WithLocation
(26, 20),
1814
Diagnostic(ErrorCode.WRN_RefReturnParameter2, "arg2").WithArguments("arg2").
WithLocation
(32, 20)
1859
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "ro").WithArguments("ro", "foreach iteration variable").
WithLocation
(13, 30),
1862
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "ro").WithArguments("ro", "foreach iteration variable").
WithLocation
(18, 24),
1865
Diagnostic(ErrorCode.ERR_RefReadonlyLocal2Cause, "ro.x").WithArguments("ro", "foreach iteration variable").
WithLocation
(23, 30),
1868
Diagnostic(ErrorCode.ERR_RefReadonlyLocal2Cause, "ro.x").WithArguments("ro", "foreach iteration variable").
WithLocation
(28, 24)
1901
Diagnostic(ErrorCode.ERR_RefReturnRangeVariable, "ch").WithArguments("ch").
WithLocation
(16, 34),
1904
Diagnostic(ErrorCode.ERR_RefReturnRangeVariable, "s.x").WithArguments("s").
WithLocation
(19, 34)
1952
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "M").WithArguments("M", "method group").
WithLocation
(14, 26),
1955
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "MR").WithArguments("MR", "method group").
WithLocation
(15, 27),
1958
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "M").WithArguments("M", "method group").
WithLocation
(19, 24),
1961
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "MR").WithArguments("MR", "method group").
WithLocation
(23, 24)
2069
Diagnostic(ErrorCode.ERR_RefReadonlyStatic, "s1").
WithLocation
(33, 33),
2072
Diagnostic(ErrorCode.ERR_RefReadonlyStatic2, "s2.x").WithArguments("Test.s2").
WithLocation
(39, 33),
2075
Diagnostic(ErrorCode.ERR_RefReadonly, "i1").
WithLocation
(65, 33),
2078
Diagnostic(ErrorCode.ERR_RefReturnReadonly, "i1").
WithLocation
(68, 24),
2081
Diagnostic(ErrorCode.ERR_RefReadonly2, "i2.x").WithArguments("Test.i2").
WithLocation
(72, 33),
2084
Diagnostic(ErrorCode.ERR_RefReturnReadonly2, "i2.x").WithArguments("Test.i2").
WithLocation
(75, 24),
2087
Diagnostic(ErrorCode.ERR_RefReadonlyStatic, "s1").
WithLocation
(83, 33),
2090
Diagnostic(ErrorCode.ERR_RefReturnReadonlyStatic, "s1").
WithLocation
(86, 24),
2093
Diagnostic(ErrorCode.ERR_RefReadonlyStatic2, "s2.x").WithArguments("Test.s2").
WithLocation
(90, 33),
2096
Diagnostic(ErrorCode.ERR_RefReturnReadonlyStatic2, "s2.x").WithArguments("Test.s2").
WithLocation
(93, 24)
2168
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(10, 24),
2171
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "x").
WithLocation
(15, 24),
2174
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this.x").
WithLocation
(20, 24),
2177
Diagnostic(ErrorCode.ERR_RefReturnLocal, "M1").WithArguments("M1").
WithLocation
(36, 32),
2180
Diagnostic(ErrorCode.ERR_EscapeCall, "Goo(ref M1)").WithArguments("Test.Goo<char>(ref char)", "arg").
WithLocation
(36, 24),
2183
Diagnostic(ErrorCode.ERR_RefReturnLocal2, "M2").WithArguments("M2").
WithLocation
(41, 32),
2186
Diagnostic(ErrorCode.ERR_EscapeCall, "Goo(ref M2.x)").WithArguments("Test.Goo<char>(ref char)", "arg").
WithLocation
(41, 24),
2189
Diagnostic(ErrorCode.ERR_RefReturnLocal, "M2").WithArguments("M2").
WithLocation
(46, 32),
2192
Diagnostic(ErrorCode.ERR_EscapeCall2, "Goo(ref M2)").WithArguments("Test.Goo<Test.S1>(ref Test.S1)", "arg").
WithLocation
(46, 24),
2195
Diagnostic(ErrorCode.ERR_RefReturnThis, "this").
WithLocation
(58, 24)
2276
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(18, 24),
2279
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(28, 24),
2282
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal2, "r").WithArguments("r").
WithLocation
(38, 24),
2285
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(47, 24),
2288
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(56, 24),
2291
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal2, "r").WithArguments("r").
WithLocation
(65, 24)
2349
Diagnostic(ErrorCode.WRN_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(13, 20),
2352
Diagnostic(ErrorCode.WRN_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(20, 20),
2355
Diagnostic(ErrorCode.WRN_RefReturnNonreturnableLocal2, "r").WithArguments("r").
WithLocation
(27, 20),
2358
Diagnostic(ErrorCode.WRN_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(33, 20),
2361
Diagnostic(ErrorCode.WRN_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(39, 20),
2364
Diagnostic(ErrorCode.WRN_RefReturnNonreturnableLocal2, "r").WithArguments("r").
WithLocation
(45, 20)
2432
Diagnostic(ErrorCode.WRN_RefAssignNarrower, "outer = ref r").WithArguments("outer", "r").
WithLocation
(16, 13)
2526
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(19, 24),
2529
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal2, "r").WithArguments("r").
WithLocation
(25, 24),
2532
Diagnostic(ErrorCode.ERR_NameNotInContext, "r").WithArguments("r").
WithLocation
(34, 24),
2535
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "valid").WithArguments("valid").
WithLocation
(43, 24),
2538
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "r").WithArguments("r").
WithLocation
(52, 24),
2541
Diagnostic(ErrorCode.ERR_UseDefViolation, "r").WithArguments("r").
WithLocation
(18, 30),
2544
Diagnostic(ErrorCode.ERR_UseDefViolation, "r").WithArguments("r").
WithLocation
(24, 28),
2547
Diagnostic(ErrorCode.ERR_UseDefViolation, "r").WithArguments("r").
WithLocation
(49, 45)
2581
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").
WithLocation
(14, 13),
2584
Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").
WithLocation
(19, 13),
2587
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Goo").WithArguments("Goo").
WithLocation
(6, 18),
2590
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Goo1").WithArguments("Goo1").
WithLocation
(12, 14),
2593
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Goo2").WithArguments("Goo2").
WithLocation
(17, 18));
2623
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "b").
WithLocation
(9, 50),
2626
Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "c").
WithLocation
(11, 50),
2629
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseLocal, "r").WithArguments("r").
WithLocation
(16, 54),
2632
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseLocal, "r").WithArguments("r").
WithLocation
(17, 46),
2635
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Goo").WithArguments("Goo").
WithLocation
(7, 18),
2638
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Goo1").WithArguments("Goo1").
WithLocation
(9, 14),
2641
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Goo2").WithArguments("Goo2").
WithLocation
(11, 18),
2644
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Moo1").WithArguments("Moo1").
WithLocation
(16, 18),
2647
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Moo3").WithArguments("Moo3").
WithLocation
(17, 14)
2673
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "a[ref i]").WithArguments("object", "int").
WithLocation
(7, 13),
2676
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("1", "ref").
WithLocation
(7, 19),
2679
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "a[out i]").WithArguments("object", "int").
WithLocation
(8, 13),
2682
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("1", "out").
WithLocation
(8, 19),
2685
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("1", "ref").
WithLocation
(9, 22),
2688
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "a2[i, out i]").WithArguments("object", "int").
WithLocation
(10, 13),
2691
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("2", "out").
WithLocation
(10, 23),
2694
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "a2[i, ref i]").WithArguments("object", "int").
WithLocation
(11, 13),
2697
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("2", "ref").
WithLocation
(11, 23),
2700
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "a2[ref i, out i]").WithArguments("object", "int").
WithLocation
(12, 13),
2703
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "i").WithArguments("1", "ref").
WithLocation
(12, 20)
2792
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref x").WithArguments("ref").
WithLocation
(9, 39),
2795
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref a").WithArguments("ref").
WithLocation
(10, 42),
2798
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref a").WithArguments("ref").
WithLocation
(11, 46),
2801
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref a").WithArguments("ref").
WithLocation
(12, 42),
2804
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref a").WithArguments("ref").
WithLocation
(13, 46),
2807
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref a").WithArguments("ref").
WithLocation
(14, 40),
2810
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref b").WithArguments("ref").
WithLocation
(15, 38),
2813
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref a").WithArguments("ref").
WithLocation
(16, 42),
2816
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref i").WithArguments("ref").
WithLocation
(17, 47),
2819
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref i").WithArguments("ref").
WithLocation
(18, 56),
2822
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref i").WithArguments("ref").
WithLocation
(19, 40),
2825
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref i").WithArguments("ref").
WithLocation
(20, 43),
2828
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref i").WithArguments("ref").
WithLocation
(21, 38),
2831
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref i").WithArguments("ref").
WithLocation
(22, 43)
2858
Diagnostic(ErrorCode.ERR_BadIteratorReturnRef, "localFunction").WithArguments("localFunction()").
WithLocation
(9, 17),
2861
Diagnostic(ErrorCode.ERR_BadIteratorReturnRef, "TestFunction").WithArguments("TestClass.TestFunction()").
WithLocation
(5, 13));
2893
Diagnostic(ErrorCode.ERR_BadIteratorReturnRef, "localFunction").WithArguments("localFunction()").
WithLocation
(12, 17),
2896
Diagnostic(ErrorCode.ERR_BadIteratorReturnRef, "TestFunction").WithArguments("TestClass.TestFunction()").
WithLocation
(5, 13));
2919
Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(y) => ref x").
WithLocation
(11, 51));
2942
Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "y => ref x").
WithLocation
(11, 51));
2989
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "RefReturnFunction()").
WithLocation
(32, 71),
2992
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "RefReturnProperty").
WithLocation
(33, 71),
2995
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "this[0]").
WithLocation
(34, 71));
3022
Diagnostic(ErrorCode.ERR_RefReturnRangeVariable, "c").WithArguments("c").
WithLocation
(8, 74),
3025
Diagnostic(ErrorCode.ERR_RefReturnRangeVariable, "c").WithArguments("c").
WithLocation
(14, 76)
3053
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "intVar").WithArguments("int?").
WithLocation
(12, 43),
3056
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "intVar").WithArguments("dynamic").
WithLocation
(13, 45),
3059
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "stringVar").WithArguments("System.Collections.Generic.IEnumerable<char>").
WithLocation
(14, 58),
3062
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "stringVar").WithArguments("System.IFormattable").
WithLocation
(15, 61));
3094
Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "z").
WithLocation
(13, 21),
3097
Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "y").
WithLocation
(8, 17));
3121
Diagnostic(ErrorCode.ERR_BadAsyncLocalType, "y").
WithLocation
(8, 17),
3124
Diagnostic(ErrorCode.ERR_BadAsyncLocalType, "z").
WithLocation
(11, 21));
3161
Diagnostic(ErrorCode.ERR_RefReturningCallAndAwait, "Save(await Task.FromResult(0))").WithArguments("TestClass.Save(int)").
WithLocation
(26, 19)
3183
Diagnostic(ErrorCode.ERR_RefProperty, "P").
WithLocation
(8, 26));
3204
Diagnostic(ErrorCode.ERR_RefProperty, "this[0]").
WithLocation
(8, 26));
3227
Diagnostic(ErrorCode.ERR_BadEventUsageNoField, "d").WithArguments("Program.d").
WithLocation
(10, 26));
3248
Diagnostic(ErrorCode.ERR_RefReadonly, "i").
WithLocation
(8, 26));
3275
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "rl").WithArguments("rl").
WithLocation
(14, 20)
3300
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "L()").
WithLocation
(11, 26)
3322
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "d()").
WithLocation
(8, 26)
3344
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "rl").WithArguments("rl").
WithLocation
(8, 20)
3364
Diagnostic(ErrorCode.ERR_RefReadonlyLocal, "this").WithArguments("this").
WithLocation
(6, 26)
3384
Diagnostic(ErrorCode.ERR_RefAssignmentMustHaveIdentityConversion, "i").WithArguments("int").
WithLocation
(6, 26)
3413
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseLocal, "rl").WithArguments("rl").
WithLocation
(13, 41),
3416
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseLocal, "rl").WithArguments("rl").
WithLocation
(14, 25),
3419
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseLocal, "rl").WithArguments("rl").
WithLocation
(15, 47));
3440
Diagnostic(ErrorCode.ERR_BadAsyncLocalType, "i").
WithLocation
(8, 17),
3443
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Goo").
WithLocation
(6, 23));
3467
Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "i").
WithLocation
(10, 17));
3486
Diagnostic(ErrorCode.ERR_InitializeByValueVariableWithReference, "l = ref i").
WithLocation
(6, 13)
3506
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "rl = i").
WithLocation
(6, 17));
3525
Diagnostic(ErrorCode.ERR_RefReturnParameter, "i").WithArguments("i").
WithLocation
(6, 20));
3545
Diagnostic(ErrorCode.ERR_RefReturnLocal, "i").WithArguments("i").
WithLocation
(7, 20));
3566
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "P").
WithLocation
(8, 20));
3587
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "this[0]").
WithLocation
(8, 20));
3610
Diagnostic(ErrorCode.ERR_BadEventUsageNoField, "d").WithArguments("Program.d").
WithLocation
(10, 20));
3633
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "d").
WithLocation
(10, 20)
3655
Diagnostic(ErrorCode.ERR_RefReturnReadonly, "i").
WithLocation
(8, 20)
3682
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "i").
WithLocation
(13, 20)
3707
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "L()").
WithLocation
(11, 20));
3728
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, "d()").
WithLocation
(8, 20));
3749
Diagnostic(ErrorCode.ERR_RefReturnParameter, "i").WithArguments("i").
WithLocation
(8, 26),
3752
Diagnostic(ErrorCode.ERR_EscapeCall, "d(ref i, ref j, o)").WithArguments("D.Invoke(ref int, ref int, object)", "i").
WithLocation
(8, 20)
3773
Diagnostic(ErrorCode.ERR_RefReturnLocal, "j").WithArguments("j").
WithLocation
(7, 26),
3776
Diagnostic(ErrorCode.ERR_EscapeCall, "M(ref j)").WithArguments("Program.M(ref int)", "i").
WithLocation
(7, 20)
3796
Diagnostic(ErrorCode.ERR_RefReturnStructThis, "this").
WithLocation
(6, 20));
3815
Diagnostic(ErrorCode.ERR_RefReturnThis, "this").
WithLocation
(6, 20)
3835
Diagnostic(ErrorCode.ERR_RefReturnMustHaveIdentityConversion, "i").WithArguments("int").
WithLocation
(6, 20));
3854
Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").
WithLocation
(6, 9));
3873
Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").
WithLocation
(6, 9));
3892
Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").
WithLocation
(6, 9)
3931
Diagnostic(ErrorCode.ERR_BadIteratorReturnRef, "ObjEnumerator").WithArguments("C.ObjEnumerator()").
WithLocation
(7, 28),
3934
Diagnostic(ErrorCode.ERR_BadIteratorReturnRef, "ObjEnumerable").WithArguments("C.ObjEnumerable()").
WithLocation
(12, 28),
3937
Diagnostic(ErrorCode.ERR_BadIteratorReturnRef, "GenEnumerator").WithArguments("C.GenEnumerator()").
WithLocation
(17, 33),
3940
Diagnostic(ErrorCode.ERR_BadIteratorReturnRef, "GenEnumerable").WithArguments("C.GenEnumerable()").
WithLocation
(22, 33));
3967
Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "() => ref field").
WithLocation
(13, 27),
3970
Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(int i) => ref field").
WithLocation
(14, 27));
4001
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "c.P").
WithLocation
(16, 32),
4004
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "c[0]").
WithLocation
(17, 18),
4007
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "c.M()").
WithLocation
(18, 18));
4054
Diagnostic(ErrorCode.ERR_RefReturningCallAndAwait, "S.Instance").WithArguments("S.Instance.get").
WithLocation
(32, 17),
4057
Diagnostic(ErrorCode.ERR_RefReturningCallAndAwait, "Assign(ref temp, 0)").WithArguments("C.Assign(ref int, int)").
WithLocation
(33, 28)
4105
Diagnostic(ErrorCode.ERR_RefReturningCallAndAwait, "Save(1)").WithArguments("TestClass.Save(int)").
WithLocation
(28, 9),
4108
Diagnostic(ErrorCode.ERR_RefReturningCallAndAwait, "inst[1, 2]").WithArguments("TestClass.this[int, int].get").
WithLocation
(36, 9)
4126
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "p").
WithLocation
(5, 30)
4146
Diagnostic(ErrorCode.ERR_BadIteratorArgType, "p").
WithLocation
(5, 36)
4164
Diagnostic(ErrorCode.ERR_BadIteratorArgType, "p").
WithLocation
(5, 50));
4183
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(9, 11));
4207
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref int").
WithLocation
(10, 15),
4210
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref var").
WithLocation
(11, 15),
4213
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref int").
WithLocation
(13, 15),
4216
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref var").
WithLocation
(14, 15));
4240
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly int").
WithLocation
(10, 15),
4243
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly var").
WithLocation
(11, 15),
4246
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly int").
WithLocation
(13, 15),
4249
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref readonly var").
WithLocation
(14, 15));
4269
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(10, 15),
4272
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(10, 15));
4292
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "in").WithArguments("in").
WithLocation
(10, 15),
4295
Diagnostic(ErrorCode.ERR_SyntaxError, "in").WithArguments(",").
WithLocation
(10, 15),
4298
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(10, 18),
4301
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(10, 22));
4318
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "a").
WithLocation
(6, 9));
4335
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "void").WithArguments("void").
WithLocation
(6, 12));
4352
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "array[0]").
WithLocation
(6, 9));
4380
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "*ptr").
WithLocation
(6, 9));
4408
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "ptr[0]").
WithLocation
(6, 9));
4436
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "__refvalue(__makeref(x), int)").
WithLocation
(6, 9));
4464
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "d[0]").
WithLocation
(6, 9));
4492
Diagnostic(ErrorCode.ERR_RefLocalOrParamExpected, "d.member").
WithLocation
(6, 9));
4523
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "object").WithArguments("object").
WithLocation
(8, 13),
4526
Diagnostic(ErrorCode.ERR_InvalidAnonymousTypeMemberDeclarator, "object = ref value").
WithLocation
(8, 13));
4574
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "y").WithArguments("y").
WithLocation
(8, 20),
4577
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "y").WithArguments("y").
WithLocation
(16, 24));
4627
Diagnostic(ErrorCode.ERR_RefReturnNonreturnableLocal, "z").WithArguments("z").
WithLocation
(19, 18));
4650
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "c.P = true").
WithLocation
(6, 20),
4653
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "c.P").
WithLocation
(6, 20)
4688
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "Value").
WithLocation
(11, 46)
4723
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "1").
WithLocation
(11, 46),
4726
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "2").
WithLocation
(11, 49),
4729
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "3").
WithLocation
(11, 52)
4750
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(3, 8),
4753
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(4, 7)
4775
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(7, 10),
4778
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(7, 21)
4801
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(7, 10),
4804
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref var (b, c)").WithArguments("ref").
WithLocation
(7, 21),
4807
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(7, 21),
4810
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(8, 10)
4848
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(3, 2),
4851
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(4, 2),
4854
Diagnostic(ErrorCode.ERR_DeconstructVariableCannotBeByRef, "ref").
WithLocation
(4, 13)
4887
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(2, 7),
4890
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(3, 7),
4893
Diagnostic(ErrorCode.ERR_OutVariableCannotBeByRef, "ref var").
WithLocation
(4, 7)
Semantics\ScriptSemanticsTests.cs (39)
105
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "").WithArguments("System.Threading.Tasks.Task<object>", "GetAwaiter").
WithLocation
(1, 1));
146
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
149
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "interface I {}").WithArguments("System.Object").
WithLocation
(1, 1),
152
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "").WithArguments("System.Void").
WithLocation
(1, 1));
196
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "").WithArguments("System.Threading.Tasks.Task<object>", "GetAwaiter").
WithLocation
(1, 1));
302
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "1").WithArguments("System.Object").
WithLocation
(1, 1),
304
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Object").
WithLocation
(1, 1),
306
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Threading.Tasks.Task`1").
WithLocation
(1, 1),
308
Diagnostic(ErrorCode.ERR_GlobalSingleTypeNameNotFound).WithArguments("System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").
WithLocation
(1, 1),
311
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "").WithArguments("System.Object").
WithLocation
(1, 1),
313
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Object").
WithLocation
(1, 1),
316
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "1").WithArguments("System.Int32").
WithLocation
(1, 1));
957
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x").WithArguments("x").
WithLocation
(1, 22)
980
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "e").WithArguments("e").
WithLocation
(9, 16),
983
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "c").WithArguments("c").
WithLocation
(5, 16));
1005
Diagnostic(ErrorCode.ERR_UseDefViolation, "e").WithArguments("e").
WithLocation
(10, 13),
1008
Diagnostic(ErrorCode.ERR_UseDefViolation, "c").WithArguments("c").
WithLocation
(6, 13));
1038
Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").
WithLocation
(1, 1));
1049
Diagnostic(ErrorCode.ERR_FixedNeeded, "&x").
WithLocation
(1, 1));
1062
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsBadCoalesce, "null").
WithLocation
(1, 65));
1140
Diagnostic(ErrorCode.ERR_FixedNotInStruct, "x").
WithLocation
(1, 11),
1143
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x[3]").
WithLocation
(1, 11)
1160
Diagnostic(ErrorCode.ERR_SyntaxError, "=").WithArguments(",").
WithLocation
(1, 16),
1163
Diagnostic(ErrorCode.ERR_FixedNotInStruct, "x").
WithLocation
(1, 11),
1166
Diagnostic(ErrorCode.ERR_IllegalFixedType, "var").
WithLocation
(1, 7),
1169
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x[3]").
WithLocation
(1, 11)
1190
Diagnostic(ErrorCode.ERR_GlobalStatement, "System.Console.WriteLine(1);").
WithLocation
(1, 1)
1202
Diagnostic(ErrorCode.ERR_GlobalStatement, "System.Console.WriteLine(1);").
WithLocation
(1, 1),
1204
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1)
1234
Diagnostic(ErrorCode.ERR_BadCompilationOptionValue).WithArguments("ScriptClassName", "").
WithLocation
(1, 1)
1284
Diagnostic(ErrorCode.ERR_GlobalStatement, "System.Console.WriteLine(1);").
WithLocation
(2, 1)
1296
Diagnostic(ErrorCode.ERR_GlobalStatement, "System.Console.WriteLine(1);").
WithLocation
(2, 1)
1319
Diagnostic(ErrorCode.ERR_GlobalStatement, "System.Console.WriteLine(out var x, x);").
WithLocation
(1, 1)
1331
Diagnostic(ErrorCode.ERR_GlobalStatement, "System.Console.WriteLine(out var x, x);").
WithLocation
(1, 1),
1333
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1)
1348
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "x").WithArguments("x").
WithLocation
(1, 34)
1363
Diagnostic(ErrorCode.ERR_RecursivelyTypedVariable, "x").WithArguments("x").
WithLocation
(1, 34)
1380
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableCannotBeConst, "var").
WithLocation
(1, 27),
1383
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "F").WithArguments("F()").
WithLocation
(1, 35)
Semantics\SemanticAnalyzerTests.cs (149)
110
Diagnostic(ErrorCode.ERR_BadSKknown, "N").WithArguments("N", "namespace", "variable").
WithLocation
(8, 18),
113
Diagnostic(ErrorCode.ERR_BadSKunknown, "N.D").WithArguments("N.D", "type").
WithLocation
(9, 18),
116
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("C.x").
WithLocation
(5, 16),
119
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("N.D.x", "0").
WithLocation
(2, 43));
140
Diagnostic(ErrorCode.ERR_IntDivByZero, "10 / 0").
WithLocation
(6, 17),
143
Diagnostic(ErrorCode.ERR_IntDivByZero, "10m % 0m").
WithLocation
(8, 21),
146
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(7, 16));
164
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(6, 9),
167
Diagnostic(ErrorCode.ERR_IllegalStatement, "x").
WithLocation
(6, 9));
197
Diagnostic(ErrorCode.ERR_VarDeclIsStaticClass, "D1").WithArguments("D1").
WithLocation
(7, 9),
200
Diagnostic(ErrorCode.ERR_ArrayOfStaticClass, "D2").WithArguments("D2").
WithLocation
(8, 9),
203
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "D3").WithArguments("D3").
WithLocation
(9, 11),
206
Diagnostic(ErrorCode.ERR_ArrayOfStaticClass, "D4").WithArguments("D4").
WithLocation
(10, 11),
209
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x1").WithArguments("x1").
WithLocation
(7, 12),
212
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x2").WithArguments("x2").
WithLocation
(8, 14),
215
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x3").WithArguments("x3").
WithLocation
(9, 15),
218
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x4").WithArguments("x4").
WithLocation
(10, 17));
455
Diagnostic(ErrorCode.ERR_ExtensionAttrNotFound, "this").WithArguments("System.Runtime.CompilerServices.ExtensionAttribute").
WithLocation
(69, 28),
458
Diagnostic(ErrorCode.ERR_ExtensionAttrNotFound, "this").WithArguments("System.Runtime.CompilerServices.ExtensionAttribute").
WithLocation
(84, 29),
461
Diagnostic(ErrorCode.ERR_ExtensionAttrNotFound, "this").WithArguments("System.Runtime.CompilerServices.ExtensionAttribute").
WithLocation
(80, 33),
464
Diagnostic(ErrorCode.ERR_ExtensionAttrNotFound, "this").WithArguments("System.Runtime.CompilerServices.ExtensionAttribute").
WithLocation
(76, 28),
467
Diagnostic(ErrorCode.ERR_AmbigCall, "Ambiguous").WithArguments("P.Ambiguous(string, object)", "P.Ambiguous(object, string)").
WithLocation
(95, 11),
470
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Blah").WithArguments("P", "Blah").
WithLocation
(113, 11),
473
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "Generic").WithArguments("P.Generic<T>()").
WithLocation
(118, 11),
476
Diagnostic(ErrorCode.ERR_BadArity, "Generic<int, int>").WithArguments("P.Generic<T>()", "method", "1").
WithLocation
(122, 11),
479
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "NotGeneric<int, int>").WithArguments("P.NotGeneric()", "method").
WithLocation
(125, 11),
482
Diagnostic(ErrorCode.ERR_BadNamedArgument, "frob").WithArguments("NoParameter", "frob").
WithLocation
(134, 23),
485
Diagnostic(ErrorCode.ERR_BadArgCount, "NoParameter").WithArguments("NoParameter", "2").
WithLocation
(160, 11),
488
Diagnostic(ErrorCode.ERR_BadArgType, "123.456").WithArguments("1", "double", "int").
WithLocation
(165, 24),
491
Diagnostic(ErrorCode.ERR_BadArgRef, "1234").WithArguments("1", "ref").
WithLocation
(178, 28),
494
Diagnostic(ErrorCode.ERR_BadArgRef, "4567").WithArguments("2", "ref").
WithLocation
(178, 34),
497
Diagnostic(ErrorCode.ERR_BadArgType, "1234.4567").WithArguments("3", "double", "int").
WithLocation
(178, 40),
500
Diagnostic(ErrorCode.ERR_BadArgType, "null").WithArguments("1", "<null>", "ref int").
WithLocation
(184, 30),
503
Diagnostic(ErrorCode.ERR_BadArgType, "p.ToString").WithArguments("2", "method group", "ref int").
WithLocation
(184, 36),
506
Diagnostic(ErrorCode.ERR_BadArgRef, "12345.67").WithArguments("3", "ref").
WithLocation
(184, 48),
509
Diagnostic(ErrorCode.ERR_BadArgRef, "456").WithArguments("1", "ref").
WithLocation
(190, 24),
512
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "local").WithArguments("1", "out").
WithLocation
(195, 28),
515
Diagnostic(ErrorCode.ERR_BadArgRef, "local").WithArguments("1", "ref").
WithLocation
(199, 28),
518
Diagnostic(ErrorCode.ERR_ObjectProhibited, "p.StaticMethod").WithArguments("P.StaticMethod()").
WithLocation
(216, 9),
521
Diagnostic(ErrorCode.ERR_ObjectRequired, "P.NoParameter").WithArguments("P.NoParameter()").
WithLocation
(219, 9),
524
Diagnostic(ErrorCode.ERR_ObjectRequired, "InstanceMethod").WithArguments("C.InstanceMethod()").
WithLocation
(223, 9)
594
Diagnostic(ErrorCode.WRN_NewRequired, "Q").WithArguments("B.Q", "A.Q()").
WithLocation
(18, 16),
597
Diagnostic(ErrorCode.WRN_NewRequired, "R").WithArguments("B.R", "A.R()").
WithLocation
(19, 23),
600
Diagnostic(ErrorCode.WRN_NewRequired, "S").WithArguments("B.S", "A.S()").
WithLocation
(20, 16),
603
Diagnostic(ErrorCode.WRN_NewRequired, "T").WithArguments("B.T()", "A.T").
WithLocation
(21, 24),
606
Diagnostic(ErrorCode.WRN_NewRequired, "U").WithArguments("B.U()", "A.U").
WithLocation
(22, 17),
609
Diagnostic(ErrorCode.WRN_NewRequired, "V").WithArguments("B.V()", "A.V").
WithLocation
(23, 24),
612
Diagnostic(ErrorCode.WRN_NewRequired, "W").WithArguments("B.W()", "A.W").
WithLocation
(24, 17),
615
Diagnostic(ErrorCode.WRN_NewRequired, "P").WithArguments("B.P", "A.P()").
WithLocation
(17, 23),
618
Diagnostic(ErrorCode.ERR_BadArgType, "B.T").WithArguments("1", "method group", "int").
WithLocation
(45, 11),
621
Diagnostic(ErrorCode.ERR_BadArgType, "B.U").WithArguments("1", "method group", "int").
WithLocation
(46, 11),
624
Diagnostic(ErrorCode.ERR_BadArgType, "b.V").WithArguments("1", "method group", "int").
WithLocation
(47, 11),
627
Diagnostic(ErrorCode.ERR_BadArgType, "b.W").WithArguments("1", "method group", "int").
WithLocation
(48, 11),
630
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "B.T").WithArguments("T", "method group").
WithLocation
(54, 9),
633
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "B.U").WithArguments("U", "method group").
WithLocation
(55, 9),
636
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "b.V").WithArguments("V", "method group").
WithLocation
(56, 9),
639
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "b.W").WithArguments("W", "method group").
WithLocation
(57, 9));
687
Diagnostic(ErrorCode.ERR_ReturnExpected, "GetS").WithArguments("C.GetS(N.Q<string, double>?[][*,*][*,*,*], int?)").
WithLocation
(7, 7),
690
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "null").
WithLocation
(12, 9),
693
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "M").WithArguments("M", "method group").
WithLocation
(13, 9),
696
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "x").
WithLocation
(14, 9),
699
Diagnostic(ErrorCode.ERR_BadSKknown, "N").WithArguments("N", "namespace", "variable").
WithLocation
(15, 9),
702
Diagnostic(ErrorCode.ERR_BadSKknown, "C").WithArguments("C", "type", "variable").
WithLocation
(16, 9),
705
Diagnostic(ErrorCode.ERR_AssgReadonlyStatic2, "static_readonly.z").WithArguments("C.static_readonly").
WithLocation
(17, 9),
708
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "GetS(null, null)").WithArguments("C.GetS(N.Q<string, double>?[][*,*][*,*,*], int?)").
WithLocation
(18, 9),
711
Diagnostic(ErrorCode.ERR_AssgReadonly, "instance_readonly").
WithLocation
(24, 9),
714
Diagnostic(ErrorCode.ERR_NoImplicitConv, "M()").WithArguments("void", "int").
WithLocation
(31, 18),
717
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(32, 18),
720
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "l1").WithArguments("long", "int").
WithLocation
(34, 18),
723
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "M").WithArguments("M", "int").
WithLocation
(35, 18),
726
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "this").WithArguments("this").
WithLocation
(36, 9)
749
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "Property").WithArguments("C.Property").
WithLocation
(8, 9),
752
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "Get()").WithArguments("C.Get()").
WithLocation
(9, 9));
807
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "123").
WithLocation
(27, 24),
810
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "x").
WithLocation
(28, 24),
813
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "y + y").
WithLocation
(33, 24),
816
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "null").
WithLocation
(35, 24),
819
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "M").WithArguments("M", "method group").
WithLocation
(36, 24),
822
Diagnostic(ErrorCode.ERR_BadSKknown, "C").WithArguments("C", "type", "variable").
WithLocation
(37, 24),
825
Diagnostic(ErrorCode.WRN_UnreferencedField, "static_readonly").WithArguments("C.static_readonly").
WithLocation
(12, 33),
828
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "z").WithArguments("C.S.z", "0").
WithLocation
(4, 35));
848
Diagnostic(ErrorCode.ERR_ObjectRequired, "instanceField").WithArguments("C.instanceField").
WithLocation
(7, 17),
851
Diagnostic(ErrorCode.ERR_ThisInStaticMeth, "this").
WithLocation
(8, 13),
854
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "instanceField").WithArguments("C.instanceField", "0").
WithLocation
(4, 9));
931
Diagnostic(ErrorCode.ERR_LocalDuplicate, "i").WithArguments("i").
WithLocation
(9, 17),
934
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "q").WithArguments("q").
WithLocation
(6, 16),
937
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i").WithArguments("i").
WithLocation
(7, 13),
940
Diagnostic(ErrorCode.WRN_UnreferencedVar, "j").WithArguments("j").
WithLocation
(8, 13),
943
Diagnostic(ErrorCode.WRN_UnreferencedVar, "k").WithArguments("k").
WithLocation
(9, 14),
946
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i").WithArguments("i").
WithLocation
(9, 17));
1008
Diagnostic(ErrorCode.ERR_BadArgType, "false").WithArguments("1", "bool", "E").
WithLocation
(10, 11),
1011
Diagnostic(ErrorCode.ERR_BadArgType, "(char)(One - 1)").WithArguments("1", "char", "E").
WithLocation
(11, 11),
1014
Diagnostic(ErrorCode.ERR_BadArgType, "(F)(One - 1)").WithArguments("1", "F", "E").
WithLocation
(24, 11),
1017
Diagnostic(ErrorCode.ERR_BadArgType, "Null").WithArguments("1", "object", "E").
WithLocation
(25, 11),
1020
Diagnostic(ErrorCode.ERR_BadArgType, "null").WithArguments("1", "<null>", "E").
WithLocation
(26, 11),
1023
Diagnostic(ErrorCode.ERR_BadArgType, "F.Zero").WithArguments("1", "F", "E").
WithLocation
(29, 11),
1026
Diagnostic(ErrorCode.ERR_BadArgType, "true").WithArguments("1", "bool", "E").
WithLocation
(31, 11),
1029
Diagnostic(ErrorCode.ERR_BadArgType, "(char)One").WithArguments("1", "char", "E").
WithLocation
(32, 11),
1032
Diagnostic(ErrorCode.ERR_BadArgType, "(sbyte)One").WithArguments("1", "sbyte", "E").
WithLocation
(33, 11),
1035
Diagnostic(ErrorCode.ERR_BadArgType, "(byte)One").WithArguments("1", "byte", "E").
WithLocation
(34, 11),
1038
Diagnostic(ErrorCode.ERR_BadArgType, "(short)One").WithArguments("1", "short", "E").
WithLocation
(35, 11),
1041
Diagnostic(ErrorCode.ERR_BadArgType, "(ushort)One").WithArguments("1", "ushort", "E").
WithLocation
(36, 11),
1044
Diagnostic(ErrorCode.ERR_BadArgType, "(int)One").WithArguments("1", "int", "E").
WithLocation
(37, 11),
1047
Diagnostic(ErrorCode.ERR_BadArgType, "(uint)One").WithArguments("1", "uint", "E").
WithLocation
(38, 11),
1050
Diagnostic(ErrorCode.ERR_BadArgType, "(long)One").WithArguments("1", "long", "E").
WithLocation
(39, 11),
1053
Diagnostic(ErrorCode.ERR_BadArgType, "(ulong)One").WithArguments("1", "ulong", "E").
WithLocation
(40, 11),
1056
Diagnostic(ErrorCode.ERR_BadArgType, "(decimal)One").WithArguments("1", "decimal", "E").
WithLocation
(41, 11),
1059
Diagnostic(ErrorCode.ERR_BadArgType, "(float)One").WithArguments("1", "float", "E").
WithLocation
(42, 11),
1062
Diagnostic(ErrorCode.ERR_BadArgType, "(double)One").WithArguments("1", "double", "E").
WithLocation
(43, 11),
1065
Diagnostic(ErrorCode.ERR_BadArgType, "(F)One").WithArguments("1", "F", "E").
WithLocation
(45, 11),
1068
Diagnostic(ErrorCode.ERR_BadArgType, "new object()").WithArguments("1", "object", "E").
WithLocation
(46, 11),
1071
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "E").
WithLocation
(47, 11),
1074
Diagnostic(ErrorCode.ERR_BadArgType, "F.One").WithArguments("1", "F", "E").
WithLocation
(49, 11));
1137
Diagnostic(ErrorCode.ERR_NoImplicitConv, "false").WithArguments("bool", "E").
WithLocation
(11, 13),
1140
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(char)(One - 1)").WithArguments("char", "E").
WithLocation
(12, 13),
1143
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(F)(One - 1)").WithArguments("F", "E").
WithLocation
(25, 13),
1146
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "Null").WithArguments("object", "E").
WithLocation
(26, 13),
1149
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("E").
WithLocation
(27, 13),
1152
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "F.Zero").WithArguments("F", "E").
WithLocation
(30, 13),
1155
Diagnostic(ErrorCode.ERR_NoImplicitConv, "true").WithArguments("bool", "E").
WithLocation
(32, 13),
1158
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(char)One").WithArguments("char", "E").
WithLocation
(33, 13),
1161
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(sbyte)One").WithArguments("sbyte", "E").
WithLocation
(34, 13),
1164
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(byte)One").WithArguments("byte", "E").
WithLocation
(35, 13),
1167
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(short)One").WithArguments("short", "E").
WithLocation
(36, 13),
1170
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(ushort)One").WithArguments("ushort", "E").
WithLocation
(37, 13),
1173
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(int)One").WithArguments("int", "E").
WithLocation
(38, 13),
1176
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(uint)One").WithArguments("uint", "E").
WithLocation
(39, 13),
1179
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(long)One").WithArguments("long", "E").
WithLocation
(40, 13),
1182
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(ulong)One").WithArguments("ulong", "E").
WithLocation
(41, 13),
1185
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(decimal)One").WithArguments("decimal", "E").
WithLocation
(42, 13),
1188
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(float)One").WithArguments("float", "E").
WithLocation
(43, 13),
1191
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(double)One").WithArguments("double", "E").
WithLocation
(44, 13),
1194
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "(F)One").WithArguments("F", "E").
WithLocation
(46, 13),
1197
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "new object()").WithArguments("object", "E").
WithLocation
(47, 13),
1200
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1").WithArguments("int", "E").
WithLocation
(48, 13),
1203
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "F.One").WithArguments("F", "E").
WithLocation
(50, 13));
1223
Diagnostic(ErrorCode.ERR_NoBreakOrCont, "break;").
WithLocation
(8, 13));
1279
Diagnostic(ErrorCode.ERR_ArrayInitializerIncorrectLength, "{ 1, 2, 3 }").WithArguments("2").
WithLocation
(8, 38),
1282
Diagnostic(ErrorCode.ERR_ArrayInitializerExpected, "4").
WithLocation
(9, 41),
1285
Diagnostic(ErrorCode.ERR_ArrayInitializerExpected, "5").
WithLocation
(9, 44),
1288
Diagnostic(ErrorCode.ERR_ArrayInitializerExpected, "6").
WithLocation
(9, 47),
1291
Diagnostic(ErrorCode.ERR_ArrayInitializerIncorrectLength, "{ 9 }").WithArguments("2").
WithLocation
(10, 51),
1294
Diagnostic(ErrorCode.ERR_ConstantExpected, "x").
WithLocation
(14, 35),
1297
Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 13, 14 }").
WithLocation
(15, 40),
1300
Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 15, 16 }").
WithLocation
(15, 52),
1303
Diagnostic(ErrorCode.ERR_BadSKknown, "System").WithArguments("System", "namespace", "variable").
WithLocation
(17, 35),
1306
Diagnostic(ErrorCode.ERR_BadSKunknown, "System.Int64").WithArguments("long", "type").
WithLocation
(18, 39),
1309
Diagnostic(ErrorCode.ERR_ArrayInitToNonArrayType, "{ 17, 18, 19 }").
WithLocation
(19, 26),
1312
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "P").WithArguments("C.P").
WithLocation
(21, 40));
Semantics\SemanticErrorTests.cs (996)
287
Diagnostic(ErrorCode.ERR_BadBinaryOps, "p.bar + far").WithArguments("+", "method group", "method group").
WithLocation
(11, 16),
290
Diagnostic(ErrorCode.ERR_BadBinaryOps, @"(x) => { System.Console.WriteLine(""Lambda:{0}"", x); } + far").WithArguments("+", "lambda expression", "method group").
WithLocation
(12, 16),
293
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "+").WithArguments("+").
WithLocation
(12, 70),
296
Diagnostic(ErrorCode.ERR_BadBinaryOps, @"delegate (int x) { System.Console.WriteLine(""Anonymous:{0}"", x); } + far").WithArguments("+", "anonymous method", "method group").
WithLocation
(13, 16),
299
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "+").WithArguments("+").
WithLocation
(13, 83)
876
Diagnostic(ErrorCode.ERR_BadBinaryOps, "u == null").WithArguments("==", "U", "<null>").
WithLocation
(16, 14),
878
Diagnostic(ErrorCode.ERR_BadBinaryOps, "null != u").WithArguments("!=", "<null>", "U").
WithLocation
(17, 14));
943
Diagnostic(ErrorCode.ERR_BadIndexLHS, "M[0]").WithArguments("method group").
WithLocation
(7, 13),
945
Diagnostic(ErrorCode.ERR_BadIndexLHS, "((System.Action)null)[0]").WithArguments("System.Action").
WithLocation
(8, 13),
947
Diagnostic(ErrorCode.ERR_BadIndexLHS, "default(E)[0]").WithArguments("E").
WithLocation
(10, 13),
949
Diagnostic(ErrorCode.ERR_BadIndexLHS, "default(T)[0]").WithArguments("T").
WithLocation
(11, 13),
951
Diagnostic(ErrorCode.ERR_BadIndexLHS, "(new C())[0]").WithArguments("C").
WithLocation
(12, 13));
1077
Diagnostic(ErrorCode.ERR_BadUnaryOp, "!q").WithArguments("!", "object").
WithLocation
(9, 17),
1080
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "-null").WithArguments("-", "<null>").
WithLocation
(12, 26),
1083
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "!null").WithArguments("!", "<null>").
WithLocation
(13, 19),
1086
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "~null").WithArguments("~", "<null>").
WithLocation
(14, 19),
1089
Diagnostic(ErrorCode.ERR_BadUnaryOp, "obj++").WithArguments("++", "object").
WithLocation
(16, 13),
1092
Diagnostic(ErrorCode.ERR_BadUnaryOp, "--obj").WithArguments("--", "object").
WithLocation
(17, 13),
1095
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "+null").WithArguments("+", "<null>").
WithLocation
(18, 20)
1123
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "!null").WithArguments("!", "<null>").
WithLocation
(6, 19),
1126
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "~null").WithArguments("~", "<null>").
WithLocation
(7, 18),
1129
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "+null").WithArguments("+", "<null>").
WithLocation
(8, 20),
1132
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "-null").WithArguments("-", "<null>").
WithLocation
(9, 19)
1391
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(4, 9),
1394
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(5, 1),
1397
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(6, 5),
1400
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(16, 1),
1403
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(7, 36),
1406
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(10, 5),
1409
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(11, 5),
1412
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(12, 9),
1415
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(13, 16)
1452
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new[] { 1, 2, 3 }").WithArguments("int[]", "int").
WithLocation
(1, 14));
1477
Diagnostic(ErrorCode.ERR_NoImplicitConv, "F()").WithArguments("D", "C").
WithLocation
(5, 21));
1497
Diagnostic(ErrorCode.ERR_NoImplicitConv, "m").WithArguments("bool", "int").
WithLocation
(6, 29));
1517
Diagnostic(ErrorCode.ERR_NoImplicitConv, "throw null").WithArguments("<throw expression>", "void").
WithLocation
(6, 23));
1537
Diagnostic(ErrorCode.ERR_NoImplicitConv, "throw null").WithArguments("<throw expression>", "void").
WithLocation
(6, 29));
1557
Diagnostic(ErrorCode.ERR_InvalidQM, "true ? 0 : M2()").WithArguments("int", "void").
WithLocation
(6, 19)
1578
Diagnostic(ErrorCode.ERR_NoImplicitConv, "true ? M2() : M2()").WithArguments("void", "object").
WithLocation
(6, 22));
1598
Diagnostic(ErrorCode.ERR_VoidAssignment, "_").
WithLocation
(6, 9));
1618
Diagnostic(ErrorCode.ERR_NoImplicitConv, "M2()").WithArguments("void", "object").
WithLocation
(6, 22));
1638
Diagnostic(ErrorCode.ERR_VoidAssignment, "_").
WithLocation
(6, 9));
1658
Diagnostic(ErrorCode.ERR_RetNoObjectRequired, "return").WithArguments("C.M1()").
WithLocation
(6, 9));
1778
Diagnostic(ErrorCode.ERR_ConstOutOfRange, "-1").WithArguments("-1", "ushort").
WithLocation
(5, 9),
1781
Diagnostic(ErrorCode.ERR_ConstOutOfRange, "0xf0").WithArguments("240", "sbyte").
WithLocation
(10, 9),
1784
Diagnostic(ErrorCode.ERR_ConstOutOfRange, "A + 1").WithArguments("128", "sbyte").
WithLocation
(13, 10),
1787
Diagnostic(ErrorCode.ERR_ConstOutOfRange, "256").WithArguments("256", "byte").
WithLocation
(17, 15),
1790
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "bt").WithArguments("A.bt").
WithLocation
(17, 10));
2009
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(8, 13),
2011
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(int)null").WithArguments("int").
WithLocation
(9, 13),
2013
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("E").
WithLocation
(11, 13),
2015
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(E)null").WithArguments("E").
WithLocation
(12, 13),
2017
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("S").
WithLocation
(14, 13),
2019
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(S)null").WithArguments("S").
WithLocation
(15, 13),
2021
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("X").
WithLocation
(16, 9),
2023
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("X").
WithLocation
(18, 14));
2053
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(T1)null").WithArguments("T1").
WithLocation
(13, 13),
2055
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(T3)null").WithArguments("T3").
WithLocation
(15, 13),
2057
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(T4)null").WithArguments("T4").
WithLocation
(16, 13),
2059
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(T5)null").WithArguments("T5").
WithLocation
(17, 13),
2061
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(T7)null").WithArguments("T7").
WithLocation
(19, 13));
2088
CreateCompilation(text).VerifyDiagnostics(Diagnostic(ErrorCode.ERR_ValueCantBeNull, "(MyEnum)null").WithArguments("Program.MyEnum").
WithLocation
(12, 20));
2157
Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, "b as C").WithArguments("B", "C").
WithLocation
(24, 13));
2179
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F as D").
WithLocation
(6, 10),
2182
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.F as D").
WithLocation
(7, 10),
2185
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "G as D").
WithLocation
(8, 10));
2203
Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, "a as object").WithArguments("System.TypedReference", "object").
WithLocation
(7, 22));
2220
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 30),
2223
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(4, 33),
2226
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 30),
2229
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(5, 36),
2232
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 30),
2235
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(6, 33),
2238
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 35),
2241
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(6, 41),
2244
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I.E1").
WithLocation
(4, 25),
2247
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E2").WithArguments("I.E2").
WithLocation
(5, 25));
2361
Diagnostic(ErrorCode.ERR_NameNotInContext, "IO").WithArguments("IO").
WithLocation
(6, 9));
2380
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(9, 48));
2395
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(5, 43));
2417
Diagnostic(ErrorCode.ERR_NameNotInContext, "weight").WithArguments("weight").
WithLocation
(7, 54),
2420
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(1, 1)
2459
Diagnostic(ErrorCode.ERR_BadSKknown, "args").WithArguments("args", "variable", "type").
WithLocation
(6, 16),
2462
Diagnostic(ErrorCode.ERR_BadSKknown, "a").WithArguments("a", "variable", "type").
WithLocation
(7, 16));
2568
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "U").WithArguments("U").
WithLocation
(10, 9),
2571
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(10, 27),
2574
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(11, 9),
2617
Diagnostic(ErrorCode.ERR_CircConstValue, "a").WithArguments("x.C.a").
WithLocation
(7, 19));
2630
Diagnostic(ErrorCode.ERR_CircConstValue, "A").WithArguments("E.A").
WithLocation
(1, 10),
2633
Diagnostic(ErrorCode.ERR_CircConstValue, "Y").WithArguments("F.Y").
WithLocation
(2, 13));
2646
Diagnostic(ErrorCode.ERR_CircConstValue, "X").WithArguments("F.X").
WithLocation
(2, 13));
2658
Diagnostic(ErrorCode.ERR_CircConstValue, "A").WithArguments("E.A").
WithLocation
(1, 10));
2670
Diagnostic(ErrorCode.ERR_CircConstValue, "B").WithArguments("E.B").
WithLocation
(1, 17));
2686
Diagnostic(ErrorCode.ERR_CircConstValue, "F").WithArguments("C.F").
WithLocation
(3, 23));
2703
Diagnostic(ErrorCode.ERR_NameNotInContext, "G").WithArguments("G").
WithLocation
(3, 34),
2706
Diagnostic(ErrorCode.ERR_CircConstValue, "F").WithArguments("C.F").
WithLocation
(3, 15));
2722
Diagnostic(ErrorCode.ERR_CircConstValue, "D").WithArguments("C.D").
WithLocation
(3, 19));
2734
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(2, 5)
2798
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "D d = null;").
WithLocation
(3, 1),
2801
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "d").WithArguments("d").
WithLocation
(3, 3)
2818
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "D d = {;").
WithLocation
(3, 1),
2869
Diagnostic(ErrorCode.ERR_ObjectRequired, "field").WithArguments("C.field").
WithLocation
(8, 9),
2872
Diagnostic(ErrorCode.ERR_ObjectRequired, "Property").WithArguments("C.Property").
WithLocation
(8, 17),
2875
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.field").WithArguments("C.field").
WithLocation
(9, 9),
2878
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.Property").WithArguments("C.Property").
WithLocation
(9, 19),
2881
Diagnostic(ErrorCode.ERR_ObjectRequired, "Method").WithArguments("C.Method()").
WithLocation
(10, 9),
2884
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.Method").WithArguments("C.Method()").
WithLocation
(11, 9));
2942
Diagnostic(ErrorCode.ERR_ObjectRequired, "I.bar").WithArguments("I.bar()").
WithLocation
(16, 24),
2945
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "p").WithArguments("p").
WithLocation
(14, 13)
3015
Diagnostic(ErrorCode.ERR_ObjectRequired, "instanceField").WithArguments("C.instanceField").
WithLocation
(19, 9),
3018
Diagnostic(ErrorCode.ERR_ObjectRequired, "InstanceProperty").WithArguments("C.InstanceProperty").
WithLocation
(21, 9),
3021
Diagnostic(ErrorCode.ERR_ObjectRequired, "InstanceMethod").WithArguments("C.InstanceMethod()").
WithLocation
(23, 9),
3024
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(25, 9),
3027
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(27, 9),
3030
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(29, 9),
3033
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "instanceField").WithArguments("C.instanceField", "0").
WithLocation
(8, 9),
3036
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "staticField").WithArguments("C.staticField", "0").
WithLocation
(9, 16));
3060
Diagnostic(ErrorCode.ERR_ObjectRequired, "field").WithArguments("C.field").
WithLocation
(8, 9),
3063
Diagnostic(ErrorCode.ERR_ObjectRequired, "Property").WithArguments("C.Property").
WithLocation
(8, 17),
3066
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.field").WithArguments("C.field").
WithLocation
(9, 9),
3069
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.Property").WithArguments("C.Property").
WithLocation
(9, 19),
3072
Diagnostic(ErrorCode.ERR_ObjectRequired, "Method").WithArguments("C.Method()").
WithLocation
(10, 9),
3075
Diagnostic(ErrorCode.ERR_ObjectRequired, "C.Method").WithArguments("C.Method()").
WithLocation
(11, 9));
3482
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "C<long>.far").WithArguments("C<long>.far(long)", "boo").
WithLocation
(15, 24),
3485
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "par<byte>").WithArguments("par", "boo").
WithLocation
(16, 32),
3487
Diagnostic(ErrorCode.ERR_BadArgType, "long.MaxValue").WithArguments("1", "long", "short").
WithLocation
(18, 21),
3489
Diagnostic(ErrorCode.ERR_BadArgType, "long.MaxValue").WithArguments("1", "long", "short").
WithLocation
(19, 22)
3563
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("X").
WithLocation
(6, 9),
3566
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Y").WithArguments("Y").
WithLocation
(8, 9),
3569
Diagnostic(ErrorCode.ERR_RetObjectRequired, "return").WithArguments("object").
WithLocation
(5, 22),
3572
Diagnostic(ErrorCode.ERR_RetObjectRequired, "return").WithArguments("X").
WithLocation
(6, 17),
3575
Diagnostic(ErrorCode.ERR_RetObjectRequired, "return").WithArguments("N.C").
WithLocation
(7, 21),
3578
Diagnostic(ErrorCode.ERR_RetObjectRequired, "return").WithArguments("Y").
WithLocation
(8, 21));
3634
Diagnostic(ErrorCode.ERR_RetObjectRequired, "return").WithArguments("object").
WithLocation
(18, 48));
3657
Diagnostic(ErrorCode.ERR_RetNoObjectRequired, "return").WithArguments("MyNamespace.MyClass.F()").
WithLocation
(5, 27),
3660
Diagnostic(ErrorCode.ERR_RetNoObjectRequired, "return").WithArguments("MyNamespace.MyClass.P.set").
WithLocation
(9, 19));
3701
Diagnostic(ErrorCode.ERR_LocalDuplicate, "i").WithArguments("i").
WithLocation
(9, 14),
3704
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(9, 14)
3756
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "i").
WithLocation
(7, 9),
3759
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "3").
WithLocation
(8, 9),
3762
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "i + 1").
WithLocation
(9, 10),
3765
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, @"""string""").
WithLocation
(10, 9),
3768
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "null").
WithLocation
(11, 9),
3771
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "NoObject").
WithLocation
(12, 9));
3807
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "default(S).P").
WithLocation
(16, 9),
3809
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "default(T).P").
WithLocation
(17, 9),
3811
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "default(S)[0]").
WithLocation
(18, 9),
3813
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "default(T)[0]").
WithLocation
(19, 9));
3846
Diagnostic(ErrorCode.ERR_NotConstantExpression, "c").WithArguments("MyClass.b").
WithLocation
(4, 25));
3874
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "C.F()").WithArguments("E", "int").
WithLocation
(4, 9),
3877
Diagnostic(ErrorCode.ERR_NotConstantExpression, "C.F()").WithArguments("E.Y").
WithLocation
(4, 9),
3880
Diagnostic(ErrorCode.ERR_NotConstantExpression, "C.G() + 1").WithArguments("E.Z").
WithLocation
(5, 9));
3899
Diagnostic(ErrorCode.ERR_NotConstantExpression, "2 * y").WithArguments("x").
WithLocation
(6, 23));
3916
Diagnostic(ErrorCode.ERR_CircConstValue, "x").WithArguments("x").
WithLocation
(5, 27),
3919
Diagnostic(ErrorCode.ERR_CircConstValue, "x").WithArguments("x").
WithLocation
(5, 23));
3962
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("Test.x", "0").
WithLocation
(6, 16)
4008
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(5, 16),
4011
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y").WithArguments("y").
WithLocation
(9, 17),
4014
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "value").WithArguments("value").
WithLocation
(24, 17),
4017
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "q").WithArguments("q").
WithLocation
(30, 35));
4023
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "x").WithArguments("x").
WithLocation
(5, 16),
4026
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "y").WithArguments("y").
WithLocation
(9, 17),
4029
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "value").WithArguments("value").
WithLocation
(24, 17));
4064
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "o").WithArguments("o").
WithLocation
(19, 33));
4094
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "conflict").WithArguments("conflict").
WithLocation
(14, 25),
4145
Diagnostic(ErrorCode.ERR_DuplicateLabel, "label1").WithArguments("label1").
WithLocation
(9, 10)
4299
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "a").
WithLocation
(18, 15),
4302
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "iii").
WithLocation
(20, 15)
4335
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 1:").WithArguments("1").
WithLocation
(16, 13)
4355
Diagnostic(ErrorCode.ERR_InvalidGotoCase, "goto case 5;").
WithLocation
(6, 7));
4381
Diagnostic(ErrorCode.ERR_InvalidGotoCase, "goto default;").
WithLocation
(14, 9));
4439
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "Q").WithArguments("A.Q").
WithLocation
(11, 11),
4442
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "b.Q").WithArguments("A.Q").
WithLocation
(16, 13),
4445
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "b.P.Q").WithArguments("A.Q").
WithLocation
(18, 13));
4464
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "P").WithArguments("C.P").
WithLocation
(6, 9));
4480
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "P").WithArguments("C.P").
WithLocation
(4, 26));
4501
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "P").WithArguments("C.P").
WithLocation
(7, 20),
4503
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "P").WithArguments("C.P").
WithLocation
(8, 13),
4505
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "Q").WithArguments("C.Q").
WithLocation
(8, 18),
4507
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "P").WithArguments("C.P").
WithLocation
(9, 27),
4509
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "Q").WithArguments("C.Q").
WithLocation
(9, 31),
4511
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "Q").WithArguments("C.Q").
WithLocation
(10, 14));
4571
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "b.P").WithArguments("B.P").
WithLocation
(5, 17));
4598
Diagnostic(ErrorCode.ERR_BadExceptionType, "object").
WithLocation
(9, 16),
4599
Diagnostic(ErrorCode.ERR_UnreachableCatch, "System.Exception").WithArguments("object").
WithLocation
(10, 16),
4600
Diagnostic(ErrorCode.ERR_BadExceptionType, "System.DateTime").
WithLocation
(11, 16),
4601
Diagnostic(ErrorCode.ERR_BadExceptionType, "System.Int32").
WithLocation
(12, 16),
4602
Diagnostic(ErrorCode.ERR_BadExceptionType, "IA").
WithLocation
(13, 16),
4603
Diagnostic(ErrorCode.ERR_BadExceptionType, "IB").
WithLocation
(14, 16),
4604
Diagnostic(ErrorCode.ERR_BadExceptionType, "S").
WithLocation
(15, 16),
4605
Diagnostic(ErrorCode.ERR_BadExceptionType, "S").
WithLocation
(16, 16));
4629
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(string)null").WithArguments("string", "System.Exception").
WithLocation
(10, 26),
4632
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "System.Exception").
WithLocation
(11, 26),
4635
Diagnostic(ErrorCode.ERR_NoImplicitConv, "T").WithArguments("string", "System.Exception").
WithLocation
(12, 26)
4658
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new C() as D").WithArguments("D", "System.Exception").
WithLocation
(8, 26)
4686
Diagnostic(ErrorCode.ERR_NoImplicitConv, "default(T)").WithArguments("T", "System.Exception").
WithLocation
(11, 26),
4689
Diagnostic(ErrorCode.ERR_NoImplicitConv, "default(TC)").WithArguments("TC", "System.Exception").
WithLocation
(12, 26),
4692
Diagnostic(ErrorCode.ERR_NoImplicitConv, "default(TS)").WithArguments("TS", "System.Exception").
WithLocation
(13, 26)
4738
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "new Explicit()").WithArguments("Explicit", "System.Exception").
WithLocation
(9, 26)
5124
Diagnostic(ErrorCode.ERR_BadFinallyLeave, "break").
WithLocation
(15, 27),
5125
Diagnostic(ErrorCode.ERR_BadFinallyLeave, "continue").
WithLocation
(21, 27));
5506
Diagnostic(ErrorCode.ERR_UnreachableCatch, "C").WithArguments("System.IO.IOException").
WithLocation
(19, 16),
5507
Diagnostic(ErrorCode.ERR_UnreachableCatch, "B").WithArguments("A").
WithLocation
(23, 16),
5508
Diagnostic(ErrorCode.ERR_UnreachableCatch, "StackOverflowException").WithArguments("System.Exception").
WithLocation
(24, 16),
5509
Diagnostic(ErrorCode.ERR_UnreachableCatch, "F<int>").WithArguments("F<int>").
WithLocation
(25, 16),
5510
Diagnostic(ErrorCode.ERR_UnreachableCatch, "F<float>").WithArguments("System.Exception").
WithLocation
(26, 16));
5537
Diagnostic(ErrorCode.ERR_UnreachableCatch, "B").WithArguments("A").
WithLocation
(15, 16));
5565
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "bool").
WithLocation
(11, 25),
5568
Diagnostic(ErrorCode.ERR_NoImplicitConv, "0").WithArguments("int", "bool").
WithLocation
(12, 25),
5571
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""false""").WithArguments("string", "bool").
WithLocation
(13, 25),
5574
Diagnostic(ErrorCode.WRN_FilterIsConstantFalse, "false").
WithLocation
(14, 25));
5598
Diagnostic(ErrorCode.WRN_FilterIsConstantFalse, "false").
WithLocation
(11, 25),
5601
Diagnostic(ErrorCode.WRN_FilterIsConstantFalse, "false").
WithLocation
(12, 25));
5625
Diagnostic(ErrorCode.WRN_FilterIsConstantFalse, "(1+1)!=2").
WithLocation
(11, 25),
5628
Diagnostic(ErrorCode.WRN_FilterIsConstantFalse, "false").
WithLocation
(12, 25));
5651
Diagnostic(ErrorCode.WRN_FilterIsConstantFalse, "false").
WithLocation
(10, 25));
5673
Diagnostic(ErrorCode.WRN_FilterIsConstantFalseRedundantTryCatch, "false").
WithLocation
(10, 25));
5695
Diagnostic(ErrorCode.WRN_FilterIsConstantFalseRedundantTryCatch, "(1+1)!=2").
WithLocation
(10, 25));
5719
Diagnostic(ErrorCode.WRN_FilterIsConstantTrue, "true").
WithLocation
(11, 25));
5743
Diagnostic(ErrorCode.WRN_FilterIsConstantTrue, "true").
WithLocation
(10, 21),
5746
Diagnostic(ErrorCode.WRN_FilterIsConstantFalse, "false").
WithLocation
(12, 21));
5768
Diagnostic(ErrorCode.WRN_FilterIsConstantTrue, "(1+1)==2").
WithLocation
(10, 21));
5795
Diagnostic(ErrorCode.WRN_FilterIsConstantFalse, "false").
WithLocation
(11, 25),
5798
Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").
WithLocation
(13, 13)
5828
Diagnostic(ErrorCode.WRN_FilterIsConstantFalseRedundantTryCatch, "false").
WithLocation
(10, 33),
5831
Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").
WithLocation
(12, 13)
5861
Diagnostic(ErrorCode.WRN_FilterIsConstantTrue, "true").
WithLocation
(10, 33),
5864
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(12, 31)
6194
Diagnostic(ErrorCode.ERR_UseDefViolation, "v").WithArguments("v").
WithLocation
(10, 11),
6195
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(18, 21),
6196
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(21, 30),
6197
Diagnostic(ErrorCode.ERR_UseDefViolation, "z").WithArguments("z").
WithLocation
(26, 15));
6288
Diagnostic(ErrorCode.ERR_UseDefViolation, "c").WithArguments("c").
WithLocation
(13, 13),
6289
Diagnostic(ErrorCode.ERR_UseDefViolation, "d").WithArguments("d").
WithLocation
(14, 13),
6290
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(26, 13),
6291
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(32, 13),
6292
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(37, 18),
6293
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(44, 13),
6294
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(50, 13),
6295
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(55, 18),
6296
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(61, 21),
6297
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(67, 39),
6298
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(68, 13),
6299
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(73, 18),
6300
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(80, 13));
6329
Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").
WithLocation
(19, 21));
6469
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "MyStruct").WithArguments("MyStruct.i", "11.0").
WithLocation
(4, 4),
6472
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "aStruct").WithArguments("aStruct").
WithLocation
(15, 16),
6475
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("MyStruct.i", "0").
WithLocation
(8, 15)
6547
Diagnostic(ErrorCode.ERR_AmbigQM, "(1 == 1) ? aa : ii").WithArguments("Square.Circle", "Square").
WithLocation
(21, 16),
6550
Diagnostic(ErrorCode.ERR_NoImplicitConvTargetTypedConditional, "(1 == 1) ? aa : ii").WithArguments("8.0", "Square.Circle", "Square", "9.0").
WithLocation
(22, 19)
6578
Diagnostic(ErrorCode.ERR_InvalidQM, "b ? a : c").WithArguments("A", "C").
WithLocation
(11, 15)
6595
VerifyDiagnostics(Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "s = true ? System.Console.WriteLine(0) : System.Console.WriteLine(1)").WithArguments("void").
WithLocation
(6, 13));
6617
Diagnostic(ErrorCode.ERR_InvalidQM, "1 > 2 ? a : b").WithArguments("A<string>", "A<int>").
WithLocation
(8, 17)
6685
Diagnostic(ErrorCode.ERR_BaseIllegal, "base").
WithLocation
(12, 27),
6687
Diagnostic(ErrorCode.ERR_BaseIllegal, "base").
WithLocation
(13, 9)
6731
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.Method").WithArguments("A.B.Method()").
WithLocation
(9, 13)
6787
Diagnostic(ErrorCode.ERR_ObjectProhibited, "t.F").WithArguments("A.F").
WithLocation
(9, 20),
6790
Diagnostic(ErrorCode.ERR_ObjectProhibited, "t.ReferenceEquals").WithArguments("object.ReferenceEquals(object, object)").
WithLocation
(10, 9),
6793
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "F").WithArguments("A.F", "null").
WithLocation
(3, 28));
6815
Diagnostic(ErrorCode.ERR_ObjectProhibited, "D.CreateDelegate").WithArguments("System.Delegate.CreateDelegate(System.Type, object, string)").
WithLocation
(9, 9)
6867
Diagnostic(ErrorCode.ERR_ParamUnassigned, "M").WithArguments("y").
WithLocation
(3, 17));
6891
Diagnostic(ErrorCode.ERR_ParamUnassigned, "return o;").WithArguments("x").
WithLocation
(9, 13),
6894
Diagnostic(ErrorCode.ERR_ParamUnassigned, "return P ? null : M(out x);").WithArguments("x").
WithLocation
(11, 9));
6985
Diagnostic(ErrorCode.ERR_UseDefViolationThisUnsupportedVersion, "Goo").WithArguments("11.0").
WithLocation
(17, 17),
6988
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "a").WithArguments("MyNamespace.MyClass.S.a", "0").
WithLocation
(8, 24));
7032
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F is Action").
WithLocation
(10, 18),
7035
Diagnostic(ErrorCode.ERR_UseDefViolationThisUnsupportedVersion, "F").WithArguments("11.0").
WithLocation
(10, 18));
7039
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F is Action").
WithLocation
(10, 18));
7066
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "this.F is Action").
WithLocation
(10, 18),
7069
Diagnostic(ErrorCode.ERR_UseDefViolationThisUnsupportedVersion, "this").WithArguments("11.0").
WithLocation
(10, 18));
7074
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "this.F is Action").
WithLocation
(10, 18));
7102
Diagnostic(ErrorCode.ERR_UseDefViolationThisUnsupportedVersion, "Add").WithArguments("11.0").
WithLocation
(10, 19));
7173
Diagnostic(ErrorCode.ERR_UseDefViolationThisUnsupportedVersion, "this").WithArguments("11.0").
WithLocation
(10, 9));
7386
Diagnostic(ErrorCode.ERR_AssgReadonly, "TestInt").
WithLocation
(28, 9),
7389
Diagnostic(ErrorCode.ERR_AssgReadonly, "t.TestInt").
WithLocation
(11, 9),
7392
Diagnostic(ErrorCode.ERR_AssgReadonly, "TestInt").
WithLocation
(16, 9));
7570
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Goo<int>.Y").WithArguments("Goo<int>.Y").
WithLocation
(6, 9)
7575
Diagnostic(ErrorCode.ERR_AssgReadonlyStatic, "Goo<int>.X").
WithLocation
(5, 9),
7578
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Goo<int>.Y").WithArguments("Goo<int>.Y").
WithLocation
(6, 9)
7693
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "B.P").WithArguments("A.P").
WithLocation
(16, 9),
7695
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "b.R").WithArguments("B.R").
WithLocation
(17, 9));
7723
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "b.Q").WithArguments("A.Q").
WithLocation
(15, 9),
7725
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "b.P.Q").WithArguments("A.Q").
WithLocation
(17, 9));
7744
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "P").WithArguments("C.P").
WithLocation
(7, 11),
7746
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "c.Q").WithArguments("C.Q").
WithLocation
(8, 11));
7759
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "P").WithArguments("C.P").
WithLocation
(3, 22));
7813
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "b.P").WithArguments("B.P").
WithLocation
(6, 9));
7858
Diagnostic(ErrorCode.ERR_IllegalStatement, "(a) => a").
WithLocation
(6, 9),
7861
Diagnostic(ErrorCode.ERR_IllegalStatement, "(a, b) => { }").
WithLocation
(7, 9),
7864
Diagnostic(ErrorCode.ERR_IllegalStatement, "x + y").
WithLocation
(9, 9),
7867
Diagnostic(ErrorCode.ERR_IllegalStatement, "x == 1").
WithLocation
(9, 16),
7870
Diagnostic(ErrorCode.ERR_ReturnExpected, "Main").WithArguments("A.Main()").
WithLocation
(4, 23)
7892
Diagnostic(ErrorCode.ERR_IllegalStatement, "(a) => a").
WithLocation
(6, 9),
7895
Diagnostic(ErrorCode.ERR_IllegalStatement, "(a, b) => { }").
WithLocation
(7, 9),
7898
Diagnostic(ErrorCode.ERR_IllegalStatement, "x + y").
WithLocation
(9, 9),
7901
Diagnostic(ErrorCode.ERR_IllegalStatement, "x == 1").
WithLocation
(9, 16),
7904
Diagnostic(ErrorCode.ERR_ReturnExpected, "Main").WithArguments("A.Main()").
WithLocation
(4, 23)
8064
Diagnostic(ErrorCode.ERR_RefProperty, "P").
WithLocation
(14, 15),
8067
Diagnostic(ErrorCode.ERR_RefProperty, "this.Q").
WithLocation
(15, 15));
8094
Diagnostic(ErrorCode.ERR_RefProperty, "this[0]").
WithLocation
(13, 15),
8097
Diagnostic(ErrorCode.ERR_RefProperty, "this[0]").
WithLocation
(14, 15));
8143
Diagnostic(ErrorCode.WRN_ManagedAddr, "myClass*").WithArguments("myClass").
WithLocation
(26, 9),
8146
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("myClass").
WithLocation
(26, 23),
8149
Diagnostic(ErrorCode.WRN_ManagedAddr, "sizeof(myProblemStruct)").WithArguments("myProblemStruct").
WithLocation
(29, 17));
8193
Diagnostic(ErrorCode.WRN_ManagedAddr, "_object").WithArguments("object").
WithLocation
(9, 13),
8196
Diagnostic(ErrorCode.WRN_ManagedAddr, "_string").WithArguments("string").
WithLocation
(24, 13),
8199
Diagnostic(ErrorCode.WRN_ManagedAddr, "_dynamic").WithArguments("dynamic").
WithLocation
(29, 14),
8202
Diagnostic(ErrorCode.WRN_ManagedAddr, "d").WithArguments("D").
WithLocation
(31, 8),
8205
Diagnostic(ErrorCode.WRN_ManagedAddr, "i").WithArguments("I").
WithLocation
(33, 8),
8208
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("C").
WithLocation
(34, 8)
8272
Diagnostic(ErrorCode.ERR_FixedMustInit, "w").
WithLocation
(7, 27),
8275
Diagnostic(ErrorCode.ERR_FixedMustInit, "x").
WithLocation
(12, 27),
8278
Diagnostic(ErrorCode.ERR_FixedMustInit, "y").
WithLocation
(12, 30),
8281
Diagnostic(ErrorCode.ERR_UseDefViolation, "w").WithArguments("w").
WithLocation
(9, 10)
8361
Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&i").
WithLocation
(7, 23),
8364
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "b").
WithLocation
(14, 26));
8669
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "b").WithArguments("MyClass.b").
WithLocation
(12, 13),
8672
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(13, 13),
8675
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "InstanceMethod").WithArguments("MyClass.InstanceMethod()").
WithLocation
(14, 13),
8678
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(15, 13),
8681
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "GenericInstanceMethod<int>").WithArguments("MyClass.GenericInstanceMethod<int>(int)").
WithLocation
(18, 13),
8684
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(19, 13),
8687
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "InstanceProperty").WithArguments("MyClass.InstanceProperty").
WithLocation
(22, 13),
8690
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(23, 13),
8693
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "instanceArray").WithArguments("MyClass.instanceArray").
WithLocation
(26, 13),
8696
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(27, 13),
8699
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "instanceArray").WithArguments("MyClass.instanceArray", "null").
WithLocation
(4, 11),
8702
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "staticArray").WithArguments("MyClass.staticArray", "null").
WithLocation
(5, 18),
8705
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "x").WithArguments("MyClass.x").
WithLocation
(33, 9),
8708
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "w").WithArguments("MyClass.w").
WithLocation
(32, 9)
8800
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "i").WithArguments("MemberInitializerTest.i").
WithLocation
(12, 33),
8803
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "s").WithArguments("MemberInitializerTest.s").
WithLocation
(12, 40));
8826
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "P1").WithArguments("TestClass.P1").
WithLocation
(6, 14),
8829
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "P1").WithArguments("TestClass.P1").
WithLocation
(7, 24)
9000
Diagnostic(ErrorCode.ERR_NegativeArraySize, "-3").
WithLocation
(6, 33),
9003
Diagnostic(ErrorCode.ERR_NegativeArraySize, "-5000000000").
WithLocation
(7, 34),
9006
Diagnostic(ErrorCode.ERR_NegativeArraySize, "-2").
WithLocation
(9, 35),
9009
Diagnostic(ErrorCode.ERR_NegativeArraySize, "-1").
WithLocation
(9, 42),
9012
Diagnostic(ErrorCode.ERR_NegativeArraySize, "-1L").
WithLocation
(10, 35),
9015
Diagnostic(ErrorCode.ERR_ConstantExpected, "-1L").
WithLocation
(10, 35));
9078
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "(int*)&pt.x").
WithLocation
(20, 23));
9102
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int[100]").
WithLocation
(12, 24));
9126
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int[100]").
WithLocation
(12, 24));
9161
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "0L").WithArguments("long", "int").
WithLocation
(3, 19));
9179
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1L").WithArguments("long", "short").
WithLocation
(5, 25),
9182
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s").WithArguments("s").
WithLocation
(5, 21));
9204
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "2").WithArguments("int", "E").
WithLocation
(4, 11),
9207
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "'c'").WithArguments("char", "E").
WithLocation
(9, 13),
9210
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "f").WithArguments("C.f").
WithLocation
(4, 7),
9213
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "g").WithArguments("C.g").
WithLocation
(5, 7));
9229
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "'a'").WithArguments("char", "byte").
WithLocation
(3, 9));
9245
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1L").WithArguments("long", "int").
WithLocation
(4, 9));
9284
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "G.A").WithArguments("long", "int").
WithLocation
(5, 9),
9287
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "G.B").WithArguments("long", "int").
WithLocation
(6, 9));
9310
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1L").WithArguments("long", "int").
WithLocation
(11, 26));
9350
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "Number.One").WithArguments("Number", "int").
WithLocation
(6, 28));
9377
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("double", "int").
WithLocation
(7, 30),
9380
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y").WithArguments("float", "int").
WithLocation
(10, 30),
9383
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "z").WithArguments("decimal", "int").
WithLocation
(13, 30));
9402
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "o").WithArguments("object", "int").
WithLocation
(6, 15));
9420
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[o]").
WithLocation
(6, 12),
9423
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "o").WithArguments("object", "int").
WithLocation
(6, 13),
9426
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(6, 16));
9480
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "C.P").WithArguments("C.P").
WithLocation
(10, 20),
9482
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "c.Q").WithArguments("C.Q").
WithLocation
(11, 11));
9510
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "b.P").WithArguments("B.P").
WithLocation
(17, 20));
9536
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "b.P").WithArguments("N2.B.P").
WithLocation
(7, 24));
9572
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "Q").WithArguments("A.Q").
WithLocation
(17, 13),
9574
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "B.P").WithArguments("A.P").
WithLocation
(24, 20),
9576
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "A.Q").WithArguments("A.Q").
WithLocation
(25, 13));
9641
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "c.P").WithArguments("N.C.P").
WithLocation
(12, 13),
9643
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "C.Q").WithArguments("N.C.Q").
WithLocation
(13, 13));
9677
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "b.P").WithArguments("N2.B.P").
WithLocation
(23, 9));
9734
Diagnostic(ErrorCode.ERR_BadConstType, "S").WithArguments("S").
WithLocation
(5, 15),
9737
Diagnostic(ErrorCode.ERR_NoImplicitConv, "2").WithArguments("int", "S").
WithLocation
(5, 21));
9771
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T()").WithArguments("T").
WithLocation
(6, 13),
9773
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new V()").WithArguments("V").
WithLocation
(8, 13),
9775
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new U()").WithArguments("U").
WithLocation
(21, 13));
9803
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new U()").WithArguments("U").
WithLocation
(17, 39));
9866
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<B>").WithArguments("C<T, U>.M<V>()", "V", "B").
WithLocation
(14, 9),
9868
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<D>").WithArguments("C<T, U>.M<V>()", "V", "D").
WithLocation
(15, 9),
9870
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<U>").WithArguments("C<T, U>.M<V>()", "V", "U").
WithLocation
(21, 9),
9872
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<B, B>").WithArguments("C<T, U>.M<V, W>()", "V", "B").
WithLocation
(22, 9),
9874
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<B, B>").WithArguments("C<T, U>.M<V, W>()", "W", "B").
WithLocation
(22, 9),
9876
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<T, U>").WithArguments("C<T, U>.M<V, W>()", "W", "U").
WithLocation
(23, 9),
9878
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<T[]>").WithArguments("C<T, U>.M<V>()", "V", "T[]").
WithLocation
(25, 9));
9938
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "d").WithArguments("D<T>", "T", "U").
WithLocation
(9, 36),
9941
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<B>").WithArguments("C<A>.M<U>()", "U", "B").
WithLocation
(29, 14),
9944
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "B").WithArguments("C<T>", "T", "B").
WithLocation
(30, 11),
9947
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "B").WithArguments("C<T>", "T", "B").
WithLocation
(31, 11),
9950
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<B>").WithArguments("C<B>.M<U>()", "U", "B").
WithLocation
(31, 14),
9953
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "G").WithArguments("C<T>", "T", "G").
WithLocation
(32, 11),
9956
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<G>").WithArguments("C<H>.M<U>()", "U", "G").
WithLocation
(33, 14),
9959
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "I").WithArguments("C<T>", "T", "I").
WithLocation
(34, 11),
9962
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "F").WithArguments("E.F<T>(D<T>)", "T", "B").
WithLocation
(36, 11),
9965
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "B").WithArguments("C<T>", "T", "B").
WithLocation
(38, 19),
10000
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "F").WithArguments("C<T>", "T", "B").
WithLocation
(38, 11),
10004
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<B>").WithArguments("E.M<T>(object)", "T", "B").
WithLocation
(41, 11),
10007
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "B").WithArguments("F<T, U>", "U", "B").
WithLocation
(42, 22));
10048
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M").WithArguments("C<T, U>.M<V>(V)", "V", "B").
WithLocation
(15, 9),
10051
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "E").WithArguments("S.E<T>(T)", "T", "B").
WithLocation
(16, 11),
10054
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M").WithArguments("C<T, U>.M<V>(V)", "V", "T").
WithLocation
(18, 9),
10057
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "E").WithArguments("S.E<T>(T)", "T", "T").
WithLocation
(19, 11)
10108
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "CB").WithArguments("N.C<T>", "T", "N.B").
WithLocation
(4, 7),
10111
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "CBD").WithArguments("N.C<T>", "T", "N.B").
WithLocation
(8, 11),
10114
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<N.B>").WithArguments("N.C<N.A>.M<U>()", "U", "N.B").
WithLocation
(24, 20),
10117
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "NB").WithArguments("N.C<T>", "T", "N.B").
WithLocation
(25, 15),
10120
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "C<N.A>.D").WithArguments("N.C<T>", "T", "N.C<N.A>.D").
WithLocation
(26, 15),
10123
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<N.B>").WithArguments("N.C<N.A>.D.M<U>()", "U", "N.B").
WithLocation
(27, 22),
10126
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "N.B").WithArguments("N.C<T>", "T", "N.B").
WithLocation
(28, 15),
10129
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<N.B>").WithArguments("N.C<N.A>.M<U>()", "U", "N.B").
WithLocation
(29, 16),
10132
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "M<N.B>").WithArguments("N.C<N.A>.D.M<U>()", "U", "N.B").
WithLocation
(31, 17),
10135
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "CAD").WithArguments("N.C<T>", "T", "N.C<N.A>.D").
WithLocation
(33, 15),
10138
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "CBD").WithArguments("N.C<T>", "T", "N.C<N.B>.D").
WithLocation
(34, 15));
10172
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "B").WithArguments("D<T>", "T", "B").
WithLocation
(18, 11),
10174
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "C").WithArguments("D<T>", "T", "C").
WithLocation
(19, 11));
10195
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "B").WithArguments("C<T>", "A", "T", "B").
WithLocation
(9, 26),
10197
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<B>").WithArguments("D.M<T>()", "A", "T", "B").
WithLocation
(10, 9));
10210
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "V").WithArguments("C<T, U>", "T", "U", "V").
WithLocation
(3, 12));
10220
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "T").WithArguments("I<T>", "I<I<I<T>>>", "T", "I<T>").
WithLocation
(1, 13));
10237
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "T1").WithArguments("IB<T>", "IA<object[]>", "T", "object[]").
WithLocation
(3, 9),
10239
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "T2").WithArguments("IB<T>", "IA<T2>", "T", "T2").
WithLocation
(3, 13),
10241
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "T3").WithArguments("IB<T>", "IA<IB<T3>[]>", "T", "IB<T3>[]").
WithLocation
(3, 17));
10271
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "object").WithArguments("N.C<T, U>", "int", "U", "object").
WithLocation
(16, 24),
10274
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "G<string>").WithArguments("N.C<int, int>.G<V>()", "int", "V", "string").
WithLocation
(17, 31));
10294
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedNullableEnum, "int?").WithArguments("A<T, U>", "int", "T", "int?").
WithLocation
(7, 26),
10297
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedNullableEnum, "M<int?>").WithArguments("B<int>.M<U>()", "int", "U", "int?").
WithLocation
(8, 16));
10318
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedNullableInterface, "S?").WithArguments("A<T>", "I", "T", "S?").
WithLocation
(9, 26),
10320
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedNullableInterface, "M<S?>").WithArguments("B.M<T>()", "I", "T", "S?").
WithLocation
(10, 9));
10340
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "T").WithArguments("B<T>", "A", "T", "T").
WithLocation
(8, 26),
10342
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "M<T>").WithArguments("C<T>.M<U>()", "A", "U", "T").
WithLocation
(9, 9));
10355
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "V").WithArguments("C<T, U>", "V", "U", "U").
WithLocation
(3, 12));
10366
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "T").WithArguments("IB<T>", "IA<T>", "T", "T").
WithLocation
(1, 14),
10368
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "T").WithArguments("IA<T>", "IB<T>", "T", "T").
WithLocation
(2, 14));
10389
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "S").WithArguments("B<T>", "A", "T", "S").
WithLocation
(9, 26),
10391
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M<int, double>").WithArguments("C.M<T, U>()", "A", "U", "double").
WithLocation
(10, 9));
10421
Diagnostic(ErrorCode.ERR_DuplicateGeneratedName, "@value").WithArguments("value").
WithLocation
(10, 26),
10424
Diagnostic(ErrorCode.ERR_DuplicateGeneratedName, "value").WithArguments("value").
WithLocation
(4, 25));
10534
Diagnostic(ErrorCode.ERR_BadRetType, "G").WithArguments("C.G()", "void").
WithLocation
(11, 28)
10539
Diagnostic(ErrorCode.ERR_BadRetType, "G").WithArguments("C.G()", "void").
WithLocation
(11, 28)
10564
Diagnostic(ErrorCode.ERR_BadRetType, "oo").WithArguments("System.Func<object, object>.Invoke(object)", "object").
WithLocation
(10, 43),
10567
Diagnostic(ErrorCode.ERR_BadRetType, "oo").WithArguments("System.Func<object, object>.Invoke(object)", "object").
WithLocation
(11, 43)
10572
Diagnostic(ErrorCode.ERR_BadRetType, "oo").WithArguments("System.Func<object, object>.Invoke(object)", "object").
WithLocation
(10, 43),
10575
Diagnostic(ErrorCode.ERR_BadRetType, "oo").WithArguments("System.Func<object, object>.Invoke(object)", "object").
WithLocation
(11, 43)
10714
Diagnostic(ErrorCode.ERR_AsWithTypeVar, "o as T1").WithArguments("T1").
WithLocation
(13, 13),
10716
Diagnostic(ErrorCode.ERR_AsWithTypeVar, "o as T3").WithArguments("T3").
WithLocation
(15, 13),
10718
Diagnostic(ErrorCode.ERR_AsWithTypeVar, "o as T4").WithArguments("T4").
WithLocation
(16, 13),
10720
Diagnostic(ErrorCode.ERR_AsWithTypeVar, "o as T5").WithArguments("T5").
WithLocation
(17, 13),
10722
Diagnostic(ErrorCode.ERR_AsWithTypeVar, "o as T7").WithArguments("T7").
WithLocation
(19, 13));
10744
Diagnostic(ErrorCode.ERR_NewTyvarWithArgs, "new T(o)").WithArguments("T").
WithLocation
(5, 16),
10746
Diagnostic(ErrorCode.ERR_NewTyvarWithArgs, "new U(new V(o))").WithArguments("U").
WithLocation
(11, 16),
10748
Diagnostic(ErrorCode.ERR_NewTyvarWithArgs, "new V(o)").WithArguments("V").
WithLocation
(11, 22));
10767
Diagnostic(ErrorCode.ERR_NewTyvarWithArgs, "new T(null)").WithArguments("T").
WithLocation
(8, 9));
10895
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "GenericMethod<int>").WithArguments("Code.GenericMethod<T>(int)", "T", "int").
WithLocation
(9, 9));
11109
Diagnostic(ErrorCode.ERR_IndirectRecursiveConstructorCall, ": this(1)").WithArguments("A.A(string)").
WithLocation
(6, 24),
11112
Diagnostic(ErrorCode.ERR_IndirectRecursiveConstructorCall, ": this(long.MaxValue)").WithArguments("A.A(char)").
WithLocation
(9, 22)
11183
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "C").WithArguments("E.C").
WithLocation
(5, 5),
11186
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "H").WithArguments("E.H").
WithLocation
(10, 5));
11203
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "B").WithArguments("N.E.B").
WithLocation
(3, 30),
11206
Diagnostic(ErrorCode.ERR_CheckedOverflow, "X - 1").
WithLocation
(5, 42),
11209
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "D").WithArguments("N.F.D").
WithLocation
(4, 57));
11228
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "J").WithArguments("S32.J").
WithLocation
(3, 84),
11231
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "J").WithArguments("S64.J").
WithLocation
(4, 87),
11234
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "G").WithArguments("U32.G").
WithLocation
(7, 61),
11237
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "G").WithArguments("U16.G").
WithLocation
(6, 65),
11240
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "G").WithArguments("U8.G").
WithLocation
(5, 60),
11243
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "J").WithArguments("S16.J").
WithLocation
(2, 90),
11246
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "J").WithArguments("S8.J").
WithLocation
(1, 89),
11249
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "G").WithArguments("U64.G").
WithLocation
(8, 63));
11268
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "E256").WithArguments("C.E256").
WithLocation
(3, 1443),
11271
Diagnostic(ErrorCode.ERR_EnumeratorOverflow, "E256").WithArguments("D.E256").
WithLocation
(4, 1451));
11317
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "get_Q").WithArguments("C.Q.get").
WithLocation
(7, 20),
11320
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "set_P").WithArguments("C.P.set").
WithLocation
(7, 14),
11323
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "get_P").WithArguments("D.P.get").
WithLocation
(8, 19),
11326
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "set_Q").WithArguments("C.Q.set").
WithLocation
(8, 11),
11329
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "get_P").WithArguments("C.P.get").
WithLocation
(9, 16));
11361
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "get_P").WithArguments("A.B.C.P.get").
WithLocation
(10, 30),
11364
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "get_Q").WithArguments("A.B.C.Q.get").
WithLocation
(11, 19),
11367
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "set_P").WithArguments("A.B.C.P.set").
WithLocation
(12, 34),
11370
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "set_Q").WithArguments("A.B.C.Q.set").
WithLocation
(13, 17));
11448
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "op_Addition").WithArguments("System.IntPtr.operator +(System.IntPtr, int)").
WithLocation
(7, 16),
11451
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "op_Subtraction").WithArguments("System.IntPtr.operator -(System.IntPtr, int)").
WithLocation
(8, 16),
11454
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "op_Equality").WithArguments("System.IntPtr.operator ==(System.IntPtr, System.IntPtr)").
WithLocation
(9, 16),
11457
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "op_Inequality").WithArguments("System.IntPtr.operator !=(System.IntPtr, System.IntPtr)").
WithLocation
(10, 16),
11460
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "op_Explicit").WithArguments("System.IntPtr.explicit operator System.IntPtr(int)").
WithLocation
(11, 16));
11510
Diagnostic(ErrorCode.ERR_BadDestructorName, "iiii").
WithLocation
(6, 10));
11528
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(4, 12),
11531
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "System.RuntimeArgumentHandle").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(5, 12));
11553
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "new[] { new ArgIterator() }").WithArguments("System.ArgIterator").
WithLocation
(6, 17),
11556
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "new[] { new TypedReference() }").WithArguments("System.TypedReference").
WithLocation
(7, 17),
11559
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "new[] { new RuntimeArgumentHandle() }").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(8, 17));
11640
Diagnostic(ErrorCode.ERR_IllegalRefParam, "ref").
WithLocation
(3, 17),
11642
Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").
WithLocation
(7, 36),
11644
Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").
WithLocation
(11, 26),
11646
Diagnostic(ErrorCode.ERR_IllegalRefParam, "out").
WithLocation
(11, 37));
11667
Diagnostic(ErrorCode.ERR_LiteralDoubleCast, "1.0").WithArguments("M", "decimal").
WithLocation
(7, 22),
11670
Diagnostic(ErrorCode.ERR_LiteralDoubleCast, "2.0").WithArguments("F", "float").
WithLocation
(8, 20),
11673
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "d1").WithArguments("d1").
WithLocation
(7, 17),
11676
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "f1").WithArguments("f1").
WithLocation
(8, 15));
11842
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "GenericMethod<StaticClass>").WithArguments("StaticClass").
WithLocation
(11, 9));
11915
Diagnostic(ErrorCode.ERR_BadEmptyThrowInFinally, "throw").
WithLocation
(19, 17));
12078
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "s => -1").
WithLocation
(7, 17),
12081
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "p = null").WithArguments("<null>").
WithLocation
(9, 13),
12084
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "v = M()").WithArguments("void").
WithLocation
(11, 13));
12102
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "s => -1").
WithLocation
(5, 9),
12105
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "p = null").WithArguments("<null>").
WithLocation
(7, 5),
12108
Diagnostic(ErrorCode.ERR_FieldCantHaveVoidType, "var").
WithLocation
(9, 1));
12256
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableCannotBeConst, "var x = 0").
WithLocation
(6, 15),
12259
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableCannotBeConst, "var y = (int?)null + x").
WithLocation
(7, 15),
12262
Diagnostic(ErrorCode.WRN_AlwaysNull, "(int?)null + x").WithArguments("int?").
WithLocation
(7, 23)
12740
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => { }) is Del").
WithLocation
(10, 23),
12743
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } is Del").
WithLocation
(11, 23),
12746
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "is").WithArguments("is").
WithLocation
(11, 38),
12749
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "() => { } as Del").
WithLocation
(12, 22),
12752
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "as").WithArguments("as").
WithLocation
(12, 32),
12755
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } as Del").
WithLocation
(13, 22),
12758
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "as").WithArguments("as").
WithLocation
(13, 37)
12763
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => { }) is Del").
WithLocation
(10, 23),
12766
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } is Del").
WithLocation
(11, 23),
12769
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "is").WithArguments("is").
WithLocation
(11, 38),
12772
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "() => { } as Del").
WithLocation
(12, 22),
12775
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "as").WithArguments("as").
WithLocation
(12, 32),
12778
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } as Del").
WithLocation
(13, 22),
12781
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "as").WithArguments("as").
WithLocation
(13, 37)
12930
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S").WithArguments("S.AIProp", "11.0").
WithLocation
(5, 12));
13029
Diagnostic(ErrorCode.ERR_ArrayInitializerIncorrectLength, "{0}").WithArguments("0").
WithLocation
(6, 31),
13032
Diagnostic(ErrorCode.ERR_ArrayInitializerIncorrectLength, "{}").WithArguments("3").
WithLocation
(7, 31));
13059
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsNamedArgument, "Index(minSessions:5)").
WithLocation
(10, 40)
13083
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsNamedArgument, "new List<int> { 1 } [index: 0]").
WithLocation
(10, 41)
13111
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsOptionalArgument, "Index()").
WithLocation
(10, 40)
13149
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsOptionalArgument, "a[0]").
WithLocation
(22, 20),
13151
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "b[3] = null").
WithLocation
(25, 20),
13153
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsOptionalArgument, "b[3]").
WithLocation
(25, 20),
13155
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "b[4, 5] = null").
WithLocation
(26, 20));
13185
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsOptionalArgument, "1").
WithLocation
(18, 36));
13223
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsIndexedProperty, "i.P[1]").
WithLocation
(8, 20),
13225
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsIndexedProperty, "i.Q").
WithLocation
(10, 20),
13227
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsIndexedProperty, "i.Q[index:3]").
WithLocation
(11, 20),
13229
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "i.P[4] = 0").
WithLocation
(13, 20),
13231
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsIndexedProperty, "i.P[4]").
WithLocation
(13, 20));
13272
Diagnostic(ErrorCode.ERR_IndexedPropertyRequiresParams, "i.R").WithArguments("I.R").
WithLocation
(8, 9),
13274
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "i.R[1]").WithArguments("y", "I.R[int, int, int]").
WithLocation
(9, 9));
13324
Diagnostic(ErrorCode.ERR_IndexedPropertyRequiresParams, "a.P").WithArguments("A.P").
WithLocation
(5, 16));
13407
Diagnostic(ErrorCode.ERR_IndexedPropertyMustHaveAllOptionalParams, "R").WithArguments("IA.R").
WithLocation
(8, 24));
13458
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local").
WithLocation
(7, 11),
13461
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local").
WithLocation
(8, 9),
13464
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "field").
WithLocation
(9, 11),
13467
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "field").
WithLocation
(10, 9),
13470
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local + 3").
WithLocation
(11, 12),
13473
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local + 3").
WithLocation
(12, 10),
13476
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "2").
WithLocation
(13, 11),
13479
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "2").
WithLocation
(14, 9),
13482
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d + 1").
WithLocation
(17, 10),
13485
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d + 1").
WithLocation
(18, 12),
13488
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d++").
WithLocation
(19, 9));
13507
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "this").
WithLocation
(6, 11),
13510
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "this").
WithLocation
(7, 9));
13562
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "value__").WithArguments("E", "value__").
WithLocation
(6, 22));
13608
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item").WithArguments("System.Collections.Generic.List<object>", "Item").
WithLocation
(6, 25),
13609
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Item").WithArguments("System.Collections.Generic.List<object>", "Item").
WithLocation
(7, 14));
13629
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Select").WithArguments("int", "Select").
WithLocation
(7, 19));
13649
Diagnostic(ErrorCode.ERR_BadArgCount, "M1").WithArguments("M1", "2").
WithLocation
(6, 11),
13651
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M2").WithArguments("object", "M2").
WithLocation
(7, 11));
13695
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "e.M3").WithArguments("SC.M3(E)", "E").
WithLocation
(24, 29),
13697
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "s.M4").WithArguments("SC.M4(S)", "S").
WithLocation
(26, 29),
13699
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "d.M5").WithArguments("SC.M5(double)", "double").
WithLocation
(27, 29));
13741
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "i.M1").WithArguments("E.M1<int>(int)", "int").
WithLocation
(13, 13),
13743
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "i.M2<int, object>").WithArguments("E.M2<int, object>(int)", "int").
WithLocation
(14, 13),
13745
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "s.M1").WithArguments("E.M1<S>(S)", "S").
WithLocation
(15, 13),
13747
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "s.M2<S, object>").WithArguments("E.M2<S, object>(S)", "S").
WithLocation
(16, 13),
13749
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t1.M1").WithArguments("E.M1<T1>(T1)", "T1").
WithLocation
(17, 13),
13751
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t1.M2<T1, object>").WithArguments("E.M2<T1, object>(T1)", "T1").
WithLocation
(18, 13),
13753
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t3.M1").WithArguments("E.M1<T3>(T3)", "T3").
WithLocation
(21, 13),
13755
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t3.M2<T3, object>").WithArguments("E.M2<T3, object>(T3)", "T3").
WithLocation
(22, 13),
13757
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t4.M1").WithArguments("E.M1<T4>(T4)", "T4").
WithLocation
(23, 13),
13759
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t4.M2<T4, object>").WithArguments("E.M2<T4, object>(T4)", "T4").
WithLocation
(24, 13));
13802
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "i.M1").WithArguments("E.M1<int>(int)", "int").
WithLocation
(12, 11),
13804
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "i.M2<int, object>").WithArguments("E.M2<int, object>(int)", "int").
WithLocation
(13, 11),
13806
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "s.M1").WithArguments("E.M1<S>(S)", "S").
WithLocation
(14, 11),
13808
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "s.M2<S, object>").WithArguments("E.M2<S, object>(S)", "S").
WithLocation
(15, 11),
13810
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t1.M1").WithArguments("E.M1<T1>(T1)", "T1").
WithLocation
(16, 11),
13812
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t1.M2<T1, object>").WithArguments("E.M2<T1, object>(T1)", "T1").
WithLocation
(17, 11),
13814
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t3.M1").WithArguments("E.M1<T3>(T3)", "T3").
WithLocation
(20, 11),
13816
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t3.M2<T3, object>").WithArguments("E.M2<T3, object>(T3)", "T3").
WithLocation
(21, 11),
13818
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t4.M1").WithArguments("E.M1<T4>(T4)", "T4").
WithLocation
(22, 11),
13820
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "t4.M2<T4, object>").WithArguments("E.M2<T4, object>(T4)", "T4").
WithLocation
(23, 11));
13924
Diagnostic(ErrorCode.ERR_BadArgType, "2").WithArguments("2", "int", "char").
WithLocation
(10, 22));
13951
Diagnostic(ErrorCode.ERR_BadArgType, "E1.A").WithArguments("1", "E1", "int").
WithLocation
(9, 11),
13954
Diagnostic(ErrorCode.ERR_BadArgType, "(E2)E1.B").WithArguments("1", "E2", "int").
WithLocation
(10, 11),
13957
Diagnostic(ErrorCode.ERR_BadArgType, "E2.X").WithArguments("1", "E2", "E1").
WithLocation
(12, 11),
13960
Diagnostic(ErrorCode.ERR_BadArgType, "(int)E2.Z").WithArguments("1", "int", "E1").
WithLocation
(14, 11));
13983
Diagnostic(ErrorCode.ERR_BadArgType, "arg").WithArguments("1", "out long", "out int").
WithLocation
(9, 15));
14050
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "x => x = 1").
WithLocation
(5, 44),
14053
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "(x,y) => x = 1").
WithLocation
(6, 49),
14056
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "delegate (int x) {x = 1;}").
WithLocation
(7, 44));
14076
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "x => x = 1").
WithLocation
(5, 44),
14079
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "(x,y) => x = 1").
WithLocation
(6, 49),
14082
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "delegate (int x) {x = 1;}").
WithLocation
(7, 44));
14104
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "x => x = 1").
WithLocation
(7, 22),
14107
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "(x,y) => x = 1").
WithLocation
(8, 27),
14110
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "delegate (int x) {x = 1;}").
WithLocation
(9, 22));
14132
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "x => x = 1").
WithLocation
(7, 22),
14135
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "(x,y) => x = 1").
WithLocation
(8, 27),
14138
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "delegate (int x) {x = 1;}").
WithLocation
(9, 22));
14162
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "D").WithArguments("D", "method group").
WithLocation
(8, 44),
14165
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "D").WithArguments("D", "method group").
WithLocation
(9, 44),
14168
Diagnostic(ErrorCode.ERR_MethodNameExpected, "del").
WithLocation
(10, 44),
14171
Diagnostic(ErrorCode.ERR_MethodNameExpected, "del").
WithLocation
(11, 44));
14294
Diagnostic(ErrorCode.ERR_MemberNeedsType, "Helper").
WithLocation
(4, 5)
14329
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(5, 19),
14332
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(":").
WithLocation
(5, 19),
14335
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(5, 19),
14338
Diagnostic(ErrorCode.ERR_NoImplicitConv, "1").WithArguments("int", "bool").
WithLocation
(5, 17));
14361
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(7, 46),
14364
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(":").
WithLocation
(7, 46),
14367
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(7, 46),
14370
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(":").
WithLocation
(8, 52),
14373
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(8, 52),
14376
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(9, 61),
14379
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(",").
WithLocation
(9, 63),
14382
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ":").WithArguments(":").
WithLocation
(10, 48),
14385
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ":").WithArguments(":").
WithLocation
(10, 50),
14388
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(10, 50));
14781
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "md1").WithArguments("y", "MyDelegate1").
WithLocation
(11, 9));
14954
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "F1").WithArguments("C<T, U, V>.F1").
WithLocation
(20, 9),
14956
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "F2").WithArguments("C<T, U, V>.F2").
WithLocation
(21, 9));
15001
Diagnostic(ErrorCode.ERR_DelegateOnConditional, "ConditionalMethod").WithArguments("MakeAnError.ConditionalMethod()").
WithLocation
(10, 25));
15030
Diagnostic(ErrorCode.ERR_DelegateOnConditional, "ConditionalMethod").WithArguments("MakeAnError.ConditionalMethod()").
WithLocation
(15, 18));
15518
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "delegate").WithArguments("anonymous method", "MyDelegate").
WithLocation
(8, 24)
15540
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("string", "int").
WithLocation
(8, 61),
15543
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "x").WithArguments("lambda expression").
WithLocation
(8, 61),
15546
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "=>").WithArguments("lambda expression", "System.Func<int>").
WithLocation
(8, 26)
15607
Diagnostic(ErrorCode.ERR_RefReadonly2, "outer.inner.i").WithArguments("Outer.inner").
WithLocation
(21, 15)
15772
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "c").WithArguments("c", "using variable").
WithLocation
(15, 13),
15774
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "p").WithArguments("p", "fixed variable").
WithLocation
(21, 13));
15790
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "M").WithArguments("M", "method group").
WithLocation
(5, 9));
15839
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "a").WithArguments("a", "foreach iteration variable").
WithLocation
(12, 19)
15898
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1.0").WithArguments("double", "int").
WithLocation
(9, 49),
15901
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "1.0").WithArguments("anonymous method").
WithLocation
(9, 49),
15904
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""Who knows the real sword of Gryffindor?""").WithArguments("string", "double").
WithLocation
(10, 31),
15907
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, @"""Who knows the real sword of Gryffindor?""").WithArguments("lambda expression").
WithLocation
(10, 31)
15951
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "inst.field.buffer").WithArguments("indexing movable fixed buffers", "7.3").
WithLocation
(13, 30),
15954
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "inst.field.buffer").WithArguments("indexing movable fixed buffers", "7.3").
WithLocation
(15, 30),
15957
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_2, "field.buffer").WithArguments("indexing movable fixed buffers", "7.3").
WithLocation
(22, 17)
15991
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "inst.field.buffer").
WithLocation
(13, 30),
15994
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "field.buffer").
WithLocation
(20, 17)
16451
Diagnostic(ErrorCode.ERR_NewlineInConst, "").
WithLocation
(11, 31),
16454
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(11, 34),
16457
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(11, 34),
16463
}").WithArguments("OutParam").
WithLocation
(9, 13)
16498
Diagnostic(ErrorCode.ERR_FixedNeedsLvalue, "myC.UnsafeMethod().name").
WithLocation
(18, 9),
16501
Diagnostic(ErrorCode.ERR_AssgReadonlyStatic2, "C._s1.name[3]").WithArguments("C._s1").
WithLocation
(19, 9),
16504
Diagnostic(ErrorCode.ERR_AssgReadonly2, "myC._s2.name[3]").WithArguments("C._s2").
WithLocation
(20, 9)
16577
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Child").WithArguments("i", "Parent.Parent(int, int)").
WithLocation
(21, 14),
16580
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "double").WithArguments("double", "1").
WithLocation
(6, 24),
16583
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Test").WithArguments("Test", "1").
WithLocation
(7, 26),
16586
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Parent").WithArguments("j", "Parent.Parent(int, int)").
WithLocation
(9, 37)
16691
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, @"""""").WithArguments("7.2").
WithLocation
(6, 21)
16750
Diagnostic(ErrorCode.ERR_DuplicateNamedArgument, "Name").WithArguments("Name").
WithLocation
(6, 33));
16925
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "f").WithArguments("float", "F", "S.F(double)", "double").
WithLocation
(5, 9));
16947
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "a").WithArguments("A", "E", "S.E(B)", "B").
WithLocation
(6, 9)
17397
Diagnostic(ErrorCode.ERR_QueryTypeInferenceFailedSelectMany, "3").WithArguments("int", "Test.F1", "SelectMany").
WithLocation
(14, 23)
17555
Diagnostic(ErrorCode.ERR_ByRefParameterInExpressionTree, "x").
WithLocation
(7, 75)
17575
Diagnostic(ErrorCode.ERR_ByRefParameterInExpressionTree, "x").
WithLocation
(7, 74)
17626
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "num.GetType is int").
WithLocation
(10, 21));
17761
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn").WithArguments("IContexts<TIn, TOut, TInv>.Property2In", "TIn", "contravariant", "covariantly").
WithLocation
(6, 5),
17764
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn").WithArguments("IContexts<TIn, TOut, TInv>.Property3In", "TIn", "contravariant", "invariantly").
WithLocation
(7, 5),
17767
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn").WithArguments("IContexts<TIn, TOut, TInv>.this[int, char[], char]", "TIn", "contravariant", "covariantly").
WithLocation
(10, 5),
17770
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn").WithArguments("IContexts<TIn, TOut, TInv>.this[int, long[], char]", "TIn", "contravariant", "invariantly").
WithLocation
(14, 5),
17773
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn").WithArguments("IContexts<TIn, TOut, TInv>.Method2In()", "TIn", "contravariant", "covariantly").
WithLocation
(17, 5),
17776
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn").WithArguments("IContexts<TIn, TOut, TInv>.Method3In(out TIn)", "TIn", "contravariant", "invariantly").
WithLocation
(18, 23),
17779
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn").WithArguments("IContexts<TIn, TOut, TInv>.Method4In(ref TIn)", "TIn", "contravariant", "invariantly").
WithLocation
(19, 23),
17782
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IContexts<TIn, TOut, TInv>.Property1Out", "TOut", "covariant", "contravariantly").
WithLocation
(25, 5),
17785
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IContexts<TIn, TOut, TInv>.Property3Out", "TOut", "covariant", "invariantly").
WithLocation
(27, 5),
17788
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IContexts<TIn, TOut, TInv>.this[TOut, char, bool]", "TOut", "covariant", "contravariantly").
WithLocation
(29, 14),
17791
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IContexts<TIn, TOut, TInv>.this[TOut, bool, bool]", "TOut", "covariant", "contravariantly").
WithLocation
(31, 14),
17794
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IContexts<TIn, TOut, TInv>.this[int, bool[], bool]", "TOut", "covariant", "contravariantly").
WithLocation
(32, 5),
17797
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IContexts<TIn, TOut, TInv>.this[TOut, long, bool]", "TOut", "covariant", "contravariantly").
WithLocation
(33, 14),
17800
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IContexts<TIn, TOut, TInv>.this[int, long[], bool]", "TOut", "covariant", "invariantly").
WithLocation
(34, 5),
17803
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IContexts<TIn, TOut, TInv>.Method1Out(TOut)", "TOut", "covariant", "contravariantly").
WithLocation
(36, 21),
17806
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IContexts<TIn, TOut, TInv>.Method3Out(out TOut)", "TOut", "covariant", "invariantly").
WithLocation
(38, 25),
17809
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IContexts<TIn, TOut, TInv>.Method4Out(ref TOut)", "TOut", "covariant", "invariantly").
WithLocation
(39, 25),
17812
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "Event1Out").WithArguments("IContexts<TIn, TOut, TInv>.Event1Out", "TOut", "covariant", "contravariantly").
WithLocation
(41, 22));
17893
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Property1Bad", "TIn", "contravariant", "covariantly").
WithLocation
(9, 5),
17896
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.this[char[]]", "TIn", "contravariant", "covariantly").
WithLocation
(10, 5),
17899
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Method1Bad()", "TIn", "contravariant", "covariantly").
WithLocation
(11, 5),
17902
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn[]").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Property2Bad", "TIn", "contravariant", "covariantly").
WithLocation
(19, 5),
17905
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn[]").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.this[char[*,*]]", "TIn", "contravariant", "covariantly").
WithLocation
(20, 5),
17908
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TIn[]").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Method2Bad()", "TIn", "contravariant", "covariantly").
WithLocation
(21, 5),
17911
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IOut<TIn>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Property3Bad", "TIn", "contravariant", "covariantly").
WithLocation
(29, 5),
17914
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IOut<TIn>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.this[char[*,*,*]]", "TIn", "contravariant", "covariantly").
WithLocation
(30, 5),
17917
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IOut<TIn>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Method3Bad()", "TIn", "contravariant", "covariantly").
WithLocation
(31, 5),
17920
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TIn>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Property4Bad", "TIn", "contravariant", "invariantly").
WithLocation
(39, 5),
17923
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TIn>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.this[char[*,*,*,*]]", "TIn", "contravariant", "invariantly").
WithLocation
(40, 5),
17926
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TIn>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Method4Bad()", "TIn", "contravariant", "invariantly").
WithLocation
(41, 5),
17929
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IIn<TOut>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Property5Bad", "TOut", "covariant", "contravariantly").
WithLocation
(49, 5),
17932
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IIn<TOut>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.this[char[*,*,*,*,*]]", "TOut", "covariant", "contravariantly").
WithLocation
(50, 5),
17935
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IIn<TOut>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Method5Bad()", "TOut", "covariant", "contravariantly").
WithLocation
(51, 5),
17938
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TOut>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Property6Bad", "TOut", "covariant", "invariantly").
WithLocation
(59, 5),
17941
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TOut>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.this[char[*,*,*,*,*,*]]", "TOut", "covariant", "invariantly").
WithLocation
(60, 5),
17944
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TOut>").WithArguments("IOutputUnsafe<TIn, TOut, TInv>.Method6Bad()", "TOut", "covariant", "invariantly").
WithLocation
(61, 5));
18050
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[]]", "TOut", "covariant", "contravariantly").
WithLocation
(11, 5),
18053
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[], TOut]", "TOut", "covariant", "contravariantly").
WithLocation
(12, 36),
18056
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut[]").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[*,*]]", "TOut", "covariant", "contravariantly").
WithLocation
(23, 5),
18059
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut[]").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[*,*], TOut[]]", "TOut", "covariant", "contravariantly").
WithLocation
(24, 37),
18062
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IOut<TOut>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[*,*,*]]", "TOut", "covariant", "contravariantly").
WithLocation
(36, 5),
18065
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IOut<TOut>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[*,*,*], IOut<TOut>]", "TOut", "covariant", "contravariantly").
WithLocation
(37, 38),
18068
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TOut>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[*,*,*,*]]", "TOut", "covariant", "invariantly").
WithLocation
(50, 5),
18071
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TOut>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[*,*,*,*], IInv<TOut>]", "TOut", "covariant", "invariantly").
WithLocation
(51, 39),
18074
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IIn<TIn>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[*,*,*,*,*]]", "TIn", "contravariant", "covariantly").
WithLocation
(64, 5),
18077
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IIn<TIn>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[*,*,*,*,*], IIn<TIn>]", "TIn", "contravariant", "covariantly").
WithLocation
(65, 40),
18080
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TIn>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[*,*,*,*,*,*]]", "TIn", "contravariant", "invariantly").
WithLocation
(78, 5),
18083
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TIn>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.this[char[*,*,*,*,*,*], IInv<TIn>]", "TIn", "contravariant", "invariantly").
WithLocation
(79, 41),
18086
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Property1Bad", "TOut", "covariant", "contravariantly").
WithLocation
(10, 5),
18089
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Method1Bad(TOut)", "TOut", "covariant", "contravariantly").
WithLocation
(13, 21),
18092
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut[]").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Property2Bad", "TOut", "covariant", "contravariantly").
WithLocation
(22, 5),
18095
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "TOut[]").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Method2Bad(TOut[])", "TOut", "covariant", "contravariantly").
WithLocation
(25, 21),
18098
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IOut<TOut>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Property3Bad", "TOut", "covariant", "contravariantly").
WithLocation
(35, 5),
18101
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IOut<TOut>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Method3Bad(IOut<TOut>)", "TOut", "covariant", "contravariantly").
WithLocation
(38, 21),
18104
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "Event3Bad").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Event3Bad", "TOut", "covariant", "contravariantly").
WithLocation
(39, 22),
18107
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TOut>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Property4Bad", "TOut", "covariant", "invariantly").
WithLocation
(49, 5),
18110
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TOut>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Method4Bad(IInv<TOut>)", "TOut", "covariant", "invariantly").
WithLocation
(52, 21),
18113
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "Event4Bad").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Event4Bad", "TOut", "covariant", "invariantly").
WithLocation
(53, 22),
18116
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IIn<TIn>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Property5Bad", "TIn", "contravariant", "covariantly").
WithLocation
(63, 5),
18119
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IIn<TIn>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Method5Bad(IIn<TIn>)", "TIn", "contravariant", "covariantly").
WithLocation
(66, 21),
18122
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "Event5Bad").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Event5Bad", "TIn", "contravariant", "covariantly").
WithLocation
(67, 20),
18125
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TIn>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Property6Bad", "TIn", "contravariant", "invariantly").
WithLocation
(77, 5),
18128
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInv<TIn>").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Method6Bad(IInv<TIn>)", "TIn", "contravariant", "invariantly").
WithLocation
(80, 21),
18131
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "Event6Bad").WithArguments("IInputUnsafe<TIn, TOut, TInv>.Event6Bad", "TIn", "contravariant", "invariantly").
WithLocation
(81, 21));
18218
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ICovariant<TOutputUnsafe>").WithArguments("IOutputUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.OutputUnsafe2()", "TOutputUnsafe", "contravariant", "covariantly").
WithLocation
(5, 5),
18221
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IContravariant<TInputUnsafe>").WithArguments("IOutputUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.OutputUnsafe4()", "TInputUnsafe", "covariant", "contravariantly").
WithLocation
(8, 5),
18224
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInvariant<TInputUnsafe>").WithArguments("IOutputUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.OutputUnsafe7()", "TInputUnsafe", "covariant", "invariantly").
WithLocation
(12, 5),
18227
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInvariant<TOutputUnsafe>").WithArguments("IOutputUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.OutputUnsafe8()", "TOutputUnsafe", "contravariant", "invariantly").
WithLocation
(13, 5),
18230
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ICovariant<TInputUnsafe>").WithArguments("IInputUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.InputUnsafe1(ICovariant<TInputUnsafe>)", "TInputUnsafe", "covariant", "contravariantly").
WithLocation
(19, 23),
18233
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IContravariant<TOutputUnsafe>").WithArguments("IInputUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.InputUnsafe5(IContravariant<TOutputUnsafe>)", "TOutputUnsafe", "contravariant", "covariantly").
WithLocation
(24, 23),
18236
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInvariant<TInputUnsafe>").WithArguments("IInputUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.InputUnsafe7(IInvariant<TInputUnsafe>)", "TInputUnsafe", "covariant", "invariantly").
WithLocation
(27, 23),
18239
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInvariant<TOutputUnsafe>").WithArguments("IInputUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.InputUnsafe8(IInvariant<TOutputUnsafe>)", "TOutputUnsafe", "contravariant", "invariantly").
WithLocation
(28, 23),
18245
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ICovariant<TInputUnsafe>").WithArguments("IBothUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.InputUnsafe1(ref ICovariant<TInputUnsafe>)", "TInputUnsafe", "covariant", "invariantly").
WithLocation
(34, 27),
18248
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ICovariant<TOutputUnsafe>").WithArguments("IBothUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.InputUnsafe2(ref ICovariant<TOutputUnsafe>)", "TOutputUnsafe", "contravariant", "invariantly").
WithLocation
(35, 27),
18251
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IContravariant<TInputUnsafe>").WithArguments("IBothUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.InputUnsafe4(ref IContravariant<TInputUnsafe>)", "TInputUnsafe", "covariant", "invariantly").
WithLocation
(38, 27),
18254
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IContravariant<TOutputUnsafe>").WithArguments("IBothUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.InputUnsafe5(ref IContravariant<TOutputUnsafe>)", "TOutputUnsafe", "contravariant", "invariantly").
WithLocation
(39, 27),
18257
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInvariant<TInputUnsafe>").WithArguments("IBothUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.InputUnsafe7(ref IInvariant<TInputUnsafe>)", "TInputUnsafe", "covariant", "invariantly").
WithLocation
(42, 27),
18260
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IInvariant<TOutputUnsafe>").WithArguments("IBothUnsafeTable<TInputUnsafe, TOutputUnsafe, TInvariant>.InputUnsafe8(ref IInvariant<TOutputUnsafe>)", "TOutputUnsafe", "contravariant", "invariantly").
WithLocation
(43, 27));
18616
Diagnostic(ErrorCode.ERR_BadDynamicMethodArgLambda, "delegate() { }").
WithLocation
(16, 18),
18619
Diagnostic(ErrorCode.ERR_BadDynamicMethodArg, "p").WithArguments("int*").
WithLocation
(17, 21),
18622
Diagnostic(ErrorCode.ERR_BadDynamicMethodArg, "__arglist").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(18, 18),
18625
Diagnostic(ErrorCode.ERR_BadArgTypesForCollectionAdd, "{ d, GetEnumerator }").WithArguments("C.Add(dynamic, System.RuntimeArgumentHandle)").
WithLocation
(19, 13),
18628
Diagnostic(ErrorCode.ERR_BadArgType, "GetEnumerator").WithArguments("2", "method group", "System.RuntimeArgumentHandle").
WithLocation
(19, 18),
18631
Diagnostic(ErrorCode.ERR_BadDynamicMethodArgMemgrp, "SomeStaticMethod").
WithLocation
(20, 18));
19046
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "l1").
WithLocation
(9, 7));
19069
Diagnostic(ErrorCode.WRN_UnreferencedVar, "j").WithArguments("j").
WithLocation
(11, 13),
19070
Diagnostic(ErrorCode.WRN_UnreferencedVar, "a").WithArguments("a").
WithLocation
(13, 13));
19089
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(7, 42),
19090
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(8, 37));
19382
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 13));
19398
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 14));
19418
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(6, 12),
19419
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s").WithArguments("s").
WithLocation
(7, 16)
19442
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(11, 13)
19462
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 18)
19774
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "t4").WithArguments("T4", "collection", "System.Collections.Generic.IEnumerable<string>.GetEnumerator()", "System.Collections.Generic.IEnumerable<int>.GetEnumerator()").
WithLocation
(42, 27),
19776
Diagnostic(ErrorCode.ERR_MultipleIEnumOfT, "t4").WithArguments("T4", "System.Collections.Generic.IEnumerable<T>").
WithLocation
(42, 27),
19778
Diagnostic(ErrorCode.WRN_PatternIsAmbiguous, "t8").WithArguments("T8", "collection", "System.Collections.Generic.IEnumerable<string>.GetEnumerator()", "System.Collections.Generic.IEnumerable<B>.GetEnumerator()").
WithLocation
(46, 27),
19780
Diagnostic(ErrorCode.ERR_MultipleIEnumOfT, "t8").WithArguments("T8", "System.Collections.Generic.IEnumerable<T>").
WithLocation
(46, 27));
19887
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "t1_field").WithArguments("S<T1, T2>.t1_field").
WithLocation
(3, 8)
20706
Diagnostic(ErrorCode.WRN_GotoCaseShouldConvert, "goto case 127;").WithArguments("char").
WithLocation
(13, 13)
20825
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "i == null").WithArguments("false", "int", "int?").
WithLocation
(19, 11),
20828
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "i != null").WithArguments("true", "int", "int?").
WithLocation
(20, 11),
20831
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "g == null").WithArguments("false", "System.Guid", "System.Guid?").
WithLocation
(23, 11),
20834
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "g != null").WithArguments("true", "System.Guid", "System.Guid?").
WithLocation
(24, 11),
20837
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "i == default(short?)").WithArguments("false", "int", "short?").
WithLocation
(28, 11),
20840
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "i != default(short?)").WithArguments("true", "int", "short?").
WithLocation
(29, 11),
20843
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "g == default(Guid?)").WithArguments("false", "System.Guid", "System.Guid?").
WithLocation
(32, 11),
20846
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "g != default(Guid?)").WithArguments("true", "System.Guid", "System.Guid?").
WithLocation
(33, 11),
20849
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "i == new sbyte?()").WithArguments("false", "int", "sbyte?").
WithLocation
(37, 11),
20852
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "i != new sbyte?()").WithArguments("true", "int", "sbyte?").
WithLocation
(38, 11),
20855
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "g == new Guid?()").WithArguments("false", "System.Guid", "System.Guid?").
WithLocation
(41, 11),
20858
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "g != new Guid?()").WithArguments("true", "System.Guid", "System.Guid?").
WithLocation
(42, 11),
20861
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "null == i").WithArguments("false", "int", "int?").
WithLocation
(49, 11),
20864
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "null != i").WithArguments("true", "int", "int?").
WithLocation
(50, 11),
20867
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "null == g").WithArguments("false", "System.Guid", "System.Guid?").
WithLocation
(53, 11),
20870
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "null != g").WithArguments("true", "System.Guid", "System.Guid?").
WithLocation
(54, 11),
20873
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "default(long?) == i").WithArguments("false", "long", "long?").
WithLocation
(58, 11),
20876
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "default(long?) != i").WithArguments("true", "long", "long?").
WithLocation
(59, 11),
20879
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "default(Guid?) == g").WithArguments("false", "System.Guid", "System.Guid?").
WithLocation
(62, 11),
20882
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "default(Guid?) != g").WithArguments("true", "System.Guid", "System.Guid?").
WithLocation
(63, 11),
20885
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "new double?() == i").WithArguments("false", "double", "double?").
WithLocation
(67, 11),
20888
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "new double?() != i").WithArguments("true", "double", "double?").
WithLocation
(68, 11),
20891
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "new Guid?() == g").WithArguments("false", "System.Guid", "System.Guid?").
WithLocation
(71, 11),
20894
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "new Guid?() != g").WithArguments("true", "System.Guid", "System.Guid?").
WithLocation
(72, 11),
20897
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "(E?)1 == null").WithArguments("false", "MyClass.E", "MyClass.E?").
WithLocation
(84, 11),
20900
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "null != (E?)1").WithArguments("true", "MyClass.E", "MyClass.E?").
WithLocation
(85, 11),
20903
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "(int?)1 == null").WithArguments("false", "int", "int?").
WithLocation
(87, 11),
20906
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "null != (int?)1").WithArguments("true", "int", "int?").
WithLocation
(88, 11),
20909
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "0 == (int?)null").WithArguments("false", "int", "int?").
WithLocation
(92, 11),
20912
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "(int?)null != 0").WithArguments("true", "int", "int?").
WithLocation
(93, 11),
20915
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "0 == (E?)null").WithArguments("false", "MyClass.E", "MyClass.E?").
WithLocation
(95, 11),
20918
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "(E?)null != 0").WithArguments("true", "MyClass.E", "MyClass.E?").
WithLocation
(96, 11)
20944
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "i == null").WithArguments("false", "int", "int?").
WithLocation
(9, 21));
21318
Diagnostic(ErrorCode.WRN_BitwiseOrSignExtend, "bits |= (1 << i)").
WithLocation
(53, 17),
21321
Diagnostic(ErrorCode.WRN_BitwiseOrSignExtend, "bits | (1 << i)").
WithLocation
(54, 24)
21380
Diagnostic(ErrorCode.WRN_AssignmentToLockOrDispose, "d").WithArguments("d").
WithLocation
(12, 19),
21381
Diagnostic(ErrorCode.WRN_AssignmentToLockOrDispose, "d").WithArguments("d").
WithLocation
(16, 19));
21418
Diagnostic(ErrorCode.WRN_DebugFullNameTooLong, "Main").WithArguments("AVeryLong TSystem.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Collections.Generic.List`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089").
WithLocation
(12, 20));
21441
Diagnostic(ErrorCode.ERR_UnreachableCatch, "System.IO.IOException").WithArguments("System.Exception").
WithLocation
(7, 16),
21442
Diagnostic(ErrorCode.WRN_UnreachableGeneralCatch, "catch").
WithLocation
(8, 9),
21443
Diagnostic(ErrorCode.WRN_UnreachableGeneralCatch, "catch").
WithLocation
(12, 9));
21662
Diagnostic(ErrorCode.WRN_BadXMLRefReturnType, "intt").
WithLocation
(15, 46),
21665
Diagnostic(ErrorCode.WRN_BadXMLRef, "MyClass.explicit operator intt(MyClass)").WithArguments("explicit operator intt(MyClass)").
WithLocation
(15, 20));
22412
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(object).GetHashCode").WithArguments("object").
WithLocation
(20, 9),
22415
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(T4).GetHashCode").WithArguments("T4").
WithLocation
(24, 9),
22418
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(T6).GetHashCode").WithArguments("T6").
WithLocation
(26, 9),
22421
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(T6).P").WithArguments("T6").
WithLocation
(28, 9));
22472
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(A)[0]").WithArguments("A").
WithLocation
(23, 13),
22474
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(I)[0]").WithArguments("I").
WithLocation
(25, 13),
22476
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(object[])[0]").WithArguments("object[]").
WithLocation
(26, 13),
22478
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(T1)[0]").WithArguments("T1").
WithLocation
(27, 13),
22480
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(T4)[0]").WithArguments("T4").
WithLocation
(30, 13),
22482
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(A)[1]").WithArguments("A").
WithLocation
(32, 9),
22484
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(I)[1]").WithArguments("I").
WithLocation
(33, 9),
22486
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(object[])[1]").WithArguments("object[]").
WithLocation
(34, 9),
22488
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(T1)[1]").WithArguments("T1").
WithLocation
(35, 9),
22490
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "default(T3)[1]").
WithLocation
(37, 9), // Incorrect? See CS0131ERR_AssgLvalueExpected03 unit test.
22492
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(T4)[1]").WithArguments("T4").
WithLocation
(38, 9));
22496
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "default(T3)[1]").
WithLocation
(37, 9));
22818
Diagnostic(ErrorCode.ERR_MethodNameExpected, "2 + 2").
WithLocation
(28, 25),
22821
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new D1(d3)").WithArguments("CSSample.Program.D3.Invoke(int)", "CSSample.Program.D1").
WithLocation
(29, 18),
22824
Diagnostic(ErrorCode.ERR_MethodNameExpected, "2, 3").
WithLocation
(30, 25),
22827
Diagnostic(ErrorCode.ERR_MethodNameExpected, "3").
WithLocation
(31, 28),
22830
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new D1(M2)").WithArguments("M2", "CSSample.Program.D1").
WithLocation
(32, 18),
22833
Diagnostic(ErrorCode.WRN_UnreferencedField, "d2").WithArguments("CSSample.Program.d2").
WithLocation
(16, 19),
22836
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "d3").WithArguments("CSSample.Program.d3", "null").
WithLocation
(17, 19));
22870
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "x => x").
WithLocation
(16, 47),
22873
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "Goo<string>(x => x)").
WithLocation
(17, 47),
22876
Diagnostic(ErrorCode.ERR_RefProperty, "ref BarP").
WithLocation
(18, 43),
22879
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new Func<string, string>(x => x)").
WithLocation
(19, 47),
22882
Diagnostic(ErrorCode.ERR_RefProperty, "ref Program.BarP").
WithLocation
(20, 43),
22885
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "Program.Goo<string>(x => x)").
WithLocation
(21, 47),
22888
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new(x => x)").
WithLocation
(23, 48)
22894
Diagnostic(ErrorCode.ERR_MethodNameExpected, "Bar").
WithLocation
(13, 47),
22897
Diagnostic(ErrorCode.ERR_MethodNameExpected, "Baz").
WithLocation
(14, 47),
22900
Diagnostic(ErrorCode.ERR_MethodNameExpected, "k").
WithLocation
(15, 47),
22903
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "x => x").
WithLocation
(16, 47),
22906
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "Goo<string>(x => x)").
WithLocation
(17, 47),
22909
Diagnostic(ErrorCode.ERR_RefProperty, "BarP").
WithLocation
(18, 47),
22912
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new Func<string, string>(x => x)").
WithLocation
(19, 47),
22915
Diagnostic(ErrorCode.ERR_RefProperty, "Program.BarP").
WithLocation
(20, 47),
22918
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "Program.Goo<string>(x => x)").
WithLocation
(21, 47),
22921
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "Id").WithArguments("Id", "method group").
WithLocation
(22, 48),
22924
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "new(x => x)").
WithLocation
(23, 48)
22959
Diagnostic(ErrorCode.ERR_MethodNameExpected, "Bar").
WithLocation
(13, 48),
22962
Diagnostic(ErrorCode.ERR_MethodNameExpected, "Baz").
WithLocation
(14, 48),
22965
Diagnostic(ErrorCode.ERR_MethodNameExpected, "k").
WithLocation
(15, 48),
22968
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "Id").WithArguments("Id", "method group").
WithLocation
(16, 49));
22973
Diagnostic(ErrorCode.ERR_MethodNameExpected, "Bar").
WithLocation
(13, 48),
22976
Diagnostic(ErrorCode.ERR_MethodNameExpected, "Baz").
WithLocation
(14, 48),
22979
Diagnostic(ErrorCode.ERR_MethodNameExpected, "k").
WithLocation
(15, 48),
22982
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "Id").WithArguments("Id", "method group").
WithLocation
(16, 49),
22985
Diagnostic(ErrorCode.ERR_MethodNameExpected, "Bar").
WithLocation
(18, 47),
22988
Diagnostic(ErrorCode.ERR_MethodNameExpected, "Baz").
WithLocation
(19, 47),
22991
Diagnostic(ErrorCode.ERR_MethodNameExpected, "k").
WithLocation
(20, 47),
22994
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "Id").WithArguments("Id", "method group").
WithLocation
(21, 47));
23018
Diagnostic(ErrorCode.ERR_MethodNameExpected, "Baz, Baz.Invoke").
WithLocation
(8, 46),
23021
Diagnostic(ErrorCode.ERR_MethodNameExpected, "Baz, ref Baz.Invoke").
WithLocation
(9, 42),
23024
Diagnostic(ErrorCode.ERR_MethodNameExpected, "Baz, ref Baz.Invoke").
WithLocation
(10, 46),
23027
Diagnostic(ErrorCode.ERR_RefProperty, "ref BarP").
WithLocation
(11, 42),
23030
Diagnostic(ErrorCode.ERR_MethodNameExpected, "BarP, BarP.Invoke").
WithLocation
(11, 46),
23033
Diagnostic(ErrorCode.ERR_MethodNameExpected, "BarP, ref BarP.Invoke").
WithLocation
(12, 42),
23036
Diagnostic(ErrorCode.ERR_RefProperty, "ref BarP").
WithLocation
(13, 42),
23039
Diagnostic(ErrorCode.ERR_MethodNameExpected, "BarP, ref BarP.Invoke").
WithLocation
(13, 46)
23134
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "l<>").WithArguments("l", "variable").
WithLocation
(16, 14),
23137
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "p<>").WithArguments("object p", "variable").
WithLocation
(17, 14),
23140
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "f<>").WithArguments("Program.f", "field").
WithLocation
(19, 14),
23143
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "P<>").WithArguments("Program.P", "property").
WithLocation
(20, 14),
23146
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "M<>").WithArguments("Program.M()", "method").
WithLocation
(21, 14),
23149
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "this.f<>").
WithLocation
(23, 14),
23152
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "f<>").WithArguments("Program.f", "field").
WithLocation
(23, 19),
23155
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "this.P<>").
WithLocation
(24, 14),
23158
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "P<>").WithArguments("Program.P", "property").
WithLocation
(24, 19),
23161
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "this.M<>").
WithLocation
(25, 14),
23164
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "M<>").WithArguments("Program.M()", "method").
WithLocation
(25, 19),
23167
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "M<>").WithArguments("Program.M()", "method").
WithLocation
(29, 13),
23170
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "this.M<>").
WithLocation
(30, 13),
23173
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "M<>").WithArguments("Program.M()", "method").
WithLocation
(30, 18),
23176
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "I<>").WithArguments("Program.I", "type").
WithLocation
(32, 9),
23179
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<>").WithArguments("Program.C", "type").
WithLocation
(33, 9),
23182
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<>").WithArguments("Program.C", "type").
WithLocation
(34, 20),
23185
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "S<>").WithArguments("Program.S", "type").
WithLocation
(35, 9),
23188
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "S<>").WithArguments("Program.S", "type").
WithLocation
(36, 20),
23191
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "D<>").WithArguments("Program.D", "type").
WithLocation
(37, 9),
23194
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "I<>").WithArguments("Program.I", "type").
WithLocation
(39, 17),
23197
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<>").WithArguments("Program.C", "type").
WithLocation
(40, 17),
23200
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<>").WithArguments("Program.C", "type").
WithLocation
(41, 36),
23203
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "S<>").WithArguments("Program.S", "type").
WithLocation
(42, 17),
23206
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "S<>").WithArguments("Program.S", "type").
WithLocation
(43, 36),
23209
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "D<>").WithArguments("Program.D", "type").
WithLocation
(44, 17),
23212
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "I<>").WithArguments("Program.I", "type").
WithLocation
(46, 22),
23215
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<>").WithArguments("Program.C", "type").
WithLocation
(47, 22),
23218
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "S<>").WithArguments("Program.S", "type").
WithLocation
(48, 22),
23221
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "I<>").WithArguments("Program.I", "type").
WithLocation
(50, 30),
23224
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<>").WithArguments("Program.C", "type").
WithLocation
(51, 30),
23227
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "S<>").WithArguments("Program.S", "type").
WithLocation
(52, 30),
23230
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "I<>").WithArguments("Program.I", "type").
WithLocation
(56, 20),
23233
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<>").WithArguments("Program.C", "type").
WithLocation
(57, 20),
23236
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "S<>").WithArguments("Program.S", "type").
WithLocation
(58, 20),
23239
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "I<>").WithArguments("Program.I", "type").
WithLocation
(60, 28),
23242
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<>").WithArguments("Program.C", "type").
WithLocation
(61, 28),
23245
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "S<>").WithArguments("Program.S", "type").
WithLocation
(62, 28),
23248
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "f").WithArguments("Program.f", "0").
WithLocation
(4, 9)
23278
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "E<>").WithArguments("Program.E", "event").
WithLocation
(9, 14),
23281
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "this.E<>").
WithLocation
(10, 14),
23284
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "E<>").WithArguments("Program.E", "event").
WithLocation
(10, 19),
23287
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "E<>").WithArguments("Program.E", "event").
WithLocation
(12, 9),
23290
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "F<>").WithArguments("Program.F", "event").
WithLocation
(13, 9),
23293
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "this.E<>").
WithLocation
(15, 9),
23296
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "E<>").WithArguments("Program.E", "event").
WithLocation
(15, 14),
23299
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "this.F<>").
WithLocation
(16, 9),
23302
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "F<>").WithArguments("Program.F", "event").
WithLocation
(16, 14));
23554
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(8, 10),
23557
Diagnostic(ErrorCode.ERR_ObjectRequired, "ToString").WithArguments("object.ToString()").
WithLocation
(9, 14),
23560
Diagnostic(ErrorCode.ERR_AnonymousReturnExpected, "delegate").WithArguments("anonymous method", "Program.D").
WithLocation
(7, 15)
23580
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "(a) => a").
WithLocation
(5, 26));
23598
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "List<int>").WithArguments("List<>").
WithLocation
(7, 41),
23601
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "List<int>").WithArguments("List<>").
WithLocation
(7, 21)
23644
Diagnostic(ErrorCode.ERR_RefReadonlyStatic, "Program.Field2").
WithLocation
(11, 58)
23856
Diagnostic(ErrorCode.ERR_UnreachableCatch, "T").WithArguments("S").
WithLocation
(14, 15),
23859
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(11, 17),
23862
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(14, 17)
23894
Diagnostic(ErrorCode.ERR_BadUnaryOp, "?").WithArguments("?", "int").
WithLocation
(13, 21),
23897
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "p.P1").WithArguments("Program.P1").
WithLocation
(16, 18),
23900
Diagnostic(ErrorCode.ERR_BadUnaryOp, "?").WithArguments("?", "void").
WithLocation
(17, 24),
23903
Diagnostic(ErrorCode.ERR_BadSKunknown, "V").WithArguments("Program.V()", "method").
WithLocation
(18, 20),
23906
Diagnostic(ErrorCode.ERR_BadUnaryOp, "()=> { return 1; } ?.ToString()").WithArguments("?", "lambda expression").
WithLocation
(19, 18)
23933
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "?").WithArguments("null propagating operator", "6").
WithLocation
(14, 23),
23936
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".ToString").WithArguments("method group").
WithLocation
(14, 24));
23962
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".ToString").WithArguments("method group").
WithLocation
(14, 24)
24001
Diagnostic(ErrorCode.ERR_BaseIllegal, "base").
WithLocation
(11, 18),
24004
Diagnostic(ErrorCode.ERR_BadUnaryOp, "?").WithArguments("?", "int").
WithLocation
(16, 21),
24007
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "p.P1").WithArguments("Program.P1").
WithLocation
(19, 18),
24010
Diagnostic(ErrorCode.ERR_BadUnaryOp, "?").WithArguments("?", "void").
WithLocation
(20, 24),
24013
Diagnostic(ErrorCode.ERR_BadSKunknown, "V").WithArguments("Program.V()", "method").
WithLocation
(21, 20),
24016
Diagnostic(ErrorCode.ERR_BadUnaryOp, "()=> { return 1; } ?[1,2]").WithArguments("?", "lambda expression").
WithLocation
(22, 18),
24019
Diagnostic(ErrorCode.ERR_BadUnaryOp, "?").WithArguments("?", "<null>").
WithLocation
(24, 22)
24059
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".ToPointer()").WithArguments("void*").
WithLocation
(9, 24)
24091
Diagnostic(ErrorCode.ERR_NullPropagatingOpInExpressionTree, "x?.ToString()").
WithLocation
(9, 44),
24094
Diagnostic(ErrorCode.ERR_NullPropagatingOpInExpressionTree, "x.ToString()?[0]").
WithLocation
(10, 43),
24097
Diagnostic(ErrorCode.ERR_NullPropagatingOpInExpressionTree, "x.ToString()?.Length").
WithLocation
(11, 43),
24100
Diagnostic(ErrorCode.ERR_NullPropagatingOpInExpressionTree, "x?.ToString()?.Length").
WithLocation
(13, 43),
24103
Diagnostic(ErrorCode.ERR_NullPropagatingOpInExpressionTree, ".ToString()?.Length").
WithLocation
(13, 45)
24132
Diagnostic(ErrorCode.ERR_DictionaryInitializerInExpressionTree, "[1]").
WithLocation
(10, 87)
24172
Diagnostic(ErrorCode.ERR_ExtensionCollectionElementInitializerInExpressionTree, "42").
WithLocation
(25, 72)
24200
Diagnostic(ErrorCode.ERR_DictionaryInitializerInExpressionTree, @"[""Key""]").
WithLocation
(9, 53)
24294
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var (a, _)").
WithLocation
(34, 50),
24297
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "var a").
WithLocation
(35, 51),
24300
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsOutVariable, "int x").
WithLocation
(10, 59),
24303
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsIsMatch, "o is int y").
WithLocation
(14, 43),
24306
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleLiteral, "(1, o)").
WithLocation
(19, 45),
24309
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleLiteral, "(1, 2)").
WithLocation
(20, 49),
24312
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleConversion, "t1").
WithLocation
(25, 49),
24315
Diagnostic(ErrorCode.ERR_RefReturningCallInExpressionTree, "GetRefThree()").
WithLocation
(27, 54),
24318
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDiscard, "int _").
WithLocation
(30, 59),
24321
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDiscard, "var _").
WithLocation
(31, 59),
24324
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "_ = (bool)o").
WithLocation
(32, 44),
24327
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "_ = (_, _) = GetTuple()").
WithLocation
(33, 46),
24330
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleLiteral, "(_, _)").
WithLocation
(33, 50),
24333
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDiscard, "_").
WithLocation
(36, 60)
24356
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "[").WithArguments("dictionary initializer", "6").
WithLocation
(8, 46));
24390
Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i").
WithLocation
(9, 47)
24413
Diagnostic(ErrorCode.ERR_IllegalStatement, "x?.Length").
WithLocation
(8, 9),
24416
Diagnostic(ErrorCode.ERR_IllegalStatement, "x?[1]").
WithLocation
(9, 9),
24419
Diagnostic(ErrorCode.ERR_IllegalStatement, "x?.ToString()[1]").
WithLocation
(10, 9)
24459
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".F()").WithArguments("S2").
WithLocation
(10, 19),
24462
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".F()").WithArguments("S2").
WithLocation
(12, 19),
24465
Diagnostic(ErrorCode.ERR_CannotBeMadeNullable, ".F().field").WithArguments("S1").
WithLocation
(14, 19)
24490
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "value: new Program();").
WithLocation
(6, 41),
24493
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "value").
WithLocation
(6, 41),
24496
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("Program.M(object, object)").
WithLocation
(4, 19));
24525
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsThrowExpression, "throw null").
WithLocation
(13, 54),
24528
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsThrowExpression, "throw null").
WithLocation
(14, 53),
24531
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsThrowExpression, "throw null").
WithLocation
(15, 57),
24534
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsThrowExpression, "throw null").
WithLocation
(16, 49)
24554
Diagnostic(ErrorCode.ERR_VoidAssignment, "_").
WithLocation
(6, 9)
24575
Diagnostic(ErrorCode.ERR_AttributeCtorInParameter, "A(1)").WithArguments("A.A(in int)").
WithLocation
(2, 2),
24578
Diagnostic(ErrorCode.ERR_AttributeCtorInParameter, "B()").WithArguments("B.B(in int)").
WithLocation
(7, 2)
24600
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsSwitchExpression, "a switch { 0 => 1, _ => 2 }").
WithLocation
(9, 45)
24633
Diagnostic(ErrorCode.ERR_BadConstraintType, "byte*").
WithLocation
(9, 44),
24636
Diagnostic(ErrorCode.ERR_BadConstraintType, "U*").
WithLocation
(11, 44),
24639
Diagnostic(ErrorCode.ERR_BadConstraintType, "object*").
WithLocation
(12, 44),
24642
Diagnostic(ErrorCode.ERR_BadConstraintType, "B*").
WithLocation
(13, 44),
24645
Diagnostic(ErrorCode.ERR_BadConstraintType, "A.D*").
WithLocation
(14, 44),
24648
Diagnostic(ErrorCode.ERR_BadConstraintType, "byte*").
WithLocation
(16, 28),
24651
Diagnostic(ErrorCode.ERR_BadConstraintType, "A*").
WithLocation
(18, 31),
24654
Diagnostic(ErrorCode.ERR_BadConstraintType, "object*").
WithLocation
(19, 28),
24657
Diagnostic(ErrorCode.ERR_BadConstraintType, "B*").
WithLocation
(20, 28)
24670
Diagnostic(ErrorCode.ERR_BadConstraintType, "object[]").
WithLocation
(1, 22));
Semantics\SpanStackSafetyTests.cs (133)
40
Diagnostic(ErrorCode.ERR_EscapeVariable, "s1 = s2").WithArguments("s1").
WithLocation
(11, 15));
84
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<int>").WithArguments("object", "System.Span<int>").
WithLocation
(10, 18)
109
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<int>").WithArguments("T", "System.Span<int>").
WithLocation
(9, 18)
134
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<int>").WithArguments("T", "System.Span<int>").
WithLocation
(9, 18)
159
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<object>").WithArguments("System.Span<string>", "System.Span<object>").
WithLocation
(9, 18),
162
Diagnostic(ErrorCode.ERR_PatternWrongType, "object").WithArguments("System.Span<string>", "object").
WithLocation
(11, 18)
185
Diagnostic(ErrorCode.ERR_PatternWrongType, "T").WithArguments("System.Span<string>", "T").
WithLocation
(9, 18)
208
Diagnostic(ErrorCode.ERR_PatternWrongType, "T").WithArguments("System.Span<string>", "T").
WithLocation
(9, 18)
224
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "s is Span<string>").WithArguments("System.Span<string>").
WithLocation
(5, 31));
245
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "o is Span<int>").WithArguments("System.Span<int>").
WithLocation
(7, 13),
248
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<int>").WithArguments("object", "System.Span<int>").
WithLocation
(9, 18));
269
Diagnostic(ErrorCode.ERR_BadBinaryOps, "t is Span<int>").WithArguments("is", "T", "System.Span<int>").
WithLocation
(7, 13),
272
Diagnostic(ErrorCode.ERR_PatternWrongType, "Span<int>").WithArguments("T", "System.Span<int>").
WithLocation
(9, 18));
291
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "s is object").WithArguments("object").
WithLocation
(7, 13),
294
Diagnostic(ErrorCode.ERR_PatternWrongType, "object").WithArguments("System.Span<int>", "object").
WithLocation
(8, 18));
313
Diagnostic(ErrorCode.ERR_BadBinaryOps, "s is T").WithArguments("is", "System.Span<int>", "T").
WithLocation
(7, 13),
316
Diagnostic(ErrorCode.ERR_PatternWrongType, "T").WithArguments("System.Span<int>", "T").
WithLocation
(8, 18));
335
Diagnostic(ErrorCode.ERR_BadBinaryOps, "s is T").WithArguments("is", "System.Span<int>", "T").
WithLocation
(7, 13),
338
Diagnostic(ErrorCode.ERR_PatternWrongType, "T").WithArguments("System.Span<int>", "T").
WithLocation
(8, 18));
363
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new Span<int>()").WithArguments("System.Span<int>", "object").
WithLocation
(8, 20),
366
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new ReadOnlySpan<byte>()").WithArguments("System.ReadOnlySpan<byte>", "object").
WithLocation
(9, 20),
377
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new Span<int>()").WithArguments("System.Span<int>", "object").
WithLocation
(8, 20),
380
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new ReadOnlySpan<byte>()").WithArguments("System.ReadOnlySpan<byte>", "object").
WithLocation
(9, 20),
416
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseLocal, "x").WithArguments("x").
WithLocation
(17, 29)
446
Diagnostic(ErrorCode.ERR_BadBoundType, "Span<int>").WithArguments("System.Span<int>").
WithLocation
(13, 26),
449
Diagnostic(ErrorCode.ERR_BadTypeArgument, "Span<int>").WithArguments("System.Span<int>").
WithLocation
(10, 14),
452
Diagnostic(ErrorCode.ERR_AnonDelegateCantUseLocal, "x").WithArguments("x").
WithLocation
(10, 33)
481
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "SpanLike<int>").WithArguments("System.SpanLike<int>").
WithLocation
(10, 21)
533
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(10, 20),
536
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "ref TypedReference ss").WithArguments("System.TypedReference").
WithLocation
(38, 34),
539
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "ref TypedReference").WithArguments("System.TypedReference").
WithLocation
(38, 12),
542
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(21, 20),
545
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(26, 21)
552
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "ref TypedReference ss").WithArguments("System.TypedReference").
WithLocation
(38, 34),
555
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "ref TypedReference").WithArguments("System.TypedReference").
WithLocation
(38, 12)
593
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<int>").WithArguments("System.Span<int>").
WithLocation
(22, 16),
596
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(21, 23),
599
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(10, 19),
602
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<int>").WithArguments("System.Span<int>").
WithLocation
(11, 12),
605
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(15, 23)
613
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<int>").WithArguments("System.Span<int>").
WithLocation
(22, 16),
616
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(21, 23),
619
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(10, 19),
622
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<int>").WithArguments("System.Span<int>").
WithLocation
(11, 12),
625
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(15, 23)
663
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "SpanLike<int>").WithArguments("System.SpanLike<int>").
WithLocation
(22, 16),
666
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "SpanLike<byte>").WithArguments("System.SpanLike<byte>").
WithLocation
(21, 23),
669
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "SpanLike<byte>").WithArguments("System.SpanLike<byte>").
WithLocation
(10, 19),
672
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "SpanLike<int>").WithArguments("System.SpanLike<int>").
WithLocation
(11, 12),
675
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "SpanLike<byte>").WithArguments("System.SpanLike<byte>").
WithLocation
(15, 23)
683
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "SpanLike<int>").WithArguments("System.SpanLike<int>").
WithLocation
(22, 16),
686
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "SpanLike<byte>").WithArguments("System.SpanLike<byte>").
WithLocation
(21, 23),
689
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "SpanLike<byte>").WithArguments("System.SpanLike<byte>").
WithLocation
(10, 19),
692
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "SpanLike<int>").WithArguments("System.SpanLike<int>").
WithLocation
(11, 12),
695
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "SpanLike<byte>").WithArguments("System.SpanLike<byte>").
WithLocation
(15, 23)
728
Diagnostic(ErrorCode.ERR_RefStructInterfaceImpl, "IDisposable").WithArguments("Program.S1").
WithLocation
(14, 28)
812
Diagnostic(ErrorCode.ERR_BadSpecialByRefIterator, "foreach").WithArguments("C1.S1").
WithLocation
(15, 9)
884
Diagnostic(ErrorCode.ERR_BadSpecialByRefIterator, "foreach").WithArguments("C1.S1").
WithLocation
(33, 9)
917
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(17, 19),
920
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<int>").WithArguments("System.Span<int>").
WithLocation
(18, 12)
950
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "TypedReference").WithArguments("System.TypedReference").
WithLocation
(14, 19)
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),
1016
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "local1").WithArguments("local1").
WithLocation
(13, 19),
1019
Diagnostic(ErrorCode.ERR_BadSpecialByRefLocal, "var").WithArguments("System.Span<int>").
WithLocation
(14, 9),
1022
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "local2").WithArguments("local2").
WithLocation
(14, 13)
1030
Diagnostic(ErrorCode.ERR_BadSpecialByRefLocal, "Span<int>").WithArguments("System.Span<int>").
WithLocation
(13, 9),
1033
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "local1").WithArguments("local1").
WithLocation
(13, 19),
1036
Diagnostic(ErrorCode.ERR_BadSpecialByRefLocal, "var").WithArguments("System.Span<int>").
WithLocation
(14, 9),
1039
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "local2").WithArguments("local2").
WithLocation
(14, 13)
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)
1190
Diagnostic(ErrorCode.ERR_BadSpecialByRefUsing, "default(RS)").WithArguments("RS").
WithLocation
(8, 16),
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)
1337
Diagnostic(ErrorCode.ERR_ByRefTypeAndAwait, "await I1()").WithArguments("System.Span<int>").
WithLocation
(14, 45)
1345
Diagnostic(ErrorCode.ERR_ByRefTypeAndAwait, "await I1()").WithArguments("System.Span<int>").
WithLocation
(14, 45)
1376
Diagnostic(ErrorCode.ERR_NoImplicitConv, "default(Span<int>)").WithArguments("System.Span<int>", "object").
WithLocation
(12, 9),
1379
Diagnostic(ErrorCode.ERR_NoImplicitConv, "default(Span<int>)").WithArguments("System.Span<int>", "System.ValueType").
WithLocation
(15, 9)
1413
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "GetHashCode").WithArguments("GetHashCode", "System.Func<int>").
WithLocation
(10, 48),
1416
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "GetHashCode").WithArguments("GetHashCode", "System.Func<int>").
WithLocation
(13, 43),
1419
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "GetType").WithArguments("GetType", "System.Func<System.Type>").
WithLocation
(15, 48),
1422
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "ToString").WithArguments("ToString", "System.Func<string>").
WithLocation
(17, 46)
1494
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new System.Span<int>()").WithArguments("System.Span<int>", "object").
WithLocation
(6, 20),
1497
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new System.ReadOnlySpan<byte>()").WithArguments("System.ReadOnlySpan<byte>", "object").
WithLocation
(7, 20));
1538
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int [10]").WithArguments("int", "System.Span<int>").
WithLocation
(7, 23));
1579
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int [10]").WithArguments("int", "System.Span<int>").
WithLocation
(7, 23));
1605
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Point").WithArguments("Point").
WithLocation
(8, 19),
1608
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Point").WithArguments("Point").
WithLocation
(7, 12));
1639
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Point").WithArguments("Point").
WithLocation
(8, 19),
1642
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Point").WithArguments("Point").
WithLocation
(7, 19));
1671
Diagnostic(ErrorCode.ERR_ObjectRequired, "S1.Test").WithArguments("Program.S1.Test(int)").
WithLocation
(14, 9),
1674
Diagnostic(ErrorCode.ERR_BadSKunknown, "S1").WithArguments("Program.S1", "type").
WithLocation
(15, 17),
1677
Diagnostic(ErrorCode.ERR_BadSKunknown, "S1").WithArguments("Program.S1", "type").
WithLocation
(16, 24)
1889
Diagnostic(ErrorCode.ERR_CallArgMixing, "M2(ref s1, out s2)").WithArguments("C.M2(scoped ref System.Span<int>, out System.Span<int>)", "y").
WithLocation
(16, 9),
1892
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(16, 24),
1895
Diagnostic(ErrorCode.ERR_CallArgMixing, "M2(ref s2, out s1)").WithArguments("C.M2(scoped ref System.Span<int>, out System.Span<int>)", "x").
WithLocation
(17, 9),
1898
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(17, 16),
1901
Diagnostic(ErrorCode.ERR_CallArgMixing, "M2(ref s1, out s2)").WithArguments("C.M2(scoped ref System.Span<int>, out System.Span<int>)", "y").
WithLocation
(19, 9),
1904
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(19, 24),
1907
Diagnostic(ErrorCode.ERR_CallArgMixing, "M2(ref s2, out s1)").WithArguments("C.M2(scoped ref System.Span<int>, out System.Span<int>)", "x").
WithLocation
(20, 9),
1910
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(20, 16),
1913
Diagnostic(ErrorCode.ERR_CallArgMixing, "M2(y: out s2, x: ref s1)").WithArguments("C.M2(scoped ref System.Span<int>, out System.Span<int>)", "y").
WithLocation
(22, 9),
1916
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(22, 19),
1919
Diagnostic(ErrorCode.ERR_CallArgMixing, "M2(y: out s1, x: ref s2)").WithArguments("C.M2(scoped ref System.Span<int>, out System.Span<int>)", "x").
WithLocation
(23, 9),
1922
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(23, 30),
1925
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(29, 20));
1932
Diagnostic(ErrorCode.ERR_CallArgMixing, "M2(ref s2, out s1)").WithArguments("C.M2(scoped ref System.Span<int>, out System.Span<int>)", "x").
WithLocation
(17, 9),
1935
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(17, 16),
1938
Diagnostic(ErrorCode.ERR_CallArgMixing, "M2(ref s2, out s1)").WithArguments("C.M2(scoped ref System.Span<int>, out System.Span<int>)", "x").
WithLocation
(20, 9),
1941
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(20, 16),
1944
Diagnostic(ErrorCode.ERR_CallArgMixing, "M2(y: out s1, x: ref s2)").WithArguments("C.M2(scoped ref System.Span<int>, out System.Span<int>)", "x").
WithLocation
(23, 9),
1947
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(23, 30));
1980
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(16, 34),
1983
Diagnostic(ErrorCode.ERR_CallArgMixing, "M2(__arglist(ref s1, ref s2))").WithArguments("C.M2(__arglist)", "__arglist").
WithLocation
(16, 9),
1986
Diagnostic(ErrorCode.ERR_EscapeVariable, "s2").WithArguments("s2").
WithLocation
(17, 26),
1989
Diagnostic(ErrorCode.ERR_CallArgMixing, "M2(__arglist(ref s2, ref s1))").WithArguments("C.M2(__arglist)", "__arglist").
WithLocation
(17, 9));
2097
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[10]").WithArguments("System.Span<byte>").
WithLocation
(10, 18),
2100
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[10]").WithArguments("System.Span<byte>").
WithLocation
(21, 18),
2103
Diagnostic(ErrorCode.ERR_EscapeVariable, "span").WithArguments("span").
WithLocation
(36, 16),
2106
Diagnostic(ErrorCode.ERR_EscapeVariable, "span").WithArguments("span").
WithLocation
(43, 16)
Semantics\StackAllocInitializerTests.cs (244)
64
Diagnostic(ErrorCode.ERR_ManagedAddr, "RefG<string>").WithArguments("RefG<string>").
WithLocation
(10, 29),
67
Diagnostic(ErrorCode.ERR_ManagedAddr, "System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(12, 29),
70
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "RefS").WithArguments("RefS").
WithLocation
(16, 22),
73
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "RefG<string>").WithArguments("RefG<string>").
WithLocation
(17, 22),
76
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "RefG<int>").WithArguments("RefG<int>").
WithLocation
(18, 22),
79
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(19, 22),
82
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "System.ArgIterator").WithArguments("System.ArgIterator").
WithLocation
(20, 22),
85
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "System.RuntimeArgumentHandle").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(21, 22),
88
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "RefS").WithArguments("RefS").
WithLocation
(23, 9),
91
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "RefG<string>").WithArguments("RefG<string>").
WithLocation
(24, 9),
94
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "RefG<int>").WithArguments("RefG<int>").
WithLocation
(25, 9),
97
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(26, 9),
100
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "System.ArgIterator").WithArguments("System.ArgIterator").
WithLocation
(27, 9),
103
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "System.RuntimeArgumentHandle").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(28, 9)
141
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "RefStruct").WithArguments("RefStruct").
WithLocation
(7, 28),
144
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { new A(), new B() }").
WithLocation
(9, 18),
147
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { }").
WithLocation
(10, 18),
150
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { VoidMethod() }").
WithLocation
(11, 18),
153
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { null }").
WithLocation
(12, 18),
156
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { (1, null) }").
WithLocation
(13, 18),
159
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { () => { } }").WithArguments("System.Action").
WithLocation
(14, 18),
162
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { new {} , new { i = 0 } }").
WithLocation
(15, 18),
165
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { d }").WithArguments("dynamic").
WithLocation
(16, 18),
168
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(17, 33)
206
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { new A(), new B() }").
WithLocation
(9, 32),
209
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { }").
WithLocation
(10, 32),
212
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { VoidMethod() }").
WithLocation
(11, 32),
215
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { null }").
WithLocation
(12, 32),
218
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { (1, null) }").
WithLocation
(13, 32),
221
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { () => { } }").WithArguments("System.Action").
WithLocation
(14, 32),
224
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "stackalloc[] { new {} , new { i = 0 } }").
WithLocation
(15, 32),
227
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { d }").WithArguments("dynamic").
WithLocation
(16, 32),
230
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(17, 47)
259
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj1").WithArguments("obj1").
WithLocation
(6, 40),
262
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj2").WithArguments("obj2").
WithLocation
(7, 40),
265
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj3").WithArguments("obj3").
WithLocation
(8, 40),
268
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj1").WithArguments("obj1").
WithLocation
(13, 40),
271
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj1").WithArguments("obj1").
WithLocation
(13, 50),
274
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj2").WithArguments("obj2").
WithLocation
(14, 40),
277
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj2").WithArguments("obj2").
WithLocation
(14, 50),
280
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj3").WithArguments("obj3").
WithLocation
(15, 40),
283
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj3").WithArguments("obj3").
WithLocation
(15, 50)
312
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj1").WithArguments("obj1").
WithLocation
(6, 54),
315
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj2").WithArguments("obj2").
WithLocation
(7, 54),
318
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj3").WithArguments("obj3").
WithLocation
(8, 54),
321
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj1").WithArguments("obj1").
WithLocation
(13, 54),
324
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj1").WithArguments("obj1").
WithLocation
(13, 64),
327
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj2").WithArguments("obj2").
WithLocation
(14, 54),
330
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj2").WithArguments("obj2").
WithLocation
(14, 64),
333
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj3").WithArguments("obj3").
WithLocation
(15, 54),
336
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "obj3").WithArguments("obj3").
WithLocation
(15, 64)
358
Diagnostic(ErrorCode.ERR_ManagedAddr, @"stackalloc[] { """" }").WithArguments("string").
WithLocation
(7, 20),
361
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { new {} }").WithArguments("<empty anonymous type>").
WithLocation
(8, 20)
431
Diagnostic(ErrorCode.ERR_ManagedAddr, @"stackalloc[] { """" }").WithArguments("string").
WithLocation
(7, 34),
434
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc[] { new {} }").WithArguments("<empty anonymous type>").
WithLocation
(8, 34),
437
Diagnostic(ErrorCode.ERR_BadTypeArgument, "stackalloc[] { s }").WithArguments("Test.S").
WithLocation
(9, 34)
601
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(6, 15),
604
Diagnostic(ErrorCode.ERR_LockNeedsReference, "stackalloc int[3] { 1, 2, 3 }").WithArguments("int*").
WithLocation
(6, 15),
607
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 15),
610
Diagnostic(ErrorCode.ERR_LockNeedsReference, "stackalloc int[ ] { 1, 2, 3 }").WithArguments("int*").
WithLocation
(7, 15),
613
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(8, 15),
616
Diagnostic(ErrorCode.ERR_LockNeedsReference, "stackalloc [ ] { 1, 2, 3 }").WithArguments("int*").
WithLocation
(8, 15)
622
Diagnostic(ErrorCode.ERR_LockNeedsReference, "stackalloc int[3] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(6, 15),
625
Diagnostic(ErrorCode.ERR_LockNeedsReference, "stackalloc int[ ] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(7, 15),
628
Diagnostic(ErrorCode.ERR_LockNeedsReference, "stackalloc [ ] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(8, 15)
650
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 44),
653
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(8, 44),
656
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(9, 44)
662
Diagnostic(ErrorCode.ERR_BadTypeArgument, "select stackalloc int[3] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(7, 37),
665
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[3] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(7, 44),
668
Diagnostic(ErrorCode.ERR_BadTypeArgument, "select stackalloc int[ ] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(8, 37),
671
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[ ] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(8, 44),
674
Diagnostic(ErrorCode.ERR_BadTypeArgument, "select stackalloc [ ] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(9, 37),
677
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc [ ] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(9, 44)
699
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 45),
702
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(8, 45),
705
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(9, 45)
711
Diagnostic(ErrorCode.ERR_BadTypeArgument, "select v").WithArguments("System.Span<int>").
WithLocation
(7, 75),
714
Diagnostic(ErrorCode.ERR_BadTypeArgument, "select v").WithArguments("System.Span<int>").
WithLocation
(8, 75),
717
Diagnostic(ErrorCode.ERR_BadTypeArgument, "select v").WithArguments("System.Span<int>").
WithLocation
(9, 75)
736
Diagnostic(ErrorCode.ERR_AwaitInUnsafeContext, "await Task.FromResult(1)").
WithLocation
(7, 32),
739
Diagnostic(ErrorCode.ERR_AwaitInUnsafeContext, "await Task.FromResult(2)").
WithLocation
(7, 60)
760
Diagnostic(ErrorCode.ERR_ConstantExpected, "await Task.FromResult(1)").
WithLocation
(8, 38),
763
Diagnostic(ErrorCode.ERR_BadSpecialByRefLocal, "Span<int>").WithArguments("System.Span<int>").
WithLocation
(8, 9)
782
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x").WithArguments("x").
WithLocation
(6, 32)
801
Diagnostic(ErrorCode.ERR_ArrayInitializerIncorrectLength, "stackalloc int[10] { }").WithArguments("10").
WithLocation
(6, 20)
820
Diagnostic(ErrorCode.ERR_MissingArraySize, "[]").
WithLocation
(6, 34)
841
Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 42 }").
WithLocation
(6, 40),
844
Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 42 }").
WithLocation
(7, 40),
847
Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 42 }").
WithLocation
(8, 40)
868
Diagnostic(ErrorCode.ERR_IllegalStatement, "stackalloc[] {1}").
WithLocation
(6, 9),
871
Diagnostic(ErrorCode.ERR_IllegalStatement, "stackalloc int[] {1}").
WithLocation
(7, 9),
874
Diagnostic(ErrorCode.ERR_IllegalStatement, "stackalloc int[1] {1}").
WithLocation
(8, 9)
893
Diagnostic(ErrorCode.ERR_ManagedAddr, "int").WithArguments("int[]").
WithLocation
(6, 31),
896
Diagnostic(ErrorCode.ERR_BadStackAllocExpr, "int[][]").
WithLocation
(6, 31)
916
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(7, 35),
919
Diagnostic(ErrorCode.ERR_BadStackAllocExpr, "int[,]").
WithLocation
(6, 31)
964
Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i").
WithLocation
(7, 41),
967
Diagnostic(ErrorCode.ERR_UseDefViolation, "j").WithArguments("j").
WithLocation
(8, 41),
970
Diagnostic(ErrorCode.ERR_UseDefViolation, "k").WithArguments("k").
WithLocation
(9, 41)
1017
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[3] { 1, 2, 3 }").WithArguments("int", "double*").
WithLocation
(11, 24),
1020
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[] { 1, 2, 3 }").WithArguments("int", "double*").
WithLocation
(20, 24),
1023
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc[] { 1, 2, 3 }").WithArguments("int", "double*").
WithLocation
(29, 24)
1119
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[3] { 1, 2, 3 }").WithArguments("int", "double*").
WithLocation
(11, 24),
1122
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[] { 1, 2, 3 }").WithArguments("int", "double*").
WithLocation
(20, 24),
1125
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc[] { 1, 2, 3 }").WithArguments("int", "double*").
WithLocation
(29, 24)
1206
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[3] { 1, 2, 3 }").WithArguments("int", "double").
WithLocation
(6, 20),
1209
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(short)stackalloc int[3] { 1, 2, 3 }").WithArguments("int", "short").
WithLocation
(7, 19),
1212
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[] { 1, 2, 3 }").WithArguments("int", "double").
WithLocation
(12, 20),
1215
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(short)stackalloc int[] { 1, 2, 3 }").WithArguments("int", "short").
WithLocation
(13, 19),
1218
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc[] { 1, 2, 3 }").WithArguments("int", "double").
WithLocation
(18, 20),
1221
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(short)stackalloc[] { 1, 2, 3 }").WithArguments("int", "short").
WithLocation
(19, 19)
1240
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Span<int>").WithArguments("Span<>").
WithLocation
(6, 9),
1243
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "stackalloc int [3] { 1, 2, 3 }").WithArguments("System.Span`1").
WithLocation
(6, 24),
1246
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Span<int>").WithArguments("Span<>").
WithLocation
(7, 9),
1249
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "stackalloc int [ ] { 1, 2, 3 }").WithArguments("System.Span`1").
WithLocation
(7, 24),
1252
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Span<int>").WithArguments("Span<>").
WithLocation
(8, 9),
1255
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "stackalloc [ ] { 1, 2, 3 }").WithArguments("System.Span`1").
WithLocation
(8, 24)
1280
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "stackalloc int [3] { 1, 2, 3 }").WithArguments("System.Span`1", ".ctor").
WithLocation
(11, 28),
1283
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "stackalloc int [ ] { 1, 2, 3 }").WithArguments("System.Span`1", ".ctor").
WithLocation
(12, 28),
1286
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "stackalloc [ ] { 1, 2, 3 }").WithArguments("System.Span`1", ".ctor").
WithLocation
(13, 28)
1337
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(Span<int>)stackalloc short [3] { (short)1, (short)2, (short)3 }").WithArguments("short", "System.Span<int>").
WithLocation
(7, 59),
1340
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(Span<int>)stackalloc short [ ] { (short)1, (short)2, (short)3 }").WithArguments("short", "System.Span<int>").
WithLocation
(8, 59),
1343
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(Span<int>)stackalloc [ ] { (short)1, (short)2, (short)3 }").WithArguments("short", "System.Span<int>").
WithLocation
(9, 59)
1384
Diagnostic(ErrorCode.ERR_InvalidQM, "true ? stackalloc int [3] { 1, 2, 3 } : a").WithArguments("System.Span<int>", "System.Span<short>").
WithLocation
(8, 18),
1387
Diagnostic(ErrorCode.ERR_InvalidQM, "true ? stackalloc int [ ] { 1, 2, 3 } : a").WithArguments("System.Span<int>", "System.Span<short>").
WithLocation
(9, 18),
1390
Diagnostic(ErrorCode.ERR_InvalidQM, "true ? stackalloc [ ] { 1, 2, 3 } : a").WithArguments("System.Span<int>", "System.Span<short>").
WithLocation
(10, 18)
1432
Diagnostic(ErrorCode.ERR_BadBinaryOps, "stackalloc int[3] { 1, 2, 3 } == stackalloc int[3] { 1, 2, 3 }").WithArguments("==", "System.Span<int>", "System.Span<int>").
WithLocation
(6, 13),
1435
Diagnostic(ErrorCode.ERR_BadBinaryOps, "stackalloc int[ ] { 1, 2, 3 } == stackalloc int[ ] { 1, 2, 3 }").WithArguments("==", "System.Span<int>", "System.Span<int>").
WithLocation
(7, 13),
1438
Diagnostic(ErrorCode.ERR_BadBinaryOps, "stackalloc [ ] { 1, 2, 3 } == stackalloc [ ] { 1, 2, 3 }").WithArguments("==", "System.Span<int>", "System.Span<int>").
WithLocation
(8, 13)
1460
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc").WithArguments("stackalloc initializer", "7.3").
WithLocation
(7, 24),
1463
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc int [3] { 1, 2, 3 }").WithArguments("ref structs", "7.2").
WithLocation
(7, 24),
1466
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc").WithArguments("stackalloc initializer", "7.3").
WithLocation
(8, 24),
1469
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc int [ ] { 1, 2, 3 }").WithArguments("ref structs", "7.2").
WithLocation
(8, 24),
1472
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc").WithArguments("stackalloc initializer", "7.3").
WithLocation
(9, 24),
1475
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc [ ] { 1, 2, 3 }").WithArguments("ref structs", "7.2").
WithLocation
(9, 24));
1493
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(6, 18),
1496
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(7, 18),
1499
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(8, 18)
1522
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var v1 = stackalloc int [3] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(6, 16),
1525
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var v2 = stackalloc int [ ] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(7, 16),
1528
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var v3 = stackalloc [ ] { 1, 2, 3 }").WithArguments("System.Span<int>").
WithLocation
(8, 16)
1551
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int [3] { 1, 2, 3 }").WithArguments("int", "System.IDisposable").
WithLocation
(6, 40),
1554
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int [ ] { 1, 2, 3 }").WithArguments("int", "System.IDisposable").
WithLocation
(7, 40),
1557
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc [ ] { 1, 2, 3 }").WithArguments("int", "System.IDisposable").
WithLocation
(8, 40)
1580
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(6, 26),
1583
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(7, 26),
1586
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(8, 26)
1607
Diagnostic(ErrorCode.ERR_BadConstType, "int*").WithArguments("int*").
WithLocation
(6, 15),
1610
Diagnostic(ErrorCode.ERR_BadConstType, "int*").WithArguments("int*").
WithLocation
(7, 15),
1613
Diagnostic(ErrorCode.ERR_BadConstType, "int*").WithArguments("int*").
WithLocation
(8, 15)
1635
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "p1 = stackalloc int [3] { 1, 2, 3 }").
WithLocation
(7, 23),
1638
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(7, 28),
1641
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "p2 = stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(8, 23),
1644
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(8, 28),
1647
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "p3 = stackalloc [ ] { 1, 2, 3 }").
WithLocation
(9, 23),
1650
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(9, 28)
1672
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(7, 32),
1675
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(8, 32),
1678
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(9, 32)
1703
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 11),
1706
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(8, 11),
1709
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(9, 11)
1736
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(6, 24),
1739
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 24),
1742
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(8, 24),
1745
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(10, 23),
1748
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(11, 23),
1751
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(12, 23)
1780
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 16),
1783
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(8, 16),
1786
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(9, 16)
1791
Diagnostic(ErrorCode.ERR_BadArgType, "stackalloc int [3] { 1, 2, 3 }").WithArguments("1", "System.Span<int>", "System.Span<short>").
WithLocation
(7, 16),
1794
Diagnostic(ErrorCode.ERR_BadArgType, "stackalloc int [ ] { 1, 2, 3 }").WithArguments("1", "System.Span<int>", "System.Span<short>").
WithLocation
(8, 16),
1797
Diagnostic(ErrorCode.ERR_BadArgType, "stackalloc [ ] { 1, 2, 3 }").WithArguments("1", "System.Span<int>", "System.Span<short>").
WithLocation
(9, 16)
1817
Diagnostic(ErrorCode.ERR_ManagedAddr, "dynamic").WithArguments("dynamic").
WithLocation
(7, 29),
1820
Diagnostic(ErrorCode.ERR_ArrayInitializerIncorrectLength, "stackalloc dynamic [3] { d }").WithArguments("3").
WithLocation
(7, 18),
1823
Diagnostic(ErrorCode.ERR_ManagedAddr, "dynamic").WithArguments("dynamic").
WithLocation
(8, 29),
1826
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc [ ] { d }").WithArguments("dynamic").
WithLocation
(9, 18),
1829
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc [ ] { d }").
WithLocation
(9, 18)
1850
Diagnostic(ErrorCode.ERR_ManagedAddr, "dynamic").WithArguments("dynamic").
WithLocation
(8, 39),
1853
Diagnostic(ErrorCode.ERR_ArrayInitializerIncorrectLength, "stackalloc dynamic [3] { d }").WithArguments("3").
WithLocation
(8, 28),
1856
Diagnostic(ErrorCode.ERR_ManagedAddr, "dynamic").WithArguments("dynamic").
WithLocation
(9, 39),
1859
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc [ ] { d }").WithArguments("dynamic").
WithLocation
(10, 28)
1881
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(8, 11),
1884
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(9, 11),
1887
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(10, 11)
1892
Diagnostic(ErrorCode.ERR_BadArgType, "stackalloc int [3] { 1, 2, 3 }").WithArguments("1", "System.Span<int>", "object").
WithLocation
(8, 11),
1895
Diagnostic(ErrorCode.ERR_BadArgType, "stackalloc int [ ] { 1, 2, 3 }").WithArguments("1", "System.Span<int>", "object").
WithLocation
(9, 11),
1898
Diagnostic(ErrorCode.ERR_BadArgType, "stackalloc [ ] { 1, 2, 3 }").WithArguments("1", "System.Span<int>", "object").
WithLocation
(10, 11)
1918
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(6, 19),
1921
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 19),
1924
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(8, 19)
1946
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(6, 18),
1949
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(6, 52),
1952
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 18),
1955
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 52),
1958
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(8, 18),
1961
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(8, 52)
1966
Diagnostic(ErrorCode.ERR_BadBinaryOps, "stackalloc int [3] { 1, 2, 3 } ?? stackalloc int [3] { 1, 2, 3 }").WithArguments("??", "System.Span<int>", "System.Span<int>").
WithLocation
(6, 18),
1969
Diagnostic(ErrorCode.ERR_BadBinaryOps, "stackalloc int [ ] { 1, 2, 3 } ?? stackalloc int [ ] { 1, 2, 3 }").WithArguments("??", "System.Span<int>", "System.Span<int>").
WithLocation
(7, 18),
1972
Diagnostic(ErrorCode.ERR_BadBinaryOps, "stackalloc [ ] { 1, 2, 3 } ?? stackalloc [ ] { 1, 2, 3 }").WithArguments("??", "System.Span<int>", "System.Span<int>").
WithLocation
(8, 18)
2106
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(23, 34),
2109
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(24, 34),
2112
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(25, 34),
2115
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(31, 26),
2118
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(32, 26),
2121
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(33, 26),
2124
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(45, 34),
2127
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(46, 34),
2130
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(47, 34),
2133
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(72, 34),
2136
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(73, 34),
2139
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(74, 34),
2142
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(80, 26),
2145
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(81, 26),
2148
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(82, 26),
2151
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(94, 34),
2154
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(95, 34),
2157
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(96, 34)
2270
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(23, 34),
2273
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(24, 34),
2276
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(25, 34),
2279
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(31, 26),
2282
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(32, 26),
2285
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(33, 26),
2288
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(45, 34),
2291
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(46, 34),
2294
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(47, 34),
2297
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(72, 34),
2300
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(73, 34),
2303
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(74, 34),
2306
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(80, 26),
2309
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(81, 26),
2312
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(82, 26),
2315
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [3] { 1, 2, 3 }").
WithLocation
(94, 34),
2318
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc int [ ] { 1, 2, 3 }").
WithLocation
(95, 34),
2321
Diagnostic(ErrorCode.ERR_StackallocInCatchFinally, "stackalloc [ ] { 1, 2, 3 }").
WithLocation
(96, 34)
2534
Diagnostic(ErrorCode.ERR_ConstantExpected, "*obj1").
WithLocation
(7, 41),
2537
Diagnostic(ErrorCode.ERR_ConstantExpected, "obj2.Length").
WithLocation
(8, 46),
2540
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj1").WithArguments("obj1").
WithLocation
(7, 42),
2543
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj2").WithArguments("obj2").
WithLocation
(8, 46)
2624
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj1").WithArguments("obj1").
WithLocation
(7, 39),
2627
Diagnostic(ErrorCode.ERR_UseDefViolation, "obj2").WithArguments("obj2").
WithLocation
(8, 44)
Semantics\StackAllocSpanExpressionsTests.cs (45)
48
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[10]").WithArguments("int", "double*").
WithLocation
(11, 24));
122
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[10]").WithArguments("int", "double*").
WithLocation
(11, 24));
186
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[10]").WithArguments("int", "double").
WithLocation
(6, 20),
189
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(short)stackalloc int[10]").WithArguments("int", "short").
WithLocation
(7, 19));
205
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Span<int>").WithArguments("Span<>").
WithLocation
(6, 9),
208
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "stackalloc int [10]").WithArguments("System.Span`1").
WithLocation
(6, 23));
230
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "stackalloc int [10]").WithArguments("System.Span`1", ".ctor").
WithLocation
(11, 27));
274
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(Span<int>)stackalloc short [5]").WithArguments("short", "System.Span<int>").
WithLocation
(7, 46));
307
Diagnostic(ErrorCode.ERR_InvalidQM, "true ? stackalloc int [10] : a").WithArguments("System.Span<int>", "System.Span<short>").
WithLocation
(8, 17)
348
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(6, 12),
351
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(6, 34)
356
Diagnostic(ErrorCode.ERR_BadBinaryOps, "stackalloc int[10] == stackalloc int[10]").WithArguments("==", "System.Span<int>", "System.Span<int>").
WithLocation
(6, 12)
376
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc int[10]").WithArguments("ref structs", "7.2").
WithLocation
(7, 23));
396
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc int[10]").WithArguments("ref structs", "7.2").
WithLocation
(7, 15),
399
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc int[100]").WithArguments("ref structs", "7.2").
WithLocation
(8, 15));
415
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[10]").
WithLocation
(6, 17));
435
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var v = stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(6, 16)
456
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[1]").WithArguments("int", "System.IDisposable").
WithLocation
(6, 39));
474
Diagnostic(ErrorCode.ERR_BadConstType, "int*").WithArguments("int*").
WithLocation
(6, 15));
493
Diagnostic(ErrorCode.ERR_InitializeByReferenceVariableWithValue, "p = stackalloc int[1]").
WithLocation
(7, 23),
496
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "stackalloc int[1]").
WithLocation
(7, 27));
515
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 31)
520
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "stackalloc int[1]").
WithLocation
(7, 31)
543
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 11)
564
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(6, 23)
591
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(7, 16)
596
Diagnostic(ErrorCode.ERR_BadArgType, "stackalloc int [10]").WithArguments("1", "System.Span<int>", "System.Span<short>").
WithLocation
(7, 16)
613
Diagnostic(ErrorCode.ERR_ManagedAddr, "dynamic").WithArguments("dynamic").
WithLocation
(6, 28)
631
Diagnostic(ErrorCode.ERR_ManagedAddr, "dynamic").WithArguments("dynamic").
WithLocation
(7, 38)
651
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(8, 11)
656
Diagnostic(ErrorCode.ERR_BadArgType, "stackalloc int[10]").WithArguments("1", "System.Span<int>", "object").
WithLocation
(8, 11)
674
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(6, 18)
694
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(6, 17),
697
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(6, 38)
702
Diagnostic(ErrorCode.ERR_BadBinaryOps, "stackalloc int[1] ?? stackalloc int[2]").WithArguments("??", "System.Span<int>", "System.Span<int>").
WithLocation
(6, 17)
742
Diagnostic(ErrorCode.ERR_BadTypeArgument, "S").WithArguments("S").
WithLocation
(8, 14),
745
Diagnostic(ErrorCode.ERR_BadTypeArgument, "S[10]").WithArguments("S").
WithLocation
(9, 67),
748
Diagnostic(ErrorCode.ERR_BadTypeArgument, "S[100]").WithArguments("S").
WithLocation
(9, 86)
784
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "NonComparable").WithArguments("System.Span<T>", "System.IComparable", "T", "NonComparable").
WithLocation
(19, 14),
787
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "NonComparable[10]").WithArguments("System.Span<T>", "System.IComparable", "T", "NonComparable").
WithLocation
(20, 67),
790
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "NonComparable[100]").WithArguments("System.Span<T>", "System.IComparable", "T", "NonComparable").
WithLocation
(20, 98));
813
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "Test2").
WithLocation
(11, 34),
816
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[2]").WithArguments("int", "Test").
WithLocation
(9, 15));
839
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "Test2").
WithLocation
(11, 34),
842
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[2]").WithArguments("int", "Test").
WithLocation
(9, 15));
Semantics\StructConstructorTests.cs (233)
33
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(4, 12));
105
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "A1").
WithLocation
(2, 29),
108
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "A2").
WithLocation
(3, 28),
111
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "A3").
WithLocation
(4, 20),
114
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "B1").
WithLocation
(7, 31),
117
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "B2").
WithLocation
(8, 30),
120
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "B3").
WithLocation
(9, 22),
123
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "C1").
WithLocation
(14, 45),
126
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "C2").
WithLocation
(15, 44),
129
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "C3").
WithLocation
(16, 36),
132
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "D1").
WithLocation
(19, 36),
135
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "D2").
WithLocation
(20, 35),
138
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "D3").
WithLocation
(21, 27),
141
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "E1").
WithLocation
(24, 44),
144
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "E2").
WithLocation
(25, 43),
147
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "E3").
WithLocation
(26, 35),
150
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "F1").
WithLocation
(29, 34),
153
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "F2").
WithLocation
(30, 33),
156
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "F3").
WithLocation
(31, 25));
221
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "S").
WithLocation
(4, 5));
241
Diagnostic(ErrorCode.ERR_BadAccess, "S").WithArguments("S.S()").
WithLocation
(7, 17),
244
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "CreateNew<S>").WithArguments("Program.CreateNew<T>()", "T", "S").
WithLocation
(8, 13),
1329
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S1").WithArguments("S1.y", "11.0").
WithLocation
(11, 12),
1332
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S1").WithArguments("S1.x", "11.0").
WithLocation
(11, 12),
1335
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S2").WithArguments("S2.y", "11.0").
WithLocation
(22, 12),
1338
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S2").WithArguments("S2.x", "11.0").
WithLocation
(22, 12),
1341
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S3").WithArguments("S3.x", "11.0").
WithLocation
(32, 12));
1474
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S1").WithArguments("S1.y", "11.0").
WithLocation
(11, 12),
1477
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S2").WithArguments("S2.y", "11.0").
WithLocation
(22, 12));
1579
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y1").WithArguments("S1.y1").
WithLocation
(3, 14),
1582
Diagnostic(ErrorCode.ERR_UseDefViolationFieldUnsupportedVersion, "y1").WithArguments("y1", "11.0").
WithLocation
(3, 14),
1585
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y1").WithArguments("R1.y1").
WithLocation
(12, 14),
1588
Diagnostic(ErrorCode.ERR_UseDefViolationFieldUnsupportedVersion, "y1").WithArguments("y1", "11.0").
WithLocation
(12, 14));
1594
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y1").WithArguments("S1.y1").
WithLocation
(3, 14),
1597
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y1").WithArguments("R1.y1").
WithLocation
(12, 14));
1630
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y2").WithArguments("S2.y2").
WithLocation
(3, 14),
1633
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y2").WithArguments("R2.y2").
WithLocation
(12, 14));
1665
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y3").WithArguments("S3.y3").
WithLocation
(3, 14),
1668
Diagnostic(ErrorCode.ERR_UseDefViolationFieldUnsupportedVersion, "y3").WithArguments("y3", "11.0").
WithLocation
(3, 14),
1671
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y3").WithArguments("R3.y3").
WithLocation
(13, 14),
1674
Diagnostic(ErrorCode.ERR_UseDefViolationFieldUnsupportedVersion, "y3").WithArguments("y3", "11.0").
WithLocation
(13, 14));
1680
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y3").WithArguments("S3.y3").
WithLocation
(3, 14),
1683
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "y3").WithArguments("R3.y3").
WithLocation
(13, 14));
1725
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("S.x1", "11.0").
WithLocation
(8, 12),
1728
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "R").WithArguments("R.x2", "11.0").
WithLocation
(16, 12));
1902
Diagnostic(ErrorCode.ERR_RecursiveConstructorCall, "this").WithArguments("S.S()").
WithLocation
(6, 18),
1905
Diagnostic(ErrorCode.ERR_RecursiveConstructorCall, "this").WithArguments("R.R()").
WithLocation
(12, 18));
1931
Diagnostic(ErrorCode.ERR_RecursiveConstructorCall, "this").WithArguments("S.S()").
WithLocation
(6, 18),
1934
Diagnostic(ErrorCode.ERR_RecursiveConstructorCall, "this").WithArguments("R.R()").
WithLocation
(12, 18));
1977
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S1").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(13, 12),
1980
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S1").WithArguments("S1.X", "11.0").
WithLocation
(13, 12),
1983
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S2").WithArguments("S2.X", "11.0").
WithLocation
(20, 12));
2017
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S0").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(7, 12),
2020
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S0").WithArguments("S0.Y", "11.0").
WithLocation
(7, 12),
2023
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S0").WithArguments("S0.X", "11.0").
WithLocation
(7, 12));
2078
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "X").WithArguments("struct field initializers", "10.0").
WithLocation
(5, 12),
2081
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S2").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(7, 12),
2084
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "Y").WithArguments("struct field initializers", "10.0").
WithLocation
(13, 12));
2380
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(3, 8));
2441
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(5, 21));
2539
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(2, 8),
2542
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "X").WithArguments("struct field initializers", "10.0").
WithLocation
(4, 21),
2545
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "X").WithArguments("struct field initializers", "10.0").
WithLocation
(9, 21),
2548
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S2").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(11, 12),
2551
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S2").WithArguments("S2.Y", "11.0").
WithLocation
(11, 12),
2554
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "Y").WithArguments("struct field initializers", "10.0").
WithLocation
(16, 21),
2557
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S3").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(17, 12),
2560
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S3").WithArguments("S3.X", "11.0").
WithLocation
(17, 12),
2563
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "Y").WithArguments("struct field initializers", "10.0").
WithLocation
(22, 21),
2566
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S4").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(23, 12));
2572
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(2, 8),
2575
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S2").WithArguments("S2.Y", "11.0").
WithLocation
(11, 12),
2578
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S3").WithArguments("S3.X", "11.0").
WithLocation
(17, 12));
2584
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(2, 8));
2621
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(2, 8),
2624
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "X").WithArguments("struct field initializers", "10.0").
WithLocation
(4, 21),
2627
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "X").WithArguments("struct field initializers", "10.0").
WithLocation
(9, 21),
2630
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S2").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(11, 12),
2633
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S2").WithArguments("S2.Y", "11.0").
WithLocation
(11, 12),
2636
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "Y").WithArguments("struct field initializers", "10.0").
WithLocation
(16, 21),
2639
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S3").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(17, 12),
2642
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S3").WithArguments("S3.X", "11.0").
WithLocation
(17, 12),
2645
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "Y").WithArguments("struct field initializers", "10.0").
WithLocation
(22, 21),
2648
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S4").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(23, 12));
2654
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(2, 8),
2657
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S2").WithArguments("S2.Y", "11.0").
WithLocation
(11, 12),
2660
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S3").WithArguments("S3.X", "11.0").
WithLocation
(17, 12));
2666
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(2, 8));
2704
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(2, 15),
2707
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S2").WithArguments("S2.Y", "11.0").
WithLocation
(11, 12),
2710
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S3").WithArguments("S3.X", "11.0").
WithLocation
(17, 12));
2716
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(2, 15));
2757
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S1").WithArguments("S1.Y", "11.0").
WithLocation
(5, 15),
2760
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S2").WithArguments("S2.Y", "11.0").
WithLocation
(10, 15),
2763
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S3").WithArguments("S3.X", "11.0").
WithLocation
(15, 15));
2859
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S1").WithArguments("S1.Y", "11.0").
WithLocation
(5, 15),
2862
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(5, 25),
2865
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S2").WithArguments("S2.Y", "11.0").
WithLocation
(10, 15),
2868
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(10, 25),
2871
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S3").WithArguments("S3.X", "11.0").
WithLocation
(15, 15),
2874
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(15, 25));
2884
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(5, 25),
2887
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(10, 25),
2890
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(15, 25));
2930
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S1").WithArguments("S1.X", "11.0").
WithLocation
(5, 15),
2933
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(5, 25),
2936
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S2").WithArguments("S2.X", "11.0").
WithLocation
(10, 15),
2939
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(10, 25),
2942
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S3").WithArguments("S3.Y", "11.0").
WithLocation
(15, 15),
2945
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(15, 25));
2954
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(5, 25),
2957
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "X").WithArguments("X").
WithLocation
(10, 25),
2960
Diagnostic(ErrorCode.WRN_UnreadRecordParameter, "Y").WithArguments("Y").
WithLocation
(15, 25));
3032
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S").
WithLocation
(10, 15)
3058
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S").
WithLocation
(1, 8),
3061
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("S.F").
WithLocation
(3, 20),
3064
Diagnostic(ErrorCode.ERR_NameNotInContext, "Unknown").WithArguments("Unknown").
WithLocation
(3, 24));
3080
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S0").
WithLocation
(1, 8),
3083
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "F").WithArguments("S0.F", "0").
WithLocation
(4, 16));
3144
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(4, 8));
3280
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S1").WithArguments("field", "F1").
WithLocation
(10, 12),
3283
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S1").WithArguments("S1.F1", "11.0").
WithLocation
(10, 12),
3286
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S2").WithArguments("field", "F2").
WithLocation
(16, 5),
3289
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S2").WithArguments("S2.F2", "11.0").
WithLocation
(16, 5),
3292
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S3").WithArguments("field", "F3").
WithLocation
(21, 12),
3295
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "GetValue()").
WithLocation
(21, 24));
3301
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S1").WithArguments("field", "F1").
WithLocation
(10, 12),
3304
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S2").WithArguments("field", "F2").
WithLocation
(16, 5),
3307
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S3").WithArguments("field", "F3").
WithLocation
(21, 12),
3310
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "GetValue()").
WithLocation
(21, 24));
3330
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S0").
WithLocation
(2, 8),
3333
Diagnostic(ErrorCode.WRN_UnreferencedField, "F0").WithArguments("S0.F0").
WithLocation
(4, 12));
3360
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "Utils.GetValue()").
WithLocation
(4, 17),
3363
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "Utils.GetValue()").
WithLocation
(9, 17),
3366
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(10, 24));
3410
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S3").WithArguments("S3.X", "11.0").
WithLocation
(20, 12),
3413
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S4").
WithLocation
(22, 15),
3416
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "X").WithArguments("S5.X").
WithLocation
(29, 9));
3422
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S4").
WithLocation
(22, 15),
3425
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "X").WithArguments("S5.X").
WithLocation
(29, 9)
3460
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "S3").
WithLocation
(3, 22),
3463
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "S4").
WithLocation
(4, 21),
3466
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new()").WithArguments("s").
WithLocation
(12, 27),
3469
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new()").WithArguments("s").
WithLocation
(13, 27),
3472
Diagnostic(ErrorCode.ERR_BadAccess, "new()").WithArguments("S4.S4()").
WithLocation
(14, 27),
3475
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new()").WithArguments("s").
WithLocation
(14, 27),
3478
Diagnostic(ErrorCode.ERR_NoConversionForNubDefaultParam, "s").WithArguments("S1", "s").
WithLocation
(15, 24),
3481
Diagnostic(ErrorCode.ERR_NoConversionForNubDefaultParam, "s").WithArguments("S1", "s").
WithLocation
(16, 24),
3484
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new(1)").WithArguments("s").
WithLocation
(17, 32),
3487
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new decimal(1)").WithArguments("s").
WithLocation
(18, 32),
3490
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new(1)").WithArguments("s").
WithLocation
(19, 33),
3493
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new decimal(1)").WithArguments("s").
WithLocation
(20, 34)
3528
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(1, 8),
3531
Diagnostic(ErrorCode.WRN_UnreferencedField, "X").WithArguments("S1.X").
WithLocation
(3, 12),
3534
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new()").WithArguments("s").
WithLocation
(21, 27));
3619
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S1").
WithLocation
(4, 8),
3622
Diagnostic(ErrorCode.WRN_UnreferencedField, "X").WithArguments("S1.X").
WithLocation
(6, 12),
3625
Diagnostic(ErrorCode.ERR_NotConstantExpression, "default(S0)").WithArguments("Program.d0").
WithLocation
(14, 23),
3628
Diagnostic(ErrorCode.ERR_NotConstantExpression, "default(S1)").WithArguments("Program.d1").
WithLocation
(15, 23),
3631
Diagnostic(ErrorCode.ERR_NotConstantExpression, "default(S2)").WithArguments("Program.d2").
WithLocation
(16, 23),
3634
Diagnostic(ErrorCode.ERR_NotConstantExpression, "new S0()").WithArguments("Program.s0").
WithLocation
(17, 23),
3637
Diagnostic(ErrorCode.ERR_NotConstantExpression, "new S1()").WithArguments("Program.s1").
WithLocation
(18, 23),
3640
Diagnostic(ErrorCode.ERR_NotConstantExpression, "new S2()").WithArguments("Program.s2").
WithLocation
(19, 23));
3680
Diagnostic(ErrorCode.ERR_InteropStructContainsMethods, "i.F1()").WithArguments("S1").
WithLocation
(6, 18));
3700
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[512]").WithArguments("System.Span<byte>").
WithLocation
(5, 31),
3703
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[512]").WithArguments("System.Span<byte>").
WithLocation
(6, 43));
3723
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[512]").WithArguments("System.Span<int>").
WithLocation
(5, 38),
3726
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[512]").WithArguments("System.Span<int>").
WithLocation
(6, 50));
3749
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "Field = stackalloc byte[512]").WithArguments("System.Span<byte>").
WithLocation
(8, 45),
3752
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "Field = stackalloc byte[512]").WithArguments("System.Span<byte>").
WithLocation
(9, 57));
3774
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[512]").WithArguments("System.Span<byte>").
WithLocation
(5, 39),
3777
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[512]").WithArguments("System.Span<byte>").
WithLocation
(6, 51));
3796
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(4, 12),
3799
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[512]").WithArguments("System.Span<byte>").
WithLocation
(4, 31),
3802
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "ReadOnlySpan<int>").WithArguments("System.ReadOnlySpan<int>").
WithLocation
(5, 12),
3805
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[512]").WithArguments("System.Span<int>").
WithLocation
(5, 50));
3823
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(4, 12),
3826
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[512]").WithArguments("System.Span<byte>").
WithLocation
(4, 31),
3829
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "ReadOnlySpan<int>").WithArguments("System.ReadOnlySpan<int>").
WithLocation
(5, 12),
3832
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[512]").WithArguments("System.Span<int>").
WithLocation
(5, 50));
3850
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(4, 12),
3853
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc byte[512]").WithArguments("System.Span<byte>").
WithLocation
(4, 31),
3856
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "ReadOnlySpan<int>").WithArguments("System.ReadOnlySpan<int>").
WithLocation
(5, 12),
3859
Diagnostic(ErrorCode.ERR_EscapeStackAlloc, "stackalloc int[512]").WithArguments("System.Span<int>").
WithLocation
(5, 50));
3874
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<byte>").WithArguments("System.Span<byte>").
WithLocation
(2, 1),
3877
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "ReadOnlySpan<int>").WithArguments("System.ReadOnlySpan<int>").
WithLocation
(3, 1));
3893
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("S.x", "11.0").
WithLocation
(5, 12));
3899
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S").WithArguments("S.x").
WithLocation
(5, 12));
3905
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S").WithArguments("S.x").
WithLocation
(5, 12).WithWarningAsError(true));
3944
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "field").WithArguments("R.field", "").
WithLocation
(7, 17)
3982
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("S.x", "11.0").
WithLocation
(5, 12),
3985
Diagnostic(ErrorCode.ERR_UseDefViolationField, "other.x").WithArguments("x").
WithLocation
(8, 9),
3988
Diagnostic(ErrorCode.ERR_UseDefViolation, "other2").WithArguments("other2").
WithLocation
(11, 9));
3994
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S").WithArguments("S.x").
WithLocation
(5, 12),
3997
Diagnostic(ErrorCode.ERR_UseDefViolationField, "other.x").WithArguments("x").
WithLocation
(8, 9),
4000
Diagnostic(ErrorCode.ERR_UseDefViolation, "other2").WithArguments("other2").
WithLocation
(11, 9));
4019
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "return;").WithArguments("S.x", "11.0").
WithLocation
(7, 9));
4025
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "return;").WithArguments("S.x").
WithLocation
(7, 9));
4059
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("S.E", "11.0").
WithLocation
(7, 12),
4062
Diagnostic(ErrorCode.ERR_UseDefViolationFieldUnsupportedVersion, "E").WithArguments("E", "11.0").
WithLocation
(9, 9));
4068
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S").WithArguments("S.E").
WithLocation
(7, 12),
4071
Diagnostic(ErrorCode.WRN_UseDefViolationFieldSupportedVersion, "E").WithArguments("E").
WithLocation
(9, 9));
4111
Diagnostic(ErrorCode.ERR_ObjectRequired, "F").WithArguments("S1.F").
WithLocation
(7, 24));
4133
Diagnostic(ErrorCode.ERR_ObjectRequired, "F").WithArguments("S1.F").
WithLocation
(9, 26));
4153
Diagnostic(ErrorCode.ERR_StructWithBaseConstructorCall, "S1").WithArguments("S1").
WithLocation
(7, 12),
4156
Diagnostic(ErrorCode.ERR_ObjectRequired, "F").WithArguments("S1.F").
WithLocation
(7, 24));
4313
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S2").WithArguments("S2.S1").
WithLocation
(11, 12));
4353
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S").WithArguments("S.X").
WithLocation
(6, 12));
4403
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S2").WithArguments("S2.S1").
WithLocation
(11, 12));
4447
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S").WithArguments("S.X").
WithLocation
(6, 12),
4450
Diagnostic(ErrorCode.WRN_UseDefViolationFieldSupportedVersion, "X").WithArguments("X").
WithLocation
(8, 9));
4490
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S").WithArguments("S.X").
WithLocation
(6, 12),
4493
Diagnostic(ErrorCode.WRN_UseDefViolationFieldSupportedVersion, "X").WithArguments("X").
WithLocation
(7, 12));
4531
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S").WithArguments("S.X").
WithLocation
(6, 12));
4595
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "TField").
WithLocation
(21, 12),
4598
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("property", "AutoProp").
WithLocation
(21, 12),
4601
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(23, 20),
4604
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(24, 18),
4607
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "TField").
WithLocation
(29, 12),
4610
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("property", "AutoProp").
WithLocation
(29, 12),
4613
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S").WithArguments("S<T>.TField").
WithLocation
(29, 12),
4616
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "S").WithArguments("S<T>.Parameterless").
WithLocation
(29, 12),
4619
Diagnostic(ErrorCode.WRN_UnassignedThisAutoPropertySupportedVersion, "S").WithArguments("S<T>.AutoProp").
WithLocation
(29, 12));
4626
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "TField").
WithLocation
(21, 12),
4629
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("property", "AutoProp").
WithLocation
(21, 12),
4632
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(23, 20),
4635
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(24, 18),
4638
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "TField").
WithLocation
(29, 12),
4641
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("property", "AutoProp").
WithLocation
(29, 12));
4703
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "Item").
WithLocation
(4, 12),
4706
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("S.Item", "11.0").
WithLocation
(4, 12)
4713
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "Item").
WithLocation
(4, 12));
4743
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "Item").
WithLocation
(4, 12)
Semantics\StructsTests.cs (20)
32
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "A").
WithLocation
(2, 15),
35
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "a").WithArguments("struct field initializers", "10.0").
WithLocation
(4, 7),
38
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "a").WithArguments("A.a", "A").
WithLocation
(4, 7),
41
Diagnostic(ErrorCode.WRN_UnreferencedField, "a").WithArguments("A.a").
WithLocation
(4, 7));
61
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S").
WithLocation
(2, 8),
64
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "E").WithArguments("struct field initializers", "10.0").
WithLocation
(3, 25));
69
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S").
WithLocation
(2, 8));
88
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "E").WithArguments("struct field initializers", "10.0").
WithLocation
(3, 25),
91
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(4, 12));
640
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "X").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(4, 13),
643
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "X").
WithLocation
(4, 13),
646
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "X1").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(11, 5),
649
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "X1").
WithLocation
(11, 5));
654
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "X").
WithLocation
(4, 13),
657
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "X1").
WithLocation
(11, 5));
672
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S").
WithLocation
(1, 8),
675
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "I").WithArguments("struct field initializers", "10.0").
WithLocation
(3, 16),
678
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "I").
WithLocation
(3, 16));
684
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S").
WithLocation
(1, 8),
687
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "I").
WithLocation
(3, 16));
Semantics\SwitchTests.cs (112)
82
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("Test.eTypes").
WithLocation
(23, 18)
87
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("Test.eTypes").
WithLocation
(23, 18)
117
Diagnostic(ErrorCode.ERR_BadSKunknown, "color").WithArguments("color", "type").
WithLocation
(7, 17)
122
Diagnostic(ErrorCode.ERR_BadSKunknown, "color").WithArguments("color", "type").
WithLocation
(7, 17)
153
Diagnostic(ErrorCode.ERR_ConstantExpected, "test").
WithLocation
(11, 18)
158
Diagnostic(ErrorCode.ERR_ConstantExpected, "test").
WithLocation
(11, 18)
195
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 1:").WithArguments("1").
WithLocation
(11, 13),
198
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 'f':").WithArguments("f").
WithLocation
(23, 13)
203
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 1:").WithArguments("1").
WithLocation
(11, 13),
206
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 'f':").WithArguments("f").
WithLocation
(23, 13)
258
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 1:").WithArguments("1").
WithLocation
(11, 13),
261
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 97:").WithArguments("97").
WithLocation
(23, 13),
264
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "97.0f").WithArguments("float", "char").
WithLocation
(32, 18),
267
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "97.0f").WithArguments("float", "char").
WithLocation
(34, 18),
270
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 97.0f:").WithArguments("a").
WithLocation
(34, 13),
273
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 'a':").WithArguments("a").
WithLocation
(36, 13),
276
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "97").WithArguments("int", "char").
WithLocation
(38, 18),
279
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 97:").WithArguments("a").
WithLocation
(38, 13)
284
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 1:").WithArguments("1").
WithLocation
(11, 13),
287
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 97:").WithArguments("97").
WithLocation
(23, 13),
290
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "97.0f").WithArguments("float", "char").
WithLocation
(32, 18),
293
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "97.0f").WithArguments("float", "char").
WithLocation
(34, 18),
296
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 97.0f:").WithArguments("a").
WithLocation
(34, 13),
299
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 'a':").WithArguments("a").
WithLocation
(36, 13),
302
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "97").WithArguments("int", "char").
WithLocation
(38, 18),
305
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 97:").WithArguments("a").
WithLocation
(38, 13)
334
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "default:").WithArguments("default").
WithLocation
(15, 13)
339
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "default:").WithArguments("default").
WithLocation
(15, 13)
368
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(11, 19),
371
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "default:").WithArguments("default").
WithLocation
(15, 13)
399
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto case 5;").WithArguments("case 5:").
WithLocation
(10, 17),
402
Diagnostic(ErrorCode.WRN_UnreachableCode, "goto").
WithLocation
(10, 17)
407
Diagnostic(ErrorCode.ERR_LabelNotFound, "goto case 5;").WithArguments("case 5:").
WithLocation
(10, 17),
410
Diagnostic(ErrorCode.WRN_UnreachableCode, "goto").
WithLocation
(10, 17)
440
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "test").
WithLocation
(9, 17)
465
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "null").WithArguments("<null>").
WithLocation
(6, 16)
470
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "null").WithArguments("<null>").
WithLocation
(6, 16)
495
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "M()").WithArguments("void").
WithLocation
(6, 16)
500
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "M()").WithArguments("void").
WithLocation
(6, 16)
525
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "M").WithArguments("method group").
WithLocation
(6, 16)
530
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "M").WithArguments("method group").
WithLocation
(6, 16)
553
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "() => {}").WithArguments("lambda expression").
WithLocation
(6, 16));
557
Diagnostic(ErrorCode.ERR_SwitchExpressionValueExpected, "() => {}").WithArguments("lambda expression").
WithLocation
(6, 16));
596
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "C").
WithLocation
(17, 16));
636
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "C").
WithLocation
(17, 16)
678
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "C").
WithLocation
(17, 16)
728
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "C").
WithLocation
(17, 16)
782
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "C").
WithLocation
(27, 16));
835
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "C").
WithLocation
(27, 16)
923
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "C").
WithLocation
(13, 16)
962
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "C").
WithLocation
(14, 16)
1004
Diagnostic(ErrorCode.ERR_ConversionWithBase, "object").WithArguments("Conv.implicit operator object(Conv)").
WithLocation
(5, 37));
1008
Diagnostic(ErrorCode.ERR_ConversionWithBase, "object").WithArguments("Conv.implicit operator object(Conv)").
WithLocation
(5, 37));
1040
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "o").
WithLocation
(6, 17),
1043
Diagnostic(ErrorCode.ERR_ConstantExpected, "1+(o.GetType().Name.Length)").
WithLocation
(8, 19),
1046
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("o", "C.M(object)").
WithLocation
(9, 17),
1049
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 0:").WithArguments("0").
WithLocation
(12, 13)
1054
Diagnostic(ErrorCode.ERR_ConstantExpected, "1+(o.GetType().Name.Length)").
WithLocation
(8, 19),
1057
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("o", "C.M(object)").
WithLocation
(9, 17),
1060
Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 0:").WithArguments("0").
WithLocation
(12, 13)
1086
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1.2f").WithArguments("float", "int").
WithLocation
(10, 12)
1091
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "1.2f").WithArguments("float", "int").
WithLocation
(10, 12)
1463
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "b1.F()").
WithLocation
(20, 17)
1514
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "a").
WithLocation
(28, 20)
1720
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "a").
WithLocation
(28, 20)
1771
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "a").
WithLocation
(28, 20)
1828
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "a").
WithLocation
(34, 20)
2230
Diagnostic(ErrorCode.ERR_V6SwitchGoverningTypeValueExpected, "a").
WithLocation
(29, 21)
2270
Diagnostic(ErrorCode.ERR_SwitchFallOut, "default:").WithArguments("default:").
WithLocation
(14, 13)
2275
Diagnostic(ErrorCode.ERR_SwitchFallOut, "default:").WithArguments("default:").
WithLocation
(14, 13)
2307
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 11:").WithArguments("case 11:").
WithLocation
(15, 17)
2312
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 11:").WithArguments("case 11:").
WithLocation
(15, 17)
2362
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 11:").WithArguments("case 11:").
WithLocation
(15, 17),
2365
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 5:").WithArguments("case 5:").
WithLocation
(24, 17),
2368
Diagnostic(ErrorCode.ERR_SwitchFallOut, "default:").WithArguments("default:").
WithLocation
(32, 17)
2373
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 11:").WithArguments("case 11:").
WithLocation
(15, 17),
2376
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 5:").WithArguments("case 5:").
WithLocation
(24, 17),
2379
Diagnostic(ErrorCode.ERR_SwitchFallOut, "default:").WithArguments("default:").
WithLocation
(32, 17)
2398
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "default:").WithArguments("default:").
WithLocation
(4, 5),
2401
Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").
WithLocation
(7, 9)
2424
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case 1:").WithArguments("case 1:").
WithLocation
(4, 5),
2427
Diagnostic(ErrorCode.WRN_UnreachableCode, "Console").
WithLocation
(7, 9)
2465
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case 2:").WithArguments("case 2:").
WithLocation
(11, 13)
2470
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case 2:").WithArguments("case 2:").
WithLocation
(11, 13)
2522
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case 10:").WithArguments("case 10:").
WithLocation
(12, 17),
2525
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case 5:").WithArguments("case 5:").
WithLocation
(23, 17),
2528
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case 10:").WithArguments("case 10:").
WithLocation
(32, 17)
2533
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case 10:").WithArguments("case 10:").
WithLocation
(12, 17),
2536
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case 5:").WithArguments("case 5:").
WithLocation
(23, 17),
2539
Diagnostic(ErrorCode.ERR_SwitchFallThrough, "case 10:").WithArguments("case 10:").
WithLocation
(32, 17)
2582
Diagnostic(ErrorCode.ERR_UseDefViolation, "f").WithArguments("f").
WithLocation
(24, 13));
2586
Diagnostic(ErrorCode.ERR_UseDefViolation, "f").WithArguments("f").
WithLocation
(24, 13));
2616
Diagnostic(ErrorCode.WRN_UnreachableCode, "goo").
WithLocation
(10, 17),
2619
Diagnostic(ErrorCode.WRN_UnreachableCode, "goo").
WithLocation
(13, 17),
2622
Diagnostic(ErrorCode.ERR_UseDefViolation, "goo").WithArguments("goo").
WithLocation
(17, 27));
2626
Diagnostic(ErrorCode.WRN_UnreachableCode, "goo").
WithLocation
(10, 17),
2629
Diagnostic(ErrorCode.WRN_UnreachableCode, "goo").
WithLocation
(13, 17),
2632
Diagnostic(ErrorCode.ERR_UseDefViolation, "goo").WithArguments("goo").
WithLocation
(17, 27));
2685
Diagnostic(ErrorCode.ERR_UseDefViolation, "goo").WithArguments("goo").
WithLocation
(40, 27));
2689
Diagnostic(ErrorCode.ERR_UseDefViolation, "goo").WithArguments("goo").
WithLocation
(40, 27));
2717
Diagnostic(ErrorCode.ERR_ReturnExpected, "Main").WithArguments("SwitchTest.Main(string[])").
WithLocation
(4, 16)
2722
Diagnostic(ErrorCode.ERR_ReturnExpected, "Main").WithArguments("SwitchTest.Main(string[])").
WithLocation
(4, 16)
2752
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "case").WithArguments("pattern matching", "7.0").
WithLocation
(10, 13));
2783
Diagnostic(ErrorCode.ERR_BadSKknown, "System").WithArguments("System", "namespace", "variable").
WithLocation
(8, 18),
2786
Diagnostic(ErrorCode.ERR_LabelNotFound, "System").WithArguments("System").
WithLocation
(11, 22),
2789
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 5:").WithArguments("case 5:").
WithLocation
(10, 13)
2794
Diagnostic(ErrorCode.ERR_BadSKknown, "System").WithArguments("System", "namespace", "variable").
WithLocation
(8, 18),
2797
Diagnostic(ErrorCode.ERR_LabelNotFound, "System").WithArguments("System").
WithLocation
(11, 22),
2800
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 5:").WithArguments("case 5:").
WithLocation
(10, 13)
2915
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(10, 17)
2920
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(10, 17)
2950
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(14, 17));
Semantics\TargetTypedConditionalOperatorTests.cs (22)
30
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "b ? 1 : 2").WithArguments("int", "short").
WithLocation
(6, 26));
47
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "b ? 0 : 0").WithArguments("int", "color").
WithLocation
(6, 19));
53
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"b ? $""x"" : $""x""").WithArguments("string", "System.FormattableString").
WithLocation
(6, 38));
83
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "b ? 1000000 : 2").WithArguments("int", "short").
WithLocation
(6, 26)
90
Diagnostic(ErrorCode.ERR_NoImplicitConv, "GetB()").WithArguments("B", "string").
WithLocation
(6, 31),
93
Diagnostic(ErrorCode.ERR_NoImplicitConv, "GetC()").WithArguments("C", "string").
WithLocation
(6, 40)
100
Diagnostic(ErrorCode.ERR_NoImplicitConv, "GetInt()").WithArguments("int", "ulong").
WithLocation
(6, 43)
107
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "b ? 1 : 0").WithArguments("int", "color").
WithLocation
(6, 19)
114
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"b ? $""x"" : ""x""").WithArguments("string", "System.FormattableString").
WithLocation
(6, 38)
122
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"b ? """" : null").WithArguments("string", "long?").
WithLocation
(6, 27)
127
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""""").WithArguments("string", "long?").
WithLocation
(6, 35)
134
Diagnostic(ErrorCode.ERR_NoImplicitConv, "GetUInt()").WithArguments("uint", "System.Collections.IList").
WithLocation
(6, 42),
137
Diagnostic(ErrorCode.ERR_NoImplicitConv, "GetInt()").WithArguments("int", "System.Collections.IList").
WithLocation
(6, 54)
144
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "GetD()").WithArguments("D.implicit operator X(D)", "D").
WithLocation
(6, 28)
151
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""""").WithArguments("string", "int").
WithLocation
(6, 31),
154
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, @"""""").WithArguments("lambda expression").
WithLocation
(6, 31)
161
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "M3").WithArguments("M3", "Del").
WithLocation
(6, 26)
523
Diagnostic(ErrorCode.ERR_BadBinaryOps, "a ?? (b ? 2 : 3)").WithArguments("??", $"{sourceType}?", "int").
WithLocation
(7, 18)
642
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(b ? a : 0) + a").WithArguments("A", "B").
WithLocation
(15, 16),
645
Diagnostic(ErrorCode.ERR_NoImplicitConvTargetTypedConditional, "b ? a : 0").WithArguments("7.3", "A", "int", "9.0").
WithLocation
(15, 17));
650
Diagnostic(ErrorCode.ERR_NoImplicitConv, "(b ? a : 0) + a").WithArguments("A", "B").
WithLocation
(15, 16));
711
Diagnostic(ErrorCode.ERR_NoImplicitConvTargetTypedConditional, "b ? 1 : null").WithArguments("8.0", "int", "<null>", "9.0").
WithLocation
(6, 18));
Semantics\TargetTypedDefaultTests.cs (224)
35
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 13),
38
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "default").WithArguments("default literal", "7.1").
WithLocation
(6, 17));
70
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "default").WithArguments("default literal", "7.1").
WithLocation
(7, 40)
171
Diagnostic(ErrorCode.ERR_AssgReadonlyLocal, "this").WithArguments("this").
WithLocation
(5, 19)
316
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnUnconstrainedDefault, "x == default").WithArguments("==", "T").
WithLocation
(6, 16),
319
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x == default(T)").WithArguments("==", "T", "T").
WithLocation
(7, 16)
357
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnUnconstrainedDefault, "default != x").WithArguments("!=", "T").
WithLocation
(6, 16),
360
Diagnostic(ErrorCode.ERR_BadBinaryOps, "default(T) != x").WithArguments("!=", "T", "T").
WithLocation
(7, 16)
417
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnUnconstrainedDefault, "default != x").WithArguments("!=", "T").
WithLocation
(13, 16),
420
Diagnostic(ErrorCode.ERR_BadBinaryOps, "default(T) != x").WithArguments("!=", "T", "T").
WithLocation
(14, 16),
423
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnUnconstrainedDefault, "default != x").WithArguments("!=", "T").
WithLocation
(18, 16),
426
Diagnostic(ErrorCode.ERR_BadBinaryOps, "default(T) != x").WithArguments("!=", "T", "T").
WithLocation
(19, 16),
429
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnUnconstrainedDefault, "default != x").WithArguments("!=", "T").
WithLocation
(28, 16),
432
Diagnostic(ErrorCode.ERR_BadBinaryOps, "default(T) != x").WithArguments("!=", "T", "T").
WithLocation
(29, 16),
435
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnUnconstrainedDefault, "default != x").WithArguments("!=", "T").
WithLocation
(38, 16),
438
Diagnostic(ErrorCode.ERR_BadBinaryOps, "default(T) != x").WithArguments("!=", "T", "T").
WithLocation
(39, 16)
461
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnUnconstrainedDefault, "x == default").WithArguments("==", "T").
WithLocation
(6, 16),
464
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x == default(T)").WithArguments("==", "T", "T").
WithLocation
(7, 16)
513
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 16)
556
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 24),
559
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "x = null").WithArguments("<null>").
WithLocation
(10, 20)
599
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 23),
602
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "y = null").WithArguments("<null>").
WithLocation
(7, 19)
641
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 15)
696
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "F").WithArguments("C.F<T>(System.Threading.Tasks.Task<T>)").
WithLocation
(8, 9)
717
Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").
WithLocation
(6, 9)
738
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 17),
741
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "y = null").WithArguments("<null>").
WithLocation
(7, 13)
782
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 18),
785
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(7, 18),
788
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(8, 18),
791
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(9, 18)
893
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(int)", "C.M(string)").
WithLocation
(6, 9)
950
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(T)").
WithLocation
(6, 9)
971
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M").WithArguments("C.M<T>(T, T)").
WithLocation
(6, 9)
998
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 9),
1001
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(7, 9),
1004
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "default").
WithLocation
(8, 37),
1007
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(9, 15),
1010
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(C).ToString").WithArguments("C").
WithLocation
(13, 9)
1017
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "default").WithArguments("default literal", "7.1").
WithLocation
(6, 9),
1020
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 9),
1023
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "default").WithArguments("default literal", "7.1").
WithLocation
(7, 9),
1026
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(7, 9),
1029
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "default").WithArguments("default literal", "7.1").
WithLocation
(8, 37),
1032
Diagnostic(ErrorCode.ERR_ExpressionHasNoName, "default").
WithLocation
(8, 37),
1035
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "default").WithArguments("default literal", "7.1").
WithLocation
(9, 15),
1038
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(9, 15),
1041
Diagnostic(ErrorCode.WRN_DotOnDefault, "default(C).ToString").WithArguments("C").
WithLocation
(13, 9));
1081
Diagnostic(ErrorCode.ERR_BadConstType, "T").WithArguments("T").
WithLocation
(6, 15),
1084
Diagnostic(ErrorCode.ERR_BadConstType, "T").WithArguments("T").
WithLocation
(7, 15),
1087
Diagnostic(ErrorCode.ERR_NotConstantExpression, "(T)default").WithArguments("z").
WithLocation
(8, 26)
1111
Diagnostic(ErrorCode.ERR_BadConstType, "S").WithArguments("S").
WithLocation
(7, 15),
1114
Diagnostic(ErrorCode.ERR_BadConstType, "S").WithArguments("S").
WithLocation
(8, 15),
1117
Diagnostic(ErrorCode.ERR_NotConstantExpression, "(S)default").WithArguments("z").
WithLocation
(9, 26)
1196
Diagnostic(ErrorCode.ERR_TypeExpected, ")").
WithLocation
(14, 17),
1199
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 17),
1202
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(11, 15),
1205
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "default").
WithLocation
(16, 19),
1208
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(17, 33),
1211
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "default").
WithLocation
(18, 46)
1250
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default + 4").WithArguments("+", "default").
WithLocation
(6, 25)
1296
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default + default").WithArguments("+", "default").
WithLocation
(6, 17),
1299
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default - default").WithArguments("-", "default").
WithLocation
(7, 17),
1302
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default & default").WithArguments("&", "default").
WithLocation
(8, 17),
1305
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default | default").WithArguments("|", "default").
WithLocation
(9, 17),
1308
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default ^ default").WithArguments("^", "default").
WithLocation
(10, 17),
1311
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default * default").WithArguments("*", "default").
WithLocation
(11, 17),
1314
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default / default").WithArguments("/", "default").
WithLocation
(12, 17),
1317
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default % default").WithArguments("%", "default").
WithLocation
(13, 17),
1320
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default >> default").WithArguments(">>", "default").
WithLocation
(14, 17),
1323
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default << default").WithArguments("<<", "default").
WithLocation
(15, 17),
1326
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default > default").WithArguments(">", "default").
WithLocation
(16, 17),
1329
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default < default").WithArguments("<", "default").
WithLocation
(17, 17),
1332
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default >= default").WithArguments(">=", "default").
WithLocation
(18, 17),
1335
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default <= default").WithArguments("<=", "default").
WithLocation
(19, 17),
1338
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "default == default").WithArguments("==", "default", "default").
WithLocation
(20, 17),
1341
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "default != default").WithArguments("!=", "default", "default").
WithLocation
(21, 17),
1344
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(22, 17),
1347
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(22, 28),
1350
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(23, 17),
1353
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(23, 28),
1356
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(24, 17),
1359
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default >>> default").WithArguments(">>>", "default").
WithLocation
(25, 17)
1405
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default + 1").WithArguments("+", "default").
WithLocation
(6, 17),
1408
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default - 1").WithArguments("-", "default").
WithLocation
(7, 17),
1411
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default & 1").WithArguments("&", "default").
WithLocation
(8, 17),
1414
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default | 1").WithArguments("|", "default").
WithLocation
(9, 17),
1417
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default ^ 1").WithArguments("^", "default").
WithLocation
(10, 17),
1420
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default * 1").WithArguments("*", "default").
WithLocation
(11, 17),
1423
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default / 1").WithArguments("/", "default").
WithLocation
(12, 17),
1426
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default % 1").WithArguments("%", "default").
WithLocation
(13, 17),
1429
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default >> 1").WithArguments(">>", "default").
WithLocation
(14, 17),
1432
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default << 1").WithArguments("<<", "default").
WithLocation
(15, 17),
1435
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default > 1").WithArguments(">", "default").
WithLocation
(16, 17),
1438
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default < 1").WithArguments("<", "default").
WithLocation
(17, 17),
1441
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default >= 1").WithArguments(">=", "default").
WithLocation
(18, 17),
1444
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default <= 1").WithArguments("<=", "default").
WithLocation
(19, 17),
1447
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(22, 17),
1450
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(23, 17),
1453
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(24, 17),
1456
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(25, 17),
1459
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "o").WithArguments("o").
WithLocation
(20, 13),
1462
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "p").WithArguments("p").
WithLocation
(21, 13),
1465
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default >>> 1").WithArguments(">>>", "default").
WithLocation
(26, 17)
1511
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 + default").WithArguments("+", "default").
WithLocation
(6, 17),
1514
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 - default").WithArguments("-", "default").
WithLocation
(7, 17),
1517
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 & default").WithArguments("&", "default").
WithLocation
(8, 17),
1520
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 | default").WithArguments("|", "default").
WithLocation
(9, 17),
1523
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 ^ default").WithArguments("^", "default").
WithLocation
(10, 17),
1526
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 * default").WithArguments("*", "default").
WithLocation
(11, 17),
1529
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 / default").WithArguments("/", "default").
WithLocation
(12, 17),
1532
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 % default").WithArguments("%", "default").
WithLocation
(13, 17),
1535
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 >> default").WithArguments(">>", "default").
WithLocation
(14, 17),
1538
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 << default").WithArguments("<<", "default").
WithLocation
(15, 17),
1541
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 > default").WithArguments(">", "default").
WithLocation
(16, 17),
1544
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 < default").WithArguments("<", "default").
WithLocation
(17, 17),
1547
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 >= default").WithArguments(">=", "default").
WithLocation
(18, 17),
1550
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 <= default").WithArguments("<=", "default").
WithLocation
(19, 17),
1553
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(22, 22),
1556
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(23, 22),
1559
Diagnostic(ErrorCode.ERR_BadBinaryOps, "1 ?? default").WithArguments("??", "int", "default").
WithLocation
(25, 17),
1562
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "o").WithArguments("o").
WithLocation
(20, 13),
1565
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "p").WithArguments("p").
WithLocation
(21, 13),
1568
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "1 >>> default").WithArguments(">>>", "default").
WithLocation
(26, 17)
1618
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "s += default").WithArguments("+=", "default").
WithLocation
(8, 9)
1672
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x == default").WithArguments("==", "MyType", "default").
WithLocation
(8, 14),
1675
Diagnostic(ErrorCode.ERR_BadBinaryOps, "default == x").WithArguments("==", "default", "MyType").
WithLocation
(9, 14),
1678
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x != default").WithArguments("!=", "MyType", "default").
WithLocation
(11, 14),
1681
Diagnostic(ErrorCode.ERR_BadBinaryOps, "default != x").WithArguments("!=", "default", "MyType").
WithLocation
(12, 14),
1684
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x == default(MyType)").WithArguments("==", "MyType", "MyType").
WithLocation
(14, 14),
1687
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x != default(MyType)").WithArguments("!=", "MyType", "MyType").
WithLocation
(15, 14)
1694
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x == default").WithArguments("==", "MyType?", "default").
WithLocation
(8, 14),
1697
Diagnostic(ErrorCode.ERR_BadBinaryOps, "default == x").WithArguments("==", "default", "MyType?").
WithLocation
(9, 14),
1700
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x != default").WithArguments("!=", "MyType?", "default").
WithLocation
(11, 14),
1703
Diagnostic(ErrorCode.ERR_BadBinaryOps, "default != x").WithArguments("!=", "default", "MyType?").
WithLocation
(12, 14),
1706
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x == default(MyType?)").WithArguments("==", "MyType?", "MyType?").
WithLocation
(14, 14),
1709
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x != default(MyType?)").WithArguments("!=", "MyType?", "MyType?").
WithLocation
(15, 14)
1972
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "i += default").WithArguments("+=", "default").
WithLocation
(9, 13),
1975
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "b &= default").WithArguments("&=", "default").
WithLocation
(11, 13),
1978
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "true | default").WithArguments("|", "default").
WithLocation
(12, 37),
1981
Diagnostic(ErrorCode.WRN_FilterIsConstantFalseRedundantTryCatch, "default").
WithLocation
(15, 40),
1984
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(17, 13)
2011
Diagnostic(ErrorCode.WRN_FilterIsConstantFalseRedundantTryCatch, "default").
WithLocation
(10, 40),
2014
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(12, 13)
2057
Diagnostic(ErrorCode.WRN_FilterIsConstantFalseRedundantTryCatch, "default").
WithLocation
(26, 40),
2060
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(28, 13)
2083
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 14)
2112
Diagnostic(ErrorCode.ERR_BadUnaryOp, "!Main").WithArguments("!", "method group").
WithLocation
(6, 13),
2115
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "!null").WithArguments("!", "<null>").
WithLocation
(6, 22)
2148
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(8, 13),
2151
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(13, 13),
2154
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(18, 13)
2181
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(12, 13)
2207
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "default").
WithLocation
(6, 26),
2210
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "default").
WithLocation
(9, 27)
2231
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 18),
2234
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(7, 17)
2254
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new[] { default, default }").
WithLocation
(6, 17)
2363
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(params object[])", "C.M(params int[])").
WithLocation
(6, 9)
2385
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M(params object[])", "C.M(int)").
WithLocation
(6, 9)
2528
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default + 1").WithArguments("+", "default").
WithLocation
(5, 16)
2553
Diagnostic(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, "default + 1").WithArguments("+", "default").
WithLocation
(5, 16)
2632
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(7, 14)
2675
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "default == default").WithArguments("==", "default", "default").
WithLocation
(6, 33),
2678
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "default != default").WithArguments("!=", "default", "default").
WithLocation
(6, 54)
2700
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "default == default").WithArguments("==", "default", "default").
WithLocation
(6, 33),
2703
Diagnostic(ErrorCode.ERR_AmbigBinaryOpsOnDefault, "default != default").WithArguments("!=", "default", "default").
WithLocation
(6, 54)
2726
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "default").
WithLocation
(6, 25)
2747
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 27),
2750
Diagnostic(ErrorCode.ERR_NullNotValid, "null").
WithLocation
(7, 27)
2772
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 27),
2775
Diagnostic(ErrorCode.ERR_QueryTypeInferenceFailed, "select").WithArguments("select", "Select").
WithLocation
(7, 43)
2814
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "(int?)1 == default").WithArguments("false", "int", "int?").
WithLocation
(5, 30),
2817
Diagnostic(ErrorCode.WRN_NubExprIsConstBool, "default == (int?)1").WithArguments("false", "int", "int?").
WithLocation
(6, 30)
2837
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 15)
2859
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 30),
2862
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(7, 30),
2865
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(8, 30)
2884
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 33),
2887
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 56)
2907
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 30)
2930
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 30),
2933
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(7, 30),
2936
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(8, 30),
2939
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(8, 41),
2942
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(9, 30)
2966
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(10, 42),
2969
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(10, 66),
2972
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(10, 83),
2975
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(10, 101)
3032
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 47)
3133
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(12, 18)
3165
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(12, 18)
3197
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(12, 19)
3229
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(12, 19)
3299
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "null == default").WithArguments("==", "<null>", "default").
WithLocation
(6, 13),
3302
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "default == null").WithArguments("==", "default", "<null>").
WithLocation
(7, 16),
3305
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "null != default").WithArguments("!=", "<null>", "default").
WithLocation
(8, 13),
3308
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "default != null").WithArguments("!=", "default", "<null>").
WithLocation
(9, 16)
3334
Diagnostic(ErrorCode.WRN_EqualityOpWithoutEquals, "C").WithArguments("C").
WithLocation
(2, 7),
3337
Diagnostic(ErrorCode.WRN_EqualityOpWithoutGetHashCode, "C").WithArguments("C").
WithLocation
(2, 7)
3373
Diagnostic(ErrorCode.WRN_EqualityOpWithoutEquals, "C").WithArguments("C").
WithLocation
(2, 7),
3376
Diagnostic(ErrorCode.WRN_EqualityOpWithoutGetHashCode, "C").WithArguments("C").
WithLocation
(2, 7)
3551
Diagnostic(ErrorCode.ERR_BadSKknown, "System").WithArguments("System", "namespace", "type").
WithLocation
(6, 17)
3627
Diagnostic(ErrorCode.ERR_BadConstType, "const").WithArguments("int?").
WithLocation
(5, 5),
3630
Diagnostic(ErrorCode.ERR_BadConstType, "const").WithArguments("int?").
WithLocation
(6, 5),
3633
Diagnostic(ErrorCode.ERR_BadConstType, "const").WithArguments("int?").
WithLocation
(7, 5),
3636
Diagnostic(ErrorCode.ERR_BadConstType, "const").WithArguments("S?").
WithLocation
(8, 5),
3639
Diagnostic(ErrorCode.ERR_BadConstType, "const").WithArguments("S?").
WithLocation
(9, 5),
3642
Diagnostic(ErrorCode.ERR_BadConstType, "const").WithArguments("T?").
WithLocation
(10, 5),
3645
Diagnostic(ErrorCode.ERR_BadConstType, "const").WithArguments("T?").
WithLocation
(11, 5),
3648
Diagnostic(ErrorCode.ERR_NotConstantExpression, "default(int?)").WithArguments("C<T>.x2").
WithLocation
(6, 21),
3651
Diagnostic(ErrorCode.ERR_NotConstantExpression, "(default)").WithArguments("C<T>.x3").
WithLocation
(7, 21),
3654
Diagnostic(ErrorCode.ERR_NotConstantExpression, "default").WithArguments("C<T>.y1").
WithLocation
(8, 19),
3657
Diagnostic(ErrorCode.ERR_NotConstantExpression, "default(S?)").WithArguments("C<T>.y2").
WithLocation
(9, 19),
3660
Diagnostic(ErrorCode.ERR_NotConstantExpression, "default").WithArguments("C<T>.z1").
WithLocation
(10, 19),
3663
Diagnostic(ErrorCode.ERR_NotConstantExpression, "default(T?)").WithArguments("C<T>.z2").
WithLocation
(11, 19),
3666
Diagnostic(ErrorCode.ERR_NotConstantExpression, "default").WithArguments("C<T>.x1").
WithLocation
(5, 21)
3747
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "A").WithArguments("x1", "int?").
WithLocation
(14, 2),
3750
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "A").WithArguments("x2", "int?").
WithLocation
(14, 2),
3753
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "A").WithArguments("x3", "int?").
WithLocation
(14, 2),
3756
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "A").WithArguments("y1", "S?").
WithLocation
(14, 2),
3759
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "A").WithArguments("y2", "S?").
WithLocation
(14, 2)
Semantics\TopLevelStatementsTests.cs (421)
110
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "System").
WithLocation
(3, 1)
118
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "System").
WithLocation
(3, 1),
121
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "System").
WithLocation
(4, 1)
282
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "void").
WithLocation
(1, 1),
285
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(1, 1),
288
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(1, 6)
297
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "local").
WithLocation
(1, 1),
300
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(1, 1),
303
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(1, 6)
438
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "void").
WithLocation
(2, 1),
441
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(2, 5),
444
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(2, 6),
447
Diagnostic(ErrorCode.ERR_NameNotInContext, "i").WithArguments("i").
WithLocation
(2, 42),
450
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(3, 1)
459
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "var").
WithLocation
(2, 1),
462
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(2, 5),
465
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(2, 6),
468
Diagnostic(ErrorCode.ERR_NameNotInContext, "i").WithArguments("i").
WithLocation
(2, 42),
471
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(3, 1)
616
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, @"System.Console.WriteLine(""Hi!"");").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1)
635
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "(").WithArguments("(").
WithLocation
(4, 29),
638
Diagnostic(ErrorCode.ERR_TypeExpected, @"""Hi!""").
WithLocation
(4, 30),
641
Diagnostic(ErrorCode.ERR_TupleTooFewElements, @"""Hi!""").
WithLocation
(4, 30),
644
Diagnostic(ErrorCode.ERR_CloseParenExpected, @"""Hi!""").
WithLocation
(4, 30),
647
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, @"""Hi!""").WithArguments(@"""Hi!""").
WithLocation
(4, 30)
669
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "WriteLine").
WithLocation
(4, 20),
672
Diagnostic(ErrorCode.ERR_CloseParenExpected, @"""Hi!""").
WithLocation
(4, 30),
675
Diagnostic(ErrorCode.ERR_EOFExpected, @"""Hi!""").
WithLocation
(4, 30)
741
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "a").
WithLocation
(2, 12),
744
Diagnostic(ErrorCode.WRN_NewNotRequired, "a").WithArguments("<invalid-global-code>.a").
WithLocation
(2, 12),
747
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(3, 26),
750
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "b").
WithLocation
(4, 15),
753
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(5, 26),
756
Diagnostic(ErrorCode.ERR_BadMemberFlag, "static").WithArguments("static").
WithLocation
(6, 1),
759
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(8, 1),
762
Diagnostic(ErrorCode.ERR_BadMemberFlag, "volatile").WithArguments("volatile").
WithLocation
(10, 1),
765
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[System.Obsolete()]").
WithLocation
(12, 1),
768
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[System.Obsolete()]").
WithLocation
(15, 1)
785
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").
WithLocation
(2, 8),
788
Diagnostic(ErrorCode.ERR_LocalDuplicate, "a").WithArguments("a").
WithLocation
(3, 8),
791
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").
WithLocation
(3, 8)
843
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "a").WithArguments("a").
WithLocation
(2, 1)
864
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "int").
WithLocation
(2, 1)
975
Diagnostic(ErrorCode.ERR_LocalDuplicate, "x").WithArguments("x").
WithLocation
(4, 5),
978
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(4, 5)
1033
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "args").WithArguments("args").
WithLocation
(2, 8)
1060
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(4, 10)
1078
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(3, 8),
1081
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "await").WithArguments("await").
WithLocation
(3, 8),
1084
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(4, 31)
1121
Diagnostic(ErrorCode.ERR_BadAsyncLocalType, "d").
WithLocation
(3, 9)
1295
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "const").
WithLocation
(2, 1),
1298
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(2, 18),
1301
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(2, 18)
1309
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "const").
WithLocation
(2, 1),
1312
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "const").
WithLocation
(2, 1),
1315
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(2, 18),
1318
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(2, 18)
1339
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "var").
WithLocation
(2, 1),
1342
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(2, 9),
1345
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(2, 9)
1353
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "var").
WithLocation
(2, 1),
1356
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "var").
WithLocation
(2, 1),
1359
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(2, 9),
1362
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(2, 9)
1388
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "x").WithArguments("x").
WithLocation
(6, 30)
1406
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "x").WithArguments("x").
WithLocation
(6, 30)
1438
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "void").
WithLocation
(2, 1),
1441
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(2, 6),
1444
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(2, 8),
1447
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(3, 1),
1450
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(4, 26)
1457
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "string").
WithLocation
(2, 1),
1460
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(2, 6),
1463
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(2, 8),
1466
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(3, 1),
1469
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(4, 26)
1492
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").
WithLocation
(3, 8),
1495
Diagnostic(ErrorCode.ERR_UseDefViolation, "b").WithArguments("b").
WithLocation
(5, 26),
1498
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "c").
WithLocation
(7, 1),
1501
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "d").
WithLocation
(8, 1),
1504
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "e").WithArguments("e").
WithLocation
(9, 8)
1539
").WithArguments("<top-level-statements-entry-point>").
WithLocation
(2, 1)
1642
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 34),
1645
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(17, 9),
1648
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 9),
1651
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(19, 20),
1654
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(34, 38),
1657
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(35, 13),
1660
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(36, 13),
1663
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(37, 24)
1815
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(13, 34),
1818
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(14, 9),
1821
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(15, 9),
1824
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 20),
1827
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(31, 38),
1830
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(32, 13),
1833
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(33, 13),
1836
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(34, 24)
1978
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, @"string Test = ""1"";").WithArguments("top-level statements", "9.0").
WithLocation
(2, 1)
2036
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 34),
2039
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(17, 9),
2042
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 9),
2045
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(19, 33),
2048
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(21, 20),
2051
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(36, 38),
2054
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(37, 13),
2057
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(38, 13),
2060
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(39, 45),
2063
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(41, 24)
2200
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(13, 34),
2203
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(14, 9),
2206
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(15, 9),
2209
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 33),
2212
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 20),
2215
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(33, 38),
2218
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(34, 13),
2221
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(35, 13),
2224
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(36, 45),
2227
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(38, 24)
2355
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, @"string Test() => ""1"";").WithArguments("top-level statements", "9.0").
WithLocation
(2, 1)
2402
Diagnostic(ErrorCode.ERR_LabelNotFound, "Test").WithArguments("Test").
WithLocation
(15, 14),
2405
Diagnostic(ErrorCode.ERR_LabelNotFound, "Test").WithArguments("Test").
WithLocation
(30, 18)
2566
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "M").
WithLocation
(5, 10),
2569
Diagnostic(ErrorCode.WRN_NewNotRequired, "M").WithArguments("<invalid-global-code>.M()").
WithLocation
(5, 10)
2597
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "F").
WithLocation
(5, 9),
2600
Diagnostic(ErrorCode.WRN_NewNotRequired, "F").WithArguments("<invalid-global-code>.F").
WithLocation
(5, 9)
2622
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "M").
WithLocation
(5, 10),
2625
Diagnostic(ErrorCode.WRN_NewNotRequired, "M").WithArguments("<invalid-global-code>.M()").
WithLocation
(5, 10)
2683
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 34),
2686
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(17, 9),
2689
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 9),
2692
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(19, 33),
2695
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(21, 20),
2698
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(36, 38),
2701
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(37, 13),
2704
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(38, 13),
2707
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(39, 45),
2710
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(41, 24)
2768
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 34),
2771
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(17, 9),
2774
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 9),
2777
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(19, 33),
2780
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(21, 20),
2783
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(36, 38),
2786
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(37, 13),
2789
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(38, 13),
2792
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(39, 45),
2795
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(41, 24)
2853
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(9, 9),
2856
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 13)
2887
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "void").
WithLocation
(3, 1),
2890
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(3, 6),
2893
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "alias2").WithArguments("alias2").
WithLocation
(4, 1),
2896
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "alias1").WithArguments("alias1").
WithLocation
(5, 5),
2899
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(7, 1)
2916
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "alias2").WithArguments("alias2").
WithLocation
(4, 1)
2921
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "alias2").WithArguments("alias2").
WithLocation
(4, 1),
2924
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(7, 1)
2938
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "alias1").WithArguments("alias1").
WithLocation
(5, 5)
2943
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "void").
WithLocation
(3, 1),
2946
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(3, 6),
2949
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "alias1").WithArguments("alias1").
WithLocation
(5, 5)
3001
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 34),
3004
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(17, 9),
3007
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 9),
3010
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(19, 20)
3063
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(13, 34),
3066
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(14, 9),
3069
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(15, 9),
3072
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 20)
3126
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 34),
3129
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(17, 9),
3132
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 9),
3135
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(19, 33),
3138
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(21, 20)
3193
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(13, 34),
3196
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(14, 9),
3199
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(15, 9),
3202
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 33),
3205
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 20)
3257
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 34),
3260
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(17, 9),
3263
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 9),
3266
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(19, 20)
3319
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(13, 34),
3322
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(14, 9),
3325
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(15, 9),
3328
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 20)
3382
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 34),
3385
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(17, 9),
3388
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 9),
3391
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(19, 33),
3394
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(21, 20)
3449
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(13, 34),
3452
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(14, 9),
3455
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(15, 9),
3458
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 33),
3461
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 20)
3513
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 34),
3516
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(17, 9),
3519
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 9),
3522
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(19, 20)
3575
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(13, 34),
3578
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(14, 9),
3581
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(15, 9),
3584
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 20)
3638
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 34),
3641
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(17, 9),
3644
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 9),
3647
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(19, 33),
3650
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(21, 20)
3705
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(13, 34),
3708
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(14, 9),
3711
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(15, 9),
3714
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 33),
3717
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 20)
3769
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static N2;").
WithLocation
(2, 1),
3772
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(13, 34),
3775
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(14, 9),
3778
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(15, 9),
3781
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(16, 33),
3784
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(18, 20)
3837
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static N2;").
WithLocation
(2, 1),
3840
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(10, 34),
3843
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(11, 9),
3846
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(12, 9),
3849
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(13, 33),
3852
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "Test").WithArguments("Test").
WithLocation
(15, 20)
3905
Diagnostic(ErrorCode.ERR_BadSKunknown, "args").WithArguments("args", "type").
WithLocation
(15, 34),
3908
Diagnostic(ErrorCode.ERR_ObjectRequired, "args.ToString").WithArguments("object.ToString()").
WithLocation
(16, 9),
3911
Diagnostic(ErrorCode.ERR_BadSKunknown, "args").WithArguments("args", "type").
WithLocation
(17, 9),
3914
Diagnostic(ErrorCode.ERR_BadSKunknown, "args").WithArguments("args", "type").
WithLocation
(33, 38),
3917
Diagnostic(ErrorCode.ERR_ObjectRequired, "args.ToString").WithArguments("object.ToString()").
WithLocation
(34, 13),
3920
Diagnostic(ErrorCode.ERR_BadSKunknown, "args").WithArguments("args", "type").
WithLocation
(35, 13)
4054
Diagnostic(ErrorCode.ERR_BadSKunknown, "args").WithArguments("args", "type").
WithLocation
(13, 34),
4057
Diagnostic(ErrorCode.ERR_ObjectRequired, "args.ToString").WithArguments("object.ToString()").
WithLocation
(14, 9),
4060
Diagnostic(ErrorCode.ERR_BadSKunknown, "args").WithArguments("args", "type").
WithLocation
(15, 9),
4063
Diagnostic(ErrorCode.ERR_BadSKunknown, "args").WithArguments("args", "type").
WithLocation
(31, 38),
4066
Diagnostic(ErrorCode.ERR_ObjectRequired, "args.ToString").WithArguments("object.ToString()").
WithLocation
(32, 13),
4069
Diagnostic(ErrorCode.ERR_BadSKunknown, "args").WithArguments("args", "type").
WithLocation
(33, 13)
4154
Diagnostic(ErrorCode.ERR_NameNotInContext, "args").WithArguments("args").
WithLocation
(8, 34)
4179
Diagnostic(ErrorCode.ERR_NameNotInContext, "args").WithArguments("args").
WithLocation
(6, 34)
4304
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(2, 1),
4307
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(4, 1),
4310
Diagnostic(ErrorCode.WRN_UnreferencedVar, "I1").WithArguments("I1").
WithLocation
(4, 6),
4313
Diagnostic(ErrorCode.ERR_SyntaxError, ".").WithArguments(",").
WithLocation
(4, 8),
4316
Diagnostic(ErrorCode.ERR_SemicolonExpected, "local").
WithLocation
(4, 9),
4319
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(4, 9),
4322
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 16)
4356
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localA").
WithLocation
(2, 10),
4359
Diagnostic(ErrorCode.WRN_NewNotRequired, "localA").WithArguments("<invalid-global-code>.localA()").
WithLocation
(2, 10),
4362
Diagnostic(ErrorCode.ERR_NameNotInContext, "localA").WithArguments("localA").
WithLocation
(3, 1),
4365
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(4, 1),
4368
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localC").
WithLocation
(6, 14),
4371
Diagnostic(ErrorCode.ERR_VirtualPrivate, "localC").WithArguments("<invalid-global-code>.localC()").
WithLocation
(6, 14),
4374
Diagnostic(ErrorCode.ERR_NameNotInContext, "localC").WithArguments("localC").
WithLocation
(7, 1),
4377
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localD").
WithLocation
(8, 13),
4380
Diagnostic(ErrorCode.ERR_SealedNonOverride, "localD").WithArguments("<invalid-global-code>.localD()").
WithLocation
(8, 13),
4383
Diagnostic(ErrorCode.ERR_NameNotInContext, "localD").WithArguments("localD").
WithLocation
(9, 1),
4386
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localE").
WithLocation
(10, 15),
4389
Diagnostic(ErrorCode.ERR_VirtualPrivate, "localE").WithArguments("<invalid-global-code>.localE()").
WithLocation
(10, 15),
4392
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "localE").WithArguments("<invalid-global-code>.localE()").
WithLocation
(10, 15),
4395
Diagnostic(ErrorCode.ERR_NameNotInContext, "localE").WithArguments("localE").
WithLocation
(11, 1),
4398
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localF").
WithLocation
(12, 15),
4401
Diagnostic(ErrorCode.ERR_AbstractHasBody, "localF").WithArguments("<invalid-global-code>.localF()").
WithLocation
(12, 15),
4404
Diagnostic(ErrorCode.ERR_VirtualPrivate, "localF").WithArguments("<invalid-global-code>.localF()").
WithLocation
(12, 15),
4407
Diagnostic(ErrorCode.ERR_NameNotInContext, "localF").WithArguments("localF").
WithLocation
(13, 1),
4410
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "localG").
WithLocation
(14, 14),
4413
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "localG").WithArguments("<invalid-global-code>.localG()").
WithLocation
(14, 14),
4416
Diagnostic(ErrorCode.ERR_PartialMethodOnlyInPartialClass, "localG").
WithLocation
(14, 14),
4419
Diagnostic(ErrorCode.ERR_NameNotInContext, "localG").WithArguments("localG").
WithLocation
(15, 1),
4422
Diagnostic(ErrorCode.ERR_ExternHasBody, "localH").WithArguments("localH()").
WithLocation
(16, 13),
4425
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "localI()").WithArguments("localI()").
WithLocation
(20, 1)
4485
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "void").
WithLocation
(2, 1),
4488
Diagnostic(ErrorCode.ERR_NameNotInContext, "local2").WithArguments("local2").
WithLocation
(5, 1),
4491
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local2").WithArguments("local2").
WithLocation
(5, 6)
4523
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(2, 6)
4552
Diagnostic(ErrorCode.ERR_LocalDuplicate, "local1").WithArguments("local1").
WithLocation
(7, 6),
4555
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local1").WithArguments("local1").
WithLocation
(7, 6)
4604
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "args").WithArguments("args").
WithLocation
(3, 6)
4700
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "local").WithArguments("local").
WithLocation
(3, 10)
4718
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(3, 8),
4721
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "await").WithArguments("await").
WithLocation
(3, 8),
4724
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(4, 32)
4770
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(2, 5),
4773
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "local").
WithLocation
(4, 5)
4791
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(2, 5),
4794
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "local").
WithLocation
(4, 5)
4812
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(2, 5),
4815
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "local").
WithLocation
(4, 5)
4833
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(2, 1),
4836
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "local").
WithLocation
(4, 21)
4858
Diagnostic(ErrorCode.ERR_NameNotInContext, "local").WithArguments("local").
WithLocation
(2, 1),
4861
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "local").
WithLocation
(4, 21)
4910
Diagnostic(ErrorCode.ERR_DuplicateLabel, "label1").WithArguments("label1").
WithLocation
(4, 1)
4931
Diagnostic(ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, "label1").
WithLocation
(2, 1)
4996
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Main()").
WithLocation
(2, 13),
4999
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Main").WithArguments("Main").
WithLocation
(2, 13)
5024
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Main()").
WithLocation
(6, 13)
5054
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Program.Main()").
WithLocation
(9, 23)
5086
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Program.Main()").
WithLocation
(10, 23)
5116
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Program.Main()").
WithLocation
(10, 17)
5142
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Program.Main()").
WithLocation
(6, 17)
5178
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Program2.Main(string[])").
WithLocation
(9, 17),
5181
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Program2.Main()").
WithLocation
(14, 23)
5217
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Program2.Main()").
WithLocation
(10, 17),
5220
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Program2.Main(string[])").
WithLocation
(15, 23)
5273
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("N1.Helpers.Main()").
WithLocation
(19, 21)
5309
Diagnostic(ErrorCode.ERR_SimpleProgramDisallowsMainType).
WithLocation
(1, 1),
5312
Diagnostic(ErrorCode.WRN_SyncAndAsyncEntryPoints, "Main").WithArguments("Program2.Main(string[])", "Program2.Main()").
WithLocation
(12, 23)
5336
Diagnostic(ErrorCode.ERR_BadCompilationOptionValue).WithArguments("MainTypeName", "").
WithLocation
(1, 1),
5338
Diagnostic(ErrorCode.ERR_SimpleProgramDisallowsMainType).
WithLocation
(1, 1)
5423
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Main()").
WithLocation
(6, 12)
5447
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Main(string[])").
WithLocation
(6, 13)
5472
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Main(string[])").
WithLocation
(6, 12)
5499
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Main()").
WithLocation
(8, 19)
5527
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Main()").
WithLocation
(8, 24)
5554
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Main(string[])").
WithLocation
(8, 19)
5582
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Main(string[])").
WithLocation
(8, 24)
5658
Diagnostic(ErrorCode.ERR_BadIteratorReturn, "yield break;").WithArguments("<top-level-statements-entry-point>", "void").
WithLocation
(1, 1)
5672
Diagnostic(ErrorCode.ERR_BadIteratorReturn, "{yield return 0;}").WithArguments("<top-level-statements-entry-point>", "void").
WithLocation
(1, 1)
5691
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "System.Console.WriteLine(1);").
WithLocation
(4, 1)
5712
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "System.Console.WriteLine(1);").
WithLocation
(6, 1)
5736
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "System.Console.WriteLine(1);").
WithLocation
(4, 1)
5762
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "System.Console.WriteLine(1);").
WithLocation
(6, 1)
5783
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "System.Console.WriteLine(1);").
WithLocation
(6, 1)
5804
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "System.Console.WriteLine(1);").
WithLocation
(6, 1)
5825
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "System.Console.WriteLine(1);").
WithLocation
(6, 1)
5846
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "System.Console.WriteLine(1);").
WithLocation
(6, 1)
5866
Diagnostic(ErrorCode.ERR_UsingAfterElements, "using System;").
WithLocation
(4, 1),
5869
Diagnostic(ErrorCode.ERR_NameNotInContext, "Console").WithArguments("Console").
WithLocation
(6, 1)
5890
Diagnostic(ErrorCode.ERR_GlobalAttributesNotFirst, "module").
WithLocation
(4, 2)
5908
Diagnostic(ErrorCode.ERR_ExternAfterElements, "extern").
WithLocation
(4, 1)
5932
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias A;").
WithLocation
(2, 1),
5935
Diagnostic(ErrorCode.ERR_BadExternAlias, "A").WithArguments("A").
WithLocation
(2, 14)
5955
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "void local() => System.Console.WriteLine(1);").
WithLocation
(6, 1)
5991
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[MyAttribute(i)]").
WithLocation
(2, 1),
5994
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[MyAttribute(i + 1)]").
WithLocation
(5, 1),
5997
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[MyAttribute(i + 2)]").
WithLocation
(8, 1),
6000
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[MyAttribute(i + 3)]").
WithLocation
(12, 1),
6003
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "local").WithArguments("local").
WithLocation
(16, 1),
6006
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(16, 6),
6009
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "").WithArguments("()").
WithLocation
(16, 6),
6012
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(19, 6)
6215
Diagnostic(ErrorCode.ERR_BadAccess, "M").WithArguments("A.M()").
WithLocation
(2, 9)
6256
Diagnostic(ErrorCode.ERR_BadAccess, "M").WithArguments("A.M()").
WithLocation
(2, 17),
6259
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "x").WithArguments("x").
WithLocation
(8, 9)
6299
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "x").WithArguments("x").
WithLocation
(13, 13)
6349
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "x").WithArguments("x").
WithLocation
(11, 13)
7434
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
7437
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "return").WithArguments("System.Object").
WithLocation
(1, 1),
7439
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Void").
WithLocation
(1, 1),
7441
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.String").
WithLocation
(1, 1),
7444
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "return").WithArguments("object", "0").
WithLocation
(1, 1)
7456
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Threading.Tasks.Task").
WithLocation
(1, 1),
7459
Diagnostic(ErrorCode.WRN_InvalidMainSig, "await Test();").WithArguments("<top-level-statements-entry-point>").
WithLocation
(1, 1),
7461
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
7464
Diagnostic(ErrorCode.ERR_NameNotInContext, "Test").WithArguments("Test").
WithLocation
(1, 7)
7483
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Int32").
WithLocation
(1, 1),
7486
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "10").WithArguments("System.Int32").
WithLocation
(3, 8)
7505
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Int32").
WithLocation
(1, 1),
7507
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
7512
").WithArguments("<top-level-statements-entry-point>").
WithLocation
(2, 1),
7515
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "await System.Threading.Tasks.Task.Factory.StartNew(() => 5L);").WithArguments("System.Int32").
WithLocation
(2, 1),
7518
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "await System.Threading.Tasks.Task.Factory.StartNew(() => 5L);").WithArguments("System.Int32").
WithLocation
(2, 1),
7521
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "await System.Threading.Tasks.Task.Factory.StartNew(() => 5L);").WithArguments("System.Int32").
WithLocation
(2, 1),
7524
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "11").WithArguments("System.Int32").
WithLocation
(3, 8)
7543
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Threading.Tasks.Task`1").
WithLocation
(1, 1),
7545
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
7550
").WithArguments("<top-level-statements-entry-point>").
WithLocation
(2, 1)
7570
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Threading.Tasks.Task`1").
WithLocation
(1, 1),
7572
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.Int32").
WithLocation
(1, 1),
7574
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
7579
").WithArguments("<top-level-statements-entry-point>").
WithLocation
(2, 1),
7582
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "11").WithArguments("System.Int32").
WithLocation
(3, 8)
7599
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound).WithArguments("System.String").
WithLocation
(1, 1)
7846
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""error""").WithArguments("string", "int").
WithLocation
(3, 8)
7945
Diagnostic(ErrorCode.ERR_RetObjectRequired, "return").WithArguments("int").
WithLocation
(6, 5)
7967
Diagnostic(ErrorCode.ERR_RetObjectRequired, "return").WithArguments("int").
WithLocation
(4, 5)
7986
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(4, 1)
8005
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(4, 1)
8053
Diagnostic(ErrorCode.ERR_SimpleProgramNotAnExecutable, @"System.Console.WriteLine(""Hi!"");").
WithLocation
(1, 1)
8066
Diagnostic(ErrorCode.ERR_SimpleProgramNotAnExecutable, @"System.Console.WriteLine(""Hi!"");").
WithLocation
(1, 1)
8223
Diagnostic(ErrorCode.ERR_NoBreakOrCont, "break;").
WithLocation
(1, 1)
8237
Diagnostic(ErrorCode.ERR_NoBreakOrCont, "continue;").
WithLocation
(1, 1)
8251
Diagnostic(ErrorCode.ERR_BadEmptyThrow, "throw").
WithLocation
(1, 1)
8450
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "fixed(int *p = &new C().i) {}").
WithLocation
(2, 1),
8453
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int *").
WithLocation
(2, 7),
8456
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "&new C().i").
WithLocation
(2, 16)
8597
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "args").WithArguments("args").
WithLocation
(3, 10)
8706
Diagnostic(ErrorCode.ERR_AnonymousTypePropertyAssignedBadValue, "Span = span").WithArguments("System.Span<int>").
WithLocation
(5, 11)
8726
Diagnostic(ErrorCode.ERR_EscapeVariable, "inner").WithArguments("inner").
WithLocation
(7, 13)
8821
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(2, 5),
8824
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "i").WithArguments("i").
WithLocation
(7, 13)
8880
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "M1").WithArguments("M1").
WithLocation
(3, 13),
8883
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "M2").WithArguments("M2").
WithLocation
(4, 6),
8886
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "M1").WithArguments("M1").
WithLocation
(9, 9),
8889
Diagnostic(ErrorCode.ERR_SimpleProgramLocalIsReferencedOutsideOfTopLevelStatement, "M2").WithArguments("M2").
WithLocation
(10, 9)
8943
Diagnostic(ErrorCode.ERR_SimpleProgramIsEmpty, ";").
WithLocation
(1, 1)
8960
Diagnostic(ErrorCode.ERR_SimpleProgramIsEmpty, ";").
WithLocation
(1, 1)
9020
Diagnostic(ErrorCode.ERR_SimpleProgramIsEmpty, ";").
WithLocation
(3, 1),
9023
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Program2.Main(string[])").
WithLocation
(7, 17)
9131
Diagnostic(ErrorCode.ERR_MissingPartial, "Program").WithArguments("Program").
WithLocation
(4, 14)
9209
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "M").WithArguments("Program").
WithLocation
(2, 1),
9212
Diagnostic(ErrorCode.ERR_NameNotInContext, "M").WithArguments("M").
WithLocation
(2, 1)
9238
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "M").WithArguments("Program").
WithLocation
(2, 1),
9241
Diagnostic(ErrorCode.ERR_NameNotInContext, "M").WithArguments("M").
WithLocation
(2, 1)
9260
Diagnostic(ErrorCode.ERR_PartialTypeKindConflict, "System").WithArguments("Program").
WithLocation
(2, 1)
9283
Diagnostic(ErrorCode.ERR_NameNotInContext, "Main").WithArguments("Main").
WithLocation
(8, 9)
9412
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "Program").WithArguments("Program", "error").
WithLocation
(11, 12)
9448
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Program.Main(string[])").
WithLocation
(6, 24)
9468
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("Program.Main()").
WithLocation
(6, 24)
9563
Diagnostic(ErrorCode.WRN_MissingXMLComment, "Program").WithArguments("Program").
WithLocation
(4, 22)
9602
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "Write").
WithLocation
(3, 16),
9605
Diagnostic(ErrorCode.ERR_CloseParenExpected, "42").
WithLocation
(3, 22),
9608
Diagnostic(ErrorCode.ERR_EOFExpected, "42").
WithLocation
(3, 22)
9624
Diagnostic(ErrorCode.ERR_TypeVarNotFound, "var").
WithLocation
(3, 1),
9627
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x").
WithLocation
(3, 5)
9646
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "var x = 1;").
WithLocation
(6, 1),
9649
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(6, 5)
Semantics\TryCatchTests.cs (2)
73
Diagnostic(ErrorCode.ERR_BadExceptionType, "int").
WithLocation
(9, 16),
76
Diagnostic(ErrorCode.WRN_UnreferencedVar, "e").WithArguments("e").
WithLocation
(9, 20));
Semantics\UninitializedNonNullableFieldTests.cs (173)
53
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("event", "E1").
WithLocation
(15, 14));
75
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "E2").
WithLocation
(10, 9));
91
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "F").WithArguments("C.F", "null").
WithLocation
(3, 21),
94
Diagnostic(ErrorCode.WRN_UnreferencedField, "G").WithArguments("C.G").
WithLocation
(4, 19));
111
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(3, 2),
114
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "F").WithArguments("C.F", "null").
WithLocation
(4, 21),
117
Diagnostic(ErrorCode.WRN_UnreferencedField, "G").WithArguments("C.G").
WithLocation
(5, 19));
133
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F").WithArguments("field", "F").
WithLocation
(3, 21),
136
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "F").WithArguments("C.F", "null").
WithLocation
(3, 21),
139
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "G").WithArguments("field", "G").
WithLocation
(4, 19),
142
Diagnostic(ErrorCode.WRN_UnreferencedField, "G").WithArguments("C.G").
WithLocation
(4, 19));
163
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "G").
WithLocation
(7, 12));
184
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F").
WithLocation
(7, 5));
240
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F1").WithArguments("field", "F1").
WithLocation
(3, 16),
243
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "F1").WithArguments("C<T>.F1", "").
WithLocation
(3, 16),
246
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(5, 21),
249
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").
WithLocation
(6, 21));
269
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F1").WithArguments("field", "F1").
WithLocation
(5, 20),
272
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F3").WithArguments("field", "F3").
WithLocation
(7, 24));
303
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F3").
WithLocation
(7, 14),
306
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F1").
WithLocation
(7, 14),
309
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F3").
WithLocation
(15, 14),
312
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F1").
WithLocation
(15, 14));
332
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F1").WithArguments("field", "F1").
WithLocation
(5, 29),
335
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F3").WithArguments("field", "F3").
WithLocation
(7, 33));
366
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F3").
WithLocation
(7, 14),
369
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F1").
WithLocation
(7, 14),
372
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F3").
WithLocation
(15, 14),
375
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F1").
WithLocation
(15, 14));
407
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F").WithArguments("field", "F").
WithLocation
(4, 27));
423
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P").WithArguments("property", "P").
WithLocation
(3, 27));
441
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E").WithArguments("event", "E").
WithLocation
(5, 28));
465
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F1").WithArguments("field", "F1").
WithLocation
(4, 27),
468
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F3").WithArguments("field", "F3").
WithLocation
(6, 36),
471
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P1").WithArguments("property", "P1").
WithLocation
(8, 27),
474
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P3").WithArguments("property", "P3").
WithLocation
(10, 27));
509
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F4").
WithLocation
(16, 12),
512
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P1").
WithLocation
(16, 12),
515
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P4").
WithLocation
(16, 12),
518
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F1").
WithLocation
(16, 12));
614
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field").WithArguments("C<T>.field").
WithLocation
(7, 7)
637
Diagnostic(ErrorCode.WRN_UnreferencedField, "field").WithArguments("C<T>.field").
WithLocation
(7, 7)
670
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P1").WithArguments("property", "P1").
WithLocation
(7, 22),
673
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").
WithLocation
(10, 48),
676
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P5").WithArguments("property", "P5").
WithLocation
(11, 22));
706
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("event", "E4").
WithLocation
(12, 12));
732
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F1").
WithLocation
(8, 12),
735
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F2").
WithLocation
(8, 12));
762
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F1").WithArguments("field", "F1").
WithLocation
(9, 23),
765
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P1").WithArguments("property", "P1").
WithLocation
(10, 23),
768
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E1").WithArguments("event", "E1").
WithLocation
(11, 24),
771
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F2").WithArguments("field", "F2").
WithLocation
(12, 16),
774
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P2").WithArguments("property", "P2").
WithLocation
(13, 16),
777
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E2").WithArguments("event", "E2").
WithLocation
(14, 17));
816
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F2").
WithLocation
(7, 13),
819
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F3").
WithLocation
(7, 13),
822
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F2").
WithLocation
(23, 14),
825
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F1").
WithLocation
(23, 14));
860
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S1").WithArguments("S1.Prop", "11.0").
WithLocation
(5, 12),
863
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop").
WithLocation
(7, 9),
866
Diagnostic(ErrorCode.ERR_UseDefViolationPropertyUnsupportedVersion, "Prop").WithArguments("Prop", "11.0").
WithLocation
(7, 9),
869
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop").
WithLocation
(12, 9),
872
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S1").WithArguments("property", "Prop").
WithLocation
(15, 12));
878
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop").
WithLocation
(7, 9),
881
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop").
WithLocation
(12, 9),
884
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S1").WithArguments("property", "Prop").
WithLocation
(15, 12));
956
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "field").
WithLocation
(10, 9),
959
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S1").WithArguments("field", "field").
WithLocation
(13, 12));
987
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "F1").
WithLocation
(10, 9));
1056
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S1").WithArguments("field", "field").
WithLocation
(13, 12),
1059
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S1").WithArguments("S1.field", "11.0").
WithLocation
(13, 12),
1062
Diagnostic(ErrorCode.ERR_UseDefViolationFieldUnsupportedVersion, "field").WithArguments("field", "11.0").
WithLocation
(15, 30)
1069
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S1").WithArguments("field", "field").
WithLocation
(13, 12)
1222
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P3").
WithLocation
(7, 14),
1225
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P1").
WithLocation
(7, 14),
1228
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P3").
WithLocation
(15, 14),
1231
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P1").
WithLocation
(15, 14));
1262
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P3").
WithLocation
(7, 14),
1265
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P1").
WithLocation
(7, 14),
1268
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P3").
WithLocation
(15, 14),
1271
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P1").
WithLocation
(15, 14));
1354
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F2").
WithLocation
(12, 13),
1357
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P2").
WithLocation
(12, 13),
1360
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P3").
WithLocation
(12, 13));
1384
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P1").
WithLocation
(10, 13),
1387
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P4").
WithLocation
(10, 13),
1390
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F1").
WithLocation
(10, 13));
1440
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "B").WithArguments("field", "F2").
WithLocation
(11, 5),
1443
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "A").WithArguments("field", "F1").
WithLocation
(5, 5));
1451
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 6),
1454
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(10, 5));
1461
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 6),
1464
Diagnostic(ErrorCode.ERR_NullableUnconstrainedTypeParameter, "T?").WithArguments("9.0").
WithLocation
(10, 5));
1491
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F1").WithArguments("field", "F1").
WithLocation
(5, 15),
1494
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P1").WithArguments("property", "P1").
WithLocation
(7, 15),
1497
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 14),
1500
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 14));
1525
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F1").WithArguments("field", "F1").
WithLocation
(5, 15),
1528
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P1").WithArguments("property", "P1").
WithLocation
(7, 15),
1531
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 14),
1534
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 14));
1559
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F1").WithArguments("field", "F1").
WithLocation
(5, 15),
1562
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P1").WithArguments("property", "P1").
WithLocation
(7, 15),
1565
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(11, 14),
1568
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 14));
1616
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F1").WithArguments("field", "F1").
WithLocation
(6, 15),
1619
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P1").WithArguments("property", "P1").
WithLocation
(8, 15),
1622
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(12, 14),
1625
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(14, 14));
1651
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F1").WithArguments("field", "F1").
WithLocation
(6, 15),
1654
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P1").WithArguments("property", "P1").
WithLocation
(8, 15),
1657
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(12, 14),
1660
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(14, 14));
1698
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F1").WithArguments("field", "F1").
WithLocation
(6, 7),
1701
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "G1").WithArguments("field", "G1").
WithLocation
(7, 7),
1704
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F3").WithArguments("field", "F3").
WithLocation
(15, 7),
1707
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "G3").WithArguments("field", "G3").
WithLocation
(16, 7),
1710
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F4").WithArguments("field", "F4").
WithLocation
(20, 7),
1713
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "G4").WithArguments("field", "G4").
WithLocation
(21, 7),
1716
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F5").WithArguments("field", "F5").
WithLocation
(25, 7),
1719
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "G5").WithArguments("field", "G5").
WithLocation
(26, 7));
1759
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P").
WithLocation
(6, 14),
1762
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F").
WithLocation
(6, 14));
1786
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("property", "P").
WithLocation
(6, 14),
1789
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "F").
WithLocation
(6, 14),
1792
Diagnostic(ErrorCode.ERR_UnassignedThisAutoPropertyUnsupportedVersion, "S").WithArguments("S.P", "11.0").
WithLocation
(6, 14),
1795
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("S.F", "11.0").
WithLocation
(6, 14));
1801
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("property", "P").
WithLocation
(6, 14),
1804
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "F").
WithLocation
(6, 14));
1922
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F2").WithArguments("field", "F2").
WithLocation
(6, 19));
1944
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F2").WithArguments("field", "F2").
WithLocation
(6, 19));
1967
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "F3").
WithLocation
(8, 12));
1986
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").
WithLocation
(4, 19),
1989
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F2").WithArguments("field", "F2").
WithLocation
(5, 26),
1992
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F3").WithArguments("property", "F3").
WithLocation
(6, 26),
1995
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "E1").WithArguments("event", "E1").
WithLocation
(7, 39),
1998
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("I.E1").
WithLocation
(7, 39)
2032
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("I.E1").
WithLocation
(6, 39),
2035
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "I").WithArguments("property", "F2").
WithLocation
(16, 12),
2038
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "I").WithArguments("event", "E1").
WithLocation
(16, 12),
2041
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "I").WithArguments("field", "F1").
WithLocation
(16, 12)
2082
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "G").
WithLocation
(6, 5),
2085
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F").
WithLocation
(6, 5));
2128
Diagnostic(ErrorCode.WRN_UnreferencedField, "_f").WithArguments("C._f").
WithLocation
(5, 20),
2131
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "_f").
WithLocation
(11, 14),
2134
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "_f").
WithLocation
(13, 14),
2137
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "_f").
WithLocation
(19, 14),
2140
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "_f").
WithLocation
(28, 14));
2193
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C1").WithArguments("property", "Prop").
WithLocation
(9, 12));
2341
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "BaseProp").WithArguments("property", "BaseProp").
WithLocation
(4, 19),
2344
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "DerivedProp").
WithLocation
(14, 9));
2402
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "M(Field2)").
WithLocation
(6, 28),
2405
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "M(Field1)").
WithLocation
(7, 28)
2442
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Field2").
WithLocation
(4, 28));
2474
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "s1").WithArguments("C.s1").
WithLocation
(4, 28)
2499
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Field2").
WithLocation
(4, 37));
2507
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Field2").
WithLocation
(4, 37));
2563
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Value1").WithArguments("field", "Value1").
WithLocation
(4, 35));
2569
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Value2").WithArguments("field", "Value2").
WithLocation
(4, 35));
2574
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Value1").WithArguments("field", "Value1").
WithLocation
(4, 35),
2577
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Value2").WithArguments("field", "Value2").
WithLocation
(4, 35));
2604
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Value2").WithArguments("field", "Value2").
WithLocation
(4, 35));
2609
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Value2").WithArguments("field", "Value2").
WithLocation
(4, 35));
2633
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "P").WithArguments("C.P").
WithLocation
(5, 19),
2636
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "P3").WithArguments("C.P3").
WithLocation
(7, 19),
2639
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "P").WithArguments("C.P").
WithLocation
(10, 9),
2642
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "P2").WithArguments("C.P2").
WithLocation
(11, 27),
2645
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "P2").WithArguments("C.P2").
WithLocation
(12, 9)
2723
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(4, 35),
2726
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 49)
2746
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "S").
WithLocation
(4, 12));
2767
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("property", "S").
WithLocation
(4, 19));
2803
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "f").WithArguments("field", "f").
WithLocation
(8, 14).WithWarningAsError(warnAsError));
Semantics\UnsafeTests.cs (349)
81
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "assembly1", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "mscorlib").
WithLocation
(1, 1),
83
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "assembly1", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "mscorlib").
WithLocation
(1, 1),
85
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "assembly1", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "mscorlib").
WithLocation
(1, 1),
87
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "assembly1", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "mscorlib").
WithLocation
(1, 1),
89
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "assembly1", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "mscorlib").
WithLocation
(1, 1));
126
Diagnostic(ErrorCode.ERR_IllegalFixedType, "T").
WithLocation
(4, 18)
147
Diagnostic(ErrorCode.ERR_IllegalFixedType, "T").
WithLocation
(4, 18)
173
Diagnostic(ErrorCode.ERR_IllegalFixedType, "MyStruct<int>").
WithLocation
(9, 18)
243
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(6, 19)
388
Diagnostic(ErrorCode.ERR_BadTypeArgument, "f4").WithArguments("int*").
WithLocation
(8, 13),
391
Diagnostic(ErrorCode.ERR_BadTypeArgument, "f5").WithArguments("int**").
WithLocation
(9, 14),
671
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(3, 18),
674
Diagnostic(ErrorCode.ERR_BadTypeArgument, "i").WithArguments("int*").
WithLocation
(3, 24),
677
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(8, 18),
680
Diagnostic(ErrorCode.ERR_BadTypeArgument, "c").WithArguments("int*").
WithLocation
(8, 24)
3096
Diagnostic(ErrorCode.WRN_ManagedAddr, "M").WithArguments("System.TypedReference").
WithLocation
(4, 42),
3099
Diagnostic(ErrorCode.WRN_ManagedAddr, "r").WithArguments("System.TypedReference").
WithLocation
(4, 67)
3115
Diagnostic(ErrorCode.WRN_ManagedAddr, "M").WithArguments("System.TypedReference").
WithLocation
(3, 28),
3118
Diagnostic(ErrorCode.WRN_ManagedAddr, "r").WithArguments("System.TypedReference").
WithLocation
(3, 53)
3147
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(4, 19),
3150
Diagnostic(ErrorCode.ERR_ArrayElementCantBeRefAny, "System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(4, 45)
3174
Diagnostic(ErrorCode.WRN_ManagedAddr, "System.TypedReference*").WithArguments("System.TypedReference").
WithLocation
(6, 9)
3218
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(4, 19)
3239
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "ref System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(4, 19),
3242
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "ref System.TypedReference r").WithArguments("System.TypedReference").
WithLocation
(4, 47)
3260
Diagnostic(ErrorCode.ERR_BadTypeArgument, "c").WithArguments("System.TypedReference").
WithLocation
(4, 51)
3278
Diagnostic(ErrorCode.ERR_FieldCantBeRefAny, "System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(4, 12),
3281
Diagnostic(ErrorCode.ERR_RefFieldCannotReferToRefStruct, "ref System.TypedReference").
WithLocation
(5, 12),
3284
Diagnostic(ErrorCode.ERR_FieldCantBeRefAny, "ref System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(5, 12)
3301
Diagnostic(ErrorCode.ERR_BadBoundType, "System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(2, 29)
3324
Diagnostic(ErrorCode.WRN_ManagedAddr, "s").WithArguments("S1").
WithLocation
(4, 16));
3350
Diagnostic(ErrorCode.WRN_ManagedAddr, "bb").WithArguments("A.B").
WithLocation
(4, 16),
3353
Diagnostic(ErrorCode.WRN_ManagedAddr, "cc").WithArguments("A.B.C").
WithLocation
(9, 21),
3356
Diagnostic(ErrorCode.WRN_ManagedAddr, "aa").WithArguments("A").
WithLocation
(13, 28));
3374
Diagnostic(ErrorCode.WRN_ManagedAddr, "s").WithArguments("S").
WithLocation
(6, 19));
3398
Diagnostic(ErrorCode.WRN_ManagedAddr, "p").WithArguments("S").
WithLocation
(5, 15),
3401
Diagnostic(ErrorCode.WRN_ManagedAddr, "s").WithArguments("S").
WithLocation
(12, 15),
3404
Diagnostic(ErrorCode.WRN_ManagedAddr, "M").WithArguments("S").
WithLocation
(4, 8),
3407
Diagnostic(ErrorCode.WRN_ManagedAddr, "P").WithArguments("S").
WithLocation
(7, 8),
3410
Diagnostic(ErrorCode.WRN_ManagedAddr, "this").WithArguments("S").
WithLocation
(9, 8),
3413
Diagnostic(ErrorCode.WRN_ManagedAddr, "p").WithArguments("S").
WithLocation
(10, 17));
3534
Diagnostic(ErrorCode.WRN_ManagedAddr, "&bad").WithArguments("External<object>").
WithLocation
(13, 22),
3537
Diagnostic(ErrorCode.WRN_ManagedAddr, "&bad2").WithArguments("External<U>").
WithLocation
(16, 23)
3708
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "x").
WithLocation
(13, 14),
3711
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "array").WithArguments("C.array", "null").
WithLocation
(6, 11)
3805
Diagnostic(ErrorCode.ERR_FixedNeeded, "&this").
WithLocation
(76, 18),
3808
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "1").
WithLocation
(23, 14),
3811
Diagnostic(ErrorCode.ERR_FixedNeeded, "&array[0]").
WithLocation
(24, 13),
3814
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "local = 1").
WithLocation
(25, 15),
3817
Diagnostic(ErrorCode.ERR_NameNotInContext, "goo").WithArguments("goo").
WithLocation
(26, 14),
3820
Diagnostic(ErrorCode.ERR_FixedNeeded, "&base.f").
WithLocation
(27, 13),
3823
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "local + local").
WithLocation
(28, 15),
3826
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "M(local)").
WithLocation
(29, 14),
3829
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "func()").
WithLocation
(30, 14),
3832
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "local += local").
WithLocation
(31, 15),
3835
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "local == 0 ? local : param").
WithLocation
(32, 15),
3838
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "(int)param").
WithLocation
(33, 15),
3841
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "default(int)").
WithLocation
(34, 14),
3844
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "delegate { return 1; }").
WithLocation
(35, 14),
3847
Diagnostic(ErrorCode.ERR_FixedNeeded, "&instanceField").
WithLocation
(36, 13),
3850
Diagnostic(ErrorCode.ERR_FixedNeeded, "&staticField").
WithLocation
(37, 13),
3853
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "local++").
WithLocation
(38, 15),
3856
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "this[0]").
WithLocation
(39, 14),
3859
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "() => 1").
WithLocation
(40, 15),
3862
Diagnostic(ErrorCode.ERR_AddressOfToNonFunctionPointer, "&M").WithArguments("M", "int*").
WithLocation
(41, 13),
3865
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "new System.Int32()").
WithLocation
(42, 15),
3868
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "P").
WithLocation
(43, 14),
3871
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "sizeof(int)").
WithLocation
(44, 14),
3874
Diagnostic(ErrorCode.ERR_FixedNeeded, "&this.instanceField").
WithLocation
(45, 13),
3877
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "+local").
WithLocation
(46, 15),
3880
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "&local").
WithLocation
(49, 16),
3883
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "new { }").
WithLocation
(51, 19),
3886
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "new int[1]").
WithLocation
(52, 19),
3889
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "array as object").
WithLocation
(53, 19),
3892
Diagnostic(ErrorCode.WRN_ManagedAddr, "&E").WithArguments("System.Action").
WithLocation
(54, 17),
3895
Diagnostic(ErrorCode.ERR_FixedNeeded, "&E").
WithLocation
(54, 17),
3898
Diagnostic(ErrorCode.ERR_BadEventUsageNoField, "F").WithArguments("C.F").
WithLocation
(55, 18),
3901
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "E += null").
WithLocation
(56, 19),
3904
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "F += null").
WithLocation
(57, 19),
3907
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "array is object").
WithLocation
(58, 19),
3910
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "array ?? array").
WithLocation
(59, 19),
3913
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "this").
WithLocation
(60, 19),
3916
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "typeof(int)").
WithLocation
(61, 19),
3919
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "Color.Red").
WithLocation
(62, 19)
3956
Diagnostic(ErrorCode.WRN_ManagedAddr, "&t").WithArguments("T").
WithLocation
(6, 18),
3959
Diagnostic(ErrorCode.WRN_ManagedAddr, "&c").WithArguments("C").
WithLocation
(9, 18),
3962
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("S").
WithLocation
(12, 18),
3965
Diagnostic(ErrorCode.WRN_ManagedAddr, "&anon").WithArguments("<empty anonymous type>").
WithLocation
(15, 18));
3990
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "s").WithArguments("S.s", "S").
WithLocation
(13, 14),
3993
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("S").
WithLocation
(7, 17));
4561
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "i1 = &M").WithArguments("&method group").
WithLocation
(6, 13)
4915
Diagnostic(ErrorCode.ERR_ObjectProhibited, "p->StaticField").WithArguments("S.StaticField").
WithLocation
(26, 9),
4918
Diagnostic(ErrorCode.ERR_ObjectProhibited, "p->StaticProperty").WithArguments("S.StaticProperty").
WithLocation
(29, 9),
4921
Diagnostic(ErrorCode.ERR_ObjectProhibited, "p->StaticMethod").WithArguments("S.StaticMethod()").
WithLocation
(32, 9),
4924
Diagnostic(ErrorCode.ERR_ObjectProhibited, "p->StaticMethod").WithArguments("S.StaticMethod()").
WithLocation
(38, 13),
4927
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "p->ExtensionMethod").WithArguments("Extensions.ExtensionMethod(S)", "S").
WithLocation
(39, 13)
4960
Diagnostic(ErrorCode.WRN_ManagedAddr, "S*").WithArguments("S").
WithLocation
(13, 9),
4963
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s").WithArguments("S").
WithLocation
(13, 16),
4966
Diagnostic(ErrorCode.ERR_ObjectProhibited, "p->StaticFieldLikeEvent").WithArguments("S.StaticFieldLikeEvent").
WithLocation
(16, 9),
4969
Diagnostic(ErrorCode.ERR_ObjectProhibited, "p->StaticCustomEvent").WithArguments("S.StaticCustomEvent").
WithLocation
(19, 9),
4972
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "StaticFieldLikeEvent").WithArguments("S.StaticFieldLikeEvent").
WithLocation
(5, 32),
4975
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "InstanceFieldLikeEvent").WithArguments("S.InstanceFieldLikeEvent").
WithLocation
(4, 25)
6269
Diagnostic(ErrorCode.ERR_BadBinaryOps, "p >>> i").WithArguments(">>>", "byte*", "int").
WithLocation
(22, 19),
6272
Diagnostic(ErrorCode.ERR_BadBinaryOps, "i >>> p").WithArguments(">>>", "int", "byte*").
WithLocation
(23, 19)
6891
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "(byte*)&x").
WithLocation
(9, 26),
6894
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "n").
WithLocation
(13, 25),
6897
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "(int*)n").
WithLocation
(17, 25),
6900
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "n").WithArguments("C.n", "null").
WithLocation
(5, 23)
6989
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "stackalloc int[2]").
WithLocation
(6, 25));
6993
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "stackalloc int[2]").
WithLocation
(6, 25));
7065
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "null").
WithLocation
(6, 25),
7068
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "null").
WithLocation
(10, 26),
7071
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(14, 25),
7074
Diagnostic(ErrorCode.ERR_NameNotInContext, "_").WithArguments("_").
WithLocation
(18, 26),
7077
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "()=>throw null").
WithLocation
(22, 25),
7080
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "()=>throw null").
WithLocation
(26, 27)
7101
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "x => x").
WithLocation
(6, 26));
7121
Diagnostic(ErrorCode.ERR_ExprCannotBeFixed, "Main").
WithLocation
(6, 25));
7173
Diagnostic(ErrorCode.WRN_ManagedAddr, "a").WithArguments("string").
WithLocation
(8, 26));
7226
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "a").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(13, 26));
7308
Diagnostic(ErrorCode.WRN_ManagedAddr, "a").WithArguments("char[]").
WithLocation
(8, 26));
7518
Diagnostic(ErrorCode.WRN_ManagedAddr, "sizeof(T)").WithArguments("T").
WithLocation
(7, 13),
7521
Diagnostic(ErrorCode.WRN_ManagedAddr, "sizeof(C)").WithArguments("C").
WithLocation
(8, 13),
7524
Diagnostic(ErrorCode.WRN_ManagedAddr, "sizeof(S)").WithArguments("S").
WithLocation
(9, 13));
8264
Diagnostic(ErrorCode.ERR_MissingArraySize, "[]").
WithLocation
(6, 34),
8267
Diagnostic(ErrorCode.ERR_BadStackAllocExpr, "int[1, 1]").
WithLocation
(7, 31),
8270
Diagnostic(ErrorCode.ERR_ManagedAddr, "int").WithArguments("int[]").
WithLocation
(8, 31),
8273
Diagnostic(ErrorCode.ERR_BadStackAllocExpr, "int[][]").
WithLocation
(8, 31),
8276
Diagnostic(ErrorCode.ERR_ManagedAddr, "int").WithArguments("int[]").
WithLocation
(9, 31),
8279
Diagnostic(ErrorCode.ERR_BadStackAllocExpr, "int[][1]").
WithLocation
(9, 31),
8282
Diagnostic(ErrorCode.ERR_ManagedAddr, "int").WithArguments("int[]").
WithLocation
(10, 31),
8285
Diagnostic(ErrorCode.ERR_BadStackAllocExpr, "int[1][]").
WithLocation
(10, 31),
8288
Diagnostic(ErrorCode.ERR_ManagedAddr, "int").WithArguments("int[]").
WithLocation
(11, 31),
8291
Diagnostic(ErrorCode.ERR_BadStackAllocExpr, "int[1][1]").
WithLocation
(11, 31)
8317
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(int*)stackalloc int[1]").WithArguments("int", "int*").
WithLocation
(6, 19),
8320
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(void*)stackalloc int[1]").WithArguments("int", "void*").
WithLocation
(7, 19),
8323
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(C)stackalloc int[1]").WithArguments("int", "C").
WithLocation
(8, 19));
8327
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(int*)stackalloc int[1]").WithArguments("int", "int*").
WithLocation
(6, 19),
8330
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(void*)stackalloc int[1]").WithArguments("int", "void*").
WithLocation
(7, 19),
8333
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "(C)stackalloc int[1]").WithArguments("int", "C").
WithLocation
(8, 19));
8348
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "stackalloc").WithArguments("stackalloc in nested expressions", "8.0").
WithLocation
(4, 14)
8353
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[1]").WithArguments("int", "int*").
WithLocation
(4, 14)
8371
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "stackalloc int[1]").WithArguments("p").
WithLocation
(4, 21)
8401
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[1]").WithArguments("int", "int*").
WithLocation
(2, 17)
8415
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "Span<int>").WithArguments("System.Span<int>").
WithLocation
(3, 1)
8428
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "var").WithArguments("System.Span<int>").
WithLocation
(2, 1)
8562
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "T*").
WithLocation
(8, 22),
8565
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(8, 30)
8590
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").
WithLocation
(6, 14),
8593
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(8, 30)
8600
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(8, 30)
8644
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("T").
WithLocation
(17, 28),
8647
Diagnostic(ErrorCode.WRN_UnreferencedField, "b2").WithArguments("C<T>.b2").
WithLocation
(14, 24),
8650
Diagnostic(ErrorCode.WRN_UnreferencedField, "b1").WithArguments("C<T>.b1").
WithLocation
(13, 22),
8653
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 30),
8656
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(17, 28)
8666
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "T*").
WithLocation
(17, 22),
8669
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "T*").
WithLocation
(10, 22),
8672
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("T").
WithLocation
(17, 28),
8675
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(17, 28),
8678
Diagnostic(ErrorCode.WRN_UnreferencedField, "b2").WithArguments("C<T>.b2").
WithLocation
(14, 24),
8681
Diagnostic(ErrorCode.WRN_UnreferencedField, "b1").WithArguments("C<T>.b1").
WithLocation
(13, 22),
8684
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 30)
8719
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").
WithLocation
(6, 14),
8722
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("T").
WithLocation
(17, 28),
8725
Diagnostic(ErrorCode.WRN_UnreferencedField, "b2").WithArguments("C<T>.b2").
WithLocation
(14, 24),
8728
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 30),
8731
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(17, 28),
8734
Diagnostic(ErrorCode.WRN_UnreferencedField, "b1").WithArguments("C<T>.b1").
WithLocation
(13, 22));
8738
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 30),
8741
Diagnostic(ErrorCode.WRN_UnreferencedField, "b1").WithArguments("C<T>.b1").
WithLocation
(13, 22),
8744
Diagnostic(ErrorCode.WRN_UnreferencedField, "b2").WithArguments("C<T>.b2").
WithLocation
(14, 24),
8747
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("T").
WithLocation
(17, 28),
8750
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(17, 28));
8755
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").
WithLocation
(6, 14),
8758
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("T").
WithLocation
(17, 28),
8761
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(17, 28),
8764
Diagnostic(ErrorCode.WRN_UnreferencedField, "b1").WithArguments("C<T>.b1").
WithLocation
(13, 22),
8767
Diagnostic(ErrorCode.WRN_UnreferencedField, "b2").WithArguments("C<T>.b2").
WithLocation
(14, 24),
8770
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 30));
8774
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 30),
8777
Diagnostic(ErrorCode.WRN_UnreferencedField, "b1").WithArguments("C<T>.b1").
WithLocation
(13, 22),
8780
Diagnostic(ErrorCode.WRN_UnreferencedField, "b2").WithArguments("C<T>.b2").
WithLocation
(14, 24),
8783
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("T").
WithLocation
(17, 28),
8786
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(17, 28));
8813
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("string").
WithLocation
(13, 33),
8816
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 35),
8819
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(13, 33)
8829
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "string*").
WithLocation
(13, 22),
8832
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "string*").
WithLocation
(10, 22),
8835
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("string").
WithLocation
(13, 33),
8838
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(13, 33),
8841
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 35)
8872
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").
WithLocation
(6, 14),
8875
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("string").
WithLocation
(13, 33),
8878
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(13, 33),
8881
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 35));
8885
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 35),
8888
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("string").
WithLocation
(13, 33),
8891
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(13, 33));
8896
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").
WithLocation
(6, 14),
8899
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("string").
WithLocation
(13, 33),
8902
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(13, 33),
8905
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 35));
8909
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(10, 35),
8912
Diagnostic(ErrorCode.WRN_ManagedAddr, "c").WithArguments("string").
WithLocation
(13, 33),
8915
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(13, 33));
9689
Diagnostic(ErrorCode.ERR_FixedNeeded, "&p").
WithLocation
(6, 24)
9717
Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&s.Buf").
WithLocation
(12, 25),
9720
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").
WithLocation
(13, 26),
9723
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "&s.Buf").WithArguments("int**", "int*").
WithLocation
(14, 18),
9726
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").
WithLocation
(15, 19));
9751
Diagnostic(ErrorCode.ERR_FixedNotNeeded, "s.Buf").
WithLocation
(12, 25),
9754
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").
WithLocation
(15, 18));
9777
Diagnostic(ErrorCode.ERR_FixedBufferNotFixed, "s_f.Buf").
WithLocation
(13, 18));
9804
Diagnostic(ErrorCode.ERR_FixedNotNeeded, "&s.Buf[0]").
WithLocation
(12, 25),
9807
Diagnostic(ErrorCode.ERR_FixedNeeded, "&s_f.Buf[0]").
WithLocation
(15, 18),
9810
Diagnostic(ErrorCode.ERR_FixedNeeded, "&(s_f.Buf[0])").
WithLocation
(17, 18));
9848
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = int*;").
WithLocation
(2, 1),
9851
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 7));
9868
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = int;").
WithLocation
(2, 1),
9871
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 7));
9884
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = int*;").
WithLocation
(2, 1),
9887
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7),
9890
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 7));
9903
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = int;").
WithLocation
(2, 1),
9906
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7),
9909
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 7));
9922
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = int*;").
WithLocation
(2, 1),
9925
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7));
9938
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = int;").
WithLocation
(2, 1),
9941
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7));
9954
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = System.String;").
WithLocation
(2, 1),
9957
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7),
9960
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 7));
9973
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = System.String;").
WithLocation
(2, 1),
9976
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7));
9999
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(3, 11),
10002
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(7, 13),
10005
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "Y").
WithLocation
(10, 13));
10022
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Y = X;").
WithLocation
(5, 5),
10025
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(5, 15));
10042
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe Y = X;").
WithLocation
(5, 5));
10060
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = int*;").
WithLocation
(2, 1),
10063
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 11),
10066
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(6, 12));
10084
Diagnostic(ErrorCode.ERR_BadTypeArgument, "t").WithArguments("int*").
WithLocation
(6, 32),
10087
Diagnostic(ErrorCode.ERR_BadTypeArgument, "t").WithArguments("int*").
WithLocation
(6, 32));
10120
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 12));
10133
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = int*[];").
WithLocation
(2, 1));
10146
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = int*[];").
WithLocation
(2, 1),
10149
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 11));
10168
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 13));
10187
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 13));
10220
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 7));
10239
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 13));
10258
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(2, 11),
10261
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 13));
10279
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = delegate*<int,int>;").
WithLocation
(2, 1),
10282
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(2, 11),
10285
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(6, 12));
10305
Diagnostic(ErrorCode.ERR_BadTypeArgument, "t").WithArguments("delegate*<int, int>").
WithLocation
(6, 33),
10308
Diagnostic(ErrorCode.ERR_BadTypeArgument, "t").WithArguments("delegate*<int, int>").
WithLocation
(6, 33),
10311
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(8, 13));
10325
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = delegate*<int,int>[];").
WithLocation
(2, 1),
10328
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Y = delegate*<int,int>[];").
WithLocation
(3, 1),
10331
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(3, 11));
10350
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 13));
10369
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 13));
10387
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("S.x").
WithLocation
(6, 7));
10422
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("S.x").
WithLocation
(6, 7));
10441
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = System.Collections.Generic.List<int*>;").
WithLocation
(2, 1),
10444
Diagnostic(ErrorCode.ERR_BadTypeArgument, "X").WithArguments("int*").
WithLocation
(2, 7)
10457
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = System.Collections.Generic.List<int*>;").
WithLocation
(2, 1),
10460
Diagnostic(ErrorCode.ERR_BadTypeArgument, "X").WithArguments("int*").
WithLocation
(2, 7),
10463
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 43)
10490
Diagnostic(ErrorCode.ERR_BadTypeArgument, "X").WithArguments("int*").
WithLocation
(2, 7),
10493
Diagnostic(ErrorCode.ERR_BadTypeArgument, "x").WithArguments("int*").
WithLocation
(6, 14)
10506
Diagnostic(ErrorCode.ERR_BadTypeArgument, "X").WithArguments("int*").
WithLocation
(2, 7),
10509
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 43),
10512
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 12),
10515
Diagnostic(ErrorCode.ERR_BadTypeArgument, "x").WithArguments("int*").
WithLocation
(6, 14)
10542
Diagnostic(ErrorCode.ERR_BadTypeArgument, "X").WithArguments("int*").
WithLocation
(2, 7),
10545
Diagnostic(ErrorCode.ERR_BadTypeArgument, "x").WithArguments("int*").
WithLocation
(6, 21));
10551
Diagnostic(ErrorCode.ERR_BadTypeArgument, "X").WithArguments("int*").
WithLocation
(2, 7),
10554
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").
WithLocation
(6, 17),
10557
Diagnostic(ErrorCode.ERR_BadTypeArgument, "x").WithArguments("int*").
WithLocation
(6, 21));
10563
Diagnostic(ErrorCode.ERR_BadTypeArgument, "X").WithArguments("int*").
WithLocation
(2, 7),
10566
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 43),
10569
Diagnostic(ErrorCode.ERR_BadTypeArgument, "x").WithArguments("int*").
WithLocation
(6, 21));
10575
Diagnostic(ErrorCode.ERR_BadTypeArgument, "X").WithArguments("int*").
WithLocation
(2, 7),
10578
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 43),
10581
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").
WithLocation
(6, 17),
10584
Diagnostic(ErrorCode.ERR_BadTypeArgument, "x").WithArguments("int*").
WithLocation
(6, 21));
10598
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = System.Collections.Generic.List<int*[]>;").
WithLocation
(2, 1)
10610
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = System.Collections.Generic.List<int*[]>;").
WithLocation
(2, 1),
10613
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 43)
10645
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 43),
10648
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 12)
10678
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").
WithLocation
(6, 17));
10684
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 43));
10690
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 43),
10693
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").
WithLocation
(6, 17));
10706
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = System.Collections.Generic.List<int*[]>;").
WithLocation
(2, 1));
10712
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe X = System.Collections.Generic.List<int*[]>;").
WithLocation
(2, 1),
10715
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 7));
10741
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7),
10744
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 7)
10751
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7));
10757
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 5),
10760
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 9),
10763
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(9, 9),
10766
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(11, 17),
10769
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(11, 20)
10803
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7),
10806
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 7),
10809
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 5),
10812
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 9),
10815
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(9, 9),
10818
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(11, 17),
10821
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(11, 20),
10824
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x").
WithLocation
(11, 22),
10827
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(13, 17),
10830
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(13, 25),
10833
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x").
WithLocation
(13, 32)
10840
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7),
10843
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 5),
10846
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 9),
10849
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(9, 9),
10852
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(11, 17),
10855
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(11, 20),
10858
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x").
WithLocation
(11, 22),
10861
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(13, 17),
10864
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(13, 25),
10867
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x").
WithLocation
(13, 32)
10874
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 5),
10877
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 9),
10880
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(9, 9),
10883
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(11, 17),
10886
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(11, 20),
10889
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x").
WithLocation
(11, 22),
10892
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(13, 17),
10895
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(13, 25),
10898
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x").
WithLocation
(13, 32)
10930
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7),
10933
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 7),
10936
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").
WithLocation
(4, 14)
10943
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7));
10975
Diagnostic(ErrorCode.ERR_FeatureInPreview, "unsafe").WithArguments("using type alias").
WithLocation
(2, 7)
Semantics\UserDefinedConversionTests.cs (3)
1623
Diagnostic(ErrorCode.ERR_NoImplicitConv, "M1()").WithArguments("void", "C<object>").
WithLocation
(9, 16));
1645
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C<object>) M1()").WithArguments("void", "C<object>").
WithLocation
(9, 16));
1677
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "i").WithArguments("int?", "C").
WithLocation
(3, 7)
Semantics\UseSiteErrorTests.cs (179)
133
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(5, 12),
136
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(6, 32),
139
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(7, 32),
142
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(4, 12),
145
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
148
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
151
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
154
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11)
200
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(5, 5),
203
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "ReturnType2").WithArguments("C.ReturnType2()").
WithLocation
(5, 54),
206
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(6, 55),
209
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "ParameterType1").WithArguments("C.ParameterType1(UnavailableClass)").
WithLocation
(6, 40),
212
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(7, 55),
215
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "ParameterType2").WithArguments("C.ParameterType2(UnavailableClass[])").
WithLocation
(7, 40),
218
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(4, 5),
221
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "ReturnType1").WithArguments("C.ReturnType1()").
WithLocation
(4, 52),
224
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
227
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
230
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
233
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceMethods").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11)
376
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(5, 12),
379
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(7, 12),
382
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(8, 12),
385
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(10, 12),
388
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(11, 12),
391
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(4, 12),
394
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
397
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
400
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
403
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
406
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
409
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11)
475
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(4, 5),
478
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Get1").WithArguments("C.Get1").
WithLocation
(4, 55),
481
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(5, 5),
484
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Get2").WithArguments("C.Get2").
WithLocation
(5, 57),
487
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(7, 5),
490
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Set1").WithArguments("C.Set1").
WithLocation
(7, 55),
493
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(8, 5),
496
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Set2").WithArguments("C.Set2").
WithLocation
(8, 57),
499
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(10, 5),
502
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "GetSet1").WithArguments("C.GetSet1").
WithLocation
(10, 55),
505
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(11, 5),
508
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "GetSet2").WithArguments("C.GetSet2").
WithLocation
(11, 57),
511
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
514
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
517
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
520
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
523
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
526
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceProperties").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11)
593
Diagnostic(ErrorCode.ERR_NoTypeDef, "GetSet1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(5, 11),
596
Diagnostic(ErrorCode.ERR_NoTypeDef, "GetSet1").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(5, 23),
599
Diagnostic(ErrorCode.ERR_NoTypeDef, "GetSet2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 11),
602
Diagnostic(ErrorCode.ERR_NoTypeDef, "GetSet2").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 23),
605
Diagnostic(ErrorCode.ERR_NoTypeDef, "GetSet3").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 11),
608
Diagnostic(ErrorCode.ERR_NoTypeDef, "GetSet3").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 23),
611
Diagnostic(ErrorCode.ERR_NoTypeDef, "GetSet3").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(11, 9),
614
Diagnostic(ErrorCode.ERR_NoTypeDef, "GetSet3").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(11, 19));
731
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableDelegate").WithArguments("UnavailableDelegate").
WithLocation
(4, 18),
734
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(5, 45),
737
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(6, 45),
740
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
743
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableDelegate", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
746
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11)
764
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableDelegate").WithArguments("UnavailableDelegate").
WithLocation
(4, 18),
767
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(5, 45),
770
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(6, 45),
773
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
776
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableDelegate", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
779
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11)
833
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableDelegate").WithArguments("UnavailableDelegate").
WithLocation
(4, 11),
836
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Event1").WithArguments("C.Event1").
WithLocation
(4, 60),
839
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(5, 38),
842
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Event2").WithArguments("C.Event2").
WithLocation
(5, 85),
845
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "UnavailableClass").WithArguments("UnavailableClass").
WithLocation
(6, 38),
848
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "Event3").WithArguments("C.Event3").
WithLocation
(6, 87),
851
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
854
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableDelegate", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11),
857
Diagnostic(ErrorCode.ERR_NoTypeDef, "CSharpErrors.InterfaceEvents").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(2, 11)
939
Diagnostic(ErrorCode.ERR_InvalidDelegateType, @"del(""goo"")").WithArguments("DelegateWithoutInvoke.DelegateGenericFunctionWithoutInvoke<T>").
WithLocation
(7, 16),
942
Diagnostic(ErrorCode.ERR_InvalidDelegateType, "bar").WithArguments("DelegateWithoutInvoke.DelegateSubWithoutInvoke").
WithLocation
(13, 70),
945
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Invoke").WithArguments("DelegateWithoutInvoke.DelegateSubWithoutInvoke", "Invoke").
WithLocation
(14, 21),
948
Diagnostic(ErrorCode.ERR_InvalidDelegateType, "new DelegateWithoutInvoke.DelegateSubWithoutInvoke(myDelegate1)").WithArguments("DelegateWithoutInvoke.DelegateSubWithoutInvoke").
WithLocation
(15, 70),
951
Diagnostic(ErrorCode.ERR_InvalidDelegateType, "new DelegateWithoutInvoke.DelegateSubWithoutInvoke(bar2)").WithArguments("DelegateWithoutInvoke.DelegateSubWithoutInvoke").
WithLocation
(16, 30),
954
Diagnostic(ErrorCode.ERR_InvalidDelegateType, @"x => System.Console.WriteLine(""Hello World"")").WithArguments("DelegateWithoutInvoke.DelegateSubWithoutInvoke").
WithLocation
(17, 70),
957
Diagnostic(ErrorCode.ERR_InvalidDelegateType, @"x => ""Hello World""").WithArguments("DelegateWithoutInvoke.DelegateFunctionWithoutInvoke").
WithLocation
(18, 87));
1000
Diagnostic(ErrorCode.ERR_NoTypeDef, "del.Invoke").WithArguments("UnavailableClass<>", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 16),
1003
Diagnostic(ErrorCode.ERR_NoTypeDef, "bar").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(13, 56),
1006
Diagnostic(ErrorCode.ERR_NoTypeDef, @"myDelegate1(""goo"")").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(14, 9),
1009
Diagnostic(ErrorCode.ERR_NoTypeDef, "new CSharpErrors.DelegateReturnType1(myDelegate1)").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(15, 56),
1012
Diagnostic(ErrorCode.ERR_NoTypeDef, "new CSharpErrors.DelegateReturnType1(bar)").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(16, 30),
1015
Diagnostic(ErrorCode.ERR_NoTypeDef, @"x => System.Console.WriteLine(""Hello World"")").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(17, 56),
1018
Diagnostic(ErrorCode.ERR_NoTypeDef, @"x => ""Hello World""").WithArguments("UnavailableClass", "Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(18, 68));
1088
Diagnostic(ErrorCode.ERR_MissingTypeInAssembly, "B").WithArguments("X", "Test").
WithLocation
(2, 7));
1197
Diagnostic(ErrorCode.ERR_BindToBogus, "B").WithArguments("ILErrors.ModReqInterfaceEvents.Event1.remove").
WithLocation
(2, 7),
1200
Diagnostic(ErrorCode.ERR_BindToBogus, "B").WithArguments("ILErrors.ModReqInterfaceEvents.Event1.add").
WithLocation
(2, 7)
1260
Diagnostic(ErrorCode.ERR_NoTypeDef, "string s").WithArguments("Base", "BaseAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(9, 18)
2158
Diagnostic(ErrorCode.ERR_BindToBogus, "Constructors").WithArguments("Constructors.Constructors(string)").
WithLocation
(8, 22),
2161
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("Methods.M(string)").
WithLocation
(10, 17),
2164
Diagnostic(ErrorCode.ERR_BindToBogus, "Methods.M").WithArguments("Methods.M(string)").
WithLocation
(12, 29),
2167
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "new Indexers()[null]").WithArguments("Indexers.this[string]", "Indexers.get_Item(string)").
WithLocation
(14, 18));
2209
Diagnostic(ErrorCode.ERR_NoTypeDef, "e").WithArguments("GeneralException", "Base, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(9, 23),
2212
Diagnostic(ErrorCode.ERR_NoImplicitConv, "e").WithArguments("SpecificException", "System.Exception").
WithLocation
(9, 23),
2215
Diagnostic(ErrorCode.ERR_BadExceptionType, "SpecificException").
WithLocation
(11, 20),
2218
Diagnostic(ErrorCode.ERR_NoTypeDef, "SpecificException").WithArguments("GeneralException", "Base, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(11, 20)
2339
Diagnostic(ErrorCode.ERR_NoTypeDef, "A").WithArguments("System.ValueType", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 10),
2342
Diagnostic(ErrorCode.ERR_NoTypeDef, "B").WithArguments("System.Enum", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 15),
2345
Diagnostic(ErrorCode.ERR_NoTypeDef, "D").WithArguments("System.MulticastDelegate", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 25)
2368
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1)
2384
Diagnostic(ErrorCode.ERR_NoTypeDef, "A").WithArguments("System.ValueType", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 10),
2387
Diagnostic(ErrorCode.ERR_NoTypeDef, "B").WithArguments("System.Enum", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 15),
2390
Diagnostic(ErrorCode.ERR_NoTypeDef, "D").WithArguments("System.MulticastDelegate", "mincorlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(4, 25)
2478
Diagnostic(ErrorCode.ERR_NoTypeDef, "&s2").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 19),
2481
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s2").WithArguments("S2").
WithLocation
(6, 19)
2505
Diagnostic(ErrorCode.ERR_NoTypeDef, "sizeof(S2)").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 20),
2508
Diagnostic(ErrorCode.WRN_ManagedAddr, "sizeof(S2)").WithArguments("S2").
WithLocation
(6, 20));
2530
Diagnostic(ErrorCode.ERR_NoTypeDef, "ptr").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 23),
2533
Diagnostic(ErrorCode.WRN_ManagedAddr, "ptr").WithArguments("S2").
WithLocation
(4, 23));
2557
Diagnostic(ErrorCode.ERR_NoTypeDef, "S2*").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 9),
2560
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(6, 9),
2563
Diagnostic(ErrorCode.ERR_NoTypeDef, "S2").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 31),
2566
Diagnostic(ErrorCode.ERR_ManagedAddr, "S2").WithArguments("S2").
WithLocation
(6, 31),
2569
Diagnostic(ErrorCode.ERR_NoTypeDef, "S2*").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 9),
2572
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(7, 9),
2575
Diagnostic(ErrorCode.ERR_NoTypeDef, "stackalloc [] { default(S2) }").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 21),
2578
Diagnostic(ErrorCode.ERR_ManagedAddr, "stackalloc [] { default(S2) }").WithArguments("S2").
WithLocation
(7, 21));
2604
Diagnostic(ErrorCode.ERR_NoTypeDef, "S2*").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 16),
2607
Diagnostic(ErrorCode.WRN_ManagedAddr, "S2*").WithArguments("S2").
WithLocation
(7, 16),
2610
Diagnostic(ErrorCode.ERR_NoTypeDef, "&s2").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 26),
2613
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s2").WithArguments("S2").
WithLocation
(7, 26),
2616
Diagnostic(ErrorCode.ERR_NoTypeDef, "&s2").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 26),
2619
Diagnostic(ErrorCode.WRN_ManagedAddr, "&s2").WithArguments("S2").
WithLocation
(7, 26)
2646
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M").WithArguments("C.M<T>(T)", "T", "S2").
WithLocation
(8, 9),
2649
Diagnostic(ErrorCode.ERR_NoTypeDef, "M").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 9),
2652
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M").WithArguments("C.M<T>(T)", "T", "S2").
WithLocation
(9, 9),
2655
Diagnostic(ErrorCode.ERR_NoTypeDef, "M").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(9, 9));
2686
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M").WithArguments("C.M<T>(T)", "T", "S3").
WithLocation
(13, 9),
2689
Diagnostic(ErrorCode.ERR_NoTypeDef, "M").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(13, 9),
2692
Diagnostic(ErrorCode.ERR_UnmanagedConstraintNotSatisfied, "M").WithArguments("C.M<T>(T)", "T", "S3").
WithLocation
(14, 9),
2695
Diagnostic(ErrorCode.ERR_NoTypeDef, "M").WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(14, 9));
2722
Diagnostic(ErrorCode.ERR_NoTypeDef).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1),
2724
Diagnostic(ErrorCode.ERR_NoTypeDef).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1));
2753
Diagnostic(ErrorCode.ERR_NoTypeDef).WithArguments("S1", "libS1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1)
2811
Diagnostic(ErrorCode.ERR_BindToBogus, "get_P").WithArguments("CL1.get_P()").
WithLocation
(4, 25)
2860
Diagnostic(ErrorCode.ERR_CantOverrideBogusMethod, "P").WithArguments("Test.P", "CL1.P").
WithLocation
(4, 25)
2909
Diagnostic(ErrorCode.ERR_BindToBogus, "get").WithArguments("CL1.P.get").
WithLocation
(6, 9)
2957
Diagnostic(ErrorCode.ERR_BindToBogus, "set").WithArguments("CL1.P.set").
WithLocation
(6, 9)
3015
Diagnostic(ErrorCode.ERR_BindToBogus, "get").WithArguments("CL1.P.get").
WithLocation
(6, 9),
3018
Diagnostic(ErrorCode.ERR_BindToBogus, "set").WithArguments("CL1.P.set").
WithLocation
(7, 9)
3076
Diagnostic(ErrorCode.ERR_BindToBogus, "set").WithArguments("CL1.P.set").
WithLocation
(7, 9)
3134
Diagnostic(ErrorCode.ERR_BindToBogus, "get").WithArguments("CL1.P.get").
WithLocation
(6, 9)
3192
Diagnostic(ErrorCode.ERR_BindToBogus, "add").WithArguments("CL1.E.add").
WithLocation
(6, 9),
3195
Diagnostic(ErrorCode.ERR_BindToBogus, "remove").WithArguments("CL1.E.remove").
WithLocation
(7, 9)
3253
Diagnostic(ErrorCode.ERR_BindToBogus, "remove").WithArguments("CL1.E.remove").
WithLocation
(7, 9)
3311
Diagnostic(ErrorCode.ERR_BindToBogus, "add").WithArguments("CL1.E.add").
WithLocation
(6, 9)
3340
Diagnostic(ErrorCode.ERR_BindToBogus, "get_P").WithArguments("CL1.get_P()").
WithLocation
(4, 16)
3384
Diagnostic(ErrorCode.ERR_AccessorImplementingMethod, "get").WithArguments("Test1.P.get", "CL1.get_P()", "Test1").
WithLocation
(6, 9),
3387
Diagnostic(ErrorCode.ERR_BogusExplicitImpl, "P").WithArguments("Test2.CL1.P", "CL1.P").
WithLocation
(12, 13),
3390
Diagnostic(ErrorCode.ERR_BindToBogus, "get").WithArguments("CL1.get_P()").
WithLocation
(14, 9)
3433
Diagnostic(ErrorCode.ERR_BindToBogus, "get").WithArguments("CL1.P.get").
WithLocation
(6, 9),
3436
Diagnostic(ErrorCode.ERR_BindToBogus, "get").WithArguments("CL1.P.get").
WithLocation
(14, 9)
3479
Diagnostic(ErrorCode.ERR_BindToBogus, "set").WithArguments("CL1.P.set").
WithLocation
(6, 9),
3482
Diagnostic(ErrorCode.ERR_BindToBogus, "set").WithArguments("CL1.P.set").
WithLocation
(14, 9)
3533
Diagnostic(ErrorCode.ERR_BindToBogus, "get").WithArguments("CL1.P.get").
WithLocation
(6, 9),
3536
Diagnostic(ErrorCode.ERR_BindToBogus, "set").WithArguments("CL1.P.set").
WithLocation
(7, 9),
3539
Diagnostic(ErrorCode.ERR_BindToBogus, "get").WithArguments("CL1.P.get").
WithLocation
(15, 9),
3542
Diagnostic(ErrorCode.ERR_BindToBogus, "set").WithArguments("CL1.P.set").
WithLocation
(16, 9)
3593
Diagnostic(ErrorCode.ERR_BindToBogus, "set").WithArguments("CL1.P.set").
WithLocation
(7, 9),
3596
Diagnostic(ErrorCode.ERR_BindToBogus, "set").WithArguments("CL1.P.set").
WithLocation
(16, 9)
3647
Diagnostic(ErrorCode.ERR_BindToBogus, "get").WithArguments("CL1.P.get").
WithLocation
(6, 9),
3650
Diagnostic(ErrorCode.ERR_BindToBogus, "get").WithArguments("CL1.P.get").
WithLocation
(15, 9)
3705
Diagnostic(ErrorCode.ERR_BindToBogus, "add").WithArguments("CL1.E.add").
WithLocation
(6, 9),
3708
Diagnostic(ErrorCode.ERR_BindToBogus, "remove").WithArguments("CL1.E.remove").
WithLocation
(7, 9),
3711
Diagnostic(ErrorCode.ERR_BindToBogus, "add").WithArguments("CL1.E.add").
WithLocation
(15, 9),
3714
Diagnostic(ErrorCode.ERR_BindToBogus, "remove").WithArguments("CL1.E.remove").
WithLocation
(16, 9)
3769
Diagnostic(ErrorCode.ERR_BindToBogus, "remove").WithArguments("CL1.E.remove").
WithLocation
(7, 9),
3772
Diagnostic(ErrorCode.ERR_BindToBogus, "remove").WithArguments("CL1.E.remove").
WithLocation
(16, 9)
3827
Diagnostic(ErrorCode.ERR_BindToBogus, "add").WithArguments("CL1.E.add").
WithLocation
(6, 9),
3830
Diagnostic(ErrorCode.ERR_BindToBogus, "add").WithArguments("CL1.E.add").
WithLocation
(15, 9)
Semantics\UsingDeclarationTests.cs (30)
55
Diagnostic(ErrorCode.ERR_GoToForwardJumpOverUsingVar, "goto label1;").
WithLocation
(7, 9),
58
Diagnostic(ErrorCode.WRN_UnreachableCode, "using").
WithLocation
(8, 9)
84
Diagnostic(ErrorCode.ERR_GoToForwardJumpOverUsingVar, "goto label1;").
WithLocation
(8, 13),
87
Diagnostic(ErrorCode.WRN_UnreachableCode, "using").
WithLocation
(10, 9)
112
Diagnostic(ErrorCode.ERR_GoToForwardJumpOverUsingVar, "goto label1;").
WithLocation
(7, 9),
115
Diagnostic(ErrorCode.WRN_UnreachableCode, "using").
WithLocation
(8, 9)
142
Diagnostic(ErrorCode.ERR_GoToForwardJumpOverUsingVar, "goto label1;").
WithLocation
(7, 9),
145
Diagnostic(ErrorCode.WRN_UnreachableCode, "using").
WithLocation
(8, 9),
148
Diagnostic(ErrorCode.ERR_GoToForwardJumpOverUsingVar, "goto label2;").
WithLocation
(9, 9)
171
Diagnostic(ErrorCode.ERR_GoToBackwardJumpOverUsingVar, "goto label1;").
WithLocation
(10, 9)
196
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label1").
WithLocation
(7, 9),
199
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "label2").
WithLocation
(8, 9),
202
Diagnostic(ErrorCode.ERR_GoToBackwardJumpOverUsingVar, "goto label3;").
WithLocation
(12, 9)
264
Diagnostic(ErrorCode.ERR_GoToBackwardJumpOverUsingVar, "goto label2;").
WithLocation
(14, 13),
267
Diagnostic(ErrorCode.ERR_GoToBackwardJumpOverUsingVar, "goto label3;").
WithLocation
(20, 13),
270
Diagnostic(ErrorCode.ERR_GoToForwardJumpOverUsingVar, "goto label5;").
WithLocation
(25, 13),
273
Diagnostic(ErrorCode.ERR_GoToBackwardJumpOverUsingVar, "goto label8;").
WithLocation
(45, 25)
338
Diagnostic(ErrorCode.WRN_UnreachableCode, "using").
WithLocation
(9, 13)
456
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "x").WithArguments("x", "using variable").
WithLocation
(8, 9)
482
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "x").WithArguments("x", "using variable").
WithLocation
(13, 21)
502
Diagnostic(ErrorCode.ERR_FixedMustInit, "x").
WithLocation
(7, 27)
591
Diagnostic(ErrorCode.ERR_UsingVarInSwitchCase, "using C1 o1 = new C1();").
WithLocation
(15, 17)
788
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableMultipleDeclarator, "var c1 = new C1(), c2 = new C2()").
WithLocation
(11, 15)
846
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "using").WithArguments("using declarations", "8.0").
WithLocation
(7, 9)
872
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "using").WithArguments("using declarations", "8.0").
WithLocation
(8, 15)
929
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "C1").WithArguments("C1").
WithLocation
(34, 15),
932
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "C1").WithArguments("C1").
WithLocation
(34, 27),
935
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "using S3 S3 = new S3();").WithArguments("S3.Dispose()").
WithLocation
(40, 9)
956
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(7, 15),
959
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(7, 22)
Semantics\UsingStatementTests.cs (72)
141
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "C1 c1 = new C1()").WithArguments("C1").
WithLocation
(11, 16)
167
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Dispose").WithArguments("Dispose", "S1").
WithLocation
(5, 17),
170
Diagnostic(ErrorCode.ERR_AmbigCall, "S1 s = new S1()").WithArguments("S1.Dispose()", "S1.Dispose()").
WithLocation
(12, 16),
173
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(12, 16)
201
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Dispose").WithArguments("Dispose", "S1").
WithLocation
(5, 17),
204
Diagnostic(ErrorCode.ERR_AmbigCall, "S1 s = new S1()").WithArguments("S1.Dispose()", "S1.Dispose()").
WithLocation
(12, 16),
207
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(12, 16),
210
Diagnostic(ErrorCode.ERR_AmbigCall, "s1b").WithArguments("S1.Dispose()", "S1.Dispose()").
WithLocation
(16, 16),
213
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "s1b").WithArguments("S1").
WithLocation
(16, 16)
266
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Dispose").WithArguments("Dispose", "S1").
WithLocation
(5, 19),
269
Diagnostic(ErrorCode.ERR_AmbigCall, "S1 s = new S1()").WithArguments("S1.Dispose()", "S1.Dispose()").
WithLocation
(12, 16),
272
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(12, 16),
275
Diagnostic(ErrorCode.ERR_AmbigCall, "s1b").WithArguments("S1.Dispose()", "S1.Dispose()").
WithLocation
(16, 16),
278
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "s1b").WithArguments("S1").
WithLocation
(16, 16)
340
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(15, 16),
343
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "s1b").WithArguments("S1").
WithLocation
(19, 16)
375
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(16, 16),
378
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "s1b").WithArguments("S1").
WithLocation
(20, 16)
403
Diagnostic(ErrorCode.ERR_ObjectProhibited, "S1 s = new S1()").WithArguments("S1.Dispose()").
WithLocation
(11, 16),
406
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(11, 16)
443
Diagnostic(ErrorCode.ERR_AmbigCall, "S1 s = new S1()").WithArguments("C2.Dispose(S1)", "C3.Dispose(S1)").
WithLocation
(20, 16),
446
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(20, 16)
571
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(37, 20),
574
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(50, 20),
577
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(63, 20),
580
Diagnostic(ErrorCode.ERR_AmbigCall, "S1 s = new S1()").WithArguments("N1.C2.Dispose(S1)", "N3.C4.Dispose(S1)").
WithLocation
(77, 20),
583
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(77, 20),
586
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(92, 24),
589
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(105, 28)
633
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(22, 16),
636
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "s1b").WithArguments("S1").
WithLocation
(26, 16),
639
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S2 s = new S2()").WithArguments("S2").
WithLocation
(28, 16),
642
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "s2b").WithArguments("S2").
WithLocation
(32, 16)
680
Diagnostic(ErrorCode.ERR_AmbigCall, "S1 s = new S1()").WithArguments("C2.Dispose(S1, int)", "C3.Dispose(S1, int)").
WithLocation
(21, 15),
683
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(21, 15)
714
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(15, 15),
717
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "s1b").WithArguments("S1").
WithLocation
(19, 15)
750
Diagnostic(ErrorCode.WRN_PatternBadSignature, "S1 s = new S1()").WithArguments("S1", "disposable", "S1.Dispose()").
WithLocation
(19, 15),
753
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(19, 15)
783
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(16, 15)
814
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(15, 15),
817
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "s1b").WithArguments("S1").
WithLocation
(19, 15)
846
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(15, 15)
876
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(15, 15),
879
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "S1 s = new S1()").WithArguments("s", "using variable").
WithLocation
(15, 15)
952
Diagnostic(ErrorCode.WRN_PatternBadSignature, "S1 c = new S1()").WithArguments("S1", "disposable", "S1.Dispose()").
WithLocation
(11, 16),
955
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 c = new S1()").WithArguments("S1").
WithLocation
(11, 16),
958
Diagnostic(ErrorCode.WRN_PatternBadSignature, "c1b").WithArguments("S1", "disposable", "S1.Dispose()").
WithLocation
(15, 16),
961
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "c1b").WithArguments("S1").
WithLocation
(15, 16)
988
Diagnostic(ErrorCode.ERR_BadAccess, "S1 c = new S1()").WithArguments("S1.Dispose()").
WithLocation
(11, 16),
991
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 c = new S1()").WithArguments("S1").
WithLocation
(11, 16),
994
Diagnostic(ErrorCode.ERR_BadAccess, "c1b").WithArguments("S1.Dispose()").
WithLocation
(15, 16),
997
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "c1b").WithArguments("S1").
WithLocation
(15, 16)
1046
Diagnostic(ErrorCode.ERR_ObjectProhibited, "S1 c1 = new S1()").WithArguments("S1.Dispose()").
WithLocation
(11, 16),
1049
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 c1 = new S1()").WithArguments("S1").
WithLocation
(11, 16)
1074
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "S1 c = new S1()").WithArguments("S1.Dispose<T>()").
WithLocation
(11, 16),
1077
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 c = new S1()").WithArguments("S1").
WithLocation
(11, 16)
1103
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "C1 c1 = new C1()").WithArguments("C1").
WithLocation
(11, 16)
1133
Diagnostic(ErrorCode.ERR_BadSpecialByRefLocal, "S1").WithArguments("S1").
WithLocation
(16, 22)
1162
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "S1 s = new S1()").WithArguments("pattern-based disposal", "8.0").
WithLocation
(11, 16)
1191
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(11, 16)
1197
Diagnostic(ErrorCode.WRN_PatternBadSignature, "S1 s = new S1()").WithArguments("S1", "disposable", "S1.Dispose()").
WithLocation
(11, 16),
1200
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "S1 s = new S1()").WithArguments("S1").
WithLocation
(11, 16)
1307
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "i").WithArguments("i", "using variable").
WithLocation
(10, 13),
1310
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "i").WithArguments("i", "using variable").
WithLocation
(11, 21),
1313
Diagnostic(ErrorCode.ERR_RefReadonlyLocalCause, "i").WithArguments("i", "using variable").
WithLocation
(12, 21)
1700
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "t0").WithArguments("T0").
WithLocation
(16, 16));
1776
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "v = null").WithArguments("<null>").
WithLocation
(11, 20),
1779
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(11, 30));
1802
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "using").WithArguments("System.IDisposable").
WithLocation
(11, 9),
1805
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(11, 21)
1824
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "v").WithArguments("v").
WithLocation
(6, 24)
Semantics\Utf8StringsLiteralsTests.cs (170)
57
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""").WithArguments("string", "byte[]").
WithLocation
(9, 30),
60
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""").WithArguments("string", "System.Span<byte>").
WithLocation
(10, 34),
63
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""cat""").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(11, 42)
86
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""U8").WithArguments("System.ReadOnlySpan<byte>", "byte[]").
WithLocation
(9, 30),
89
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""U8").WithArguments("System.ReadOnlySpan<byte>", "System.Span<byte>").
WithLocation
(10, 34)
114
Diagnostic(ErrorCode.ERR_NoImplicitConv, "nullConstant").WithArguments("string", "byte[]").
WithLocation
(10, 30),
117
Diagnostic(ErrorCode.ERR_NoImplicitConv, "nullConstant").WithArguments("string", "System.Span<byte>").
WithLocation
(11, 34),
120
Diagnostic(ErrorCode.ERR_NoImplicitConv, "nullConstant").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(12, 42)
145
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nullConstant").WithArguments("object", "byte[]").
WithLocation
(10, 30),
148
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nullConstant").WithArguments("object", "System.Span<byte>").
WithLocation
(11, 34),
151
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nullConstant").WithArguments("object", "System.Span<byte>").
WithLocation
(11, 34),
154
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nullConstant").WithArguments("object", "System.ReadOnlySpan<byte>").
WithLocation
(12, 42),
157
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nullConstant").WithArguments("object", "System.ReadOnlySpan<byte>").
WithLocation
(12, 42)
179
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""").WithArguments("string", "byte[]").
WithLocation
(7, 49),
182
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""").WithArguments("string", "byte[]").
WithLocation
(7, 59)
203
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""").WithArguments("string", "byte[]").
WithLocation
(6, 45),
206
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""").WithArguments("string", "byte[]").
WithLocation
(6, 55)
230
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(byte[])""hello""").WithArguments("string", "byte[]").
WithLocation
(7, 21),
233
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(Span<byte>)""dog""").WithArguments("string", "System.Span<byte>").
WithLocation
(8, 20),
236
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(ReadOnlySpan<byte>)""cat""").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(9, 28)
259
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(byte[])""hello""u8").WithArguments("System.ReadOnlySpan<byte>", "byte[]").
WithLocation
(7, 21),
262
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(Span<byte>)""dog""u8").WithArguments("System.ReadOnlySpan<byte>", "System.Span<byte>").
WithLocation
(8, 20)
287
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(byte[])nullConstant").WithArguments("string", "byte[]").
WithLocation
(8, 21),
290
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(Span<byte>)nullConstant").WithArguments("string", "System.Span<byte>").
WithLocation
(9, 20),
293
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(ReadOnlySpan<byte>)nullConstant").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(10, 28)
318
Diagnostic(ErrorCode.ERR_AmbigUDConv, "(Span<byte>)nullConstant").WithArguments("System.Span<byte>.implicit operator System.Span<byte>(System.ArraySegment<byte>)", "System.Span<byte>.implicit operator System.Span<byte>(byte[]?)", "object", "System.Span<byte>").
WithLocation
(9, 20),
321
Diagnostic(ErrorCode.ERR_AmbigUDConv, "(ReadOnlySpan<byte>)nullConstant").WithArguments("System.ReadOnlySpan<byte>.implicit operator System.ReadOnlySpan<byte>(System.ArraySegment<byte>)", "System.ReadOnlySpan<byte>.implicit operator System.ReadOnlySpan<byte>(byte[]?)", "object", "System.ReadOnlySpan<byte>").
WithLocation
(10, 28)
342
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"""hello""").WithArguments("string", "byte[]").
WithLocation
(6, 54),
345
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"""dog""").WithArguments("string", "byte[]").
WithLocation
(6, 64)
366
Diagnostic(ErrorCode.ERR_CannotBeConvertedToUtf8, @"""hello \uD801\uD802""u8").WithArguments(@"Unable to translate Unicode character \\uD801 at index 6 to specified code page.").
WithLocation
(6, 13)
388
Diagnostic(ErrorCode.ERR_CannotBeConvertedToUtf8, @"""\uD83D""u8").WithArguments(@"Unable to translate Unicode character \\uD83D at index 0 to specified code page.").
WithLocation
(7, 13),
391
Diagnostic(ErrorCode.ERR_CannotBeConvertedToUtf8, @"""\uDE00""u8").WithArguments(@"Unable to translate Unicode character \\uDE00 at index 0 to specified code page.").
WithLocation
(7, 26)
490
Diagnostic(ErrorCode.ERR_NoImplicitConv, "value").WithArguments("string", "byte[]").
WithLocation
(9, 24),
493
Diagnostic(ErrorCode.ERR_NoImplicitConv, "value").WithArguments("string", "System.Span<byte>").
WithLocation
(10, 27),
496
Diagnostic(ErrorCode.ERR_NoImplicitConv, "value").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(11, 43)
521
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(byte[])value").WithArguments("string", "byte[]").
WithLocation
(9, 21),
524
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(Span<byte>)value").WithArguments("string", "System.Span<byte>").
WithLocation
(10, 20),
527
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(ReadOnlySpan<byte>)value").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(11, 28)
564
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "byte[*,*]").
WithLocation
(10, 26),
567
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "System.Span<byte[]>").
WithLocation
(11, 30),
570
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "System.ReadOnlySpan<byte[]>").
WithLocation
(12, 46),
573
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "int[]").
WithLocation
(14, 24),
576
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "System.Span<int>").
WithLocation
(15, 27),
579
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "System.ReadOnlySpan<int>").
WithLocation
(16, 43),
582
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "char[]").
WithLocation
(18, 25),
585
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "System.Span<char>").
WithLocation
(19, 28),
588
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "string[]").
WithLocation
(21, 27),
591
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "System.Span<string>").
WithLocation
(22, 30),
594
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "System.ReadOnlySpan<string>").
WithLocation
(23, 46)
643
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""s""").WithArguments("string", "byte[*]").
WithLocation
(8, 18)
676
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""").WithArguments("string", "System.Span<byte>").
WithLocation
(8, 27)
710
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""cat""").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(8, 43)
743
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""").WithArguments("string", "System.Span<byte>").
WithLocation
(8, 27)
777
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""cat""").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(8, 43)
824
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""").WithArguments("string", "C1").
WithLocation
(7, 16),
827
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""").WithArguments("string", "C2").
WithLocation
(8, 16),
830
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""cat""").WithArguments("string", "C3").
WithLocation
(9, 16)
876
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""").WithArguments("string", "C1").
WithLocation
(8, 29),
879
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""").WithArguments("string", "C2").
WithLocation
(8, 39),
882
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""cat""").WithArguments("string", "C3").
WithLocation
(8, 46)
927
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""").WithArguments("string", "C1").
WithLocation
(7, 33),
930
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""").WithArguments("string", "C2").
WithLocation
(7, 43),
933
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""cat""").WithArguments("string", "C3").
WithLocation
(7, 50)
985
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C1)""hello""").WithArguments("string", "C1").
WithLocation
(8, 17),
988
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C2)""dog""").WithArguments("string", "C2").
WithLocation
(9, 17),
991
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C3)""cat""").WithArguments("string", "C3").
WithLocation
(10, 17)
1041
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"""hello""").WithArguments("string", "C1").
WithLocation
(8, 30),
1044
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"""dog""").WithArguments("string", "C2").
WithLocation
(8, 40),
1047
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"""cat""").WithArguments("string", "C3").
WithLocation
(8, 47)
1099
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C1)""hello""").WithArguments("string", "C1").
WithLocation
(8, 17),
1102
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C2)""dog""").WithArguments("string", "C2").
WithLocation
(9, 17),
1105
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C3)""cat""").WithArguments("string", "C3").
WithLocation
(10, 17)
1155
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"""hello""").WithArguments("string", "C1").
WithLocation
(8, 30),
1158
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"""dog""").WithArguments("string", "C2").
WithLocation
(8, 40),
1161
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"""cat""").WithArguments("string", "C3").
WithLocation
(8, 47)
1208
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""").WithArguments("string", "C1").
WithLocation
(7, 16),
1211
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""").WithArguments("string", "C2").
WithLocation
(8, 16),
1214
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""cat""").WithArguments("string", "C3").
WithLocation
(9, 16)
1260
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""").WithArguments("string", "C1").
WithLocation
(8, 29),
1263
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""").WithArguments("string", "C2").
WithLocation
(8, 39),
1266
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""cat""").WithArguments("string", "C3").
WithLocation
(8, 46)
1311
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""").WithArguments("string", "C1").
WithLocation
(7, 33),
1314
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""").WithArguments("string", "C2").
WithLocation
(7, 43),
1317
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""cat""").WithArguments("string", "C3").
WithLocation
(7, 50)
1370
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C1)""hello""").WithArguments("string", "C1").
WithLocation
(8, 40),
1373
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C2)""dog""").WithArguments("string", "C2").
WithLocation
(9, 40),
1376
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C3)""cat""").WithArguments("string", "C3").
WithLocation
(10, 40)
1400
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, @"""hello""u8").WithArguments("ReadOnlySpan").
WithLocation
(8, 44)
1424
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, @"""h""u8 + ""ello""u8").WithArguments("ReadOnlySpan").
WithLocation
(8, 45),
1427
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, @"""h""u8").WithArguments("ReadOnlySpan").
WithLocation
(8, 45),
1430
Diagnostic(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, @"""ello""u8").WithArguments("ReadOnlySpan").
WithLocation
(8, 53)
1479
Diagnostic(ErrorCode.ERR_BadArgType, @"""s""u8").WithArguments("1", "System.ReadOnlySpan<byte>", "byte[]").
WithLocation
(8, 35)
1675
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, @"""cat""" + suffix).WithArguments("UTF-8 string literals", "11.0").
WithLocation
(15, 42)
1728
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, @"@""cat""" + suffix).WithArguments("UTF-8 string literals", "11.0").
WithLocation
(15, 42)
1781
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, @"""""""cat""""""" + suffix).WithArguments("raw string literals", "11.0").
WithLocation
(15, 42),
1784
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, @"""""""cat""""""" + suffix).WithArguments("UTF-8 string literals", "11.0").
WithLocation
(15, 42)
1845
""""""" + suffix).WithArguments("raw string literals", "11.0").
WithLocation
(19, 42),
1850
""""""" + suffix).WithArguments("UTF-8 string literals", "11.0").
WithLocation
(19, 42)
1920
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"""hello""u8").WithArguments("System.Byte").
WithLocation
(7, 13)
1925
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"""hello""u8").WithArguments("System.Byte").
WithLocation
(7, 13)
1948
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"""hello""u8").WithArguments("System.Int32").
WithLocation
(7, 13),
1951
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"""hello""u8").WithArguments("System.Int32").
WithLocation
(7, 13),
1954
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"""hello""u8").WithArguments("System.Int32").
WithLocation
(7, 13)
1976
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"""hello""u8").WithArguments("System.ReadOnlySpan`1").
WithLocation
(7, 13)
1981
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, @"""hello""u8").WithArguments("System.ReadOnlySpan`1").
WithLocation
(7, 13)
2081
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""cat""u8").WithArguments("System.ReadOnlySpan`1", ".ctor").
WithLocation
(11, 42)
2238
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""u8").WithArguments("System.ReadOnlySpan<byte>", "C2").
WithLocation
(7, 16),
2241
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""cat""u8").WithArguments("System.ReadOnlySpan<byte>", "C3").
WithLocation
(8, 16)
2279
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C2)""dog""u8").WithArguments("System.ReadOnlySpan<byte>", "C2").
WithLocation
(7, 17),
2282
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C3)""cat""u8").WithArguments("System.ReadOnlySpan<byte>", "C3").
WithLocation
(8, 17)
2329
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""hello""u8").WithArguments("System.ReadOnlySpan<byte>", "C1").
WithLocation
(7, 16),
2332
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""dog""u8").WithArguments("System.ReadOnlySpan<byte>", "C2").
WithLocation
(8, 16),
2335
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, @"""cat""u8").WithArguments("System.ReadOnlySpan<byte>", "C3").
WithLocation
(9, 16)
2402
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C2)""dog""u8").WithArguments("System.ReadOnlySpan<byte>", "C2").
WithLocation
(7, 17),
2405
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(C3)""cat""u8").WithArguments("System.ReadOnlySpan<byte>", "C3").
WithLocation
(8, 17)
2437
Diagnostic(ErrorCode.ERR_BadTypeArgument, "PrintType").WithArguments("System.ReadOnlySpan<byte>").
WithLocation
(6, 9)
2486
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nullValue").WithArguments("object", "byte[]").
WithLocation
(9, 24),
2489
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nullValue").WithArguments("object", "System.Span<byte>").
WithLocation
(10, 27),
2492
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "nullValue").WithArguments("object", "System.ReadOnlySpan<byte>").
WithLocation
(11, 43)
2517
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(9, 13),
2520
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x3").WithArguments("x3").
WithLocation
(10, 28)
2544
Diagnostic(ErrorCode.ERR_FieldAutoPropCantBeByRefLike, "ReadOnlySpan<byte>").WithArguments("System.ReadOnlySpan<byte>").
WithLocation
(5, 11),
2547
Diagnostic(ErrorCode.ERR_NotConstantExpression, @"""07""U8").WithArguments("C.x").
WithLocation
(5, 34),
2550
Diagnostic(ErrorCode.ERR_BadConstType, "ReadOnlySpan<byte>").WithArguments("System.ReadOnlySpan<byte>").
WithLocation
(9, 15)
2577
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @"""05""u8").WithArguments("x").
WithLocation
(11, 32),
2580
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @"""06""u8").WithArguments("x").
WithLocation
(12, 36),
2583
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @"""07""U8").WithArguments("x").
WithLocation
(13, 44)
2610
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(byte[])""05""u8").WithArguments("System.ReadOnlySpan<byte>", "byte[]").
WithLocation
(11, 32),
2613
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(Span<byte>)""06""u8").WithArguments("System.ReadOnlySpan<byte>", "System.Span<byte>").
WithLocation
(12, 36),
2616
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, @"(ReadOnlySpan<byte>)""07""U8").WithArguments("x").
WithLocation
(13, 44)
2643
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "System.Runtime.CompilerServices.CallerMemberName").WithArguments("string", "byte[]").
WithLocation
(5, 17),
2646
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "System.Runtime.CompilerServices.CallerMemberName").WithArguments("string", "System.Span<byte>").
WithLocation
(8, 17),
2649
Diagnostic(ErrorCode.ERR_NoConversionForCallerMemberNameParam, "System.Runtime.CompilerServices.CallerMemberName").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(11, 17)
2691
Diagnostic(ErrorCode.ERR_BadArgType, @"""3""U8").WithArguments("1", "System.ReadOnlySpan<byte>", "byte[]").
WithLocation
(13, 11),
2694
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(byte[])""3""U8").WithArguments("System.ReadOnlySpan<byte>", "byte[]").
WithLocation
(22, 11)
2736
Diagnostic(ErrorCode.ERR_BadArgType, @"""3""U8").WithArguments("1", "System.ReadOnlySpan<byte>", "System.Span<byte>").
WithLocation
(13, 11),
2739
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "Utf8").WithArguments("x", "System.Span<byte>").
WithLocation
(22, 6),
2742
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(Span<byte>)""3""U8").WithArguments("System.ReadOnlySpan<byte>", "System.Span<byte>").
WithLocation
(22, 11)
2784
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "Utf8").WithArguments("x", "System.ReadOnlySpan<byte>").
WithLocation
(13, 6),
2787
Diagnostic(ErrorCode.ERR_BadAttributeParamType, "Utf8").WithArguments("x", "System.ReadOnlySpan<byte>").
WithLocation
(22, 6)
2814
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "byte[]").
WithLocation
(7, 20),
2817
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "System.Span<byte>").
WithLocation
(8, 24),
2820
Diagnostic(ErrorCode.ERR_NoImplicitConv, "s").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(9, 32),
2823
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(byte[])s").WithArguments("string", "byte[]").
WithLocation
(10, 13),
2826
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(Span<byte>)s").WithArguments("string", "System.Span<byte>").
WithLocation
(11, 13),
2829
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(ReadOnlySpan<byte>)s").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(12, 13)
2856
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""1{s}""").WithArguments("string", "byte[]").
WithLocation
(7, 20),
2859
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""2{s}""").WithArguments("string", "System.Span<byte>").
WithLocation
(8, 24),
2862
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"$""3{s}""").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(9, 32),
2865
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(byte[])$""4{s}""").WithArguments("string", "byte[]").
WithLocation
(10, 13),
2868
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(Span<byte>)$""5{s}""").WithArguments("string", "System.Span<byte>").
WithLocation
(11, 13),
2871
Diagnostic(ErrorCode.ERR_NoExplicitConv, @"(ReadOnlySpan<byte>)$""6{s}""").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(12, 13)
2894
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""1""").WithArguments("string", "byte[]").
WithLocation
(7, 18),
2897
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""2""u8").WithArguments("System.ReadOnlySpan<byte>", "byte[]").
WithLocation
(8, 18)
2920
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""1""").WithArguments("string", "System.Span<byte>").
WithLocation
(7, 18),
2923
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""2""u8").WithArguments("System.ReadOnlySpan<byte>", "System.Span<byte>").
WithLocation
(8, 18)
2946
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""1""").WithArguments("string", "System.ReadOnlySpan<byte>").
WithLocation
(7, 18),
2949
Diagnostic(ErrorCode.ERR_ConstantExpected, @"""2""u8").
WithLocation
(8, 18)
3781
Diagnostic(ErrorCode.ERR_EscapeCall, @"Test3(""cat""u8)").WithArguments("C.Test3(in System.ReadOnlySpan<byte>)", "x").
WithLocation
(7, 20),
3784
Diagnostic(ErrorCode.ERR_RefReturnLvalueExpected, @"""cat""u8").
WithLocation
(7, 26)
4141
Diagnostic(ErrorCode.ERR_BadBinaryReadOnlySpanConcatenation, expression).WithArguments("+", "System.ReadOnlySpan<byte>", "System.ReadOnlySpan<byte>").
WithLocation
(7, 13)
4172
Diagnostic(ErrorCode.ERR_BadBinaryOps, @"x += " + expression).WithArguments("+=", "System.ReadOnlySpan<byte>", "System.ReadOnlySpan<byte>").
WithLocation
(10, 9),
4175
Diagnostic(ErrorCode.ERR_BadBinaryOps, @"y += " + expression).WithArguments("+=", "System.ReadOnlySpan<byte>", "System.ReadOnlySpan<byte>").
WithLocation
(11, 9),
4178
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, @"""c""u8").
WithLocation
(12, 9),
4181
Diagnostic(ErrorCode.ERR_BadUnaryOp, "x++").WithArguments("++", "System.ReadOnlySpan<byte>").
WithLocation
(13, 9),
4184
Diagnostic(ErrorCode.ERR_BadUnaryOp, "y++").WithArguments("++", "System.ReadOnlySpan<byte>").
WithLocation
(14, 9),
4187
Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, @"""d""u8").
WithLocation
(15, 9)
4211
Diagnostic(ErrorCode.ERR_BadBinaryOps, expression).WithArguments("-", "System.ReadOnlySpan<byte>", "System.ReadOnlySpan<byte>").
WithLocation
(7, 13)
4236
Diagnostic(ErrorCode.ERR_BadBinaryOps, expression).WithArguments("+", "C", "System.ReadOnlySpan<byte>").
WithLocation
(7, 13)
4261
Diagnostic(ErrorCode.ERR_BadBinaryOps, expression).WithArguments("+", "System.ReadOnlySpan<byte>", "C").
WithLocation
(7, 13)
Semantics\VarianceTests.cs (28)
447
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "X").WithArguments("I1<T, U, V>.M<X>()", "T", "covariant", "contravariantly").
WithLocation
(6, 12),
450
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "X").WithArguments("I2<T, U, V>.M<X>()", "T", "covariant", "contravariantly").
WithLocation
(10, 12),
453
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "X").WithArguments("I3<T, U, V>.M<X>()", "U", "contravariant", "covariantly").
WithLocation
(14, 12),
456
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "X").WithArguments("I4<T, U, V>.M1<X>()", "T", "covariant", "invariantly").
WithLocation
(18, 13),
459
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "X").WithArguments("I4<T, U, V>.M2<X>()", "U", "contravariant", "invariantly").
WithLocation
(19, 13));
503
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "C<T>").WithArguments("I1<T, U>.M(C<U>)", "T", "covariant", "invariantly").
WithLocation
(5, 5),
506
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "C<T>").WithArguments("I2<T, U>.M(C<T>)", "T", "covariant", "invariantly").
WithLocation
(9, 12),
509
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "S<T>").WithArguments("I3<T, U>.M(S<U>)", "T", "covariant", "invariantly").
WithLocation
(13, 5),
512
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "S<T>").WithArguments("I4<T, U>.M(S<T>)", "T", "covariant", "invariantly").
WithLocation
(17, 12),
515
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "C<T>").WithArguments("I5<T, U>.M(C<U>)", "T", "contravariant", "invariantly").
WithLocation
(21, 5),
518
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "C<T>").WithArguments("I6<T, U>.M(C<T>)", "T", "contravariant", "invariantly").
WithLocation
(25, 12),
521
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "S<T>").WithArguments("I7<T, U>.M(S<U>)", "T", "contravariant", "invariantly").
WithLocation
(29, 5),
524
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "S<T>").WithArguments("I8<T, U>.M(S<T>)", "T", "contravariant", "invariantly").
WithLocation
(33, 12));
555
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "C<T>.E").WithArguments("I1<T, U>.M(C<U>.E)", "T", "covariant", "invariantly").
WithLocation
(7, 5),
558
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "C<T>.E").WithArguments("I2<T, U>.M(C<T>.E)", "T", "covariant", "invariantly").
WithLocation
(11, 14),
561
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "C<T>.E").WithArguments("I3<T, U>.M(C<U>.E)", "T", "contravariant", "invariantly").
WithLocation
(15, 5),
564
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "C<T>.E").WithArguments("I4<T, U>.M(C<T>.E)", "T", "contravariant", "invariantly").
WithLocation
(19, 14));
579
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T").WithArguments("IA<IB<T>>", "T", "contravariant", "covariantly").
WithLocation
(3, 17));
611
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "C<U>").WithArguments("I<T, U>.M(C<T>)", "U", "contravariant", "invariantly").
WithLocation
(7, 5),
614
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "C<T>").WithArguments("I<T, U>.M(C<T>)", "T", "covariant", "invariantly").
WithLocation
(7, 12),
617
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "IIn<T>[]").WithArguments("I<T, U>.P", "T", "covariant", "contravariantly").
WithLocation
(8, 5),
620
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "U").WithArguments("I<T, U>.this[object]", "U", "contravariant", "covariantly").
WithLocation
(9, 5),
623
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "E").WithArguments("I<T, U>.E", "U", "contravariant", "covariantly").
WithLocation
(10, 16),
626
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "X").WithArguments("I<T, U>.M<X>()", "U", "contravariant", "invariantly").
WithLocation
(11, 12),
629
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "X").WithArguments("I<T, U>.M<X>()", "T", "covariant", "contravariantly").
WithLocation
(11, 12),
632
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T").WithArguments("I<T, T>", "T", "covariant", "contravariantly").
WithLocation
(14, 17));
645
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T").WithArguments("ITest<T>.M(in T)", "T", "contravariant", "invariantly").
WithLocation
(4, 15));
658
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "ref readonly T").WithArguments("ITest<T>.M()", "T", "contravariant", "invariantly").
WithLocation
(4, 5));
Semantics\WarningVersionTests.cs (24)
43
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "s == null").WithArguments("false", "S", "S?").
WithLocation
(6, 13),
46
Diagnostic(ErrorCode.WRN_NubExprIsConstBool2, "s != null").WithArguments("true", "S", "S?").
WithLocation
(7, 13)
73
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "o is SC").WithArguments("SC").
WithLocation
(6, 13),
76
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "o as SC").WithArguments("SC").
WithLocation
(7, 17)
112
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "from x in src").WithArguments("from").
WithLocation
(15, 26),
115
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "+").WithArguments("+").
WithLocation
(20, 24)
172
Diagnostic(ErrorCode.WRN_UnassignedThisAutoPropertyUnsupportedVersion, "Program").WithArguments("Program.Property", "11.0").
WithLocation
(4, 12));
196
Diagnostic(ErrorCode.WRN_UnassignedThisAutoPropertySupportedVersion, "Program").WithArguments("Program.Property").
WithLocation
(4, 12));
250
Diagnostic(ErrorCode.WRN_UnassignedThisUnsupportedVersion, "Program").WithArguments("Program.Field", "11.0").
WithLocation
(4, 12));
275
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "Program").WithArguments("Program.Field").
WithLocation
(4, 12));
336
Diagnostic(ErrorCode.WRN_UnassignedThisUnsupportedVersion, "Program").WithArguments("Program.Field", "11.0").
WithLocation
(4, 12),
339
Diagnostic(ErrorCode.WRN_UseDefViolation, "s").WithArguments("s").
WithLocation
(7, 9));
352
Diagnostic(ErrorCode.WRN_UseDefViolation, "s").WithArguments("s").
WithLocation
(7, 9));
366
Diagnostic(ErrorCode.WRN_UnassignedThisSupportedVersion, "Program").WithArguments("Program.Field").
WithLocation
(4, 12),
369
Diagnostic(ErrorCode.WRN_UseDefViolation, "s").WithArguments("s").
WithLocation
(7, 9));
397
Diagnostic(ErrorCode.WRN_ParamUnassigned, "M").WithArguments("param").
WithLocation
(3, 10)
460
Diagnostic(ErrorCode.WRN_UseDefViolationPropertyUnsupportedVersion, "Property").WithArguments("Property", "11.0").
WithLocation
(6, 21));
484
Diagnostic(ErrorCode.WRN_UseDefViolationPropertySupportedVersion, "Property").WithArguments("Property").
WithLocation
(6, 21));
547
Diagnostic(ErrorCode.WRN_UseDefViolationFieldUnsupportedVersion, "Field").WithArguments("Field", "11.0").
WithLocation
(6, 21));
571
Diagnostic(ErrorCode.WRN_UseDefViolationFieldSupportedVersion, "Field").WithArguments("Field").
WithLocation
(6, 21));
634
Diagnostic(ErrorCode.WRN_UseDefViolationThisUnsupportedVersion, "this").WithArguments("11.0").
WithLocation
(6, 22));
658
Diagnostic(ErrorCode.WRN_UseDefViolationThisSupportedVersion, "this").
WithLocation
(6, 22));
688
Diagnostic(ErrorCode.WRN_UseDefViolationOut, "r1").WithArguments("r1").
WithLocation
(5, 18)
718
Diagnostic(ErrorCode.WRN_UseDefViolation, "r1").WithArguments("r1").
WithLocation
(6, 18)
SourceGeneration\GeneratorDriverTests.cs (35)
253
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "D").WithArguments("D").
WithLocation
(5, 12)
289
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringInitialization).WithArguments("CallbackGenerator", "InvalidOperationException", "init error").
WithLocation
(1, 1)
336
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringGeneration).WithArguments("CallbackGenerator", "InvalidOperationException", "generate error").
WithLocation
(1, 1)
365
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringGeneration).WithArguments("CallbackGenerator", "InvalidOperationException", "generate error").
WithLocation
(1, 1)
384
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "D").WithArguments("D").
WithLocation
(5, 12)
399
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "D").WithArguments("D").
WithLocation
(5, 12)
403
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringGeneration).WithArguments("CallbackGenerator", "InvalidOperationException", "generate error").
WithLocation
(1, 1)
455
Diagnostic("TG001").
WithLocation
(1, 1)
524
Diagnostic("CS8785").WithArguments("PipelineCallbackGenerator", "ArgumentException", "The hintName 'test.cs' of the added source file must be unique within a generator. (Parameter 'hintName')").
WithLocation
(1, 1)
779
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringGeneration).WithArguments("CallbackGenerator", "ArgumentException", "The SourceText with hintName 'a.cs' must have an explicit encoding set. (Parameter 'source')").
WithLocation
(1, 1)
1010
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringInitialization).WithArguments("CallbackGenerator", "InvalidOperationException", "post init error").
WithLocation
(1, 1)
1048
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringInitialization).WithArguments("CallbackGenerator", "InvalidOperationException", "init error").
WithLocation
(1, 1)
1172
Diagnostic("GEN001").
WithLocation
(1, 1),
1173
Diagnostic("GEN002").
WithLocation
(1, 1));
1177
Diagnostic("GEN002").
WithLocation
(1, 1));
1180
Diagnostic("GEN001").
WithLocation
(1, 1));
1186
Diagnostic("GEN001").
WithLocation
(1, 1));
1189
Diagnostic("GEN001").
WithLocation
(1, 1),
1190
Diagnostic("GEN002").
WithLocation
(1, 1));
1194
Diagnostic("GEN001").
WithLocation
(1, 1).WithWarningAsError(true),
1195
Diagnostic("GEN002").
WithLocation
(1, 1));
1198
Diagnostic("GEN001").
WithLocation
(1, 1),
1199
Diagnostic("GEN002").
WithLocation
(1, 1).WithWarningAsError(true));
1220
Diagnostic("GEN001", "com").
WithLocation
(1, 3));
1227
Diagnostic("GEN001", "com", isSuppressed: true).
WithLocation
(2, 3));
1234
Diagnostic("GEN001").
WithLocation
(1, 1));
1241
Diagnostic("GEN001", "com", isSuppressed: true).
WithLocation
(2, 3));
1250
Diagnostic("GEN001", "com", isSuppressed: true).
WithLocation
(2, 3),
1251
Diagnostic("GEN001", "ano").
WithLocation
(4, 3));
1296
Diagnostic("GEN001", "com").
WithLocation
(3, 7));
1307
Diagnostic("GEN001", "com", isSuppressed: true).
WithLocation
(4, 7));
1318
Diagnostic("GEN001").
WithLocation
(1, 1));
1330
Diagnostic("GEN001", "com").
WithLocation
(4, 7),
1331
Diagnostic("GEN001", "ano").
WithLocation
(5, 7));
3268
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "(int, bool)").WithArguments("tuples", "7.0").
WithLocation
(3, 12)
SourceGeneration\SyntaxAwareGeneratorTests.cs (9)
393
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringGeneration).WithArguments("CallbackGenerator", "Exception", "Test Exception").
WithLocation
(1, 1)
437
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringGeneration).WithArguments("CallbackGenerator", "Exception", "Test Exception").
WithLocation
(1, 1)
535
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringGeneration).WithArguments("CallbackGenerator", "Exception", "Test Exception").
WithLocation
(1, 1)
574
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringInitialization).WithArguments("CallbackGenerator", "Exception", "test exception").
WithLocation
(1, 1)
648
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringInitialization).WithArguments("CallbackGenerator", "Exception", "test exception").
WithLocation
(1, 1)
787
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "D").WithArguments("D").
WithLocation
(2, 11)
1878
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringGeneration).WithArguments("PipelineCallbackGenerator", "Exception", "Test Exception").
WithLocation
(1, 1)
1921
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringGeneration).WithArguments("PipelineCallbackGenerator", "Exception", "Test Exception").
WithLocation
(1, 1)
1972
Diagnostic("CS" + (int)ErrorCode.WRN_GeneratorFailedDuringGeneration).WithArguments("PipelineCallbackGenerator", "Exception", "Test Exception").
WithLocation
(1, 1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8707)
BadSymbolReference.cs (92)
279
Diagnostic(ErrorCode.ERR_NoTypeDef, "C5").WithArguments("CL2_I1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(140, 11),
282
Diagnostic(ErrorCode.ERR_NoTypeDef, "CL3_C1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(125, 16),
285
Diagnostic(ErrorCode.ERR_CantDeriveFromSealedType, "CL3_S1").WithArguments("Module1.C4", "CL3_S1").
WithLocation
(133, 16),
288
Diagnostic(ErrorCode.ERR_NoTypeDef, "I2").WithArguments("CL2_I1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(137, 15),
291
Diagnostic(ErrorCode.ERR_NoTypeDef, "C5").WithArguments("CL2_I1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(140, 11),
294
Diagnostic(ErrorCode.ERR_NoTypeDef, "I2").WithArguments("CL2_I1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(137, 15),
297
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(9, 16),
300
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x2").WithArguments("x2").
WithLocation
(15, 16),
303
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x3").WithArguments("x3").
WithLocation
(21, 31),
306
Diagnostic(ErrorCode.ERR_NoTypeDef, "Test1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(27, 16),
309
Diagnostic(ErrorCode.ERR_NoTypeDef, "Test1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(32, 24),
312
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x4").WithArguments("x4").
WithLocation
(53, 18),
315
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(65, 20),
318
Diagnostic(ErrorCode.ERR_NoTypeDef, "x").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(88, 22),
321
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x6").WithArguments("x6").
WithLocation
(145, 17),
324
Diagnostic(ErrorCode.ERR_NoTypeDef, "CL3_C2.Test1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(151, 9),
327
Diagnostic(ErrorCode.ERR_NoTypeDef, "CL3_C2.Test1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(156, 9),
330
Diagnostic(ErrorCode.ERR_ObjectRequired, "CL3_C2.Test1").WithArguments("CL3_C2.Test1(int)").
WithLocation
(156, 9),
333
Diagnostic(ErrorCode.ERR_NoTypeDef, "CL3_C2.Test3").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(161, 9),
336
Diagnostic(ErrorCode.ERR_BadArgCount, "Test4").WithArguments("Test4", "0").
WithLocation
(166, 16),
339
Diagnostic(ErrorCode.ERR_NoTypeDef, "CL3_C2.Test4").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(171, 9),
342
Diagnostic(ErrorCode.ERR_AmbigCall, "Test4").WithArguments("CL3_C2.Test4(CL3_C1)", "CL3_C2.Test4(CL3_C3)").
WithLocation
(171, 16),
345
Diagnostic(ErrorCode.ERR_NoTypeDef, "y.Test1").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(177, 9),
348
Diagnostic(ErrorCode.ERR_NoTypeDef, "Test2").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(195, 23),
351
Diagnostic(ErrorCode.ERR_NoTypeDef, "y.w(null)").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(207, 9),
354
Diagnostic(ErrorCode.ERR_NoTypeDef, "(uuu) => System.Console.WriteLine()").WithArguments("CL2_C1", "CL2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(212, 20),
357
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "f1").WithArguments("Module1.f1", "null").
WithLocation
(5, 20)
475
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C5").WithArguments("CL2_I1").
WithLocation
(140, 11),
478
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL3_C1").WithArguments("CL2_C1").
WithLocation
(125, 16),
481
Diagnostic(ErrorCode.ERR_CantDeriveFromSealedType, "CL3_S1").WithArguments("Module1.C4", "CL3_S1").
WithLocation
(133, 16),
484
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I2").WithArguments("CL2_I1").
WithLocation
(137, 15),
487
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C5").WithArguments("CL2_I1").
WithLocation
(140, 11),
490
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I2").WithArguments("CL2_I1").
WithLocation
(137, 15),
493
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(9, 16),
496
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x2").WithArguments("x2").
WithLocation
(15, 16),
499
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x3").WithArguments("x3").
WithLocation
(21, 31),
502
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Test1").WithArguments("CL2_C1").
WithLocation
(27, 16),
505
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Test1").WithArguments("CL2_C1").
WithLocation
(32, 24),
508
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x4").WithArguments("x4").
WithLocation
(53, 18),
511
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(65, 20),
514
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "x").WithArguments("CL2_C1").
WithLocation
(88, 22),
517
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x6").WithArguments("x6").
WithLocation
(145, 17),
520
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL3_C2.Test1").WithArguments("CL2_C1").
WithLocation
(151, 9),
523
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL3_C2.Test1").WithArguments("CL2_C1").
WithLocation
(156, 9),
526
Diagnostic(ErrorCode.ERR_ObjectRequired, "CL3_C2.Test1").WithArguments("CL3_C2.Test1(int)").
WithLocation
(156, 9),
529
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL3_C2.Test3").WithArguments("CL2_C1").
WithLocation
(161, 9),
532
Diagnostic(ErrorCode.ERR_BadArgCount, "Test4").WithArguments("Test4", "0").
WithLocation
(166, 16),
535
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL3_C2.Test4").WithArguments("CL2_C1").
WithLocation
(171, 9),
538
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL3_C2.Test4").WithArguments("CL2_I1").
WithLocation
(171, 9),
541
Diagnostic(ErrorCode.ERR_AmbigCall, "Test4").WithArguments("CL3_C2.Test4(CL3_C1)", "CL3_C2.Test4(CL3_C3)").
WithLocation
(171, 16),
544
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "y.Test1").WithArguments("CL2_C1").
WithLocation
(177, 9),
547
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Test2").WithArguments("CL2_C1").
WithLocation
(195, 23),
550
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "y.w(null)").WithArguments("CL2_C1").
WithLocation
(207, 9),
553
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "(uuu) => System.Console.WriteLine()").WithArguments("CL2_C1").
WithLocation
(212, 20),
556
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "f1").WithArguments("Module1.f1", "null").
WithLocation
(5, 20)
606
Diagnostic(ErrorCode.ERR_CantDeriveFromSealedType, "CL3_S1").WithArguments("Module1.C4", "CL3_S1").
WithLocation
(133, 16),
609
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(9, 16),
612
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x2").WithArguments("x2").
WithLocation
(15, 16),
615
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x3").WithArguments("x3").
WithLocation
(21, 31),
618
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x4").WithArguments("x4").
WithLocation
(53, 18),
621
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(65, 20),
624
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x6").WithArguments("x6").
WithLocation
(145, 17),
627
Diagnostic(ErrorCode.ERR_ObjectRequired, "CL3_C2.Test1").WithArguments("CL3_C2.Test1(int)").
WithLocation
(156, 9),
630
Diagnostic(ErrorCode.ERR_BadArgCount, "Test4").WithArguments("Test4", "0").
WithLocation
(166, 16),
633
Diagnostic(ErrorCode.ERR_AmbigCall, "Test4").WithArguments("CL3_C2.Test4(CL3_C1)", "CL3_C2.Test4(CL3_C3)").
WithLocation
(171, 16),
636
Diagnostic(ErrorCode.ERR_ObjectProhibited, "y.Test1").WithArguments("CL3_C2.Test1()").
WithLocation
(177, 9),
639
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "Test2").WithArguments("Test2", "CL3_D1").
WithLocation
(195, 23),
642
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "f1").WithArguments("Module1.f1", "null").
WithLocation
(5, 20)
654
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL2_C1").WithArguments("CL2_C1").
WithLocation
(232, 23),
657
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL2_I1").WithArguments("CL2_I1").
WithLocation
(306, 23),
660
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL2_I2").WithArguments("CL2_I2").
WithLocation
(306, 31),
663
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL2_I1").WithArguments("CL2_I1").
WithLocation
(319, 23),
666
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL2_C1").WithArguments("CL2_C1").
WithLocation
(239, 19),
669
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL2_I1").WithArguments("CL2_I1").
WithLocation
(322, 27),
672
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL2_C1").WithArguments("CL2_C1").
WithLocation
(317, 29),
675
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL2_C1").WithArguments("CL2_C1").
WithLocation
(244, 12),
678
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL2_C1").WithArguments("CL2_C1").
WithLocation
(267, 19),
681
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL2_C1").WithArguments("CL2_C1").
WithLocation
(252, 19),
684
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "CL2_C1").WithArguments("CL2_C1").
WithLocation
(257, 12),
687
Diagnostic(ErrorCode.ERR_CantDeriveFromSealedType, "CL3_S1").WithArguments("Module1.C4", "CL3_S1").
WithLocation
(133, 16),
690
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x1").WithArguments("x1").
WithLocation
(9, 16),
693
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x2").WithArguments("x2").
WithLocation
(15, 16),
696
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x3").WithArguments("x3").
WithLocation
(21, 31),
699
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x4").WithArguments("x4").
WithLocation
(53, 18),
702
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x5").WithArguments("x5").
WithLocation
(65, 20),
705
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x6").WithArguments("x6").
WithLocation
(145, 17),
708
Diagnostic(ErrorCode.ERR_ObjectRequired, "CL3_C2.Test1").WithArguments("CL3_C2.Test1(int)").
WithLocation
(156, 9),
711
Diagnostic(ErrorCode.ERR_BadArgCount, "Test4").WithArguments("Test4", "0").
WithLocation
(166, 16),
714
Diagnostic(ErrorCode.ERR_AmbigCall, "Test4").WithArguments("CL3_C2.Test4(CL3_C1)", "CL3_C2.Test4(CL3_C3)").
WithLocation
(171, 16),
717
Diagnostic(ErrorCode.ERR_ObjectProhibited, "y.Test1").WithArguments("CL3_C2.Test1()").
WithLocation
(177, 9),
720
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "Test2").WithArguments("Test2", "CL3_D1").
WithLocation
(195, 23),
723
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "f1").WithArguments("Module1.f1", "null").
WithLocation
(5, 20)
Compilation\CompilationAPITests.cs (78)
60
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "x").WithArguments("x...y").
WithLocation
(2, 16),
63
Diagnostic(ErrorCode.WRN_ErrorOverride, "").WithArguments("Unexpected character '.'", "1056").
WithLocation
(2, 17));
85
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(1, 22));
97
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(1, 22),
100
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "_f").WithArguments("C._f").
WithLocation
(1, 16));
107
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "_f").WithArguments("C._f").
WithLocation
(1, 16));
125
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "_f").WithArguments("C._f").
WithLocation
(4, 6));
133
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "_f").WithArguments("C._f").
WithLocation
(4, 6));
146
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "_f").WithArguments("C._f").
WithLocation
(1, 16)
157
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "_f").WithArguments("C._f").
WithLocation
(1, 16),
160
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(1, 22).WithWarningAsError(true));
179
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(1, 23).WithWarningAsError(true),
182
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "_f").WithArguments("D._f").
WithLocation
(1, 17),
185
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "_f").WithArguments("C._f").
WithLocation
(1, 17)
202
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "_f").WithArguments("C._f").
WithLocation
(1, 17)
215
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(1, 23),
218
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "_f").WithArguments("C._f").
WithLocation
(1, 17)
229
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(1, 39)
245
Diagnostic(ErrorCode.ERR_OptionMustBeAbsolutePath).WithArguments("CryptoKeyFile").
WithLocation
(1, 1),
247
Diagnostic(ErrorCode.ERR_PublicSignButNoKey).
WithLocation
(1, 1)
257
Diagnostic(ErrorCode.ERR_PublicSignButNoKey).
WithLocation
(1, 1));
266
Diagnostic(ErrorCode.ERR_OptionMustBeAbsolutePath).WithArguments("CryptoKeyFile").
WithLocation
(1, 1),
268
Diagnostic(ErrorCode.ERR_PublicSignButNoKey).
WithLocation
(1, 1));
279
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1),
281
Diagnostic(ErrorCode.ERR_BadAssemblyName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1),
283
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1)
287
Diagnostic(ErrorCode.ERR_BadAssemblyName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
292
Diagnostic(ErrorCode.ERR_BadAssemblyName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
296
Diagnostic(ErrorCode.ERR_BadAssemblyName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
300
Diagnostic(ErrorCode.ERR_BadAssemblyName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
304
Diagnostic(ErrorCode.ERR_BadAssemblyName).WithArguments("Name cannot start with whitespace.").
WithLocation
(1, 1)
308
Diagnostic(ErrorCode.ERR_BadAssemblyName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
312
Diagnostic(ErrorCode.ERR_BadAssemblyName).WithArguments("Name cannot be empty.").
WithLocation
(1, 1)
316
Diagnostic(ErrorCode.ERR_BadAssemblyName).WithArguments("Name cannot start with whitespace.").
WithLocation
(1, 1)
320
Diagnostic(ErrorCode.ERR_BadAssemblyName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
324
Diagnostic(ErrorCode.ERR_BadAssemblyName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
411
Diagnostic(ErrorCode.ERR_InvalidDebugInformationFormat).WithArguments("-1").
WithLocation
(1, 1),
413
Diagnostic(ErrorCode.ERR_InvalidOutputName).WithArguments("Name cannot start with whitespace.").
WithLocation
(1, 1),
415
Diagnostic(ErrorCode.ERR_InvalidFileAlignment).WithArguments("513").
WithLocation
(1, 1),
417
Diagnostic(ErrorCode.ERR_InvalidSubsystemVersion).WithArguments("1000000.-1000000").
WithLocation
(1, 1),
419
Diagnostic(ErrorCode.ERR_InvalidHashAlgorithmName).WithArguments("invalid hash algorithm name").
WithLocation
(1, 1));
656
Diagnostic(ErrorCode.ERR_BadDirectivePlacement, "#").
WithLocation
(1, 21),
659
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 61),
662
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 61),
665
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "Alias").WithArguments("Alias()").
WithLocation
(1, 14),
668
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "alias").WithArguments("alias").
WithLocation
(1, 8),
671
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "Alias").WithArguments("Alias()").
WithLocation
(1, 14),
674
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Alias").WithArguments("Alias").
WithLocation
(1, 14)
724
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "extern alias Alias(*#$@^%*&); class D : Alias(*#$@^%*&).C {}").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
727
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "extern").WithArguments("extern local functions", "9.0").
WithLocation
(1, 1),
730
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "Alias").WithArguments("local functions", "7.0").
WithLocation
(1, 14),
733
Diagnostic(ErrorCode.ERR_BadDirectivePlacement, "#").
WithLocation
(1, 21),
736
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 61),
739
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 61),
742
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "Alias").WithArguments("Alias()").
WithLocation
(1, 14),
745
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "alias").WithArguments("alias").
WithLocation
(1, 8),
748
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "Alias").WithArguments("Alias()").
WithLocation
(1, 14),
751
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Alias").WithArguments("Alias").
WithLocation
(1, 14)
1794
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("A.Main()").
WithLocation
(4, 17));
1804
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("A.Main()").
WithLocation
(4, 17));
1841
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("A.Main()").
WithLocation
(4, 17));
1853
Diagnostic(ErrorCode.WRN_MainIgnored, "Main").WithArguments("A.Main()").
WithLocation
(4, 17));
1909
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "alias").WithArguments("alias").
WithLocation
(2, 7),
1912
Diagnostic(ErrorCode.ERR_DuplicateAlias, "using alias=alias;").WithArguments("alias").
WithLocation
(2, 1),
1915
Diagnostic(ErrorCode.ERR_AmbigContext, "alias").WithArguments("alias", "<global namespace>", "<global namespace>").
WithLocation
(3, 17));
2241
Diagnostic(ErrorCode.ERR_LinkedNetmoduleMetadataMustProvideFullPEImage).WithArguments("ModuleCS00").
WithLocation
(1, 1));
3124
Diagnostic(ErrorCode.ERR_AddModuleAssembly).WithArguments("<in-memory module>").
WithLocation
(1, 1));
3143
Diagnostic(ErrorCode.ERR_ImportNonAssembly).WithArguments("<in-memory assembly>").
WithLocation
(1, 1));
3180
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 7),
3183
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 7));
3211
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 10));
3226
Diagnostic(ErrorCode.ERR_NoImplicitConv, "await System.Threading.Tasks.Task.FromResult(42)").WithArguments("int", "System.Threading.Tasks.Task<int>").
WithLocation
(1, 8));
3237
Diagnostic(ErrorCode.ERR_BadAsyncReturnExpression, "System.Threading.Tasks.Task.FromResult(42)").WithArguments("int", "System.Threading.Tasks.Task<int>").
WithLocation
(1, 8));
3270
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(6, 1));
3282
Diagnostic(ErrorCode.WRN_UnreachableCode, "System").
WithLocation
(6, 1));
3364
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""Who returns a string?""").WithArguments("string", "int").
WithLocation
(1, 8),
3367
Diagnostic(ErrorCode.WRN_UnreachableCode, "42").
WithLocation
(3, 1));
3444
Diagnostic(ErrorCode.ERR_DuplicateNameInNS, "C").WithArguments("C", "N").
WithLocation
(3, 8 + accessibility.Length)
Compilation\CSharpCompilationOptionsTests.cs (6)
255
Diagnostic(ErrorCode.ERR_BadModuleName).WithArguments("Name cannot be empty.").
WithLocation
(1, 1)
260
Diagnostic(ErrorCode.ERR_BadModuleName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
265
Diagnostic(ErrorCode.ERR_BadModuleName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
270
Diagnostic(ErrorCode.ERR_BadModuleName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
275
Diagnostic(ErrorCode.ERR_BadModuleName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
280
Diagnostic(ErrorCode.ERR_BadModuleName).WithArguments("Name contains invalid characters.").
WithLocation
(1, 1)
Compilation\GetSemanticInfoTests.cs (16)
2321
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableMultipleDeclarator, @"var a = new StreamWriter(""""), b = new StreamReader("""")").
WithLocation
(8, 19)
4130
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(9, 34),
4133
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(8, 13)
4181
Diagnostic(ErrorCode.ERR_QueryRangeVariableOverrides, "x").WithArguments("x").
WithLocation
(9, 34),
4184
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "x").WithArguments("x").
WithLocation
(8, 13)
5470
Diagnostic(ErrorCode.ERR_BadArgType, "t.Result").WithArguments("1", "Program.A", "int").
WithLocation
(13, 51),
5473
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Result").WithArguments("System.Threading.Tasks.Task", "Result").
WithLocation
(13, 30));
5577
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(A)", "Program.M(B)").
WithLocation
(6, 9));
5662
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Program.M(System.Func<A>)", "Program.M(System.Func<B>)").
WithLocation
(8, 9));
5715
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("Derived.M(System.Func<int, A>)", "Derived.M(System.Func<int, B>)").
WithLocation
(14, 9));
5828
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "C").WithArguments("C", "C").
WithLocation
(4, 12));
5832
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "C").WithArguments("C", "C").
WithLocation
(4, 12));
5872
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "C").WithArguments("C", "C").
WithLocation
(4, 5));
5876
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "C").WithArguments("C", "C").
WithLocation
(4, 5));
6037
Diagnostic(ErrorCode.ERR_DuplicateTypeParameter, "U").WithArguments("U").
WithLocation
(4, 15),
6040
Diagnostic(ErrorCode.ERR_AmbigMember, "U").WithArguments("U", "U").
WithLocation
(5, 17));
Compilation\LoadDirectiveTests.cs (12)
27
Diagnostic(ErrorCode.ERR_NoSourceFile, "\"\"").WithArguments("", CSharpResources.CouldNotFindFile).
WithLocation
(1, 7));
40
Diagnostic(ErrorCode.ERR_NoSourceFile, "\"missing\"").WithArguments("missing", CSharpResources.CouldNotFindFile).
WithLocation
(1, 7));
60
Diagnostic(ErrorCode.ERR_NoSourceFile, @"""b.csx""").WithArguments("b.csx", "Could not find file.").
WithLocation
(2, 27));
64
Diagnostic(ErrorCode.ERR_NoSourceFile, @"""b.csx""").WithArguments("b.csx", "Could not find file.").
WithLocation
(2, 27),
67
Diagnostic(ErrorCode.ERR_NameNotInContext, "asdf").WithArguments("asdf").
WithLocation
(3, 21));
88
Diagnostic(ErrorCode.ERR_BinaryFile, @"""a.csx""").WithArguments("a.csx").
WithLocation
(1, 7));
99
Diagnostic(ErrorCode.ERR_BinaryFile, @"""a.csx""").WithArguments("a.csx").
WithLocation
(3, 23),
102
Diagnostic(ErrorCode.ERR_BinaryFile, @"""a.csx""").WithArguments("a.csx").
WithLocation
(1, 7));
111
Diagnostic(ErrorCode.ERR_BinaryFile, @"""a.csx""").WithArguments("a.csx").
WithLocation
(1, 7),
114
Diagnostic(ErrorCode.ERR_BinaryFile, @"""a.csx""").WithArguments("a.csx").
WithLocation
(1, 7));
122
Diagnostic(ErrorCode.ERR_BinaryFile, @"""a.csx""").WithArguments("a.csx").
WithLocation
(1, 7));
135
Diagnostic(ErrorCode.ERR_SourceFileReferencesNotSupported, @"#load ""test""").
WithLocation
(1, 1));
Compilation\ReferenceManagerTests.cs (37)
85
"C").
WithLocation
(1, 1));
98
"C, Version=1.0.0.0, Culture=neutral, PublicKeyToken=374d0c2befcd8cc9").
WithLocation
(1, 1));
352
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
354
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
356
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
358
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
360
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
362
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
364
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
366
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
368
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
370
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
372
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
374
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
376
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
378
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "RefLibV1", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1),
380
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "X", "Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "Lib").
WithLocation
(1, 1));
484
"B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(1, 1),
494
"B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(1, 1));
1945
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "A", "B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1));
1989
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "A", "B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1));
2029
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "A", "B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1));
2104
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "A", "B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1),
2106
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "A", "B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1),
2108
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "A", "B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1));
2610
"B, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1));
2853
"B, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1));
2907
"B", "B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(1, 1),
2916
"B", "B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2").
WithLocation
(1, 1));
2971
"B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1),
2978
"B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1));
3071
"B, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1),
3078
"B, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1),
3085
"B, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1));
3137
"B, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1),
3144
"B, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1),
3151
"B, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "B").
WithLocation
(1, 1));
Compilation\SemanticModelAPITests.cs (8)
99
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "GenericExtension").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(11, 11));
396
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 10),
399
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(1, 10),
402
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 10));
423
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 10));
4529
Diagnostic(ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, "(a1, b1)").
WithLocation
(1, 5),
4532
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""""").WithArguments("string", "var").
WithLocation
(1, 17),
4535
Diagnostic(ErrorCode.ERR_NoImplicitConv, "0").WithArguments("int", "var").
WithLocation
(1, 21));
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (7)
1929
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "F").WithArguments("E.F<T>(T)", "A", "T", "B").
WithLocation
(8, 11)
1970
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "F").WithArguments("E.F<T>(T)", "A", "T", "B").
WithLocation
(8, 11));
4986
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(Alice: 1, Bob: null)").WithArguments("System.ValueTuple`2").
WithLocation
(6, 31),
4989
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "Alice: 1").WithArguments("Alice", "(short, string)").
WithLocation
(6, 32),
4992
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "Bob: null").WithArguments("Bob", "(short, string)").
WithLocation
(6, 42)
5035
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "Alice: 1").WithArguments("Alice", "(short, string)").
WithLocation
(6, 32),
5038
Diagnostic(ErrorCode.WRN_TupleLiteralNameMismatch, "Bob: null").WithArguments("Bob", "(short, string)").
WithLocation
(6, 42)
Compilation\SemanticModelGetSemanticInfoTests.cs (10)
8975
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(":").
WithLocation
(12, 30),
8978
Diagnostic(ErrorCode.ERR_RbraceExpected, "=>").
WithLocation
(12, 30),
8981
Diagnostic(ErrorCode.ERR_SemicolonExpected, ":").
WithLocation
(12, 44),
8984
Diagnostic(ErrorCode.ERR_RbraceExpected, ":").
WithLocation
(12, 44),
8987
Diagnostic(ErrorCode.ERR_BadArgCount, "()").WithArguments("Deconstruct", "0").
WithLocation
(12, 28),
8990
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "()").WithArguments("string", "0").
WithLocation
(12, 28)
9022
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(":").
WithLocation
(13, 30),
9025
Diagnostic(ErrorCode.ERR_RbraceExpected, "=>").
WithLocation
(13, 30),
9028
Diagnostic(ErrorCode.ERR_BadArgCount, "()").WithArguments("Deconstruct", "0").
WithLocation
(13, 28),
9031
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "()").WithArguments("string", "0").
WithLocation
(13, 28)
Compilation\UsedAssembliesTests.cs (53)
225
allocateOutput(input, ref output)[i] = old.
WithLocation
(old.LocationLine, old.LocationCharacter + 7);
382
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1)
1534
Diagnostic(ErrorCode.ERR_AmbigCall, "M1").WithArguments("C0.M1(string, string)", "C1.M1(string, string)").
WithLocation
(7, 11)
1589
Diagnostic(ErrorCode.ERR_NoTypeDef, "x.M1").WithArguments("C0", "MethodReference_05_0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 9)
1644
Diagnostic(ErrorCode.ERR_NoCanonicalView, "x.M1").WithArguments("C0").
WithLocation
(7, 9)
1670
Diagnostic(ErrorCode.ERR_NameofExtensionMethod, "x.M1").
WithLocation
(7, 20)
1776
Diagnostic(ErrorCode.ERR_NoTypeDef, "new C2().M1").WithArguments("C0", "MethodReference_07_0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 9)
1839
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static C1;").
WithLocation
(1001, 1),
1842
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(2005, 20)
2179
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N1;").
WithLocation
(1001, 1)
2192
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static N1.C1;").
WithLocation
(1001, 1)
2205
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using @alias = N1.C1;").
WithLocation
(1001, 1)
2218
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using @alias = N1;").
WithLocation
(1001, 1)
2231
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias N1C1;").
WithLocation
(2, 1)
2244
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N1;").
WithLocation
(2, 1)
2257
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static N1.C1;").
WithLocation
(2, 1)
2270
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using @alias = N1.C1;").
WithLocation
(2, 1)
2283
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using @alias = N1;").
WithLocation
(2, 1)
2296
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias N1C1;").
WithLocation
(2, 1)
3694
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "S<C0>*").
WithLocation
(2, 17));
3710
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "S<C0>*").
WithLocation
(2, 17));
4461
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N1.N2;").
WithLocation
(1001, 1)
4466
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N1.N2;").
WithLocation
(1001, 1),
4469
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N1").WithArguments("N1").
WithLocation
(1001, 7)
4490
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N1;").
WithLocation
(1001, 1)
4495
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N1;").
WithLocation
(1001, 1),
4498
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N1").WithArguments("N1").
WithLocation
(1001, 7)
4681
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static N1.N2.E0;").
WithLocation
(1001, 1)
4686
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static N1.N2.E0;").
WithLocation
(1001, 1),
4689
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N1").WithArguments("N1").
WithLocation
(1001, 14)
4742
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "global").WithArguments("global").
WithLocation
(2, 7)
4759
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "global").WithArguments("global").
WithLocation
(2, 16)
4780
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(2, 15)
4797
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(2, 24)
5151
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P1").WithArguments("C1.P1[int]", "C1.get_P1(int)", "C1.set_P1(int, C0)").
WithLocation
(6, 12)
5168
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P1").WithArguments("C1.P1[int]", "C1.get_P1(int)", "C1.set_P1(int, C0)").
WithLocation
(6, 16)
5187
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static C1;").
WithLocation
(1001, 1),
5190
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P1").WithArguments("C1.P1[int]", "C1.get_P1(int)", "C1.set_P1(int, C0)").
WithLocation
(2005, 9)
5209
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static C1;").
WithLocation
(1001, 1),
5212
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P1").WithArguments("C1.P1[int]", "C1.get_P1(int)", "C1.set_P1(int, C0)").
WithLocation
(2005, 13)
5229
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P1").WithArguments("C1.P1[int]", "C1.get_P1(int)", "C1.set_P1(int, C0)").
WithLocation
(6, 23)
5248
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static C1;").
WithLocation
(1001, 1),
5251
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P1").WithArguments("C1.P1[int]", "C1.get_P1(int)", "C1.set_P1(int, C0)").
WithLocation
(2005, 20)
5268
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P2").WithArguments("C1.P2[int]", "C1.get_P2(int)", "C1.set_P2(int, C0)").
WithLocation
(6, 23)
5287
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static C1;").
WithLocation
(1001, 1),
5290
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P2").WithArguments("C1.P2[int]", "C1.get_P2(int)", "C1.set_P2(int, C0)").
WithLocation
(2005, 20)
5697
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "C0").WithArguments("C0", "Alias0").
WithLocation
(8, 29)
5851
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias N1C1;").
WithLocation
(2, 1)
5856
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias N1C1;").
WithLocation
(2, 1),
5859
Diagnostic(ErrorCode.ERR_BadExternAlias, "N1C1").WithArguments("N1C1").
WithLocation
(2, 14)
5872
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias N1C1;").
WithLocation
(2, 1)
5877
Diagnostic(ErrorCode.HDN_UnusedExternAlias, "extern alias N1C1;").
WithLocation
(2, 1),
5880
Diagnostic(ErrorCode.ERR_BadExternAlias, "N1C1").WithArguments("N1C1").
WithLocation
(2, 14)
DocumentationComments\CrefTests.cs (57)
1876
Diagnostic(ErrorCode.WRN_AmbiguousXMLReference, "C").WithArguments("C", "C", "C").
WithLocation
(3, 20));
2333
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator -").WithArguments("operator -").
WithLocation
(3, 20)
3658
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("void P.M(int y)", "void P.M(int x)").
WithLocation
(28, 18),
3661
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(16, 25),
3664
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "q").WithArguments("q").
WithLocation
(4, 22),
3667
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "value").WithArguments("value").
WithLocation
(5, 22),
3670
Diagnostic(ErrorCode.WRN_MissingParamTag, "x").WithArguments("x", "C.M(int)").
WithLocation
(6, 16),
3673
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "x").WithArguments("x").
WithLocation
(8, 22),
3676
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "q").WithArguments("q").
WithLocation
(11, 22),
3679
Diagnostic(ErrorCode.WRN_MissingParamTag, "x").WithArguments("x", "C.this[int, int]").
WithLocation
(12, 18),
3682
Diagnostic(ErrorCode.WRN_MissingParamTag, "y").WithArguments("y", "C.this[int, int]").
WithLocation
(12, 25),
3685
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "q").WithArguments("q").
WithLocation
(14, 22),
3688
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "value").WithArguments("value").
WithLocation
(15, 22),
3691
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "y").WithArguments("y").
WithLocation
(27, 22),
3694
Diagnostic(ErrorCode.WRN_MissingParamTag, "x").WithArguments("x", "P.M(int)").
WithLocation
(28, 24),
3697
Diagnostic(ErrorCode.WRN_UnmatchedParamTag, "x").WithArguments("x").
WithLocation
(21, 22),
3700
Diagnostic(ErrorCode.WRN_MissingParamTag, "y").WithArguments("y", "P.M(int)").
WithLocation
(22, 24));
3734
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("void P.M(int q, int r)", "void P.M(int x, int y)").
WithLocation
(23, 18),
3737
Diagnostic(ErrorCode.WRN_MissingParamTag, "y").WithArguments("y", "C.M(int, int)").
WithLocation
(5, 23),
3740
Diagnostic(ErrorCode.WRN_MissingParamTag, "y").WithArguments("y", "C.this[int, int]").
WithLocation
(8, 25),
3743
Diagnostic(ErrorCode.WRN_MissingParamTag, "x").WithArguments("x", "C.this[int]").
WithLocation
(11, 18),
3746
Diagnostic(ErrorCode.WRN_MissingParamTag, "y").WithArguments("y", "P.M(int, int)").
WithLocation
(23, 31),
3749
Diagnostic(ErrorCode.WRN_MissingParamTag, "r").WithArguments("r", "P.M(int, int)").
WithLocation
(17, 31));
3841
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("void P.M(int y)", "void P.M(int x)").
WithLocation
(28, 18),
3844
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(16, 25),
3847
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "q").WithArguments("q", "C.M(int)").
WithLocation
(4, 25),
3850
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "value").WithArguments("value", "C.M(int)").
WithLocation
(5, 25),
3853
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "x").WithArguments("x", "C.P").
WithLocation
(8, 25),
3856
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "q").WithArguments("q", "C.this[int, int]").
WithLocation
(11, 25),
3859
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "q").WithArguments("q", "C.E").
WithLocation
(14, 25),
3862
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "value").WithArguments("value", "C.E").
WithLocation
(15, 25),
3865
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "y").WithArguments("y", "P.M(int)").
WithLocation
(27, 25),
3868
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "x").WithArguments("x", "P.M(int)").
WithLocation
(21, 25));
4064
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M1").WithArguments("void P<T>.M1<U>()", "void P<T>.M1<V>()").
WithLocation
(29, 18),
4200
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M1").WithArguments("void P<T>.M1<U>()", "void P<T>.M1<V>()").
WithLocation
(29, 18),
4424
Diagnostic(ErrorCode.WRN_MissingXMLComment, "D").WithArguments("D").
WithLocation
(5, 22),
4427
Diagnostic(ErrorCode.WRN_MissingXMLComment, "E").WithArguments("E").
WithLocation
(7, 22));
4490
Diagnostic(ErrorCode.WRN_BadXMLRefReturnType, "Q").
WithLocation
(2, 34),
4493
Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator Q").WithArguments("explicit operator Q").
WithLocation
(2, 16),
4496
Diagnostic(ErrorCode.WRN_BadXMLRefReturnType, "C{Q}").
WithLocation
(3, 34),
4499
Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator C{Q}").WithArguments("explicit operator C{Q}").
WithLocation
(3, 16),
4502
Diagnostic(ErrorCode.WRN_BadXMLRefReturnType, "Q[]").
WithLocation
(4, 34),
4505
Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator Q[]").WithArguments("explicit operator Q[]").
WithLocation
(4, 16),
4508
Diagnostic(ErrorCode.WRN_BadXMLRefReturnType, "Q*").
WithLocation
(5, 34),
4511
Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator Q*").WithArguments("explicit operator Q*").
WithLocation
(5, 16));
6422
Diagnostic(ErrorCode.WRN_BadXMLRef, "IDerived.P").WithArguments("P").
WithLocation
(11, 16));
6460
Diagnostic(ErrorCode.WRN_BadXMLRef, "I.ToString").WithArguments("ToString").
WithLocation
(6, 16));
6523
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "C{}").WithArguments("C{}").
WithLocation
(3, 16),
6526
Diagnostic(ErrorCode.WRN_ErrorOverride, "}").WithArguments("Identifier expected", "1001").
WithLocation
(3, 18),
6529
Diagnostic(ErrorCode.WRN_BadXMLRef, "C").WithArguments("C").
WithLocation
(2, 16));
6778
Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").
WithLocation
(6, 25),
6781
Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").
WithLocation
(6, 25));
6803
Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").
WithLocation
(6, 25),
6806
Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").
WithLocation
(6, 25));
6827
Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").
WithLocation
(5, 25));
6848
Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").
WithLocation
(5, 25));
6867
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(1, 1));
DocumentationComments\DocumentationCommentCompilerTests.cs (40)
1119
Diagnostic(ErrorCode.WRN_MissingXMLComment, "M").WithArguments("C.M()").
WithLocation
(4, 24)
1222
Diagnostic(ErrorCode.WRN_XMLParseError, "a").WithArguments("a", "summary").
WithLocation
(4, 20),
1225
Diagnostic(ErrorCode.WRN_XMLParseError, "<").
WithLocation
(4, 22)
1290
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("int C.M(int p2)", "int C.M(int p1)").
WithLocation
(5, 24));
1347
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "p2").WithArguments("p2", "C.M(int)").
WithLocation
(4, 42),
1350
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("int C.M(int p2)", "int C.M(int p1)").
WithLocation
(5, 24));
1355
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "p2").WithArguments("p2", "C.M(int)").
WithLocation
(4, 42));
1410
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("int C.M(int p2)", "int C.M(int p1)").
WithLocation
(4, 24),
1413
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "p1").WithArguments("p1", "C.M(int)").
WithLocation
(4, 42));
1418
Diagnostic(ErrorCode.WRN_UnmatchedParamRefTag, "p1").WithArguments("p1", "C.M(int)").
WithLocation
(4, 42));
1473
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("int C.M(int p2)", "int C.M(int p1)").
WithLocation
(4, 24));
4408
Diagnostic(ErrorCode.WRN_UnmatchedTypeParamTag, includeElement).WithArguments("Y").
WithLocation
(3, 5),
4411
Diagnostic(ErrorCode.WRN_UnmatchedTypeParamTag, includeElement).WithArguments("XY").
WithLocation
(3, 5),
4414
Diagnostic(ErrorCode.WRN_UnmatchedTypeParamRefTag, includeElement).WithArguments("Y", "OuterClass<X>").
WithLocation
(3, 5),
4417
Diagnostic(ErrorCode.WRN_UnmatchedTypeParamRefTag, includeElement).WithArguments("XY", "OuterClass<X>").
WithLocation
(3, 5),
4420
Diagnostic(ErrorCode.WRN_UnmatchedTypeParamTag, includeElement).WithArguments("X").
WithLocation
(6, 9),
4423
Diagnostic(ErrorCode.WRN_UnmatchedTypeParamTag, includeElement).WithArguments("XY").
WithLocation
(6, 9),
4426
Diagnostic(ErrorCode.WRN_UnmatchedTypeParamRefTag, includeElement).WithArguments("XY", "OuterClass<X>.InnerClass<Y>").
WithLocation
(6, 9),
4429
Diagnostic(ErrorCode.WRN_UnmatchedTypeParamTag, includeElement).WithArguments("X").
WithLocation
(9, 13),
4432
Diagnostic(ErrorCode.WRN_UnmatchedTypeParamTag, includeElement).WithArguments("Y").
WithLocation
(9, 13),
4435
Diagnostic(ErrorCode.WRN_UnmatchedTypeParamTag, includeElement).WithArguments("XY").
WithLocation
(9, 13),
4438
Diagnostic(ErrorCode.WRN_UnmatchedTypeParamRefTag, includeElement).WithArguments("XY", "OuterClass<X>.InnerClass<Y>.Foo()").
WithLocation
(9, 13)
6645
WithArguments("file://" + xmlFile.Path, "hello", "File not found.").
WithLocation
(2, 5));
6712
Diagnostic(ErrorCode.WRN_XMLParseIncludeError).WithArguments("For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.").
WithLocation
(1, 1));
6894
Diagnostic(ErrorCode.WRN_XMLParseError, "").WithArguments("summary").
WithLocation
(7, 1),
6897
Diagnostic(ErrorCode.WRN_XMLParseError, "").WithArguments("summary").
WithLocation
(7, 1)
6918
Diagnostic(ErrorCode.WRN_XMLParseIncludeError).WithArguments("'attrib' is a duplicate attribute name.").
WithLocation
(1, 1));
6947
Diagnostic(ErrorCode.WRN_MissingXMLComment, "IsExternalInit").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 25));
6984
Diagnostic(ErrorCode.WRN_MissingXMLComment, "IsExternalInit").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 25));
7014
Diagnostic(ErrorCode.WRN_DuplicateParamTag, @"name=""Value""").WithArguments("Value").
WithLocation
(4, 12),
7017
Diagnostic(ErrorCode.WRN_DuplicateParamTag, @"name=""Value""").WithArguments("Value").
WithLocation
(4, 12),
7020
Diagnostic(ErrorCode.WRN_MissingXMLComment, "IsExternalInit").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 25));
7062
Diagnostic(ErrorCode.WRN_MissingXMLComment, "IsExternalInit").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 25)
7105
Diagnostic(ErrorCode.WRN_MissingParamTag, "Item1").WithArguments("Item1", "Rec.Rec(string, object)").
WithLocation
(4, 19),
7108
Diagnostic(ErrorCode.WRN_MissingXMLComment, "IsExternalInit").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 25));
7148
Diagnostic(ErrorCode.WRN_MissingXMLComment, "IsExternalInit").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 25));
7184
Diagnostic(ErrorCode.WRN_MissingXMLComment, "IsExternalInit").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 25));
7218
Diagnostic(ErrorCode.WRN_MissingXMLComment, "IsExternalInit").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 25));
7262
Diagnostic(ErrorCode.WRN_MissingXMLComment, "IsExternalInit").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 25));
7306
Diagnostic(ErrorCode.WRN_MissingXMLComment, "IsExternalInit").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(4, 25));
DocumentationComments\ParameterTests.cs (1)
847
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "this").WithArguments("extension method", "3").
WithLocation
(4, 37));
SymbolDisplay\SymbolDisplayTests.cs (11)
6854
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "P1").WithArguments("X.P1").
WithLocation
(4, 9),
6857
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "P2").WithArguments("X.P2").
WithLocation
(5, 18),
6860
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("X.E1").
WithLocation
(6, 34),
6863
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E2").WithArguments("X.E2").
WithLocation
(7, 34));
7598
Diagnostic(ErrorCode.ERR_MustDeclareForeachIteration, "_").
WithLocation
(6, 17)
8274
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, "F1").
WithLocation
(4, 11),
8277
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, "F2").
WithLocation
(5, 20)
8433
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(5, 15),
8436
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(5, 25),
8439
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(5, 38),
8442
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "scoped").WithArguments("scoped").
WithLocation
(5, 52));
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (3)
510
Diagnostic(ErrorCode.ERR_MethodImplementingAccessor, "I<int>").WithArguments("Base.get_P()", "I<int>.P.get", "Derived").
WithLocation
(10, 23),
513
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I<int>").WithArguments("Derived", "I<int>.P").
WithLocation
(10, 23));
537
Diagnostic(ErrorCode.ERR_AccessorImplementingMethod, "I<int>").WithArguments("Base.P.get", "I<int>.get_P()", "Derived").
WithLocation
(10, 23));
Symbols\AnonymousTypesSemanticsTests.cs (16)
1296
Diagnostic(ErrorCode.ERR_NameNotInContext, "xyz").WithArguments("xyz").
WithLocation
(8, 18),
1299
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "SSS").WithArguments("SSS").
WithLocation
(10, 23),
1302
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "SSS").WithArguments("SSS").
WithLocation
(15, 22),
1305
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "aa").WithArguments("ClassA", "aa").
WithLocation
(19, 32),
1308
Diagnostic(ErrorCode.ERR_NoSuchMember, "BB").WithArguments("ClassA", "BB").
WithLocation
(20, 24),
1311
Diagnostic(ErrorCode.ERR_NoSuchMember, "CCC").WithArguments("ClassA", "CCC").
WithLocation
(21, 24)
1370
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var v1 = new { }").WithArguments("<empty anonymous type>").
WithLocation
(6, 26)
1464
Diagnostic(ErrorCode.ERR_AnonymousTypeDuplicatePropertyName, "ClassA.aa").
WithLocation
(9, 13)
1567
Diagnostic(ErrorCode.ERR_AnonymousTypeNotAvailable, "new").
WithLocation
(4, 30)
1705
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "ProductName").WithArguments("Product.ProductName", "null").
WithLocation
(7, 19),
1708
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "SupplierID").WithArguments("Product.SupplierID", "0").
WithLocation
(8, 16),
1711
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "ProductID").WithArguments("Product.ProductID", "0").
WithLocation
(6, 16),
1714
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Products").WithArguments("DB.Products", "null").
WithLocation
(12, 32)
1825
Diagnostic(ErrorCode.ERR_AnonymousTypePropertyAssignedBadValue, "f1 = null").WithArguments("<null>").
WithLocation
(6, 35),
1828
Diagnostic(ErrorCode.ERR_AnonymousTypePropertyAssignedBadValue, "f2 = M").WithArguments("method group").
WithLocation
(6, 46),
1831
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 59)
Symbols\AnonymousTypesSymbolTests.cs (2)
1849
Diagnostic(ErrorCode.ERR_InvalidAnonymousTypeMemberDeclarator, "local?.M()").
WithLocation
(12, 24),
1852
Diagnostic(ErrorCode.ERR_InvalidAnonymousTypeMemberDeclarator, "array?[0]").
WithLocation
(13, 24));
Symbols\AssemblyAndNamespaceTests.cs (14)
460
Diagnostic(ErrorCode.ERR_BadModifiersOnNamespace, "public").
WithLocation
(2, 1));
472
Diagnostic(ErrorCode.ERR_BadModifiersOnNamespace, "[System.Obsolete]").
WithLocation
(1, 1));
503
Diagnostic(ErrorCode.ERR_MultipleFileScopedNamespace, "B").
WithLocation
(2, 11));
518
Diagnostic(ErrorCode.ERR_FileScopedAndNormalNamespace, "B").
WithLocation
(3, 15));
533
Diagnostic(ErrorCode.ERR_FileScopedAndNormalNamespace, "B").
WithLocation
(2, 11));
548
Diagnostic(ErrorCode.ERR_FileScopedNamespaceNotBeforeAllMembers, "B").
WithLocation
(4, 11));
561
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(1, 1));
574
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(2, 1));
587
Diagnostic(ErrorCode.ERR_FileScopedNamespaceNotBeforeAllMembers, "System").
WithLocation
(2, 11));
611
Diagnostic(ErrorCode.ERR_FileScopedNamespaceNotBeforeAllMembers, "B").
WithLocation
(3, 11));
625
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "WriteLine").
WithLocation
(3, 16),
628
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(3, 26),
631
Diagnostic(ErrorCode.ERR_EOFExpected, ";").
WithLocation
(3, 27));
677
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "x").
WithLocation
(3, 5));
Symbols\CheckedUserDefinedOperatorsTests.cs (197)
41
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(4, 30)
149
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, op).WithArguments(name, "C").
WithLocation
(5, 39)
157
Diagnostic(ErrorCode.ERR_BadIncDecRetType, op).
WithLocation
(5, 39),
160
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, op).WithArguments(name, "C").
WithLocation
(5, 39)
192
Diagnostic(ErrorCode.ERR_BadIncDecRetType, op).
WithLocation
(4, 39)
213
Diagnostic(ErrorCode.ERR_BadIncDecSignature, op).
WithLocation
(4, 37)
232
Diagnostic(ErrorCode.ERR_BadUnaryOperatorSignature, "-").
WithLocation
(4, 38)
254
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("C.operator checked " + op + "(C)").
WithLocation
(4, 23)
316
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, name).WithArguments("C.operator checked " + op + "(C)").
WithLocation
(8, 18),
319
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, name).WithArguments(name, "C1").
WithLocation
(16, 15),
322
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, op).WithArguments(name, "C2").
WithLocation
(23, 39),
325
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, name).WithArguments("C3", name).
WithLocation
(30, 9),
328
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, op).WithArguments("C4", name).
WithLocation
(37, 39),
331
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, op).WithArguments(name, "C5").
WithLocation
(44, 39)
352
Diagnostic(ErrorCode.ERR_OvlBinaryOperatorExpected, op).
WithLocation
(4, 38)
377
Diagnostic(ErrorCode.ERR_BadUnOpArgs, op).WithArguments(op).
WithLocation
(4, 38)
402
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "C").WithArguments("C").
WithLocation
(4, 19),
405
Diagnostic(ErrorCode.ERR_OperatorInStaticClass, op).WithArguments("C.operator checked " + op + "(C)").
WithLocation
(4, 38),
408
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "C").WithArguments("C").
WithLocation
(4, 39 + op.Length)
431
Diagnostic(ErrorCode.ERR_CheckedOperatorNeedsMatch, op).WithArguments("C.operator checked " + op + "(C)").
WithLocation
(4, 38)
450
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "(").
WithLocation
(4, 38),
453
Diagnostic(ErrorCode.ERR_SyntaxError, "C").WithArguments("(").
WithLocation
(4, 39)
477
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "(").
WithLocation
(4, 30),
480
Diagnostic(ErrorCode.ERR_SyntaxError, "C").WithArguments("(").
WithLocation
(4, 31)
523
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked " + op).WithArguments("operator checked " + op).
WithLocation
(3, 20),
526
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29),
529
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(7, 30)
567
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator " + op).WithArguments("operator " + op).
WithLocation
(3, 20)
599
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op).WithArguments("operator checked " + op).
WithLocation
(3, 20)
630
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked -").WithArguments("operator checked -").
WithLocation
(3, 20)
644
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked -").WithArguments("operator checked -").
WithLocation
(3, 20),
647
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29),
650
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(7, 30)
695
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").
WithLocation
(3, 20),
698
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29),
701
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(7, 30)
739
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator " + op + "(C)").WithArguments("operator " + op + "(C)").
WithLocation
(3, 20)
771
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").
WithLocation
(3, 20)
800
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked (C)").WithArguments("operator checked (C)").
WithLocation
(3, 20),
803
Diagnostic(ErrorCode.WRN_ErrorOverride, "(").WithArguments("Overloadable operator expected", "1037").
WithLocation
(3, 37)
849
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator (C)").WithArguments("operator (C)").
WithLocation
(3, 20),
852
Diagnostic(ErrorCode.WRN_ErrorOverride, "(").WithArguments("Overloadable operator expected", "1037").
WithLocation
(3, 29)
900
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments(op).
WithLocation
(4, 30)
931
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments("true").
WithLocation
(4, 33),
934
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments("false").
WithLocation
(5, 33)
974
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments(op).
WithLocation
(5, 30),
977
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, op).WithArguments(name, "C").
WithLocation
(5, 38)
1010
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments(op).
WithLocation
(6, 33),
1013
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, op).WithArguments(name, "C").
WithLocation
(6, 41)
1051
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op).WithArguments("operator checked " + op).
WithLocation
(3, 20)
1065
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked " + op).WithArguments("operator checked " + op).
WithLocation
(3, 20),
1068
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29)
1101
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op).WithArguments("operator checked " + op).
WithLocation
(3, 20)
1115
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked " + op).WithArguments("operator checked " + op).
WithLocation
(3, 20),
1118
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29)
1154
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").
WithLocation
(3, 20)
1168
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").
WithLocation
(3, 20),
1171
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29)
1204
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").
WithLocation
(3, 20)
1217
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").
WithLocation
(3, 20),
1220
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29)
1258
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(4, 30)
1367
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, op).WithArguments(name, "C").
WithLocation
(5, 39)
1400
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, op).
WithLocation
(4, 37)
1423
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("C.operator checked " + op + "(C, C)").
WithLocation
(4, 23)
1486
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, name).WithArguments("C.operator checked " + op + "(C, C)").
WithLocation
(8, 18),
1489
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, name).WithArguments(name, "C1").
WithLocation
(16, 15),
1492
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, op).WithArguments(name, "C2").
WithLocation
(23, 39),
1495
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, name).WithArguments("C3", name).
WithLocation
(30, 9),
1498
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, op).WithArguments("C4", name).
WithLocation
(37, 39),
1501
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, op).WithArguments(name, "C5").
WithLocation
(44, 39)
1522
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, op).
WithLocation
(4, 38)
1549
Diagnostic(ErrorCode.ERR_BadBinOpArgs, op).WithArguments(op).
WithLocation
(4, 38)
1575
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "C").WithArguments("C").
WithLocation
(4, 19),
1578
Diagnostic(ErrorCode.ERR_OperatorInStaticClass, op).WithArguments("C.operator checked " + op + "(C, C)").
WithLocation
(4, 38),
1581
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "C").WithArguments("C").
WithLocation
(4, 40),
1584
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "C").WithArguments("C").
WithLocation
(4, 45)
1609
Diagnostic(ErrorCode.ERR_CheckedOperatorNeedsMatch, op).WithArguments("C.operator checked " + op + "(C, C)").
WithLocation
(4, 38)
1628
Diagnostic(ErrorCode.ERR_OvlBinaryOperatorExpected, "(").
WithLocation
(4, 38),
1631
Diagnostic(ErrorCode.ERR_SyntaxError, "C").WithArguments("(").
WithLocation
(4, 39)
1655
Diagnostic(ErrorCode.ERR_OvlBinaryOperatorExpected, "(").
WithLocation
(4, 30),
1658
Diagnostic(ErrorCode.ERR_SyntaxError, "C").WithArguments("(").
WithLocation
(4, 31)
1704
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked " + op).WithArguments("operator checked " + op).
WithLocation
(3, 20),
1707
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29),
1710
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(7, 30)
1749
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator " + op).WithArguments("operator " + op).
WithLocation
(3, 20)
1782
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op).WithArguments("operator checked " + op).
WithLocation
(3, 20)
1811
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked").WithArguments("operator checked").
WithLocation
(3, 20),
1814
Diagnostic(ErrorCode.WRN_ErrorOverride, @"""").WithArguments("Overloadable operator expected", "1037").
WithLocation
(3, 37)
1826
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked").WithArguments("operator checked").
WithLocation
(3, 20),
1829
Diagnostic(ErrorCode.WRN_ErrorOverride, @"""").WithArguments("Overloadable operator expected", "1037").
WithLocation
(3, 37),
1832
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(7, 30)
1844
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked").WithArguments("operator checked").
WithLocation
(3, 20),
1847
Diagnostic(ErrorCode.WRN_ErrorOverride, @"""").WithArguments("Overloadable operator expected", "1037").
WithLocation
(3, 37)
1874
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator").WithArguments("operator").
WithLocation
(3, 20),
1877
Diagnostic(ErrorCode.WRN_ErrorOverride, @"""").WithArguments("Overloadable operator expected", "1037").
WithLocation
(3, 29)
1936
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked " + op + "(C, C)").WithArguments("operator checked " + op + "(C, C)").
WithLocation
(3, 20),
1939
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29),
1942
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(7, 30)
1981
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator " + op + "(C, C)").WithArguments("operator " + op + "(C, C)").
WithLocation
(3, 20)
2014
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op + "(C, C)").WithArguments("operator checked " + op + "(C, C)").
WithLocation
(3, 20)
2043
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked (C, C)").WithArguments("operator checked (C, C)").
WithLocation
(3, 20),
2046
Diagnostic(ErrorCode.WRN_ErrorOverride, "(").WithArguments("Overloadable operator expected", "1037").
WithLocation
(3, 37)
2061
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked (C, C)").WithArguments("operator checked (C, C)").
WithLocation
(3, 20),
2064
Diagnostic(ErrorCode.WRN_ErrorOverride, "(").WithArguments("Overloadable operator expected", "1037").
WithLocation
(3, 37),
2067
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(7, 30)
2102
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator (C, C)").WithArguments("operator (C, C)").
WithLocation
(3, 20),
2105
Diagnostic(ErrorCode.WRN_ErrorOverride, "(").WithArguments("Overloadable operator expected", "1037").
WithLocation
(3, 29)
2165
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments(">>>").
WithLocation
(4, 30),
2168
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(4, 38)
2176
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments(op).
WithLocation
(4, 30)
2219
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments(op).
WithLocation
(5, 30),
2222
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, op).WithArguments(name, "C").
WithLocation
(5, 38)
2269
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + opForXml).WithArguments("operator checked " + opForXml).
WithLocation
(3, 20)
2288
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked " + opForXml).WithArguments("operator checked " + opForXml).
WithLocation
(3, 20),
2291
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29)
2299
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked }}}").WithArguments("operator checked }}}").
WithLocation
(3, 20),
2302
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29),
2305
Diagnostic(ErrorCode.WRN_ErrorOverride, "}}}").WithArguments("Feature 'unsigned right shift' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 37),
2308
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(7, 30)
2363
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + opForXml + "(C, int)").WithArguments("operator checked " + opForXml + "(C, int)").
WithLocation
(3, 20)
2382
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked " + opForXml + "(C, int)").WithArguments("operator checked " + opForXml + "(C, int)").
WithLocation
(3, 20),
2385
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29)
2393
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator checked }}}(C, int)").WithArguments("operator checked }}}(C, int)").
WithLocation
(3, 20),
2396
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29),
2399
Diagnostic(ErrorCode.WRN_ErrorOverride, "}}}").WithArguments("Feature 'unsigned right shift' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 37),
2402
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(7, 30)
2434
Diagnostic(ErrorCode.ERR_OvlOperatorExpected, "(").
WithLocation
(4, 38),
2437
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("(").
WithLocation
(4, 39)
2461
Diagnostic(ErrorCode.ERR_OvlOperatorExpected, "(").
WithLocation
(4, 30),
2464
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("(").
WithLocation
(4, 31)
2492
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(4, 37)
2610
Diagnostic(ErrorCode.ERR_DuplicateConversionInClass, "int").WithArguments("C").
WithLocation
(5, 45),
2613
Diagnostic(ErrorCode.ERR_DuplicateConversionInClass, "int").WithArguments("C1").
WithLocation
(11, 37)
2642
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "int").
WithLocation
(4, 45)
2661
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, "int").WithArguments("C.explicit operator checked int(C)").
WithLocation
(4, 31)
2720
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "op_CheckedExplicit").WithArguments("C.explicit operator checked int(C)").
WithLocation
(8, 18),
2723
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "op_CheckedExplicit").WithArguments("op_CheckedExplicit", "C1").
WithLocation
(16, 15),
2726
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "int").WithArguments("op_CheckedExplicit", "C2").
WithLocation
(23, 45),
2729
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "op_CheckedExplicit").WithArguments("C3", "op_CheckedExplicit").
WithLocation
(30, 9),
2732
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "int").WithArguments("C4", "op_CheckedExplicit").
WithLocation
(37, 45),
2735
Diagnostic(ErrorCode.ERR_DuplicateConversionInClass, "int").WithArguments("C5").
WithLocation
(44, 45)
2754
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "(C x, C y)").
WithLocation
(4, 48)
2777
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "()").
WithLocation
(4, 48)
2800
Diagnostic(ErrorCode.ERR_OperatorInStaticClass, "int").WithArguments("C.explicit operator checked int(C)").
WithLocation
(4, 45),
2803
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "C").WithArguments("C").
WithLocation
(4, 49)
2826
Diagnostic(ErrorCode.ERR_CheckedOperatorNeedsMatch, "int").WithArguments("C.explicit operator checked int(C)").
WithLocation
(4, 45)
2862
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "explicit operator checked int").WithArguments("explicit operator checked int").
WithLocation
(3, 20),
2865
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 38),
2868
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(7, 37)
2903
Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator int").WithArguments("explicit operator int").
WithLocation
(3, 20)
2932
Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator checked int").WithArguments("explicit operator checked int").
WithLocation
(3, 20)
2961
Diagnostic(ErrorCode.WRN_BadXMLRef, "implicit operator int").WithArguments("implicit operator int").
WithLocation
(3, 20)
2990
Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator checked int").WithArguments("explicit operator checked int").
WithLocation
(3, 20)
3028
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "explicit operator checked int(C)").WithArguments("explicit operator checked int(C)").
WithLocation
(3, 20),
3031
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 38),
3034
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(7, 37)
3069
Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator int(C)").WithArguments("explicit operator int(C)").
WithLocation
(3, 20)
3098
Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator checked int(C)").WithArguments("explicit operator checked int(C)").
WithLocation
(3, 20)
3127
Diagnostic(ErrorCode.WRN_BadXMLRef, "implicit operator int(C)").WithArguments("implicit operator int(C)").
WithLocation
(3, 20)
3156
Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator checked int(C)").WithArguments("explicit operator checked int(C)").
WithLocation
(3, 20)
3184
Diagnostic(ErrorCode.ERR_ImplicitConversionOperatorCantBeChecked, "checked").
WithLocation
(4, 37)
3213
Diagnostic(ErrorCode.ERR_ImplicitConversionOperatorCantBeChecked, "checked").
WithLocation
(5, 37),
3216
Diagnostic(ErrorCode.ERR_DuplicateConversionInClass, "int").WithArguments("C").
WithLocation
(5, 45)
3248
Diagnostic(ErrorCode.WRN_BadXMLRef, "implicit operator checked int").WithArguments("implicit operator checked int").
WithLocation
(3, 20)
3262
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "implicit operator checked int").WithArguments("implicit operator checked int").
WithLocation
(3, 20),
3265
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 38)
3298
Diagnostic(ErrorCode.WRN_BadXMLRef, "implicit operator checked int(C)").WithArguments("implicit operator checked int(C)").
WithLocation
(3, 20)
3312
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "implicit operator checked int(C)").WithArguments("implicit operator checked int(C)").
WithLocation
(3, 20),
3315
Diagnostic(ErrorCode.WRN_ErrorOverride, "checked").WithArguments("Feature 'checked user-defined operators' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 38)
3447
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, op + "x").WithArguments("checked user-defined operators", "11.0").
WithLocation
(16, 24),
3450
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, op + "x").WithArguments("checked user-defined operators", "11.0").
WithLocation
(26, 24)
3775
Diagnostic(ErrorCode.ERR_BadUnaryOp, op + "x").WithArguments(op, "C0").
WithLocation
(11, 26)
3840
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, op + "x").WithArguments("checked user-defined operators", "11.0").
WithLocation
(12, 24)
3884
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, op + "x").
WithLocation
(22, 29),
3887
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, op + "x").
WithLocation
(27, 31)
4222
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + " x").WithArguments("checked user-defined operators", "11.0").
WithLocation
(16, 24),
4225
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + " x").WithArguments("checked user-defined operators", "11.0").
WithLocation
(26, 24)
4561
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x " + op + " x").WithArguments(op, "C0", "C0").
WithLocation
(11, 26)
4683
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + "= x").WithArguments("checked user-defined operators", "11.0").
WithLocation
(16, 19),
4686
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + "= x").WithArguments("checked user-defined operators", "11.0").
WithLocation
(26, 19)
4802
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + " y").WithArguments("checked user-defined operators", "11.0").
WithLocation
(14, 24)
4844
Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "x / x").WithArguments("C0.operator checked /(C0, C0)").
WithLocation
(22, 29)
5114
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "x " + op + "= x").
WithLocation
(22, 29),
5117
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "x " + op + "= x").
WithLocation
(27, 31)
5233
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "(long)x").WithArguments("checked user-defined operators", "11.0").
WithLocation
(23, 26)
5332
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("C0", "long").
WithLocation
(25, 26),
5335
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("C0", "long").
WithLocation
(30, 28),
5338
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("C0", "int").
WithLocation
(35, 26),
5341
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("C0", "int").
WithLocation
(40, 28)
5624
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("C0", "long").
WithLocation
(10, 26),
5627
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("C0", "long").
WithLocation
(15, 28),
5630
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(long)x").WithArguments("C0", "long").
WithLocation
(20, 28),
5633
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("C0", "int").
WithLocation
(25, 26),
5636
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("C0", "int").
WithLocation
(30, 28),
5639
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(int)x").WithArguments("C0", "int").
WithLocation
(35, 28)
5701
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "(long?)x").WithArguments("checked user-defined operators", "11.0").
WithLocation
(12, 26)
Symbols\ConversionTests.cs (33)
862
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "x").WithArguments("double", "float").
WithLocation
(4, 20)
1135
Diagnostic(ErrorCode.ERR_ConstantExpected, "default(Convertible)").
WithLocation
(8, 18)
1165
Diagnostic(ErrorCode.ERR_ConstantExpected, "c").
WithLocation
(9, 18)
2066
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "i").WithArguments("int", "F", "E.F(long)", "long").
WithLocation
(14, 9),
2069
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "t").WithArguments("(int, int)", "G", "E.G((long, long))", "(long, long)").
WithLocation
(16, 9));
2101
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "i").WithArguments("int", "F", "E.F(int?)", "int?").
WithLocation
(13, 9),
2104
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "t").WithArguments("(int, int)", "G", "E.G((int, int)?)", "(int, int)?").
WithLocation
(17, 9));
2142
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "0").WithArguments("int", "F", "C.F(E)", "E").
WithLocation
(15, 9),
2145
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "e").WithArguments("E", "G", "C.G(E?)", "E?").
WithLocation
(17, 9),
2148
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "0").WithArguments("int", "G", "C.G(E?)", "E?").
WithLocation
(21, 9),
2151
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "(e, e)").WithArguments("(E, E)", "H", "C.H((E, E?))", "(E, E?)").
WithLocation
(23, 9));
2196
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "1").WithArguments("int", "S08", "C.S08(sbyte)", "sbyte").
WithLocation
(21, 9),
2199
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "2").WithArguments("int", "S16", "C.S16(short)", "short").
WithLocation
(22, 9),
2202
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "4").WithArguments("int", "S64", "C.S64(long)", "long").
WithLocation
(24, 9),
2205
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "5").WithArguments("int", "U08", "C.U08(byte)", "byte").
WithLocation
(25, 9),
2208
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "6").WithArguments("int", "U16", "C.U16(ushort)", "ushort").
WithLocation
(26, 9),
2211
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "7").WithArguments("int", "U32", "C.U32(uint)", "uint").
WithLocation
(27, 9),
2214
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "8").WithArguments("int", "U64", "C.U64(ulong)", "ulong").
WithLocation
(28, 9),
2217
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "10L").WithArguments("long", "U64", "C.U64(ulong)", "ulong").
WithLocation
(32, 9));
2262
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "1").WithArguments("int", "S08", "C.S08(sbyte?)", "sbyte?").
WithLocation
(21, 9),
2265
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "2").WithArguments("int", "S16", "C.S16(short?)", "short?").
WithLocation
(22, 9),
2268
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "3").WithArguments("int", "S32", "C.S32(int?)", "int?").
WithLocation
(23, 9),
2271
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "4").WithArguments("int", "S64", "C.S64(long?)", "long?").
WithLocation
(24, 9),
2274
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "5").WithArguments("int", "U08", "C.U08(byte?)", "byte?").
WithLocation
(25, 9),
2277
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "6").WithArguments("int", "U16", "C.U16(ushort?)", "ushort?").
WithLocation
(26, 9),
2280
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "7").WithArguments("int", "U32", "C.U32(uint?)", "uint?").
WithLocation
(27, 9),
2283
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "8").WithArguments("int", "U64", "C.U64(ulong?)", "ulong?").
WithLocation
(28, 9),
2286
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "9L").WithArguments("long", "S64", "C.S64(long?)", "long?").
WithLocation
(31, 9),
2289
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "10L").WithArguments("long", "U64", "C.U64(ulong?)", "ulong?").
WithLocation
(32, 9));
2334
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "s").WithArguments("S", "G", "E.G(S?)", "S?").
WithLocation
(26, 9),
2381
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "(a, b)").WithArguments("(A, B)", "F", "E.F((B, B))", "(B, B)").
WithLocation
(26, 9),
2384
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "(b, a)").WithArguments("(B, A)", "G", "E.G((B, B)?)", "(B, B)?").
WithLocation
(28, 9),
2387
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "(s, s)").WithArguments("(S, S)", "H", "E.H((S, S?))", "(S, S?)").
WithLocation
(30, 9));
Symbols\CovariantReturnTests.cs (122)
548
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses, "M").WithArguments("Derived.M()", "Base.M()", "object").
WithLocation
(8, 28)
643
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("covariant returns", "9.0").
WithLocation
(12, 28),
646
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P1").WithArguments("covariant returns", "9.0").
WithLocation
(13, 28),
649
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "this").WithArguments("covariant returns", "9.0").
WithLocation
(16, 28)
704
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(8, 28)
712
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses, "M").WithArguments("Derived.M()", "Base.M()", "object").
WithLocation
(8, 28)
719
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportCovariantReturnsOfClasses, "M").WithArguments("Derived.M()", "Base.M()", "object").
WithLocation
(8, 28)
778
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(8, 23)
837
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(8, 23)
899
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(9, 23)
959
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(8, 28)
967
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportCovariantPropertiesOfClasses, "M").WithArguments("Derived.M", "Base.M", "object").
WithLocation
(8, 28)
1028
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(8, 23)
1092
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(9, 23)
1154
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "this").WithArguments("covariant returns", "9.0").
WithLocation
(8, 28)
1216
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "this").WithArguments("covariant returns", "9.0").
WithLocation
(8, 23)
1283
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "this").WithArguments("covariant returns", "9.0").
WithLocation
(9, 23)
1341
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "E").WithArguments("Derived.E", "Base.E", "System.Func<object>").
WithLocation
(10, 40)
1347
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "E").WithArguments("Derived.E", "Base.E", "System.Func<object>").
WithLocation
(10, 40)
1385
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "P").WithArguments("Derived.P", "Base.P", "System.Func<object>").
WithLocation
(9, 34)
1391
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "P").WithArguments("Derived.P", "Base.P", "System.Func<object>").
WithLocation
(9, 34)
1433
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(4, 28)
1496
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(4, 28)
1560
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "this").WithArguments("covariant returns", "9.0").
WithLocation
(4, 28)
1625
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(8, 28)
1684
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M").WithArguments("Derived.M()", "Base.M()", "string").
WithLocation
(8, 28)
1690
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M").WithArguments("Derived.M()", "Base.M()", "string").
WithLocation
(8, 28)
1745
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M2").WithArguments("Derived.M2", "Base.M2").
WithLocation
(10, 19),
1748
Diagnostic(ErrorCode.WRN_NewRequired, "M2").WithArguments("Derived2.M2", "Derived.M2").
WithLocation
(15, 19),
1751
Diagnostic(ErrorCode.WRN_NewRequired, "M2").WithArguments("Derived3.M2", "Derived.M2").
WithLocation
(20, 19)
1757
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M2").WithArguments("Derived.M2", "Base.M2").
WithLocation
(10, 19),
1760
Diagnostic(ErrorCode.WRN_NewRequired, "M2").WithArguments("Derived2.M2", "Derived.M2").
WithLocation
(15, 19),
1763
Diagnostic(ErrorCode.WRN_NewRequired, "M2").WithArguments("Derived3.M2", "Derived.M2").
WithLocation
(20, 19)
1822
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("covariant returns", "9.0").
WithLocation
(10, 28),
1825
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M2").WithArguments("covariant returns", "9.0").
WithLocation
(11, 28),
1828
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M3").WithArguments("covariant returns", "9.0").
WithLocation
(12, 28),
1831
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M2").WithArguments("Derived2.M2", "Derived.M2", "string").
WithLocation
(17, 28),
1834
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M3").WithArguments("Derived2.M3", "Derived.M3", "string").
WithLocation
(18, 26)
1840
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M2").WithArguments("Derived2.M2", "Derived.M2", "string").
WithLocation
(17, 28),
1843
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M3").WithArguments("Derived2.M3", "Derived.M3", "string").
WithLocation
(18, 26)
1899
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("covariant returns", "9.0").
WithLocation
(9, 33),
1902
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M2").WithArguments("covariant returns", "9.0").
WithLocation
(10, 34)
1978
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M1").WithArguments("Derived.M1", "Base.M1", "IIn<object>").
WithLocation
(9, 33),
1981
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M2").WithArguments("Derived.M2", "Base.M2", "IOut<string>").
WithLocation
(10, 34)
1987
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M1").WithArguments("Derived.M1", "Base.M1", "IIn<object>").
WithLocation
(9, 33),
1990
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M2").WithArguments("Derived.M2", "Base.M2", "IOut<string>").
WithLocation
(10, 34)
2039
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M1").WithArguments("Derived.M1", "Base.M1", "int").
WithLocation
(9, 27),
2042
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M2").WithArguments("Derived.M2", "Base.M2", "A").
WithLocation
(10, 23)
2048
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M1").WithArguments("Derived.M1", "Base.M1", "int").
WithLocation
(9, 27),
2051
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "M2").WithArguments("Derived.M2", "Base.M2", "A").
WithLocation
(10, 23)
2091
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(8, 28)
2161
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("Derived.M1").
WithLocation
(9, 17),
2164
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M2").WithArguments("Derived.M2()").
WithLocation
(10, 17),
2167
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("C.M1").
WithLocation
(14, 17),
2170
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M2").WithArguments("C.M2()").
WithLocation
(15, 17)
2176
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("Derived.M1").
WithLocation
(9, 17),
2179
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M2").WithArguments("Derived.M2()").
WithLocation
(10, 17),
2182
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("C.M1").
WithLocation
(14, 17),
2185
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M2").WithArguments("C.M2()").
WithLocation
(15, 17)
2225
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P").WithArguments("covariant returns", "9.0").
WithLocation
(8, 28)
2290
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P").WithArguments("covariant returns", "9.0").
WithLocation
(8, 28),
2293
Diagnostic(ErrorCode.ERR_NoSetToOverride, "set").WithArguments("Derived2.P.set", "Derived.P").
WithLocation
(12, 53)
2299
Diagnostic(ErrorCode.ERR_NoSetToOverride, "set").WithArguments("Derived2.P.set", "Derived.P").
WithLocation
(12, 53)
2345
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P").WithArguments("covariant returns", "9.0").
WithLocation
(8, 28),
2348
Diagnostic(ErrorCode.ERR_NoSetToOverride, "set").WithArguments("Derived2.P.set", "Derived.P").
WithLocation
(12, 32)
2354
Diagnostic(ErrorCode.ERR_NoSetToOverride, "set").WithArguments("Derived2.P.set", "Derived.P").
WithLocation
(12, 32)
2399
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P").WithArguments("covariant returns", "9.0").
WithLocation
(8, 40),
2402
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P").WithArguments("covariant returns", "9.0").
WithLocation
(12, 28)
2469
Diagnostic(ErrorCode.ERR_AmbigOverride, "M").WithArguments("Base<T>.M(string)", "Base<T>.M(T)", "Derived").
WithLocation
(9, 28)
2475
Diagnostic(ErrorCode.ERR_AmbigOverride, "M").WithArguments("Base<T>.M(string)", "Base<T>.M(T)", "Derived").
WithLocation
(9, 28)
2517
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(8, 49),
2520
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(12, 28)
2867
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(4, 28)
2933
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P").WithArguments("covariant returns", "9.0").
WithLocation
(4, 28)
3000
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(4, 28)
3100
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "get_P").WithArguments("covariant returns", "9.0").
WithLocation
(14, 28),
3103
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P").WithArguments("covariant returns", "9.0").
WithLocation
(19, 28)
3142
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P").WithArguments("covariant returns", "9.0").
WithLocation
(12, 28)
3184
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("covariant returns", "9.0").
WithLocation
(12, 28)
3572
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("covariant returns", "9.0").
WithLocation
(20, 29),
3575
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P1").WithArguments("covariant returns", "9.0").
WithLocation
(21, 29),
3578
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M2").WithArguments("covariant returns", "9.0").
WithLocation
(22, 28),
3581
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P2").WithArguments("covariant returns", "9.0").
WithLocation
(23, 28),
3584
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M3").WithArguments("covariant returns", "9.0").
WithLocation
(24, 35),
3587
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P3").WithArguments("covariant returns", "9.0").
WithLocation
(25, 35),
3590
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M4").WithArguments("covariant returns", "9.0").
WithLocation
(26, 34),
3593
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P4").WithArguments("covariant returns", "9.0").
WithLocation
(27, 34),
3596
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M5").WithArguments("covariant returns", "9.0").
WithLocation
(28, 34),
3599
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P5").WithArguments("covariant returns", "9.0").
WithLocation
(29, 34),
3602
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M6").WithArguments("covariant returns", "9.0").
WithLocation
(30, 33),
3605
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "P6").WithArguments("covariant returns", "9.0").
WithLocation
(31, 33)
3612
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "M1").
WithLocation
(20, 29),
3615
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInReturnTypeOnOverride, "null").
WithLocation
(21, 35),
3618
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M3").
WithLocation
(24, 35),
3621
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "null!").
WithLocation
(25, 41),
3624
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "M6").
WithLocation
(30, 33),
3627
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, "null!").
WithLocation
(31, 39)
3752
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("covariant returns", "9.0").
WithLocation
(4, 28),
3755
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M2").WithArguments("covariant returns", "9.0").
WithLocation
(5, 28)
3857
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "M").WithArguments("Base1<string>.M(ref string, out string)", "Derived.M(ref string, out string)").
WithLocation
(4, 27)
3980
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "M").WithArguments("Base1<string>.M(ref string, out string)", "Derived.M(ref string, out string)").
WithLocation
(5, 27)
4100
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "M").WithArguments("Base<string>.M(ref string, out string)", "Derived.M(ref string, out string)").
WithLocation
(4, 27)
4215
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "M").WithArguments("Base<string>.M(ref string, out string)", "Derived.M(ref string, out string)").
WithLocation
(5, 27)
4504
Diagnostic(ErrorCode.ERR_MemberReserved, "default(Pbject)").WithArguments("get_Prop", "Base<Pbject>").
WithLocation
(withPropertyDeclarationFirst ? 4 : 6, 35);
4522
Diagnostic(ErrorCode.ERR_MemberReserved, "default(Pbject)").WithArguments("get_Prop", "Base<Pbject>").
WithLocation
(withPropertyDeclarationFirst ? 4 : 6, 35)
4589
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "Base").
WithLocation
(5, 25)
4634
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "Base<T>").
WithLocation
(5, 25),
4637
Diagnostic(ErrorCode.ERR_AmbigOverride, "M").WithArguments("Base<T>.M(int)", "Base<T>.M(int)", "Derived").
WithLocation
(10, 26)
4685
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "Container<T>.Base").
WithLocation
(7, 29)
4728
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "Container<T>.Base").
WithLocation
(7, 29)
4742
Diagnostic(ErrorCode.ERR_AmbigOverride, "M").WithArguments("Container<T>.Base.M(int)", "Container<T>.Base.M(int)", "Derived").
WithLocation
(4, 26)
4748
Diagnostic(ErrorCode.ERR_AmbigOverride, "M").WithArguments("Container<T>.Base.M(int)", "Container<T>.Base.M(int)", "Derived").
WithLocation
(4, 26)
4791
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "Container<T>.Base").
WithLocation
(8, 29)
4805
Diagnostic(ErrorCode.ERR_AmbigOverride, "M").WithArguments("Container<T>.Base.M(int)", "Container<T>.Base.M(T)", "Derived").
WithLocation
(4, 26)
4811
Diagnostic(ErrorCode.ERR_AmbigOverride, "M").WithArguments("Container<T>.Base.M(int)", "Container<T>.Base.M(T)", "Derived").
WithLocation
(4, 26)
4855
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "get_P").WithArguments("get_P", "Root").
WithLocation
(5, 24)
4912
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "get_P").WithArguments("get_P", "Root<T>").
WithLocation
(5, 24)
4926
Diagnostic(ErrorCode.ERR_AmbigOverride, "get_P").WithArguments("Root<T>.get_P()", "Root<T>.get_P()", "Derived").
WithLocation
(4, 25)
4932
Diagnostic(ErrorCode.ERR_AmbigOverride, "get_P").WithArguments("Root<T>.get_P()", "Root<T>.get_P()", "Derived").
WithLocation
(4, 25)
4976
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "Root<T>").
WithLocation
(6, 25)
4990
Diagnostic(ErrorCode.ERR_AmbigOverride, "M").WithArguments("Root<T>.M(ref int)", "Root<T>.M(ref T)", "Derived").
WithLocation
(4, 26)
4996
Diagnostic(ErrorCode.ERR_AmbigOverride, "M").WithArguments("Root<T>.M(ref int)", "Root<T>.M(ref T)", "Derived").
WithLocation
(4, 26)
Symbols\CSharpCompilerFeatureRequiredTests.cs (138)
78
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnType").WithArguments("OnType", "test").
WithLocation
(2, 1),
81
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnType").WithArguments("OnType", "test").
WithLocation
(3, 1),
84
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("OnType", "test").
WithLocation
(3, 8),
87
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("OnMethod.M()", "test").
WithLocation
(4, 10),
90
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("void value", "test").
WithLocation
(5, 16),
93
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("int param", "test").
WithLocation
(6, 13),
96
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Field").WithArguments("OnField.Field", "test").
WithLocation
(7, 13),
99
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("OnProperty.Property", "test").
WithLocation
(8, 12),
102
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("OnProperty.Property", "test").
WithLocation
(9, 16),
105
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("OnPropertySetter.Property.set", "test").
WithLocation
(10, 18),
108
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("OnPropertyGetter.Property.get", "test").
WithLocation
(13, 22),
111
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("OnEvent.Event", "test").
WithLocation
(14, 9),
114
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("OnEvent.Event", "test").
WithLocation
(15, 9),
117
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEnum").WithArguments("OnEnum", "test").
WithLocation
(20, 1),
120
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "A").WithArguments("OnEnumMember.A", "test").
WithLocation
(21, 18),
123
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnClassTypeParameter<int>").WithArguments("T", "test").
WithLocation
(22, 1),
126
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M<int>").WithArguments("T", "test").
WithLocation
(23, 23),
129
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnDelegateType").WithArguments("OnDelegateType", "test").
WithLocation
(24, 1),
132
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "set_Property").WithArguments("int param", "test").
WithLocation
(25, 28),
135
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "get_Property").WithArguments("int param", "test").
WithLocation
(26, 32),
138
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "new OnThisIndexerParameter()[1]").WithArguments("int i", "test").
WithLocation
(27, 1),
141
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "new OnThisIndexerParameter()[1]").WithArguments("int i", "test").
WithLocation
(28, 5)
239
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnType").WithArguments("OnModule", "test").
WithLocation
(2, 1),
242
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnType").WithArguments("OnModule", "test").
WithLocation
(3, 1),
245
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("OnModule", "test").
WithLocation
(3, 8),
248
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnMethod").WithArguments("OnModule", "test").
WithLocation
(4, 1),
251
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("OnModule", "test").
WithLocation
(4, 10),
254
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnMethodReturn").WithArguments("OnModule", "test").
WithLocation
(5, 1),
257
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("OnModule", "test").
WithLocation
(5, 16),
260
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnParameter").WithArguments("OnModule", "test").
WithLocation
(6, 1),
263
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("OnModule", "test").
WithLocation
(6, 13),
266
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnField").WithArguments("OnModule", "test").
WithLocation
(7, 5),
269
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Field").WithArguments("OnModule", "test").
WithLocation
(7, 13),
272
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnProperty").WithArguments("OnModule", "test").
WithLocation
(8, 1),
275
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("OnModule", "test").
WithLocation
(8, 12),
278
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnProperty").WithArguments("OnModule", "test").
WithLocation
(9, 5),
281
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("OnModule", "test").
WithLocation
(9, 16),
284
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnPropertySetter").WithArguments("OnModule", "test").
WithLocation
(10, 1),
287
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("OnModule", "test").
WithLocation
(10, 18),
290
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnPropertySetter").WithArguments("OnModule", "test").
WithLocation
(11, 5),
293
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("OnModule", "test").
WithLocation
(11, 22),
296
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnPropertyGetter").WithArguments("OnModule", "test").
WithLocation
(12, 1),
299
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("OnModule", "test").
WithLocation
(12, 18),
302
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnPropertyGetter").WithArguments("OnModule", "test").
WithLocation
(13, 5),
305
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("OnModule", "test").
WithLocation
(13, 22),
308
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEvent").WithArguments("OnModule", "test").
WithLocation
(14, 1),
311
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("OnModule", "test").
WithLocation
(14, 9),
314
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEvent").WithArguments("OnModule", "test").
WithLocation
(15, 1),
317
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("OnModule", "test").
WithLocation
(15, 9),
320
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEventAdder").WithArguments("OnModule", "test").
WithLocation
(16, 1),
323
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("OnModule", "test").
WithLocation
(16, 14),
326
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEventAdder").WithArguments("OnModule", "test").
WithLocation
(17, 1),
329
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("OnModule", "test").
WithLocation
(17, 14),
332
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEventRemover").WithArguments("OnModule", "test").
WithLocation
(18, 1),
335
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("OnModule", "test").
WithLocation
(18, 16),
338
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEventRemover").WithArguments("OnModule", "test").
WithLocation
(19, 1),
341
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("OnModule", "test").
WithLocation
(19, 16),
344
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEnum").WithArguments("OnModule", "test").
WithLocation
(20, 1),
347
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEnumMember").WithArguments("OnModule", "test").
WithLocation
(21, 5),
350
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "A").WithArguments("OnModule", "test").
WithLocation
(21, 18),
353
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnClassTypeParameter<int>").WithArguments("OnModule", "test").
WithLocation
(22, 1),
356
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnMethodTypeParameter").WithArguments("OnModule", "test").
WithLocation
(23, 1),
359
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M<int>").WithArguments("OnModule", "test").
WithLocation
(23, 23),
362
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnDelegateType").WithArguments("OnModule", "test").
WithLocation
(24, 1),
365
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnIndexedPropertyParameter").WithArguments("OnModule", "test").
WithLocation
(25, 1),
368
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "set_Property").WithArguments("OnModule", "test").
WithLocation
(25, 28),
371
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnIndexedPropertyParameter").WithArguments("OnModule", "test").
WithLocation
(26, 5),
374
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "get_Property").WithArguments("OnModule", "test").
WithLocation
(26, 32),
377
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnThisIndexerParameter").WithArguments("OnModule", "test").
WithLocation
(27, 5),
380
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnThisIndexerParameter").WithArguments("OnModule", "test").
WithLocation
(27, 5),
383
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnThisIndexerParameter").WithArguments("OnModule", "test").
WithLocation
(28, 9),
386
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnThisIndexerParameter").WithArguments("OnModule", "test").
WithLocation
(28, 9)
397
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnType").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(2, 1),
400
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnType").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(3, 1),
403
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(3, 8),
406
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnMethod").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(4, 1),
409
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(4, 10),
412
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnMethodReturn").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(5, 1),
415
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(5, 16),
418
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnParameter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(6, 1),
421
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(6, 13),
424
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnField").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(7, 5),
427
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Field").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(7, 13),
430
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnProperty").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(8, 1),
433
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(8, 12),
436
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnProperty").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(9, 5),
439
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(9, 16),
442
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnPropertySetter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(10, 1),
445
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(10, 18),
448
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnPropertySetter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(11, 5),
451
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(11, 22),
454
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnPropertyGetter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(12, 1),
457
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(12, 18),
460
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnPropertyGetter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(13, 5),
463
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Property").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(13, 22),
466
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEvent").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(14, 1),
469
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(14, 9),
472
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEvent").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(15, 1),
475
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(15, 9),
478
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEventAdder").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(16, 1),
481
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(16, 14),
484
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEventAdder").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(17, 1),
487
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(17, 14),
490
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEventRemover").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(18, 1),
493
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(18, 16),
496
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEventRemover").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(19, 1),
499
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "Event").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(19, 16),
502
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEnum").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(20, 1),
505
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnEnumMember").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(21, 5),
508
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "A").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(21, 18),
511
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnClassTypeParameter<int>").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(22, 1),
514
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnMethodTypeParameter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(23, 1),
517
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "M<int>").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(23, 23),
520
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnDelegateType").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(24, 1),
523
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnIndexedPropertyParameter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(25, 1),
526
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "set_Property").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(25, 28),
529
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnIndexedPropertyParameter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(26, 5),
532
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "get_Property").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(26, 32),
535
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnThisIndexerParameter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(27, 5),
538
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnThisIndexerParameter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(27, 5),
541
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnThisIndexerParameter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(28, 9),
544
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "OnThisIndexerParameter").WithArguments("AssemblyTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "test").
WithLocation
(28, 9)
644
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnType"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(4, 2),
647
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnMethod"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(11, 6),
650
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnMethodReturn"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(17, 14),
653
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnParameter"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(23, 27),
656
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnField"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(28, 6),
659
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnProperty"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(34, 6),
662
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnPropertySetter"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(40, 45),
665
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnPropertyGetter"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(45, 35),
668
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnEvent"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(50, 6),
671
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnEventAdder"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(56, 41),
674
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnEventRemover"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(61, 41),
677
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnEnum"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(64, 2),
680
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnEnumMember"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(72, 6),
683
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnClassTypeParameter"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(75, 36),
686
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnMethodTypeParameter"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(81, 27),
689
Diagnostic(ErrorCode.ERR_ExplicitReservedAttr, @"CompilerFeatureRequired(""OnDelegateType"")").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute").
WithLocation
(84, 2)
Symbols\CustomModifiersTests.cs (8)
1569
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "ITest3").WithArguments("ITest3<T, U>", "ITest0<T>", "ITest0<U>").
WithLocation
(2, 11),
1572
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "ITest4").WithArguments("ITest4<T, U>", "ITest0<T>", "ITest0<U>").
WithLocation
(6, 11)
1608
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "ITest3").WithArguments("ITest3<T, U>", "ITest0<T>", "ITest0<U>").
WithLocation
(2, 11),
1611
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "ITest4").WithArguments("ITest4<T, U>", "ITest0<T>", "ITest0<U>").
WithLocation
(6, 11)
1679
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "ITest3").WithArguments("ITest3<T, U>", "ITest0<T>", "ITest0<U>").
WithLocation
(2, 11),
1682
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "ITest4").WithArguments("ITest4<T, U>", "ITest0<T>", "ITest0<U>").
WithLocation
(6, 11)
1721
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "ITest3").WithArguments("ITest3<T, U>", "ITest0<T>", "ITest0<U>").
WithLocation
(2, 11),
1724
Diagnostic(ErrorCode.ERR_UnifyingInterfaceInstantiations, "ITest4").WithArguments("ITest4<T, U>", "ITest0<T>", "ITest0<U>").
WithLocation
(6, 11)
Symbols\DefaultInterfaceImplementationTests.cs (2752)
1614
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M1").
WithLocation
(4, 10)
1622
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(4, 25)
1648
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.M1()", "I1.M1()", "Test2").
WithLocation
(2, 15)
1656
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.M1()", "I1.M1()", "Test2").
WithLocation
(2, 15)
1704
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.M1()", "I1.M1()", "Test2").
WithLocation
(2, 15)
1712
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.M1()", "I1.M1()", "Test2").
WithLocation
(2, 15)
1805
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 10),
1808
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M1").
WithLocation
(4, 10)
1816
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("virtual", "10.0", "11.0").
WithLocation
(4, 25),
1819
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(4, 25)
1845
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.M1()", "I1.M1()", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
1848
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.M1()", "I1.M1()", "Test2").
WithLocation
(2, 15)
1856
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.M1()", "I1.M1()", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
1859
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.M1()", "I1.M1()", "Test2").
WithLocation
(2, 15)
1902
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 10)
1910
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("virtual", "10.0", "11.0").
WithLocation
(4, 25)
1954
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.M1()", "I1.M1()", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15)
1962
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.M1()", "I1.M1()", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15)
1996
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M1").
WithLocation
(4, 8)
2004
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(4, 23)
2045
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 17)
2057
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M1").
WithLocation
(4, 17)
2294
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(4, 7)
2363
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string>", "Test1").
WithLocation
(4, 7)
2436
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(4, 7)
2509
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string>", "Test1").
WithLocation
(4, 7)
2989
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "add").
WithLocation
(4, 13),
2992
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "remove").
WithLocation
(4, 18),
2995
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "P1").WithArguments("I1.P1").
WithLocation
(4, 9),
2998
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "int P1 {add; remove;} => 0;").
WithLocation
(4, 5)
3025
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "add").
WithLocation
(4, 29),
3028
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "remove").
WithLocation
(4, 34),
3031
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "P1").WithArguments("I1.P1").
WithLocation
(4, 25),
3034
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "static abstract int P1 {add; remove;} => 0;").
WithLocation
(4, 5)
3061
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "add").
WithLocation
(4, 28),
3064
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "remove").
WithLocation
(4, 33),
3067
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "P1").WithArguments("I1.P1").
WithLocation
(4, 24),
3070
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "static virtual int P1 {add; remove;} => 0;").
WithLocation
(4, 5)
3102
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "int P1 {get; set;} => 0;").
WithLocation
(4, 5)
3127
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "static abstract int P1 {get; set;} => 0;").
WithLocation
(4, 5)
3152
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "static virtual int P1 {get; set;} => 0;").
WithLocation
(4, 5)
3182
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "add").
WithLocation
(4, 13),
3185
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "remove").
WithLocation
(4, 18),
3188
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P1").
WithLocation
(4, 9),
3191
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "P1").WithArguments("I1.P1").
WithLocation
(4, 9)
3216
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "add").
WithLocation
(4, 29),
3219
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "remove").
WithLocation
(4, 34),
3222
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "P1").
WithLocation
(4, 25),
3225
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "P1").WithArguments("I1.P1").
WithLocation
(4, 25)
3250
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "add").
WithLocation
(4, 28),
3253
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "remove").
WithLocation
(4, 33),
3256
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "P1").WithArguments("I1.P1").
WithLocation
(4, 24)
3286
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P1").
WithLocation
(4, 9)
3311
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "P1").
WithLocation
(4, 25)
3378
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I1.P1.set").
WithLocation
(11, 9)
3434
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.P1.get").
WithLocation
(6, 9)
4048
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "1").
WithLocation
(4, 15),
4051
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(6, 7),
4054
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(8, 7),
4057
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(11, 9),
4060
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(12, 9)
4068
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "1").
WithLocation
(4, 30),
4071
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(6, 7),
4074
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(8, 7),
4077
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(11, 9),
4080
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(12, 9)
4101
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P7.set", "I1.P7.set", "Test2").
WithLocation
(2, 15),
4104
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P1.get", "I1.P1.get", "Test2").
WithLocation
(2, 15),
4107
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P3.get", "I1.P3.get", "Test2").
WithLocation
(2, 15),
4110
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P5.set", "I1.P5.set", "Test2").
WithLocation
(2, 15),
4113
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P7.get", "I1.P7.get", "Test2").
WithLocation
(2, 15)
4121
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P7.set", "I1.P7.set", "Test2").
WithLocation
(2, 15),
4124
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P1.get", "I1.P1.get", "Test2").
WithLocation
(2, 15),
4127
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P3.get", "I1.P3.get", "Test2").
WithLocation
(2, 15),
4130
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P5.set", "I1.P5.set", "Test2").
WithLocation
(2, 15),
4133
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P7.get", "I1.P7.get", "Test2").
WithLocation
(2, 15)
4229
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P7.set", "I1.P7.set", "Test2").
WithLocation
(2, 15),
4232
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P1.get", "I1.P1.get", "Test2").
WithLocation
(2, 15),
4235
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P3.get", "I1.P3.get", "Test2").
WithLocation
(2, 15),
4238
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P5.set", "I1.P5.set", "Test2").
WithLocation
(2, 15),
4241
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P7.get", "I1.P7.get", "Test2").
WithLocation
(2, 15)
4249
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P1.get", "I1.P1.get", "Test2").
WithLocation
(2, 15),
4252
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P3.get", "I1.P3.get", "Test2").
WithLocation
(2, 15),
4255
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P5.set", "I1.P5.set", "Test2").
WithLocation
(2, 15),
4258
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P7.get", "I1.P7.get", "Test2").
WithLocation
(2, 15),
4261
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P7.set", "I1.P7.set", "Test2").
WithLocation
(2, 15)
4356
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 15),
4359
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "1").
WithLocation
(4, 15),
4362
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 14),
4365
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(5, 14),
4368
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 14),
4371
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(6, 14),
4374
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 14),
4377
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(7, 14),
4380
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 31),
4383
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(7, 31)
4402
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P7.set", "I1.P7.set", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
4405
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P7.set", "I1.P7.set", "Test2").
WithLocation
(2, 15),
4408
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P1.get", "I1.P1.get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
4411
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P1.get", "I1.P1.get", "Test2").
WithLocation
(2, 15),
4414
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P3.get", "I1.P3.get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
4417
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P3.get", "I1.P3.get", "Test2").
WithLocation
(2, 15),
4420
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P5.set", "I1.P5.set", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
4423
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P5.set", "I1.P5.set", "Test2").
WithLocation
(2, 15),
4426
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P7.get", "I1.P7.get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
4429
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.P7.get", "I1.P7.get", "Test2").
WithLocation
(2, 15)
4455
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("virtual", "10.0", "11.0").
WithLocation
(4, 24),
4458
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "1").
WithLocation
(4, 30),
4461
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P3").WithArguments("virtual", "10.0", "11.0").
WithLocation
(5, 24),
4464
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(5, 29),
4467
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P5").WithArguments("virtual", "10.0", "11.0").
WithLocation
(6, 24),
4470
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(6, 29),
4473
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P7").WithArguments("virtual", "10.0", "11.0").
WithLocation
(7, 24),
4476
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(7, 29),
4479
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(7, 46)
4497
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P1.get", "I1.P1.get", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
4500
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P1.get", "I1.P1.get", "Test2").
WithLocation
(2, 15),
4503
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P3.get", "I1.P3.get", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
4506
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P3.get", "I1.P3.get", "Test2").
WithLocation
(2, 15),
4509
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P5.set", "I1.P5.set", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
4512
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P5.set", "I1.P5.set", "Test2").
WithLocation
(2, 15),
4515
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P7.get", "I1.P7.get", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
4518
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P7.get", "I1.P7.get", "Test2").
WithLocation
(2, 15),
4521
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P7.set", "I1.P7.set", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
4524
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.P7.set", "I1.P7.set", "Test2").
WithLocation
(2, 15)
4560
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 15),
4563
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 14),
4566
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 14),
4569
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 14),
4572
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 31)
4580
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("virtual", "10.0", "11.0").
WithLocation
(4, 24),
4583
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P3").WithArguments("virtual", "10.0", "11.0").
WithLocation
(5, 24),
4586
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P5").WithArguments("virtual", "10.0", "11.0").
WithLocation
(6, 24),
4589
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P7").WithArguments("virtual", "10.0", "11.0").
WithLocation
(7, 24)
4627
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P7.set", "I1.P7.set", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
4630
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P1.get", "I1.P1.get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
4633
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P3.get", "I1.P3.get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
4636
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P5.set", "I1.P5.set", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
4639
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P7.get", "I1.P7.get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15)
4647
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P1.get", "I1.P1.get", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
4650
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P3.get", "I1.P3.get", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
4653
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P5.set", "I1.P5.set", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
4656
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P7.get", "I1.P7.get", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
4659
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.P7.set", "I1.P7.set", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15)
4690
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "P1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 16),
4693
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "P3").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 16),
4696
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "P5").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 16),
4699
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "P7").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 16)
4925
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "add").
WithLocation
(4, 22),
4928
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "remove").
WithLocation
(4, 27),
4931
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "this").WithArguments("I1.this[int]").
WithLocation
(4, 9),
4934
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "int this[int i] {add; remove;} => 0;").
WithLocation
(4, 5)
4962
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "int this[int i] {get; set;} => 0;").
WithLocation
(4, 5)
4990
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(4, 36),
4993
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "add").
WithLocation
(4, 22),
4996
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "remove").
WithLocation
(4, 27),
4999
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "this").WithArguments("I1.this[int]").
WithLocation
(4, 9)
5027
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(4, 33)
5647
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "1").
WithLocation
(4, 26),
5650
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(6, 7),
5653
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(8, 7),
5656
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(11, 9),
5659
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(12, 9)
5903
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 26),
5906
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "1").
WithLocation
(4, 26),
5909
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 7),
5912
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(6, 7),
5915
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(8, 7),
5918
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(8, 7),
5921
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(11, 9),
5924
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(11, 9),
5927
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(12, 9),
5930
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(12, 9)
5949
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.this[long].set", "I1.this[long].set", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
5952
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.this[long].set", "I1.this[long].set", "Test2").
WithLocation
(2, 15),
5955
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.this[sbyte].get", "I1.this[sbyte].get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
5958
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.this[sbyte].get", "I1.this[sbyte].get", "Test2").
WithLocation
(2, 15),
5961
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.this[short].get", "I1.this[short].get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
5964
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.this[short].get", "I1.this[short].get", "Test2").
WithLocation
(2, 15),
5967
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.this[int].set", "I1.this[int].set", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
5970
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.this[int].set", "I1.this[int].set", "Test2").
WithLocation
(2, 15),
5973
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.this[long].get", "I1.this[long].get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
5976
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.this[long].get", "I1.this[long].get", "Test2").
WithLocation
(2, 15)
6012
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 26),
6015
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 7),
6018
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(8, 7),
6021
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(11, 9),
6024
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(12, 9)
6058
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.this[long].set", "I1.this[long].set", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
6061
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.this[sbyte].get", "I1.this[sbyte].get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
6064
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.this[short].get", "I1.this[short].get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
6067
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.this[int].set", "I1.this[int].set", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
6070
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.this[long].get", "I1.this[long].get", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15)
6106
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(4, 16),
6109
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 33),
6112
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(5, 16),
6115
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 7),
6118
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(7, 16),
6121
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(8, 7),
6124
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(9, 16),
6127
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(11, 9),
6130
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(12, 9)
6162
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 25 + declModifiers.Length)
6478
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 25 + declModifiers.Length)
6507
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(6, 12),
6510
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 25 + declModifiers.Length)
6539
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(6, 15),
6542
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 25 + declModifiers.Length)
6566
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 25)
6595
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(6, 12),
6598
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(7, 15)
6627
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=>").WithArguments("=>").
WithLocation
(8, 7),
6630
Diagnostic(ErrorCode.ERR_AddOrRemoveExpected, "get").
WithLocation
(6, 9),
6633
Diagnostic(ErrorCode.ERR_AddOrRemoveExpected, "set").
WithLocation
(7, 9),
6665
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(7, 15)
6694
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(6, 12)
6765
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").
WithLocation
(10, 25 + implModifiers.Length)
6868
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").
WithLocation
(10, 25 + implModifiers.Length)
6959
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").
WithLocation
(10, 25 + implModifiers.Length)
7066
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E7").WithArguments("Base.E7").
WithLocation
(10, 29 + implModifiers.Length)
7132
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(6, 9),
7135
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(7, 9)
7143
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "add").
WithLocation
(6, 9),
7146
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "remove").
WithLocation
(7, 9)
7167
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.E7.remove", "I1.E7.remove", "Test2").
WithLocation
(2, 15),
7170
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.E7.add", "I1.E7.add", "Test2").
WithLocation
(2, 15)
7178
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.E7.add", "I1.E7.add", "Test2").
WithLocation
(2, 15),
7181
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.E7.remove", "I1.E7.remove", "Test2").
WithLocation
(2, 15)
7253
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.E7.remove", "I1.E7.remove", "Test2").
WithLocation
(2, 15),
7256
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.E7.add", "I1.E7.add", "Test2").
WithLocation
(2, 15)
7264
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.E7.add", "I1.E7.add", "Test2").
WithLocation
(2, 15),
7267
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.E7.remove", "I1.E7.remove", "Test2").
WithLocation
(2, 15)
7354
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 9),
7357
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(6, 9),
7360
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 9),
7363
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(7, 9)
7382
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.E7.remove", "I1.E7.remove", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
7385
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.E7.remove", "I1.E7.remove", "Test2").
WithLocation
(2, 15),
7388
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.E7.add", "I1.E7.add", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
7391
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.E7.add", "I1.E7.add", "Test2").
WithLocation
(2, 15)
7418
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "E7").WithArguments("virtual", "10.0", "11.0").
WithLocation
(4, 40),
7421
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "add").
WithLocation
(6, 9),
7424
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "remove").
WithLocation
(7, 9)
7442
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.E7.add", "I1.E7.add", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
7445
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.E7.add", "I1.E7.add", "Test2").
WithLocation
(2, 15),
7448
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.E7.remove", "I1.E7.remove", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
7451
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.E7.remove", "I1.E7.remove", "Test2").
WithLocation
(2, 15)
7488
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 9),
7491
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 9)
7499
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "E7").WithArguments("virtual", "10.0", "11.0").
WithLocation
(4, 40)
7537
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.E7.remove", "I1.E7.remove", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15),
7540
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.E7.add", "I1.E7.add", "Test2", "default interface implementation", "7.3", "8.0").
WithLocation
(2, 15)
7548
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.E7.add", "I1.E7.add", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15),
7551
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.E7.remove", "I1.E7.remove", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 15)
7583
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "E7").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 32)
7634
Diagnostic(ErrorCode.ERR_NoBaseClass, "base").
WithLocation
(6, 9)
7907
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").
WithLocation
(4, 16),
7910
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F2").
WithLocation
(39, 16)
8185
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").
WithLocation
(4, 16),
8188
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F2").
WithLocation
(39, 16)
8221
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(12, 19),
8224
Diagnostic(ErrorCode.ERR_BadAsyncLacksBody, "M12").
WithLocation
(15, 16),
8227
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M05").WithArguments("I1.M05()").
WithLocation
(8, 18),
8230
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M06").WithArguments("I1.M06()").
WithLocation
(9, 17),
8233
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M07").WithArguments("I1.M07()").
WithLocation
(10, 18),
8236
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M08").WithArguments("I1.M08()").
WithLocation
(11, 17),
8239
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M11").WithArguments("I1.M11()").
WithLocation
(14, 17)
8434
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("public", "7.3", "8.0").
WithLocation
(4, 17),
8437
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("protected", "7.3", "8.0").
WithLocation
(5, 20),
8440
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("protected internal", "7.3", "8.0").
WithLocation
(6, 29),
8443
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M04").WithArguments("internal", "7.3", "8.0").
WithLocation
(7, 19),
8446
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("private", "7.3", "8.0").
WithLocation
(8, 18),
8449
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("static", "7.3", "8.0").
WithLocation
(9, 17),
8452
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("virtual", "7.3", "8.0").
WithLocation
(10, 18),
8455
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("sealed", "7.3", "8.0").
WithLocation
(11, 17),
8458
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(12, 19),
8461
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("abstract", "7.3", "8.0").
WithLocation
(13, 19),
8464
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M11").WithArguments("extern", "7.3", "8.0").
WithLocation
(14, 17),
8467
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M12").WithArguments("async", "7.3", "8.0").
WithLocation
(15, 16),
8470
Diagnostic(ErrorCode.ERR_BadAsyncLacksBody, "M12").
WithLocation
(15, 16),
8473
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M05").WithArguments("I1.M05()").
WithLocation
(8, 18),
8476
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M06").WithArguments("I1.M06()").
WithLocation
(9, 17),
8479
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M07").WithArguments("I1.M07()").
WithLocation
(10, 18),
8482
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M08").WithArguments("I1.M08()").
WithLocation
(11, 17),
8485
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M11").WithArguments("I1.M11()").
WithLocation
(14, 17),
8488
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M13").WithArguments("private protected", "7.3", "8.0").
WithLocation
(16, 28)
8501
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "M02").
WithLocation
(5, 20),
8504
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "M03").
WithLocation
(6, 29),
8507
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M05").WithArguments("I1.M05()").
WithLocation
(8, 18),
8510
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M06").WithArguments("I1.M06()").
WithLocation
(9, 17),
8513
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M07").WithArguments("I1.M07()").
WithLocation
(10, 18),
8516
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M08").WithArguments("I1.M08()").
WithLocation
(11, 17),
8519
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(12, 19),
8522
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M11").
WithLocation
(14, 17),
8525
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M11").WithArguments("I1.M11()").
WithLocation
(14, 17),
8528
Diagnostic(ErrorCode.ERR_BadAsyncLacksBody, "M12").
WithLocation
(15, 16),
8531
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "M13").
WithLocation
(16, 28)
8633
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "7.3", "8.0").
WithLocation
(4, 26),
8636
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("public", "7.3", "8.0").
WithLocation
(4, 26)
8759
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "9.0", "11.0").
WithLocation
(4, 26),
8762
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M2").WithArguments("virtual", "9.0", "11.0").
WithLocation
(6, 25),
8765
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M3").WithArguments("sealed", "9.0", "11.0").
WithLocation
(10, 24),
8768
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.M1()").
WithLocation
(27, 15),
8771
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("Test1.M1()").
WithLocation
(22, 13),
8774
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M2").WithArguments("Test1.M2()").
WithLocation
(23, 13),
8777
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M3").WithArguments("Test1.M3()").
WithLocation
(24, 13),
8780
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M4").WithArguments("Test1.M4()").
WithLocation
(21, 13),
8783
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.M1()").
WithLocation
(19, 15)
8914
Diagnostic(ErrorCode.ERR_SealedNonOverride, "M3").WithArguments("I1.M3()").
WithLocation
(10, 25),
8917
Diagnostic(ErrorCode.ERR_VirtualPrivate, "M2").WithArguments("I1.M2()").
WithLocation
(6, 26),
8920
Diagnostic(ErrorCode.ERR_VirtualPrivate, "M1").WithArguments("I1.M1()").
WithLocation
(4, 27),
8923
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.M1()").
WithLocation
(15, 15)
9055
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(14, 17)
9063
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "9.0", "11.0").
WithLocation
(4, 28),
9066
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(9, 9)
9105
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").
WithLocation
(5, 17)
9118
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").
WithLocation
(5, 17)
9130
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.M1()").
WithLocation
(2, 15)
9228
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(9, 25)
9233
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").
WithLocation
(9, 25)
9364
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.M1()").
WithLocation
(9, 13)
9375
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.M1()").
WithLocation
(9, 13)
9424
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(9, 17)
9429
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").
WithLocation
(9, 17)
9477
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(9, 25)
9482
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").
WithLocation
(9, 25)
9535
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(9, 26)
9540
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").
WithLocation
(9, 26)
9593
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(9, 17)
9598
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").
WithLocation
(9, 17)
9709
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "void").
WithLocation
(9, 15)
9729
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "void").
WithLocation
(2, 15)
9741
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "void").
WithLocation
(2, 15)
9786
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test2", "I1.M1()", "Test2.M1()", "9.0", "10.0").
WithLocation
(11, 17)
9818
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "M1").WithArguments("Test2", "I1.M1()", "Test2.M1()").
WithLocation
(4, 17)
9902
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.M1()").
WithLocation
(7, 15)
10014
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M4").WithArguments("I1.M4()").
WithLocation
(15, 24),
10017
Diagnostic(ErrorCode.ERR_SealedNonOverride, "M2").WithArguments("I1.M2()").
WithLocation
(9, 26),
10020
Diagnostic(ErrorCode.ERR_SealedNonOverride, "M3").WithArguments("I1.M3()").
WithLocation
(11, 25),
10023
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M4").WithArguments("Test1.M4()").
WithLocation
(23, 13),
10026
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("Test1.M1()").
WithLocation
(20, 13),
10029
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M2").WithArguments("Test1.M2()").
WithLocation
(21, 13),
10032
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M3").WithArguments("Test1.M3()").
WithLocation
(22, 13)
10125
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M3").WithArguments("I1.M3()").
WithLocation
(6, 27),
10128
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M3").WithArguments("method", "I1.M3()").
WithLocation
(6, 27),
10131
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M2").WithArguments("method", "I1.M2()").
WithLocation
(4, 27),
10134
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.M3()").
WithLocation
(17, 15),
10137
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.M2()").
WithLocation
(17, 15)
10278
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("extern", "7.3", "8.0").
WithLocation
(4, 17),
10281
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M2").WithArguments("extern", "7.3", "8.0").
WithLocation
(5, 25),
10284
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M2").WithArguments("virtual", "7.3", "8.0").
WithLocation
(5, 25),
10287
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M3").WithArguments("static", "7.3", "8.0").
WithLocation
(6, 24),
10290
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M3").WithArguments("extern", "7.3", "8.0").
WithLocation
(6, 24),
10293
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M4").WithArguments("private", "7.3", "8.0").
WithLocation
(7, 25),
10296
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M4").WithArguments("extern", "7.3", "8.0").
WithLocation
(7, 25),
10299
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M5").WithArguments("sealed", "7.3", "8.0").
WithLocation
(8, 24),
10302
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M5").WithArguments("extern", "7.3", "8.0").
WithLocation
(8, 24),
10305
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M1").WithArguments("I1.M1()").
WithLocation
(4, 17),
10308
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M2").WithArguments("I1.M2()").
WithLocation
(5, 25),
10311
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M3").WithArguments("I1.M3()").
WithLocation
(6, 24),
10314
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M4").WithArguments("I1.M4()").
WithLocation
(7, 25),
10317
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M5").WithArguments("I1.M5()").
WithLocation
(8, 24)
10329
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M1").
WithLocation
(4, 17),
10332
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M2").
WithLocation
(5, 25),
10335
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M3").
WithLocation
(6, 24),
10338
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M4").
WithLocation
(7, 25),
10341
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M5").
WithLocation
(8, 24),
10344
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M1").WithArguments("I1.M1()").
WithLocation
(4, 17),
10347
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M2").WithArguments("I1.M2()").
WithLocation
(5, 25),
10350
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M3").WithArguments("I1.M3()").
WithLocation
(6, 24),
10353
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M4").WithArguments("I1.M4()").
WithLocation
(7, 25),
10356
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M5").WithArguments("I1.M5()").
WithLocation
(8, 24)
10396
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "M1").WithArguments("I1.M1()").
WithLocation
(4, 26),
10399
Diagnostic(ErrorCode.ERR_ExternHasBody, "M2").WithArguments("I1.M2()").
WithLocation
(5, 17),
10402
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.M1()").
WithLocation
(11, 15),
10405
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M3").WithArguments("Test2.M3()").
WithLocation
(19, 13),
10408
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M4").WithArguments("Test2.M4()").
WithLocation
(20, 13),
10411
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M5").WithArguments("Test2.M5()").
WithLocation
(21, 13),
10414
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M3").WithArguments("I1.M3()").
WithLocation
(6, 24),
10417
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M4").WithArguments("I1.M4()").
WithLocation
(7, 25),
10420
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M5").WithArguments("I1.M5()").
WithLocation
(8, 24)
10498
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M1").WithArguments("I1.M1()").
WithLocation
(4, 19),
10501
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M2").WithArguments("I1.M2()").
WithLocation
(5, 27),
10504
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M3").WithArguments("abstract", "9.0", "11.0").
WithLocation
(6, 26),
10507
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M3").WithArguments("I1.M3()").
WithLocation
(6, 26),
10510
Diagnostic(ErrorCode.ERR_ExternHasBody, "M4").WithArguments("I1.M4()").
WithLocation
(7, 24),
10513
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M5").WithArguments("override").
WithLocation
(8, 26),
10516
Diagnostic(ErrorCode.ERR_VirtualPrivate, "M2").WithArguments("I1.M2()").
WithLocation
(5, 27),
10519
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.M1()").
WithLocation
(11, 15),
10522
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.M2()").
WithLocation
(11, 15),
10525
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.M3()").
WithLocation
(11, 15),
10528
Diagnostic(ErrorCode.ERR_BadAccess, "M2").WithArguments("I1.M2()").
WithLocation
(18, 13),
10531
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M3").WithArguments("Test2.M3()").
WithLocation
(19, 13),
10534
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M4").WithArguments("Test2.M4()").
WithLocation
(20, 13),
10537
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M5").WithArguments("Test2.M5()").
WithLocation
(21, 13),
10540
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.M3()").
WithLocation
(15, 15)
10798
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.M1()").
WithLocation
(17, 12)
10821
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.M1()").
WithLocation
(6, 12),
10824
Diagnostic(ErrorCode.ERR_BadAccess, "M2").WithArguments("I1.M2()").
WithLocation
(7, 12)
11054
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("static", "7.3", "8.0").
WithLocation
(4, 25),
11057
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("partial", "7.3", "8.0").
WithLocation
(4, 25)
11078
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("partial", "7.3", "8.0").
WithLocation
(4, 18)
11120
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M1").WithArguments("I1.M1()").
WithLocation
(4, 24),
11123
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M2").WithArguments("I1.M2()").
WithLocation
(5, 32),
11126
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M3").WithArguments("I1.M3()").
WithLocation
(6, 34),
11129
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M4").WithArguments("I1.M4()").
WithLocation
(7, 33),
11132
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "M5").WithArguments("I1.M5(out int)").
WithLocation
(8, 25),
11135
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M8").WithArguments("I1.M8()").
WithLocation
(11, 25),
11138
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M6").WithArguments("M6", "I1").
WithLocation
(18, 17),
11141
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M7").WithArguments("M7", "I1").
WithLocation
(19, 25),
11144
Diagnostic(ErrorCode.ERR_PartialMethodOnlyOneActual, "M8").
WithLocation
(20, 25),
11147
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M8").WithArguments("M8", "I1").
WithLocation
(20, 25),
11150
Diagnostic(ErrorCode.ERR_PartialMethodOnlyOneLatent, "M9").
WithLocation
(21, 25),
11153
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M9").WithArguments("M9", "I1").
WithLocation
(21, 25),
11156
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M10").WithArguments("I1.M10()").
WithLocation
(22, 32),
11159
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M11").WithArguments("I1.M11()").
WithLocation
(23, 35),
11162
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M12").WithArguments("I1.M12()").
WithLocation
(24, 44),
11165
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M13").WithArguments("I1.M13()").
WithLocation
(25, 43)
11175
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M1").WithArguments("I1.M1()").
WithLocation
(4, 24),
11178
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M2").WithArguments("I1.M2()").
WithLocation
(5, 32),
11181
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M3").WithArguments("I1.M3()").
WithLocation
(6, 34),
11184
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M4").WithArguments("I1.M4()").
WithLocation
(7, 33),
11187
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "M5").WithArguments("I1.M5(out int)").
WithLocation
(8, 25),
11190
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M7").
WithLocation
(10, 17),
11193
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M8").
WithLocation
(11, 25),
11196
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M8").WithArguments("I1.M8()").
WithLocation
(11, 25),
11199
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M6").
WithLocation
(18, 17),
11202
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M6").WithArguments("M6", "I1").
WithLocation
(18, 17),
11205
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M7").WithArguments("M7", "I1").
WithLocation
(19, 25),
11208
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M8").
WithLocation
(20, 25),
11211
Diagnostic(ErrorCode.ERR_PartialMethodOnlyOneActual, "M8").
WithLocation
(20, 25),
11214
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M8").WithArguments("M8", "I1").
WithLocation
(20, 25),
11217
Diagnostic(ErrorCode.ERR_PartialMethodOnlyOneLatent, "M9").
WithLocation
(21, 25),
11220
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M9").WithArguments("M9", "I1").
WithLocation
(21, 25),
11223
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M10").
WithLocation
(22, 32),
11226
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M10").WithArguments("I1.M10()").
WithLocation
(22, 32),
11229
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M11").WithArguments("I1.M11()").
WithLocation
(23, 35),
11232
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M12").WithArguments("I1.M12()").
WithLocation
(24, 44),
11235
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M13").WithArguments("I1.M13()").
WithLocation
(25, 43)
11277
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M1").WithArguments("I1.M1()").
WithLocation
(4, 25),
11280
Diagnostic(ErrorCode.ERR_PartialMethodInvalidModifier, "M2").
WithLocation
(5, 27),
11283
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M3").WithArguments("I1.M3()").
WithLocation
(6, 26),
11286
Diagnostic(ErrorCode.ERR_PartialMethodNotExplicit, "M7").
WithLocation
(10, 21),
11289
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M4").WithArguments("I1.M4()").
WithLocation
(15, 25),
11292
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M4").
WithLocation
(15, 25),
11295
Diagnostic(ErrorCode.ERR_PartialMethodInvalidModifier, "M5").
WithLocation
(16, 27),
11298
Diagnostic(ErrorCode.ERR_PartialMethodOnlyOneLatent, "M5").
WithLocation
(16, 27),
11301
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M5").WithArguments("M5", "I1").
WithLocation
(16, 27),
11304
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M6").WithArguments("I1.M6()").
WithLocation
(17, 26),
11307
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M6").
WithLocation
(17, 26),
11310
Diagnostic(ErrorCode.ERR_PartialMethodNotExplicit, "M7").
WithLocation
(19, 21),
11313
Diagnostic(ErrorCode.ERR_PartialMethodOnlyInPartialClass, "M8").
WithLocation
(25, 18)
11344
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("I1.C.M1()").
WithLocation
(8, 17)
11374
Diagnostic(ErrorCode.ERR_PartialMethodToDelegate, "M1").WithArguments("I1.M1()").
WithLocation
(9, 27),
11377
Diagnostic(ErrorCode.ERR_PartialMethodToDelegate, "M2").WithArguments("I1.M2()").
WithLocation
(10, 27),
11380
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(13, 5)
11400
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1)
11428
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "M1").WithArguments("I1.M1<T>()", "T").
WithLocation
(5, 25),
11431
Diagnostic(ErrorCode.ERR_PartialMethodParamsDifference, "M2").
WithLocation
(8, 25),
11434
Diagnostic(ErrorCode.ERR_PartialMethodStaticDifference, "M3").
WithLocation
(11, 18)
11468
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M1").
WithLocation
(9, 18)
11590
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.M1()").
WithLocation
(6, 12),
11593
Diagnostic(ErrorCode.ERR_BadAccess, "M2").WithArguments("I1.M2()").
WithLocation
(7, 12),
11596
Diagnostic(ErrorCode.ERR_BadAccess, "M3").WithArguments("I1.M3()").
WithLocation
(8, 12)
11607
Diagnostic(ErrorCode.ERR_BadAccess, "M3").WithArguments("I1.M3()").
WithLocation
(8, 12)
11670
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(10, 17),
11673
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "M1").WithArguments("I1.M1()", "I1", "Test1").
WithLocation
(7, 11)
11745
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.M1()").
WithLocation
(2, 15)
11806
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(10, 25)
11844
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(10, 25),
11847
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "M1").WithArguments("I1.M1()", "I1", "Test1").
WithLocation
(7, 11)
11866
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.M1()").
WithLocation
(2, 15)
11926
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(10, 17),
11929
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "M1").WithArguments("I1.M1()", "I1", "Test1").
WithLocation
(7, 11)
11967
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").
WithLocation
(10, 17),
11970
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.M1()").
WithLocation
(7, 11)
11983
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").
WithLocation
(10, 17)
11995
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.M1()").
WithLocation
(2, 15)
12182
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.M1()").
WithLocation
(10, 13)
12279
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(5, 17)
12284
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "9.0", "11.0").
WithLocation
(24, 29),
12287
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(29, 9),
12290
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("static", "9.0", "11.0").
WithLocation
(36, 13)
12296
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(5, 17)
12301
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "M1").WithArguments("Test1.M1()", "I1.M1()", "Test1", "static abstract members in interfaces", "9.0", "11.0").
WithLocation
(5, 17)
12346
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(10, 17)
12390
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "9.0", "10.0").
WithLocation
(10, 25)
12395
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").
WithLocation
(10, 25)
12715
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").
WithLocation
(4, 16)
12770
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").
WithLocation
(4, 16),
12773
Diagnostic(ErrorCode.ERR_ObjectRequired, "M1").WithArguments("I1.M1()").
WithLocation
(31, 13),
12776
Diagnostic(ErrorCode.ERR_ObjectRequired, "P1").WithArguments("I1.P1").
WithLocation
(32, 13),
12779
Diagnostic(ErrorCode.ERR_ObjectRequired, "P1").WithArguments("I1.P1").
WithLocation
(32, 18),
12782
Diagnostic(ErrorCode.ERR_ObjectRequired, "E1").WithArguments("I1.E1").
WithLocation
(33, 13),
12785
Diagnostic(ErrorCode.ERR_ObjectRequired, "E1").WithArguments("I1.E1").
WithLocation
(34, 13),
12788
Diagnostic(ErrorCode.ERR_ObjectRequired, "F1").WithArguments("I1.F1").
WithLocation
(35, 13)
12843
Diagnostic(ErrorCode.ERR_ObjectRequired, "M1").WithArguments("C1.M1()").
WithLocation
(31, 13),
12846
Diagnostic(ErrorCode.ERR_ObjectRequired, "P1").WithArguments("C1.P1").
WithLocation
(32, 13),
12849
Diagnostic(ErrorCode.ERR_ObjectRequired, "P1").WithArguments("C1.P1").
WithLocation
(32, 18),
12852
Diagnostic(ErrorCode.ERR_ObjectRequired, "E1").WithArguments("C1.E1").
WithLocation
(33, 13),
12855
Diagnostic(ErrorCode.ERR_ObjectRequired, "E1").WithArguments("C1.E1").
WithLocation
(34, 13),
12858
Diagnostic(ErrorCode.ERR_ObjectRequired, "F1").WithArguments("C1.F1").
WithLocation
(35, 13)
12899
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I1.P05.set").
WithLocation
(8, 22),
12902
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I1.P07.set").
WithLocation
(10, 22),
12905
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.P08.get").
WithLocation
(11, 21),
12908
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P09").WithArguments("override").
WithLocation
(12, 18),
12911
Diagnostic(ErrorCode.ERR_InvalidPropertyAccessMod, "get").WithArguments("I1.P12.get", "I1.P12").
WithLocation
(16, 22),
12914
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "get").WithArguments("I1.P16.get").
WithLocation
(20, 23),
12917
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "P17").WithArguments("I1.P17").
WithLocation
(21, 9),
12920
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.P11.get").
WithLocation
(14, 21),
12923
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I1.P11.set").
WithLocation
(14, 26)
13389
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments("public", "7.3", "8.0").
WithLocation
(4, 16),
13392
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P02").WithArguments("protected", "7.3", "8.0").
WithLocation
(5, 19),
13395
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P03").WithArguments("protected internal", "7.3", "8.0").
WithLocation
(6, 28),
13398
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P04").WithArguments("internal", "7.3", "8.0").
WithLocation
(7, 18),
13401
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P05").WithArguments("private", "7.3", "8.0").
WithLocation
(8, 17),
13404
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I1.P05.set").
WithLocation
(8, 22),
13407
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P06").WithArguments("static", "7.3", "8.0").
WithLocation
(9, 16),
13410
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P07").WithArguments("virtual", "7.3", "8.0").
WithLocation
(10, 17),
13413
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I1.P07.set").
WithLocation
(10, 22),
13416
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P08").WithArguments("sealed", "7.3", "8.0").
WithLocation
(11, 16),
13419
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.P08.get").
WithLocation
(11, 21),
13422
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P09").WithArguments("override").
WithLocation
(12, 18),
13425
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P10").WithArguments("abstract", "7.3", "8.0").
WithLocation
(13, 18),
13428
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P11").WithArguments("extern", "7.3", "8.0").
WithLocation
(14, 16),
13431
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "get").WithArguments("public", "7.3", "8.0").
WithLocation
(16, 22),
13434
Diagnostic(ErrorCode.ERR_InvalidPropertyAccessMod, "get").WithArguments("I1.P12.get", "I1.P12").
WithLocation
(16, 22),
13437
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "set").WithArguments("protected", "7.3", "8.0").
WithLocation
(17, 30),
13440
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "get").WithArguments("protected internal", "7.3", "8.0").
WithLocation
(18, 34),
13443
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "set").WithArguments("internal", "7.3", "8.0").
WithLocation
(19, 29),
13446
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "get").WithArguments("private", "7.3", "8.0").
WithLocation
(20, 23),
13449
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "get").WithArguments("I1.P16.get").
WithLocation
(20, 23),
13452
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "get").WithArguments("private", "7.3", "8.0").
WithLocation
(21, 23),
13455
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "P17").WithArguments("I1.P17").
WithLocation
(21, 9),
13458
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P18").WithArguments("private protected", "7.3", "8.0").
WithLocation
(23, 27),
13461
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "set").WithArguments("private protected", "7.3", "8.0").
WithLocation
(24, 38),
13464
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.P11.get").
WithLocation
(14, 21),
13467
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I1.P11.set").
WithLocation
(14, 26)
13480
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "P02").
WithLocation
(5, 19),
13483
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "P03").
WithLocation
(6, 28),
13486
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I1.P05.set").
WithLocation
(8, 22),
13489
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(9, 21),
13492
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I1.P07.set").
WithLocation
(10, 22),
13495
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.P08.get").
WithLocation
(11, 21),
13498
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P09").WithArguments("override").
WithLocation
(12, 18),
13501
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(14, 21),
13504
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.P11.get").
WithLocation
(14, 21),
13507
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(14, 26),
13510
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I1.P11.set").
WithLocation
(14, 26),
13513
Diagnostic(ErrorCode.ERR_InvalidPropertyAccessMod, "get").WithArguments("I1.P12.get", "I1.P12").
WithLocation
(16, 22),
13516
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "set").
WithLocation
(17, 30),
13519
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "get").
WithLocation
(18, 34),
13522
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "get").WithArguments("I1.P16.get").
WithLocation
(20, 23),
13525
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "P17").WithArguments("I1.P17").
WithLocation
(21, 9),
13528
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "P18").
WithLocation
(23, 27),
13531
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "set").
WithLocation
(24, 38)
13719
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P1").
WithLocation
(4, 24),
13722
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.P1.get").
WithLocation
(4, 29)
13886
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("abstract", "7.3", "8.0").
WithLocation
(4, 25),
13889
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("public", "7.3", "8.0").
WithLocation
(4, 25)
14051
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(6, 9),
14054
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(11, 9),
14057
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(19, 9),
14060
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(24, 9),
14063
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(33, 9),
14066
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(34, 9),
14069
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "Test1.GetP4()").
WithLocation
(37, 31),
14072
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(41, 9),
14075
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(50, 9),
14078
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(55, 9),
14081
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(63, 9)
14181
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("abstract", "9.0", "11.0").
WithLocation
(4, 25),
14184
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P2").WithArguments("virtual", "9.0", "11.0").
WithLocation
(6, 24),
14187
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P3").WithArguments("sealed", "9.0", "11.0").
WithLocation
(8, 23),
14190
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.P1").
WithLocation
(13, 15),
14193
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P1").WithArguments("Test1.P1").
WithLocation
(15, 12),
14196
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P2").WithArguments("Test1.P2").
WithLocation
(16, 12),
14199
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P3").WithArguments("Test1.P3").
WithLocation
(17, 12),
14202
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P4").WithArguments("Test1.P4").
WithLocation
(18, 12),
14205
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(21, 15)
14527
Diagnostic(ErrorCode.ERR_VirtualPrivate, "P1").WithArguments("I1.P1").
WithLocation
(4, 26),
14530
Diagnostic(ErrorCode.ERR_VirtualPrivate, "P2").WithArguments("I1.P2").
WithLocation
(6, 25),
14533
Diagnostic(ErrorCode.ERR_SealedNonOverride, "P3").WithArguments("I1.P3").
WithLocation
(8, 24),
14536
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P4").
WithLocation
(14, 17),
14539
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.P4.get").
WithLocation
(14, 21),
14542
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.P1").
WithLocation
(17, 15)
14694
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(12, 9),
14697
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(17, 9)
14702
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(2, 15)
14707
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(12, 9),
14710
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(17, 9)
14905
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(11, 9),
14908
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(16, 9)
14913
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(11, 9),
14916
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(16, 9)
15053
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(9, 12)
15156
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(11, 9),
15159
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(16, 9)
15164
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(11, 9),
15167
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(16, 9)
15233
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(11, 9),
15236
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(16, 9)
15241
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(11, 9),
15244
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(16, 9)
15315
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(9, 29),
15318
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(9, 34)
15323
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(9, 29),
15326
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(9, 34)
15397
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(11, 9),
15400
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(16, 9)
15405
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(11, 9),
15408
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(16, 9)
15551
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("Test1", "I1.P1", "Test1.P1", "int").
WithLocation
(2, 15)
15632
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test2", "I1.P1.get", "Test2.P1.get", "9.0", "10.0").
WithLocation
(6, 9),
15635
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test2", "I1.P1.set", "Test2.P1.set", "9.0", "10.0").
WithLocation
(11, 9)
15640
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test2", "I1.P1.get", "Test2.P1.get").
WithLocation
(6, 9),
15643
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test2", "I1.P1.set", "Test2.P1.set").
WithLocation
(11, 9)
15753
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test2", "I1.P1.get", "Test2.P1.get", "9.0", "10.0").
WithLocation
(15, 9),
15756
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test2", "I1.P1.set", "Test2.P1.set", "9.0", "10.0").
WithLocation
(20, 9)
15823
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.P1").
WithLocation
(7, 15)
16098
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P1").
WithLocation
(4, 23),
16101
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.P1.get").
WithLocation
(4, 27),
16104
Diagnostic(ErrorCode.ERR_SealedNonOverride, "P2").WithArguments("I2.P2").
WithLocation
(8, 25),
16107
Diagnostic(ErrorCode.ERR_SealedNonOverride, "P3").WithArguments("I3.P3").
WithLocation
(12, 24),
16110
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P1").WithArguments("Test1.P1").
WithLocation
(20, 12),
16113
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P2").WithArguments("Test1.P2").
WithLocation
(21, 12),
16116
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P3").WithArguments("Test1.P3").
WithLocation
(22, 12)
16307
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P0").WithArguments("property", "I0.P0").
WithLocation
(4, 26),
16310
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P1").WithArguments("property", "I1.P1").
WithLocation
(8, 26),
16313
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.P1.get").
WithLocation
(8, 31),
16316
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P2").WithArguments("property", "I2.P2").
WithLocation
(12, 26),
16319
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I2.P2.get").
WithLocation
(14, 9),
16322
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I2.P2.set").
WithLocation
(15, 9),
16325
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P3").WithArguments("property", "I3.P3").
WithLocation
(20, 26),
16328
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I3.P3.set").
WithLocation
(20, 31),
16331
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P4").WithArguments("property", "I4.P4").
WithLocation
(24, 26),
16334
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I4.P4.get").
WithLocation
(24, 31),
16337
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P5").WithArguments("property", "I5.P5").
WithLocation
(28, 26),
16340
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I5.P5.get").
WithLocation
(30, 9),
16343
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I5.P5.set").
WithLocation
(31, 9),
16346
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P6").WithArguments("property", "I6.P6").
WithLocation
(36, 26),
16349
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I6.P6.set").
WithLocation
(36, 31),
16352
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P7").WithArguments("property", "I7.P7").
WithLocation
(40, 26),
16355
Diagnostic(ErrorCode.ERR_AbstractHasBody, "throw null").WithArguments("I7.P7.get").
WithLocation
(40, 32),
16358
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P8").WithArguments("property", "I8.P8").
WithLocation
(44, 26),
16361
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P8").
WithLocation
(44, 26),
16364
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I0").WithArguments("Test2", "I0.P0").
WithLocation
(90, 15),
16367
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(90, 19),
16370
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test2", "I2.P2").
WithLocation
(90, 23),
16373
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test2", "I3.P3").
WithLocation
(90, 27),
16376
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I4").WithArguments("Test2", "I4.P4").
WithLocation
(90, 31),
16379
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I5").WithArguments("Test2", "I5.P5").
WithLocation
(90, 35),
16382
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I6").WithArguments("Test2", "I6.P6").
WithLocation
(90, 39),
16385
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I7").WithArguments("Test2", "I7.P7").
WithLocation
(90, 43),
16388
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I8").WithArguments("Test2", "I8.P8").
WithLocation
(90, 47)
16497
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("extern", "7.3", "8.0").
WithLocation
(4, 16),
16500
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P2").WithArguments("extern", "7.3", "8.0").
WithLocation
(8, 24),
16503
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P2").WithArguments("virtual", "7.3", "8.0").
WithLocation
(8, 24),
16506
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P3").WithArguments("static", "7.3", "8.0").
WithLocation
(12, 23),
16509
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P3").WithArguments("extern", "7.3", "8.0").
WithLocation
(12, 23),
16512
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P4").WithArguments("private", "7.3", "8.0").
WithLocation
(16, 24),
16515
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P4").WithArguments("extern", "7.3", "8.0").
WithLocation
(16, 24),
16518
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P5").WithArguments("sealed", "7.3", "8.0").
WithLocation
(20, 23),
16521
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P5").WithArguments("extern", "7.3", "8.0").
WithLocation
(20, 23),
16524
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I2.P2.set").
WithLocation
(8, 28),
16527
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I3.P3.get").
WithLocation
(12, 27),
16530
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I3.P3.set").
WithLocation
(12, 32),
16533
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I4.P4.get").
WithLocation
(16, 28),
16536
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I5.P5.set").
WithLocation
(20, 27),
16539
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.P1.get").
WithLocation
(4, 20)
16543
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(4, 20),
16546
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(8, 28),
16549
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(16, 28),
16552
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(20, 27),
16555
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I2.P2.set").
WithLocation
(8, 28),
16558
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(12, 27),
16561
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I3.P3.get").
WithLocation
(12, 27),
16564
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(12, 32),
16567
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I3.P3.set").
WithLocation
(12, 32),
16570
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I4.P4.get").
WithLocation
(16, 28),
16573
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I5.P5.set").
WithLocation
(20, 27),
16576
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.P1.get").
WithLocation
(4, 20)
16791
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "P1").WithArguments("I1.P1").
WithLocation
(4, 25),
16794
Diagnostic(ErrorCode.ERR_ExternHasBody, "0").WithArguments("I2.P2.get").
WithLocation
(8, 22),
16797
Diagnostic(ErrorCode.ERR_ExternHasBody, "get").WithArguments("I3.P3.get").
WithLocation
(12, 27),
16800
Diagnostic(ErrorCode.ERR_ExternHasBody, "set").WithArguments("I3.P3.set").
WithLocation
(12, 37),
16803
Diagnostic(ErrorCode.ERR_ExternHasBody, "get").WithArguments("I4.P4.get").
WithLocation
(16, 29),
16806
Diagnostic(ErrorCode.ERR_ExternHasBody, "set").WithArguments("I4.P4.set").
WithLocation
(16, 47),
16809
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P5").
WithLocation
(20, 23),
16812
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.P1").
WithLocation
(23, 15),
16815
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P3").WithArguments("Test2.P3").
WithLocation
(31, 12),
16818
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P4").WithArguments("Test2.P4").
WithLocation
(32, 12),
16821
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P5").WithArguments("Test2.P5").
WithLocation
(33, 12),
16824
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I5.P5.get").
WithLocation
(20, 27)
17017
Diagnostic(ErrorCode.ERR_AbstractHasBody, "0").WithArguments("I2.P2.get").
WithLocation
(8, 32),
17020
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.P1.get").
WithLocation
(4, 22),
17023
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I1.P1.set").
WithLocation
(4, 32),
17026
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P5").WithArguments("override").
WithLocation
(20, 25),
17029
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I5.P5.get").
WithLocation
(20, 29),
17032
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P4").WithArguments("abstract", "9.0", "11.0").
WithLocation
(16, 25),
17035
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I4.P4.get").
WithLocation
(16, 30),
17038
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I4.P4.set").
WithLocation
(16, 48),
17041
Diagnostic(ErrorCode.ERR_VirtualPrivate, "P2").WithArguments("I2.P2").
WithLocation
(8, 26),
17044
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P5").
WithLocation
(20, 25),
17047
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I3.P3.set").
WithLocation
(12, 32),
17050
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I3.P3.get").
WithLocation
(12, 27),
17053
Diagnostic(ErrorCode.ERR_BadAccess, "P2").WithArguments("I2.P2").
WithLocation
(30, 12),
17056
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P3").WithArguments("Test2.P3").
WithLocation
(31, 12),
17059
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P4").WithArguments("Test2.P4").
WithLocation
(32, 12),
17062
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P5").WithArguments("Test2.P5").
WithLocation
(33, 12),
17065
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.P1").
WithLocation
(23, 15),
17068
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I2.P2").
WithLocation
(23, 19),
17071
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I4").WithArguments("Test1", "I4.P4").
WithLocation
(23, 27),
17074
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I4").WithArguments("Test2", "I4.P4").
WithLocation
(27, 27)
17410
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(18, 16),
17413
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(19, 12)
17442
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(7, 16),
17445
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(8, 12),
17448
Diagnostic(ErrorCode.ERR_BadAccess, "P2").WithArguments("I1.P2").
WithLocation
(9, 16),
17451
Diagnostic(ErrorCode.ERR_BadAccess, "P2").WithArguments("I1.P2").
WithLocation
(10, 12)
18255
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(12, 9)
18260
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(12, 9)
18384
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(11, 9)
18389
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(11, 9)
18437
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1.get").
WithLocation
(9, 12)
18502
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(11, 9)
18507
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(11, 9)
18573
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(11, 9)
18578
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(11, 9)
18649
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(9, 29)
18654
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(9, 29)
18725
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(11, 9)
18730
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(11, 9)
18838
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("Test1", "I1.P1", "Test1.P1", "int").
WithLocation
(2, 15)
18889
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test2", "I1.P1.get", "Test2.P1.get", "9.0", "10.0").
WithLocation
(6, 9)
18894
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test2", "I1.P1.get", "Test2.P1.get").
WithLocation
(6, 9)
18945
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test2", "I1.P1.get", "Test2.P1.get", "9.0", "10.0").
WithLocation
(15, 9)
18993
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(17, 9)
18998
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(17, 9)
19047
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(16, 9)
19052
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(16, 9)
19100
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1.set").
WithLocation
(9, 12)
19165
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(16, 9)
19170
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(16, 9)
19236
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(16, 9)
19241
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(16, 9)
19312
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(9, 34)
19317
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(9, 34)
19388
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(16, 9)
19393
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(16, 9)
19501
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("Test1", "I1.P1", "Test1.P1", "int").
WithLocation
(2, 15)
19552
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test2", "I1.P1.set", "Test2.P1.set", "9.0", "10.0").
WithLocation
(11, 9)
19557
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test2", "I1.P1.set", "Test2.P1.set").
WithLocation
(11, 9)
19608
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test2", "I1.P1.set", "Test2.P1.set", "9.0", "10.0").
WithLocation
(20, 9)
19790
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "I1.P1").WithArguments("I1.P1").
WithLocation
(18, 13),
19793
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "I1.P3").WithArguments("I1.P3").
WithLocation
(23, 9)
19821
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "I1.P1").WithArguments("I1.P1").
WithLocation
(7, 13),
19824
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "I1.P2").WithArguments("I1.P2").
WithLocation
(9, 13),
19827
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "I1.P3").WithArguments("I1.P3").
WithLocation
(12, 9),
19830
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "I1.P4").WithArguments("I1.P4").
WithLocation
(14, 9)
19859
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "get").WithArguments("I1.P1.get").
WithLocation
(4, 31),
19862
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "set").WithArguments("I1.P2.set").
WithLocation
(5, 36),
19865
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "P3").WithArguments("I1.P3").
WithLocation
(6, 18),
19868
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "P4").WithArguments("I1.P4").
WithLocation
(7, 16),
19871
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "P5").WithArguments("I1.P5").
WithLocation
(8, 16),
19874
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "P6").WithArguments("I1.P6").
WithLocation
(9, 16),
19877
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "P7").WithArguments("I1.P7").
WithLocation
(10, 16),
19880
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "P8").WithArguments("I1.P8").
WithLocation
(11, 16),
19883
Diagnostic(ErrorCode.ERR_DuplicatePropertyAccessMods, "P9").WithArguments("I1.P9").
WithLocation
(12, 16),
19886
Diagnostic(ErrorCode.ERR_DuplicatePropertyAccessMods, "P10").WithArguments("I1.P10").
WithLocation
(13, 16)
19997
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("Test1.I1.P3.get", "I1.P3").
WithLocation
(21, 9),
20000
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("Test1.I1.P4.set", "I1.P4").
WithLocation
(28, 9),
20003
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("ITest1.I1.P3.get", "I1.P3").
WithLocation
(36, 9),
20006
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("ITest1.I1.P4.set", "I1.P4").
WithLocation
(43, 9),
20009
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I2.Test3.I2.P5.get", "I2.P5").
WithLocation
(65, 13),
20012
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I2.Test3.I2.P6.set", "I2.P6").
WithLocation
(72, 13),
20015
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I2.ITest3.I2.P5.get", "I2.P5").
WithLocation
(80, 13),
20018
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I2.ITest3.I2.P6.set", "I2.P6").
WithLocation
(87, 13)
20279
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(6, 16),
20282
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(7, 12),
20285
Diagnostic(ErrorCode.ERR_BadAccess, "P2").WithArguments("I1.P2").
WithLocation
(8, 16),
20288
Diagnostic(ErrorCode.ERR_BadAccess, "P2").WithArguments("I1.P2").
WithLocation
(9, 12),
20291
Diagnostic(ErrorCode.ERR_BadAccess, "P3").WithArguments("I1.P3").
WithLocation
(10, 16),
20294
Diagnostic(ErrorCode.ERR_BadAccess, "P3").WithArguments("I1.P3").
WithLocation
(11, 12),
20297
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "I1.P4").WithArguments("I1.P4").
WithLocation
(12, 13),
20300
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "I1.P5").WithArguments("I1.P5").
WithLocation
(13, 9),
20303
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "I1.P6").WithArguments("I1.P6").
WithLocation
(14, 13)
20314
Diagnostic(ErrorCode.ERR_BadAccess, "P3").WithArguments("I1.P3").
WithLocation
(10, 16),
20317
Diagnostic(ErrorCode.ERR_BadAccess, "P3").WithArguments("I1.P3").
WithLocation
(11, 12),
20320
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "I1.P6").WithArguments("I1.P6").
WithLocation
(16, 13)
20412
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(12, 9),
20415
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(17, 9)
20419
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(2, 15)
20468
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(12, 9),
20471
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(17, 9)
20475
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(2, 15)
20524
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(12, 9),
20527
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(17, 9)
20532
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(2, 15)
20537
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").
WithLocation
(12, 9),
20540
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(17, 9)
20588
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(12, 9)
20635
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get", "9.0", "10.0").
WithLocation
(12, 9)
20683
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set", "9.0", "10.0").
WithLocation
(17, 9)
20688
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").
WithLocation
(17, 9)
20813
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(9, 12)
20937
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1.get").
WithLocation
(9, 12)
21374
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I05.this[int].set").
WithLocation
(6, 48),
21377
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(7, 34),
21380
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I07.this[int].set").
WithLocation
(8, 48),
21383
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I08.this[int].get").
WithLocation
(9, 47),
21386
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("override").
WithLocation
(10, 36),
21389
Diagnostic(ErrorCode.ERR_InvalidPropertyAccessMod, "get").WithArguments("I12.this[int].get", "I12.this[int]").
WithLocation
(14, 48),
21392
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "get").WithArguments("I16.this[int].get").
WithLocation
(18, 49),
21395
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "this").WithArguments("I17.this[int]").
WithLocation
(19, 27),
21398
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I11.this[int].get").
WithLocation
(12, 47),
21401
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I11.this[int].set").
WithLocation
(12, 52)
21863
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("public", "7.3", "8.0").
WithLocation
(2, 34),
21866
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("protected", "7.3", "8.0").
WithLocation
(3, 37),
21869
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("protected internal", "7.3", "8.0").
WithLocation
(4, 46),
21872
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("internal", "7.3", "8.0").
WithLocation
(5, 36),
21875
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("private", "7.3", "8.0").
WithLocation
(6, 35),
21878
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I05.this[int].set").
WithLocation
(6, 48),
21881
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(7, 34),
21884
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("virtual", "7.3", "8.0").
WithLocation
(8, 35),
21887
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I07.this[int].set").
WithLocation
(8, 48),
21890
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("sealed", "7.3", "8.0").
WithLocation
(9, 34),
21893
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I08.this[int].get").
WithLocation
(9, 47),
21896
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("override").
WithLocation
(10, 36),
21899
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("abstract", "7.3", "8.0").
WithLocation
(11, 36),
21902
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("extern", "7.3", "8.0").
WithLocation
(12, 34),
21905
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "get").WithArguments("public", "7.3", "8.0").
WithLocation
(14, 48),
21908
Diagnostic(ErrorCode.ERR_InvalidPropertyAccessMod, "get").WithArguments("I12.this[int].get", "I12.this[int]").
WithLocation
(14, 48),
21911
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "set").WithArguments("protected", "7.3", "8.0").
WithLocation
(15, 56),
21914
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "get").WithArguments("protected internal", "7.3", "8.0").
WithLocation
(16, 60),
21917
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "set").WithArguments("internal", "7.3", "8.0").
WithLocation
(17, 55),
21920
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "get").WithArguments("private", "7.3", "8.0").
WithLocation
(18, 49),
21923
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "get").WithArguments("I16.this[int].get").
WithLocation
(18, 49),
21926
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "get").WithArguments("private", "7.3", "8.0").
WithLocation
(19, 49),
21929
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "this").WithArguments("I17.this[int]").
WithLocation
(19, 27),
21932
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("private protected", "7.3", "8.0").
WithLocation
(21, 45),
21935
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "set").WithArguments("private protected", "7.3", "8.0").
WithLocation
(22, 64),
21938
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I11.this[int].get").
WithLocation
(12, 47),
21941
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I11.this[int].set").
WithLocation
(12, 52)
21953
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "this").
WithLocation
(3, 37),
21956
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "this").
WithLocation
(4, 46),
21959
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I05.this[int].set").
WithLocation
(6, 48),
21962
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(7, 34),
21965
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I07.this[int].set").
WithLocation
(8, 48),
21968
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I08.this[int].get").
WithLocation
(9, 47),
21971
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("override").
WithLocation
(10, 36),
21974
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(12, 47),
21977
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I11.this[int].get").
WithLocation
(12, 47),
21980
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(12, 52),
21983
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I11.this[int].set").
WithLocation
(12, 52),
21986
Diagnostic(ErrorCode.ERR_InvalidPropertyAccessMod, "get").WithArguments("I12.this[int].get", "I12.this[int]").
WithLocation
(14, 48),
21989
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "set").
WithLocation
(15, 56),
21992
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "get").
WithLocation
(16, 60),
21995
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "get").WithArguments("I16.this[int].get").
WithLocation
(18, 49),
21998
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "this").WithArguments("I17.this[int]").
WithLocation
(19, 27),
22001
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "this").
WithLocation
(21, 45),
22004
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "set").
WithLocation
(22, 64)
22192
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(4, 45),
22195
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.this[int].get").
WithLocation
(4, 38)
22268
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("abstract", "7.3", "8.0").
WithLocation
(4, 25),
22271
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("public", "7.3", "8.0").
WithLocation
(4, 25)
22447
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(14, 37),
22450
Diagnostic(ErrorCode.ERR_VirtualPrivate, "this").WithArguments("I1.this[byte]").
WithLocation
(4, 26),
22453
Diagnostic(ErrorCode.ERR_VirtualPrivate, "this").WithArguments("I1.this[int]").
WithLocation
(6, 25),
22456
Diagnostic(ErrorCode.ERR_SealedNonOverride, "this").WithArguments("I1.this[short]").
WithLocation
(8, 24),
22459
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.this[long].get").
WithLocation
(14, 31),
22513
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(12, 9),
22516
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(17, 9)
22526
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(12, 9),
22529
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(17, 9)
22578
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(11, 9),
22581
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(16, 9)
22586
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(11, 9),
22589
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(16, 9)
22637
Diagnostic(ErrorCode.ERR_BadAccess, "this").WithArguments("I1.this[int]").
WithLocation
(9, 12)
22702
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(11, 9),
22705
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(16, 9)
22710
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(11, 9),
22713
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(16, 9)
22779
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(11, 9),
22782
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(16, 9)
22787
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(11, 9),
22790
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(16, 9)
22861
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(9, 38),
22864
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(9, 43)
22869
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(9, 38),
22872
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(9, 43)
22943
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(11, 9),
22946
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(16, 9)
22951
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(11, 9),
22954
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(16, 9)
23062
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("Test1", "I1.this[int]", "Test1.this[int]", "int").
WithLocation
(2, 15)
23113
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test2", "I1.this[int].get", "Test2.this[int].get", "9.0", "10.0").
WithLocation
(6, 9),
23116
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test2", "I1.this[int].set", "Test2.this[int].set", "9.0", "10.0").
WithLocation
(11, 9)
23121
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test2", "I1.this[int].get", "Test2.this[int].get").
WithLocation
(6, 9),
23124
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test2", "I1.this[int].set", "Test2.this[int].set").
WithLocation
(11, 9)
23175
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test2", "I1.this[int].get", "Test2.this[int].get", "9.0", "10.0").
WithLocation
(15, 9),
23178
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test2", "I1.this[int].set", "Test2.this[int].set", "9.0", "10.0").
WithLocation
(20, 9)
23401
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(4, 42),
23404
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.this[int].get").
WithLocation
(4, 36),
23407
Diagnostic(ErrorCode.ERR_SealedNonOverride, "this").WithArguments("I2.this[int]").
WithLocation
(8, 25),
23410
Diagnostic(ErrorCode.ERR_SealedNonOverride, "this").WithArguments("I3.this[int]").
WithLocation
(12, 24),
23413
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "this").WithArguments("Test1.this[int]").
WithLocation
(20, 12),
23416
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "this").WithArguments("Test1.this[int]").
WithLocation
(21, 12),
23419
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "this").WithArguments("Test1.this[int]").
WithLocation
(22, 12)
23575
Diagnostic(ErrorCode.ERR_BadVisReturnType, "M4").WithArguments("I3.I4.M4()", "I1.I2").
WithLocation
(20, 29),
23578
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3.I4").WithArguments("CI4", "I3.I4.M4()").
WithLocation
(24, 17),
23581
Diagnostic(ErrorCode.ERR_BadAccess, "I2").WithArguments("I1.I2").
WithLocation
(26, 12),
23584
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M4").WithArguments("CI4.M4()").
WithLocation
(26, 21),
23587
Diagnostic(ErrorCode.ERR_BadVisReturnType, "M6").WithArguments("C3.I6.M6()", "I1.I2").
WithLocation
(33, 29),
23590
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "C3.I6").WithArguments("CI6", "C3.I6.M6()").
WithLocation
(37, 17),
23593
Diagnostic(ErrorCode.ERR_BadAccess, "I2").WithArguments("I1.I2").
WithLocation
(39, 12),
23596
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M6").WithArguments("CI6.M6()").
WithLocation
(39, 21),
23599
Diagnostic(ErrorCode.ERR_BadVisReturnType, "M44").WithArguments("C33.C44.M44()", "C1.I2").
WithLocation
(46, 37),
23602
Diagnostic(ErrorCode.ERR_BadAccess, "I2").WithArguments("C1.I2").
WithLocation
(52, 31)
23758
Diagnostic(ErrorCode.ERR_BadVisReturnType, "M4").WithArguments("I3.I4.M4()", "I1<string>.I2").
WithLocation
(20, 37),
23761
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3.I4").WithArguments("CI4", "I3.I4.M4()").
WithLocation
(24, 17),
23764
Diagnostic(ErrorCode.ERR_BadAccess, "I2").WithArguments("I1<string>.I2").
WithLocation
(26, 20),
23767
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M4").WithArguments("CI4.M4()").
WithLocation
(26, 29),
23770
Diagnostic(ErrorCode.ERR_BadVisReturnType, "M6").WithArguments("C3.I6.M6()", "I1<string>.I2").
WithLocation
(33, 37),
23773
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "C3.I6").WithArguments("CI6", "C3.I6.M6()").
WithLocation
(37, 17),
23776
Diagnostic(ErrorCode.ERR_BadAccess, "I2").WithArguments("I1<string>.I2").
WithLocation
(39, 20),
23779
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M6").WithArguments("CI6.M6()").
WithLocation
(39, 29),
23782
Diagnostic(ErrorCode.ERR_BadVisReturnType, "M44").WithArguments("C33.C44.M44()", "C1<string>.I2").
WithLocation
(46, 45),
23785
Diagnostic(ErrorCode.ERR_BadAccess, "I2").WithArguments("C1<string>.I2").
WithLocation
(52, 39)
23888
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(44, 45),
23891
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "this").WithArguments("property", "I0.this[int]").
WithLocation
(4, 26),
23894
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "this").WithArguments("property", "I1.this[int]").
WithLocation
(8, 26),
23897
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.this[int].get").
WithLocation
(8, 40),
23900
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "this").WithArguments("property", "I2.this[int]").
WithLocation
(12, 26),
23903
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I2.this[int].get").
WithLocation
(14, 9),
23906
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I2.this[int].set").
WithLocation
(15, 9),
23909
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "this").WithArguments("property", "I3.this[int]").
WithLocation
(20, 26),
23912
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I3.this[int].set").
WithLocation
(20, 40),
23915
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "this").WithArguments("property", "I4.this[int]").
WithLocation
(24, 26),
23918
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I4.this[int].get").
WithLocation
(24, 40),
23921
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "this").WithArguments("property", "I5.this[int]").
WithLocation
(28, 26),
23924
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I5.this[int].get").
WithLocation
(30, 9),
23927
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I5.this[int].set").
WithLocation
(31, 9),
23930
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "this").WithArguments("property", "I6.this[int]").
WithLocation
(36, 26),
23933
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I6.this[int].set").
WithLocation
(36, 40),
23936
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "this").WithArguments("property", "I7.this[int]").
WithLocation
(40, 26),
23939
Diagnostic(ErrorCode.ERR_AbstractHasBody, "throw null").WithArguments("I7.this[int].get").
WithLocation
(40, 41),
23942
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "this").WithArguments("property", "I8.this[int]").
WithLocation
(44, 26),
23945
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I0").WithArguments("Test2", "I0.this[int]").
WithLocation
(90, 15),
23948
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.this[int]").
WithLocation
(90, 19),
23951
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test2", "I2.this[int]").
WithLocation
(90, 23),
23954
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test2", "I3.this[int]").
WithLocation
(90, 27),
23957
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I4").WithArguments("Test2", "I4.this[int]").
WithLocation
(90, 31),
23960
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I5").WithArguments("Test2", "I5.this[int]").
WithLocation
(90, 35),
23963
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I6").WithArguments("Test2", "I6.this[int]").
WithLocation
(90, 39),
23966
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I7").WithArguments("Test2", "I7.this[int]").
WithLocation
(90, 43),
23969
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I8").WithArguments("Test2", "I8.this[int]").
WithLocation
(90, 47)
24010
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("extern", "7.3", "8.0").
WithLocation
(4, 16),
24013
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("extern", "7.3", "8.0").
WithLocation
(8, 24),
24016
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("virtual", "7.3", "8.0").
WithLocation
(8, 24),
24019
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("private", "7.3", "8.0").
WithLocation
(12, 24),
24022
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("extern", "7.3", "8.0").
WithLocation
(12, 24),
24025
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("sealed", "7.3", "8.0").
WithLocation
(16, 23),
24028
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "this").WithArguments("extern", "7.3", "8.0").
WithLocation
(16, 23),
24031
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I2.this[int].set").
WithLocation
(8, 37),
24034
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I4.this[int].get").
WithLocation
(12, 37),
24037
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I5.this[int].set").
WithLocation
(16, 36),
24040
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.this[int].get").
WithLocation
(4, 29)
24044
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(4, 29),
24047
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(8, 37),
24050
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(12, 37),
24053
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(16, 36),
24056
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I2.this[int].set").
WithLocation
(8, 37),
24059
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I4.this[int].get").
WithLocation
(12, 37),
24062
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I5.this[int].set").
WithLocation
(16, 36),
24065
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.this[int].get").
WithLocation
(4, 29)
24111
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(20, 42),
24114
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "this").WithArguments("I1.this[int]").
WithLocation
(4, 25),
24117
Diagnostic(ErrorCode.ERR_ExternHasBody, "0").WithArguments("I2.this[int].get").
WithLocation
(8, 31),
24120
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(12, 23),
24123
Diagnostic(ErrorCode.ERR_ExternHasBody, "get").WithArguments("I3.this[int].get").
WithLocation
(12, 36),
24126
Diagnostic(ErrorCode.ERR_ExternHasBody, "set").WithArguments("I3.this[int].set").
WithLocation
(12, 46),
24129
Diagnostic(ErrorCode.ERR_ExternHasBody, "get").WithArguments("I4.this[int].get").
WithLocation
(16, 38),
24132
Diagnostic(ErrorCode.ERR_ExternHasBody, "set").WithArguments("I4.this[int].set").
WithLocation
(16, 56),
24138
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "this").WithArguments("Test2.this[int]").
WithLocation
(32, 12),
24141
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "this").WithArguments("Test2.this[int]").
WithLocation
(33, 12),
24144
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I5.this[int].get").
WithLocation
(20, 36)
24190
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(20, 44),
24193
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.this[int].get").
WithLocation
(4, 31),
24196
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I1.this[int].set").
WithLocation
(4, 41),
24199
Diagnostic(ErrorCode.ERR_VirtualPrivate, "this").WithArguments("I2.this[int]").
WithLocation
(8, 26),
24202
Diagnostic(ErrorCode.ERR_AbstractHasBody, "0").WithArguments("I2.this[int].get").
WithLocation
(8, 41),
24205
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(12, 23),
24208
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(16, 25),
24211
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I4.this[int].get").
WithLocation
(16, 39),
24214
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I4.this[int].set").
WithLocation
(16, 57),
24217
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("override").
WithLocation
(20, 25),
24220
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I5.this[int].get").
WithLocation
(20, 38),
24229
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I4").WithArguments("Test1", "I4.this[int]").
WithLocation
(23, 27),
24232
Diagnostic(ErrorCode.ERR_BadAccess, "this").WithArguments("I2.this[int]").
WithLocation
(30, 12),
24235
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "this").WithArguments("Test2.this[int]").
WithLocation
(33, 12),
24238
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I3.this[int].get").
WithLocation
(12, 36),
24241
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("I3.this[int].set").
WithLocation
(12, 41)
24329
Diagnostic(ErrorCode.ERR_BadAccess, "i1[0]").WithArguments("I1.this[int]").
WithLocation
(24, 13),
24332
Diagnostic(ErrorCode.ERR_BadAccess, "i1[0]").WithArguments("I1.this[int]").
WithLocation
(25, 9)
24361
Diagnostic(ErrorCode.ERR_BadAccess, "i1[0]").WithArguments("I1.this[int]").
WithLocation
(7, 13),
24364
Diagnostic(ErrorCode.ERR_BadAccess, "i1[0]").WithArguments("I1.this[int]").
WithLocation
(8, 9),
24367
Diagnostic(ErrorCode.ERR_BadAccess, "i2[0]").WithArguments("I2.this[int]").
WithLocation
(9, 13),
24370
Diagnostic(ErrorCode.ERR_BadAccess, "i2[0]").WithArguments("I2.this[int]").
WithLocation
(10, 9)
24983
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(12, 9)
24988
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(12, 9)
25037
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(11, 9)
25042
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(11, 9)
25090
Diagnostic(ErrorCode.ERR_BadAccess, "this").WithArguments("I1.this[int].get").
WithLocation
(9, 12)
25155
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(11, 9)
25160
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(11, 9)
25226
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(11, 9)
25231
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(11, 9)
25302
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(9, 38)
25307
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(9, 38)
25378
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get", "9.0", "10.0").
WithLocation
(11, 9)
25383
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").
WithLocation
(11, 9)
25491
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("Test1", "I1.this[int]", "Test1.this[int]", "int").
WithLocation
(2, 15)
25542
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test2", "I1.this[int].get", "Test2.this[int].get", "9.0", "10.0").
WithLocation
(6, 9)
25547
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("Test2", "I1.this[int].get", "Test2.this[int].get").
WithLocation
(6, 9)
25598
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("Test2", "I1.this[int].get", "Test2.this[int].get", "9.0", "10.0").
WithLocation
(15, 9)
25646
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(17, 9)
25651
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(17, 9)
25700
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(16, 9)
25705
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(16, 9)
25753
Diagnostic(ErrorCode.ERR_BadAccess, "this").WithArguments("I1.this[int].set").
WithLocation
(9, 12)
25818
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(16, 9)
25823
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(16, 9)
25889
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(16, 9)
25894
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(16, 9)
25965
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(9, 43)
25970
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(9, 43)
26041
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set", "9.0", "10.0").
WithLocation
(16, 9)
26046
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").
WithLocation
(16, 9)
26154
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("Test1", "I1.this[int]", "Test1.this[int]", "int").
WithLocation
(2, 15)
26205
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test2", "I1.this[int].set", "Test2.this[int].set", "9.0", "10.0").
WithLocation
(11, 9)
26210
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("Test2", "I1.this[int].set", "Test2.this[int].set").
WithLocation
(11, 9)
26261
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "set").WithArguments("Test2", "I1.this[int].set", "Test2.this[int].set", "9.0", "10.0").
WithLocation
(20, 9)
26353
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "i1[0]").WithArguments("I1.this[int]").
WithLocation
(29, 13),
26356
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "i3[0]").WithArguments("I3.this[int]").
WithLocation
(34, 9)
26390
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "i1[0]").WithArguments("I1.this[int]").
WithLocation
(12, 13),
26393
Diagnostic(ErrorCode.ERR_InaccessibleGetter, "i2[0]").WithArguments("I2.this[int]").
WithLocation
(14, 13),
26396
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "i3[0]").WithArguments("I3.this[int]").
WithLocation
(17, 9),
26399
Diagnostic(ErrorCode.ERR_InaccessibleSetter, "i4[0]").WithArguments("I4.this[int]").
WithLocation
(19, 9)
26429
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(7, 40),
26432
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "get").WithArguments("I1.this[sbyte].get").
WithLocation
(4, 42),
26435
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "set").WithArguments("I1.this[byte].set").
WithLocation
(5, 46),
26438
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "this").WithArguments("I1.this[short]").
WithLocation
(6, 18),
26441
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "this").WithArguments("I1.this[ushort]").
WithLocation
(7, 9),
26444
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "this").WithArguments("I1.this[int]").
WithLocation
(8, 9),
26447
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "this").WithArguments("I1.this[uint]").
WithLocation
(9, 9),
26450
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "this").WithArguments("I1.this[long]").
WithLocation
(10, 9),
26453
Diagnostic(ErrorCode.ERR_AccessModMissingAccessor, "this").WithArguments("I1.this[ulong]").
WithLocation
(11, 9),
26456
Diagnostic(ErrorCode.ERR_DuplicatePropertyAccessMods, "this").WithArguments("I1.this[float]").
WithLocation
(12, 9),
26459
Diagnostic(ErrorCode.ERR_DuplicatePropertyAccessMods, "this").WithArguments("I1.this[double]").
WithLocation
(13, 9)
26566
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("Test1.I1.this[short].get", "I1.this[short]").
WithLocation
(21, 9),
26569
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("Test1.I1.this[int].set", "I1.this[int]").
WithLocation
(28, 9),
26572
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("ITest1.I1.this[short].get", "I1.this[short]").
WithLocation
(36, 9),
26575
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("ITest1.I1.this[int].set", "I1.this[int]").
WithLocation
(43, 9),
26578
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I2.Test3.I2.this[short].get", "I2.this[short]").
WithLocation
(65, 13),
26581
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I2.Test3.I2.this[int].set", "I2.this[int]").
WithLocation
(72, 13),
26584
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I2.ITest3.I2.this[short].get", "I2.this[short]").
WithLocation
(80, 13),
26587
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I2.ITest3.I2.this[int].set", "I2.this[int]").
WithLocation
(87, 13)
26621
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P09").WithArguments("override").
WithLocation
(12, 34),
26624
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.P10").
WithLocation
(13, 38),
26627
Diagnostic(ErrorCode.ERR_ExternHasBody, "add").WithArguments("I1.P11.add").
WithLocation
(14, 37),
26630
Diagnostic(ErrorCode.ERR_ExternHasBody, "remove").WithArguments("I1.P11.remove").
WithLocation
(14, 43),
26633
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "add").WithArguments("I1.P12.add").
WithLocation
(15, 37),
26636
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(15, 40),
26639
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "remove").WithArguments("I1.P12.remove").
WithLocation
(15, 42),
26642
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(15, 48),
26645
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P13").WithArguments("I1.P13.remove").
WithLocation
(16, 32)
26955
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments("public", "7.3", "8.0").
WithLocation
(4, 32),
26958
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 40),
26961
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 49),
26964
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 39),
26967
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(8, 38),
26970
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "P06").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 32),
26973
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(10, 38),
26976
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(11, 37),
26979
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P09").WithArguments("override").
WithLocation
(12, 34),
26982
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(12, 39),
26985
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(13, 39),
26988
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.P10").
WithLocation
(13, 38),
26991
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(14, 37),
26994
Diagnostic(ErrorCode.ERR_ExternHasBody, "add").WithArguments("I1.P11.add").
WithLocation
(14, 37),
26997
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(14, 43),
27000
Diagnostic(ErrorCode.ERR_ExternHasBody, "remove").WithArguments("I1.P11.remove").
WithLocation
(14, 43),
27003
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(15, 37),
27006
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "add").WithArguments("I1.P12.add").
WithLocation
(15, 37),
27009
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(15, 40),
27012
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(15, 42),
27015
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "remove").WithArguments("I1.P12.remove").
WithLocation
(15, 42),
27018
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(15, 48),
27021
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P13").WithArguments("extern", "7.3", "8.0").
WithLocation
(16, 32),
27024
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P13").WithArguments("I1.P13.remove").
WithLocation
(16, 32),
27027
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P14").WithArguments("private protected", "7.3", "8.0").
WithLocation
(17, 43),
27030
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P15").WithArguments("protected", "7.3", "8.0").
WithLocation
(18, 35),
27033
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P16").WithArguments("protected internal", "7.3", "8.0").
WithLocation
(19, 44)
27045
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "P02").
WithLocation
(5, 35),
27048
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(5, 40),
27051
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "P03").
WithLocation
(6, 44),
27054
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(6, 49),
27057
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(7, 39),
27060
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(8, 38),
27063
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(9, 37),
27066
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(10, 38),
27069
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(11, 37),
27072
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P09").WithArguments("override").
WithLocation
(12, 34),
27075
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(12, 39),
27078
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(13, 39),
27081
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.P10").
WithLocation
(13, 38),
27084
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(14, 37),
27087
Diagnostic(ErrorCode.ERR_ExternHasBody, "add").WithArguments("I1.P11.add").
WithLocation
(14, 37),
27090
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(14, 43),
27093
Diagnostic(ErrorCode.ERR_ExternHasBody, "remove").WithArguments("I1.P11.remove").
WithLocation
(14, 43),
27096
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(15, 37),
27099
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "add").WithArguments("I1.P12.add").
WithLocation
(15, 37),
27102
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(15, 40),
27105
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(15, 42),
27108
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "remove").WithArguments("I1.P12.remove").
WithLocation
(15, 42),
27111
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(15, 48),
27114
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "P13").
WithLocation
(16, 32),
27117
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P13").WithArguments("I1.P13.remove").
WithLocation
(16, 32),
27120
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "P14").
WithLocation
(17, 43),
27123
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "P15").
WithLocation
(18, 35),
27126
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "P16").
WithLocation
(19, 44)
27192
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 40)
27214
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 40)
27233
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 40)
27252
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 40)
27271
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(6, 15),
27274
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 40)
27293
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 40)
27312
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 40)
27335
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(7, 15)
27351
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 40),
27354
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("I1.E1").
WithLocation
(4, 40)
27370
Diagnostic(ErrorCode.ERR_InterfaceEventInitializer, "E1").WithArguments("I1.E1").
WithLocation
(4, 40),
27373
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "E1").WithArguments("I1.E1").
WithLocation
(4, 40),
27376
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("I1.E1").
WithLocation
(4, 40)
27514
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("abstract", "7.3", "8.0").
WithLocation
(4, 41),
27517
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("public", "7.3", "8.0").
WithLocation
(4, 41)
27684
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P1").WithArguments("I1.P1").
WithLocation
(4, 39),
27687
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(8, 12),
27690
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(9, 15),
27693
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "P3").WithArguments("I1.P3").
WithLocation
(12, 40)
27704
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "P1").
WithLocation
(4, 39),
27707
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P1").WithArguments("I1.P1").
WithLocation
(4, 39),
27710
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(8, 9),
27713
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(8, 12),
27716
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(9, 9),
27719
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(9, 15),
27722
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "P3").
WithLocation
(12, 40),
27725
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "P3").WithArguments("I1.P3").
WithLocation
(12, 40)
27762
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("abstract", "9.0", "11.0").
WithLocation
(4, 41),
27765
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P2").WithArguments("virtual", "9.0", "11.0").
WithLocation
(6, 40),
27768
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P3").WithArguments("sealed", "9.0", "11.0").
WithLocation
(8, 39),
27771
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(8, 46),
27774
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(8, 54),
27777
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P1").WithArguments("Test1.P1").
WithLocation
(13, 28),
27780
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P2").WithArguments("Test1.P2").
WithLocation
(14, 28),
27783
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P3").WithArguments("Test1.P3").
WithLocation
(15, 28),
27786
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(18, 15),
27789
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.P1").
WithLocation
(11, 15)
28017
Diagnostic(ErrorCode.ERR_VirtualPrivate, "P1").WithArguments("I1.P1").
WithLocation
(4, 42),
28020
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P2").WithArguments("I1.P2").
WithLocation
(6, 41),
28023
Diagnostic(ErrorCode.ERR_VirtualPrivate, "P2").WithArguments("I1.P2").
WithLocation
(6, 41),
28026
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P2").WithArguments("I1.P2").
WithLocation
(6, 41),
28029
Diagnostic(ErrorCode.ERR_SealedNonOverride, "P3").WithArguments("I1.P3").
WithLocation
(8, 40),
28032
Diagnostic(ErrorCode.ERR_InterfaceEventInitializer, "P4").WithArguments("I1.P4").
WithLocation
(14, 33),
28035
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P4").WithArguments("I1.P4").
WithLocation
(14, 33),
28041
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P4").WithArguments("I1.P4").
WithLocation
(14, 33)
28205
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add", "9.0", "10.0").
WithLocation
(12, 9),
28208
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove", "9.0", "10.0").
WithLocation
(16, 9)
28213
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(2, 15)
28218
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").
WithLocation
(12, 9),
28221
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").
WithLocation
(16, 9)
28410
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add", "9.0", "10.0").
WithLocation
(11, 9),
28413
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove", "9.0", "10.0").
WithLocation
(15, 9)
28418
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").
WithLocation
(11, 9),
28421
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").
WithLocation
(15, 9)
28559
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(9, 28)
28660
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add", "9.0", "10.0").
WithLocation
(11, 9),
28663
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove", "9.0", "10.0").
WithLocation
(15, 9)
28668
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").
WithLocation
(11, 9),
28671
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").
WithLocation
(15, 9)
28738
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add", "9.0", "10.0").
WithLocation
(11, 9),
28741
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove", "9.0", "10.0").
WithLocation
(15, 9)
28746
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").
WithLocation
(11, 9),
28749
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").
WithLocation
(15, 9)
28822
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "P1").WithArguments("Test1", "I1.P1.add", "Test1.P1.add", "9.0", "10.0").
WithLocation
(9, 41),
28825
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "P1").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove", "9.0", "10.0").
WithLocation
(9, 41)
28830
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "P1").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").
WithLocation
(9, 41),
28833
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "P1").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").
WithLocation
(9, 41)
28905
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add", "9.0", "10.0").
WithLocation
(11, 9),
28908
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove", "9.0", "10.0").
WithLocation
(15, 9)
28913
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").
WithLocation
(11, 9),
28916
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").
WithLocation
(15, 9)
29063
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("Test1", "I1.P1", "Test1.P1", "System.Action").
WithLocation
(2, 15)
29144
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "add").WithArguments("Test2", "I1.P1.add", "Test2.P1.add", "9.0", "10.0").
WithLocation
(6, 9),
29147
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "remove").WithArguments("Test2", "I1.P1.remove", "Test2.P1.remove", "9.0", "10.0").
WithLocation
(10, 9)
29152
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "add").WithArguments("Test2", "I1.P1.add", "Test2.P1.add").
WithLocation
(6, 9),
29155
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "remove").WithArguments("Test2", "I1.P1.remove", "Test2.P1.remove").
WithLocation
(10, 9)
29265
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "add").WithArguments("Test2", "I1.P1.add", "Test2.P1.add", "9.0", "10.0").
WithLocation
(16, 9),
29268
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "remove").WithArguments("Test2", "I1.P1.remove", "Test2.P1.remove", "9.0", "10.0").
WithLocation
(20, 9)
29321
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.P1").
WithLocation
(7, 15)
29481
Diagnostic(ErrorCode.ERR_InterfaceEventInitializer, "P1").WithArguments("I1.P1").
WithLocation
(4, 39),
29484
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P1").WithArguments("I1.P1").
WithLocation
(4, 39),
29487
Diagnostic(ErrorCode.ERR_SealedNonOverride, "P2").WithArguments("I2.P2").
WithLocation
(8, 41),
29490
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.P2").
WithLocation
(8, 44),
29493
Diagnostic(ErrorCode.ERR_SealedNonOverride, "P3").WithArguments("I3.P3").
WithLocation
(12, 40),
29496
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P1").WithArguments("Test1.P1").
WithLocation
(21, 28),
29499
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P2").WithArguments("Test1.P2").
WithLocation
(22, 28),
29502
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P3").WithArguments("Test1.P3").
WithLocation
(23, 28),
29505
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P1").WithArguments("I1.P1").
WithLocation
(4, 39)
29708
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P0").WithArguments("event", "I0.P0").
WithLocation
(4, 42),
29711
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P1").WithArguments("event", "I1.P1").
WithLocation
(8, 42),
29714
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.P1").
WithLocation
(8, 45),
29717
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P2").WithArguments("event", "I2.P2").
WithLocation
(12, 42),
29720
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.P2").
WithLocation
(13, 5),
29723
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P3").WithArguments("event", "I3.P3").
WithLocation
(20, 42),
29726
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I3.P3").
WithLocation
(20, 45),
29729
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P4").WithArguments("event", "I4.P4").
WithLocation
(24, 42),
29732
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I4.P4").
WithLocation
(24, 45),
29735
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P5").WithArguments("event", "I5.P5").
WithLocation
(28, 42),
29738
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I5.P5").
WithLocation
(29, 5),
29741
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P6").WithArguments("event", "I6.P6").
WithLocation
(36, 42),
29744
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I6.P6").
WithLocation
(36, 45),
29747
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P7").WithArguments("event", "I7.P7").
WithLocation
(40, 42),
29750
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I7.P7").
WithLocation
(40, 45),
29753
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P8").WithArguments("event", "I8.P8").
WithLocation
(44, 42),
29756
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I8.P8").
WithLocation
(44, 45),
29759
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P1").WithArguments("Test1.I1.P1").
WithLocation
(54, 28),
29762
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P3").WithArguments("Test1.I3.P3").
WithLocation
(63, 28),
29765
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P4").WithArguments("Test1.I4.P4").
WithLocation
(67, 28),
29768
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P6").WithArguments("Test1.I6.P6").
WithLocation
(76, 28),
29771
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P7").WithArguments("Test1.I7.P7").
WithLocation
(80, 28),
29774
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P8").WithArguments("Test1.I8.P8").
WithLocation
(84, 28),
29777
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I0").WithArguments("Test2", "I0.P0").
WithLocation
(90, 15),
29780
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(90, 19),
29783
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test2", "I2.P2").
WithLocation
(90, 23),
29786
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test2", "I3.P3").
WithLocation
(90, 27),
29789
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I4").WithArguments("Test2", "I4.P4").
WithLocation
(90, 31),
29792
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I5").WithArguments("Test2", "I5.P5").
WithLocation
(90, 35),
29795
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I6").WithArguments("Test2", "I6.P6").
WithLocation
(90, 39),
29798
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I7").WithArguments("Test2", "I7.P7").
WithLocation
(90, 43),
29801
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I8").WithArguments("Test2", "I8.P8").
WithLocation
(90, 47)
30087
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("extern", "7.3", "8.0").
WithLocation
(4, 32),
30090
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P2").WithArguments("extern", "7.3", "8.0").
WithLocation
(8, 40),
30093
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P2").WithArguments("virtual", "7.3", "8.0").
WithLocation
(8, 40),
30096
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P3").WithArguments("static", "7.3", "8.0").
WithLocation
(12, 39),
30099
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P3").WithArguments("extern", "7.3", "8.0").
WithLocation
(12, 39),
30102
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P4").WithArguments("private", "7.3", "8.0").
WithLocation
(16, 40),
30105
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P4").WithArguments("extern", "7.3", "8.0").
WithLocation
(16, 40),
30108
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P5").WithArguments("sealed", "7.3", "8.0").
WithLocation
(20, 39),
30111
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P5").WithArguments("extern", "7.3", "8.0").
WithLocation
(20, 39),
30114
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "P6").WithArguments("default interface implementation", "8.0").
WithLocation
(24, 32),
30117
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P2").WithArguments("I2.P2.remove").
WithLocation
(8, 40),
30120
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P3").WithArguments("I3.P3.remove").
WithLocation
(12, 39),
30123
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P4").WithArguments("I4.P4.remove").
WithLocation
(16, 40),
30126
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P5").WithArguments("I5.P5.remove").
WithLocation
(20, 39),
30129
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P1").WithArguments("I1.P1.remove").
WithLocation
(4, 32)
30141
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "P1").
WithLocation
(4, 32),
30144
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "P2").
WithLocation
(8, 40),
30147
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "P4").
WithLocation
(16, 40),
30150
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "P5").
WithLocation
(20, 39),
30153
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P2").WithArguments("I2.P2.remove").
WithLocation
(8, 40),
30156
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "P3").
WithLocation
(12, 39),
30159
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P3").WithArguments("I3.P3.remove").
WithLocation
(12, 39),
30162
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P4").WithArguments("I4.P4.remove").
WithLocation
(16, 40),
30165
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P5").WithArguments("I5.P5.remove").
WithLocation
(20, 39),
30168
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P1").WithArguments("I1.P1.remove").
WithLocation
(4, 32),
30171
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(26, 9),
30174
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(27, 9)
30217
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "P1").WithArguments("I1.P1").
WithLocation
(4, 41),
30220
Diagnostic(ErrorCode.ERR_InterfaceEventInitializer, "P2").WithArguments("I2.P2").
WithLocation
(8, 32),
30223
Diagnostic(ErrorCode.ERR_ExternHasBody, "add").WithArguments("I3.P3.add").
WithLocation
(12, 43),
30226
Diagnostic(ErrorCode.ERR_ExternHasBody, "remove").WithArguments("I3.P3.remove").
WithLocation
(12, 62),
30229
Diagnostic(ErrorCode.ERR_ExternHasBody, "add").WithArguments("I4.P4.add").
WithLocation
(16, 45),
30232
Diagnostic(ErrorCode.ERR_ExternHasBody, "remove").WithArguments("I4.P4.remove").
WithLocation
(16, 63),
30235
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.P1").
WithLocation
(19, 15),
30238
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P3").WithArguments("Test2.P3").
WithLocation
(27, 28),
30241
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P4").WithArguments("Test2.P4").
WithLocation
(28, 28),
30244
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P2").WithArguments("I2.P2.remove").
WithLocation
(8, 32),
30247
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P2").WithArguments("I2.P2").
WithLocation
(8, 32)
30423
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.P1").
WithLocation
(4, 37),
30426
Diagnostic(ErrorCode.ERR_InterfaceEventInitializer, "P2").WithArguments("I2.P2").
WithLocation
(8, 42),
30429
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P4").WithArguments("abstract", "9.0", "11.0").
WithLocation
(16, 41),
30432
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I4.P4").
WithLocation
(16, 44),
30435
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P5").WithArguments("override").
WithLocation
(20, 41),
30438
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "P3").WithArguments("I3.P3.remove").
WithLocation
(12, 39),
30441
Diagnostic(ErrorCode.ERR_VirtualPrivate, "P2").WithArguments("I2.P2").
WithLocation
(8, 42),
30444
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.P1").
WithLocation
(23, 15),
30447
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I2.P2").
WithLocation
(23, 19),
30450
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I4").WithArguments("Test1", "I4.P4").
WithLocation
(23, 27),
30453
Diagnostic(ErrorCode.ERR_BadAccess, "P2").WithArguments("I2.P2").
WithLocation
(30, 28),
30456
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P3").WithArguments("Test2.P3").
WithLocation
(31, 28),
30459
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P4").WithArguments("Test2.P4").
WithLocation
(32, 28),
30462
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P5").WithArguments("Test2.P5").
WithLocation
(33, 28),
30465
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I4").WithArguments("Test2", "I4.P4").
WithLocation
(27, 27),
30468
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P2").WithArguments("I2.P2").
WithLocation
(8, 42)
30812
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(17, 12),
30815
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(18, 12)
30843
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(6, 12),
30846
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(7, 12),
30849
Diagnostic(ErrorCode.ERR_BadAccess, "P2").WithArguments("I1.P2").
WithLocation
(8, 12),
30852
Diagnostic(ErrorCode.ERR_BadAccess, "P2").WithArguments("I1.P2").
WithLocation
(9, 12)
31003
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(6, 12),
31006
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(7, 12),
31009
Diagnostic(ErrorCode.ERR_BadAccess, "P2").WithArguments("I1.P2").
WithLocation
(8, 12),
31012
Diagnostic(ErrorCode.ERR_BadAccess, "P2").WithArguments("I1.P2").
WithLocation
(9, 12),
31015
Diagnostic(ErrorCode.ERR_BadAccess, "P3").WithArguments("I1.P3").
WithLocation
(10, 12),
31018
Diagnostic(ErrorCode.ERR_BadAccess, "P3").WithArguments("I1.P3").
WithLocation
(11, 12)
31029
Diagnostic(ErrorCode.ERR_BadAccess, "P3").WithArguments("I1.P3").
WithLocation
(10, 12),
31032
Diagnostic(ErrorCode.ERR_BadAccess, "P3").WithArguments("I1.P3").
WithLocation
(11, 12)
31122
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add", "9.0", "10.0").
WithLocation
(12, 9),
31125
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove", "9.0", "10.0").
WithLocation
(16, 9)
31129
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(2, 15)
31178
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add", "9.0", "10.0").
WithLocation
(12, 9),
31181
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove", "9.0", "10.0").
WithLocation
(16, 9)
31186
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(2, 15)
31236
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add", "9.0", "10.0").
WithLocation
(12, 9),
31239
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove", "9.0", "10.0").
WithLocation
(16, 9)
31244
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(2, 15)
31249
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").
WithLocation
(12, 9),
31252
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").
WithLocation
(16, 9)
31386
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(9, 28)
31635
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "T1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 15),
31638
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "T2").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 11),
31641
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "T3").WithArguments("default interface implementation", "8.0").
WithLocation
(12, 12),
31644
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "T4").WithArguments("default interface implementation", "8.0").
WithLocation
(15, 10)
31759
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T1").
WithLocation
(4, 25),
31762
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T2").
WithLocation
(9, 21),
31765
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T3").
WithLocation
(12, 22),
31768
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T4").
WithLocation
(15, 20),
31771
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T5").
WithLocation
(20, 29)
31805
Diagnostic(ErrorCode.ERR_BadAccess, "T1").WithArguments("I1.T1").
WithLocation
(6, 12),
31808
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.T1.M1()").
WithLocation
(7, 11),
31811
Diagnostic(ErrorCode.ERR_BadAccess, "T2").WithArguments("I1.T2").
WithLocation
(8, 41),
31814
Diagnostic(ErrorCode.ERR_BadAccess, "T3").WithArguments("I1.T3").
WithLocation
(9, 41),
31817
Diagnostic(ErrorCode.ERR_BadAccess, "T4").WithArguments("I1.T4").
WithLocation
(10, 37),
31820
Diagnostic(ErrorCode.ERR_BadAccess, "T5").WithArguments("I1.T5").
WithLocation
(11, 41),
31823
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.T1.M1()").
WithLocation
(11, 46),
31826
Diagnostic(ErrorCode.ERR_BadAccess, "T1").WithArguments("I1.T1").
WithLocation
(14, 22)
31950
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T1").
WithLocation
(4, 34),
31953
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T2").
WithLocation
(9, 30),
31956
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T3").
WithLocation
(12, 31),
31959
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T4").
WithLocation
(15, 29),
31962
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T5").
WithLocation
(20, 38)
31995
Diagnostic(ErrorCode.ERR_BadAccess, "T1").WithArguments("I1.T1").
WithLocation
(6, 12),
31998
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.T1.M1()").
WithLocation
(7, 11),
32001
Diagnostic(ErrorCode.ERR_BadAccess, "T2").WithArguments("I1.T2").
WithLocation
(8, 41),
32004
Diagnostic(ErrorCode.ERR_BadAccess, "T3").WithArguments("I1.T3").
WithLocation
(9, 41),
32007
Diagnostic(ErrorCode.ERR_BadAccess, "T4").WithArguments("I1.T4").
WithLocation
(10, 37),
32010
Diagnostic(ErrorCode.ERR_BadAccess, "T5").WithArguments("I1.T5").
WithLocation
(11, 41),
32013
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.T1.M1()").
WithLocation
(11, 46),
32016
Diagnostic(ErrorCode.ERR_BadAccess, "T1").WithArguments("I1.T1").
WithLocation
(14, 22)
32077
Diagnostic(ErrorCode.ERR_BadAccess, "T1").WithArguments("I1.T1").
WithLocation
(2, 18),
32080
Diagnostic(ErrorCode.ERR_BadAccess, "T1").WithArguments("I1.T1").
WithLocation
(6, 12),
32083
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.T1.M1()").
WithLocation
(7, 11),
32086
Diagnostic(ErrorCode.ERR_BadAccess, "T2").WithArguments("I1.T2").
WithLocation
(8, 41),
32089
Diagnostic(ErrorCode.ERR_BadAccess, "T3").WithArguments("I1.T3").
WithLocation
(9, 41),
32092
Diagnostic(ErrorCode.ERR_BadAccess, "T4").WithArguments("I1.T4").
WithLocation
(10, 37),
32095
Diagnostic(ErrorCode.ERR_BadAccess, "T5").WithArguments("I1.T5").
WithLocation
(11, 41),
32098
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.T1.M1()").
WithLocation
(11, 46)
32202
Diagnostic(ErrorCode.ERR_BadAccess, "T1").WithArguments("I1.T1").
WithLocation
(21, 18),
32205
Diagnostic(ErrorCode.ERR_BadAccess, "T1").WithArguments("I1.T1").
WithLocation
(25, 12),
32208
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.T1.M1()").
WithLocation
(26, 11),
32211
Diagnostic(ErrorCode.ERR_BadAccess, "T2").WithArguments("I1.T2").
WithLocation
(27, 41),
32214
Diagnostic(ErrorCode.ERR_BadAccess, "T3").WithArguments("I1.T3").
WithLocation
(28, 41),
32217
Diagnostic(ErrorCode.ERR_BadAccess, "T4").WithArguments("I1.T4").
WithLocation
(29, 37)
32308
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T1").
WithLocation
(4, 33),
32311
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T2").
WithLocation
(9, 29),
32314
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T3").
WithLocation
(12, 30),
32317
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T4").
WithLocation
(15, 28),
32320
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "T5").
WithLocation
(20, 37)
32330
Diagnostic(ErrorCode.ERR_BadAccess, "T1").WithArguments("I1.T1").
WithLocation
(6, 12),
32333
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.T1.M1()").
WithLocation
(7, 11),
32336
Diagnostic(ErrorCode.ERR_BadAccess, "T2").WithArguments("I1.T2").
WithLocation
(8, 41),
32339
Diagnostic(ErrorCode.ERR_BadAccess, "T3").WithArguments("I1.T3").
WithLocation
(9, 41),
32342
Diagnostic(ErrorCode.ERR_BadAccess, "T4").WithArguments("I1.T4").
WithLocation
(10, 37),
32345
Diagnostic(ErrorCode.ERR_BadAccess, "T5").WithArguments("I1.T5").
WithLocation
(11, 41),
32348
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1.T1.M1()").
WithLocation
(11, 46),
32351
Diagnostic(ErrorCode.ERR_BadAccess, "T1").WithArguments("I1.T1").
WithLocation
(14, 22)
32509
Diagnostic(ErrorCode.ERR_BadAccess, "I2").WithArguments("I1.I2").
WithLocation
(16, 23),
32512
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I2").WithArguments("I2").
WithLocation
(21, 20),
32515
Diagnostic(ErrorCode.ERR_BadVisReturnType, "MI4").WithArguments("I4.MI4()", "I1.I2").
WithLocation
(23, 8),
32518
Diagnostic(ErrorCode.ERR_BadAccess, "I2").WithArguments("I1.I2").
WithLocation
(26, 19),
32521
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I2").WithArguments("I2").
WithLocation
(31, 16),
32524
Diagnostic(ErrorCode.ERR_BadVisReturnType, "MI6").WithArguments("I6.MI6()", "I1.I2").
WithLocation
(33, 8),
32527
Diagnostic(ErrorCode.ERR_BadAccess, "I2").WithArguments("I1.I2").
WithLocation
(36, 19),
32530
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I2").WithArguments("I2").
WithLocation
(41, 16),
32533
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I2").WithArguments("I2").
WithLocation
(43, 14),
32536
Diagnostic(ErrorCode.ERR_BadAccess, "I2").WithArguments("I1.I2").
WithLocation
(46, 15),
32539
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I2").WithArguments("I2").
WithLocation
(51, 12),
32542
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I2").WithArguments("I2").
WithLocation
(53, 14),
32545
Diagnostic(ErrorCode.ERR_BadAccess, "I2").WithArguments("C1.I2").
WithLocation
(56, 20),
32548
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I2").WithArguments("I2").
WithLocation
(61, 17),
32551
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I8").WithArguments("I8").
WithLocation
(66, 16),
32554
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I8").WithArguments("I8").
WithLocation
(73, 12),
32557
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I9").WithArguments("I9", "I9.I10").
WithLocation
(80, 11),
32560
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I10").WithArguments("I9.I10", "I9").
WithLocation
(82, 22)
32585
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInAgg, "NF").WithArguments("NF", "IA<int>").
WithLocation
(2, 24),
32588
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "IA").WithArguments("IA<T>", "IB<IQ<T>>").
WithLocation
(6, 11),
32591
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "IB").WithArguments("IB<T>", "IA<IQ<T>>").
WithLocation
(8, 11)
32649
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInAgg, "IOuter").WithArguments("IOuter", "Test.IInner").
WithLocation
(2, 33),
32652
Diagnostic(ErrorCode.ERR_CircularBase, "Other").WithArguments("Test", "Test.IInner").
WithLocation
(4, 31)
32939
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M1").WithArguments("default interface implementation", "8.0").
WithLocation
(14, 13),
32942
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M1").WithArguments("default interface implementation", "8.0").
WithLocation
(18, 13)
32964
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1()", "I2.M1()", "Test1", "default interface implementation", "7.3", "8.0").
WithLocation
(6, 15),
32967
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1()", "I4.M1()", "Test1", "default interface implementation", "7.3", "8.0").
WithLocation
(6, 15)
33015
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 26),
33018
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(9, 26),
33021
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("static", "10.0", "11.0").
WithLocation
(14, 20),
33024
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("static", "10.0", "11.0").
WithLocation
(18, 20)
33050
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1()", "I2.M1()", "Test1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(6, 15),
33053
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1()", "I4.M1()", "Test1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(6, 15)
33105
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M1").
WithLocation
(14, 13),
33108
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M1").
WithLocation
(18, 13)
33130
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1()", "I2.M1()", "Test1").
WithLocation
(6, 15),
33133
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1()", "I4.M1()", "Test1").
WithLocation
(6, 15)
33178
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(4, 26),
33181
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(9, 26),
33184
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(14, 20),
33187
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(18, 20)
33208
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.I2.M1()", "I2.M1()", "Test1").
WithLocation
(6, 15),
33211
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.I4.M1()", "I4.M1()", "Test1").
WithLocation
(6, 15)
33255
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M1").WithArguments("I1.I4.M1()").
WithLocation
(15, 13 + implModifiers.Length),
33258
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M1").WithArguments("I1.I2.M1()").
WithLocation
(14, 13 + implModifiers.Length)
33303
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I4").WithArguments("I1.I4.M1()", "I4").
WithLocation
(18, 10 + implModifiers.Length),
33306
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.I2.M1()", "I2").
WithLocation
(14, 10 + implModifiers.Length)
33352
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("public").
WithLocation
(14, 27),
33355
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("I1.M1()").
WithLocation
(14, 27),
33358
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("internal").
WithLocation
(18, 30),
33361
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("virtual").
WithLocation
(18, 30),
33364
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I2.M1()").
WithLocation
(28, 15)
33410
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("public").
WithLocation
(14, 20),
33413
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("I1.M1()").
WithLocation
(14, 20),
33416
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("internal").
WithLocation
(18, 37),
33419
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("virtual").
WithLocation
(18, 37),
33422
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I2.M1()").
WithLocation
(28, 15)
33472
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("sealed").
WithLocation
(14, 28 + implModifiers.Length),
33475
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("private").
WithLocation
(14, 28 + implModifiers.Length),
33478
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("protected").
WithLocation
(18, 32 + implModifiers.Length),
33481
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M1").WithArguments("I1.I4.M1()").
WithLocation
(18, 32 + implModifiers.Length),
33484
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I4.M1()").
WithLocation
(28, 15)
33536
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("private protected").
WithLocation
(14, 31 + implModifiers.Length),
33539
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("protected internal").
WithLocation
(18, 41 + implModifiers.Length),
33542
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("override").
WithLocation
(18, 41 + implModifiers.Length)
33582
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M1").WithArguments("I1.I2.M1()").
WithLocation
(9, 20 + implModifiers.Length)
33624
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M1").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 20),
33627
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M1").WithArguments("I1.I2.M1()").
WithLocation
(9, 20)
33635
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 26),
33638
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("static", "10.0", "11.0").
WithLocation
(9, 27),
33641
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M1").WithArguments("I1.I2.M1()").
WithLocation
(9, 27)
33655
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M1").
WithLocation
(9, 20),
33658
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M1").WithArguments("I1.I2.M1()").
WithLocation
(9, 20)
33666
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(4, 26),
33669
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(9, 27),
33672
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M1").WithArguments("I1.I2.M1()").
WithLocation
(9, 27)
33706
Diagnostic(ErrorCode.ERR_ExternHasBody, "M1").WithArguments("I1.I2.M1()").
WithLocation
(9, 20 + implModifiers.Length)
34019
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I4.M1()").
WithLocation
(8, 13 + implModifiers.Length),
34022
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I2.M1()").
WithLocation
(4, 13 + implModifiers.Length)
34034
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I4.M1()").
WithLocation
(8, 13 + implModifiers.Length),
34037
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I2.M1()").
WithLocation
(4, 13 + implModifiers.Length)
34363
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.M1()", "I2.I1.M1()", "I3.I1.M1()").
WithLocation
(2, 15),
34366
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I7").WithArguments("I1.M1()", "I2.I1.M1()", "I3.I1.M1()").
WithLocation
(5, 15),
34369
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1").WithArguments("I1.M1()", "I2.I1.M1()", "I3.I1.M1()").
WithLocation
(8, 15),
34372
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1").WithArguments("I1.M1()", "I5.I1.M1()", "I4.I1.M1()").
WithLocation
(11, 15),
34375
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I8").WithArguments("I1.M1()", "I5.I1.M1()", "I4.I1.M1()").
WithLocation
(14, 15)
34512
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.M1()", "I2.I1.M1()", "I3.I1.M1()").
WithLocation
(2, 15),
34515
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test1", "I1.M1()", "Test1.M1()", "void").
WithLocation
(2, 15)
34526
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.M1()", "I2.I1.M1()", "I3.I1.M1()").
WithLocation
(2, 15),
34529
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test1", "I1.M1()", "Test1.M1()", "void").
WithLocation
(2, 15)
34795
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(2, 7),
34798
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string?>.M1()").
WithLocation
(2, 15),
34801
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I3").WithArguments("I1<string?>.M1()", "I2.I1<string>.M1()", "I3.I1<string?>.M1()").
WithLocation
(2, 19)
34819
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(2, 7),
34822
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string>.M1()").
WithLocation
(2, 15),
34825
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I3").WithArguments("I1<string?>.M1()", "I2.I1<string>.M1()", "I3.I1<string>.M1()").
WithLocation
(2, 19)
34886
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(2, 7),
34889
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string?>.M1()").
WithLocation
(2, 15),
34892
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I3").WithArguments("I1<string?>.M1()", "I2.I1<string>.M1()", "I3.I1<string?>.M1()").
WithLocation
(2, 19),
34895
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1<string>").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string?>.M1()").
WithLocation
(2, 23)
34914
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(2, 7),
34917
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string>.M1()").
WithLocation
(2, 15),
34920
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I3").WithArguments("I1<string?>.M1()", "I2.I1<string>.M1()", "I3.I1<string>.M1()").
WithLocation
(2, 19),
34923
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1<string>").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string>.M1()").
WithLocation
(2, 23)
34987
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string?>.M1()").
WithLocation
(3, 15),
34990
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I3").WithArguments("I1<string?>.M1()", "I2.I1<string>.M1()", "I3.I1<string?>.M1()").
WithLocation
(3, 19),
34993
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1<string>").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string?>.M1()").
WithLocation
(3, 23)
35012
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string>.M1()").
WithLocation
(3, 15),
35015
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I3").WithArguments("I1<string?>.M1()", "I2.I1<string>.M1()", "I3.I1<string>.M1()").
WithLocation
(3, 19),
35018
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1<string>").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string>.M1()").
WithLocation
(3, 23)
35083
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(4, 7),
35086
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string?>.M1()").
WithLocation
(4, 15),
35089
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1<string?>").WithArguments("I1<string?>.M1()", "I2.I1<string>.M1()", "I3.I1<string?>.M1()").
WithLocation
(4, 23)
35107
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(4, 7),
35110
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1<string>.M1()", "I2.I1<string>.M1()", "I3.I1<string>.M1()").
WithLocation
(4, 15),
35113
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1<string?>").WithArguments("I1<string?>.M1()", "I2.I1<string>.M1()", "I3.I1<string>.M1()").
WithLocation
(4, 23)
35172
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "I3").WithArguments("I1<string?>", "I3").
WithLocation
(13, 18),
35175
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "I3").WithArguments("I1<string>.M1()").
WithLocation
(13, 18),
35178
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "I3").WithArguments("I1<string?>.M1()").
WithLocation
(13, 18)
35188
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(4, 7),
35191
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1<string>.M1()").
WithLocation
(4, 15),
35194
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1<string?>.M1()").
WithLocation
(4, 15)
35299
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(4, 7),
35302
Diagnostic(ErrorCode.WRN_NullabilityMismatchInInterfaceImplementedByBase, "I2").WithArguments("Test1", "I1<string>.M1()").
WithLocation
(4, 15)
35408
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string>", "Test1").
WithLocation
(4, 7),
35411
Diagnostic(ErrorCode.WRN_NullabilityMismatchInInterfaceImplementedByBase, "I2").WithArguments("Test1", "I1<string>.M1()").
WithLocation
(4, 19)
35521
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I2<string?>", "Test1").
WithLocation
(4, 7),
35524
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(4, 7)
35634
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I2<string>", "Test1").
WithLocation
(4, 7),
35637
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string>", "Test1").
WithLocation
(4, 7)
35720
Diagnostic(ErrorCode.WRN_NullabilityMismatchInExplicitlyImplementedInterface, "I1<string?>").
WithLocation
(11, 10 + implModifiers.Length)
35745
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "Test<Test1, Test1>").WithArguments("Test1.Test<i11, i12>()", "I1<string?>", "i11", "Test1").
WithLocation
(9, 9)
35837
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(4, 7),
35840
Diagnostic(ErrorCode.WRN_NullabilityMismatchInInterfaceImplementedByBase, "I1<string?>").WithArguments("Test1", "I1<string?>.M1()").
WithLocation
(4, 19)
35923
Diagnostic(ErrorCode.WRN_NullabilityMismatchInExplicitlyImplementedInterface, "I1<string>").
WithLocation
(11, 10 + implModifiers.Length)
35941
Diagnostic(ErrorCode.WRN_NullabilityMismatchInTypeParameterConstraint, "Test<Test1, Test1>").WithArguments("Test1.Test<i11, i12>()", "I1<string>", "i12", "Test1").
WithLocation
(9, 9)
36057
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I2<string?>", "Test1").
WithLocation
(4, 7),
36060
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(4, 7),
36063
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I3<string?>", "Test1").
WithLocation
(4, 7),
36066
Diagnostic(ErrorCode.WRN_NullabilityMismatchInInterfaceImplementedByBase, "I2<string>").WithArguments("Test1", "I1<string>.M1()").
WithLocation
(4, 15)
36630
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I2.M1()").
WithLocation
(4, 13 + implModifiers.Length),
36633
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I4.M1()").
WithLocation
(8, 13 + implModifiers.Length)
36680
Diagnostic(ErrorCode.WRN_NewRequired, "M1").WithArguments("I2.M1()", "I1.M1()").
WithLocation
(10, 25 + implModifiers.Length),
36683
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.M2()").
WithLocation
(20, 15),
36686
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I1.M1()").
WithLocation
(20, 15)
37003
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "Getter()").WithArguments("default interface implementation", "8.0").
WithLocation
(14, 18),
37006
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "Getter").WithArguments("default interface implementation", "8.0").
WithLocation
(16, 17),
37009
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(24, 9)
37013
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1.get", "I2.M1.get", "Test1", "default interface implementation", "7.3", "8.0").
WithLocation
(6, 15),
37016
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1.set", "I4.M1.set", "Test1", "default interface implementation", "7.3", "8.0").
WithLocation
(6, 15)
37067
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 25),
37070
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(9, 25),
37073
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("static", "10.0", "11.0").
WithLocation
(14, 19),
37076
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("static", "10.0", "11.0").
WithLocation
(22, 19)
37080
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1.get", "I2.M1.get", "Test1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(6, 15),
37083
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1.set", "I4.M1.set", "Test1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(6, 15)
37168
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(16, 9),
37171
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(21, 9),
37174
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(29, 9)
37178
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1.set", "I2.M1.set", "Test1").
WithLocation
(6, 15),
37181
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1.get", "I2.M1.get", "Test1").
WithLocation
(6, 15),
37184
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1.set", "I4.M1.set", "Test1").
WithLocation
(6, 15)
37265
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(4, 29),
37268
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(4, 34),
37271
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(9, 29),
37274
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(14, 19),
37277
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(27, 19)
37281
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.I2.M1.get", "I2.M1.get", "Test1").
WithLocation
(6, 15),
37284
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.I2.M1.set", "I2.M1.set", "Test1").
WithLocation
(6, 15),
37287
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.I4.M1.set", "I4.M1.set", "Test1").
WithLocation
(6, 15)
37323
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.I2.M1.get").
WithLocation
(14, 16),
37326
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I1.I4.M1.set").
WithLocation
(15, 16)
37378
Diagnostic(ErrorCode.ERR_AutoPropertyMustHaveGetAccessor, "set").
WithLocation
(15, 23)
37411
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.I2.M1", "I2").
WithLocation
(14, 9 + implModifiers.Length),
37414
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I4").WithArguments("I1.I4.M1", "I4").
WithLocation
(15, 9 + implModifiers.Length)
37471
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("public").
WithLocation
(14, 26),
37474
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("I1.M1").
WithLocation
(14, 26),
37477
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("internal").
WithLocation
(16, 18),
37480
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("internal").
WithLocation
(19, 29),
37483
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("virtual").
WithLocation
(19, 29),
37486
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("public").
WithLocation
(21, 16),
37489
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I2.M1").
WithLocation
(30, 15)
37537
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("public").
WithLocation
(14, 19),
37540
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("I1.M1").
WithLocation
(14, 19),
37543
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("internal").
WithLocation
(16, 18),
37546
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("internal").
WithLocation
(19, 36),
37549
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("virtual").
WithLocation
(19, 36),
37552
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("public").
WithLocation
(21, 16),
37555
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I2.M1").
WithLocation
(30, 15)
37603
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("sealed").
WithLocation
(14, 27 + implModifiers.Length),
37606
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("private").
WithLocation
(14, 27 + implModifiers.Length),
37609
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("private").
WithLocation
(16, 17),
37612
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("protected").
WithLocation
(19, 31 + implModifiers.Length),
37615
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.I4.M1.get").
WithLocation
(21, 9),
37618
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("protected").
WithLocation
(22, 19),
37621
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I1.I4.M1.set").
WithLocation
(22, 19),
37624
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I4.M1").
WithLocation
(30, 15)
37672
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("private protected").
WithLocation
(14, 30 + implModifiers.Length),
37675
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("private protected").
WithLocation
(16, 27),
37678
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("protected internal").
WithLocation
(19, 40 + implModifiers.Length),
37681
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("override").
WithLocation
(19, 40 + implModifiers.Length),
37684
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("protected internal").
WithLocation
(22, 28)
37737
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.I2.M1.get").
WithLocation
(9, 23)
37743
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 23),
37746
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.I2.M1.get").
WithLocation
(9, 23)
37752
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(9, 23),
37755
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.I2.M1.get").
WithLocation
(9, 23)
37759
Diagnostic(ErrorCode.ERR_ExternHasBody, "set").WithArguments("I1.I2.M1.set").
WithLocation
(10, 7)
37897
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.I2.M1.get").
WithLocation
(9, 30)
37903
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 25),
37906
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("static", "10.0", "11.0").
WithLocation
(9, 26),
37909
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.I2.M1.get").
WithLocation
(9, 30)
37915
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(4, 29),
37918
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(9, 26),
37921
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.I2.M1.get").
WithLocation
(9, 30)
37925
Diagnostic(ErrorCode.ERR_ExternHasBody, "set").WithArguments("I1.I2.M1.set").
WithLocation
(10, 7)
37986
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "M1").WithArguments("I2.I1.M1", "I1.M1.set").
WithLocation
(10, 12),
37989
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "M2").WithArguments("I2.I1.M2", "I1.M2.get").
WithLocation
(14, 12),
37992
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.M1").
WithLocation
(20, 15),
37995
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.M2").
WithLocation
(20, 15),
37998
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I4.I3.M1.set", "I3.M1").
WithLocation
(36, 9),
38001
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I4.I3.M2.get", "I3.M2").
WithLocation
(40, 9),
38004
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I4.I3.M3.get").
WithLocation
(43, 16),
38007
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I4.I3.M3.set").
WithLocation
(43, 21),
38010
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "M4").
WithLocation
(44, 12),
38013
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I4.I3.M4.get").
WithLocation
(44, 16),
38016
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I4.I3.M4.set").
WithLocation
(44, 21)
38077
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "M1").WithArguments("I2.I1.M1", "I1.M1.set").
WithLocation
(10, 19),
38080
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "M2").WithArguments("I2.I1.M2", "I1.M2.get").
WithLocation
(14, 19),
38083
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.M1").
WithLocation
(20, 15),
38086
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.M2").
WithLocation
(20, 15),
38089
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I4.I3.M1.set", "I3.M1").
WithLocation
(36, 9),
38092
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I4.I3.M2.get", "I3.M2").
WithLocation
(40, 9)
38177
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I2.M1").
WithLocation
(4, 12 + implModifiers.Length),
38180
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I4.M1.set").
WithLocation
(11, 12 + implModifiers.Length)
38537
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.M1", "I2.I1.M1", "I3.I1.M1").
WithLocation
(2, 15),
38540
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I7").WithArguments("I1.M1", "I2.I1.M1", "I3.I1.M1").
WithLocation
(5, 15),
38543
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1").WithArguments("I1.M1", "I2.I1.M1", "I3.I1.M1").
WithLocation
(8, 15),
38546
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1").WithArguments("I1.M1", "I5.I1.M1", "I4.I1.M1").
WithLocation
(11, 15),
38549
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I8").WithArguments("I1.M1", "I5.I1.M1", "I4.I1.M1").
WithLocation
(14, 15)
38807
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.M1", "I2.I1.M1", "I3.I1.M1").
WithLocation
(2, 15),
38810
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test1", "I1.M1", "Test1.M1", "int").
WithLocation
(2, 15)
39153
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("protected").
WithLocation
(16, 19),
39156
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("protected").
WithLocation
(19, 22 + implModifiers.Length)
39204
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("protected internal").
WithLocation
(17, 28),
39207
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("protected internal").
WithLocation
(19, 31 + implModifiers.Length)
39255
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("private protected").
WithLocation
(16, 27),
39258
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("private protected").
WithLocation
(19, 30 + implModifiers.Length)
39313
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "I3").WithArguments("I1<string?>", "I3").
WithLocation
(13, 18),
39316
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "I3").WithArguments("I1<string>.M1").
WithLocation
(13, 18),
39319
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "I3").WithArguments("I1<string?>.M1").
WithLocation
(13, 18),
39322
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "M1").WithArguments("I3", "I1<System.String>.M1").
WithLocation
(21, 21 + implModifiers.Length)
39332
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "Test1").WithArguments("I1<string?>", "Test1").
WithLocation
(4, 7),
39335
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1<string>.M1").
WithLocation
(4, 15),
39338
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1<string?>.M1").
WithLocation
(4, 15)
39734
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I2.M1").
WithLocation
(4, 12 + implModifiers.Length),
39737
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I4.M1.set").
WithLocation
(11, 12 + implModifiers.Length)
40034
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(16, 9),
40037
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(17, 9),
40040
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(22, 9),
40043
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(23, 9)
40065
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1.remove", "I2.M1.remove", "Test1", "default interface implementation", "7.3", "8.0").
WithLocation
(6, 15),
40068
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1.add", "I2.M1.add", "Test1", "default interface implementation", "7.3", "8.0").
WithLocation
(6, 15),
40071
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1.remove", "I4.M1.remove", "Test1", "default interface implementation", "7.3", "8.0").
WithLocation
(6, 15),
40074
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1.add", "I4.M1.add", "Test1", "default interface implementation", "7.3", "8.0").
WithLocation
(6, 15)
40125
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 41),
40128
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(9, 41),
40131
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("static", "10.0", "11.0").
WithLocation
(14, 35),
40134
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("static", "10.0", "11.0").
WithLocation
(20, 35)
40155
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1.add", "I2.M1.add", "Test1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(6, 15),
40158
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1.remove", "I2.M1.remove", "Test1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(6, 15),
40161
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1.add", "I4.M1.add", "Test1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(6, 15),
40164
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1.remove", "I4.M1.remove", "Test1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(6, 15)
40215
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(16, 9),
40218
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(17, 9),
40221
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "add").
WithLocation
(22, 9),
40224
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "remove").
WithLocation
(23, 9)
40246
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1.remove", "I2.M1.remove", "Test1").
WithLocation
(6, 15),
40249
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I2.M1.add", "I2.M1.add", "Test1").
WithLocation
(6, 15),
40252
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1.remove", "I4.M1.remove", "Test1").
WithLocation
(6, 15),
40255
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I4.M1.add", "I4.M1.add", "Test1").
WithLocation
(6, 15)
40303
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(4, 41),
40306
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(9, 41),
40309
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(14, 35),
40312
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(20, 35)
40333
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.I2.M1.add", "I2.M1.add", "Test1").
WithLocation
(6, 15),
40336
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.I2.M1.remove", "I2.M1.remove", "Test1").
WithLocation
(6, 15),
40339
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.I4.M1.add", "I4.M1.add", "Test1").
WithLocation
(6, 15),
40342
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "I1").WithArguments("I1.I4.M1.remove", "I4.M1.remove", "Test1").
WithLocation
(6, 15)
40394
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(16, 12),
40397
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(17, 15),
40400
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(21, 12)
40437
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.I2.M1", "I2").
WithLocation
(9, 25 + implModifiers.Length)
40485
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("public").
WithLocation
(14, 42),
40488
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("I1.M1").
WithLocation
(14, 42),
40491
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("internal").
WithLocation
(19, 45),
40494
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("virtual").
WithLocation
(19, 45),
40497
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I2.M1").
WithLocation
(30, 15)
40545
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("public").
WithLocation
(14, 35),
40548
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("I1.M1").
WithLocation
(14, 35),
40551
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("internal").
WithLocation
(19, 52),
40554
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("virtual").
WithLocation
(19, 52),
40557
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I2.M1").
WithLocation
(30, 15)
40609
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("sealed").
WithLocation
(14, 43 + implModifiers.Length),
40612
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("private").
WithLocation
(14, 43 + implModifiers.Length),
40615
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("protected").
WithLocation
(19, 47 + implModifiers.Length),
40618
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.I4.M1").
WithLocation
(20, 5),
40621
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I4.M1").
WithLocation
(30, 15)
40675
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("private protected").
WithLocation
(14, 53 + implModifiers.Length),
40678
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("extern").
WithLocation
(14, 53 + implModifiers.Length),
40681
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("protected internal").
WithLocation
(19, 56 + implModifiers.Length),
40684
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("override").
WithLocation
(19, 56 + implModifiers.Length)
40749
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, "M1").
WithLocation
(30, 28 + implModifiers.Length),
40752
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "M1").WithArguments("I2.I1.M1").
WithLocation
(10, 28 + implModifiers.Length),
40755
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "M2").WithArguments("I2.I1.M2").
WithLocation
(14, 28 + implModifiers.Length),
40758
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I4").WithArguments("Test2", "I3.M1").
WithLocation
(33, 15),
40761
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.M1").
WithLocation
(20, 15),
40764
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.M2").
WithLocation
(20, 15),
40767
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, ".").
WithLocation
(38, 27 + implModifiers.Length),
40770
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I5").WithArguments("Test3", "I3.M1").
WithLocation
(41, 15)
40953
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I2.M1").
WithLocation
(4, 28 + implModifiers.Length)
40965
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I2.M1").
WithLocation
(4, 28 + implModifiers.Length)
41365
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.M1", "I2.I1.M1", "I3.I1.M1").
WithLocation
(2, 15),
41368
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I7").WithArguments("I1.M1", "I2.I1.M1", "I3.I1.M1").
WithLocation
(5, 15),
41371
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1").WithArguments("I1.M1", "I2.I1.M1", "I3.I1.M1").
WithLocation
(8, 15),
41374
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1").WithArguments("I1.M1", "I5.I1.M1", "I4.I1.M1").
WithLocation
(11, 15),
41377
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I8").WithArguments("I1.M1", "I5.I1.M1", "I4.I1.M1").
WithLocation
(14, 15)
41497
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.M1", "I2.I1.M1", "I3.I1.M1").
WithLocation
(2, 15),
41500
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test1", "I1.M1", "Test1.M1", "System.Action").
WithLocation
(2, 15)
41511
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.M1", "I2.I1.M1", "I3.I1.M1").
WithLocation
(2, 15),
41514
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test1", "I1.M1", "Test1.M1", "System.Action").
WithLocation
(2, 15)
42299
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I2.M1").
WithLocation
(4, 28 + implModifiers.Length)
42412
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "Getter").WithArguments("default interface implementation", "8.0").
WithLocation
(16, 17),
42415
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "Getter()").WithArguments("default interface implementation", "8.0").
WithLocation
(14, 27),
42418
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(24, 9)
42422
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I2.this[int].get", "I2.this[int].get", "Test1", "default interface implementation", "7.3", "8.0").
WithLocation
(6, 15),
42425
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.I4.this[int].set", "I4.this[int].set", "Test1", "default interface implementation", "7.3", "8.0").
WithLocation
(6, 15)
42481
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(16, 9),
42484
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(21, 9),
42487
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(29, 9)
42491
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I2.this[int].set", "I2.this[int].set", "Test1").
WithLocation
(6, 15),
42494
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I2.this[int].get", "I2.this[int].get", "Test1").
WithLocation
(6, 15),
42497
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementationForMember, "I1").WithArguments("I1.I4.this[int].set", "I4.this[int].set", "Test1").
WithLocation
(6, 15)
42533
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.I2.this[int].get").
WithLocation
(14, 25),
42536
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I1.I4.this[int].set").
WithLocation
(15, 25)
42565
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.I2.this[int]", "I2").
WithLocation
(14, 9),
42568
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I4").WithArguments("I1.I4.this[int]", "I4").
WithLocation
(15, 9)
42612
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(14, 26),
42615
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("public").
WithLocation
(14, 26),
42618
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("internal").
WithLocation
(16, 18),
42621
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("internal").
WithLocation
(19, 29),
42624
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("virtual").
WithLocation
(19, 29),
42627
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("public").
WithLocation
(21, 16)
42671
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("sealed").
WithLocation
(14, 27),
42674
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("private").
WithLocation
(14, 27),
42677
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("private").
WithLocation
(16, 17),
42680
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("protected").
WithLocation
(19, 31),
42683
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.I4.this[int].get").
WithLocation
(21, 9),
42686
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("protected").
WithLocation
(22, 19),
42689
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I1.I4.this[int].set").
WithLocation
(22, 19),
42692
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test1", "I4.this[int]").
WithLocation
(30, 15)
42736
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("private protected").
WithLocation
(14, 30),
42739
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("private protected").
WithLocation
(16, 27),
42742
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("protected internal").
WithLocation
(19, 40),
42745
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("override").
WithLocation
(19, 40),
42748
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("protected internal").
WithLocation
(22, 28)
42801
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.I2.this[int].get").
WithLocation
(9, 32)
42807
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 32),
42810
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.I2.this[int].get").
WithLocation
(9, 32)
42816
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(9, 32),
42819
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.I2.this[int].get").
WithLocation
(9, 32)
42823
Diagnostic(ErrorCode.ERR_ExternHasBody, "set").WithArguments("I1.I2.this[int].set").
WithLocation
(10, 7)
42884
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(44, 38),
42887
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "this").WithArguments("I2.I1.this[int]", "I1.this[int].set").
WithLocation
(10, 12),
42890
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "this").WithArguments("I2.I1.this[long]", "I1.this[long].get").
WithLocation
(14, 12),
42893
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[long]").
WithLocation
(20, 15),
42896
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(20, 15),
42899
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I4.I3.this[int].set", "I3.this[int]").
WithLocation
(36, 9),
42902
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I4.I3.this[long].get", "I3.this[long]").
WithLocation
(40, 9),
42905
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I4.I3.this[byte].get").
WithLocation
(43, 26),
42908
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I4.I3.this[byte].set").
WithLocation
(43, 31),
42911
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I4.I3.this[short].get").
WithLocation
(44, 27),
42914
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I4.I3.this[short].set").
WithLocation
(44, 32)
42977
Diagnostic(ErrorCode.ERR_BadAccess, "this").WithArguments("I2.this[int]").
WithLocation
(4, 12),
42980
Diagnostic(ErrorCode.ERR_BadAccess, "this").WithArguments("I4.this[int].set").
WithLocation
(11, 12)
43182
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15),
43185
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I7").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(5, 15),
43188
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(8, 15),
43191
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1").WithArguments("I1.this[int]", "I5.I1.this[int]", "I4.I1.this[int]").
WithLocation
(11, 15),
43194
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I8").WithArguments("I1.this[int]", "I5.I1.this[int]", "I4.I1.this[int]").
WithLocation
(14, 15)
43200
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15),
43203
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I7").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(5, 15),
43206
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(8, 15),
43209
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I1").WithArguments("I1.this[int]", "I5.I1.Item[int]", "I4.I1.Item[int]").
WithLocation
(11, 15),
43212
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I8").WithArguments("I1.this[int]", "I5.I1.Item[int]", "I4.I1.Item[int]").
WithLocation
(14, 15)
43251
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15),
43254
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test1", "I1.this[int]", "Test1.this[int]", "int").
WithLocation
(2, 15)
43260
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15),
43263
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test1", "I1.this[int]", "Test1.this[int]", "int").
WithLocation
(2, 15)
43410
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(4, 16)
43447
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(4, 24),
43450
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(9, 19),
43453
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(21, 28)
43490
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(9, 19),
43493
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(21, 28)
43518
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").
WithLocation
(4, 9),
43521
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F2").
WithLocation
(5, 26),
43524
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F3").
WithLocation
(6, 35),
43527
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F4").
WithLocation
(7, 34),
43530
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F5").
WithLocation
(8, 9)
43542
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F1").
WithLocation
(4, 9),
43545
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F5").
WithLocation
(8, 9)
43666
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 16),
43669
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F2").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 23),
43672
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F3").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 25),
43675
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F4").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 24),
43678
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "TestHelper").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 18)
43690
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F1").
WithLocation
(4, 16),
43693
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F2").
WithLocation
(5, 23),
43696
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F3").
WithLocation
(6, 25),
43699
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F4").
WithLocation
(7, 24)
43802
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 25),
43805
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F2").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 32),
43808
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F3").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 34),
43811
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F4").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 33),
43814
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "TestHelper").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 18)
43825
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F1").
WithLocation
(4, 25),
43828
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F2").
WithLocation
(5, 32),
43831
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F3").
WithLocation
(6, 34),
43834
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F4").
WithLocation
(7, 33)
43932
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 15),
43935
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F2").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 22),
43938
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F3").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 24),
43941
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F4").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 23),
43944
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "TestHelper").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 18)
43955
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F1").
WithLocation
(4, 15),
43958
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F2").
WithLocation
(5, 22),
43961
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F3").
WithLocation
(6, 24),
43964
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F4").
WithLocation
(7, 23)
44064
Diagnostic(ErrorCode.ERR_BadAccess, "F1").WithArguments("I1.F1").
WithLocation
(13, 12),
44067
Diagnostic(ErrorCode.ERR_BadAccess, "F3").WithArguments("I1.F3").
WithLocation
(15, 12)
44090
Diagnostic(ErrorCode.ERR_BadAccess, "F1").WithArguments("I1.F1").
WithLocation
(6, 12),
44093
Diagnostic(ErrorCode.ERR_BadAccess, "F2").WithArguments("I1.F2").
WithLocation
(7, 12),
44096
Diagnostic(ErrorCode.ERR_BadAccess, "F3").WithArguments("I1.F3").
WithLocation
(8, 12),
44099
Diagnostic(ErrorCode.ERR_BadAccess, "F3").WithArguments("I1.F3").
WithLocation
(16, 12)
44110
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 26),
44113
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F2").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 35),
44116
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "F3").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 34)
44164
Diagnostic(ErrorCode.ERR_InterfacesCantContainConstructors, "I1").
WithLocation
(4, 5),
44167
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "I2").WithArguments("I2.I2()").
WithLocation
(10, 5),
44170
Diagnostic(ErrorCode.ERR_InterfacesCantContainConstructors, "I2").
WithLocation
(10, 5)
44211
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "I1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 12),
44214
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "I2").WithArguments("default interface implementation", "8.0").
WithLocation
(8, 12),
44217
Diagnostic(ErrorCode.ERR_InterfacesCantContainConstructors, "I3").
WithLocation
(12, 5),
44220
Diagnostic(ErrorCode.ERR_InterfacesCantContainConstructors, "I4").
WithLocation
(16, 5),
44223
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "I5").WithArguments("I5.I5()").
WithLocation
(20, 5),
44226
Diagnostic(ErrorCode.ERR_InterfacesCantContainConstructors, "I5").
WithLocation
(20, 5),
44229
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "I6").WithArguments("extern", "7.3", "8.0").
WithLocation
(24, 19),
44232
Diagnostic(ErrorCode.WRN_ExternCtorNoImplementation, "I6").WithArguments("I6.I6()").
WithLocation
(24, 19)
44242
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "I1").
WithLocation
(4, 12),
44245
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "I2").
WithLocation
(8, 12),
44248
Diagnostic(ErrorCode.ERR_InterfacesCantContainConstructors, "I3").
WithLocation
(12, 5),
44251
Diagnostic(ErrorCode.ERR_InterfacesCantContainConstructors, "I4").
WithLocation
(16, 5),
44254
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "I5").WithArguments("I5.I5()").
WithLocation
(20, 5),
44257
Diagnostic(ErrorCode.ERR_InterfacesCantContainConstructors, "I5").
WithLocation
(20, 5),
44260
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "I6").
WithLocation
(24, 19),
44263
Diagnostic(ErrorCode.WRN_ExternCtorNoImplementation, "I6").WithArguments("I6.I6()").
WithLocation
(24, 19)
44366
Diagnostic(ErrorCode.ERR_StaticConstParam, "I1").WithArguments("I1.I1(int)").
WithLocation
(4, 12),
44369
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "I2").WithArguments("I2").
WithLocation
(8, 17),
44372
Diagnostic(ErrorCode.ERR_StaticConstructorWithAccessModifiers, "I4").WithArguments("I4.I4()").
WithLocation
(16, 19),
44375
Diagnostic(ErrorCode.ERR_StaticConstructorWithAccessModifiers, "I5").WithArguments("I5.I5()").
WithLocation
(20, 21),
44378
Diagnostic(ErrorCode.ERR_StaticConstructorWithAccessModifiers, "I6").WithArguments("I6.I6()").
WithLocation
(24, 20),
44381
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "I7").WithArguments("I7.I7()").
WithLocation
(28, 12),
44384
Diagnostic(ErrorCode.ERR_NonInvocableMemberCalled, "I8").WithArguments("I8").
WithLocation
(36, 9),
44387
Diagnostic(ErrorCode.ERR_NoSuchMember, "I8").WithArguments("I8", "I8").
WithLocation
(41, 12),
44390
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "static I9() {} => throw null;").
WithLocation
(46, 5),
44393
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I10").WithArguments("abstract").
WithLocation
(50, 21),
44396
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I11").WithArguments("virtual").
WithLocation
(54, 20),
44399
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I12").WithArguments("abstract").
WithLocation
(58, 21),
44402
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I13").WithArguments("virtual").
WithLocation
(62, 20),
44405
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(66, 5),
44408
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(66, 5),
44411
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(70, 12),
44414
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "I15").WithArguments("I15.I15()").
WithLocation
(70, 20),
44417
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "I15").WithArguments("I15").
WithLocation
(70, 20),
44420
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(74, 5),
44423
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(74, 5),
44426
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(78, 12),
44429
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "I17").WithArguments("I17").
WithLocation
(78, 20),
44432
Diagnostic(ErrorCode.ERR_ExternHasBody, "I18").WithArguments("I18.I18()").
WithLocation
(82, 19),
44435
Diagnostic(ErrorCode.ERR_ExternHasBody, "I19").WithArguments("I19.I19()").
WithLocation
(86, 19)
44568
Diagnostic(ErrorCode.WRN_ExternCtorNoImplementation, "I1").WithArguments("I1.I1()").
WithLocation
(4, 19)
44824
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.F1.get").
WithLocation
(4, 21),
44827
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("I1.F1.set").
WithLocation
(4, 26),
44830
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "F5").
WithLocation
(5, 17),
44833
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I1.F5.get").
WithLocation
(5, 21)
44933
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F1").WithArguments("static", "7.3", "8.0").
WithLocation
(4, 16),
44936
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F2").WithArguments("static", "7.3", "8.0").
WithLocation
(5, 23),
44939
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F2").WithArguments("public", "7.3", "8.0").
WithLocation
(5, 23),
44942
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F3").WithArguments("static", "7.3", "8.0").
WithLocation
(6, 25),
44945
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F3").WithArguments("internal", "7.3", "8.0").
WithLocation
(6, 25),
44948
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F4").WithArguments("static", "7.3", "8.0").
WithLocation
(7, 24),
44951
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F4").WithArguments("private", "7.3", "8.0").
WithLocation
(7, 24),
44954
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "TestHelper").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 18)
44966
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(4, 20),
44969
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(4, 25),
44972
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(5, 27),
44975
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(5, 32),
44978
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(6, 29),
44981
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(6, 34),
44984
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(7, 28),
44987
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(7, 33)
45086
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F1").WithArguments("static", "7.3", "8.0").
WithLocation
(4, 16),
45089
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F2").WithArguments("static", "7.3", "8.0").
WithLocation
(5, 23),
45092
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F2").WithArguments("public", "7.3", "8.0").
WithLocation
(5, 23),
45095
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F3").WithArguments("static", "7.3", "8.0").
WithLocation
(6, 25),
45098
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F3").WithArguments("internal", "7.3", "8.0").
WithLocation
(6, 25),
45101
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F4").WithArguments("static", "7.3", "8.0").
WithLocation
(7, 24),
45104
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F4").WithArguments("private", "7.3", "8.0").
WithLocation
(7, 24),
45107
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "TestHelper").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 18)
45119
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(4, 20),
45122
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(5, 27),
45125
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(6, 29),
45128
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(7, 28)
45225
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F1").WithArguments("static", "7.3", "8.0").
WithLocation
(4, 16),
45228
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "set").WithArguments("private", "7.3", "8.0").
WithLocation
(4, 33),
45231
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F2").WithArguments("static", "7.3", "8.0").
WithLocation
(5, 23),
45234
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F2").WithArguments("public", "7.3", "8.0").
WithLocation
(5, 23),
45237
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "set").WithArguments("private", "7.3", "8.0").
WithLocation
(5, 40),
45240
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F3").WithArguments("static", "7.3", "8.0").
WithLocation
(6, 25),
45243
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F3").WithArguments("internal", "7.3", "8.0").
WithLocation
(6, 25),
45246
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "set").WithArguments("private", "7.3", "8.0").
WithLocation
(6, 42),
45249
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "TestHelper").WithArguments("default interface implementation", "8.0").
WithLocation
(8, 18)
45261
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(4, 20),
45264
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(4, 33),
45267
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(5, 27),
45270
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(5, 40),
45273
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(6, 29),
45276
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(6, 42)
45299
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "F1").WithArguments("I1.F1").
WithLocation
(4, 33),
45302
Diagnostic(ErrorCode.ERR_InterfaceEventInitializer, "F5").WithArguments("I1.F5").
WithLocation
(5, 33),
45305
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "F5").WithArguments("I1.F5").
WithLocation
(5, 33),
45308
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F5").WithArguments("I1.F5").
WithLocation
(5, 33),
45311
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "F1").WithArguments("I1.F1").
WithLocation
(4, 33)
45416
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "TestHelper").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 18),
45419
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F1").WithArguments("static", "7.3", "8.0").
WithLocation
(4, 32),
45422
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F2").WithArguments("static", "7.3", "8.0").
WithLocation
(5, 39),
45425
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F2").WithArguments("public", "7.3", "8.0").
WithLocation
(5, 39),
45428
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F3").WithArguments("static", "7.3", "8.0").
WithLocation
(6, 41),
45431
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F3").WithArguments("internal", "7.3", "8.0").
WithLocation
(6, 41),
45434
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F4").WithArguments("static", "7.3", "8.0").
WithLocation
(7, 40),
45437
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F4").WithArguments("private", "7.3", "8.0").
WithLocation
(7, 40)
45448
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F1").
WithLocation
(4, 32),
45451
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F2").
WithLocation
(5, 39),
45454
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F3").
WithLocation
(6, 41),
45457
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F4").
WithLocation
(7, 40)
45553
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "TestHelper").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 18),
45556
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F1").WithArguments("static", "7.3", "8.0").
WithLocation
(4, 32),
45559
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F2").WithArguments("static", "7.3", "8.0").
WithLocation
(5, 39),
45562
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F2").WithArguments("public", "7.3", "8.0").
WithLocation
(5, 39),
45565
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F3").WithArguments("static", "7.3", "8.0").
WithLocation
(6, 41),
45568
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F3").WithArguments("internal", "7.3", "8.0").
WithLocation
(6, 41),
45571
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F4").WithArguments("static", "7.3", "8.0").
WithLocation
(7, 40),
45574
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "F4").WithArguments("private", "7.3", "8.0").
WithLocation
(7, 40)
45585
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F1").
WithLocation
(4, 32),
45588
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F2").
WithLocation
(5, 39),
45591
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F3").
WithLocation
(6, 41),
45594
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "F4").
WithLocation
(7, 40)
45758
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.P200").
WithLocation
(7, 34),
45761
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.M300").
WithLocation
(8, 9),
45764
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.E400 += i1.M300").
WithLocation
(9, 9),
45767
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.M300").
WithLocation
(9, 20),
45770
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.E400 -= new D1(i1.M300)").
WithLocation
(10, 9),
45773
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.M300").
WithLocation
(10, 27),
45776
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, @"i1[""500""]").
WithLocation
(11, 9)
45857
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I0.F1").
WithLocation
(9, 34),
45860
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I0.P2").
WithLocation
(10, 34),
45863
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I0.M3").
WithLocation
(11, 9),
45866
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I0.E4 += I0.M3").
WithLocation
(12, 9),
45869
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I0.M3").
WithLocation
(12, 18),
45872
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I0.E4 -= new D0(I0.M3)").
WithLocation
(13, 9),
45875
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I0.M3").
WithLocation
(13, 25),
45878
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I0.P2").
WithLocation
(14, 9),
45881
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "C6").
WithLocation
(15, 12),
45884
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "C7<int>").
WithLocation
(16, 17),
45887
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I0.P8").
WithLocation
(17, 13),
45890
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I0.P9").
WithLocation
(20, 9)
45983
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "Main").
WithLocation
(4, 17),
45986
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "i1.P20").
WithLocation
(7, 34),
45989
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "i1.M30").
WithLocation
(8, 9),
45992
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "i1.E40 += i1.M30").
WithLocation
(9, 9),
45995
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "i1.M30").
WithLocation
(9, 19),
45998
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "i1.E40 -= new D1(i1.M30)").
WithLocation
(10, 9),
46001
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "i1.M30").
WithLocation
(10, 26),
46004
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "i1[50]").
WithLocation
(11, 9),
46007
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "i1.P50").
WithLocation
(12, 13),
46010
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "i1.P60").
WithLocation
(15, 9)
46022
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "Main").
WithLocation
(4, 17),
46025
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.P200").
WithLocation
(7, 34),
46028
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.M300").
WithLocation
(8, 9),
46031
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.E400 += i1.M300").
WithLocation
(9, 9),
46034
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.M300").
WithLocation
(9, 20),
46037
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.E400 -= new D1(i1.M300)").
WithLocation
(10, 9),
46040
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.M300").
WithLocation
(10, 27),
46043
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, @"i1[""500""]").
WithLocation
(11, 9),
46046
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.P500").
WithLocation
(12, 13),
46049
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.P600").
WithLocation
(13, 13),
46052
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.P500").
WithLocation
(14, 9),
46055
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "i1.P600").
WithLocation
(15, 9)
46126
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I2").
WithLocation
(6, 27),
46129
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I3").
WithLocation
(11, 27)
46140
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I2").
WithLocation
(4, 26),
46143
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, "I3").
WithLocation
(8, 26)
46433
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "+").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 31),
46436
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "-").WithArguments("default interface implementation", "8.0").
WithLocation
(10, 31),
46439
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "!").WithArguments("default interface implementation", "8.0").
WithLocation
(16, 31),
46442
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "~").WithArguments("default interface implementation", "8.0").
WithLocation
(22, 31),
46445
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "++").WithArguments("default interface implementation", "8.0").
WithLocation
(28, 31),
46448
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "--").WithArguments("default interface implementation", "8.0").
WithLocation
(34, 31),
46451
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "true").WithArguments("default interface implementation", "8.0").
WithLocation
(40, 33),
46454
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "false").WithArguments("default interface implementation", "8.0").
WithLocation
(46, 33),
46457
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "+").WithArguments("default interface implementation", "8.0").
WithLocation
(52, 31),
46460
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "-").WithArguments("default interface implementation", "8.0").
WithLocation
(58, 31),
46463
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "*").WithArguments("default interface implementation", "8.0").
WithLocation
(64, 31),
46466
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "/").WithArguments("default interface implementation", "8.0").
WithLocation
(70, 31),
46469
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "%").WithArguments("default interface implementation", "8.0").
WithLocation
(76, 31),
46472
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "&").WithArguments("default interface implementation", "8.0").
WithLocation
(82, 31),
46475
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "|").WithArguments("default interface implementation", "8.0").
WithLocation
(88, 31),
46478
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "^").WithArguments("default interface implementation", "8.0").
WithLocation
(94, 31),
46481
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "<<").WithArguments("default interface implementation", "8.0").
WithLocation
(100, 31),
46484
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, ">>").WithArguments("default interface implementation", "8.0").
WithLocation
(106, 31),
46487
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, ">").WithArguments("default interface implementation", "8.0").
WithLocation
(112, 31),
46490
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "<").WithArguments("default interface implementation", "8.0").
WithLocation
(118, 31),
46493
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, ">=").WithArguments("default interface implementation", "8.0").
WithLocation
(124, 31),
46496
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "<=").WithArguments("default interface implementation", "8.0").
WithLocation
(130, 31),
46499
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(136, 31),
46502
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, ">>>").WithArguments("default interface implementation", "8.0").
WithLocation
(136, 31)
46512
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "+").
WithLocation
(4, 31),
46515
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "-").
WithLocation
(10, 31),
46518
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "!").
WithLocation
(16, 31),
46521
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "~").
WithLocation
(22, 31),
46524
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "++").
WithLocation
(28, 31),
46527
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "--").
WithLocation
(34, 31),
46530
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "true").
WithLocation
(40, 33),
46533
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "false").
WithLocation
(46, 33),
46536
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "+").
WithLocation
(52, 31),
46539
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "-").
WithLocation
(58, 31),
46542
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "*").
WithLocation
(64, 31),
46545
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "/").
WithLocation
(70, 31),
46548
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "%").
WithLocation
(76, 31),
46551
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "&").
WithLocation
(82, 31),
46554
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "|").
WithLocation
(88, 31),
46557
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "^").
WithLocation
(94, 31),
46560
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "<<").
WithLocation
(100, 31),
46563
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, ">>").
WithLocation
(106, 31),
46566
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, ">").
WithLocation
(112, 31),
46569
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "<").
WithLocation
(118, 31),
46572
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, ">=").
WithLocation
(124, 31),
46575
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "<=").
WithLocation
(130, 31),
46578
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, ">>>").
WithLocation
(136, 31)
46589
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "+x").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 13),
46592
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "-x").WithArguments("default interface implementation", "8.0").
WithLocation
(10, 13),
46595
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "!x").WithArguments("default interface implementation", "8.0").
WithLocation
(11, 13),
46598
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "~x").WithArguments("default interface implementation", "8.0").
WithLocation
(12, 13),
46601
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "++x").WithArguments("default interface implementation", "8.0").
WithLocation
(13, 13),
46604
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x--").WithArguments("default interface implementation", "8.0").
WithLocation
(14, 13),
46607
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x + y").WithArguments("default interface implementation", "8.0").
WithLocation
(16, 13),
46610
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x - y").WithArguments("default interface implementation", "8.0").
WithLocation
(17, 13),
46613
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x * y").WithArguments("default interface implementation", "8.0").
WithLocation
(18, 13),
46616
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x / y").WithArguments("default interface implementation", "8.0").
WithLocation
(19, 13),
46619
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x % y").WithArguments("default interface implementation", "8.0").
WithLocation
(20, 13),
46622
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x && y").WithArguments("default interface implementation", "8.0").
WithLocation
(21, 13),
46625
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x && y").WithArguments("default interface implementation", "8.0").
WithLocation
(21, 13),
46628
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x | y").WithArguments("default interface implementation", "8.0").
WithLocation
(22, 13),
46631
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x ^ y").WithArguments("default interface implementation", "8.0").
WithLocation
(23, 13),
46634
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x << 1").WithArguments("default interface implementation", "8.0").
WithLocation
(24, 13),
46637
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x >> 2").WithArguments("default interface implementation", "8.0").
WithLocation
(25, 13),
46640
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x > y").WithArguments("default interface implementation", "8.0").
WithLocation
(26, 13),
46643
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x < y").WithArguments("default interface implementation", "8.0").
WithLocation
(27, 13),
46646
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x >= y").WithArguments("default interface implementation", "8.0").
WithLocation
(28, 13),
46649
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x <= y").WithArguments("default interface implementation", "8.0").
WithLocation
(29, 13),
46652
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x >>> 3").WithArguments("default interface implementation", "8.0").
WithLocation
(31, 13),
46655
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x >>> 3").WithArguments("unsigned right shift", "11.0").
WithLocation
(31, 13)
46687
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x").WithArguments("default interface implementation", "8.0").
WithLocation
(8, 13),
46690
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x & y").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 13)
46815
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "==").
WithLocation
(4, 31),
46818
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "!=").
WithLocation
(10, 31),
46821
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "x == y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(24, 13),
46824
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "x != y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(25, 13)
46831
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "==").
WithLocation
(4, 31),
46834
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "!=").
WithLocation
(10, 31)
46847
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "x == y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(9, 13),
46850
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "x != y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(10, 13)
46906
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "x == y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(9, 13),
46909
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "x != y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(10, 13)
46938
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "x == y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(9, 34),
46941
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "x != y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(10, 34)
46976
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(4, 37),
46979
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(4, 37),
46982
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "byte").WithArguments("I1.explicit operator byte(I1)").
WithLocation
(8, 37),
46985
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "byte").
WithLocation
(8, 37),
46988
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("I1", "int").
WithLocation
(15, 17),
46991
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(int)x").WithArguments("I1", "int").
WithLocation
(16, 13),
46994
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(byte)x").WithArguments("I1", "byte").
WithLocation
(17, 17),
46997
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("I1", "byte").
WithLocation
(18, 13)
47078
Diagnostic(ErrorCode.ERR_BadUnaryOp, "-x").WithArguments("-", "Test2").
WithLocation
(8, 16)
47275
Diagnostic(ErrorCode.ERR_AmbigUnaryOp, "-x").WithArguments("-", "I2").
WithLocation
(7, 17)
47488
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "new C1() + x").WithArguments("+", "C1", "I3").
WithLocation
(7, 17)
47621
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "x + new C1()").WithArguments("+", "I3", "C1").
WithLocation
(7, 17)
47746
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "x + y").WithArguments("+", "I1", "I2").
WithLocation
(8, 17),
47749
Diagnostic(ErrorCode.ERR_BadBinaryOps, "y + x").WithArguments("+", "I2", "I1").
WithLocation
(9, 13)
47813
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "y + x").WithArguments("+", "I2", "I1").
WithLocation
(8, 17),
47816
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x + y").WithArguments("+", "I1", "I2").
WithLocation
(9, 13)
48060
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x + y").WithArguments("+", "Test2", "C1").
WithLocation
(8, 17),
48063
Diagnostic(ErrorCode.ERR_BadBinaryOps, "y + x").WithArguments("+", "C1", "Test2").
WithLocation
(9, 13)
48467
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "x + y").WithArguments("+", "I1", "I3").
WithLocation
(8, 17),
48470
Diagnostic(ErrorCode.ERR_BadBinaryOps, "y + x").WithArguments("+", "I3", "I1").
WithLocation
(9, 13)
48537
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "y + x").WithArguments("+", "I3", "I1").
WithLocation
(8, 17),
48540
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x + y").WithArguments("+", "I1", "I3").
WithLocation
(9, 13)
48610
Diagnostic(ErrorCode.ERR_AmbigBinaryOps, "x - x").WithArguments("-", "I2", "I2").
WithLocation
(7, 17)
48939
Diagnostic(ErrorCode.ERR_BadUnaryOperatorSignature, "+").
WithLocation
(4, 31),
48942
Diagnostic(ErrorCode.ERR_BadUnaryOperatorSignature, "-").
WithLocation
(5, 31),
48945
Diagnostic(ErrorCode.ERR_BadUnaryOperatorSignature, "!").
WithLocation
(6, 31),
48948
Diagnostic(ErrorCode.ERR_BadUnaryOperatorSignature, "~").
WithLocation
(7, 31),
48951
Diagnostic(ErrorCode.ERR_BadIncDecSignature, "++").
WithLocation
(8, 31),
48954
Diagnostic(ErrorCode.ERR_BadIncDecSignature, "--").
WithLocation
(9, 31),
48957
Diagnostic(ErrorCode.ERR_BadUnaryOperatorSignature, "true").
WithLocation
(10, 33),
48960
Diagnostic(ErrorCode.ERR_BadUnaryOperatorSignature, "false").
WithLocation
(11, 33),
48963
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, "+").
WithLocation
(12, 31),
48966
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, "-").
WithLocation
(13, 31),
48969
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, "*").
WithLocation
(14, 31),
48972
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, "/").
WithLocation
(15, 31),
48975
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, "%").
WithLocation
(16, 31),
48978
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, "&").
WithLocation
(17, 31),
48981
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, "|").
WithLocation
(18, 31),
48984
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, "^").
WithLocation
(19, 31),
48987
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, "<<").
WithLocation
(20, 31),
48990
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, ">>").
WithLocation
(21, 31),
48993
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, ">").
WithLocation
(22, 31),
48996
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, "<").
WithLocation
(23, 31),
48999
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, ">=").
WithLocation
(24, 31),
49002
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, "<=").
WithLocation
(25, 31),
49005
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, ">>>").
WithLocation
(26, 31)
49043
Diagnostic(ErrorCode.ERR_OperatorNeedsMatch, "true").WithArguments("I2.operator true(I2)", "false").
WithLocation
(10, 33),
49046
Diagnostic(ErrorCode.ERR_OperatorNeedsMatch, "false").WithArguments("I3.operator false(I3)", "true").
WithLocation
(15, 33),
49049
Diagnostic(ErrorCode.ERR_OpTFRetType, "true").
WithLocation
(20, 32),
49052
Diagnostic(ErrorCode.ERR_OpTFRetType, "false").
WithLocation
(21, 32)
49405
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(4, 30),
49408
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(4, 30),
49411
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "byte").WithArguments("I1.explicit operator byte(I1)").
WithLocation
(9, 30),
49414
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "byte").
WithLocation
(9, 30)
49829
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "M1").WithArguments("I1.M1()", "T", "I2").
WithLocation
(14, 11)
49948
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "M1").WithArguments("I1<int>.M1()", "I3<int>", "I2<T>").
WithLocation
(17, 11),
49951
Diagnostic(ErrorCode.ERR_BadProtectedAccess, "M1").WithArguments("I1<int>.M1()", "I1<int>", "I2<T>").
WithLocation
(22, 11)
49983
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I1").WithArguments("I1", "I2").
WithLocation
(2, 11),
49986
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I2").WithArguments("I2", "I1").
WithLocation
(13, 11),
49989
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M1").WithArguments("I2", "M1").
WithLocation
(17, 11)
50021
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I1").WithArguments("I1", "I2").
WithLocation
(2, 11),
50024
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I2").WithArguments("I2", "I1").
WithLocation
(13, 11)
50081
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1<T>.M1()").
WithLocation
(17, 15),
50084
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("I1<T>.M1()").
WithLocation
(18, 15)
50189
Diagnostic(ErrorCode.ERR_DefaultInterfaceImplementationInNoPIAType, "ITest33").WithArguments("ITest33").
WithLocation
(2, 17)
50229
Diagnostic(ErrorCode.ERR_DefaultInterfaceImplementationInNoPIAType, "ITest33").WithArguments("ITest33").
WithLocation
(4, 29)
50270
Diagnostic(ErrorCode.ERR_DefaultInterfaceImplementationInNoPIAType, "ITest33").WithArguments("ITest33").
WithLocation
(4, 29)
50310
Diagnostic(ErrorCode.ERR_DefaultInterfaceImplementationInNoPIAType, "ITest33").WithArguments("ITest33").
WithLocation
(4, 29)
50350
Diagnostic(ErrorCode.ERR_DefaultInterfaceImplementationInNoPIAType, "ITest33").WithArguments("ITest33").
WithLocation
(6, 9)
50397
Diagnostic(ErrorCode.ERR_NoPIANestedType, "I1").WithArguments("ITest33.I1").
WithLocation
(4, 37)
50442
Diagnostic(ErrorCode.ERR_DefaultInterfaceImplementationInNoPIAType, "ITest33").WithArguments("ITest33").
WithLocation
(6, 13)
50490
Diagnostic(ErrorCode.ERR_DefaultInterfaceImplementationInNoPIAType, "ITest44").WithArguments("ITest44").
WithLocation
(4, 29)
50627
Diagnostic(ErrorCode.ERR_ReAbstractionInNoPIAType, "ITest44").WithArguments("ITest44").
WithLocation
(4, 29)
50813
Diagnostic(ErrorCode.ERR_BadAccess, "MemberwiseClone").WithArguments("object.MemberwiseClone()").
WithLocation
(6, 11),
50816
Diagnostic(ErrorCode.ERR_BadAccess, "MemberwiseClone").WithArguments("object.MemberwiseClone()").
WithLocation
(7, 11),
50819
Diagnostic(ErrorCode.ERR_BadAccess, "MemberwiseClone").WithArguments("object.MemberwiseClone()").
WithLocation
(8, 14),
50822
Diagnostic(ErrorCode.ERR_BadAccess, "MemberwiseClone").WithArguments("object.MemberwiseClone()").
WithLocation
(9, 27)
50870
expected = expected.WithArguments("Test1", "I1.M1()").
WithLocation
(2, 15);
51184
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.M1()").
WithLocation
(2, 15)
51468
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.M1()", "I2.I1.M1()", "I3.I1.M1()").
WithLocation
(2, 15)
51608
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I4").WithArguments("I1.M1()", "I2.I1.M1()", "I3.I1.M1()").
WithLocation
(2, 15)
51782
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M1").WithArguments("I2.I1.M1()").
WithLocation
(9, 22 + implModifiers.Length),
51785
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.M1()").
WithLocation
(12, 15)
51837
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "M1").WithArguments("I2.I1.M1()").
WithLocation
(9, 29 + implModifiers.Length),
51840
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.M1()").
WithLocation
(12, 15)
51902
Diagnostic(ErrorCode.ERR_PartialMethodNotExplicit, "M1").
WithLocation
(9, 30 + implModifiers.Length),
51905
Diagnostic(ErrorCode.ERR_PartialMethodInvalidModifier, "M1").
WithLocation
(9, 30 + implModifiers.Length),
51908
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.M1()").
WithLocation
(12, 15)
51960
Diagnostic(ErrorCode.ERR_BadAsyncLacksBody, "M1").
WithLocation
(9, 28 + implModifiers.Length),
51963
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.M1()").
WithLocation
(12, 15)
52025
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("public").
WithLocation
(9, 29 + implModifiers.Length),
52028
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.M1()").
WithLocation
(12, 15)
52080
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M1").WithArguments("abstract").
WithLocation
(9, 22 + (isStatic ? 7 : 0)),
52083
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M1").WithArguments("C2.I1.M1()").
WithLocation
(9, 22 + (isStatic ? 7 : 0))
52147
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("I2.M1()").
WithLocation
(8, 22 + implModifiers.Length)
52193
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(2, 23),
52196
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(4, 19 + implModifiers.Length),
52199
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I1").WithArguments("I1").
WithLocation
(4, 19 + implModifiers.Length)
52232
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M1").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 22)
52240
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 26),
52243
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M1").WithArguments("static", "10.0", "11.0").
WithLocation
(9, 29)
52256
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "M1").
WithLocation
(9, 22)
52264
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(4, 26),
52267
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M1").
WithLocation
(9, 29)
52301
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
52420
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
52663
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
52745
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
52996
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
53080
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
53118
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
53158
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I4").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
53391
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I2.I1.P1.get").
WithLocation
(11, 9),
53394
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I2.I1.P1.set").
WithLocation
(15, 9),
53397
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(22, 15)
53490
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I2.I1.P1.get").
WithLocation
(11, 9),
53493
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I2.I1.P1.set").
WithLocation
(12, 9),
53496
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(16, 15)
53526
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "P1").WithArguments("I2.I1.P1").
WithLocation
(9, 28 + implModifiers.Length),
53529
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
53651
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("public").
WithLocation
(9, 28 + implModifiers.Length),
53654
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
53680
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("abstract").
WithLocation
(9, 21 + implModifiers.Length)
53764
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("abstract").
WithLocation
(9, 21 + implModifiers.Length)
53794
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "P1").WithArguments("I2.I1.P1", "I1.P1.set").
WithLocation
(9, 21 + implModifiers.Length),
53797
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
53827
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "P1").WithArguments("I2.I1.P1", "I1.P1.get").
WithLocation
(9, 21 + implModifiers.Length),
53830
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
53860
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I2.I1.P1.set", "I1.P1").
WithLocation
(9, 31 + implModifiers.Length),
53863
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
53893
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I2.I1.P1.get", "I1.P1").
WithLocation
(9, 26 + implModifiers.Length),
53896
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
53926
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I2.I1.P1.set", "I1.P1").
WithLocation
(9, 31 + implModifiers.Length),
53929
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
53959
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I2.I1.P1.get", "I1.P1").
WithLocation
(9, 26 + implModifiers.Length),
53962
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
53994
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(4, 21 + implModifiers.Length),
53997
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(7, 15)
54088
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1.get").
WithLocation
(4, 21 + implModifiers.Length),
54091
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(7, 15)
54123
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1.set").
WithLocation
(4, 21 + implModifiers.Length),
54126
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(7, 15)
54195
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test2", "I1.F1").
WithLocation
(2, 15)
54268
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test2", "I1.F1").
WithLocation
(2, 15)
54368
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.F1", "I2.I1.F1", "I3.I1.F1").
WithLocation
(2, 15)
54439
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test2", "I1.F1").
WithLocation
(2, 15)
54507
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test2", "I1.F1").
WithLocation
(2, 15)
54601
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test2", "I1.F1").
WithLocation
(2, 15)
54695
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test2", "I1.F1").
WithLocation
(2, 15)
54783
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test2", "I1.F1").
WithLocation
(2, 15)
54824
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
54857
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
55026
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
55061
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
55239
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
55277
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
55315
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
55355
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I4").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
55466
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I2.I1.P1.get").
WithLocation
(11, 9),
55469
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(18, 15)
55502
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I2.I1.P1.get").
WithLocation
(11, 9),
55505
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(15, 15)
55535
Diagnostic(ErrorCode.ERR_AbstractHasBody, "throw null").WithArguments("I2.I1.P1.get").
WithLocation
(9, 27 + implModifiers.Length),
55538
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
55568
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "P1").WithArguments("I2.I1.P1").
WithLocation
(9, 28 + implModifiers.Length),
55571
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
55601
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("public").
WithLocation
(9, 28 + implModifiers.Length),
55604
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
55630
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("abstract").
WithLocation
(9, 21 + implModifiers.Length)
55656
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("abstract").
WithLocation
(9, 21 + implModifiers.Length)
55686
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "P1").WithArguments("I2.I1.P1", "I1.P1.set").
WithLocation
(9, 21 + implModifiers.Length),
55689
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I2.I1.P1.get", "I1.P1").
WithLocation
(9, 26 + implModifiers.Length),
55692
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
55724
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(4, 21 + implModifiers.Length),
55727
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(7, 15)
55760
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
55793
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
55960
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
55995
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
56171
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
56209
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
56247
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
56287
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I4").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
56397
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I2.I1.P1.set").
WithLocation
(11, 9),
56400
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(18, 15)
56433
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I2.I1.P1.set").
WithLocation
(11, 9),
56436
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(15, 15)
56466
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "P1").WithArguments("I2.I1.P1").
WithLocation
(9, 28 + implModifiers.Length),
56469
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
56499
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("public").
WithLocation
(9, 28 + implModifiers.Length),
56502
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
56528
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("abstract").
WithLocation
(9, 21 + implModifiers.Length),
56531
Diagnostic(ErrorCode.ERR_AutoPropertyMustHaveGetAccessor, "set").
WithLocation
(9, 26 + implModifiers.Length)
56557
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("abstract").
WithLocation
(9, 21 + implModifiers.Length),
56560
Diagnostic(ErrorCode.ERR_AutoPropertyMustHaveGetAccessor, "set").
WithLocation
(9, 26 + implModifiers.Length)
56590
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "P1").WithArguments("I2.I1.P1", "I1.P1.get").
WithLocation
(9, 21 + implModifiers.Length),
56593
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I2.I1.P1.set", "I1.P1").
WithLocation
(9, 26 + implModifiers.Length),
56596
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
56628
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(4, 21 + implModifiers.Length),
56631
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(7, 15)
56657
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P1").
WithLocation
(9, 21),
56660
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
56686
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "P1").
WithLocation
(9, 28),
56689
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
56715
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P1").
WithLocation
(9, 21),
56718
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
56744
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "P1").
WithLocation
(9, 28),
56747
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
56773
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P1").
WithLocation
(9, 21),
56776
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
56802
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "P1").
WithLocation
(9, 28),
56805
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
56833
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P1").WithArguments("I2.P1").
WithLocation
(8, 21 + implModifiers.Length)
56892
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(2, 23),
56895
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(4, 18 + implModifiers.Length),
56898
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I1").WithArguments("I1").
WithLocation
(4, 18 + implModifiers.Length)
56926
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P1").WithArguments("I2.P1").
WithLocation
(8, 21 + implModifiers.Length)
56950
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(2, 23),
56953
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(4, 18 + implModifiers.Length),
56956
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I1").WithArguments("I1").
WithLocation
(4, 18 + implModifiers.Length)
56984
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P1").WithArguments("I2.P1").
WithLocation
(8, 21 + implModifiers.Length)
57008
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(2, 23),
57011
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(4, 18 + implModifiers.Length),
57014
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I1").WithArguments("I1").
WithLocation
(4, 18 + implModifiers.Length)
57040
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 25),
57043
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 30)
57052
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(9, 25),
57055
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(9, 30)
57081
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 25),
57084
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("static", "10.0", "11.0").
WithLocation
(9, 28)
57093
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(4, 29),
57096
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(4, 34),
57099
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "P1").
WithLocation
(9, 28)
57125
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 25)
57134
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(9, 25)
57160
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 25),
57163
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("static", "10.0", "11.0").
WithLocation
(9, 28)
57172
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(4, 29),
57175
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "P1").
WithLocation
(9, 28)
57201
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 25)
57210
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(9, 25)
57236
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 25),
57239
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("static", "10.0", "11.0").
WithLocation
(9, 28)
57248
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(4, 29),
57251
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "P1").
WithLocation
(9, 28)
57284
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
57384
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
57614
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
57690
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.P1").
WithLocation
(2, 15)
57928
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
57999
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
58037
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
58077
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I4").WithArguments("I1.P1", "I2.I1.P1", "I3.I1.P1").
WithLocation
(2, 15)
58287
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.I1.P1").
WithLocation
(10, 5),
58290
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(22, 15)
58378
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.I1.P1").
WithLocation
(10, 5),
58381
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(16, 15)
58411
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("extern").
WithLocation
(9, 44 + implModifiers.Length),
58414
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
58444
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("public").
WithLocation
(9, 44 + implModifiers.Length),
58447
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
58473
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C2", "I1.P1.remove").
WithLocation
(7, 19),
58476
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C2", "I1.P1.add").
WithLocation
(7, 19),
58479
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, "P1").
WithLocation
(9, 37 + implModifiers.Length),
58482
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("abstract").
WithLocation
(9, 37 + implModifiers.Length)
58565
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("abstract").
WithLocation
(9, 37 + implModifiers.Length)
58591
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C2", "I1.P1.remove").
WithLocation
(7, 20),
58594
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C2", "I1.P1.add").
WithLocation
(7, 20),
58597
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, "P1").
WithLocation
(9, 37 + implModifiers.Length),
58600
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("abstract").
WithLocation
(9, 37 + implModifiers.Length)
58630
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("abstract").
WithLocation
(9, 37 + implModifiers.Length)
58660
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.I1.P1").
WithLocation
(9, 40 + implModifiers.Length),
58663
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
58693
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.I1.P1").
WithLocation
(9, 40 + implModifiers.Length),
58696
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
58726
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.I1.P1").
WithLocation
(9, 40 + implModifiers.Length),
58729
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
58759
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.I1.P1").
WithLocation
(9, 40 + implModifiers.Length),
58762
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
58792
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.I1.P1").
WithLocation
(9, 40 + implModifiers.Length),
58795
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
58825
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.I1.P1").
WithLocation
(9, 40 + implModifiers.Length),
58828
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
58858
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.I1.P1").
WithLocation
(9, 40 + implModifiers.Length),
58861
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
58891
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P1").WithArguments("I1.P1").
WithLocation
(4, 25 + modifiers.Length),
58894
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "P1").WithArguments("I2.I1.P1.remove", "I1.P1").
WithLocation
(9, 37 + implModifiers.Length),
58897
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
58931
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P1").WithArguments("I1.P1").
WithLocation
(4, 25 + modifiers.Length),
58934
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.I1.P1").
WithLocation
(10, 5),
58937
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "remove").WithArguments("I2.I1.P1.remove", "I1.P1").
WithLocation
(12, 9),
58940
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(16, 15)
58970
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P1").WithArguments("I1.P1").
WithLocation
(4, 25 + modifiers.Length),
58973
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "P1").WithArguments("I2.I1.P1.add", "I1.P1").
WithLocation
(9, 37 + implModifiers.Length),
58976
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
59010
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "P1").WithArguments("I1.P1").
WithLocation
(4, 25 + modifiers.Length),
59013
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I2.I1.P1").
WithLocation
(10, 5),
59016
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "add").WithArguments("I2.I1.P1.add", "I1.P1").
WithLocation
(11, 9),
59019
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(16, 15)
59051
Diagnostic(ErrorCode.ERR_BadAccess, "P1").WithArguments("I1.P1").
WithLocation
(4, 37 + implModifiers.Length),
59054
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(7, 15)
59122
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P1").WithArguments("I2.P1").
WithLocation
(8, 37 + implModifiers.Length)
59169
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(2, 23),
59172
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(4, 34 + implModifiers.Length),
59175
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I1").WithArguments("I1").
WithLocation
(4, 34 + implModifiers.Length)
59205
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, ".").
WithLocation
(9, 36 + implModifiers.Length),
59208
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.P1").
WithLocation
(12, 15)
59234
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "P1").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 37)
59243
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "P1").
WithLocation
(9, 37)
59269
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 41),
59272
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("static", "10.0", "11.0").
WithLocation
(9, 44)
59281
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "P1").
WithLocation
(4, 41),
59284
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "P1").
WithLocation
(9, 44)
59313
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
59342
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
59465
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
59496
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
59629
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
59633
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
59668
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
59672
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
59707
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
59711
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
59748
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I4").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
59752
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I4").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
59842
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I2.I1.this[int].get").
WithLocation
(11, 9),
59845
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I2.I1.this[int].set").
WithLocation
(15, 9),
59848
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(22, 15)
59878
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I2.I1.this[int].get").
WithLocation
(11, 9),
59881
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I2.I1.this[int].set").
WithLocation
(12, 9),
59884
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(16, 15)
59910
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "this").WithArguments("I2.I1.this[int]").
WithLocation
(9, 28),
59913
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
59939
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("public").
WithLocation
(9, 28),
59942
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
59964
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("abstract").
WithLocation
(9, 21),
59967
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("C2.I1.this[int].get").
WithLocation
(9, 35),
59970
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("C2.I1.this[int].set").
WithLocation
(9, 40)
59992
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("abstract").
WithLocation
(9, 21),
59995
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("C2.I1.this[int].get").
WithLocation
(9, 35),
59998
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("C2.I1.this[int].set").
WithLocation
(9, 40)
60024
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "this").WithArguments("I2.I1.this[int]", "I1.this[int].set").
WithLocation
(9, 21),
60027
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
60053
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "this").WithArguments("I2.I1.this[int]", "I1.this[int].get").
WithLocation
(9, 21),
60056
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
60082
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I2.I1.this[int].set", "I1.this[int]").
WithLocation
(9, 40),
60085
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
60111
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I2.I1.this[int].get", "I1.this[int]").
WithLocation
(9, 35),
60114
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
60140
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I2.I1.this[int].set", "I1.this[int]").
WithLocation
(9, 40),
60143
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
60169
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I2.I1.this[int].get", "I1.this[int]").
WithLocation
(9, 35),
60172
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
60200
Diagnostic(ErrorCode.ERR_BadAccess, "this").WithArguments("I1.this[int]").
WithLocation
(4, 21),
60203
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(7, 15)
60231
Diagnostic(ErrorCode.ERR_BadAccess, "this").WithArguments("I1.this[int].get").
WithLocation
(4, 21),
60234
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(7, 15)
60262
Diagnostic(ErrorCode.ERR_BadAccess, "this").WithArguments("I1.this[int].set").
WithLocation
(4, 21),
60265
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(7, 15)
60294
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
60323
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
60434
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
60465
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
60586
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
60590
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
60625
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
60629
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
60664
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
60668
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
60705
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I4").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
60709
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I4").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
60789
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I2.I1.this[int].get").
WithLocation
(11, 9),
60792
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(18, 15)
60821
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I2.I1.this[int].get").
WithLocation
(11, 9),
60824
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(15, 15)
60850
Diagnostic(ErrorCode.ERR_AbstractHasBody, "throw null").WithArguments("I2.I1.this[int].get").
WithLocation
(9, 36),
60853
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
60879
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "this").WithArguments("I2.I1.this[int]").
WithLocation
(9, 28),
60882
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
60908
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("public").
WithLocation
(9, 28),
60911
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
60933
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("abstract").
WithLocation
(9, 21),
60936
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("C2.I1.this[int].get").
WithLocation
(9, 35)
60958
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("abstract").
WithLocation
(9, 21),
60961
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("C2.I1.this[int].get").
WithLocation
(9, 35)
60987
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "this").WithArguments("I2.I1.this[int]", "I1.this[int].set").
WithLocation
(9, 21),
60990
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "get").WithArguments("I2.I1.this[int].get", "I1.this[int]").
WithLocation
(9, 35),
60993
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
61021
Diagnostic(ErrorCode.ERR_BadAccess, "this").WithArguments("I1.this[int]").
WithLocation
(4, 21),
61024
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(7, 15)
61053
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
61082
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
61191
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
61222
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I3").WithArguments("Test1", "I1.this[int]").
WithLocation
(2, 15)
61341
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
61345
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
61380
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
61384
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
61419
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
61423
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I2").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
61460
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I4").WithArguments("I1.this[int]", "I2.I1.this[int]", "I3.I1.this[int]").
WithLocation
(2, 15)
61464
Diagnostic(ErrorCode.ERR_MostSpecificImplementationIsNotFound, "I4").WithArguments("I1.this[int]", "I2.I1.Item[int]", "I3.I1.Item[int]").
WithLocation
(2, 15)
61543
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I2.I1.this[int].set").
WithLocation
(11, 9),
61546
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(18, 15)
61575
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("I2.I1.this[int].set").
WithLocation
(11, 9),
61578
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(15, 15)
61604
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "this").WithArguments("I2.I1.this[int]").
WithLocation
(9, 28),
61607
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
61633
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("public").
WithLocation
(9, 28),
61636
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
61658
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("abstract").
WithLocation
(9, 21),
61661
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("C2.I1.this[int].set").
WithLocation
(9, 35)
61683
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("abstract").
WithLocation
(9, 21),
61686
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("C2.I1.this[int].set").
WithLocation
(9, 35)
61712
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "this").WithArguments("I2.I1.this[int]", "I1.this[int].get").
WithLocation
(9, 21),
61715
Diagnostic(ErrorCode.ERR_ExplicitPropertyAddingAccessor, "set").WithArguments("I2.I1.this[int].set", "I1.this[int]").
WithLocation
(9, 35),
61718
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
61746
Diagnostic(ErrorCode.ERR_BadAccess, "this").WithArguments("I1.this[int]").
WithLocation
(4, 21),
61749
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(7, 15)
61775
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(9, 47),
61778
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
61804
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(9, 42),
61807
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
61833
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(9, 42),
61836
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test1", "I1.this[int]").
WithLocation
(12, 15)
61861
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "this").WithArguments("I2.this[int]").
WithLocation
(8, 21)
61882
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(2, 23),
61885
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(4, 18),
61888
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I1").WithArguments("I1").
WithLocation
(4, 18)
61913
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "this").WithArguments("I2.this[int]").
WithLocation
(8, 21)
61934
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(2, 23),
61937
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(4, 18),
61940
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I1").WithArguments("I1").
WithLocation
(4, 18)
61965
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "this").WithArguments("I2.this[int]").
WithLocation
(8, 21)
61986
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(2, 23),
61989
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I1").WithArguments("I1").
WithLocation
(4, 18),
61992
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I1").WithArguments("I1").
WithLocation
(4, 18)
62018
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 34),
62021
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 39)
62030
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(9, 34),
62033
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(9, 39)
62059
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "get").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 34)
62068
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "get").
WithLocation
(9, 34)
62094
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(9, 34)
62103
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "set").
WithLocation
(9, 34)
62340
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "M").WithArguments("C0", "I1.M()", "C0.M()", "9.0", "10.0").
WithLocation
(17, 27)
62376
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember, "get").WithArguments("C0", "I1.get_P()", "C0.P.get", "9.0", "10.0").
WithLocation
(9, 28),
62379
Diagnostic(ErrorCode.ERR_AccessorImplementingMethod, "get").WithArguments("C0.P.get", "I1.get_P()", "C0").
WithLocation
(9, 28)
62388
Diagnostic(ErrorCode.ERR_AccessorImplementingMethod, "get").WithArguments("C0.P.get", "I1.get_P()", "C0").
WithLocation
(9, 28)
62920
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.E1").
WithLocation
(6, 19),
62923
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(6, 19),
62926
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P2").
WithLocation
(6, 19),
62929
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P3").
WithLocation
(6, 19),
62932
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test3", "I1.E1").
WithLocation
(10, 15),
62935
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P1", "Test3.P1", "int").
WithLocation
(10, 15),
62938
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").
WithLocation
(10, 15),
62941
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P3", "Test3.P3", "int").
WithLocation
(10, 15)
63144
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P2").
WithLocation
(6, 19),
63147
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").
WithLocation
(10, 15)
63310
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P2").
WithLocation
(6, 19),
63313
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").
WithLocation
(10, 15)
63486
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P2").
WithLocation
(6, 19),
63489
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").
WithLocation
(10, 15)
63858
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.E1").
WithLocation
(2, 19),
63861
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P1").
WithLocation
(2, 19),
63864
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P2").
WithLocation
(2, 19),
63867
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P3").
WithLocation
(2, 19),
63870
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2").WithArguments("Test3", "I1.E1").
WithLocation
(6, 15),
63873
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P1", "Test3.P1", "int").
WithLocation
(6, 15),
63876
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").
WithLocation
(6, 15),
63879
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P3", "Test3.P3", "int").
WithLocation
(6, 15)
64019
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P2").
WithLocation
(2, 19),
64022
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").
WithLocation
(6, 15)
64135
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P2").
WithLocation
(2, 19),
64138
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").
WithLocation
(6, 15)
64256
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("Test2", "I1.P2").
WithLocation
(2, 19),
64259
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").
WithLocation
(6, 15)
64346
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C2", "I1.P1").
WithLocation
(2, 16)
64426
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C2", "I1.P1").
WithLocation
(2, 16)
64497
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C2", "I1.P1").
WithLocation
(2, 16),
64500
Diagnostic(ErrorCode.ERR_MethodImplementingAccessor, "I1").WithArguments("C1.get_P1()", "I1.P1.get", "C2").
WithLocation
(2, 16)
64576
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C2", "I1.P1").
WithLocation
(2, 16),
64579
Diagnostic(ErrorCode.ERR_MethodImplementingAccessor, "I1").WithArguments("C1.get_P1()", "I1.P1.get", "C2").
WithLocation
(2, 16)
64609
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "A").WithArguments("A", "A.B").
WithLocation
(2, 11)
64635
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "A").WithArguments("A", "A.B.I").
WithLocation
(2, 11),
64638
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "B").WithArguments("A.B", "A").
WithLocation
(4, 22)
64665
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "IA").WithArguments("IA", "IB.IQ").
WithLocation
(2, 11),
64668
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "IB").WithArguments("IB", "IA").
WithLocation
(6, 11)
64695
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "IB").WithArguments("IB", "IA").
WithLocation
(2, 11),
64698
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "IA").WithArguments("IA", "IB.IQ").
WithLocation
(7, 11)
64811
Diagnostic(ErrorCode.ERR_CircularBase, "CD").WithArguments("CD.ICD.CB", "CD").
WithLocation
(2, 14)
64841
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "IE").WithArguments("IE", "IE.CIE.IB").
WithLocation
(2, 18),
64844
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "IE").WithArguments("IE", "IE.IIE.IB").
WithLocation
(2, 18)
64899
Diagnostic(ErrorCode.ERR_CircularBase, "CA").WithArguments("IB.CQ", "CA").
WithLocation
(2, 7),
64902
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "IB").WithArguments("IB", "CA.I1").
WithLocation
(8, 11)
64933
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "IB").WithArguments("IB", "CA.I1").
WithLocation
(2, 11),
64936
Diagnostic(ErrorCode.ERR_CircularBase, "CA").WithArguments("IB.CQ", "CA").
WithLocation
(8, 7)
65120
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I101").WithArguments("Test", "I101.Test1()", "Test.Test1()", "I100.C100").
WithLocation
(26, 14)
65202
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "A").WithArguments("A", "C.E").
WithLocation
(2, 11),
65205
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "B").WithArguments("B", "A").
WithLocation
(6, 11),
65208
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "C").WithArguments("C", "B").
WithLocation
(12, 11)
65247
Diagnostic(ErrorCode.WRN_DuplicateInterfaceWithNullabilityMismatchInBaseList, "A").WithArguments("C<object>", "A").
WithLocation
(4, 11)
65381
Diagnostic(ErrorCode.WRN_NewRequired, "I2").WithArguments("I3.I2", "I1.I2").
WithLocation
(10, 15),
65384
Diagnostic(ErrorCode.WRN_NewRequired, "I4").WithArguments("C3.I4", "C1.I4").
WithLocation
(23, 22)
65465
Diagnostic(ErrorCode.WRN_NewRequired, "I2").WithArguments("I3.I2", "I1.I2()").
WithLocation
(9, 15),
65468
Diagnostic(ErrorCode.WRN_NewRequired, "I4").WithArguments("C3.I4", "C1.I4()").
WithLocation
(22, 22)
65548
Diagnostic(ErrorCode.WRN_NewRequired, "I2").WithArguments("I3.I2()", "I1.I2").
WithLocation
(11, 10),
65551
Diagnostic(ErrorCode.WRN_NewRequired, "I4").WithArguments("C3.I4()", "C1.I4").
WithLocation
(23, 17)
65627
Diagnostic(ErrorCode.WRN_NewRequired, "I2").WithArguments("I3.I2", "I1.I2").
WithLocation
(9, 16),
65630
Diagnostic(ErrorCode.WRN_NewRequired, "I4").WithArguments("C3.I4", "C1.I4").
WithLocation
(19, 23)
65703
Diagnostic(ErrorCode.WRN_NewRequired, "I2").WithArguments("I3.I2", "I1.I2()").
WithLocation
(9, 16),
65706
Diagnostic(ErrorCode.WRN_NewRequired, "I4").WithArguments("C3.I4", "C1.I4()").
WithLocation
(20, 23)
65780
Diagnostic(ErrorCode.WRN_NewRequired, "I2").WithArguments("I3.I2()", "I1.I2").
WithLocation
(9, 10),
65783
Diagnostic(ErrorCode.WRN_NewRequired, "I4").WithArguments("C3.I4()", "C1.I4").
WithLocation
(19, 17)
65900
Diagnostic(ErrorCode.WRN_NewNotRequired, "I2").WithArguments("I3.I2<T>").
WithLocation
(10, 19),
65903
Diagnostic(ErrorCode.WRN_NewNotRequired, "I4").WithArguments("C3.I4<T>").
WithLocation
(23, 26)
65952
Diagnostic(ErrorCode.WRN_NewRequired, "I2").WithArguments("I3.I2", "I1<int>.I2").
WithLocation
(13, 15),
65955
Diagnostic(ErrorCode.WRN_NewRequired, "I4").WithArguments("C3.I4", "C1<int>.I4").
WithLocation
(29, 22)
65997
Diagnostic(ErrorCode.WRN_NewRequired, "I2").WithArguments("I3.I2", "I1.I2").
WithLocation
(9, 15),
66000
Diagnostic(ErrorCode.WRN_NewRequired, "I4").WithArguments("C3.I4", "C1.I4").
WithLocation
(21, 22)
66078
Diagnostic(ErrorCode.WRN_NewRequired, "I2").WithArguments("I3.I2", "I1.I2").
WithLocation
(10, 16),
66081
Diagnostic(ErrorCode.WRN_NewRequired, "I4").WithArguments("C3.I4", "C1.I4").
WithLocation
(21, 23)
66153
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T1").WithArguments("I1<T1, T2, T3>.D11.Invoke(T1)", "T1", "covariant", "contravariantly").
WithLocation
(4, 23),
66156
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T2").WithArguments("I1<T1, T2, T3>.D12.Invoke()", "T2", "contravariant", "covariantly").
WithLocation
(5, 14),
66159
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T1").WithArguments("I1<T1, T2, T3>.M1(T1)", "T1", "covariant", "contravariantly").
WithLocation
(8, 13),
66162
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T2").WithArguments("I1<T1, T2, T3>.M2()", "T2", "contravariant", "covariantly").
WithLocation
(9, 5),
66165
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T1").WithArguments("I1<T1, T2, T3>.I2.M21(T1)", "T1", "covariant", "contravariantly").
WithLocation
(14, 18),
66168
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T2").WithArguments("I1<T1, T2, T3>.I2.M22()", "T2", "contravariant", "covariantly").
WithLocation
(15, 9)
66232
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T1").WithArguments("I1<T1, T2, T3>.I2.D11.Invoke(T1)", "T1", "covariant", "contravariantly").
WithLocation
(6, 27),
66235
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T2").WithArguments("I1<T1, T2, T3>.I2.D12.Invoke()", "T2", "contravariant", "covariantly").
WithLocation
(7, 18),
66238
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T1").WithArguments("I1<T1, T2, T3>.I2.I3.M31(T1)", "T1", "covariant", "contravariantly").
WithLocation
(12, 22),
66241
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T2").WithArguments("I1<T1, T2, T3>.I2.I3.M32()", "T2", "contravariant", "covariantly").
WithLocation
(13, 13)
66345
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "C1").
WithLocation
(4, 11),
66348
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "S1").
WithLocation
(11, 12),
66351
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "E1").
WithLocation
(18, 10),
66354
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "C2").
WithLocation
(23, 11),
66357
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "S2").
WithLocation
(30, 12),
66360
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "E2").
WithLocation
(37, 10)
66456
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "C1").
WithLocation
(6, 15),
66459
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "S1").
WithLocation
(15, 16),
66462
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "E1").
WithLocation
(24, 14),
66465
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "C2").
WithLocation
(32, 15),
66468
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "S2").
WithLocation
(41, 16),
66471
Diagnostic(ErrorCode.ERR_VarianceInterfaceNesting, "E2").
WithLocation
(50, 14)
66776
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T1").WithArguments("I1<T1, T2>.M1(T1)", "T1", "covariant", "contravariantly").
WithLocation
(4, 21),
66779
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T2").WithArguments("I1<T1, T2>.M2()", "T2", "contravariant", "covariantly").
WithLocation
(5, 13)
66812
Diagnostic(ErrorCode.ERR_UnexpectedVarianceStaticMember, "T1").WithArguments("I2<T1, T2>.P1", "T1", "covariant", "invariantly", "9.0").
WithLocation
(15, 12),
66815
Diagnostic(ErrorCode.ERR_UnexpectedVarianceStaticMember, "T2").WithArguments("I2<T1, T2>.P2", "T2", "contravariant", "invariantly", "9.0").
WithLocation
(16, 12)
66853
Diagnostic(ErrorCode.ERR_UnexpectedVarianceStaticMember, "T1").WithArguments("I2<T1, T2>.M1(T1)", "T1", "covariant", "contravariantly", "9.0").
WithLocation
(13, 18),
66856
Diagnostic(ErrorCode.ERR_UnexpectedVarianceStaticMember, "T2").WithArguments("I2<T1, T2>.M2(T2)", "T2", "contravariant", "covariantly", "9.0").
WithLocation
(14, 12)
66917
Diagnostic(ErrorCode.ERR_UnexpectedVarianceStaticMember, "E1").WithArguments("I2<T1, T2>.E1", "T1", "covariant", "contravariantly", "9.0").
WithLocation
(24, 53),
66920
Diagnostic(ErrorCode.ERR_UnexpectedVarianceStaticMember, "E2").WithArguments("I2<T1, T2>.E2", "T2", "contravariant", "covariantly", "9.0").
WithLocation
(25, 53)
66951
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1").WithArguments("I1.M1()", "I1").
WithLocation
(4, 9),
66954
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 11)
66985
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I1").WithArguments("I1", "I1").
WithLocation
(2, 11),
66988
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1").WithArguments("I1.M1()", "I1").
WithLocation
(4, 9),
66991
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 11)
67021
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.I2.M1()", "I2").
WithLocation
(4, 9),
67024
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 11)
67055
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I1").WithArguments("I1", "I2").
WithLocation
(2, 11),
67058
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.M1()", "I2").
WithLocation
(4, 9),
67061
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 11),
67064
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("I1.M1()").
WithLocation
(4, 13),
67067
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I2").WithArguments("I2", "I1").
WithLocation
(7, 11)
67096
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I2").WithArguments("I2", "I1").
WithLocation
(2, 11),
67099
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I1").WithArguments("I1", "I2").
WithLocation
(6, 11),
67102
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.M1()", "I2").
WithLocation
(8, 9),
67105
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(8, 11),
67108
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M1").WithArguments("I1.M1()").
WithLocation
(8, 13)
67133
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1").WithArguments("I1.P1", "I1").
WithLocation
(4, 9),
67136
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 11)
67169
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I1").WithArguments("I1", "I1").
WithLocation
(2, 11),
67172
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1").WithArguments("I1.P1", "I1").
WithLocation
(4, 9),
67175
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 11)
67205
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.I2.P1", "I2").
WithLocation
(4, 9),
67208
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 11)
67242
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I1").WithArguments("I1", "I2").
WithLocation
(2, 11),
67245
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.P1", "I2").
WithLocation
(4, 9),
67248
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 11),
67251
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P1").WithArguments("I1.P1").
WithLocation
(4, 13),
67254
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I2").WithArguments("I2", "I1").
WithLocation
(7, 11)
67283
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I2").WithArguments("I2", "I1").
WithLocation
(2, 11),
67286
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I1").WithArguments("I1", "I2").
WithLocation
(6, 11),
67289
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.P1", "I2").
WithLocation
(8, 9),
67292
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(8, 11),
67295
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P1").WithArguments("I1.P1").
WithLocation
(8, 13)
67321
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1").WithArguments("I1.E1", "I1").
WithLocation
(4, 25),
67324
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 27)
67359
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I1").WithArguments("I1", "I1").
WithLocation
(2, 11),
67362
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1").WithArguments("I1.E1", "I1").
WithLocation
(4, 25),
67365
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 27)
67396
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.I2.E1", "I2").
WithLocation
(4, 25),
67399
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 27)
67435
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I1").WithArguments("I1", "I2").
WithLocation
(2, 11),
67438
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.E1", "I2").
WithLocation
(4, 25),
67441
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(4, 27),
67444
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "E1").WithArguments("I1.E1").
WithLocation
(4, 29),
67447
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I2").WithArguments("I2", "I1").
WithLocation
(8, 11)
67477
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I2").WithArguments("I2", "I1").
WithLocation
(2, 11),
67480
Diagnostic(ErrorCode.ERR_CycleInInterfaceInheritance, "I1").WithArguments("I1", "I2").
WithLocation
(6, 11),
67483
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.E1", "I2").
WithLocation
(8, 25),
67486
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(8, 27),
67489
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "E1").WithArguments("I1.E1").
WithLocation
(8, 29)
67514
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1<int>").WithArguments("I1<T>.P1", "I1<int>").
WithLocation
(4, 9)
67532
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "A").WithArguments("A.B", "A").
WithLocation
(3, 12),
67535
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "B").WithArguments("A.B").
WithLocation
(3, 14),
67538
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 16),
67541
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 16)
67571
Diagnostic(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, "PA").
WithLocation
(4, 20),
67574
Diagnostic(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, "PB").
WithLocation
(9, 20),
67577
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "set").
WithLocation
(9, 30),
67580
Diagnostic(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, "PC").
WithLocation
(14, 20)
67610
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "set").
WithLocation
(9, 23),
67613
Diagnostic(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, "PC").
WithLocation
(14, 13)
67643
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("IA.PA.get").
WithLocation
(4, 25),
67646
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("IB.PB.get").
WithLocation
(9, 25),
67649
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "set").
WithLocation
(9, 30),
67652
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("IB.PB.set").
WithLocation
(9, 30),
67655
Diagnostic(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, "PC").
WithLocation
(14, 20),
67658
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("IC.PC.set").
WithLocation
(14, 25)
67681
Diagnostic(ErrorCode.ERR_BadMemberFlag, "RuntimeFeature").WithArguments("static").
WithLocation
(4, 37),
67684
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "string").WithArguments("System.String").
WithLocation
(6, 22),
67687
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "DefaultImplementationsOfInterfaces").
WithLocation
(6, 29)
67712
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "string").WithArguments("System.String").
WithLocation
(6, 22),
67715
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "DefaultImplementationsOfInterfaces").
WithLocation
(6, 29)
68306
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 33),
68309
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments("abstract", "10.0", "11.0").
WithLocation
(9, 33),
68312
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I2<T1>.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(18, 15),
68315
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I4<T1>.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(23, 15)
68323
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 39),
68326
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("abstract", "10.0", "11.0").
WithLocation
(9, 39),
68329
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I2<T1>.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(18, 21),
68332
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I4<T1>.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(23, 21)
68374
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(4, 33),
68377
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(9, 33),
68380
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(18, 31),
68383
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(23, 31)
68391
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "int").
WithLocation
(4, 39),
68394
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "int").
WithLocation
(9, 39),
68397
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "int").
WithLocation
(18, 37),
68400
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "int").
WithLocation
(23, 37)
68663
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2<Test1>").WithArguments("Test1", "I1<Test1>.operator ==(Test1, int)").
WithLocation
(2, 15),
68666
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2<Test1>").WithArguments("Test1", "I1<Test1>.operator !=(Test1, int)").
WithLocation
(2, 15)
68745
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2<Test1>").WithArguments("Test1", "I1<Test1>.implicit operator long(Test1)").
WithLocation
(2, 15),
68748
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2<Test1>").WithArguments("Test1", "I1<Test1>.explicit operator int(Test1)").
WithLocation
(2, 15),
68751
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2<Test1>").WithArguments("Test1", "I1<Test1>.explicit operator checked int(Test1)").
WithLocation
(2, 15)
68862
Diagnostic(ErrorCode.ERR_ComImportWithUserCtor, "I1").
WithLocation
(6, 12),
68865
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "M1").WithArguments("I1.M1()", "I1").
WithLocation
(8, 17),
68868
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "M2").WithArguments("I1.M2()", "I1").
WithLocation
(10, 10),
68871
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "M3").WithArguments("I1.M3()", "I1").
WithLocation
(12, 25),
68874
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "get").WithArguments("I1.P1.get", "I1").
WithLocation
(14, 20),
68877
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "set").WithArguments("I1.P1.set", "I1").
WithLocation
(14, 25),
68880
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "get").WithArguments("I1.P2.get", "I1").
WithLocation
(16, 14),
68883
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "set").WithArguments("I1.P2.set", "I1").
WithLocation
(16, 24),
68886
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "get").WithArguments("I1.this[int].get", "I1").
WithLocation
(18, 23),
68889
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "set").WithArguments("I1.this[int].set", "I1").
WithLocation
(18, 33),
68892
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "E1").WithArguments("I1.E1.remove", "I1").
WithLocation
(20, 32),
68895
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "add").WithArguments("I1.E2.add", "I1").
WithLocation
(22, 29),
68898
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "remove").WithArguments("I1.E2.remove", "I1").
WithLocation
(22, 35),
68901
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "1").WithArguments("I1.P3.get", "I1").
WithLocation
(24, 15),
68904
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "+").WithArguments("I1.operator +(I1, I1)", "I1").
WithLocation
(26, 24),
68907
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(28, 30),
68910
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(28, 30),
68913
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "int").WithArguments("I1.implicit operator int(I1)", "I1").
WithLocation
(28, 30)
Symbols\DestructorTests.cs (5)
79
Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "S").
WithLocation
(4, 6),
82
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "I").WithArguments("I.~I()").
WithLocation
(9, 6),
85
Diagnostic(ErrorCode.ERR_OnlyClassesCanContainDestructors, "I").
WithLocation
(9, 6));
364
Diagnostic(ErrorCode.WRN_FinalizeMethod, "Finalize").
WithLocation
(4, 10),
367
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I").WithArguments("C", "I.Finalize()", "C.~C()").
WithLocation
(7, 11));
Symbols\EnumTests.cs (14)
162
Diagnostic(ErrorCode.ERR_CircConstValue, "A").WithArguments("E.A").
WithLocation
(3, 5));
177
Diagnostic(ErrorCode.ERR_CircConstValue, "A").WithArguments("E.A").
WithLocation
(3, 5));
193
Diagnostic(ErrorCode.ERR_CircConstValue, "A").WithArguments("E.A").
WithLocation
(3, 5));
210
Diagnostic(ErrorCode.ERR_CircConstValue, "A").WithArguments("E.A").
WithLocation
(3, 5),
213
Diagnostic(ErrorCode.ERR_CircConstValue, "D").WithArguments("E.D").
WithLocation
(6, 5));
250
Diagnostic(ErrorCode.ERR_CircConstValue, "A").WithArguments("E.A").
WithLocation
(3, 5),
253
Diagnostic(ErrorCode.ERR_CircConstValue, "B").WithArguments("E.B").
WithLocation
(4, 5));
265
Diagnostic(ErrorCode.ERR_CircConstValue, "M0").WithArguments("E.M0").
WithLocation
(3, 5));
278
Diagnostic(ErrorCode.ERR_CircConstValue, "M0").WithArguments("E.M0").
WithLocation
(3, 5));
348
Diagnostic(ErrorCode.ERR_NoTypeDef, "F").WithArguments("A", "UseSiteError_sourceA, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(5, 31)
392
Diagnostic(ErrorCode.ERR_NoTypeDef, "F").WithArguments("A", "UseSiteError_sourceA, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(5, 20)
399
Diagnostic(ErrorCode.ERR_NoTypeDef, "F").WithArguments("A", "UseSiteError_sourceA, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(5, 20)
409
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(1, 1),
412
Diagnostic(ErrorCode.ERR_PartialMisplaced, "E").
WithLocation
(1, 21));
Symbols\ExtendedPartialMethodsTests.cs (201)
33
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(4, 26),
36
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(5, 26)
56
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M1").WithArguments("C.M1()").
WithLocation
(4, 17),
59
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M1").WithArguments("C.M1()").
WithLocation
(5, 17)
75
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M1").WithArguments("C.M1()").
WithLocation
(4, 25)
91
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M1").WithArguments("C.M1()").
WithLocation
(4, 17)
132
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(4, 26),
135
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(5, 26)
155
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "M1").WithArguments("C.M1(out int)").
WithLocation
(4, 18),
158
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "M1").WithArguments("C.M1(out int)").
WithLocation
(5, 18)
174
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M1").WithArguments("C.M1(out int)").
WithLocation
(4, 26)
190
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "M1").WithArguments("C.M1(out int)").
WithLocation
(4, 18)
292
Diagnostic(ErrorCode.ERR_PartialMethodAccessibilityDifference, "M1").
WithLocation
(5, 28)
309
Diagnostic(ErrorCode.ERR_PartialMethodAccessibilityDifference, "M1").
WithLocation
(5, 19)
326
Diagnostic(ErrorCode.ERR_PartialMethodAccessibilityDifference, "M1").
WithLocation
(5, 27)
384
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(4, 34),
387
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(5, 34)
407
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M1").WithArguments("C.M1()").
WithLocation
(4, 26),
410
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M1").WithArguments("C.M1()").
WithLocation
(5, 26)
426
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M1").WithArguments("C.M1()").
WithLocation
(4, 35)
443
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M1").
WithLocation
(5, 27)
460
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M1").
WithLocation
(5, 35)
516
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M1").WithArguments("s1").
WithLocation
(12, 28)
542
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M1").WithArguments("s1").
WithLocation
(12, 28)
646
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "ToString").WithArguments("extended partial methods", "9.0").
WithLocation
(4, 36),
649
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "ToString").WithArguments("extended partial methods", "9.0").
WithLocation
(5, 36)
673
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "ToString").WithArguments("D.ToString()", "public", "object.ToString()").
WithLocation
(4, 38));
717
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M1").WithArguments("D.M1()").
WithLocation
(9, 27),
720
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "M1").WithArguments("D.M1()", "internal", "C.M1()").
WithLocation
(9, 27),
723
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M1").WithArguments("D.M1()").
WithLocation
(10, 27)
746
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M1").WithArguments("D.M1()").
WithLocation
(9, 36)
769
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M1").WithArguments("D.M1()").
WithLocation
(9, 27),
772
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "M1").WithArguments("D.M1()", "internal", "C.M1()").
WithLocation
(9, 27)
795
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M1").
WithLocation
(9, 27)
816
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "M1").WithArguments("D.M1()", "C.M1()").
WithLocation
(8, 27),
819
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M1").
WithLocation
(9, 36)
843
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnOverride, "M1").WithArguments("s1").
WithLocation
(11, 36)
871
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(14, 9),
874
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(15, 9));
915
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(8, 43),
918
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(9, 43)
941
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M1").WithArguments("D.M1()").
WithLocation
(8, 34),
944
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "M1").WithArguments("D.M1()", "internal", "C.M1()").
WithLocation
(8, 34),
947
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M1").WithArguments("D.M1()").
WithLocation
(9, 34)
968
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M1").
WithLocation
(9, 36)
989
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M1").
WithLocation
(9, 43)
1044
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(6, 34),
1047
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(9, 41));
1070
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M1").WithArguments("C.M1()").
WithLocation
(6, 41),
1073
Diagnostic(ErrorCode.ERR_PartialMethodOnlyOneActual, "M1").
WithLocation
(9, 41),
1076
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M1").WithArguments("M1", "C").
WithLocation
(9, 41));
1096
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M1").WithArguments("C.M1()").
WithLocation
(9, 32)
1194
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M1").
WithLocation
(5, 24));
1218
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M1").
WithLocation
(7, 32));
1250
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "CompletedTask").
WithLocation
(7, 31));
1274
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M").WithArguments("C.M()").
WithLocation
(6, 33),
1277
Diagnostic(ErrorCode.ERR_BadAsyncLacksBody, "M").
WithLocation
(6, 33));
1300
Diagnostic(ErrorCode.ERR_BadAsyncLacksBody, "M").
WithLocation
(6, 33));
1323
Diagnostic(ErrorCode.ERR_BadAsyncLacksBody, "M").
WithLocation
(6, 33),
1326
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("C.M()").
WithLocation
(7, 27),
1329
Diagnostic(ErrorCode.ERR_BadAwaitWithoutAsyncMethod, "await Task.Yield()").WithArguments("System.Threading.Tasks.Task").
WithLocation
(9, 9));
1352
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M").WithArguments("C.M()").
WithLocation
(6, 18),
1355
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M").WithArguments("C.M()").
WithLocation
(7, 24));
1376
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(9, 31),
1379
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M1").WithArguments("extended partial methods", "9.0").
WithLocation
(10, 31));
1402
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M1").WithArguments("D.M1()").
WithLocation
(9, 31)
1424
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M1").WithArguments("D.M1()").
WithLocation
(9, 22),
1427
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M1").WithArguments("D.M1()").
WithLocation
(10, 22)
1449
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M1").
WithLocation
(10, 27)
1471
Diagnostic(ErrorCode.WRN_NewRequired, "M1").WithArguments("D.M1()", "C.M1()").
WithLocation
(9, 27),
1474
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M1").
WithLocation
(10, 31)
1580
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "M").WithArguments("s1", "void C.M(string s1)", "void I.M(string s1)").
WithLocation
(13, 25));
1614
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(20, 9),
1617
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(21, 9));
1650
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "AllowNull").WithArguments("AllowNull").
WithLocation
(13, 28),
1653
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(20, 9));
1671
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M").WithArguments("I.M(string)").
WithLocation
(6, 27)
1718
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(10, 13)
1748
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(10, 13),
1751
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(11, 13),
1754
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "M").WithArguments("s1", "void I.M(string s1, string s2)").
WithLocation
(17, 12),
1757
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnExplicitImplementation, "M").WithArguments("s2", "void I.M(string s1, string s2)").
WithLocation
(17, 12)
1792
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(10, 13),
1795
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(11, 13),
1798
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s1").
WithLocation
(20, 13),
1801
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "s2").
WithLocation
(21, 13)
1824
Diagnostic(ErrorCode.ERR_PartialMethodNotExplicit, "M").
WithLocation
(9, 20),
1827
Diagnostic(ErrorCode.ERR_PartialMethodNotExplicit, "M").
WithLocation
(10, 20));
1849
Diagnostic(ErrorCode.ERR_PartialMethodNotExplicit, "M").
WithLocation
(9, 19),
1852
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M").WithArguments("C.I.M()").
WithLocation
(9, 19),
1855
Diagnostic(ErrorCode.ERR_PartialMethodNotExplicit, "M").
WithLocation
(10, 19),
1858
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "M").WithArguments("C.I.M()").
WithLocation
(10, 19));
1875
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("extended partial methods", "9.0").
WithLocation
(4, 24),
1878
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "M").WithArguments("extended partial methods", "9.0").
WithLocation
(5, 24));
1941
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M").WithArguments("Program.M(ref object)").
WithLocation
(4, 34),
1944
Diagnostic(ErrorCode.ERR_OverloadRefKind, "M").WithArguments("Program", "method", "out", "ref").
WithLocation
(5, 34));
1963
Diagnostic(ErrorCode.ERR_OverloadRefKind, "M").WithArguments("Program", "method", "out", "ref").
WithLocation
(6, 34));
2033
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("Base.M1()").
WithLocation
(6, 9));
2061
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("C.M1()").
WithLocation
(6, 11));
2115
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("C.M1()").
WithLocation
(6, 11));
2179
Diagnostic(ErrorCode.ERR_BadAccess, "C").WithArguments("C").
WithLocation
(6, 9));
2222
Diagnostic(ErrorCode.ERR_BadAccess, "M1").WithArguments("C.M1()").
WithLocation
(6, 11));
2324
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
2327
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "Main").WithArguments("C.Main()").
WithLocation
(6, 32));
2353
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(8, 38));
2372
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
2375
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "Main").WithArguments("C.Main()").
WithLocation
(6, 37));
2402
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "Main").
WithLocation
(8, 43));
2568
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.M1(int[*])").
WithLocation
(2, 22),
2571
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments("Derived.M1(int[])").
WithLocation
(4, 34),
2574
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M2").WithArguments("Derived.M2()", "Base.M2()", "int[*]").
WithLocation
(7, 35)
2662
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M").
WithLocation
(5, 25));
2668
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M").
WithLocation
(5, 25));
2684
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M").
WithLocation
(5, 24));
2709
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M1").WithArguments("string? C.M1()", "string C.M1()").
WithLocation
(8, 27),
2712
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M2").WithArguments("IEnumerable<string?> C.M2()", "IEnumerable<string> C.M2()").
WithLocation
(11, 40));
2734
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, "M1").
WithLocation
(8, 28),
2737
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, "M2").
WithLocation
(11, 41));
2743
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, "M1").
WithLocation
(8, 28),
2746
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, "M2").
WithLocation
(11, 41));
2770
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M1").
WithLocation
(10, 28),
2773
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M2").
WithLocation
(13, 41));
2797
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M1").
WithLocation
(10, 25),
2800
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M2").
WithLocation
(13, 38));
2827
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M1").WithArguments("U C.M1<U>()", "V C.M1<V>()").
WithLocation
(7, 22),
2830
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M3").WithArguments("U C.M3<U>()", "V C.M3<V>()").
WithLocation
(13, 22),
2833
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M4").WithArguments("IEnumerable<U> C.M4<U>()", "IEnumerable<V> C.M4<V>()").
WithLocation
(16, 35)
2873
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(7, 20),
2876
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M1").
WithLocation
(7, 26),
2879
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(10, 32),
2882
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M2").
WithLocation
(10, 39),
2885
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(13, 32),
2888
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M3").
WithLocation
(13, 39),
2891
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(15, 20),
2894
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M4").
WithLocation
(16, 24),
2897
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(18, 32),
2900
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M5").
WithLocation
(19, 37),
2903
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(21, 32),
2906
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M6").
WithLocation
(22, 24),
2909
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(24, 20),
2912
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(25, 20),
2915
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(27, 32),
2918
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ERROR").WithArguments("ERROR").
WithLocation
(28, 32));
2937
Diagnostic(ErrorCode.ERR_PartialMethodRefReturnDifference, "M1").
WithLocation
(5, 24),
2940
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M1").WithArguments("ref int C.M1()", "int C.M1()").
WithLocation
(5, 24),
2943
Diagnostic(ErrorCode.ERR_PartialMethodRefReturnDifference, "M2").
WithLocation
(8, 28),
2946
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M2").WithArguments("int C.M2()", "ref int C.M2()").
WithLocation
(8, 28));
2965
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "M1").WithArguments("C.M1<U>()", "U").
WithLocation
(5, 22),
2968
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "M2").WithArguments("C.M2<U>()", "U").
WithLocation
(8, 22));
3003
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentTupleNames, "M1").WithArguments("C.M1()", "C.M1()").
WithLocation
(5, 37));
3019
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "M1").
WithLocation
(5, 36));
3041
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M1").WithArguments("object C.M1()", "dynamic C.M1()").
WithLocation
(5, 28),
3044
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M2").WithArguments("dynamic C.M2()", "object C.M2()").
WithLocation
(8, 27));
3068
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M1").WithArguments("IntPtr C.M1()", "nint C.M1()").
WithLocation
(7, 25),
3071
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M2").WithArguments("nint C.M2()", "IntPtr C.M2()").
WithLocation
(10, 27));
3090
Diagnostic(ErrorCode.ERR_PartialMethodRefReturnDifference, "M1").
WithLocation
(5, 37),
3093
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M1").WithArguments("ref int C.M1()", "ref readonly int C.M1()").
WithLocation
(5, 37),
3096
Diagnostic(ErrorCode.ERR_PartialMethodRefReturnDifference, "M2").
WithLocation
(8, 28),
3099
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M2").WithArguments("ref readonly int C.M2()", "ref int C.M2()").
WithLocation
(8, 28));
3146
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, "M1").
WithLocation
(6, 28),
3149
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 26),
3152
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(15, 26),
3155
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(31, 26),
3158
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(32, 26),
3161
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(35, 26),
3164
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(36, 26));
3170
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, "M1").
WithLocation
(6, 28),
3173
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M2").WithArguments("string? C.M2()", "string C.M2()").
WithLocation
(9, 27),
3176
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 26),
3179
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(15, 26),
3182
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M8").WithArguments("string? C.M8()", "string C.M8()").
WithLocation
(22, 27),
3185
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(31, 26),
3188
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(32, 26),
3191
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(35, 26),
3194
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(36, 26));
3210
Diagnostic(ErrorCode.ERR_PartialMethodReturnTypeDifference, "F1").
WithLocation
(4, 27),
3213
Diagnostic(ErrorCode.ERR_PartialMethodRefReturnDifference, "F1").
WithLocation
(4, 27));
3229
Diagnostic(ErrorCode.ERR_PartialMethodRefReturnDifference, "F1").
WithLocation
(4, 31),
3232
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F1").WithArguments("ref (int x, int y) C.F1()", "(int, int) C.F1()").
WithLocation
(4, 31));
3256
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F1", isSuppressed: false).WithArguments("void C.F1(object o)", "void C.F1(dynamic o)").
WithLocation
(4, 18),
3259
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F2", isSuppressed: false).WithArguments("void C.F2(object o)", "void C.F2(dynamic o)").
WithLocation
(6, 27),
3262
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F3", isSuppressed: false).WithArguments("dynamic C.F3()", "object C.F3()").
WithLocation
(8, 29));
3291
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "F1").WithArguments("s").
WithLocation
(6, 18),
3294
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "F2").WithArguments("s").
WithLocation
(8, 18),
3297
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "F3").WithArguments("s").
WithLocation
(10, 27),
3300
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "F4").WithArguments("s").
WithLocation
(12, 27),
3303
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, "F6").
WithLocation
(16, 43));
3309
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "F1").WithArguments("s").
WithLocation
(6, 18),
3312
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "F2").WithArguments("s").
WithLocation
(8, 18),
3315
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "F3").WithArguments("s").
WithLocation
(10, 27),
3318
Diagnostic(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, "F4").WithArguments("s").
WithLocation
(12, 27),
3321
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F5").WithArguments("string? C.F5()", "string C.F5()").
WithLocation
(14, 29),
3324
Diagnostic(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, "F6").
WithLocation
(16, 43));
3359
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentTupleNames, "F2").WithArguments("C.F2<T, U>((T, U))", "C.F2<T, U>((T x, U y))").
WithLocation
(5, 18),
3362
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentTupleNames, "F3").WithArguments("C.F3((dynamic, object))", "C.F3((object x, dynamic y))").
WithLocation
(8, 18),
3365
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentTupleNames, "F4").WithArguments("C.F4<T, U>((T x, U y))", "C.F4<T, U>((T, U))").
WithLocation
(10, 27),
3368
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentTupleNames, "F6").WithArguments("C.F6<T, U>()", "C.F6<T, U>()").
WithLocation
(13, 29));
3396
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F1").WithArguments("void C.F1(nint i)", "void C.F1(IntPtr i)").
WithLocation
(5, 18),
3399
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F2").WithArguments("void C.F2(dynamic x, nint y)", "void C.F2(object x, IntPtr y)").
WithLocation
(7, 18),
3402
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F3").WithArguments("void C.F3(nint i)", "void C.F3(IntPtr i)").
WithLocation
(9, 27),
3405
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F4").WithArguments("IEnumerable<IntPtr> C.F4()", "IEnumerable<nint> C.F4()").
WithLocation
(11, 40));
Symbols\ExtensionMethodTests.cs (110)
206
Diagnostic(ErrorCode.ERR_BadArgType, "c.F").WithArguments("1", "object", "System.Action").
WithLocation
(12, 11),
208
Diagnostic(ErrorCode.ERR_BadArgType, "c.P").WithArguments("1", "object", "System.Action").
WithLocation
(13, 11));
266
Diagnostic(ErrorCode.ERR_BadArgType, "c.F").WithArguments("1", "object", "System.Action").
WithLocation
(10, 11),
268
Diagnostic(ErrorCode.ERR_BadArgType, "c.P").WithArguments("1", "object", "System.Action").
WithLocation
(11, 11));
436
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "s.Goo is Action").
WithLocation
(9, 18),
439
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "i.Goo is Action").
WithLocation
(12, 18),
442
Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s").
WithLocation
(9, 18),
445
Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i").
WithLocation
(12, 18)
680
Diagnostic(ErrorCode.ERR_BadArgCount, "M1").WithArguments("M1", "3").
WithLocation
(10, 22),
683
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M2").WithArguments("y", "N1.N2.C.M2(int, int)").
WithLocation
(11, 22),
686
Diagnostic(ErrorCode.ERR_BadArgType, "2.0").WithArguments("2", "double", "int").
WithLocation
(12, 28),
689
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M4").WithArguments("N1.N2.C.M4<T>(T, int)").
WithLocation
(13, 22),
692
Diagnostic(ErrorCode.ERR_BadArity, "M5<string, string>").WithArguments("N1.N2.C.M5<T>(T, int)", "method", "1").
WithLocation
(14, 22),
695
Diagnostic(ErrorCode.ERR_AmbigCall, "M6").WithArguments("N1.N2.C.M6(object, string)", "N1.N2.C.M6(string, object)").
WithLocation
(15, 22),
698
Diagnostic(ErrorCode.ERR_BadArgCount, "M1").WithArguments("M1", "3").
WithLocation
(41, 22),
701
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M2").WithArguments("y", "N1.N2.C.M2(int, int)").
WithLocation
(42, 22),
704
Diagnostic(ErrorCode.ERR_BadArgType, "2.0").WithArguments("2", "double", "int").
WithLocation
(43, 28),
707
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "M4").WithArguments("N1.N2.C.M4<T>(T, int)").
WithLocation
(44, 22),
710
Diagnostic(ErrorCode.ERR_BadArgType, "2").WithArguments("3", "int", "string").
WithLocation
(45, 47),
713
Diagnostic(ErrorCode.ERR_AmbigCall, "M6").WithArguments("N1.N2.C.M6(object, string)", "N1.N2.C.M6(string, object)").
WithLocation
(46, 22));
756
Diagnostic(ErrorCode.ERR_AmbigCall, "E").WithArguments("N1.N2.S.E(object, double, N1.A)", "N1.N2.S.E(object, double, N1.B)").
WithLocation
(22, 19),
758
Diagnostic(ErrorCode.ERR_BadArgType, "2.0").WithArguments("3", "double", "N1.A").
WithLocation
(23, 26));
783
Diagnostic(ErrorCode.ERR_BadAccess, "((this.E))(null, null)").WithArguments("S.E(object, object, object)").
WithLocation
(13, 9));
845
Diagnostic(ErrorCode.ERR_BadDelArgCount, "F").WithArguments("System.Action<int>", "2").
WithLocation
(9, 14),
847
Diagnostic(ErrorCode.ERR_BadArgType, "1.0").WithArguments("1", "double", "int").
WithLocation
(10, 16));
1016
Diagnostic(ErrorCode.ERR_BadRetType, "c.F1").WithArguments("S2.F1(object, object)", "void").
WithLocation
(10, 16),
1019
Diagnostic(ErrorCode.ERR_BadRetType, "c.F2").WithArguments("S2.F2(N.C, object)", "object").
WithLocation
(13, 16),
1022
Diagnostic(ErrorCode.ERR_AmbigCall, "c.F3").WithArguments("S2.F3(N.C, object)", "S3.F3(N.C, object)").
WithLocation
(14, 16));
1038
Diagnostic(ErrorCode.ERR_BadArgType, "c.F1").WithArguments("1", "method group", "System.Func<object, object>").
WithLocation
(10, 16),
1041
Diagnostic(ErrorCode.ERR_BadArgType, "c.F2").WithArguments("1", "method group", "System.Action<object>").
WithLocation
(13, 16),
1044
Diagnostic(ErrorCode.ERR_AmbigCall, "c.F3").WithArguments("S2.F3(N.C, object)", "S3.F3(N.C, object)").
WithLocation
(14, 16));
1099
Diagnostic(ErrorCode.ERR_AmbigCall, "G").WithArguments("C.G(DA)", "C.G(DB)").
WithLocation
(11, 12),
1101
Diagnostic(ErrorCode.ERR_AmbigCall, "G").WithArguments("C.G(DA)", "C.G(DB)").
WithLocation
(12, 12),
1103
Diagnostic(ErrorCode.ERR_AmbigCall, "G").WithArguments("N.C.G(DA)", "N.C.G(DB)").
WithLocation
(29, 18),
1105
Diagnostic(ErrorCode.ERR_AmbigCall, "G").WithArguments("N.C.G(DA)", "N.C.G(DB)").
WithLocation
(30, 18));
1146
Diagnostic(ErrorCode.ERR_AssgReadonlyLocalCause, "o.E").WithArguments("E", "method group").
WithLocation
(5, 9),
1149
Diagnostic(ErrorCode.ERR_BadBinaryOps, "o.E != null").WithArguments("!=", "method group", "<null>").
WithLocation
(6, 13),
1152
Diagnostic(ErrorCode.ERR_BadArgType, "o.E").WithArguments("1", "method group", "object").
WithLocation
(8, 15),
1155
Diagnostic(ErrorCode.ERR_BadSKunknown, "E").WithArguments("S.E(object)", "method").
WithLocation
(9, 15),
1158
Diagnostic(ErrorCode.ERR_BadUnaryOp, "!o.E").WithArguments("!", "method group").
WithLocation
(10, 17),
1161
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("object", "F").
WithLocation
(12, 11),
1164
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("object", "F").
WithLocation
(12, 18),
1167
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("object", "F").
WithLocation
(13, 15),
1170
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("object", "F").
WithLocation
(15, 17),
1173
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("object", "F").
WithLocation
(16, 15),
1176
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("object", "F").
WithLocation
(17, 20),
1179
Diagnostic(ErrorCode.ERR_BadSKunknown, "E").WithArguments("S.E(object)", "method").
WithLocation
(19, 11)
1207
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("object", "F").
WithLocation
(6, 11),
1210
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("object", "F").
WithLocation
(7, 13),
1213
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("object", "F").
WithLocation
(8, 22),
1216
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "F").WithArguments("object", "F").
WithLocation
(9, 15)
1256
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("S.F(object)").
WithLocation
(9, 9),
1258
Diagnostic(ErrorCode.ERR_BadArgType, "o.F").WithArguments("1", "method group", "System.Action").
WithLocation
(11, 9),
1260
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("S.F(object)").
WithLocation
(13, 20));
1416
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "E").WithArguments("A", "E").
WithLocation
(15, 13),
1419
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("A.F()").
WithLocation
(15, 20),
1422
Diagnostic(ErrorCode.ERR_BadAccess, "G").WithArguments("A.G()").
WithLocation
(15, 27)
1447
Diagnostic(ErrorCode.ERR_MethGrpToNonDel, "E").WithArguments("E", "object").
WithLocation
(5, 18));
1453
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "o.E").WithArguments("E", "object").
WithLocation
(5, 16));
1489
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("N.A.F()").
WithLocation
(11, 15),
1492
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "G").WithArguments("N.A", "G").
WithLocation
(12, 15)
1534
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F is D").
WithLocation
(10, 13),
1537
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F as D").
WithLocation
(12, 14),
1540
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.F is D").
WithLocation
(14, 13),
1543
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.F as D").
WithLocation
(16, 14),
1546
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "G is D").
WithLocation
(18, 13),
1549
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "G as D").
WithLocation
(20, 14),
1552
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.E is D").
WithLocation
(22, 13),
1555
Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.E as D").
WithLocation
(24, 14));
1599
Diagnostic(ErrorCode.ERR_NameNotInContext, "E").WithArguments("E").
WithLocation
(5, 9));
1622
Diagnostic(ErrorCode.ERR_NoSuchMember, "E").WithArguments("C", "E").
WithLocation
(8, 14));
1693
Diagnostic(ErrorCode.ERR_AmbigCall, "E").WithArgumentsAnyOrder("A.E(string, int)", "B.E(string, int)").
WithLocation
(10, 11),
1694
Diagnostic(ErrorCode.ERR_AmbigCall, "E").WithArgumentsAnyOrder("B.E(string, int)", "A.E(string, int)").
WithLocation
(17, 11),
1695
Diagnostic(ErrorCode.ERR_AmbigCall, "E").WithArguments("N.S.A.E(string, int)", "N.S.B.E(string, int)").
WithLocation
(34, 15),
1696
Diagnostic(ErrorCode.ERR_AmbigCall, "E").WithArguments("N.S.A.E(string, int)", "N.S.B.E(string, int)").
WithLocation
(41, 15));
1730
Diagnostic(ErrorCode.ERR_AmbigCall, "M2").WithArgumentsAnyOrder("N.C.M2(System.Action)", "N.C.M2(System.Action<int>)").
WithLocation
(7, 13));
1833
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "set_P").WithArguments("C.P.set").
WithLocation
(6, 14),
1835
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "set_P").WithArguments("C.P.set").
WithLocation
(7, 9),
1837
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "get_P").WithArguments("C.P.get").
WithLocation
(7, 15),
1839
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "set_P").WithArguments("C.P.set").
WithLocation
(14, 11));
1866
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "get_Q").WithArguments("C.Q.get").
WithLocation
(9, 16));
1899
Diagnostic(ErrorCode.ERR_BadSKunknown, "E").WithArguments("S.E(object)", "method").
WithLocation
(14, 15),
1901
Diagnostic(ErrorCode.ERR_BadSKunknown, "E").WithArguments("S.E(object)", "method").
WithLocation
(15, 16),
1903
Diagnostic(ErrorCode.ERR_BadSKunknown, "E").WithArguments("S.E(object)", "method").
WithLocation
(19, 11));
1961
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "E<S>").WithArguments("S").
WithLocation
(6, 14),
1964
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(7, 16),
1967
Diagnostic(ErrorCode.ERR_BadArity, "E<int, int>").WithArguments("C.E<T>()", "method", "1").
WithLocation
(8, 14)
2054
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "2").WithArguments("int", "E2", "S.E2(double)", "double").
WithLocation
(6, 9),
2057
Diagnostic(ErrorCode.ERR_BadInstanceArgType, "3").WithArguments("int", "E3", "S.E3(long, params object[])", "long").
WithLocation
(7, 9));
2196
Diagnostic(ErrorCode.ERR_AmbigCall, "E").WithArguments("N1.S.E(object)", "N2.S.E(object)").
WithLocation
(37, 15));
2213
Diagnostic(ErrorCode.ERR_ExtensionAttrNotFound, "this").WithArguments("System.Runtime.CompilerServices.ExtensionAttribute").
WithLocation
(4, 29));
2780
Diagnostic(ErrorCode.ERR_BadArgCount, "M").WithArguments("M", "2").
WithLocation
(5, 11),
2783
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("y", "S.M(object, object)").
WithLocation
(6, 11),
2786
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M").WithArguments("y", "S.M(object, object)").
WithLocation
(7, 9));
2871
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "s.M").WithArguments("unmanaged constructed types", "8.0").
WithLocation
(5, 9)
2925
Diagnostic(ErrorCode.ERR_BadArgType, "1d").WithArguments("1", "double", "float").
WithLocation
(6, 16));
3052
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "x.Goo").WithArguments("C.Goo(int)", "int").
WithLocation
(9, 13),
3054
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "new VoidDelegate(x.Goo)").WithArguments("C.Goo(int)", "int").
WithLocation
(10, 13),
3056
Diagnostic(ErrorCode.ERR_ValueTypeExtDelegate, "x.Goo").WithArguments("'C.Goo(int)", "int").
WithLocation
(11, 14));
3262
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "MI").WithArguments("object", "MI").
WithLocation
(9, 11));
3407
Diagnostic(ErrorCode.ERR_AmbigCall, "F").WithArguments("NA.A.F(object)", "NA.B.F(object)").
WithLocation
(16, 26),
3516
Diagnostic(ErrorCode.ERR_NameNotInContext, "Goo").WithArguments("Goo").
WithLocation
(10, 9));
3584
Diagnostic(ErrorCode.ERR_AmbigCall, "Goo").WithArguments("N.S.Goo(int)", "N.R.Goo(int)").
WithLocation
(9, 11));
3671
Diagnostic(ErrorCode.ERR_AmbigCall, "Goo").WithArguments("N.S.Goo(int)", "N.R.Goo(int)").
WithLocation
(13, 15));
3705
Diagnostic(ErrorCode.ERR_AmbigCall, "Goo").WithArguments("N.Program.Goo(int)", "N.R.Goo(int)").
WithLocation
(10, 15),
3708
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static Program;").
WithLocation
(4, 5));
3740
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Goo").WithArguments("int", "Goo").
WithLocation
(9, 15),
3743
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = N.S;").
WithLocation
(4, 5));
3913
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "SetMember").WithArguments("Extensions.SetMember<BC, TMember>(BC, TMember)", "BaseClass<long>", "BC", "BaseClass<int>").
WithLocation
(7, 18)
4008
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "SetMember").WithArguments("Extensions.SetMember<BC, TMember>(BC, TMember)", "I1<long>", "BC", "BaseClass<int>").
WithLocation
(7, 18)
Symbols\FunctionPointerTypeSymbolTests.cs (67)
84
Diagnostic(ErrorCode.ERR_InvalidFuncPointerReturnTypeModifier, "readonly").WithArguments("readonly").
WithLocation
(5, 19),
87
Diagnostic(ErrorCode.ERR_InvalidFuncPointerReturnTypeModifier, "readonly").WithArguments("readonly").
WithLocation
(6, 19),
90
Diagnostic(ErrorCode.ERR_DupReturnTypeMod, "ref").WithArguments("ref").
WithLocation
(7, 23),
93
Diagnostic(ErrorCode.ERR_InvalidFuncPointerReturnTypeModifier, "readonly").WithArguments("readonly").
WithLocation
(7, 27),
96
Diagnostic(ErrorCode.ERR_InvalidFuncPointerReturnTypeModifier, "readonly").WithArguments("readonly").
WithLocation
(8, 32),
99
Diagnostic(ErrorCode.ERR_InvalidFuncPointerReturnTypeModifier, "this").WithArguments("this").
WithLocation
(9, 19),
102
Diagnostic(ErrorCode.ERR_InvalidFuncPointerReturnTypeModifier, "params").WithArguments("params").
WithLocation
(10, 19),
105
Diagnostic(ErrorCode.ERR_DupReturnTypeMod, "ref").WithArguments("ref").
WithLocation
(11, 23),
108
Diagnostic(ErrorCode.ERR_InvalidFuncPointerReturnTypeModifier, "out").WithArguments("out").
WithLocation
(12, 19));
189
Diagnostic(ErrorCode.ERR_NoVoidHere, "ref void").
WithLocation
(5, 19),
192
Diagnostic(ErrorCode.ERR_NoVoidHere, "ref readonly void").
WithLocation
(6, 19));
255
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportUnmanagedDefaultCallConv, "unmanaged").
WithLocation
(4, 36)
306
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportUnmanagedDefaultCallConv, "invalid").
WithLocation
(4, 47),
309
Diagnostic(ErrorCode.ERR_TypeNotFound, "invalid").WithArguments("CallConvinvalid").
WithLocation
(4, 47),
312
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportUnmanagedDefaultCallConv, "unmanaged").
WithLocation
(5, 37),
315
Diagnostic(ErrorCode.ERR_TypeNotFound, "invalid").WithArguments("CallConvinvalid").
WithLocation
(5, 47),
318
Diagnostic(ErrorCode.ERR_IdentifierExpected, "]").
WithLocation
(6, 47),
321
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportUnmanagedDefaultCallConv, "").
WithLocation
(6, 47)
543
Diagnostic(ErrorCode.ERR_BadFuncPointerParamModifier, "params").WithArguments("params").
WithLocation
(5, 19),
546
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(6, 19),
549
Diagnostic(ErrorCode.ERR_ReadOnlyNotSuppAsParamModDidYouMeanIn, "readonly").
WithLocation
(7, 19),
552
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "in").
WithLocation
(8, 22),
555
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "in").WithArguments("in", "out").
WithLocation
(9, 23),
558
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "ref").WithArguments("ref", "in").
WithLocation
(10, 22),
561
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "in").WithArguments("in", "ref").
WithLocation
(11, 23),
564
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "ref").WithArguments("ref", "out").
WithLocation
(12, 23),
567
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "ref").
WithLocation
(13, 23));
675
Diagnostic(ErrorCode.ERR_NoVoidParameter, "void").
WithLocation
(4, 29));
1026
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "in string").WithArguments("System.Runtime.InteropServices.InAttribute").
WithLocation
(4, 29),
1029
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "out string").WithArguments("System.Runtime.InteropServices.OutAttribute").
WithLocation
(4, 40));
1094
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(4, 5),
1097
Diagnostic(ErrorCode.WRN_UnreferencedField, "_field").WithArguments("C._field").
WithLocation
(4, 21),
1100
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(5, 5),
1103
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(6, 5),
1106
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(6, 23),
1109
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(8, 9),
1112
Diagnostic(ErrorCode.WRN_UnreferencedVar, "local1").WithArguments("local1").
WithLocation
(8, 25),
1115
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate/**/*").
WithLocation
(9, 13),
1118
Diagnostic(ErrorCode.WRN_UnreferencedVar, "local2").WithArguments("local2").
WithLocation
(9, 37));
1137
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").
WithLocation
(6, 13),
1140
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[a]").
WithLocation
(7, 22),
1143
Diagnostic(ErrorCode.WRN_UnreferencedVar, "local").WithArguments("local").
WithLocation
(7, 27));
1208
Diagnostic(ErrorCode.ERR_BadFuncPointerArgCount, @"p1(""No arguments allowed"")").WithArguments("delegate*<void>", "1").
WithLocation
(10, 9),
1211
Diagnostic(ErrorCode.ERR_BadFuncPointerArgCount, @"p2(""Too"", ""many"", ""arguments"")").WithArguments("delegate*<string, void>", "3").
WithLocation
(11, 9),
1214
Diagnostic(ErrorCode.ERR_BadFuncPointerArgCount, "p2()").WithArguments("delegate*<string, void>", "0").
WithLocation
(12, 9),
1217
Diagnostic(ErrorCode.ERR_BadArgType, "1").WithArguments("1", "int", "string").
WithLocation
(13, 12),
1220
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "p3()").
WithLocation
(14, 30),
1223
Diagnostic(ErrorCode.ERR_BadArgRef, "s").WithArguments("1", "ref").
WithLocation
(16, 12),
1226
Diagnostic(ErrorCode.ERR_BadArgRef, "s").WithArguments("1", "ref").
WithLocation
(17, 15),
1229
Diagnostic(ErrorCode.ERR_BadArgExtraRef, "s").WithArguments("1", "ref").
WithLocation
(18, 16));
1251
Diagnostic(ErrorCode.ERR_BadAccess, "D").WithArguments("C.D").
WithLocation
(10, 21),
1254
Diagnostic(ErrorCode.WRN_UnreferencedVar, "d").WithArguments("d").
WithLocation
(10, 24));
1310
Diagnostic(ErrorCode.ERR_BadTypeArgument, "R2").WithArguments("delegate*<void>").
WithLocation
(6, 7)
1344
Diagnostic(ErrorCode.ERR_BadTypeforThis, "delegate*<void>").WithArguments("delegate*<void>").
WithLocation
(4, 25)
1421
Diagnostic(ErrorCode.ERR_AnonymousTypePropertyAssignedBadValue, "Ptr = ptr").WithArguments("delegate*<void>").
WithLocation
(6, 23),
1424
Diagnostic(ErrorCode.ERR_AnonymousTypePropertyAssignedBadValue, "Ptrs = new[] { ptr }").WithArguments("delegate*<void>[]").
WithLocation
(7, 23)
1499
Diagnostic(ErrorCode.ERR_UnsafeIteratorArgType, "i").
WithLocation
(5, 48),
1502
Diagnostic(ErrorCode.ERR_UnsafeIteratorArgType, "i").
WithLocation
(10, 50)
1787
Diagnostic(ErrorCode.ERR_BadRetType, "M1").WithArguments("C.M1(int)", "string").
WithLocation
(8, 38),
1790
Diagnostic(ErrorCode.ERR_BadFuncPointerArgCount, "ptr()").WithArguments("delegate*<int, string>", "0").
WithLocation
(10, 13),
1793
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(15, 9),
1796
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "ptr(1)").
WithLocation
(16, 13)
1912
Diagnostic(ErrorCode.ERR_InvalidFuncPointerReturnTypeModifier, "out").WithArguments("out").
WithLocation
(7, 19),
1915
Diagnostic(ErrorCode.ERR_InvalidFuncPointerReturnTypeModifier, "in").WithArguments("in").
WithLocation
(8, 19),
1918
Diagnostic(ErrorCode.ERR_ReadOnlyNotSuppAsParamModDidYouMeanIn, "readonly").
WithLocation
(9, 23),
1921
Diagnostic(ErrorCode.ERR_NoVoidParameter, "void").
WithLocation
(10, 19),
1924
Diagnostic(ErrorCode.ERR_NoVoidHere, "ref void").
WithLocation
(11, 19));
Symbols\GenericConstraintConversionTests.cs (88)
59
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "u").WithArguments("U", "IB").
WithLocation
(25, 14),
61
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "v").WithArguments("V", "IB").
WithLocation
(26, 14),
63
Diagnostic(ErrorCode.ERR_NoImplicitConv, "u").WithArguments("U", "A").
WithLocation
(28, 13),
65
Diagnostic(ErrorCode.ERR_NoImplicitConv, "u").WithArguments("U", "B").
WithLocation
(30, 13));
95
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "t").WithArguments("T", "IB").
WithLocation
(17, 14));
141
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "u").WithArguments("U", "IA").
WithLocation
(15, 13),
143
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "t").WithArguments("T", "IB").
WithLocation
(16, 13),
145
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("X", "IB").
WithLocation
(22, 13),
147
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("X", "IA").
WithLocation
(26, 13));
216
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "u").WithArguments("U", "T").
WithLocation
(11, 13),
218
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "v").WithArguments("V", "T").
WithLocation
(12, 13),
220
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "w").WithArguments("W", "T").
WithLocation
(13, 13),
222
Diagnostic(ErrorCode.ERR_NoImplicitConv, "v").WithArguments("V", "U").
WithLocation
(15, 13),
224
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "w").WithArguments("W", "U").
WithLocation
(16, 13),
226
Diagnostic(ErrorCode.ERR_NoImplicitConv, "u").WithArguments("U", "V").
WithLocation
(18, 13),
228
Diagnostic(ErrorCode.ERR_NoImplicitConv, "w").WithArguments("W", "V").
WithLocation
(19, 13),
230
Diagnostic(ErrorCode.ERR_NoImplicitConv, "v").WithArguments("V", "W").
WithLocation
(22, 13),
232
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "t").WithArguments("T", "X").
WithLocation
(30, 13),
234
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "u").WithArguments("U", "X").
WithLocation
(31, 13),
236
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "v").WithArguments("V", "X").
WithLocation
(32, 13),
238
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "w").WithArguments("W", "X").
WithLocation
(33, 13),
240
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("X", "T").
WithLocation
(37, 13),
242
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("X", "V").
WithLocation
(39, 13),
244
Diagnostic(ErrorCode.ERR_NoImplicitConv, "t").WithArguments("T", "X").
WithLocation
(41, 13),
246
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "u").WithArguments("U", "X").
WithLocation
(42, 13),
248
Diagnostic(ErrorCode.ERR_NoImplicitConv, "v").WithArguments("V", "X").
WithLocation
(43, 13),
250
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "w").WithArguments("W", "X").
WithLocation
(44, 13),
252
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x").WithArguments("X", "T").
WithLocation
(48, 13),
254
Diagnostic(ErrorCode.ERR_NoImplicitConv, "t").WithArguments("T", "X").
WithLocation
(52, 13),
256
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "u").WithArguments("U", "X").
WithLocation
(53, 13),
258
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "v").WithArguments("V", "X").
WithLocation
(54, 13),
260
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "w").WithArguments("W", "X").
WithLocation
(55, 13));
335
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "t").WithArguments("T", "IB").
WithLocation
(15, 13));
416
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y").WithArguments("Y", "IIn<T>").
WithLocation
(20, 14),
418
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("X", "IOut<U>").
WithLocation
(30, 14),
420
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y").WithArguments("Y", "IIn<T>").
WithLocation
(38, 14),
422
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("X", "IOut<U>").
WithLocation
(48, 14),
424
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "y").WithArguments("Y", "IIn<T>").
WithLocation
(56, 14),
426
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("X", "IOut<U>").
WithLocation
(66, 14));
536
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("I<U>", "I<T>").
WithLocation
(9, 14),
538
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("I<T>", "I<U>").
WithLocation
(10, 14),
540
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("IIn<U>", "IIn<T>").
WithLocation
(14, 14),
542
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("IIn<T>", "IIn<U>").
WithLocation
(15, 14),
544
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("IOut<U>", "IOut<T>").
WithLocation
(19, 14),
546
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("IOut<T>", "IOut<U>").
WithLocation
(20, 14),
548
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("I<U>", "I<T>").
WithLocation
(29, 14),
550
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("I<T>", "I<U>").
WithLocation
(30, 14),
552
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("IIn<U>", "IIn<T>").
WithLocation
(34, 14),
554
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("IIn<T>", "IIn<U>").
WithLocation
(35, 14),
556
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("IOut<U>", "IOut<T>").
WithLocation
(39, 14),
558
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("IOut<T>", "IOut<U>").
WithLocation
(40, 14),
560
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("I<U>", "I<T>").
WithLocation
(49, 14),
562
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("I<T>", "I<U>").
WithLocation
(50, 14),
564
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("IIn<U>", "IIn<T>").
WithLocation
(54, 14),
566
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("IOut<T>", "IOut<U>").
WithLocation
(60, 14),
568
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("I<U>", "I<T>").
WithLocation
(68, 14),
570
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("I<T>", "I<U>").
WithLocation
(69, 14),
572
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("IIn<U>", "IIn<T>").
WithLocation
(73, 14),
574
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("IIn<T>", "IIn<U>").
WithLocation
(74, 14),
576
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("IOut<U>", "IOut<T>").
WithLocation
(78, 14),
578
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("IOut<T>", "IOut<U>").
WithLocation
(79, 14),
580
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("I<U>", "I<T>").
WithLocation
(88, 14),
582
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("I<T>", "I<U>").
WithLocation
(89, 14),
584
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("IIn<U>", "IIn<T>").
WithLocation
(93, 14),
586
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("IIn<T>", "IIn<U>").
WithLocation
(94, 14),
588
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "iu").WithArguments("IOut<U>", "IOut<T>").
WithLocation
(98, 14),
590
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "it").WithArguments("IOut<T>", "IOut<U>").
WithLocation
(99, 14));
609
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "u").WithArguments("U", "X").
WithLocation
(8, 13));
630
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "t").WithArguments("T", "Y").
WithLocation
(10, 13));
653
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(2, 9),
655
Diagnostic(ErrorCode.ERR_CircularConstraint, "U").WithArguments("U", "U").
WithLocation
(2, 12),
657
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "t").WithArguments("T", "I").
WithLocation
(10, 13));
693
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(T)b1t").WithArguments("B1<T>", "T").
WithLocation
(14, 13),
695
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(T)b2").WithArguments("B2", "T").
WithLocation
(16, 13),
697
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(U)b1o").WithArguments("B1<object>", "U").
WithLocation
(21, 13),
699
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(U)b2").WithArguments("B2", "U").
WithLocation
(22, 13));
820
Diagnostic(ErrorCode.ERR_NoImplicitConv, "t").WithArguments("int", "U").
WithLocation
(9, 13),
822
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(U)t").WithArguments("int", "U").
WithLocation
(10, 13),
824
Diagnostic(ErrorCode.ERR_NoImplicitConv, "u").WithArguments("U", "int").
WithLocation
(11, 13),
826
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(int)u").WithArguments("U", "int").
WithLocation
(12, 13));
972
Diagnostic(ErrorCode.ERR_NoImplicitConv, "t").WithArguments("T", "C0").
WithLocation
(17, 48),
974
Diagnostic(ErrorCode.ERR_NoImplicitConv, "c").WithArguments("C4<T>", "T").
WithLocation
(21, 38));
1007
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(C0)t").WithArguments("T", "C0").
WithLocation
(17, 48),
1009
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(T)c").WithArguments("C4<T>", "T").
WithLocation
(21, 38));
1055
Diagnostic(ErrorCode.ERR_ConversionWithBase, "A").WithArguments("B1.implicit operator A(B1)").
WithLocation
(4, 37),
1057
Diagnostic(ErrorCode.ERR_ConversionWithBase, "A").WithArguments("B2.explicit operator A(B2)").
WithLocation
(8, 37),
1059
Diagnostic(ErrorCode.ERR_ConversionWithBase, "B3").WithArguments("B3.implicit operator B3(A)").
WithLocation
(12, 37),
1061
Diagnostic(ErrorCode.ERR_ConversionWithBase, "B4").WithArguments("B4.explicit operator B4(A)").
WithLocation
(16, 37));
Symbols\GenericConstraintTests.cs (365)
243
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "C1").WithArguments("A1<T>", "A2", "T", "C1.C2").
WithLocation
(7, 7));
264
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "C1").WithArguments("A1<T>", "A1<C1.C2>.A2", "T", "C1.C2").
WithLocation
(9, 7));
293
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "PrivateCtorClass").WithArguments("Gen<T>", "T", "PrivateCtorClass").
WithLocation
(5, 26));
315
WithArguments("Gen<T>", "InterfaceConstraint", "T", "ViolateInterfaceConstraint").
WithLocation
(6, 63));
341
Diagnostic(ErrorCode.ERR_BadAccess, "B2").WithArguments("A<int>.B2").
WithLocation
(10, 22),
344
Diagnostic(ErrorCode.ERR_BadAccess, "B2").WithArguments("A<int>.B2").
WithLocation
(13, 22),
347
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "o").WithArguments("A<T>", "T", "A<int>.B1[]").
WithLocation
(14, 31),
350
Diagnostic(ErrorCode.WRN_ManagedAddr, "o").WithArguments("A<string>.B1").
WithLocation
(9, 28),
353
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "o").WithArguments("A<T>", "T", "string").
WithLocation
(9, 28),
356
Diagnostic(ErrorCode.WRN_ManagedAddr, "o").WithArguments("A<A<int>.B2>.B1").
WithLocation
(10, 30),
359
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "o").WithArguments("A<T>", "T", "A<int>[]").
WithLocation
(11, 28),
362
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "o").WithArguments("A<T>", "T", "string").
WithLocation
(12, 30),
365
Diagnostic(ErrorCode.ERR_BadTypeArgument, "o").WithArguments("A<int>*").
WithLocation
(8, 27),
368
Diagnostic(ErrorCode.WRN_ManagedAddr, "o").WithArguments("A<int>").
WithLocation
(8, 27));
477
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C").WithArguments("I<T, U>", "T", "int").
WithLocation
(8, 7),
479
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "C").WithArguments("I<T, U>", "U", "object").
WithLocation
(8, 7),
481
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "I<int, object>").WithArguments("I<T, U>", "T", "int").
WithLocation
(10, 10),
483
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "I<int, object>").WithArguments("I<T, U>", "U", "object").
WithLocation
(10, 10),
485
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "I<int, object>").WithArguments("I<T, U>", "T", "int").
WithLocation
(11, 12),
487
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "I<int, object>").WithArguments("I<T, U>", "U", "object").
WithLocation
(11, 12));
519
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "B").WithArguments("A.I<T>", "T", "B").
WithLocation
(12, 16),
521
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "A.I<B>").WithArguments("A.I<T>", "T", "B").
WithLocation
(14, 10),
523
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "A.I<B>").WithArguments("A.I<T>", "T", "B").
WithLocation
(15, 12),
525
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "A.I<B>").WithArguments("A.I<T>", "T", "B").
WithLocation
(16, 12),
527
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "A.I<B>").WithArguments("A.I<T>", "T", "B").
WithLocation
(17, 13));
605
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C1").WithArguments("A<T>", "T", "T").
WithLocation
(13, 16),
607
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C1").WithArguments("I<T>", "T", "T").
WithLocation
(13, 16),
609
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "F").WithArguments("A<T>", "T", "U").
WithLocation
(15, 28),
611
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "a").WithArguments("I<T>", "T", "U").
WithLocation
(15, 38),
613
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C2").WithArguments("A<T>", "T", "T").
WithLocation
(18, 16),
615
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C2").WithArguments("A<T>", "T", "T").
WithLocation
(18, 16),
617
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "F").WithArguments("A<T>", "T", "U").
WithLocation
(20, 30),
619
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "a").WithArguments("A<T>", "T", "U").
WithLocation
(20, 42),
621
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "C3").WithArguments("B.C<U>", "U", "T").
WithLocation
(23, 16),
623
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "C3").WithArguments("B.I<U>", "U", "T").
WithLocation
(23, 16),
625
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F").WithArguments("B.C<U>", "U", "U").
WithLocation
(25, 30),
627
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "a").WithArguments("B.I<U>", "U", "U").
WithLocation
(25, 42),
629
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "C4").WithArguments("B.C<U>", "U", "T").
WithLocation
(28, 16),
631
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C4").WithArguments("A<T>", "T", "T").
WithLocation
(28, 16),
633
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "F").WithArguments("A<T>", "T", "U").
WithLocation
(30, 33),
635
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "a").WithArguments("B.C<U>", "U", "U").
WithLocation
(30, 50),
637
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C5").WithArguments("I<T>", "T", "T").
WithLocation
(33, 16),
639
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C5").WithArguments("A<T>", "T", "T").
WithLocation
(33, 16),
641
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "F").WithArguments("A<T>", "T", "U").
WithLocation
(35, 31),
643
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "a").WithArguments("I<T>", "T", "U").
WithLocation
(35, 44),
645
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "C6").WithArguments("B.I<U>", "U", "U").
WithLocation
(38, 16),
647
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "b").WithArguments("A<T>", "T", "Y").
WithLocation
(40, 54));
681
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "U").WithArguments("A<T>", "T", "V").
WithLocation
(10, 28),
683
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "U").WithArguments("A<T>", "T", "V").
WithLocation
(18, 28),
685
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "a").WithArguments("A<T>", "T", "U").
WithLocation
(8, 36),
687
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "b").WithArguments("A<T>", "T", "A<int>").
WithLocation
(8, 51),
689
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "M5").WithArguments("A<T>", "T", "U").
WithLocation
(11, 34));
744
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new T()").WithArguments("T").
WithLocation
(8, 11));
785
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "A").WithArguments("C<T>", "T", "int").
WithLocation
(1, 7),
787
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "B").WithArguments("C<T>", "T", "bool").
WithLocation
(2, 7),
859
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "float").WithArguments("B<T>", "T", "float").
WithLocation
(11, 18),
861
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new B<float>()").
WithLocation
(11, 12),
863
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "F").WithArguments("B<T>", "T", "byte").
WithLocation
(10, 20),
865
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "o").WithArguments("B<T>", "T", "double").
WithLocation
(12, 19),
867
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int").WithArguments("B<T>", "T", "int").
WithLocation
(8, 14),
869
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new B<int>()").
WithLocation
(8, 8),
871
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "short").WithArguments("B<T>", "T", "short").
WithLocation
(9, 22),
873
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "new B<short>()").
WithLocation
(9, 16));
894
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "object").WithArguments("A<T>", "T", "object").
WithLocation
(4, 31),
896
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<string>").WithArguments("B.F<T>(int)", "T", "string").
WithLocation
(8, 31));
911
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "object").WithArguments("C<T>", "C<object>", "T", "object").
WithLocation
(5, 13));
933
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A").WithArguments("A").
WithLocation
(1, 22),
935
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(3, 34),
937
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(5, 14),
939
Diagnostic(ErrorCode.ERR_CircularConstraint, "U").WithArguments("U", "U").
WithLocation
(8, 12));
958
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "E").WithArguments("I<T>", "T", "short").
WithLocation
(8, 23),
961
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "i").WithArguments("I<T>", "T", "int").
WithLocation
(5, 14),
964
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "P").WithArguments("I<T>", "T", "byte").
WithLocation
(6, 13),
967
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "index").WithArguments("I<T>", "T", "float").
WithLocation
(7, 29),
970
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "this").WithArguments("I<T>", "T", "double").
WithLocation
(7, 15),
973
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(8, 23));
991
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "long").WithArguments("I<T>", "T", "long").
WithLocation
(6, 21),
993
Diagnostic(ErrorCode.ERR_MethodNameExpected, "(delegate(I<long> o) { })").
WithLocation
(6, 9),
995
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "short").WithArguments("I<T>", "T", "short").
WithLocation
(7, 13),
997
Diagnostic(ErrorCode.ERR_MethodNameExpected, "((I<short> o) => { })").
WithLocation
(7, 9));
1012
Diagnostic(ErrorCode.ERR_FixedNotInStruct, "F").
WithLocation
(4, 15),
1014
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "C<T>").WithArguments("C<T>", "T", "C<T>").
WithLocation
(4, 19));
1099
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "i.E").WithArguments("C.E<T>(T)", "T", "I").
WithLocation
(7, 9),
1101
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "i.F").WithArguments("C.F<T>(T)", "T", "I").
WithLocation
(9, 9));
1389
Diagnostic(ErrorCode.ERR_NewTyvarWithArgs, "new T(F())").WithArguments("T").
WithLocation
(5, 19),
1391
Diagnostic(ErrorCode.ERR_NameNotInContext, "F").WithArguments("F").
WithLocation
(5, 25),
1393
Diagnostic(ErrorCode.ERR_NoNewTyvar, "new U(G())").WithArguments("U").
WithLocation
(6, 12),
1395
Diagnostic(ErrorCode.ERR_NameNotInContext, "G").WithArguments("G").
WithLocation
(6, 18));
1780
Diagnostic(ErrorCode.ERR_ConWithValCon, "X").WithArguments("X", "U").
WithLocation
(11, 15),
1782
Diagnostic(ErrorCode.ERR_ConWithValCon, "X").WithArguments("X", "U").
WithLocation
(16, 14),
1784
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "X").WithArguments("X", "A", "System.ValueType").
WithLocation
(18, 14),
1786
Diagnostic(ErrorCode.ERR_ConWithValCon, "X").WithArguments("X", "U").
WithLocation
(21, 22),
1788
Diagnostic(ErrorCode.ERR_ConWithValCon, "X").WithArguments("X", "U").
WithLocation
(26, 13),
1790
Diagnostic(ErrorCode.ERR_ConWithValCon, "X").WithArguments("X", "U").
WithLocation
(31, 18),
1792
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "X").WithArguments("X", "A", "B").
WithLocation
(33, 18));
1816
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "X").WithArguments("X", "B", "A").
WithLocation
(10, 30));
1864
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M2").WithArguments("T", "B1.M2<T>()", "U", "I<object>.M2<U>()").
WithLocation
(14, 17),
1867
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "I<object>").WithArguments("U", "A<object>.M2<U>()", "U", "I<object>.M2<U>()").
WithLocation
(16, 23));
1931
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("V", "C1<T, U>.M<V>()", "V", "I1<T, U>.M<V>()").
WithLocation
(10, 17),
1933
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("T", "C4.M<T>()", "V", "I1<B, I>.M<V>()").
WithLocation
(22, 17),
1935
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("T", "C6.M<T>()", "V", "I1<A, B>.M<V>()").
WithLocation
(30, 17),
1937
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("U", "C7<T>.M<U>()", "U", "I2<T>.M<U>()").
WithLocation
(38, 17),
1939
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("T", "C8.M<T>()", "U", "I2<A>.M<U>()").
WithLocation
(42, 17),
1941
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("T", "C9.M<T>()", "U", "I2<B>.M<U>()").
WithLocation
(46, 17));
1988
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "I").WithArguments("T", "A2.M<T>()", "T", "I.M<T>()").
WithLocation
(16, 16),
1991
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "I").WithArguments("T", "A3.M<T>()", "T", "I.M<T>()").
WithLocation
(23, 16),
1994
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("T", "A4.M<T>()", "T", "I.M<T>()").
WithLocation
(28, 17),
1997
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "I").WithArguments("T", "A4.M<T>()", "T", "I.M<T>()").
WithLocation
(30, 16));
2046
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "I").WithArguments("T", "A2.M<T>()", "T", "I.M<T>()").
WithLocation
(2, 16),
2049
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "I").WithArguments("T", "A3.M<T>()", "T", "I.M<T>()").
WithLocation
(3, 16),
2052
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "I").WithArguments("T", "A4.M<T>()", "T", "I.M<T>()").
WithLocation
(4, 16),
2055
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("B5", "I.M<T>()").
WithLocation
(5, 16));
2083
Diagnostic(ErrorCode.ERR_DuplicateBound, "IA").WithArguments("IA", "T").
WithLocation
(3, 34),
2085
Diagnostic(ErrorCode.ERR_DuplicateBound, "IA").WithArguments("IA", "T").
WithLocation
(5, 34),
2087
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "B").WithArguments("B<T, U>", "T").
WithLocation
(7, 15),
2089
Diagnostic(ErrorCode.ERR_DuplicateBound, "IA").WithArguments("IA", "T").
WithLocation
(7, 37),
2091
Diagnostic(ErrorCode.ERR_DuplicateBound, "T").WithArguments("T", "U").
WithLocation
(13, 40),
2093
Diagnostic(ErrorCode.ERR_DuplicateBound, "U").WithArguments("U", "V").
WithLocation
(14, 52),
2095
Diagnostic(ErrorCode.ERR_DuplicateBound, "IB<T>").WithArguments("C<T>.IB<T>", "V").
WithLocation
(14, 62));
2111
Diagnostic(ErrorCode.ERR_DuplicateBound, "T").WithArguments("T", "U").
WithLocation
(4, 38),
2114
Diagnostic(ErrorCode.ERR_DuplicateBound, "I<T>").WithArguments("I<T>", "U").
WithLocation
(5, 44));
2136
Diagnostic(ErrorCode.ERR_ConstraintIsStaticClass, "S").WithArguments("S").
WithLocation
(5, 30),
2139
Diagnostic(ErrorCode.ERR_ConstraintIsStaticClass, "S").WithArguments("S").
WithLocation
(6, 30),
2142
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "D").WithArguments("D<T>", "T").
WithLocation
(7, 15),
2145
Diagnostic(ErrorCode.ERR_ClassBoundNotFirst, "A").WithArguments("A").
WithLocation
(8, 33),
2148
Diagnostic(ErrorCode.ERR_ClassBoundNotFirst, "A").WithArguments("A").
WithLocation
(9, 33),
2151
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "E").WithArguments("E<T>", "T").
WithLocation
(10, 15),
2154
Diagnostic(ErrorCode.ERR_BadBoundType, "B").WithArguments("B").
WithLocation
(10, 30),
2157
Diagnostic(ErrorCode.ERR_BadBoundType, "B").WithArguments("B").
WithLocation
(11, 33));
2173
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "B").WithArguments("B<T, U>", "U").
WithLocation
(2, 15),
2176
Diagnostic(ErrorCode.ERR_BadBoundType, "A").WithArguments("A").
WithLocation
(2, 33),
2179
Diagnostic(ErrorCode.ERR_BadBoundType, "A").WithArguments("A").
WithLocation
(3, 33),
2182
Diagnostic(ErrorCode.ERR_BadBoundType, "A").WithArguments("A").
WithLocation
(5, 33));
2264
Diagnostic(ErrorCode.ERR_NoImplicitConv, "u").WithArguments("U", "int").
WithLocation
(11, 17),
2266
Diagnostic(ErrorCode.ERR_BadArgType, "u").WithArguments("1", "U", "int").
WithLocation
(12, 11),
2268
Diagnostic(ErrorCode.ERR_NoImplicitConv, "u").WithArguments("U", "S").
WithLocation
(19, 15),
2270
Diagnostic(ErrorCode.ERR_BadArgType, "u").WithArguments("1", "U", "S").
WithLocation
(20, 11));
2341
Diagnostic(ErrorCode.ERR_BadAccess, "M").WithArguments("A.M()").
WithLocation
(14, 11),
2343
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M").WithArguments("U", "M").
WithLocation
(15, 11));
2369
Diagnostic(ErrorCode.ERR_BadArgType, "u").WithArguments("1", "U", "object[]").
WithLocation
(13, 17),
2371
Diagnostic(ErrorCode.ERR_BadArgType, "u").WithArguments("1", "U", "System.Collections.Generic.IList<object>").
WithLocation
(15, 17));
2414
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M").WithArguments("A", "M").
WithLocation
(22, 11),
2416
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M").WithArguments("T1", "M").
WithLocation
(24, 12),
2418
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M").WithArguments("T4", "M").
WithLocation
(27, 12));
2643
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Unknown").WithArguments("Unknown").
WithLocation
(49, 14));
2667
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Y").WithArguments("Y").
WithLocation
(10, 18),
2670
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("X").
WithLocation
(4, 15),
2673
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I<T>").WithArguments("I<>").
WithLocation
(5, 15),
2676
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Z").WithArguments("Z").
WithLocation
(13, 27),
2679
Diagnostic(ErrorCode.ERR_ClassBoundNotFirst, "A").WithArguments("A").
WithLocation
(13, 30));
2790
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("C2<T>", "System.Enum", "T", "string").
WithLocation
(11, 16),
2792
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("C3<T>", "System.ValueType", "T", "string").
WithLocation
(14, 16),
2794
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("C4<T>", "System.Array", "T", "string").
WithLocation
(17, 16),
2796
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("C5<T>", "int", "T", "string").
WithLocation
(20, 16),
2798
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("C6<T>", "Sealed", "T", "string").
WithLocation
(23, 16),
2800
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "Static").WithArguments("Static").
WithLocation
(25, 16),
2802
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("C7<T>", "Static", "T", "string").
WithLocation
(26, 16),
2804
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("C8<T>", "Enum", "T", "string").
WithLocation
(29, 16),
2806
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "string").WithArguments("C9<T>", "Struct", "T", "string").
WithLocation
(32, 16));
2834
Diagnostic(ErrorCode.ERR_CircularConstraint, "a").WithArguments("T", "T").
WithLocation
(3, 29),
2837
Diagnostic(ErrorCode.ERR_CircularConstraint, "M<string, string>").WithArguments("T", "U").
WithLocation
(6, 11));
2869
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "a").WithArguments("A<T>", "C", "T", "object").
WithLocation
(3, 29),
2872
Diagnostic(ErrorCode.ERR_NoTypeDef, "a").WithArguments("C", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(3, 29),
2875
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<string>").WithArguments("B.M<U>()", "C", "U", "string").
WithLocation
(6, 11),
2878
Diagnostic(ErrorCode.ERR_NoTypeDef, "M<string>").WithArguments("C", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 11));
2967
Diagnostic(ErrorCode.ERR_NoTypeDef, "T1A").WithArguments("IA", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(3, 17),
2970
Diagnostic(ErrorCode.ERR_NoTypeDef, "U2A").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 22),
2973
Diagnostic(ErrorCode.ERR_NoTypeDef, "T3A").WithArguments("IA", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(11, 17),
2976
Diagnostic(ErrorCode.ERR_NoTypeDef, "U3A").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(11, 22),
2979
Diagnostic(ErrorCode.ERR_NoTypeDef, "T1B").WithArguments("IA", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(15, 29),
2982
Diagnostic(ErrorCode.ERR_NoTypeDef, "U2B").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(19, 34),
2985
Diagnostic(ErrorCode.ERR_NoTypeDef, "T3B").WithArguments("IA", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(23, 29),
2988
Diagnostic(ErrorCode.ERR_NoTypeDef, "U3B").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(23, 34),
2991
Diagnostic(ErrorCode.ERR_NoTypeDef, "B5").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(25, 13),
2994
Diagnostic(ErrorCode.ERR_NoTypeDef, "T4B").WithArguments("A", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(27, 29),
2997
Diagnostic(ErrorCode.ERR_NoTypeDef, "U4B").WithArguments("IA", "d521fe98-c881-45cf-0788-249e00d004ea, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(27, 34));
3030
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "a").WithArguments("A2<T>", "B2", "T", "object").
WithLocation
(4, 30),
3033
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "a").WithArguments("A2<T>", "I", "T", "object").
WithLocation
(4, 30),
3036
Diagnostic(ErrorCode.ERR_NoTypeDef, "a").WithArguments("B2", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 30),
3039
Diagnostic(ErrorCode.ERR_NoTypeDef, "a").WithArguments("I", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 30),
3042
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "a").WithArguments("A1<T>", "B1", "T", "object").
WithLocation
(3, 30),
3045
Diagnostic(ErrorCode.ERR_CircularConstraint, "a").WithArguments("T", "T").
WithLocation
(3, 30),
3048
Diagnostic(ErrorCode.ERR_NoTypeDef, "a").WithArguments("B1", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(3, 30),
3051
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<object>").WithArguments("A3.M<T>()", "B3", "T", "object").
WithLocation
(7, 12),
3054
Diagnostic(ErrorCode.ERR_CircularConstraint, "M<object>").WithArguments("T", "T").
WithLocation
(7, 12),
3057
Diagnostic(ErrorCode.ERR_NoTypeDef, "M<object>").WithArguments("B3", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 12));
3082
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(1, 17),
3084
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(5, 26));
3099
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "a").WithArguments("A2<T>", "B2", "T", "object").
WithLocation
(4, 30),
3102
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "a").WithArguments("A2<T>", "I", "T", "object").
WithLocation
(4, 30),
3105
Diagnostic(ErrorCode.ERR_NoTypeDef, "a").WithArguments("B2", "d521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 30),
3108
Diagnostic(ErrorCode.ERR_NoTypeDef, "a").WithArguments("I", "d521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 30),
3111
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "a").WithArguments("A1<T>", "B1", "T", "object").
WithLocation
(3, 30),
3114
Diagnostic(ErrorCode.ERR_NoTypeDef, "a").WithArguments("B1", "d521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(3, 30),
3117
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<object>").WithArguments("A3.M<T>()", "B3", "T", "object").
WithLocation
(7, 12),
3120
Diagnostic(ErrorCode.ERR_NoTypeDef, "M<object>").WithArguments("B3", "d521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 12));
3147
Diagnostic(ErrorCode.ERR_NoTypeDef, "o").WithArguments("B", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(3, 30),
3150
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "o").WithArguments("A0<T>", "B", "T", "object").
WithLocation
(3, 30),
3153
Diagnostic(ErrorCode.ERR_NoTypeDef, "o").WithArguments("B", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 32),
3156
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "o").WithArguments("A<T>", "I<B>", "T", "I<object>").
WithLocation
(4, 32),
3159
Diagnostic(ErrorCode.ERR_NoTypeDef, "o").WithArguments("B", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(5, 36),
3162
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "o").WithArguments("AIn<T>", "IIn<B>", "T", "IIn<object>").
WithLocation
(5, 36),
3165
Diagnostic(ErrorCode.ERR_NoTypeDef, "o").WithArguments("B", "other, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 38),
3168
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "o").WithArguments("AOut<T>", "IOut<B>", "T", "IOut<object>").
WithLocation
(6, 38));
3195
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(4, 23),
3197
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(5, 24),
3199
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(6, 28),
3201
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(7, 30),
3203
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "o").WithArguments("A0<T>", "B", "T", "object").
WithLocation
(10, 30),
3205
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "o").WithArguments("A<T>", "I<B>", "T", "I<object>").
WithLocation
(11, 32),
3207
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "o").WithArguments("AIn<T>", "IIn<B>", "T", "IIn<object>").
WithLocation
(12, 36),
3209
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "o").WithArguments("AOut<T>", "IOut<B>", "T", "IOut<object>").
WithLocation
(13, 38));
3259
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "M").WithArguments("void C.M<T, U>(T t, U u)", "void C.M<X, Y>(X x, Y y)").
WithLocation
(7, 18),
3262
Diagnostic(ErrorCode.ERR_NameNotInContext, "t").WithArguments("t").
WithLocation
(13, 9),
3265
Diagnostic(ErrorCode.ERR_NameNotInContext, "u").WithArguments("u").
WithLocation
(14, 9),
3268
Diagnostic(ErrorCode.ERR_PartialMethodOnlyOneLatent, "M").
WithLocation
(16, 18),
3271
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "C").
WithLocation
(16, 18));
3301
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "I").WithArguments("T", "B.M<T>()", "T", "I.M<T>()").
WithLocation
(13, 15),
3304
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("T", "C2.M<T>()", "T", "I.M<T>()").
WithLocation
(18, 21));
3347
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "I").WithArguments("T", "B.M<T>()", "T", "I.M<T>()").
WithLocation
(1, 15));
3396
Diagnostic(ErrorCode.ERR_BogusType, "T").WithArguments("").
WithLocation
(3, 14),
3399
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "C2").WithArguments("IT<T>", "?", "T", "A").
WithLocation
(5, 7),
3402
Diagnostic(ErrorCode.ERR_BogusType, "C2").WithArguments("").
WithLocation
(5, 7),
3405
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "C").WithArguments("IT<T>", "?", "T", "T").
WithLocation
(8, 7),
3408
Diagnostic(ErrorCode.ERR_BogusType, "C").WithArguments("").
WithLocation
(8, 7),
3411
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("T", "C3.M<T>()", "T", "I.M<T>()").
WithLocation
(14, 25));
3461
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "C").WithArguments("I<T>", "?", "T", "A").
WithLocation
(5, 7),
3464
Diagnostic(ErrorCode.ERR_BogusType, "C").WithArguments("").
WithLocation
(5, 7),
3467
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "I<A>").WithArguments("I<T>", "?", "T", "A").
WithLocation
(7, 10),
3470
Diagnostic(ErrorCode.ERR_BogusType, "I<A>").WithArguments("").
WithLocation
(7, 10),
3473
Diagnostic(ErrorCode.ERR_BogusType, "T").WithArguments("").
WithLocation
(7, 17),
3476
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<A>").WithArguments("A.M<T>()", "?", "T", "A").
WithLocation
(13, 17),
3479
Diagnostic(ErrorCode.ERR_BogusType, "M<A>").WithArguments("").
WithLocation
(13, 17),
3482
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "A").WithArguments("I<T>", "?", "T", "A").
WithLocation
(15, 13),
3485
Diagnostic(ErrorCode.ERR_BogusType, "A").WithArguments("").
WithLocation
(15, 13),
3488
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<A>").WithArguments("I<A>.M<U>()", "?", "U", "A").
WithLocation
(15, 25),
3491
Diagnostic(ErrorCode.ERR_BogusType, "M<A>").WithArguments("").
WithLocation
(15, 25));
3693
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "IC1").WithArguments("IA1_1<T>", "T", "I").
WithLocation
(1, 11),
3696
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "IC1").WithArguments("IA1_2<T>", "I", "T", "A").
WithLocation
(1, 11),
3699
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "IC1").WithArguments("IA1_3<T, U>", "A", "U", "object").
WithLocation
(1, 11),
3702
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "IC2").WithArguments("IA2_1<T>", "T", "T").
WithLocation
(2, 11),
3705
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "IC2").WithArguments("IA2_2<T>", "I", "T", "U").
WithLocation
(2, 11),
3708
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "IC2").WithArguments("IA2_3<T, U>", "U", "U", "V").
WithLocation
(2, 11),
3711
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "IC3_1").WithArguments("IA3_1<T>", "T", "object").
WithLocation
(3, 11),
3714
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "C2").WithArguments("IA2_1<T>", "T", "I").
WithLocation
(4, 7),
3717
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "C2").WithArguments("IA2_2<T>", "I", "T", "A").
WithLocation
(4, 7),
3720
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "C2").WithArguments("IA2_3<T, U>", "A", "U", "object").
WithLocation
(4, 7),
3723
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "C3").WithArguments("IA3_1<T>", "T", "object").
WithLocation
(5, 7));
4364
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "V").WithArguments("V", "double", "int").
WithLocation
(19, 28),
4366
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "U").WithArguments("U", "string", "System.ValueType").
WithLocation
(20, 23),
4368
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "U").WithArguments("U", "System.ValueType", "struct").
WithLocation
(20, 23),
4370
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "U").WithArguments("U", "int", "class").
WithLocation
(21, 20));
4423
Diagnostic(ErrorCode.ERR_NoConversionForDefaultParam, "x").WithArguments("int", "S").
WithLocation
(7, 33));
4450
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "T").WithArguments("A<T>", "T", "int").
WithLocation
(9, 10),
4452
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "T").WithArguments("B1.B2<T, U>", "U", "A<T>").
WithLocation
(10, 10),
4454
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "U").WithArguments("A<T>", "T", "int").
WithLocation
(11, 13),
4456
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "T").WithArguments("A<T>", "T", "int").
WithLocation
(14, 13),
4458
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "T").WithArguments("B1.B2<T, U>", "U", "A<T>").
WithLocation
(15, 13),
4460
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "U").WithArguments("A<T>", "T", "int").
WithLocation
(16, 16));
5064
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(int[])x").WithArguments("object[]", "int[]").
WithLocation
(5, 16),
5066
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(U[])x").WithArguments("T[]", "U[]").
WithLocation
(13, 16),
5068
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(U[])x").WithArguments("T[]", "U[]").
WithLocation
(17, 16),
5070
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(object[])x").WithArguments("int[]", "object[]").
WithLocation
(24, 16),
5072
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(T[])x").WithArguments("U[]", "T[]").
WithLocation
(32, 16),
5074
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(T[])x").WithArguments("U[]", "T[]").
WithLocation
(36, 16));
5187
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "object").WithArguments("A<T, U>", "I<object>", "U", "object").
WithLocation
(11, 26),
5190
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<string>").WithArguments("B<I<object>>.M<U>()", "I<object>", "U", "string").
WithLocation
(12, 22),
5193
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<string>").WithArguments("B<I<object>>.M<U>()", "I<string>", "U", "string").
WithLocation
(12, 22),
5196
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<object, object>").WithArguments("C.M<T1, T2>()", "I<object>", "T2", "object").
WithLocation
(13, 9));
5663
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 21),
5666
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(12, 22),
5669
Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "Goo").WithArguments("B.Goo<T>()", "A.Goo<T>()", "T").
WithLocation
(12, 24),
5672
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "Goo").WithArguments("System.Nullable<T>", "T", "T").
WithLocation
(12, 24),
5675
Diagnostic(ErrorCode.ERR_TypeVarCantBeNull, "null").WithArguments("T").
WithLocation
(6, 16));
5744
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Object").
WithLocation
(1, 7),
5747
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.Object").
WithLocation
(2, 7),
5750
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "B").WithArguments("object", "0").
WithLocation
(2, 7),
5753
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "A").WithArguments("object", "0").
WithLocation
(1, 7));
5772
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "A").WithArguments("System.Object").
WithLocation
(2, 16),
5775
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "S").WithArguments("System.ValueType").
WithLocation
(1, 8),
5778
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "void").WithArguments("System.Void").
WithLocation
(4, 23),
5781
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "void").WithArguments("System.Void").
WithLocation
(8, 23),
5784
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "A").WithArguments("object", "0").
WithLocation
(2, 16),
5787
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "B").WithArguments("System.Void").
WithLocation
(6, 7));
5839
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "F").
WithLocation
(6, 14),
5842
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "G").
WithLocation
(10, 14));
5879
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "X").WithArguments("X").
WithLocation
(3, 46));
5951
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "M0<U>").WithArguments("A<int, object>.M0<U>()", "int", "U", "U").
WithLocation
(23, 14),
5954
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "M1<U>").WithArguments("A<int, object>.M1<U>()", "int", "U", "U").
WithLocation
(24, 14));
5982
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M1<V, U>").WithArguments("A<object[]>.M1<U, V>()", "V", "V", "U").
WithLocation
(12, 14));
6065
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "C5").WithArguments("C<T>", "T", "C5").
WithLocation
(24, 19),
6067
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "C6").WithArguments("C<T>", "T", "C6").
WithLocation
(25, 15));
6089
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("A.F").
WithLocation
(3, 10),
6091
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("B.F").
WithLocation
(7, 10));
6119
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "E").WithArguments("D<T>", "T", "B").
WithLocation
(3, 16),
6121
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "E").WithArguments("D<T>", "T", "C").
WithLocation
(13, 16),
6151
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "B").WithArguments("D<T>", "T", "B").
WithLocation
(3, 32));
6175
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "C").WithArguments("I<T>", "T", "C").
WithLocation
(6, 7),
6177
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "I<C>").WithArguments("I<T>", "T", "C").
WithLocation
(9, 16));
6239
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "B2").WithArguments("IB<T>", "T", "B2").
WithLocation
(24, 7),
6241
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "A2").WithArguments("IA<T>", "T", "A2").
WithLocation
(14, 7),
6243
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "A1").WithArguments("IA<T>", "T", "A1").
WithLocation
(9, 7),
6245
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "B1").WithArguments("IB<T>", "T", "B1").
WithLocation
(19, 7),
6247
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "IB<B1>").WithArguments("IB<T>", "T", "B1").
WithLocation
(22, 12),
6249
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "i").WithArguments("IB<T>", "T", "B1").
WithLocation
(22, 31),
6251
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "IA<A1>").WithArguments("IA<T>", "T", "A1").
WithLocation
(12, 12),
6253
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "P").WithArguments("IA<T>", "T", "A1").
WithLocation
(12, 19),
6255
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "P").WithArguments("IA<T>", "T", "A2").
WithLocation
(17, 19),
6257
Diagnostic(ErrorCode.ERR_NewConstraintNotSatisfied, "i").WithArguments("IB<T>", "T", "B2").
WithLocation
(27, 31));
6275
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "B<>").
WithLocation
(5, 19));
6422
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 6),
6425
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "eNullableArr").WithArguments("S.eNullableArr", "null").
WithLocation
(4, 10));
6450
Diagnostic(ErrorCode.ERR_NoTypeDef, "C<D>").WithArguments("A", "e521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 11),
6459
Diagnostic(ErrorCode.ERR_NoTypeDef, "D").WithArguments("IA", "e521fe98-c881-45cf-8870-249e00ae400d, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 7));
6483
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "C<int>.E*").
WithLocation
(4, 30),
6486
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "E*").
WithLocation
(9, 37));
6506
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "C<U>.E*").
WithLocation
(4, 33),
6509
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "C<V>.E*").
WithLocation
(9, 40));
6687
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "E1").WithArguments("X", "E1").
WithLocation
(18, 11));
6939
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Class2").WithArguments("Class2").
WithLocation
(12, 27),
6942
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Class2").WithArguments("Class2").
WithLocation
(18, 28),
6945
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Class2").WithArguments("Class2").
WithLocation
(30, 36)
6974
Diagnostic(ErrorCode.ERR_BadTypeArgument, "R2").WithArguments("int*").
WithLocation
(6, 7)
6981
Diagnostic(ErrorCode.ERR_BadTypeArgument, "R2").WithArguments("int*").
WithLocation
(6, 7),
6984
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(6, 15));
7012
Diagnostic(ErrorCode.ERR_BadTypeArgument, "R2").WithArguments("int*").
WithLocation
(6, 14));
7018
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "R2").
WithLocation
(6, 14),
7021
Diagnostic(ErrorCode.ERR_BadTypeArgument, "R2").WithArguments("int*").
WithLocation
(6, 14));
7048
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetService<>").
WithLocation
(12, 9),
7051
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetService<>").
WithLocation
(13, 9),
7054
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetService<>").
WithLocation
(14, 9)
7082
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetService<>").
WithLocation
(12, 9),
7085
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "GetService<>").WithArguments("I.GetService()", "method").
WithLocation
(12, 18),
7088
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetService<>").
WithLocation
(13, 9),
7091
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "GetService<>").WithArguments("I.GetService()", "method").
WithLocation
(13, 18),
7094
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetService<>").
WithLocation
(14, 9),
7097
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "GetService<>").WithArguments("I.GetService()", "method").
WithLocation
(14, 18)
7144
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetService<>").
WithLocation
(20, 9),
7147
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "GetService<>").WithArguments("I.GetService()", "method").
WithLocation
(20, 18),
7150
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetService<>").
WithLocation
(21, 9),
7153
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "GetService<>").WithArguments("I.GetService()", "method").
WithLocation
(21, 18),
7156
Diagnostic(ErrorCode.ERR_BadArity, "provider.GetService<>").WithArguments("GetService", "method group", "1").
WithLocation
(26, 9),
7159
Diagnostic(ErrorCode.ERR_BadArity, "provider.GetService<>").WithArguments("GetService", "method group", "1").
WithLocation
(27, 9),
7162
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetService<>").
WithLocation
(32, 9),
7165
Diagnostic(ErrorCode.ERR_BadArity, "GetService<>").WithArguments("K.GetService<T1, T2>()", "method", "2").
WithLocation
(32, 18),
7168
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetService<>").
WithLocation
(33, 9),
7171
Diagnostic(ErrorCode.ERR_BadArity, "GetService<>").WithArguments("K.GetService<T1, T2>()", "method", "2").
WithLocation
(33, 18)
7203
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetServiceA<>").
WithLocation
(11, 9),
7206
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "GetServiceA<>").WithArguments("I", "GetServiceA").
WithLocation
(11, 18),
7209
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetServiceA<>").
WithLocation
(12, 9),
7212
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "GetServiceA<>").WithArguments("I", "GetServiceA").
WithLocation
(12, 18),
7215
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetServiceB<>").
WithLocation
(14, 9),
7218
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetServiceB<>").
WithLocation
(15, 9),
7221
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetServiceC<>").
WithLocation
(17, 9),
7224
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "GetServiceC<>").WithArguments("I", "GetServiceC").
WithLocation
(17, 18),
7227
Diagnostic(ErrorCode.ERR_OmittedTypeArgument, "provider.GetServiceC<>").
WithLocation
(18, 9),
7230
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "GetServiceC<>").WithArguments("I", "GetServiceC").
WithLocation
(18, 18)
7258
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "GetServiceA<>").WithArguments("Program.GetServiceA()", "method").
WithLocation
(9, 9),
7261
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "GetServiceA<>").WithArguments("Program.GetServiceA()", "method").
WithLocation
(10, 9),
7264
Diagnostic(ErrorCode.ERR_BadArity, "GetServiceB<>").WithArguments("GetServiceB", "method group", "1").
WithLocation
(11, 9),
7267
Diagnostic(ErrorCode.ERR_BadArity, "GetServiceB<>").WithArguments("GetServiceB", "method group", "1").
WithLocation
(12, 9),
7270
Diagnostic(ErrorCode.ERR_BadArity, "GetServiceC<>").WithArguments("Program.GetServiceC<T1, T2>()", "method", "2").
WithLocation
(13, 9),
7273
Diagnostic(ErrorCode.ERR_BadArity, "GetServiceC<>").WithArguments("Program.GetServiceC<T1, T2>()", "method", "2").
WithLocation
(14, 9)
7304
DiagnosticDescription expectedDiagnostic = Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "assembly1", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "mscorlib").
WithLocation
(1, 1);
7372
Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("remapped, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "intermediate", "remapped, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", "remapped").
WithLocation
(1, 1)
Symbols\IndexedPropertyTests.cs (36)
591
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "b[y]").WithArguments("IB.this[ref int]", "IB.get_P(ref int)", "IB.set_P(ref int, int)").
WithLocation
(7, 9),
593
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "b[x]").WithArguments("IB.this[ref int]", "IB.get_P(ref int)", "IB.set_P(ref int, int)").
WithLocation
(7, 16),
595
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "b[ref y]").WithArguments("IB.this[ref int]", "IB.get_P(ref int)", "IB.set_P(ref int, int)").
WithLocation
(8, 9),
597
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "b[ref x]").WithArguments("IB.this[ref int]", "IB.get_P(ref int)", "IB.set_P(ref int, int)").
WithLocation
(8, 20));
864
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("A", "P").
WithLocation
(6, 11),
866
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("A", "P").
WithLocation
(6, 20),
868
Diagnostic(ErrorCode.ERR_BadArgCount, "a[7, 8]").WithArguments("this", "2").
WithLocation
(8, 9),
870
Diagnostic(ErrorCode.ERR_BadArgCount, "a[5, 6]").WithArguments("this", "2").
WithLocation
(8, 19),
872
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "set_P").WithArguments("A.this[int].set").
WithLocation
(9, 11),
874
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "get_P").WithArguments("A.this[int].get").
WithLocation
(9, 23));
1149
Diagnostic(ErrorCode.ERR_BadIndexLHS, "a.P[1]").WithArguments("object").
WithLocation
(14, 13),
1151
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "R").WithArguments("A", "R").
WithLocation
(16, 15));
1225
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P").WithArguments("A.P[int]", "A.get_P(int)", "A.set_P(int, object)").
WithLocation
(6, 13),
1227
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P").WithArguments("A.P[int]", "A.get_P(int)", "A.set_P(int, object)").
WithLocation
(7, 9),
1229
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P").WithArguments("A.P[int]", "A.get_P(int)", "A.set_P(int, object)").
WithLocation
(8, 18),
1231
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P").WithArguments("A.P[int]", "A.get_P(int)", "A.set_P(int, object)").
WithLocation
(9, 11));
1268
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P").WithArguments("IA.P[object]", "IA.get_P(object)", "IA.set_P(object, object)").
WithLocation
(5, 11),
1270
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "Q").WithArguments("IA.Q[object]", "IA.get_Q(object)", "IA.set_Q(object, object)").
WithLocation
(5, 23));
1332
Diagnostic(ErrorCode.ERR_NoImplicitConv, "c.D[0]").WithArguments("int[]", "int").
WithLocation
(17, 13),
1334
Diagnostic(ErrorCode.ERR_BadArgCount, "c.A[0, 1]").WithArguments("A", "2").
WithLocation
(19, 13));
1554
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "b.Q[0]").WithArguments("y", "B.Q[object, object]").
WithLocation
(5, 17));
1759
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("A2", "P").
WithLocation
(6, 11),
1761
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("A2", "P").
WithLocation
(6, 20),
1763
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("B2", "P").
WithLocation
(8, 11),
1765
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P").WithArguments("B2", "P").
WithLocation
(8, 20));
1876
Diagnostic(ErrorCode.WRN_NewRequired, "get_P").WithArguments("B2.get_P(int)", "A1.get_P(int)").
WithLocation
(13, 21),
1878
Diagnostic(ErrorCode.WRN_NewRequired, "set_P").WithArguments("B2.set_P(int, object)", "A1.set_P(int, object)").
WithLocation
(14, 19),
1880
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P").WithArguments("A1.P[int]", "A1.get_P(int)", "A1.set_P(int, object)").
WithLocation
(25, 12),
1882
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P").WithArguments("A1.P[int]", "A1.get_P(int)", "A1.set_P(int, object)").
WithLocation
(25, 22));
1911
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "a.P[null]").WithArguments("IA.P[object]").
WithLocation
(5, 9),
1913
Diagnostic(ErrorCode.ERR_PropertyLacksGet, "a.Q[null]").WithArguments("IA.Q[object]").
WithLocation
(6, 21));
2060
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "P1").WithArguments("A.P1[int, int]").
WithLocation
(6, 23),
2062
Diagnostic(ErrorCode.ERR_ValueTypePropertyInObjectInitializer, "P2").WithArguments("A.P2[int]", "S").
WithLocation
(7, 23),
2064
Diagnostic(ErrorCode.ERR_BadAccess, "P3").WithArguments("A.P3[int]").
WithLocation
(8, 23));
2113
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P").WithArguments("A1.P[int]", "A1.get_P(int)", "A1.set_P(int, int)").
WithLocation
(1, 5));
2191
Diagnostic(ErrorCode.ERR_AmbigMember, "P").WithArguments("IA.P", "IB.P[object]").
WithLocation
(5, 18));
Symbols\IndexerTests.cs (30)
240
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "this[0]").WithArguments("y", "C.this[int, int]").
WithLocation
(9, 16),
242
Diagnostic(ErrorCode.ERR_BadArgType, "c").WithArguments("2", "C", "int").
WithLocation
(10, 18),
244
Diagnostic(ErrorCode.ERR_BadArgCount, "c[1, 2, 3]").WithArguments("this", "3").
WithLocation
(11, 13));
848
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "c[0]").WithArguments("y", "C.this[int, long]").
WithLocation
(7, 9),
851
Diagnostic(ErrorCode.ERR_BadArgCount, "c[0, 0, 0]").WithArguments("this", "3").
WithLocation
(7, 16),
854
Diagnostic(ErrorCode.ERR_BadArgType, "true").WithArguments("1", "bool", "int").
WithLocation
(8, 11),
857
Diagnostic(ErrorCode.ERR_BadArgType, "long.MaxValue").WithArguments("2", "long", "int").
WithLocation
(8, 33),
860
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "x").WithArguments("x").
WithLocation
(9, 14),
863
Diagnostic(ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgument, "2").WithArguments("7.2").
WithLocation
(9, 30),
866
Diagnostic(ErrorCode.ERR_BadNamedArgument, "q").WithArguments("this", "q").
WithLocation
(10, 14),
869
Diagnostic(ErrorCode.ERR_BadIndexLHS, "base[0]").WithArguments("object").
WithLocation
(10, 28)
1059
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(4, 23),
1061
Diagnostic(ErrorCode.ERR_BadSKunknown, "C").WithArguments("C", "type").
WithLocation
(8, 17));
1790
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "A.Constant2").
WithLocation
(18, 18),
1793
Diagnostic(ErrorCode.ERR_CircConstValue, "Constant2").WithArguments("A.Constant2").
WithLocation
(7, 18),
1796
Diagnostic(ErrorCode.ERR_InconsistentIndexerNames, "this").
WithLocation
(19, 9),
1799
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Constant1").WithArguments("default interface implementation", "8.0").
WithLocation
(12, 18),
1802
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Constant2").WithArguments("default interface implementation", "8.0").
WithLocation
(13, 18),
1805
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Constant1").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 18),
1808
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Constant2").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 18)
1905
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "B<byte>.Constant2").
WithLocation
(9, 18),
1908
Diagnostic(ErrorCode.ERR_CircConstValue, "Constant2").WithArguments("A<T>.Constant2").
WithLocation
(7, 18),
1911
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Constant1").WithArguments("default interface implementation", "8.0").
WithLocation
(15, 18),
1914
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Constant2").WithArguments("default interface implementation", "8.0").
WithLocation
(16, 18),
1917
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Constant1").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 18),
1920
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "Constant2").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 18)
1960
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(18, 18),
1963
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(24, 18));
2928
Diagnostic(ErrorCode.ERR_ConstValueRequired, "F").
WithLocation
(4, 18),
2931
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "F").
WithLocation
(5, 18));
Symbols\InterfaceImplementationTests.cs (3)
2485
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "null").
WithLocation
(7, 15),
2488
Diagnostic(ErrorCode.WRN_TopLevelNullabilityMismatchInParameterTypeOnImplicitImplementation, "GetHashCode").WithArguments("obj", "int StringComparer.GetHashCode(string obj)", "int IEqualityComparer<string?>.GetHashCode(string? obj)").
WithLocation
(10, 16),
2491
Diagnostic(ErrorCode.WRN_ThrowPossibleNull, "null").
WithLocation
(12, 15)
Symbols\InterfaceOverriddenOrHiddenMembersTests.cs (18)
844
Diagnostic(ErrorCode.WRN_NewRequired, "M").WithArguments("B.M(in int)", "A.M(in int)").
WithLocation
(8, 10));
873
Diagnostic(ErrorCode.WRN_NewRequired, "M").WithArguments("B.M()", "A.M()").
WithLocation
(8, 22));
902
Diagnostic(ErrorCode.WRN_NewRequired, "M").WithArguments("B.M()", "A.M()").
WithLocation
(8, 22));
931
Diagnostic(ErrorCode.WRN_NewRequired, "M").WithArguments("B.M()", "A.M()").
WithLocation
(8, 13));
960
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("B.Property", "A.Property").
WithLocation
(8, 22));
989
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("B.Property", "A.Property").
WithLocation
(8, 13));
1018
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("B.Property", "A.Property").
WithLocation
(8, 22));
1178
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "A").WithArguments("B", "A.M(in int)").
WithLocation
(6, 11));
1223
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "BaseInterface").WithArguments("ChildClass", "BaseInterface.Method2(in int)").
WithLocation
(7, 20),
1226
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "BaseInterface").WithArguments("ChildClass", "BaseInterface.Method1(ref int)").
WithLocation
(7, 20));
1249
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "BaseInterface").WithArguments("ChildClass", "BaseInterface.Method2()", "ChildClass.Method2()").
WithLocation
(7, 20),
1252
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "BaseInterface").WithArguments("ChildClass", "BaseInterface.Method1()", "ChildClass.Method1()").
WithLocation
(7, 20));
1275
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "A").WithArguments("B", "A.Property2", "B.Property2").
WithLocation
(7, 11),
1278
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "A").WithArguments("B", "A.Property1", "B.Property1").
WithLocation
(7, 11));
1299
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "A").WithArguments("B", "A.this[int]", "B.this[int]").
WithLocation
(6, 11));
1320
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongRefReturn, "A").WithArguments("B", "A.this[int]", "B.this[int]").
WithLocation
(6, 11));
1357
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "A").WithArguments("B", "A.this[in int]").
WithLocation
(6, 11));
1377
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "A").WithArguments("B", "A.this[int]").
WithLocation
(6, 11));
Symbols\LocalFunctionTests.cs (29)
120
Diagnostic(ErrorCode.ERR_NameNotInContext, "partial").WithArguments("partial").
WithLocation
(5, 9),
123
Diagnostic(ErrorCode.ERR_SemicolonExpected, "static").
WithLocation
(5, 17),
126
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(5, 29));
143
Diagnostic(ErrorCode.ERR_BadMemberFlag, "static").WithArguments("static").
WithLocation
(5, 9),
146
Diagnostic(ErrorCode.ERR_TypeExpected, "partial").
WithLocation
(5, 16),
149
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "partial").WithArguments("partial").
WithLocation
(5, 16),
152
Diagnostic(ErrorCode.ERR_SemicolonExpected, "partial").
WithLocation
(5, 16),
155
Diagnostic(ErrorCode.ERR_RbraceExpected, "partial").
WithLocation
(5, 16),
158
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "local").WithArguments("C.local()").
WithLocation
(5, 29),
161
Diagnostic(ErrorCode.ERR_PartialMethodOnlyInPartialClass, "local").
WithLocation
(5, 29),
164
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(7, 1));
181
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 6),
184
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "local").WithArguments("C.local()").
WithLocation
(5, 22),
187
Diagnostic(ErrorCode.ERR_PartialMethodOnlyInPartialClass, "local").
WithLocation
(5, 22),
190
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(7, 1));
230
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "c").WithArguments("c").
WithLocation
(9, 14),
233
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureVariable, "c").WithArguments("c").
WithLocation
(10, 31),
236
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "c").WithArguments("c").
WithLocation
(17, 18),
239
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureVariable, "c").WithArguments("c").
WithLocation
(18, 35));
310
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "this").
WithLocation
(12, 22),
313
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "this").
WithLocation
(13, 39),
316
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "base").
WithLocation
(14, 22),
319
Diagnostic(ErrorCode.ERR_NoSuchMember, "MyExtension").WithArguments("Base", "MyExtension").
WithLocation
(14, 27),
322
Diagnostic(ErrorCode.ERR_StaticLocalFunctionCannotCaptureThis, "base").
WithLocation
(15, 39),
325
Diagnostic(ErrorCode.ERR_NoSuchMember, "MyExtension").WithArguments("Base", "MyExtension").
WithLocation
(15, 44));
360
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureThis, "this").
WithLocation
(14, 26),
363
Diagnostic(ErrorCode.ERR_StaticAnonymousFunctionCannotCaptureThis, "this").
WithLocation
(15, 43));
398
Diagnostic(ErrorCode.ERR_NoSuchMember, "MyExtension").WithArguments("Base", "MyExtension").
WithLocation
(14, 31),
401
Diagnostic(ErrorCode.ERR_NoSuchMember, "MyExtension").WithArguments("Base", "MyExtension").
WithLocation
(15, 48));
Symbols\Metadata\MetadataMemberTests.cs (2)
684
Diagnostic(ErrorCode.ERR_BadCompilationOptionValue).WithArguments("MetadataImportOptions", "255").
WithLocation
(1, 1)
766
Diagnostic(ErrorCode.ERR_BadCompilationOptionValue).WithArguments("MetadataImportOptions", "255").
WithLocation
(1, 1)
Symbols\Metadata\PE\LoadInAttributeModifier.cs (40)
50
Diagnostic(ErrorCode.ERR_BindToBogus, "d(0)").WithArguments("D.Invoke(in int)").
WithLocation
(4, 20));
95
Diagnostic(ErrorCode.ERR_BindToBogus, "d(0)").WithArguments("D.Invoke(in int)").
WithLocation
(4, 20));
129
Diagnostic(ErrorCode.ERR_BindToBogus, "d()").WithArguments("D.Invoke()").
WithLocation
(4, 36));
163
Diagnostic(ErrorCode.ERR_BindToBogus, "d()").WithArguments("D.Invoke()").
WithLocation
(4, 36));
205
Diagnostic(ErrorCode.ERR_BindToBogus, "X").WithArguments("RefTest.X").
WithLocation
(4, 55));
247
Diagnostic(ErrorCode.ERR_BindToBogus, "X").WithArguments("RefTest.X").
WithLocation
(4, 55));
282
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("RefTest.M(in int)").
WithLocation
(4, 38));
317
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("RefTest.M(in int)").
WithLocation
(4, 38));
458
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("Parent.M(in int)").
WithLocation
(7, 40));
611
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("Parent.M(in int)").
WithLocation
(7, 40));
655
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("RefTest.M(in int)").
WithLocation
(4, 38));
687
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("RefTest.M(in int)").
WithLocation
(4, 38));
736
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[0]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 9),
739
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[1]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 18));
781
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[1]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 17));
823
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[0]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 9));
872
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[0]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 9),
875
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[1]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 18));
917
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[1]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 17));
959
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[0]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 9));
1016
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[0]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 9),
1019
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[1]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 18));
1065
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[1]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 17));
1111
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[0]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 9));
1168
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[0]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 9),
1171
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[1]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 18));
1217
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[1]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 17));
1263
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[0]").WithArguments("RefTest.this[in int]").
WithLocation
(6, 9));
1533
Diagnostic(ErrorCode.ERR_BindToBogus, "parent[0]").WithArguments("Parent.this[in int]").
WithLocation
(7, 9),
1536
Diagnostic(ErrorCode.ERR_BindToBogus, "parent[1]").WithArguments("Parent.this[in int]").
WithLocation
(7, 21));
1760
Diagnostic(ErrorCode.ERR_BindToBogus, "parent[1]").WithArguments("Parent.this[in int]").
WithLocation
(7, 17));
1962
Diagnostic(ErrorCode.ERR_BindToBogus, "parent[0]").WithArguments("Parent.this[in int]").
WithLocation
(7, 9));
2244
Diagnostic(ErrorCode.ERR_BindToBogus, "parent[0]").WithArguments("Parent.this[in int]").
WithLocation
(7, 9),
2247
Diagnostic(ErrorCode.ERR_BindToBogus, "parent[1]").WithArguments("Parent.this[in int]").
WithLocation
(7, 21));
2471
Diagnostic(ErrorCode.ERR_BindToBogus, "parent[1]").WithArguments("Parent.this[in int]").
WithLocation
(7, 17));
2673
Diagnostic(ErrorCode.ERR_BindToBogus, "parent[0]").WithArguments("Parent.this[in int]").
WithLocation
(7, 9));
2732
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[0]").WithArguments("RefTest.this[int]").
WithLocation
(6, 34));
2779
Diagnostic(ErrorCode.ERR_BindToBogus, "obj[0]").WithArguments("RefTest.this[int]").
WithLocation
(6, 34));
2818
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("RefTest.M()").
WithLocation
(6, 38));
2857
Diagnostic(ErrorCode.ERR_BindToBogus, "M").WithArguments("RefTest.M()").
WithLocation
(6, 38));
Symbols\Metadata\PE\LoadingMethods.cs (3)
1378
Diagnostic(ErrorCode.ERR_BadAccess, "M").WithArguments("C.M()").
WithLocation
(6, 15),
1381
Diagnostic(ErrorCode.ERR_BadAccess, "F").WithArguments("C.F").
WithLocation
(7, 40),
1384
Diagnostic(ErrorCode.ERR_BadAccess, "C2").WithArguments("C.C2").
WithLocation
(8, 13)
Symbols\Metadata\PE\TypeForwarders.cs (11)
805
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFoundFwd, "Outer").WithArguments("Outer", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(5, 5),
808
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Generic").WithArguments("Generic").
WithLocation
(8, 5),
811
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFoundFwd, "Generic<int>").WithArguments("Generic<>", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(9, 5),
814
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Generic<int, int>").WithArguments("Generic<,>").
WithLocation
(10, 5),
817
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFoundFwd, "Outer").WithArguments("Outer", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 5),
820
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFoundFwd, "Outer").WithArguments("Outer", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(6, 5),
823
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("Test.F").
WithLocation
(6, 25)
1952
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNSFwd, "MyClass").WithArguments("MyClass", "MyNamespace", "BImpl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 36));
1959
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "MyNamespace").WithArguments("MyNamespace", "B").
WithLocation
(8, 24));
2016
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNSFwd, "MyClass<int>").WithArguments("MyClass<>", "MyNamespace", "BImpl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 36));
2023
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "MyNamespace").WithArguments("MyNamespace", "B").
WithLocation
(8, 24));
Symbols\MissingSpecialMember.cs (82)
47
}").WithArguments("System.Collections.Generic.IEnumerable`1", "GetEnumerator").
WithLocation
(10, 5)
79
}").WithArguments("System.IDisposable", "Dispose").
WithLocation
(10, 5)
131
Diagnostic(ErrorCode.ERR_ExtensionAttrNotFound, "this").WithArguments("System.Runtime.CompilerServices.ExtensionAttribute").
WithLocation
(9, 34)
489
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1)
515
Diagnostic(ErrorCode.WRN_NoRuntimeMetadataVersion).
WithLocation
(1, 1)
1076
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "(IntPtr)0").WithArguments("System.IntPtr", "op_Explicit").
WithLocation
(8, 10)
1107
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "MyEvent += async delegate { await Task.Delay(0); }").WithArguments("System.Delegate", "Combine").
WithLocation
(13, 12)
1145
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "5").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(20, 19),
1148
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "qa + b").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(22, 19)
1186
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "qa + b").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(22, 19),
1189
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "qa + b").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(22, 19)
1227
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "qa + b").WithArguments("System.Nullable`1", "get_HasValue").
WithLocation
(22, 19),
1230
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "qa + b").WithArguments("System.Nullable`1", "get_HasValue").
WithLocation
(22, 19)
1267
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "(C)i").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(10, 19)
1292
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "b").WithArguments("System.Nullable`1", "get_Value").
WithLocation
(9, 28)
1322
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "(IntPtr?)M_int()").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(8, 27),
1325
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "42").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(9, 42),
1328
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "(IntPtr?)M_int(42)").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(9, 27),
1331
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "(IntPtr?)M_long()").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(10, 27),
1334
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "300").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(11, 43),
1337
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "(IntPtr?)M_long(300)").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(11, 27)
1370
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "(int?)1").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(9, 21)
1454
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "Test.Generic<decimal?>()").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(55, 9),
1457
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "Test.NullableDecimal()").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(58, 9)
1493
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "a").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(11, 21),
1496
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "a").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(11, 21)
1533
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "a").WithArguments("System.Nullable`1", "get_HasValue").
WithLocation
(11, 21)
1574
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "s").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(23, 19)
1599
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""X = "" + x").WithArguments("System.String", "Concat").
WithLocation
(9, 51)
1627
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x.str + '+' + y.str").WithArguments("System.String", "Concat").
WithLocation
(8, 58)
1655
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '+' + y.str").WithArguments("System.String", "Concat").
WithLocation
(8, 58)
1697
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '+' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(8, 58),
1700
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '-' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(9, 58),
1703
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '%' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(10, 58),
1706
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '/' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(11, 58),
1709
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '*' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(12, 58),
1712
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '&' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(13, 58),
1715
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '|' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(14, 58),
1718
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '^' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(15, 58),
1721
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '<' + '<' + y.ToString() + ')'").WithArguments("System.String", "Concat").
WithLocation
(16, 61),
1724
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '>' + '>' + y.ToString() + ')'").WithArguments("System.String", "Concat").
WithLocation
(17, 61),
1727
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '>' + '=' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(18, 59),
1730
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '<' + '=' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(19, 59),
1733
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '>' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(20, 58),
1736
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "'(' + x.str + '<' + y.str + ')'").WithArguments("System.String", "Concat").
WithLocation
(21, 58)
1762
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "+sq").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(9, 17)
1788
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "s").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(8, 17),
1791
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "+sq").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(9, 17)
1818
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "c++").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(11, 5)
1839
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "a * a").WithArguments("System.Decimal", "op_Multiply").
WithLocation
(7, 65)
1874
}").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(13, 9)
1903
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x++").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(10, 11)
1932
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "10").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(8, 18),
1935
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x++").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(10, 11),
1938
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x++").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(10, 11)
1975
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "n++").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(18, 11)
2012
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "new S(1)").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(15, 12),
2015
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "n++").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(18, 11)
2043
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "bt").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(11, 21),
2046
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "true").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(13, 14)
2074
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "bnt & bnt").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(13, 15),
2077
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "bnt & bnt").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(13, 15)
2109
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "sz1.str == sz2.str").WithArguments("System.String", "op_Equality").
WithLocation
(8, 61)
2142
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "previous?.Key").WithArguments("System.Nullable`1", "get_HasValue").
WithLocation
(17, 31)
2173
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "x is bool").WithArguments("bool").
WithLocation
(16, 38),
2176
Diagnostic(ErrorCode.WRN_IsAlwaysTrue, "x is bool is bool").WithArguments("bool").
WithLocation
(16, 38),
2179
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "int y").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(12, 19),
2182
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "int y").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(15, 19)
2235
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""hmm""").WithArguments("System.String", "op_Equality").
WithLocation
(13, 18),
2238
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"""baz""").WithArguments("System.String", "op_Equality").
WithLocation
(33, 18)
2292
}").WithArguments("System.String", "get_Chars").
WithLocation
(8, 9)
2331
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(9, 13),
2334
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "1").WithArguments("System.Nullable`1", "GetValueOrDefault").
WithLocation
(14, 12)
2383
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"c + ""3""").WithArguments("System.Object", "ToString").
WithLocation
(9, 27)
2410
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x + y").WithArguments("System.String", "Concat").
WithLocation
(10, 71)
2441
}").WithArguments("System.Array", "GetLowerBound").
WithLocation
(11, 9)
2472
}").WithArguments("System.Array", "GetUpperBound").
WithLocation
(11, 9)
2503
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x ?? y").WithArguments("System.Decimal", "op_Implicit").
WithLocation
(16, 78)
2525
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x").WithArguments("System.Decimal", "op_Implicit").
WithLocation
(7, 21)
2547
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x").WithArguments("System.Decimal", "op_Implicit").
WithLocation
(7, 22)
2571
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "x").WithArguments("System.Decimal", "op_Implicit").
WithLocation
(9, 60)
2596
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "LogCallerLineNumber5()").WithArguments("System.Nullable`1", ".ctor").
WithLocation
(10, 9)
Symbols\ModuleInitializers\AccessibilityTests.cs (13)
40
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, "ModuleInitializer").WithArguments("M").
WithLocation
(6, 6)
123
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, "ModuleInitializer").WithArguments("M").
WithLocation
(8, 10)
163
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, "ModuleInitializer").WithArguments("M1").
WithLocation
(7, 6),
166
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, "ModuleInitializer").WithArguments("M2").
WithLocation
(10, 6),
169
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, "ModuleInitializer").WithArguments("M3").
WithLocation
(15, 6),
172
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, "ModuleInitializer").WithArguments("M4").
WithLocation
(18, 6),
175
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "ModuleInitializer").WithArguments("ModuleInitializer").
WithLocation
(20, 6)
219
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, "ModuleInitializer").WithArguments("M1").
WithLocation
(7, 6),
222
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, "ModuleInitializer").WithArguments("M2").
WithLocation
(10, 6),
225
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, "ModuleInitializer").WithArguments("M3").
WithLocation
(15, 6),
228
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, "ModuleInitializer").WithArguments("M4").
WithLocation
(18, 6),
231
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, "ModuleInitializer").WithArguments("M4").
WithLocation
(20, 6)
287
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "ModuleInitializer").WithArguments("ModuleInitializer").
WithLocation
(9, 6)
Symbols\ModuleInitializers\GenericsTests.cs (4)
36
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodAndContainingTypesMustNotBeGeneric, "ModuleInitializer").WithArguments("M").
WithLocation
(6, 6)
58
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodAndContainingTypesMustNotBeGeneric, "ModuleInitializer").WithArguments("M").
WithLocation
(6, 6)
80
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodAndContainingTypesMustNotBeGeneric, "ModuleInitializer").WithArguments("M").
WithLocation
(6, 6)
105
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodAndContainingTypesMustNotBeGeneric, "ModuleInitializer").WithArguments("M").
WithLocation
(8, 10)
Symbols\ModuleInitializers\ModuleInitializersTests.cs (1)
44
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "ModuleInitializer").WithArguments("module initializers", "9.0").
WithLocation
(5, 6)
Symbols\ModuleInitializers\SignatureTests.cs (11)
37
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid, "ModuleInitializer").WithArguments("M").
WithLocation
(6, 6)
60
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid, "ModuleInitializer").WithArguments("M1").
WithLocation
(6, 6),
63
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid, "ModuleInitializer").WithArguments("M2").
WithLocation
(9, 6)
85
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid, "ModuleInitializer").WithArguments("M").
WithLocation
(6, 6)
107
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid, "ModuleInitializer").WithArguments("M").
WithLocation
(6, 6)
129
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid, "ModuleInitializer").WithArguments("M").
WithLocation
(6, 6)
151
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid, "ModuleInitializer").WithArguments("M").
WithLocation
(6, 6)
199
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid, "ModuleInitializer").WithArguments("M").
WithLocation
(7, 6),
202
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(8, 32));
221
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid, "ModuleInitializer").WithArguments("M").
WithLocation
(6, 6)
241
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid, "ModuleInitializer").WithArguments("M").
WithLocation
(6, 6)
Symbols\ModuleInitializers\TargetsTests.cs (24)
40
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(9, 10)
71
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "class").
WithLocation
(10, 10)
93
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(6, 6)
120
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "class").
WithLocation
(7, 6)
142
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(6, 6)
169
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "class").
WithLocation
(7, 6)
191
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(6, 6)
218
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "class").
WithLocation
(7, 6)
245
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(8, 10),
248
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(10, 10)
280
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "class").
WithLocation
(9, 10),
283
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "class").
WithLocation
(11, 10)
310
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(8, 10),
313
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(10, 10)
345
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "class").
WithLocation
(9, 10),
348
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "class").
WithLocation
(11, 10)
375
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(8, 10),
378
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(10, 10)
410
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "class").
WithLocation
(9, 10),
413
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "class").
WithLocation
(11, 10)
435
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(6, 6)
462
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "method").
WithLocation
(7, 6)
484
Diagnostic(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, "ModuleInitializer").
WithLocation
(6, 6)
511
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ModuleInitializer").WithArguments("ModuleInitializer", "method").
WithLocation
(7, 6)
Symbols\OverriddenOrHiddenMembersTests.cs (32)
1189
Diagnostic(ErrorCode.ERR_CantOverrideSealed, "Sub01").WithArguments("CSClass.Sub01(Metadata.B, Metadata.A)", "Metadata.VBClass02.Sub01(Metadata.B, Metadata.A)").
WithLocation
(7, 26), // CS0239
1190
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "Sub01").WithArguments("CSClass.Sub01(Metadata.B, Metadata.B)").
WithLocation
(11, 29), // CS0115
1191
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "Sub01").WithArguments("CSClass.Sub01(params Metadata.B[])").
WithLocation
(15, 28) // CS0115
2000
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I1").WithArguments("B2", "I1.Goo", "B2.Goo").
WithLocation
(10, 16));
2029
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "I1").WithArguments("B2", "I1.Goo", "B2.Goo").
WithLocation
(10, 16));
2068
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "I").WithArguments("B2", "I.M<T>()", "A.M<T>()").
WithLocation
(5, 15),
2071
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "I").WithArguments("B3", "I.M<T>()", "B3.M<T>()").
WithLocation
(8, 12));
2096
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("B2", "I1.Goo", "B2.Goo", "int").
WithLocation
(10, 16));
2519
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "E").WithArguments("D.E", "C.E", "System.Func<int>").
WithLocation
(19, 41),
2522
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("D.E").
WithLocation
(19, 41),
2525
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B.E").
WithLocation
(9, 41),
2528
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(14, 47));
3758
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Required").WithArguments("Required", "Validator<object>.DoValidate(object)").
WithLocation
(46, 14)
3976
Diagnostic(ErrorCode.WRN_NewRequired, "M").WithArguments("B.M(in int)", "A.M(in int)").
WithLocation
(8, 17));
4006
Diagnostic(ErrorCode.WRN_NewRequired, "M").WithArguments("B.M()", "A.M()").
WithLocation
(9, 29));
4036
Diagnostic(ErrorCode.WRN_NewRequired, "M").WithArguments("B.M()", "A.M()").
WithLocation
(9, 29));
4066
Diagnostic(ErrorCode.WRN_NewRequired, "M").WithArguments("B.M()", "A.M()").
WithLocation
(9, 20));
4096
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("B.Property", "A.Property").
WithLocation
(9, 29));
4126
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("B.Property", "A.Property").
WithLocation
(9, 20));
4156
Diagnostic(ErrorCode.WRN_NewRequired, "Property").WithArguments("B.Property", "A.Property").
WithLocation
(9, 29));
4424
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "Method2").WithArguments("ChildClass.Method2(ref int)").
WithLocation
(10, 26),
4427
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "Method1").WithArguments("ChildClass.Method1(in int)").
WithLocation
(9, 26));
4450
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Method2").WithArguments("ChildClass.Method2()", "BaseClass.Method2()").
WithLocation
(11, 29),
4453
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Method1").WithArguments("ChildClass.Method1()", "BaseClass.Method1()").
WithLocation
(10, 38));
4476
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Property2").WithArguments("B.Property2", "A.Property2").
WithLocation
(11, 29),
4479
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "Property1").WithArguments("B.Property1", "A.Property1").
WithLocation
(10, 38));
4500
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "this").WithArguments("B.this[int]", "A.this[int]").
WithLocation
(9, 38));
4521
Diagnostic(ErrorCode.ERR_CantChangeRefReturnOnOverride, "this").WithArguments("B.this[int]", "A.this[int]").
WithLocation
(9, 29));
4558
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "this").WithArguments("B.this[int]").
WithLocation
(8, 25),
4561
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.this[in int].get").
WithLocation
(6, 7));
4581
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "this").WithArguments("B.this[in int]").
WithLocation
(8, 25),
4584
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.this[int].get").
WithLocation
(6, 7));
Symbols\PEParameterSymbolTests.cs (3)
53
Diagnostic(ErrorCode.ERR_NamedArgumentUsedInPositional, "value").WithArguments("value").
WithLocation
(5, 16));
96
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "Test").WithArguments("x", "Class1.Test(out object, ref object, int)").
WithLocation
(6, 16),
99
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "M1").WithArguments("x1", "I1.M1(out object)").
WithLocation
(9, 12)
Symbols\RelaxedShiftOperatorTests.cs (6)
97
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, op).
WithLocation
(12, 31)
141
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, op).
WithLocation
(12, 31)
185
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, op).
WithLocation
(12, 31)
229
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, op).
WithLocation
(12, 31)
273
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, op).
WithLocation
(12, 31)
317
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, op).
WithLocation
(12, 31)
Symbols\RequiredMembersTests.cs (336)
156
Diagnostic(ErrorCode.ERR_BadMemberFlag, "C1").WithArguments("required").
WithLocation
(2, 16),
159
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M").WithArguments("required").
WithLocation
(4, 19),
162
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "required").WithArguments("required").
WithLocation
(4, 21),
165
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(4, 30),
168
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(4, 30),
171
Diagnostic(ErrorCode.ERR_BadMemberFlag, "C1").WithArguments("required").
WithLocation
(8, 14),
174
Diagnostic(ErrorCode.ERR_BadMemberFlag, "C1").WithArguments("required").
WithLocation
(9, 15),
177
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("required").
WithLocation
(11, 18),
180
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("required").
WithLocation
(13, 26),
183
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("required").
WithLocation
(14, 26),
186
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S").WithArguments("required").
WithLocation
(16, 17),
189
Diagnostic(ErrorCode.ERR_BadMemberFlag, "D").WithArguments("required").
WithLocation
(17, 24),
192
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I1").WithArguments("required").
WithLocation
(18, 20),
195
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Prop3").WithArguments("required").
WithLocation
(20, 18),
198
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "Field").
WithLocation
(21, 18),
201
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field").WithArguments("I1.Field", "0").
WithLocation
(21, 18),
204
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Prop4").WithArguments("required").
WithLocation
(29, 21)
224
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F1").WithArguments("required").
WithLocation
(4, 24),
227
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F2").WithArguments("required").
WithLocation
(5, 25),
230
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "F2").WithArguments("C.F2").
WithLocation
(5, 25),
233
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("required").
WithLocation
(6, 25),
236
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F3").WithArguments("required").
WithLocation
(7, 24)
256
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Field").WithArguments("required members", "11.0").
WithLocation
(5, 27),
259
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Prop").WithArguments("required members", "11.0").
WithLocation
(6, 27)
280
Diagnostic(ErrorCode.ERR_DuplicateModifier, "required").WithArguments("required").
WithLocation
(4, 23),
283
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field").WithArguments("C.Field", "0").
WithLocation
(4, 36),
286
Diagnostic(ErrorCode.ERR_DuplicateModifier, "required").WithArguments("required").
WithLocation
(5, 23)
339
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "required").WithArguments("required").
WithLocation
(4, 12),
342
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "required").WithArguments("required").
WithLocation
(8, 11),
345
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "required").WithArguments("required").
WithLocation
(12, 15),
348
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "required").WithArguments("required").
WithLocation
(16, 19),
351
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "required").WithArguments("required").
WithLocation
(20, 12),
354
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "required").WithArguments("required").
WithLocation
(24, 19),
357
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "required").WithArguments("required").
WithLocation
(30, 15),
360
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "required").WithArguments("required").
WithLocation
(35, 11)
366
Diagnostic(ErrorCode.ERR_RequiredNameDisallowed, "required").
WithLocation
(4, 12),
369
Diagnostic(ErrorCode.ERR_RequiredNameDisallowed, "required").
WithLocation
(8, 11),
372
Diagnostic(ErrorCode.ERR_RequiredNameDisallowed, "required").
WithLocation
(12, 15),
375
Diagnostic(ErrorCode.ERR_RequiredNameDisallowed, "required").
WithLocation
(16, 19),
378
Diagnostic(ErrorCode.ERR_RequiredNameDisallowed, "required").
WithLocation
(20, 12),
381
Diagnostic(ErrorCode.ERR_RequiredNameDisallowed, "required").
WithLocation
(24, 19),
384
Diagnostic(ErrorCode.ERR_RequiredNameDisallowed, "required").
WithLocation
(30, 15),
387
Diagnostic(ErrorCode.ERR_RequiredNameDisallowed, "required").
WithLocation
(35, 11)
409
var expected = Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "C").WithArguments("System.Runtime.CompilerServices.RequiredMemberAttribute", ".ctor").
WithLocation
(2, 7);
428
var expected = Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "C").WithArguments("System.Runtime.CompilerServices.RequiredMemberAttribute", ".ctor").
WithLocation
(2, 7);
446
var expected = Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "C").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute", ".ctor").
WithLocation
(2, 7);
466
var expected = Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "C").WithArguments("System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute", ".ctor").
WithLocation
(2, 7);
495
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field").WithArguments("C.Field", "0").
WithLocation
(5, 25)
521
Diagnostic(ErrorCode.ERR_OverrideMustHaveRequired, "Prop").WithArguments("Derived.Prop", "Base.Prop").
WithLocation
(8, 25)
531
Diagnostic(ErrorCode.ERR_OverrideMustHaveRequired, "Prop").WithArguments("Derived.Prop", "Base.Prop").
WithLocation
(4, 25)
563
Diagnostic(ErrorCode.ERR_OverrideMustHaveRequired, "Prop").WithArguments("DerivedDerived.Prop", "Derived.Prop").
WithLocation
(12, 25)
577
Diagnostic(ErrorCode.ERR_OverrideMustHaveRequired, "Prop").WithArguments("DerivedDerived.Prop", "Derived.Prop").
WithLocation
(4, 25)
708
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field").WithArguments("Outer.Inner.Field", "0").
WithLocation
(7, 29)
794
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Field").WithArguments("Base.Field", "Derived1.Field").
WithLocation
(10, 20),
797
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Prop").WithArguments("Base.Prop", "Derived1.Prop").
WithLocation
(11, 20),
800
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Prop").WithArguments("Base.Prop", "Derived2.Prop").
WithLocation
(15, 20),
803
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Field").WithArguments("Base.Field", "Derived2.Field").
WithLocation
(16, 20),
806
Diagnostic(ErrorCode.WRN_NewRequired, "Field").WithArguments("Derived3.Field", "Base.Field").
WithLocation
(20, 16),
809
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Field").WithArguments("Base.Field", "Derived3.Field").
WithLocation
(20, 16),
812
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Prop").WithArguments("Base.Prop", "Derived3.Prop").
WithLocation
(21, 16)
822
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Field").WithArguments("Base.Field", "Derived1.Field").
WithLocation
(4, 20),
825
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Prop").WithArguments("Base.Prop", "Derived1.Prop").
WithLocation
(5, 20),
828
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Prop").WithArguments("Base.Prop", "Derived2.Prop").
WithLocation
(9, 20),
831
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Field").WithArguments("Base.Field", "Derived2.Field").
WithLocation
(10, 20),
834
Diagnostic(ErrorCode.WRN_NewRequired, "Field").WithArguments("Derived3.Field", "Base.Field").
WithLocation
(14, 16),
837
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Field").WithArguments("Base.Field", "Derived3.Field").
WithLocation
(14, 16),
840
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeHidden, "Prop").WithArguments("Base.Prop", "Derived3.Prop").
WithLocation
(15, 16)
966
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "InternalProtectedProperty").WithArguments("PublicClass.InternalProtectedProperty", "PublicClass").
WithLocation
(7, 37),
969
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "InternalProperty").WithArguments("PublicClass.InternalProperty", "PublicClass").
WithLocation
(8, 27),
972
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedProperty").WithArguments("PublicClass.ProtectedProperty", "PublicClass").
WithLocation
(9, 28),
975
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedProperty").WithArguments("PublicClass.PrivateProtectedProperty", "PublicClass").
WithLocation
(10, 36),
978
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProperty").WithArguments("PublicClass.PrivateProperty", "PublicClass").
WithLocation
(11, 26),
981
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "InternalProtectedField").WithArguments("PublicClass.InternalProtectedField", "PublicClass").
WithLocation
(13, 37),
984
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "InternalField").WithArguments("PublicClass.InternalField", "PublicClass").
WithLocation
(14, 27),
987
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedField").WithArguments("PublicClass.ProtectedField", "PublicClass").
WithLocation
(15, 28),
990
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedField").WithArguments("PublicClass.PrivateProtectedField", "PublicClass").
WithLocation
(16, 36),
993
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateField").WithArguments("PublicClass.PrivateField", "PublicClass").
WithLocation
(17, 26),
996
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedProperty").WithArguments("InternalClass.ProtectedProperty", "InternalClass").
WithLocation
(24, 28),
999
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedProperty").WithArguments("InternalClass.PrivateProtectedProperty", "InternalClass").
WithLocation
(25, 36),
1002
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProperty").WithArguments("InternalClass.PrivateProperty", "InternalClass").
WithLocation
(26, 26),
1005
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedField").WithArguments("InternalClass.ProtectedField", "InternalClass").
WithLocation
(30, 28),
1008
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedField").WithArguments("InternalClass.PrivateProtectedField", "InternalClass").
WithLocation
(31, 36),
1011
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateField").WithArguments("InternalClass.PrivateField", "InternalClass").
WithLocation
(32, 26),
1014
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedProperty").WithArguments("Outer.ProtectedInternalClass.ProtectedProperty", "Outer.ProtectedInternalClass").
WithLocation
(41, 32),
1017
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedProperty").WithArguments("Outer.ProtectedInternalClass.PrivateProtectedProperty", "Outer.ProtectedInternalClass").
WithLocation
(42, 40),
1020
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProperty").WithArguments("Outer.ProtectedInternalClass.PrivateProperty", "Outer.ProtectedInternalClass").
WithLocation
(43, 30),
1023
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedField").WithArguments("Outer.ProtectedInternalClass.ProtectedField", "Outer.ProtectedInternalClass").
WithLocation
(47, 32),
1026
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedField").WithArguments("Outer.ProtectedInternalClass.PrivateProtectedField", "Outer.ProtectedInternalClass").
WithLocation
(48, 40),
1029
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateField").WithArguments("Outer.ProtectedInternalClass.PrivateField", "Outer.ProtectedInternalClass").
WithLocation
(49, 30),
1032
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedProperty").WithArguments("Outer.ProtectedClass.ProtectedProperty", "Outer.ProtectedClass").
WithLocation
(56, 32),
1035
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedProperty").WithArguments("Outer.ProtectedClass.PrivateProtectedProperty", "Outer.ProtectedClass").
WithLocation
(57, 40),
1038
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProperty").WithArguments("Outer.ProtectedClass.PrivateProperty", "Outer.ProtectedClass").
WithLocation
(58, 30),
1041
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedField").WithArguments("Outer.ProtectedClass.ProtectedField", "Outer.ProtectedClass").
WithLocation
(62, 32),
1044
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedField").WithArguments("Outer.ProtectedClass.PrivateProtectedField", "Outer.ProtectedClass").
WithLocation
(63, 40),
1047
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateField").WithArguments("Outer.ProtectedClass.PrivateField", "Outer.ProtectedClass").
WithLocation
(64, 30),
1050
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedProperty").WithArguments("Outer.PrivateProtectedClass.ProtectedProperty", "Outer.PrivateProtectedClass").
WithLocation
(71, 32),
1053
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedProperty").WithArguments("Outer.PrivateProtectedClass.PrivateProtectedProperty", "Outer.PrivateProtectedClass").
WithLocation
(72, 40),
1056
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProperty").WithArguments("Outer.PrivateProtectedClass.PrivateProperty", "Outer.PrivateProtectedClass").
WithLocation
(73, 30),
1059
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedField").WithArguments("Outer.PrivateProtectedClass.ProtectedField", "Outer.PrivateProtectedClass").
WithLocation
(77, 32),
1062
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedField").WithArguments("Outer.PrivateProtectedClass.PrivateProtectedField", "Outer.PrivateProtectedClass").
WithLocation
(78, 40),
1065
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateField").WithArguments("Outer.PrivateProtectedClass.PrivateField", "Outer.PrivateProtectedClass").
WithLocation
(79, 30),
1068
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedProperty").WithArguments("Outer.PrivateClass.ProtectedProperty", "Outer.PrivateClass").
WithLocation
(86, 32),
1071
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedProperty").WithArguments("Outer.PrivateClass.PrivateProtectedProperty", "Outer.PrivateClass").
WithLocation
(87, 40),
1074
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProperty").WithArguments("Outer.PrivateClass.PrivateProperty", "Outer.PrivateClass").
WithLocation
(88, 30),
1077
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedField").WithArguments("Outer.PrivateClass.ProtectedField", "Outer.PrivateClass").
WithLocation
(92, 32),
1080
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedField").WithArguments("Outer.PrivateClass.PrivateProtectedField", "Outer.PrivateClass").
WithLocation
(93, 40),
1083
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateField").WithArguments("Outer.PrivateClass.PrivateField", "Outer.PrivateClass").
WithLocation
(94, 30),
1086
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "InternalProtectedProperty").WithArguments("Outer2.ProtectedInternalClass2.InternalProtectedProperty", "Outer2.ProtectedInternalClass2").
WithLocation
(102, 41),
1089
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "InternalProperty").WithArguments("Outer2.ProtectedInternalClass2.InternalProperty", "Outer2.ProtectedInternalClass2").
WithLocation
(103, 31),
1092
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedProperty").WithArguments("Outer2.ProtectedInternalClass2.ProtectedProperty", "Outer2.ProtectedInternalClass2").
WithLocation
(104, 32),
1095
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedProperty").WithArguments("Outer2.ProtectedInternalClass2.PrivateProtectedProperty", "Outer2.ProtectedInternalClass2").
WithLocation
(105, 40),
1098
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProperty").WithArguments("Outer2.ProtectedInternalClass2.PrivateProperty", "Outer2.ProtectedInternalClass2").
WithLocation
(106, 30),
1101
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "InternalProtectedField").WithArguments("Outer2.ProtectedInternalClass2.InternalProtectedField", "Outer2.ProtectedInternalClass2").
WithLocation
(108, 41),
1104
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "InternalField").WithArguments("Outer2.ProtectedInternalClass2.InternalField", "Outer2.ProtectedInternalClass2").
WithLocation
(109, 31),
1107
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "ProtectedField").WithArguments("Outer2.ProtectedInternalClass2.ProtectedField", "Outer2.ProtectedInternalClass2").
WithLocation
(110, 32),
1110
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtectedField").WithArguments("Outer2.ProtectedInternalClass2.PrivateProtectedField", "Outer2.ProtectedInternalClass2").
WithLocation
(111, 40),
1113
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateField").WithArguments("Outer2.ProtectedInternalClass2.PrivateField", "Outer2.ProtectedInternalClass2").
WithLocation
(112, 30)
1188
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "InternalProtected").WithArguments("PublicClass.InternalProtected", "PublicClass").
WithLocation
(4, 25),
1191
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Internal").WithArguments("PublicClass.Internal", "PublicClass").
WithLocation
(5, 25),
1194
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Protected").WithArguments("PublicClass.Protected", "PublicClass").
WithLocation
(6, 25),
1197
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtected").WithArguments("PublicClass.PrivateProtected", "PublicClass").
WithLocation
(7, 25),
1200
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Private").WithArguments("PublicClass.Private", "PublicClass").
WithLocation
(8, 25),
1203
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Protected").WithArguments("InternalClass.Protected", "InternalClass").
WithLocation
(14, 25),
1206
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtected").WithArguments("InternalClass.PrivateProtected", "InternalClass").
WithLocation
(15, 25),
1209
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Private").WithArguments("InternalClass.Private", "InternalClass").
WithLocation
(16, 25),
1212
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Protected").WithArguments("Outer.InternalProtectedClass.Protected", "Outer.InternalProtectedClass").
WithLocation
(24, 29),
1215
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtected").WithArguments("Outer.InternalProtectedClass.PrivateProtected", "Outer.InternalProtectedClass").
WithLocation
(25, 29),
1218
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Private").WithArguments("Outer.InternalProtectedClass.Private", "Outer.InternalProtectedClass").
WithLocation
(26, 29),
1221
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Protected").WithArguments("Outer.ProtectedClass.Protected", "Outer.ProtectedClass").
WithLocation
(32, 29),
1224
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtected").WithArguments("Outer.ProtectedClass.PrivateProtected", "Outer.ProtectedClass").
WithLocation
(33, 29),
1227
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Private").WithArguments("Outer.ProtectedClass.Private", "Outer.ProtectedClass").
WithLocation
(34, 29),
1230
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Protected").WithArguments("Outer.PrivateProtectedClass.Protected", "Outer.PrivateProtectedClass").
WithLocation
(40, 29),
1233
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtected").WithArguments("Outer.PrivateProtectedClass.PrivateProtected", "Outer.PrivateProtectedClass").
WithLocation
(41, 29),
1236
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Private").WithArguments("Outer.PrivateProtectedClass.Private", "Outer.PrivateProtectedClass").
WithLocation
(42, 29),
1239
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Protected").WithArguments("Outer.PrivateClass.Protected", "Outer.PrivateClass").
WithLocation
(48, 29),
1242
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtected").WithArguments("Outer.PrivateClass.PrivateProtected", "Outer.PrivateClass").
WithLocation
(49, 29),
1245
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Private").WithArguments("Outer.PrivateClass.Private", "Outer.PrivateClass").
WithLocation
(50, 29),
1248
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "InternalProtected").WithArguments("Outer2.InternalProtectedClass2.InternalProtected", "Outer2.InternalProtectedClass2").
WithLocation
(57, 29),
1251
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Internal").WithArguments("Outer2.InternalProtectedClass2.Internal", "Outer2.InternalProtectedClass2").
WithLocation
(58, 29),
1254
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Protected").WithArguments("Outer2.InternalProtectedClass2.Protected", "Outer2.InternalProtectedClass2").
WithLocation
(59, 29),
1257
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "PrivateProtected").WithArguments("Outer2.InternalProtectedClass2.PrivateProtected", "Outer2.InternalProtectedClass2").
WithLocation
(60, 29),
1260
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Private").WithArguments("Outer2.InternalProtectedClass2.Private", "Outer2.InternalProtectedClass2").
WithLocation
(61, 29)
1283
Diagnostic(ErrorCode.ERR_ExplicitRequiredMember, "RequiredMember").
WithLocation
(3, 2),
1286
Diagnostic(ErrorCode.ERR_ExplicitRequiredMember, "RequiredMember").
WithLocation
(6, 6),
1289
Diagnostic(ErrorCode.ERR_ExplicitRequiredMember, "RequiredMember").
WithLocation
(8, 6),
1292
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Field").WithArguments("C.Field", "0").
WithLocation
(9, 16)
1333
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(9, 18)
1366
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSettable, "Prop1").WithArguments("C.Prop1").
WithLocation
(5, 29),
1369
Diagnostic(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired, "Prop1").
WithLocation
(5, 29),
1372
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSettable, "Prop2").WithArguments("C.Prop2").
WithLocation
(6, 38),
1375
Diagnostic(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired, "Prop2").
WithLocation
(6, 38)
1429
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSettable, "Field").WithArguments("C.Field").
WithLocation
(4, 34),
1432
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSettable, "Prop1").WithArguments("C.Prop1").
WithLocation
(5, 25),
1435
Diagnostic(ErrorCode.ERR_RequiredMemberCannotBeLessVisibleThanContainingType, "Prop2").WithArguments("C.Prop2", "C").
WithLocation
(6, 25)
1457
Diagnostic(ErrorCode.WRN_ObsoleteMembersShouldNotBeRequired, "Field").WithArguments("C.Field").
WithLocation
(6, 25),
1460
Diagnostic(ErrorCode.WRN_ObsoleteMembersShouldNotBeRequired, "Prop1").WithArguments("C.Prop1").
WithLocation
(8, 25)
1482
Diagnostic(ErrorCode.WRN_ObsoleteMembersShouldNotBeRequired, "Field").WithArguments("S.Field").
WithLocation
(6, 25),
1485
Diagnostic(ErrorCode.WRN_ObsoleteMembersShouldNotBeRequired, "Prop1").WithArguments("S.Prop1").
WithLocation
(8, 25)
1560
Diagnostic(ErrorCode.WRN_ObsoleteMembersShouldNotBeRequired, "Field").WithArguments("C.Field").
WithLocation
(14, 25),
1563
Diagnostic(ErrorCode.WRN_ObsoleteMembersShouldNotBeRequired, "Prop1").WithArguments("C.Prop1").
WithLocation
(16, 25)
1607
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "C").WithArguments("C.Prop").
WithLocation
(1, 11),
1610
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "C").WithArguments("C.Field").
WithLocation
(1, 11)
1615
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("C.Prop").
WithLocation
(1, 7),
1618
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("C.Field").
WithLocation
(1, 7)
1677
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "C").WithArguments("C.Prop1").
WithLocation
(1, 11),
1680
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "C").WithArguments("C.Field1").
WithLocation
(1, 11)
1685
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("C.Prop1").
WithLocation
(1, 7),
1688
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "new").WithArguments("C.Field1").
WithLocation
(1, 7)
1740
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "C").WithArguments("C.Prop1").
WithLocation
(2, 13),
1743
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "C").WithArguments("C.Field1").
WithLocation
(2, 13),
1746
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Prop1").WithArguments("C.Prop1").
WithLocation
(3, 15),
1749
Diagnostic(ErrorCode.ERR_AssgReadonly, "Field1").
WithLocation
(3, 26),
1752
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSettable, "Prop1").WithArguments("C.Prop1").
WithLocation
(7, 25),
1755
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSettable, "Field1").WithArguments("C.Field1").
WithLocation
(8, 34)
1785
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "C").WithArguments("C.Prop1").
WithLocation
(2, 13),
1788
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "C").WithArguments("C.Field1").
WithLocation
(2, 13),
1791
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Prop1").WithArguments("C.Prop1").
WithLocation
(3, 15),
1794
Diagnostic(ErrorCode.ERR_AssgReadonly, "Field1").
WithLocation
(3, 26)
1819
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Prop1").WithArguments("C.Prop1").
WithLocation
(4, 15),
1822
Diagnostic(ErrorCode.ERR_AssgReadonly, "Field1").
WithLocation
(4, 26),
1825
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSettable, "Prop1").WithArguments("C.Prop1").
WithLocation
(8, 25),
1828
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSettable, "Field1").WithArguments("C.Field1").
WithLocation
(9, 34)
1852
Diagnostic(ErrorCode.ERR_RequiredMembersMustBeAssignedValue, "{ NestedProp = 1 }").WithArguments("C.D1").
WithLocation
(2, 24),
1855
Diagnostic(ErrorCode.ERR_RequiredMembersMustBeAssignedValue, "{ NestedProp = 2 }").WithArguments("C.D2").
WithLocation
(2, 49)
1920
Diagnostic(ErrorCode.ERR_RequiredMembersMustBeAssignedValue, "{ 1, 2, 3 }").WithArguments("C.L1").
WithLocation
(3, 24),
1923
Diagnostic(ErrorCode.ERR_RequiredMembersMustBeAssignedValue, "{ 4, 5, 6 }").WithArguments("C.L2").
WithLocation
(3, 42)
1992
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Base.Prop1").
WithLocation
(2, 9),
1995
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Base.Field1").
WithLocation
(2, 9),
1998
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Derived.Prop2").
WithLocation
(2, 9),
2001
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Derived.Field2").
WithLocation
(2, 9)
2086
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Base.Prop2").
WithLocation
(2, 9),
2089
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Base.Field2").
WithLocation
(2, 9),
2092
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Derived.Prop4").
WithLocation
(2, 9),
2095
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Derived.Field4").
WithLocation
(2, 9)
2204
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Base.Field1").
WithLocation
(2, 9),
2207
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Base.Prop1").
WithLocation
(2, 9),
2210
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Derived.Prop2").
WithLocation
(2, 9),
2213
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Derived.Field2").
WithLocation
(2, 9)
2327
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Derived.Prop1").
WithLocation
(2, 9)
2401
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Derived.Prop1").
WithLocation
(2, 9)
2505
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Derived").WithArguments("Derived.Prop1").
WithLocation
(2, 9)
2548
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "Derived2").WithArguments("Derived").
WithLocation
(7, 12),
2551
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "Derived2").WithArguments("Derived").
WithLocation
(8, 12),
2554
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "Derived3").WithArguments("Derived").
WithLocation
(10, 7)
2631
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "Derived2").WithArguments("Derived").
WithLocation
(7, 12),
2634
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "Derived3").WithArguments("Derived").
WithLocation
(9, 7)
2672
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "Derived2").WithArguments("Derived").
WithLocation
(7, 12),
2675
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "Derived3").WithArguments("Derived").
WithLocation
(9, 7)
2897
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "DerivedDerived1").WithArguments("Derived").
WithLocation
(8, 12),
2900
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "DerivedDerived2").WithArguments("Derived").
WithLocation
(12, 8),
2903
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "DerivedDerived3").WithArguments("Derived").
WithLocation
(15, 8)
2986
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "DerivedDerived1").WithArguments("Derived").
WithLocation
(18, 12)
3027
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "DerivedDerived1").WithArguments("Derived").
WithLocation
(8, 12),
3030
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "DerivedDerived2").WithArguments("Derived").
WithLocation
(12, 8),
3033
Diagnostic(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, "DerivedDerived3").WithArguments("Derived").
WithLocation
(15, 8)
3109
Diagnostic(ErrorCode.ERR_RequiredMembersInvalid, "Derived").WithArguments("Derived").
WithLocation
(1, 9)
3150
Diagnostic(ErrorCode.ERR_RequiredMembersInvalid, "Derived").WithArguments("Derived").
WithLocation
(1, 9)
3190
Diagnostic(ErrorCode.ERR_RequiredMembersInvalid, "Derived").WithArguments("Derived").
WithLocation
(1, 9)
3211
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, @"$""""").WithArguments("CustomHandler.Field").
WithLocation
(2, 25)
3240
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "I").WithArguments("C.P").
WithLocation
(5, 9)
3269
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "I").WithArguments("C.P").
WithLocation
(5, 9)
3294
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "Attr").WithArguments("AttrAttribute.P").
WithLocation
(4, 2)
3437
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "RequiredMember").WithArguments("System.Runtime.CompilerServices.RequiredMemberAttribute.P").
WithLocation
(4, 2),
3440
Diagnostic(ErrorCode.ERR_ExplicitRequiredMember, "RequiredMember").
WithLocation
(4, 2)
3461
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSet, "RequiredMember").WithArguments("System.Runtime.CompilerServices.RequiredMemberAttribute.P").
WithLocation
(6, 6),
3464
Diagnostic(ErrorCode.ERR_ExplicitRequiredMember, "RequiredMember").
WithLocation
(6, 6)
3523
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "P2").WithArguments("property", "P2").
WithLocation
(8, 19),
3526
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "F2").WithArguments("field", "F2").
WithLocation
(9, 19)
3555
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P2").
WithLocation
(11, 12),
3558
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F2").
WithLocation
(11, 12),
3561
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "P2").
WithLocation
(15, 12),
3564
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "F2").
WithLocation
(15, 12)
3609
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("property", "P2").
WithLocation
(11, 12),
3612
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "S").WithArguments("field", "F2").
WithLocation
(11, 12)
3748
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "Property").
WithLocation
(9, 12),
3751
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "_field").
WithLocation
(9, 12)
3776
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "Property").
WithLocation
(9, 12),
3779
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("field", "_field").
WithLocation
(9, 12)
3803
Diagnostic(ErrorCode.ERR_RequiredMemberMustBeSettable, "Property").WithArguments("C.Property").
WithLocation
(6, 60)
3827
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "Prop3").
WithLocation
(8, 12)
3856
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "_field").
WithLocation
(11, 9),
3859
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Property").
WithLocation
(12, 9)
3888
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "_field").
WithLocation
(11, 9),
3891
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Property").
WithLocation
(12, 9)
3920
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Property1").
WithLocation
(11, 9),
3923
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Property2").
WithLocation
(12, 9)
3953
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Property1").
WithLocation
(12, 9),
3956
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Property2").
WithLocation
(13, 9)
3987
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "Property2").
WithLocation
(9, 12),
3990
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "Property1").
WithLocation
(9, 12)
4025
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "_field").
WithLocation
(6, 9),
4028
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Property").
WithLocation
(7, 9)
4070
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "_field").
WithLocation
(6, 9),
4073
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Property").
WithLocation
(7, 9)
4118
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Property").
WithLocation
(10, 9)
4159
Diagnostic(ErrorCode.WRN_UnreferencedField, "_field").WithArguments("Derived._field").
WithLocation
(4, 20),
4162
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "_field").
WithLocation
(5, 13)
4205
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Property").
WithLocation
(6, 12),
4208
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "_field").
WithLocation
(8, 9)
4243
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop").
WithLocation
(12, 9),
4246
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Field").
WithLocation
(13, 9)
4274
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop").
WithLocation
(12, 9),
4277
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Field").
WithLocation
(13, 9)
4301
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop").
WithLocation
(9, 9)
4336
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop1").
WithLocation
(14, 9),
4339
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Field1").
WithLocation
(16, 9)
4383
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop1").
WithLocation
(19, 9),
4386
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop3").
WithLocation
(21, 9),
4389
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Field1").
WithLocation
(23, 9),
4392
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Field3").
WithLocation
(25, 9)
4428
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop1").
WithLocation
(16, 9),
4431
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop3").
WithLocation
(18, 9),
4434
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop4").
WithLocation
(19, 9)
4470
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop1").
WithLocation
(18, 9),
4473
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop3").
WithLocation
(20, 9)
4511
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Base").WithArguments("property", "Prop1").
WithLocation
(9, 15),
4514
Diagnostic(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, "base").
WithLocation
(17, 24),
4517
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop3").
WithLocation
(21, 9),
4520
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Prop4").
WithLocation
(22, 9)
4575
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop3").
WithLocation
(10, 12),
4578
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop1").
WithLocation
(10, 12),
4581
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop3").
WithLocation
(16, 12),
4584
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop1").
WithLocation
(16, 12),
4587
Diagnostic(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, "this").
WithLocation
(21, 24)
4595
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop3").
WithLocation
(10, 12),
4598
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop1").
WithLocation
(10, 12),
4601
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop3").
WithLocation
(16, 12),
4604
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop1").
WithLocation
(16, 12),
4607
Diagnostic(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, "this").
WithLocation
(21, 24)
4657
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "Field3").
WithLocation
(17, 12),
4660
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "Field1").
WithLocation
(17, 12),
4663
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "Field3").
WithLocation
(23, 12),
4666
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("field", "Field1").
WithLocation
(23, 12),
4669
Diagnostic(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, "this").
WithLocation
(28, 24)
4721
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop2").
WithLocation
(10, 12),
4724
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop1").
WithLocation
(10, 12),
4727
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop2").
WithLocation
(15, 12),
4730
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop1").
WithLocation
(15, 12),
4733
Diagnostic(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, "this").
WithLocation
(19, 24)
4741
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop2").
WithLocation
(10, 12),
4744
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop1").
WithLocation
(10, 12),
4747
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop2").
WithLocation
(15, 12),
4750
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Derived").WithArguments("property", "Prop1").
WithLocation
(15, 12),
4753
Diagnostic(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, "this").
WithLocation
(19, 24)
5057
Diagnostic(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, "(unused)").
WithLocation
(2, 42)
5083
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "Prop1").WithArguments("Base.Prop1").
WithLocation
(10, 50),
5086
Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "Prop2").WithArguments("Base.Prop2").
WithLocation
(11, 41)
5112
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "Base").WithArguments("property", "Prop1").
WithLocation
(9, 15),
5115
Diagnostic(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, "Derived").
WithLocation
(12, 15)
5138
Diagnostic(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, "Derived").
WithLocation
(9, 7)
5164
Diagnostic(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, "Derived").
WithLocation
(11, 12)
5190
Diagnostic(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, "base").
WithLocation
(11, 24)
5241
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, "C").WithArguments("System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute", ".ctor").
WithLocation
(1, 15)
5309
Diagnostic(ErrorCode.ERR_NewConstraintCannotHaveRequiredMembers, "M<C>").WithArguments("M<T>()", "T", "C").
WithLocation
(1, 1)
5340
Diagnostic(ErrorCode.ERR_NewConstraintCannotHaveRequiredMembers, "M<Derived>").WithArguments("M<T>()", "T", "Derived").
WithLocation
(1, 1)
5350
Diagnostic(ErrorCode.ERR_NewConstraintCannotHaveRequiredMembers, "M<Derived>").WithArguments("M<T>()", "T", "Derived").
WithLocation
(1, 1)
5530
Diagnostic(ErrorCode.ERR_ScriptsAndSubmissionsCannotHaveRequiredMembers, "Field").
WithLocation
(1, 21),
5533
Diagnostic(ErrorCode.ERR_ScriptsAndSubmissionsCannotHaveRequiredMembers, "Prop").
WithLocation
(2, 21)
5549
Diagnostic(ErrorCode.ERR_ScriptsAndSubmissionsCannotHaveRequiredMembers, "Field").
WithLocation
(1, 21),
5552
Diagnostic(ErrorCode.ERR_ScriptsAndSubmissionsCannotHaveRequiredMembers, "Prop").
WithLocation
(2, 21)
5579
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(4, 25),
5582
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(5, 25),
5585
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(6, 25),
5588
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(7, 25),
5591
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(8, 25),
5594
Diagnostic(ErrorCode.ERR_NoSuchMember, "T").WithArguments("C", "T").
WithLocation
(12, 23)
5621
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(4, 25),
5624
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(5, 25),
5627
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(6, 25),
5630
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(7, 25),
5633
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(8, 25),
5636
Diagnostic(ErrorCode.ERR_NoSuchMember, "T").WithArguments("C", "T").
WithLocation
(12, 23)
5654
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(4, 25),
5657
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Test").WithArguments("C.Test", "0").
WithLocation
(4, 25)
5675
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Test").WithArguments("C.Test", "0").
WithLocation
(3, 25),
5678
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Test").WithArguments("C", "Test").
WithLocation
(4, 25)
Symbols\Retargeting\NoPia.cs (21)
1519
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "(int, int)").WithArguments("(T1, T2)").
WithLocation
(8, 12),
1522
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "ValueTuple<string, string>").WithArguments("(T1, T2)").
WithLocation
(4, 19),
1525
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "(1, 2)").WithArguments("(T1, T2)").
WithLocation
(14, 16),
1528
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "(x, y)").WithArguments("(T1, T2)").
WithLocation
(19, 31)
1580
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType).WithArguments("(T1, T2)").
WithLocation
(1, 1),
1582
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType).WithArguments("S<T>").
WithLocation
(1, 1)
1633
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType).WithArguments("(T1, T2)").
WithLocation
(1, 1),
1635
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType).WithArguments("S<T>").
WithLocation
(1, 1)
1677
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType).WithArguments("S<T>").
WithLocation
(1, 1)
1730
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType).WithArguments("(T1, T2)").
WithLocation
(1, 1),
1732
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType).WithArguments("S<T>").
WithLocation
(1, 1)
1798
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType).WithArguments("(T1, T2)").
WithLocation
(1, 1),
1800
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType).WithArguments("S<T>").
WithLocation
(1, 1)
1853
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "Generic<int>").WithArguments("Generic<T1>").
WithLocation
(8, 13),
1856
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "Generic<int>").WithArguments("Generic<T1>").
WithLocation
(8, 27),
1859
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "Generic<string>").WithArguments("Generic<T1>").
WithLocation
(4, 30),
1862
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "Generic<string>").WithArguments("Generic<T1>").
WithLocation
(4, 47)
1870
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "Generic<int>").WithArguments("Generic<T1>").
WithLocation
(8, 13),
1873
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "Generic<int>").WithArguments("Generic<T1>").
WithLocation
(8, 27),
1876
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "Generic<string>").WithArguments("Generic<T1>").
WithLocation
(4, 30),
1879
Diagnostic(ErrorCode.ERR_GenericsUsedInNoPIAType, "Generic<string>").WithArguments("Generic<T1>").
WithLocation
(4, 47)
Symbols\Retargeting\RetargetingTests.cs (2)
1069
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "C.M(1)").WithArguments("C.M(int)").
WithLocation
(1, 1)
1146
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly, "C.M(1)").WithArguments("C.M(int)").
WithLocation
(1, 1)
Symbols\Source\AccessTests.cs (1)
54
Diagnostic(ErrorCode.ERR_BadModifiersOnNamespace, "public").
WithLocation
(2, 1));
Symbols\Source\BaseClassTests.cs (57)
369
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C1").WithArguments("C1", "NV").
WithLocation
(10, 15));
396
Diagnostic(ErrorCode.ERR_StaticBaseClass, "C1").WithArguments("NV", "C1").
WithLocation
(10, 15),
399
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C1").WithArguments("C1", "NV").
WithLocation
(10, 15));
437
Diagnostic(ErrorCode.ERR_DuplicateInterfaceInBaseList, "IBaz").WithArguments("IBaz").
WithLocation
(25, 32),
440
Diagnostic(ErrorCode.ERR_BadVisBaseInterface, "IBar").WithArguments("IBar", "IGoo").
WithLocation
(21, 19),
443
Diagnostic(ErrorCode.ERR_BadVisBaseInterface, "IBar").WithArguments("IBar", "IBam").
WithLocation
(21, 19),
446
Diagnostic(ErrorCode.ERR_BadVisBaseInterface, "IBar").WithArguments("IBar", "IBaz").
WithLocation
(25, 19));
1655
Diagnostic(ErrorCode.ERR_BadAccess, "ProtectedInternalClass").WithArguments("PublicClass.ProtectedInternalClass").
WithLocation
(2, 23)
1709
Diagnostic(ErrorCode.ERR_BadAccess, "ProtectedAndInternalClass").WithArguments("PublicClass.ProtectedAndInternalClass").
WithLocation
(2, 23)
1754
Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<int>").
WithLocation
(4, 26),
1757
Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<int>").
WithLocation
(3, 26),
1760
Diagnostic(ErrorCode.ERR_BogusType, "D").WithArguments("I<int>").
WithLocation
(10, 14),
1763
Diagnostic(ErrorCode.ERR_BogusType, "I2").WithArguments("I<int>").
WithLocation
(11, 18),
1766
Diagnostic(ErrorCode.ERR_BogusType, "I<int>").WithArguments("I<int>").
WithLocation
(6, 9)
1808
Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<dynamic>").
WithLocation
(4, 30),
1811
Diagnostic(ErrorCode.ERR_BogusType, "x").WithArguments("I<dynamic>").
WithLocation
(3, 30),
1814
Diagnostic(ErrorCode.ERR_BogusType, "I<dynamic>").WithArguments("I<dynamic>").
WithLocation
(6, 9)
1919
Diagnostic(ErrorCode.ERR_BadAccess, "I").WithArguments("C.I").
WithLocation
(7, 14));
1936
Diagnostic(ErrorCode.ERR_CircularBase, "I").WithArguments("S", "S").
WithLocation
(1, 14));
1951
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInAgg, "I").WithArguments("I", "C").
WithLocation
(1, 13));
1974
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C").WithArguments("C").
WithLocation
(4, 14),
1977
Diagnostic(ErrorCode.ERR_BadUsingNamespace, "A<int>.B").WithArguments("A<int>.B").
WithLocation
(1, 7),
1980
Diagnostic(ErrorCode.ERR_BadUsingNamespace, "D").WithArguments("D").
WithLocation
(2, 7),
1983
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using D;").
WithLocation
(2, 1),
1986
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using A<int>.B;").
WithLocation
(1, 1)
2010
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static A<int>.B;").
WithLocation
(1, 1)
2097
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "CrashTest.Crash<object>").WithArguments("CrashTest.Crash<T>", "CrashTest.Crash<object>.AbstractClass", "T", "object").
WithLocation
(2, 14),
2100
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "Class2").WithArguments("CrashTest.Crash<T>", "CrashTest.Crash<object>.AbstractClass", "T", "object").
WithLocation
(6, 11),
2103
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "Test").WithArguments("CrashTest.Crash<T>", "CrashTest.Crash<object>.AbstractClass", "T", "object").
WithLocation
(21, 23)
2135
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "CrashTest.Class2").WithArguments("CrashTest.Class2").
WithLocation
(2, 30),
2138
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "CrashTest.Crash<CrashTest.Class2>").WithArguments("CrashTest.Crash<CrashTest.Class2>").
WithLocation
(2, 14));
2168
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "Crash<T>.AbstractClass").WithArguments("CrashTest.Crash<T>.AbstractClass").
WithLocation
(11, 18),
2171
Diagnostic(ErrorCode.WRN_DeprecatedSymbol, "AbstractClass").WithArguments("CrashTest.Crash<CrashTest.Class2>.AbstractClass").
WithLocation
(6, 20)
2201
Diagnostic(ErrorCode.ERR_BadUsingNamespace, "CrashTest.Crash<CrashTest.Class2>").WithArguments("CrashTest.Crash<CrashTest.Class2>").
WithLocation
(2, 7),
2204
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "AbstractClass").WithArguments("AbstractClass").
WithLocation
(6, 20),
2207
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using CrashTest.Crash<CrashTest.Class2>;").
WithLocation
(2, 1)
2234
Diagnostic(ErrorCode.ERR_BadAccess, "D").WithArguments("Base.D").
WithLocation
(13, 17));
2260
Diagnostic(ErrorCode.ERR_BadAccess, "D").WithArguments("Base.D").
WithLocation
(13, 17));
2285
Diagnostic(ErrorCode.ERR_BadAccess, "D").WithArguments("Base.D").
WithLocation
(13, 17),
2288
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("Base.D*").
WithLocation
(13, 11),
2291
Diagnostic(ErrorCode.WRN_ManagedAddr, "F").WithArguments("Base.D").
WithLocation
(13, 11),
2294
Diagnostic(ErrorCode.ERR_BadTypeArgument, "E").WithArguments("Base.C*").
WithLocation
(12, 11),
2297
Diagnostic(ErrorCode.WRN_ManagedAddr, "E").WithArguments("Base.C").
WithLocation
(12, 11));
2322
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Derived").
WithLocation
(10, 14),
2325
Diagnostic(ErrorCode.ERR_BadAccess, "D").WithArguments("Base.D").
WithLocation
(13, 17),
2328
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("Base.D*").
WithLocation
(13, 11),
2331
Diagnostic(ErrorCode.WRN_ManagedAddr, "F").WithArguments("Base.D").
WithLocation
(13, 11),
2334
Diagnostic(ErrorCode.ERR_BadTypeArgument, "E").WithArguments("Base.C*").
WithLocation
(12, 11),
2337
Diagnostic(ErrorCode.WRN_ManagedAddr, "E").WithArguments("Base.C").
WithLocation
(12, 11));
2343
Diagnostic(ErrorCode.ERR_BadAccess, "D").WithArguments("Base.D").
WithLocation
(13, 17),
2346
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F").WithArguments("Base.D*").
WithLocation
(13, 11),
2349
Diagnostic(ErrorCode.WRN_ManagedAddr, "F").WithArguments("Base.D").
WithLocation
(13, 11),
2352
Diagnostic(ErrorCode.ERR_BadTypeArgument, "E").WithArguments("Base.C*").
WithLocation
(12, 11),
2355
Diagnostic(ErrorCode.WRN_ManagedAddr, "E").WithArguments("Base.C").
WithLocation
(12, 11));
2373
Diagnostic(ErrorCode.ERR_CircularBase, "B").WithArguments("A", "A").
WithLocation
(4, 24));
2391
Diagnostic(ErrorCode.ERR_CircularBase, "C").WithArguments("B", "B").
WithLocation
(4, 24));
2408
Diagnostic(ErrorCode.ERR_CircularBase, "B").WithArguments("A", "A").
WithLocation
(4, 41));
Symbols\Source\ClsComplianceTests.cs (36)
409
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(10, 26),
412
Diagnostic(ErrorCode.WRN_CLS_BadBase, "B").WithArguments("B", "Generic<int*[]>").
WithLocation
(10, 14),
415
Diagnostic(ErrorCode.WRN_CLS_BadBase, "A").WithArguments("A", "Bad").
WithLocation
(6, 14));
590
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "B1").
WithLocation
(10, 21),
593
Diagnostic(ErrorCode.WRN_CLS_BadBase, "B1").WithArguments("B1", "Generic<int*[]>").
WithLocation
(10, 21),
596
Diagnostic(ErrorCode.WRN_CLS_BadBase, "A3").WithArguments("A3", "Bad3").
WithLocation
(8, 14),
599
Diagnostic(ErrorCode.WRN_CLS_BadBase, "A1").WithArguments("A1", "Bad1").
WithLocation
(6, 14),
602
Diagnostic(ErrorCode.WRN_CLS_BadBase, "A2").WithArguments("A2", "Bad2").
WithLocation
(7, 14),
605
Diagnostic(ErrorCode.WRN_CLS_BadBase, "B2").WithArguments("B2", "Generic<Bad2>").
WithLocation
(11, 14));
649
Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "Method2").WithArguments("C.Method2()").
WithLocation
(8, 23)
657
Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "Method2").WithArguments("C.Method2()").
WithLocation
(8, 23),
660
Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "Method").WithArguments("C.Method()").
WithLocation
(7, 23)
740
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "B").
WithLocation
(8, 25),
743
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "E").
WithLocation
(14, 25),
746
Diagnostic(ErrorCode.WRN_CLS_BadInterface, "C").WithArguments("C", "Bad").
WithLocation
(10, 18),
749
Diagnostic(ErrorCode.WRN_CLS_BadInterface, "D").WithArguments("D", "Bad").
WithLocation
(12, 18),
752
Diagnostic(ErrorCode.WRN_CLS_BadInterface, "B").WithArguments("B", "Generic<int*[]>").
WithLocation
(8, 25),
755
Diagnostic(ErrorCode.WRN_CLS_BadInterface, "E").WithArguments("E", "Bad").
WithLocation
(14, 25),
758
Diagnostic(ErrorCode.WRN_CLS_BadInterface, "A").WithArguments("A", "Bad").
WithLocation
(6, 18),
761
Diagnostic(ErrorCode.WRN_CLS_BadInterface, "E").WithArguments("E", "Generic<int*[]>").
WithLocation
(14, 25));
844
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "B").
WithLocation
(8, 21),
847
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "E").
WithLocation
(14, 21));
2146
Diagnostic(ErrorCode.WRN_CLS_BadIdentifierCase, "@a").WithArguments("a").
WithLocation
(5, 14));
2165
Diagnostic(ErrorCode.WRN_CLS_BadIdentifierCase, "@a").WithArguments("a<T>").
WithLocation
(5, 14));
3000
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(5, 1),
3003
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "M").WithArguments("M").
WithLocation
(5, 13));
3021
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(7, 1),
3024
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "M").WithArguments("M").
WithLocation
(7, 13));
3042
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(7, 1),
3045
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "M").WithArguments("M").
WithLocation
(7, 13));
3292
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("MissingAttribute").
WithLocation
(6, 2),
3295
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Missing").WithArguments("Missing").
WithLocation
(6, 2));
3882
Diagnostic(ErrorCode.WRN_CLS_ModuleMissingCLS).
WithLocation
(1, 1)
3887
Diagnostic(ErrorCode.WRN_CLS_ModuleMissingCLS).
WithLocation
(1, 1)
3893
Diagnostic(ErrorCode.WRN_CLS_ModuleMissingCLS).
WithLocation
(1, 1)
3898
Diagnostic(ErrorCode.WRN_CLS_ModuleMissingCLS).
WithLocation
(1, 1)
Symbols\Source\CustomModifierCopyTests.cs (4)
895
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "M").WithArguments("C.I.M((object, object))", "I.M((object c, object d))").
WithLocation
(4, 28)
919
Diagnostic(ErrorCode.ERR_ImplBadTupleNames, "M").WithArguments("C.I.M((object c, object d))", "I.M((object c, object d))").
WithLocation
(4, 24)
1181
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M").WithArguments("C.M((object c, object d))", "Base.M((object c, object d))").
WithLocation
(5, 38)
1209
Diagnostic(ErrorCode.ERR_CantChangeTupleNamesOnOverride, "M").WithArguments("C.M((object, object))", "Base.M((object c, object d))").
WithLocation
(5, 42)
Symbols\Source\DelegateTests.cs (35)
601
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Da(FTT)").WithArguments("FTT", "DelegateTest.Da").
WithLocation
(44, 14),
604
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "FCT").WithArguments("DelegateTest.FCT<T>(C<T>)").
WithLocation
(45, 21),
607
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "PT").WithArguments("DelegateTest.PT<T>(params T[])").
WithLocation
(46, 21),
610
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Daa(FT)").WithArguments("FT", "DelegateTest.Daa").
WithLocation
(48, 15),
613
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Daa(FTi)").WithArguments("FTi", "DelegateTest.Daa").
WithLocation
(49, 15),
616
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Daa(PTT)").WithArguments("PTT", "DelegateTest.Daa").
WithLocation
(50, 15),
619
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "PST").WithArguments("DelegateTest.PST<S, T>(S, params T[])").
WithLocation
(51, 23),
622
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Dai(FT)").WithArguments("FT", "DelegateTest.Dai").
WithLocation
(53, 15),
625
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "FTT").WithArguments("DelegateTest.FTT<T>(T, T)").
WithLocation
(54, 23),
628
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Dai(PTT)").WithArguments("PTT", "DelegateTest.Dai").
WithLocation
(55, 15),
631
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "PST").WithArguments("DelegateTest.PST<S, T>(S, params T[])").
WithLocation
(56, 23),
634
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Dab(FT)").WithArguments("FT", "DelegateTest.Dab").
WithLocation
(58, 15),
637
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "FTT").WithArguments("DelegateTest.FTT<T>(T, T)").
WithLocation
(59, 23),
640
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Dab(FTi)").WithArguments("FTi", "DelegateTest.Dab").
WithLocation
(60, 15),
643
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Dab(PTT)").WithArguments("PTT", "DelegateTest.Dab").
WithLocation
(61, 15),
646
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "PST").WithArguments("DelegateTest.PST<S, T>(S, params T[])").
WithLocation
(62, 23),
649
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Dpa(FTT)").WithArguments("FTT", "DelegateTest.Dpa").
WithLocation
(64, 15),
652
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "FCT").WithArguments("DelegateTest.FCT<T>(C<T>)").
WithLocation
(65, 23),
655
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Dapa(FT)").WithArguments("FT", "DelegateTest.Dapa").
WithLocation
(67, 16),
658
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "FTT").WithArguments("DelegateTest.FTT<T>(T, T)").
WithLocation
(68, 25),
661
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Dapb(FT)").WithArguments("FT", "DelegateTest.Dapb").
WithLocation
(70, 16),
664
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "FTT").WithArguments("DelegateTest.FTT<T>(T, T)").
WithLocation
(71, 25),
667
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "PTT").WithArguments("DelegateTest.PTT<T>(T, params T[])").
WithLocation
(72, 25),
670
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Dpapa(FT)").WithArguments("FT", "DelegateTest.Dpapa").
WithLocation
(74, 17),
673
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "PTT").WithArguments("DelegateTest.PTT<T>(T, params T[])").
WithLocation
(75, 27),
676
Diagnostic(ErrorCode.ERR_MethDelegateMismatch, "new Dca(FTT)").WithArguments("FTT", "DelegateTest.Dca").
WithLocation
(77, 15),
679
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "PT").WithArguments("DelegateTest.PT<T>(params T[])").
WithLocation
(78, 23),
682
Diagnostic(ErrorCode.ERR_CantInferMethTypeArgs, "RunG").WithArguments("DelegateTest.RunG<T>(T)").
WithLocation
(80, 9));
717
Diagnostic(ErrorCode.ERR_BadAsyncArgType, "delegate").
WithLocation
(4, 17),
720
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "delegate").
WithLocation
(4, 17));
759
Diagnostic(ErrorCode.ERR_CantConvAnonMethNoParams, "delegate { }").WithArguments("D").
WithLocation
(4, 11)
849
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(1, 1),
852
Diagnostic(ErrorCode.ERR_PartialMisplaced, "M").
WithLocation
(1, 30));
861
Diagnostic(ErrorCode.ERR_PartialMisplaced, "M").
WithLocation
(1, 30));
870
Diagnostic(ErrorCode.ERR_PartialMisplaced, "M").
WithLocation
(1, 30));
Symbols\Source\EnumTests.cs (24)
86
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"""3""").WithArguments("string", "byte").
WithLocation
(3, 10),
89
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "2.2").WithArguments("double", "byte").
WithLocation
(4, 10),
92
Diagnostic(ErrorCode.ERR_ConstOutOfRange, "257").WithArguments("257", "byte").
WithLocation
(5, 10)
103
Diagnostic(ErrorCode.ERR_ConstOutOfRange, "-65536").WithArguments("-65536", "short").
WithLocation
(1, 35)
239
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Figure3").WithArguments("abstract").
WithLocation
(5, 19),
242
Diagnostic(ErrorCode.ERR_DuplicateModifier, "private").WithArguments("private").
WithLocation
(6, 13),
245
Diagnostic(ErrorCode.ERR_BadMemberProtection, "Figure5").
WithLocation
(7, 25),
248
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Figure0").WithArguments("sealed").
WithLocation
(8, 17),
251
Diagnostic(ErrorCode.WRN_NewNotRequired, "Figure").WithArguments("Program.Figure").
WithLocation
(9, 14),
254
Diagnostic(ErrorCode.WRN_NewNotRequired, "Figure2").WithArguments("Program.Figure2").
WithLocation
(4, 21)
916
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "string").
WithLocation
(1, 23),
919
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "System.String").
WithLocation
(2, 23)
937
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 11),
940
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "int*").
WithLocation
(2, 11),
943
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(3, 11),
946
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "dynamic").
WithLocation
(3, 11),
949
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "int[]").
WithLocation
(1, 11),
952
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "T").
WithLocation
(4, 24)
961
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 11),
964
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "int*").
WithLocation
(2, 11),
967
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "int[]").
WithLocation
(1, 11),
970
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(3, 11),
973
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "dynamic").
WithLocation
(3, 11),
976
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "T").
WithLocation
(4, 24)
Symbols\Source\EventTests.cs (17)
385
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(4, 32),
388
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E1").WithArguments("A.E1").
WithLocation
(4, 41));
402
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(4, 32));
830
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(4, 38));
846
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(4, 31));
1351
Diagnostic(ErrorCode.ERR_UnassignedThisUnsupportedVersion, "S").WithArguments("S.E", "11.0").
WithLocation
(11, 5),
1354
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "This").WithArguments("S.This").
WithLocation
(22, 9));
1359
Diagnostic(ErrorCode.ERR_ReturnNotLValue, "This").WithArguments("S.This").
WithLocation
(22, 9));
2120
Diagnostic(ErrorCode.ERR_BadEventUsageNoField, "E1").WithArguments("B.E1").
WithLocation
(5, 11));
2186
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, ".").
WithLocation
(1, 40),
2189
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 41),
2192
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "System.IFormattable").WithArguments("<invalid-global-code>.", "System.IFormattable").
WithLocation
(1, 21),
2195
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "").WithArguments("<invalid-global-code>.").
WithLocation
(1, 41));
2460
Diagnostic(ErrorCode.ERR_AbstractBaseCall, "base.MyEvent += value").WithArguments("ConsoleApplication3.BaseWithAbstractEvent.MyEvent").
WithLocation
(14, 19),
2463
Diagnostic(ErrorCode.ERR_AbstractBaseCall, "base.MyEvent -= value").WithArguments("ConsoleApplication3.BaseWithAbstractEvent.MyEvent").
WithLocation
(15, 22),
2466
Diagnostic(ErrorCode.ERR_AbstractBaseCall, "base.MyEvent += Goo").WithArguments("ConsoleApplication3.BaseWithAbstractEvent.MyEvent").
WithLocation
(20, 13)
2486
Diagnostic(ErrorCode.ERR_ExternEventInitializer, "e").WithArguments("Test.e").
WithLocation
(8, 27));
Symbols\Source\ExpressionBodiedMethodTests.cs (9)
78
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "public int M() {} => 1;").
WithLocation
(4, 5),
81
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("C.M()").
WithLocation
(4, 16));
95
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "M").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 9)
110
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M").WithArguments("C.M()").
WithLocation
(4, 23));
124
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M").WithArguments("C.M()").
WithLocation
(4, 24),
127
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "M").WithArguments("C.M()", "C").
WithLocation
(4, 24));
141
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M").WithArguments("C.M()").
WithLocation
(4, 17),
144
Diagnostic(ErrorCode.ERR_VirtualPrivate, "M").WithArguments("C.M()").
WithLocation
(4, 17));
251
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"System.Console.WriteLine(""goo"")").WithArguments("void", "int").
WithLocation
(4, 23));
Symbols\Source\ExpressionBodiedPropertyTests.cs (26)
41
Diagnostic(ErrorCode.ERR_BlockBodyAndExpressionBody, "public int P { get; } => 1;").
WithLocation
(4, 5)
56
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "1").WithArguments("default interface implementation", "8.0").
WithLocation
(4, 14)
71
Diagnostic(ErrorCode.ERR_AbstractHasBody, "1").WithArguments("C.P.get").
WithLocation
(4, 28));
85
Diagnostic(ErrorCode.ERR_AbstractHasBody, "1").WithArguments("C.P.get").
WithLocation
(4, 29),
88
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "1").WithArguments("C.P.get", "C").
WithLocation
(4, 29));
102
Diagnostic(ErrorCode.ERR_VirtualPrivate, "P").WithArguments("C.P").
WithLocation
(4, 17),
105
Diagnostic(ErrorCode.ERR_AbstractHasBody, "1").WithArguments("C.P.get").
WithLocation
(4, 22));
120
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "1").
WithLocation
(4, 21));
133
Diagnostic(ErrorCode.ERR_UnexpectedSemicolon, ";").
WithLocation
(4, 19));
146
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 15));
159
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(4, 20),
162
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 2),
165
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "this").WithArguments("I.this[int]").
WithLocation
(4, 9));
178
Diagnostic(ErrorCode.ERR_LbraceExpected, ";").
WithLocation
(4, 20),
181
Diagnostic(ErrorCode.ERR_GetOrSetExpected, ";").
WithLocation
(4, 20),
184
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 2),
187
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "this").WithArguments("I.this[int]").
WithLocation
(4, 9));
200
Diagnostic(ErrorCode.ERR_UnexpectedSemicolon, ";").
WithLocation
(4, 29));
214
Diagnostic(ErrorCode.ERR_UnexpectedSemicolon, ";").
WithLocation
(4, 24),
217
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=>").WithArguments("=>").
WithLocation
(4, 26));
230
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 25));
311
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "this").WithArguments("C.this[int]", "B.this[int]").
WithLocation
(10, 25),
314
Diagnostic(ErrorCode.ERR_CantOverrideNonVirtual, "P").WithArguments("C.P", "B.P").
WithLocation
(9, 25));
343
Diagnostic(ErrorCode.ERR_PropertyCantHaveVoidType, "P").WithArguments("C.P").
WithLocation
(4, 17));
356
Diagnostic(ErrorCode.ERR_NoImplicitConv, @"System.Console.WriteLine(""goo"")").WithArguments("void", "int").
WithLocation
(4, 21));
489
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("static").
WithLocation
(4, 16));
Symbols\Source\FieldTests.cs (35)
31
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "I").WithArguments("struct field initializers", "10.0").
WithLocation
(3, 16));
48
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "I").WithArguments("struct field initializers", "10.0").
WithLocation
(3, 16));
279
Diagnostic(ErrorCode.ERR_TypeExpected, "delegate").
WithLocation
(4, 11),
282
Diagnostic(ErrorCode.ERR_IdentifierExpected, "delegate").
WithLocation
(4, 11),
285
Diagnostic(ErrorCode.ERR_ConstValueRequired, "delegate").
WithLocation
(4, 11),
288
Diagnostic(ErrorCode.ERR_SemicolonExpected, "delegate").
WithLocation
(4, 11),
291
Diagnostic(ErrorCode.ERR_SemicolonExpected, "const").
WithLocation
(5, 37),
294
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(5, 44),
297
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(5, 46),
300
Diagnostic(ErrorCode.ERR_ConstValueRequired, "{").
WithLocation
(5, 46),
303
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(5, 46),
306
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(5, 48),
309
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(6, 1),
312
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Finalize").WithArguments("virtual").
WithLocation
(5, 28),
315
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "()").WithArguments("System.ValueTuple`2").
WithLocation
(5, 43),
318
Diagnostic(ErrorCode.ERR_FieldCantHaveVoidType, "void").
WithLocation
(5, 23),
321
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "").WithArguments("A", "").
WithLocation
(5, 46),
324
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Finalize").WithArguments("A.Finalize", "").
WithLocation
(5, 28)
344
Diagnostic(ErrorCode.ERR_TypeExpected, "delegate").
WithLocation
(4, 11),
347
Diagnostic(ErrorCode.ERR_IdentifierExpected, "delegate").
WithLocation
(4, 11),
350
Diagnostic(ErrorCode.ERR_ConstValueRequired, "delegate").
WithLocation
(4, 11),
353
Diagnostic(ErrorCode.ERR_SemicolonExpected, "delegate").
WithLocation
(4, 11),
356
Diagnostic(ErrorCode.ERR_SemicolonExpected, "const").
WithLocation
(5, 37),
359
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "()").WithArguments("tuples", "7.0").
WithLocation
(5, 43),
362
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(5, 44),
365
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(5, 46),
368
Diagnostic(ErrorCode.ERR_ConstValueRequired, "{").
WithLocation
(5, 46),
371
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(5, 46),
374
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(5, 48),
377
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(6, 1),
380
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Finalize").WithArguments("virtual").
WithLocation
(5, 28),
383
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "()").WithArguments("System.ValueTuple`2").
WithLocation
(5, 43),
386
Diagnostic(ErrorCode.ERR_FieldCantHaveVoidType, "void").
WithLocation
(5, 23),
389
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "").WithArguments("A", "").
WithLocation
(5, 46),
392
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Finalize").WithArguments("A.Finalize", "").
WithLocation
(5, 28)
Symbols\Source\FileModifierTests.cs (120)
32
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "C").WithArguments("file types", "11.0").
WithLocation
(1, 12));
52
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "C").WithArguments("file types", "11.0").
WithLocation
(3, 16),
55
Diagnostic(ErrorCode.ERR_FileTypeNested, "C").WithArguments("Outer.C").
WithLocation
(3, 16));
61
Diagnostic(ErrorCode.ERR_FileTypeNested, "C").WithArguments("Outer.C").
WithLocation
(3, 16));
78
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Outer").WithArguments("file types", "11.0").
WithLocation
(1, 12));
111
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "Outer").WithArguments("file types", "11.0").
WithLocation
(1, 12),
114
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "C").WithArguments("file types", "11.0").
WithLocation
(3, 16),
117
Diagnostic(ErrorCode.ERR_FileTypeNested, "C").WithArguments("Outer.C").
WithLocation
(3, 16));
123
Diagnostic(ErrorCode.ERR_FileTypeNested, "C").WithArguments("Outer.C").
WithLocation
(3, 16));
145
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M").WithArguments("Outer.C", "D").
WithLocation
(8, 10));
404
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "Attr").WithArguments("E", "Attr").
WithLocation
(10, 12));
478
Diagnostic(ErrorCode.ERR_NameNotInContext, "C").WithArguments("C").
WithLocation
(5, 9));
612
Diagnostic(ErrorCode.ERR_FileTypeNonUniquePath, "C").WithArguments("C", "path/to/file.cs").
WithLocation
(5, 12));
656
Diagnostic(ErrorCode.ERR_FileTypeNonUniquePath, "C").WithArguments("NS.C", "path/to/file.cs").
WithLocation
(5, 12),
659
Diagnostic(ErrorCode.ERR_FileTypeNonUniquePath, "C").WithArguments("C", "path/to/file.cs").
WithLocation
(5, 12));
692
Diagnostic(ErrorCode.ERR_FileTypeNonUniquePath, "C").WithArguments("NS1.NS2.C<T>", "path/to/file.cs").
WithLocation
(5, 12));
757
Diagnostic(ErrorCode.ERR_FileTypeNonUniquePath, "C").WithArguments("C", "file1.cs").
WithLocation
(3, 12));
836
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C").WithArguments("C").
WithLocation
(1, 5),
845
.
WithLocation
(3, 12)
1008
Diagnostic(ErrorCode.ERR_DuplicateNameInNS, "C").WithArguments("C", "<global namespace>").
WithLocation
(3, 7),
1011
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "C").
WithLocation
(5, 24),
1014
Diagnostic(ErrorCode.ERR_AmbigCall, "M").WithArguments("C.M()", "C.M()").
WithLocation
(14, 11));
1252
Diagnostic(ErrorCode.ERR_FileLocalDuplicateNameInNS, "C").WithArguments("C", "NS").
WithLocation
(8, 12)
1273
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "NS.C").
WithLocation
(5, 24),
1276
Diagnostic(ErrorCode.ERR_NameNotInContext, "Number").WithArguments("Number").
WithLocation
(7, 30),
1279
Diagnostic(ErrorCode.ERR_MissingPartial, "C").WithArguments("C").
WithLocation
(8, 12)
1327
Diagnostic(ErrorCode.ERR_MissingPartial, "C").WithArguments("C").
WithLocation
(11, 12));
1347
Diagnostic(ErrorCode.ERR_MissingPartial, "C").WithArguments("C").
WithLocation
(11, 12));
1401
Diagnostic(ErrorCode.ERR_FileTypeNested, "C").WithArguments("Outer.C").
WithLocation
(3, 16),
1404
Diagnostic(ErrorCode.ERR_FileTypeNested, "C").WithArguments("Outer.C").
WithLocation
(3, 16));
1755
Diagnostic(ErrorCode.ERR_FileLocalDuplicateNameInNS, "C").WithArguments("C", "NS").
WithLocation
(4, 7));
1772
Diagnostic(ErrorCode.ERR_FileLocalDuplicateNameInNS, "C").WithArguments("C", "NS").
WithLocation
(4, 12));
1790
Diagnostic(ErrorCode.ERR_FileLocalDuplicateNameInNS, "C").WithArguments("C", "NS").
WithLocation
(4, 7),
1793
Diagnostic(ErrorCode.ERR_FileLocalDuplicateNameInNS, "C").WithArguments("C", "NS").
WithLocation
(5, 7));
1811
Diagnostic(ErrorCode.ERR_FileLocalDuplicateNameInNS, "C").WithArguments("C", "NS").
WithLocation
(4, 12),
1814
Diagnostic(ErrorCode.ERR_FileLocalDuplicateNameInNS, "C").WithArguments("C", "NS").
WithLocation
(5, 7));
1836
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M1").WithArguments("C", "D").
WithLocation
(7, 17),
1839
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M2").WithArguments("C", "D").
WithLocation
(8, 18));
1861
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M1").WithArguments("C", "D").
WithLocation
(7, 14),
1864
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M2").WithArguments("C", "D").
WithLocation
(8, 15));
1889
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "field").WithArguments("C", "E").
WithLocation
(8, 7),
1892
Diagnostic(ErrorCode.WRN_UnreferencedField, "field").WithArguments("E.field").
WithLocation
(8, 7),
1895
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "property").WithArguments("C", "E").
WithLocation
(9, 7),
1898
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "this").WithArguments("C", "E").
WithLocation
(10, 12),
1901
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "@event").WithArguments("D", "E").
WithLocation
(11, 13),
1904
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "@event").WithArguments("E.event").
WithLocation
(11, 13));
1930
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "field").WithArguments("C.Inner", "E").
WithLocation
(9, 13),
1933
Diagnostic(ErrorCode.WRN_UnreferencedField, "field").WithArguments("E.field").
WithLocation
(9, 13),
1936
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "property").WithArguments("C.Inner", "E").
WithLocation
(10, 13),
1939
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "this").WithArguments("C.Inner", "E").
WithLocation
(11, 12),
1942
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "@event").WithArguments("C.InnerDelegate", "E").
WithLocation
(12, 27),
1945
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "@event").WithArguments("E.event").
WithLocation
(12, 27));
1987
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "field").WithArguments("C.Inner", "E.Inner").
WithLocation
(24, 17),
1990
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "property").WithArguments("C.Inner", "E.Inner").
WithLocation
(25, 17),
1993
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "this").WithArguments("C.Inner", "E.Inner").
WithLocation
(26, 16),
1996
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "@event").WithArguments("C.InnerDelegate", "E.Inner").
WithLocation
(27, 31));
2015
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "Del1").WithArguments("C", "Del1").
WithLocation
(5, 15),
2018
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "Del2").WithArguments("C", "Del2").
WithLocation
(6, 12));
2040
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "+").WithArguments("C", "D").
WithLocation
(7, 30),
2043
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "-").WithArguments("C", "D").
WithLocation
(8, 30));
2064
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "D").WithArguments("C", "D").
WithLocation
(7, 12));
2085
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M").WithArguments("C", "D").
WithLocation
(7, 14),
2088
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M").WithArguments("C", "D").
WithLocation
(7, 14),
2091
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M").WithArguments("C", "D").
WithLocation
(7, 14));
2108
Diagnostic(ErrorCode.ERR_FileTypeNoExplicitAccessibility, "C").WithArguments("C").
WithLocation
(1, 19),
2111
Diagnostic(ErrorCode.ERR_FileTypeNoExplicitAccessibility, "D").WithArguments("D").
WithLocation
(2, 21),
2114
Diagnostic(ErrorCode.ERR_FileTypeNoExplicitAccessibility, "E").WithArguments("E").
WithLocation
(3, 20),
2117
Diagnostic(ErrorCode.ERR_NoNamespacePrivate, "E").
WithLocation
(3, 20));
2132
Diagnostic(ErrorCode.ERR_DuplicateModifier, "file").WithArguments("file").
WithLocation
(1, 6),
2135
Diagnostic(ErrorCode.ERR_DuplicateModifier, "file").WithArguments("file").
WithLocation
(2, 15));
2152
Diagnostic(ErrorCode.ERR_FileTypeBase, "Derived1").WithArguments("Base", "Derived1").
WithLocation
(2, 7),
2155
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "Derived2").WithArguments("Derived2", "Base").
WithLocation
(3, 14),
2158
Diagnostic(ErrorCode.ERR_FileTypeBase, "Derived2").WithArguments("Base", "Derived2").
WithLocation
(3, 14));
2178
Diagnostic(ErrorCode.ERR_FileTypeBase, "Derived3").WithArguments("Interface", "Derived3").
WithLocation
(6, 11));
2283
Diagnostic(ErrorCode.ERR_FileTypeBase, "Derived").WithArguments("I1", "Derived").
WithLocation
(3, 19));
2322
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "F").WithArguments("I", "C").
WithLocation
(7, 17));
2343
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "F").WithArguments("I", "C").
WithLocation
(7, 12));
2396
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(3, 10),
2399
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(3, 10),
2402
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I").WithArguments("C", "I.F()").
WithLocation
(5, 19));
2425
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "X").WithArguments("S.X", "0").
WithLocation
(1, 28),
2428
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M1").WithArguments("Container<S>", "Program").
WithLocation
(5, 18),
2431
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M2").WithArguments("S[]", "Program").
WithLocation
(6, 9),
2434
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M3").WithArguments("(S, S)", "Program").
WithLocation
(7, 12),
2437
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M4").WithArguments("S*", "Program").
WithLocation
(8, 8),
2440
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "M5").WithArguments("delegate*<S, void>", "Program").
WithLocation
(9, 24));
2464
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "C").WithArguments("C", "E.M<T>(T)").
WithLocation
(10, 30));
2491
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "C").WithArguments("C", "E<T>").
WithLocation
(7, 17 + typeKind.Length));
2539
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "C").WithArguments("C", "D2<T>").
WithLocation
(5, 36));
2559
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "R1").WithArguments("C", "R1").
WithLocation
(3, 8),
2562
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "R1").WithArguments("C", "R1").
WithLocation
(3, 8),
2565
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "R2").WithArguments("C", "R2").
WithLocation
(4, 15),
2568
Diagnostic(ErrorCode.ERR_FileTypeDisallowedInSignature, "R2").WithArguments("C", "R2").
WithLocation
(4, 15)
2670
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "NS.C").WithArguments("C", "NS").
WithLocation
(5, 9));
2700
Diagnostic(ErrorCode.ERR_FileTypeNested, "C").WithArguments("Outer.C").
WithLocation
(5, 16),
2703
Diagnostic(ErrorCode.ERR_BadAccess, "C").WithArguments("Outer.C").
WithLocation
(15, 15));
2738
Diagnostic(ErrorCode.ERR_NoSuchMember, "C").WithArguments("Outer", "C").
WithLocation
(5, 15),
2741
Diagnostic(ErrorCode.ERR_FileTypeNested, "C").WithArguments("Outer.C").
WithLocation
(5, 16));
2806
Diagnostic(ErrorCode.ERR_NameNotInContext, "C").WithArguments("C").
WithLocation
(15, 9));
2835
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using static C;").
WithLocation
(1, 1),
2838
Diagnostic(ErrorCode.ERR_GlobalUsingStaticFileType, "C").WithArguments("C").
WithLocation
(1, 21),
2841
Diagnostic(ErrorCode.ERR_NameNotInContext, "M").WithArguments("M").
WithLocation
(5, 9));
2874
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using static Container<C>;").
WithLocation
(1, 1),
2877
Diagnostic(ErrorCode.ERR_GlobalUsingStaticFileType, "Container<C>").WithArguments("Container<C>").
WithLocation
(1, 21),
2880
Diagnostic(ErrorCode.ERR_NameNotInContext, "M").WithArguments("M").
WithLocation
(5, 9));
2993
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static C;").
WithLocation
(2, 1));
3048
Diagnostic(ErrorCode.ERR_FileTypeNested, "C").WithArguments("Derived.C").
WithLocation
(16, 20));
3149
Diagnostic(ErrorCode.ERR_NameNotInContext, "C").WithArguments("C").
WithLocation
(7, 9)
3326
Diagnostic(ErrorCode.WRN_BadXMLRef, "C").WithArguments("C").
WithLocation
(4, 45)
3416
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M").WithArguments("string", "M").
WithLocation
(1, 5));
3445
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "M").WithArguments("string", "M").
WithLocation
(1, 5),
3448
Diagnostic(ErrorCode.ERR_ExtensionMethodsDecl, "M").WithArguments("D").
WithLocation
(7, 28));
3469
Diagnostic(ErrorCode.ERR_FileTypeBase, "D").WithArguments("NS.C", "NS.D").
WithLocation
(8, 7));
3523
Diagnostic(ErrorCode.ERR_FileTypeNested, "C1").WithArguments("C1").
WithLocation
(5, 19),
3526
Diagnostic(ErrorCode.ERR_ExtensionMethodsDecl, "M").WithArguments("C1").
WithLocation
(7, 24));
3549
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "M").WithArguments("M").
WithLocation
(3, 6));
3633
Diagnostic(ErrorCode.ERR_FileTypeNested, "C").WithArguments("Outer.C").
WithLocation
(3, 16));
3717
Diagnostic(ErrorCode.ERR_FileLocalDuplicateNameInNS, "C").WithArguments("C", "<global namespace>").
WithLocation
(2, 12));
3890
Diagnostic(ErrorCode.ERR_NameNotInContext, "C1").WithArguments("C1").
WithLocation
(5, 9));
3929
Diagnostic(ErrorCode.ERR_NameNotInContext, "C1").WithArguments("C1").
WithLocation
(5, 9));
Symbols\Source\MethodTests.cs (17)
55
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "A").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(1, 12),
58
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "A").
WithLocation
(1, 12));
2182
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(4, 16)
2200
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(4, 25)
2220
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(6, 13),
2223
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "M").WithArguments("M").
WithLocation
(6, 18)
2251
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(10, 22)
2268
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(4, 18),
2271
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 26),
2274
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("C.M()").
WithLocation
(4, 26)
2292
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(4, 18),
2295
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 35),
2298
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("C.M()").
WithLocation
(4, 35)
2390
Diagnostic(ErrorCode.ERR_ConditionalMustReturnVoid, @"Conditional(""Debug"")").WithArguments("C.M()").
WithLocation
(5, 6));
2463
Diagnostic(ErrorCode.ERR_PartialMethodOnlyInPartialClass, "M").
WithLocation
(4, 18),
2466
Diagnostic(ErrorCode.ERR_PartialMethodOnlyInPartialClass, "M").
WithLocation
(5, 18)
2488
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M()").
WithLocation
(4, 18)
Symbols\Source\ModifierTests.cs (12)
185
Diagnostic(ErrorCode.ERR_ReadOnlyNotSuppAsParamModDidYouMeanIn, "readonly").
WithLocation
(3, 23));
198
Diagnostic(ErrorCode.ERR_ReadOnlyNotSuppAsParamModDidYouMeanIn, "readonly").
WithLocation
(3, 19));
211
Diagnostic(ErrorCode.ERR_ReadOnlyNotSuppAsParamModDidYouMeanIn, "readonly").
WithLocation
(3, 19));
226
Diagnostic(ErrorCode.ERR_ReadOnlyNotSuppAsParamModDidYouMeanIn, "readonly").
WithLocation
(5, 18));
241
Diagnostic(ErrorCode.ERR_ReadOnlyNotSuppAsParamModDidYouMeanIn, "readonly").
WithLocation
(5, 22));
256
Diagnostic(ErrorCode.ERR_ReadOnlyNotSuppAsParamModDidYouMeanIn, "readonly").
WithLocation
(5, 18));
282
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "in").WithArguments("readonly references", "7.2").
WithLocation
(4, 30),
285
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "this").WithArguments("ref extension methods", "7.2").
WithLocation
(4, 33),
288
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "p").WithArguments("ref extension methods", "7.2").
WithLocation
(14, 9));
316
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "this").WithArguments("ref extension methods", "7.2").
WithLocation
(4, 34),
319
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "p").WithArguments("ref extension methods", "7.2").
WithLocation
(14, 9));
337
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "in").WithArguments("readonly references", "7.2").
WithLocation
(4, 29));
Symbols\Source\NullablePublicAPITests.cs (143)
44
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(C[])arr1").WithArguments("C?[]", "C[]").
WithLocation
(6, 20),
47
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "arr1[0]").
WithLocation
(7, 9));
125
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 13)
131
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(5, 2),
134
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(7, 13),
137
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(11, 2),
140
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(13, 13)
192
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 13)
198
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(5, 2),
201
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(7, 13),
204
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(11, 2),
207
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(13, 13)
260
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 18)
266
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(5, 2),
269
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(7, 18),
272
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(8, 2),
275
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(10, 18),
278
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(12, 2),
281
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(15, 2)
338
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 10)
343
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(6, 2),
346
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(8, 2),
349
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(10, 2),
352
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(11, 10),
355
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(12, 2),
358
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(13, 10),
361
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(14, 2),
364
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(16, 2),
367
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(18, 2),
370
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(20, 2)
429
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(22, 34));
436
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(22, 34));
443
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(4, 2),
446
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(8, 2),
449
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(14, 2),
452
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(16, 33),
455
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(20, 2),
458
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(22, 34));
539
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(15, 10),
542
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(15, 17)
547
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(8, 2),
550
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(10, 10),
553
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(10, 17),
556
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(13, 2),
559
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(15, 10),
562
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(15, 17)
613
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "D1").WithArguments("event", "D1").
WithLocation
(8, 20),
616
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(13, 19)
621
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(7, 2),
624
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(9, 19),
627
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(11, 2),
630
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(13, 19)
674
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(10, 11)
680
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(3, 2),
683
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(5, 11),
686
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(8, 2),
689
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(10, 11)
738
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(14, 6)
744
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(1, 2),
747
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(8, 6),
750
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(11, 2),
753
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(14, 6)
803
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(14, 13)
809
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(7, 2),
812
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(9, 13),
815
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(12, 2),
818
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(14, 13)
870
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 9)
876
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(4, 2),
879
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(11, 9),
882
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "nullable").WithArguments("nullable reference types", "8.0").
WithLocation
(14, 2),
885
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "?").WithArguments("nullable reference types", "8.0").
WithLocation
(17, 9)
940
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(19, 12));
997
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(17, 10));
1143
Diagnostic("CA9998_NullabilityPrinter", "o = null").WithArguments("o", "Annotated").
WithLocation
(6, 17),
1144
Diagnostic("CA9998_NullabilityPrinter", "o1 = o").WithArguments("o1", "Annotated").
WithLocation
(7, 13),
1145
Diagnostic("CA9999_NullabilityPrinter", "o").WithArguments("o", "MaybeNull", "Annotated", "MaybeNull").
WithLocation
(7, 18),
1146
Diagnostic("CA9999_NullabilityPrinter", "o").WithArguments("o", "MaybeNull", "Annotated", "MaybeNull").
WithLocation
(8, 13),
1147
Diagnostic("CA9998_NullabilityPrinter", "o2 = o").WithArguments("o2", "Annotated").
WithLocation
(9, 13),
1148
Diagnostic("CA9999_NullabilityPrinter", "o").WithArguments("o", "NotNull", "NotAnnotated", "NotNull").
WithLocation
(9, 18));
1203
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "(D)(C?)new B()").
WithLocation
(10, 17));
1255
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Undefined").WithArguments("Undefined").
WithLocation
(6, 21));
1327
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(31, 14)
1469
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(x, (short)0)").WithArguments("(object? x, int)", "(object a, int b)").
WithLocation
(9, 32),
1472
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(default, default)").WithArguments("(object?, int)", "(object a, int b)").
WithLocation
(10, 32),
1475
Diagnostic(ErrorCode.WRN_NullabilityMismatchInAssignment, "(default(object), default(int))").WithArguments("(object?, int)", "(object a, int b)").
WithLocation
(11, 32)
1561
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "C").WithArguments("property", "Prop").
WithLocation
(5, 12));
1615
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s_data").WithArguments("field", "s_data").
WithLocation
(6, 27),
1618
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "s_data").WithArguments("C.s_data", "null").
WithLocation
(6, 27));
1655
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s_data").WithArguments("field", "s_data").
WithLocation
(6, 27),
1658
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "s_data").WithArguments("C.s_data", "null").
WithLocation
(6, 27),
1664
}").WithArguments("System.Action<string>", "0").
WithLocation
(9, 28));
1701
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "s_data").WithArguments("field", "s_data").
WithLocation
(6, 27),
1704
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "s_data").WithArguments("C.s_data", "null").
WithLocation
(6, 27),
1707
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "NonexistentDelegateType").WithArguments("NonexistentDelegateType").
WithLocation
(9, 9));
1744
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field").WithArguments("C.field").
WithLocation
(5, 12),
1747
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "o").WithArguments("o").
WithLocation
(9, 16));
1755
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "field").WithArguments("C.field").
WithLocation
(5, 12),
1758
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").
WithLocation
(5, 20),
1761
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "o").WithArguments("o").
WithLocation
(9, 16),
1764
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(9, 20));
1821
Diagnostic(ErrorCode.ERR_NullableOptionNotAvailable).WithArguments("NullableContextOptions", "Enable", "7.3", "8.0").
WithLocation
(1, 1)
1934
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(10, 14));
2213
Diagnostic(ErrorCode.ERR_ImplicitlyTypedLocalCannotBeFixed, "o1 = o ?? new object()").
WithLocation
(6, 20));
2243
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableMultipleDeclarator, "var o5 = o1, o6 = o2").
WithLocation
(8, 14));
2541
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o3").
WithLocation
(10, 56));
2732
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "GetT").WithArguments("property", "GetT").
WithLocation
(4, 14));
2775
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "GetT").WithArguments("field", "GetT").
WithLocation
(4, 14),
2778
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "GetT").WithArguments("C<T>.GetT", "").
WithLocation
(4, 14));
2910
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "Event").
WithLocation
(9, 16)
3087
Diagnostic(ErrorCode.ERR_AmbigCall, "o1").WithArguments("CExt1.Add<T>(C, T)", "CExt2.Add<T>(C, T)").
WithLocation
(10, 23),
3090
Diagnostic(ErrorCode.ERR_AmbigCall, "Identity(o1 ??= new object())").WithArguments("CExt1.Add<T>(C, T)", "CExt2.Add<T>(C, T)").
WithLocation
(10, 27),
3093
Diagnostic(ErrorCode.ERR_AmbigCall, "o1").WithArguments("CExt1.Add<T>(C, T)", "CExt2.Add<T>(C, T)").
WithLocation
(10, 58),
3096
Diagnostic(ErrorCode.ERR_AmbigCall, "o2").WithArguments("CExt1.Add<T>(C, T)", "CExt2.Add<T>(C, T)").
WithLocation
(10, 62));
3241
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o1").WithArguments("u", "object? C<object?, object>.this[object u]").
WithLocation
(9, 19),
3244
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o1").WithArguments("u", "object? C<object?, object>.this[object u]").
WithLocation
(10, 23),
3247
Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o1").
WithLocation
(13, 25),
3250
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o1").WithArguments("u", "object C<object, object>.this[object u]").
WithLocation
(17, 19),
3253
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "o1").WithArguments("u", "object C<object, object>.this[object u]").
WithLocation
(18, 23));
3401
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 15));
3446
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(12, 15));
3483
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o1").
WithLocation
(9, 39));
3764
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "o1").
WithLocation
(9, 39));
3849
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "localFunc").WithArguments("localFunc").
WithLocation
(18, 18));
3967
Diagnostic(ErrorCode.ERR_InconsistentLambdaParameterUsage, "object").
WithLocation
(12, 29),
3970
Diagnostic(ErrorCode.ERR_InconsistentLambdaParameterUsage, "object?").
WithLocation
(12, 40),
3973
Diagnostic(ErrorCode.ERR_InconsistentLambdaParameterUsage, "o4").
WithLocation
(13, 48));
4036
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "localFunc").WithArguments("localFunc").
WithLocation
(18, 18),
4039
Diagnostic(ErrorCode.ERR_BadAttributeArgument, "o1").
WithLocation
(18, 31),
4042
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "o2").WithArguments("o3").
WithLocation
(18, 48));
4109
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "localFunc").WithArguments("localFunc").
WithLocation
(18, 18));
4267
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(4, 26));
4301
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "default").
WithLocation
(9, 7));
4768
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F(x1)").
WithLocation
(7, 16),
4771
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "default").
WithLocation
(15, 14),
4774
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "F(x2)").
WithLocation
(16, 16),
4777
Diagnostic(ErrorCode.WRN_NullReferenceReturn, "z2").
WithLocation
(17, 16));
5002
Diagnostic(ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, "a").WithArguments("Item1", "(T1, T2)", "comp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(7, 39),
5005
Diagnostic(ErrorCode.ERR_AmbigMember, "Item2").WithArguments("(T1, T2).Item2", "(T1, T2).Item2").
WithLocation
(19, 18)
5042
Diagnostic(ErrorCode.WRN_ConvertingNullableToNonNullable, "null").
WithLocation
(8, 20),
5051
}").WithArguments("lambda expression", "int").
WithLocation
(9, 21)
5106
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(12, 13));
5138
Diagnostic(ErrorCode.WRN_NullReferenceReceiver, "x").
WithLocation
(13, 13));
Symbols\Source\PropertyTests.cs (66)
76
Diagnostic(ErrorCode.ERR_AutoPropertyMustOverrideSet, "P").
WithLocation
(12, 25),
79
Diagnostic(ErrorCode.ERR_AutoPropertyMustOverrideSet, "P1").
WithLocation
(13, 25)
125
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Ps").WithArguments("C.Ps").
WithLocation
(9, 9),
128
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "P").WithArguments("C.P").
WithLocation
(14, 9),
131
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "C.Ps").WithArguments("C.Ps").
WithLocation
(15, 9),
134
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "S").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(24, 12),
137
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "Ps").WithArguments("S.Ps").
WithLocation
(27, 9),
140
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "P").WithArguments("S.P").
WithLocation
(32, 9),
143
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "S.Ps").WithArguments("S.Ps").
WithLocation
(33, 9));
158
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "a").WithArguments("struct field initializers", "10.0").
WithLocation
(4, 9),
161
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S").
WithLocation
(2, 8),
164
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "a").WithArguments("S", "a").
WithLocation
(5, 9),
167
Diagnostic(ErrorCode.WRN_UnreferencedField, "a").WithArguments("S.a").
WithLocation
(4, 9));
212
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "S").
WithLocation
(2, 8),
215
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "P").WithArguments("struct field initializers", "10.0").
WithLocation
(4, 16),
218
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "R").WithArguments("struct field initializers", "10.0").
WithLocation
(6, 20));
237
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "P").WithArguments("struct field initializers", "10.0").
WithLocation
(3, 16),
240
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "R").WithArguments("struct field initializers", "10.0").
WithLocation
(5, 20));
270
Diagnostic(ErrorCode.ERR_InstancePropertyInitializerInInterface, "P").
WithLocation
(3, 9));
299
Diagnostic(ErrorCode.ERR_AutoPropertyMustHaveGetAccessor, "set").
WithLocation
(4, 20),
302
Diagnostic(ErrorCode.ERR_AutoPropertyMustHaveGetAccessor, "set").
WithLocation
(5, 20));
317
Diagnostic(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, "P").
WithLocation
(3, 20));
331
Diagnostic(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, "P1").
WithLocation
(4, 29),
334
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "set").
WithLocation
(4, 39));
1169
Diagnostic(ErrorCode.ERR_ImportedCircularBase, "A.Goo").WithArguments("E").
WithLocation
(5, 11),
1172
Diagnostic(ErrorCode.ERR_NoImplicitConv, "A.Goo").WithArguments("E", "B").
WithLocation
(5, 11)
1491
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "new Indexers()[null]").WithArguments("Indexers.this[string]", "Indexers.get_Item(string)").
WithLocation
(4, 22));
1599
Diagnostic(ErrorCode.ERR_SameFullNameAggAgg, "A<int>").WithArguments("09f9df97-a228-4ca4-9b71-151909f205e6, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "A<T>", "09f9df97-a228-4ca4-9b71-151909f205e6, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(4, 16));
2052
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "B2.P").WithArguments("P", "object").
WithLocation
(6, 13),
2055
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "b.Q").WithArguments("Q", "object").
WithLocation
(8, 13));
2091
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "P").WithArguments("B.P[object]", "B.get_P(object)").
WithLocation
(6, 15));
2110
Diagnostic(ErrorCode.WRN_MethGrpToNonDel, "a.P").WithArguments("P", "object").
WithLocation
(6, 13));
2231
Diagnostic(ErrorCode.ERR_NonInvocableMemberCalled, "P4").WithArguments("B.P4[object]").
WithLocation
(9, 18),
2233
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P5").WithArguments("C", "P5").
WithLocation
(10, 18),
2235
Diagnostic(ErrorCode.ERR_NonInvocableMemberCalled, "P6").WithArguments("B.P6[object]").
WithLocation
(11, 18),
2237
Diagnostic(ErrorCode.ERR_NonInvocableMemberCalled, "P4").WithArguments("B.P4[object]").
WithLocation
(25, 15),
2239
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "P5").WithArguments("B", "P5").
WithLocation
(26, 15),
2241
Diagnostic(ErrorCode.ERR_NonInvocableMemberCalled, "P6").WithArguments("B.P6[object]").
WithLocation
(27, 15),
2243
Diagnostic(ErrorCode.ERR_NonInvocableMemberCalled, "P7").WithArguments("B.P7[object]").
WithLocation
(28, 15),
2245
Diagnostic(ErrorCode.ERR_BadAccess, "P8").WithArguments("A.P8()").
WithLocation
(29, 15),
2247
Diagnostic(ErrorCode.ERR_NonInvocableMemberCalled, "P9").WithArguments("B.P9[object]").
WithLocation
(30, 15));
2286
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "P1").WithArguments("A.P1[object]", "A.get_P1(object)").
WithLocation
(6, 15),
2288
Diagnostic(ErrorCode.ERR_BindToBogusProp1, "P2").WithArguments("A.P2[object]", "A.get_P2(object)").
WithLocation
(7, 15),
2290
Diagnostic(ErrorCode.ERR_BadAccess, "P3").WithArguments("A.P3[object]").
WithLocation
(8, 15));
2322
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P").WithArguments("A<object>.P[object]", "A<object>.get_P(object)", "A<object>.set_P(object, object)").
WithLocation
(6, 15),
2324
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "P").WithArguments("A<object>.P[object]", "A<object>.get_P(object)", "A<object>.set_P(object, object)").
WithLocation
(7, 11));
2452
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_2[y]").WithArguments("A2.this[object]", "A2.get_P(object)", "A2.set_P(ref object, object)").
WithLocation
(8, 9),
2454
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_2[x]").WithArguments("A2.this[object]", "A2.get_P(object)", "A2.set_P(ref object, object)").
WithLocation
(8, 17),
2456
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_3[y]").WithArguments("A3.this[object]", "A3.get_P(object)", "A3.set_P(object, ref object)").
WithLocation
(9, 9),
2458
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_3[x]").WithArguments("A3.this[object]", "A3.get_P(object)", "A3.set_P(object, ref object)").
WithLocation
(9, 17),
2460
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_4[y]").WithArguments("A4.this[object]", "A4.get_P(object)", "A4.set_P(object, object)").
WithLocation
(10, 9),
2462
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_4[x]").WithArguments("A4.this[object]", "A4.get_P(object)", "A4.set_P(object, object)").
WithLocation
(10, 17),
2464
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_5[y]").WithArguments("A5.this[object]", "A5.get_P(object)", "A5.set_P(ref object, object)").
WithLocation
(11, 9),
2466
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_5[x]").WithArguments("A5.this[object]", "A5.get_P(object)", "A5.set_P(ref object, object)").
WithLocation
(11, 17),
2468
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_6[y]").WithArguments("A6.this[object]", "A6.get_P(object)", "A6.set_P(object, ref object)").
WithLocation
(12, 9),
2470
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_6[x]").WithArguments("A6.this[object]", "A6.get_P(object)", "A6.set_P(object, ref object)").
WithLocation
(12, 17),
2472
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_7[ref y]").WithArguments("A7.this[ref object]", "A7.get_P(ref object)", "A7.set_P(object, object)").
WithLocation
(13, 9),
2474
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_7[ref x]").WithArguments("A7.this[ref object]", "A7.get_P(ref object)", "A7.set_P(object, object)").
WithLocation
(13, 21),
2476
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_8[ref y]").WithArguments("A8.this[ref object]", "A8.get_P(ref object)", "A8.set_P(ref object, object)").
WithLocation
(14, 9),
2478
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_8[ref x]").WithArguments("A8.this[ref object]", "A8.get_P(ref object)", "A8.set_P(ref object, object)").
WithLocation
(14, 21),
2480
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_9[ref y]").WithArguments("A9.this[ref object]", "A9.get_P(ref object)", "A9.set_P(object, ref object)").
WithLocation
(15, 9),
2482
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "_9[ref x]").WithArguments("A9.this[ref object]", "A9.get_P(ref object)", "A9.set_P(object, ref object)").
WithLocation
(15, 21));
2899
Diagnostic(ErrorCode.ERR_StackAllocConversionNotPossible, "stackalloc int[256]").WithArguments("int", "int*").
WithLocation
(4, 30)
2915
Diagnostic(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, "P").
WithLocation
(4, 17));
2932
Diagnostic(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, "set").
WithLocation
(5, 47));
2964
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "Prop1").WithArguments("readonly automatically implemented properties", "6").
WithLocation
(9, 19)
Symbols\Source\RecordTests.cs (55)
77
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "C").WithArguments("C", "C").
WithLocation
(4, 12),
80
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "C").
WithLocation
(4, 12)
109
Diagnostic(ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, "C").
WithLocation
(4, 12)
232
Diagnostic(ErrorCode.ERR_NotOverridableAPIInRecord, "Equals").WithArguments("C.Equals(C)").
WithLocation
(4, 17),
235
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("C").
WithLocation
(4, 17),
238
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Equals").WithArguments("Equals", "C").
WithLocation
(5, 26)
254
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "Equals").WithArguments("C.Equals(object)", "object.Equals(object)").
WithLocation
(4, 16),
257
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Equals").WithArguments("Equals", "C").
WithLocation
(4, 16)
273
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("C").
WithLocation
(10, 25)
315
Diagnostic(ErrorCode.WRN_RecordEqualsWithoutGetHashCode, "Equals").WithArguments("C").
WithLocation
(13, 17)
846
Diagnostic(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, "this").
WithLocation
(4, 25)
889
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(5, 25)
906
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(5, 25)
977
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "X").WithArguments("C.X").
WithLocation
(5, 17)
1045
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(5, 25)
1058
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("C.E").
WithLocation
(7, 25)
1123
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(int X, int Y)").
WithLocation
(13, 17)
1152
Diagnostic(ErrorCode.ERR_MultipleRecordParameterLists, "(int X)").
WithLocation
(13, 17)
1202
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(2, 1)
1218
Diagnostic(ErrorCode.ERR_IdentifierExpected, "class").
WithLocation
(2, 6),
1221
Diagnostic(ErrorCode.ERR_SemicolonExpected, "class").
WithLocation
(2, 6),
1224
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "data ").
WithLocation
(3, 1),
1227
Diagnostic(ErrorCode.ERR_IdentifierExpected, "class").
WithLocation
(3, 6),
1230
Diagnostic(ErrorCode.ERR_SemicolonExpected, "class").
WithLocation
(3, 6),
1233
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "X").WithArguments("X").
WithLocation
(3, 19),
1236
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Y").WithArguments("Y").
WithLocation
(3, 26),
1239
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "X").WithArguments("X").
WithLocation
(5, 20),
1242
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Y").WithArguments("Y").
WithLocation
(5, 27),
1245
Diagnostic(ErrorCode.ERR_IdentifierExpected, "struct").
WithLocation
(4, 6),
1248
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(4, 6),
1251
Diagnostic(ErrorCode.ERR_IdentifierExpected, "struct").
WithLocation
(5, 6),
1254
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(5, 6),
1257
Diagnostic(ErrorCode.ERR_SimpleProgramNotAnExecutable, "data ").
WithLocation
(2, 1),
1260
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "data").WithArguments("data").
WithLocation
(2, 1),
1263
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "data").WithArguments("data").
WithLocation
(3, 1),
1266
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "data").WithArguments("data").
WithLocation
(4, 1),
1269
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "data").WithArguments("data").
WithLocation
(5, 1)
1285
Diagnostic(ErrorCode.ERR_BadInheritanceFromRecord, "AbstractRecord").
WithLocation
(3, 19)
1305
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.EqualityContract").
WithLocation
(3, 8),
1308
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.Equals(A?)").
WithLocation
(3, 8),
1311
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "B").WithArguments("B.PrintMembers(System.Text.StringBuilder)").
WithLocation
(3, 8),
1314
Diagnostic(ErrorCode.ERR_NoCopyConstructorInBaseType, "B").WithArguments("A").
WithLocation
(3, 8),
1317
Diagnostic(ErrorCode.ERR_BadRecordBase, "A").
WithLocation
(3, 12),
1320
Diagnostic(ErrorCode.ERR_BadInheritanceFromRecord, "C").
WithLocation
(5, 11),
1323
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "C").WithArguments("C").
WithLocation
(6, 15),
1326
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "C").WithArguments("C").
WithLocation
(7, 12),
1329
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "C").
WithLocation
(8, 10)
1361
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "E").WithArguments("E.EqualityContract").
WithLocation
(3, 8),
1364
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "E").WithArguments("E.Equals(A?)").
WithLocation
(3, 8),
1367
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "E").WithArguments("E.PrintMembers(System.Text.StringBuilder)").
WithLocation
(3, 8),
1370
Diagnostic(ErrorCode.ERR_NoCopyConstructorInBaseType, "E").WithArguments("A").
WithLocation
(3, 8),
1373
Diagnostic(ErrorCode.ERR_BadRecordBase, "A").
WithLocation
(3, 12),
1376
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "C").WithArguments("C").
WithLocation
(4, 15),
1379
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "C").WithArguments("C").
WithLocation
(5, 12),
1382
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "C").
WithLocation
(6, 10)
Symbols\Source\UsingAliasTests.cs (15)
691
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "LongNamespace").WithArguments("LongNamespace").
WithLocation
(4, 19)
735
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "LongNamespace").WithArguments("LongNamespace").
WithLocation
(3, 15));
778
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(3, 43),
781
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(8, 12));
804
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x[0]").
WithLocation
(10, 17));
826
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x[0]").
WithLocation
(10, 17),
829
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x[0][0]").
WithLocation
(10, 17));
834
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(3, 43),
837
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(8, 12),
840
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x[0]").
WithLocation
(10, 17),
843
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "x[0][0]").
WithLocation
(10, 17));
865
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 43),
868
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 12)
891
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(2, 7),
894
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "M").
WithLocation
(6, 17));
Symbols\StaticAbstractMembersInInterfacesTests.cs (1691)
75
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 26),
78
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "10.0", "11.0").
WithLocation
(7, 25),
81
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M02").WithArguments("I1.M02()").
WithLocation
(7, 25),
84
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "10.0", "11.0").
WithLocation
(10, 24),
87
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M03").WithArguments("I1.M03()").
WithLocation
(10, 24),
90
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
93
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M04").WithArguments("I1.M04()").
WithLocation
(13, 26),
96
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "10.0", "11.0").
WithLocation
(16, 34),
99
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "10.0", "11.0").
WithLocation
(16, 34),
102
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("method", "I1.M05()").
WithLocation
(16, 34),
105
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
108
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "10.0", "11.0").
WithLocation
(19, 33),
111
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
114
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "10.0", "11.0").
WithLocation
(22, 35),
117
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
120
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "10.0", "11.0").
WithLocation
(25, 32),
123
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M08").WithArguments("I1.M08()").
WithLocation
(25, 32),
126
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
129
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "10.0", "11.0").
WithLocation
(28, 34),
132
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M09").WithArguments("I1.M09()").
WithLocation
(28, 34),
135
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33),
138
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "10.0", "11.0").
WithLocation
(31, 33),
141
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M10").WithArguments("I1.M10()").
WithLocation
(31, 33)
316
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 26),
319
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M01").WithArguments("I1.M01()").
WithLocation
(4, 26),
322
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "10.0", "11.0").
WithLocation
(7, 25),
325
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "10.0", "11.0").
WithLocation
(10, 24),
328
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
331
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "10.0", "11.0").
WithLocation
(16, 34),
334
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "10.0", "11.0").
WithLocation
(16, 34),
337
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M05").WithArguments("I1.M05()").
WithLocation
(16, 34),
340
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("method", "I1.M05()").
WithLocation
(16, 34),
343
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
346
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "10.0", "11.0").
WithLocation
(19, 33),
349
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M06").WithArguments("I1.M06()").
WithLocation
(19, 33),
352
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
355
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "10.0", "11.0").
WithLocation
(22, 35),
358
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M07").WithArguments("I1.M07()").
WithLocation
(22, 35),
361
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
364
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "10.0", "11.0").
WithLocation
(25, 32),
367
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
370
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "10.0", "11.0").
WithLocation
(28, 34),
373
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33),
376
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "10.0", "11.0").
WithLocation
(31, 33)
427
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M02").WithArguments("I1.M02()").
WithLocation
(7, 25),
430
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M03").WithArguments("I1.M03()").
WithLocation
(10, 24),
433
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
436
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M04").WithArguments("I1.M04()").
WithLocation
(13, 26),
439
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("method", "I1.M05()").
WithLocation
(16, 34),
442
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
445
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
448
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
451
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M08").WithArguments("I1.M08()").
WithLocation
(25, 32),
454
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
457
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M09").WithArguments("I1.M09()").
WithLocation
(28, 34),
460
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33),
463
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M10").WithArguments("I1.M10()").
WithLocation
(31, 33)
514
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M01").WithArguments("I1.M01()").
WithLocation
(4, 26),
517
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
520
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("method", "I1.M05()").
WithLocation
(16, 34),
523
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M05").WithArguments("I1.M05()").
WithLocation
(16, 34),
526
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
529
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M06").WithArguments("I1.M06()").
WithLocation
(19, 33),
532
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
535
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M07").WithArguments("I1.M07()").
WithLocation
(22, 35),
538
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
541
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
544
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33)
595
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "7.3", "11.0").
WithLocation
(4, 26),
598
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "7.3", "11.0").
WithLocation
(7, 25),
601
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M02").WithArguments("I1.M02()").
WithLocation
(7, 25),
604
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "7.3", "11.0").
WithLocation
(10, 24),
607
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M03").WithArguments("I1.M03()").
WithLocation
(10, 24),
610
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
613
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M04").WithArguments("static", "7.3", "8.0").
WithLocation
(13, 26),
616
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M04").WithArguments("I1.M04()").
WithLocation
(13, 26),
619
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "7.3", "11.0").
WithLocation
(16, 34),
622
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "7.3", "11.0").
WithLocation
(16, 34),
625
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("method", "I1.M05()").
WithLocation
(16, 34),
628
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
631
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "7.3", "11.0").
WithLocation
(19, 33),
634
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
637
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "7.3", "11.0").
WithLocation
(22, 35),
640
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
643
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "7.3", "11.0").
WithLocation
(25, 32),
646
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M08").WithArguments("I1.M08()").
WithLocation
(25, 32),
649
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
652
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "7.3", "11.0").
WithLocation
(28, 34),
655
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M09").WithArguments("I1.M09()").
WithLocation
(28, 34),
658
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33),
661
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "7.3", "11.0").
WithLocation
(31, 33),
664
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M10").WithArguments("I1.M10()").
WithLocation
(31, 33)
715
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "7.3", "11.0").
WithLocation
(4, 26),
718
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M01").WithArguments("I1.M01()").
WithLocation
(4, 26),
721
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "7.3", "11.0").
WithLocation
(7, 25),
724
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "7.3", "11.0").
WithLocation
(10, 24),
727
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
730
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M04").WithArguments("default interface implementation", "8.0").
WithLocation
(13, 26),
733
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "7.3", "11.0").
WithLocation
(16, 34),
736
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "7.3", "11.0").
WithLocation
(16, 34),
739
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M05").WithArguments("I1.M05()").
WithLocation
(16, 34),
742
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("method", "I1.M05()").
WithLocation
(16, 34),
745
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
748
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "7.3", "11.0").
WithLocation
(19, 33),
751
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M06").WithArguments("I1.M06()").
WithLocation
(19, 33),
754
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
757
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "7.3", "11.0").
WithLocation
(22, 35),
760
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M07").WithArguments("I1.M07()").
WithLocation
(22, 35),
763
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
766
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "7.3", "11.0").
WithLocation
(25, 32),
769
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
772
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "7.3", "11.0").
WithLocation
(28, 34),
775
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33),
778
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "7.3", "11.0").
WithLocation
(31, 33)
821
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I1").WithArguments("sealed").
WithLocation
(4, 19),
824
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(9, 5),
827
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(9, 5),
830
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I2").WithArguments("sealed").
WithLocation
(9, 27),
833
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(14, 5),
836
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(14, 5),
839
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "I2").WithArguments("I2", "I2").
WithLocation
(14, 20),
842
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(19, 5),
845
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(19, 5),
848
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(24, 5),
851
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(24, 5),
854
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I3").WithArguments("sealed").
WithLocation
(24, 27),
857
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "I3").WithArguments("I3", "I3").
WithLocation
(24, 27)
906
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(4, 19),
909
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "I2").WithArguments("I2.I2()").
WithLocation
(4, 27),
912
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "I2").WithArguments("I2").
WithLocation
(4, 27),
915
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(9, 12),
918
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "I2").WithArguments("I2").
WithLocation
(9, 20),
921
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "I2").WithArguments("I2", "I2").
WithLocation
(9, 20),
924
Diagnostic(ErrorCode.ERR_ReturnExpected, "I2").WithArguments("I2.I2()").
WithLocation
(9, 20),
927
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(14, 12),
930
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "I3").WithArguments("I3.I3()").
WithLocation
(14, 20),
933
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "I3").WithArguments("I3").
WithLocation
(14, 20),
936
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(19, 19),
939
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "I3").WithArguments("I3").
WithLocation
(19, 27),
942
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "I3").WithArguments("I3", "I3").
WithLocation
(19, 27),
945
Diagnostic(ErrorCode.ERR_ReturnExpected, "I3").WithArguments("I3.I3()").
WithLocation
(19, 27)
979
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I1").WithArguments(modifier.Trim()).
WithLocation
(4, 21),
982
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I2").WithArguments(modifier.Trim()).
WithLocation
(9, 21),
985
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "I3").WithArguments("I3.I3()").
WithLocation
(14, 12)
1150
Diagnostic(ErrorCode.ERR_PartialMethodInvalidModifier, "M01").
WithLocation
(4, 34)
1187
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "M01").WithArguments("I1.M01()").
WithLocation
(4, 33)
1224
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "M01").WithArguments("I1.M01()").
WithLocation
(4, 40)
1265
Diagnostic(ErrorCode.ERR_PartialMethodInvalidModifier, "M01").
WithLocation
(4, 34),
1268
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M01").WithArguments("I1.M01()").
WithLocation
(8, 34),
1271
Diagnostic(ErrorCode.ERR_PartialMethodInvalidModifier, "M01").
WithLocation
(8, 34)
1377
Diagnostic(ErrorCode.ERR_PartialMethodInvalidModifier, "M01").
WithLocation
(4, 34)
1432
Diagnostic(ErrorCode.ERR_PartialMethodAccessibilityDifference, "M01").
WithLocation
(8, 25),
1435
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M01").
WithLocation
(8, 25)
1490
Diagnostic(ErrorCode.ERR_PartialMethodExtendedModDifference, "M01").
WithLocation
(8, 32)
1545
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M01").WithArguments("I1.M01()").
WithLocation
(8, 34),
1548
Diagnostic(ErrorCode.ERR_PartialMethodInvalidModifier, "M01").
WithLocation
(8, 34)
1617
Diagnostic(ErrorCode.ERR_VirtualPrivate, "M01").WithArguments("I1.M01()").
WithLocation
(4, 34),
1620
Diagnostic(ErrorCode.ERR_VirtualPrivate, "P01").WithArguments("I1.P01").
WithLocation
(5, 34),
1623
Diagnostic(ErrorCode.ERR_VirtualPrivate, "E01").WithArguments("I1.E01").
WithLocation
(6, 49),
1626
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, "+").WithArguments("I1.operator +(I1)").
WithLocation
(7, 40)
1675
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 26),
1678
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "10.0", "11.0").
WithLocation
(7, 25),
1681
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "10.0", "11.0").
WithLocation
(10, 24),
1684
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
1687
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "10.0", "11.0").
WithLocation
(16, 34),
1690
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "10.0", "11.0").
WithLocation
(16, 34),
1693
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("property", "I1.M05").
WithLocation
(16, 34),
1696
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
1699
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "10.0", "11.0").
WithLocation
(19, 33),
1702
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
1705
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "10.0", "11.0").
WithLocation
(22, 35),
1708
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
1711
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "10.0", "11.0").
WithLocation
(25, 32),
1714
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
1717
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "10.0", "11.0").
WithLocation
(28, 34),
1720
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33),
1723
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "10.0", "11.0").
WithLocation
(31, 33)
2002
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 26),
2005
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M01.get").
WithLocation
(4, 32),
2008
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "10.0", "11.0").
WithLocation
(7, 25),
2011
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "10.0", "11.0").
WithLocation
(10, 24),
2014
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
2017
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "10.0", "11.0").
WithLocation
(16, 34),
2020
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "10.0", "11.0").
WithLocation
(16, 34),
2023
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("property", "I1.M05").
WithLocation
(16, 34),
2026
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M05.get").
WithLocation
(16, 40),
2029
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
2032
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "10.0", "11.0").
WithLocation
(19, 33),
2035
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M06.get").
WithLocation
(19, 39),
2038
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
2041
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "10.0", "11.0").
WithLocation
(22, 35),
2044
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M07.get").
WithLocation
(22, 41),
2047
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
2050
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "10.0", "11.0").
WithLocation
(25, 32),
2053
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
2056
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "10.0", "11.0").
WithLocation
(28, 34),
2059
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33),
2062
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "10.0", "11.0").
WithLocation
(31, 33)
2113
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
2116
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("property", "I1.M05").
WithLocation
(16, 34),
2119
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
2122
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
2125
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
2128
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
2131
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33)
2182
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M01.get").
WithLocation
(4, 32),
2185
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
2188
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("property", "I1.M05").
WithLocation
(16, 34),
2191
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M05.get").
WithLocation
(16, 40),
2194
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
2197
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M06.get").
WithLocation
(19, 39),
2200
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
2203
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M07.get").
WithLocation
(22, 41),
2206
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
2209
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
2212
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33)
2263
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "7.3", "11.0").
WithLocation
(4, 26),
2266
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "7.3", "11.0").
WithLocation
(7, 25),
2269
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "7.3", "11.0").
WithLocation
(10, 24),
2272
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
2275
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M04").WithArguments("static", "7.3", "8.0").
WithLocation
(13, 26),
2278
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "7.3", "11.0").
WithLocation
(16, 34),
2281
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "7.3", "11.0").
WithLocation
(16, 34),
2284
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("property", "I1.M05").
WithLocation
(16, 34),
2287
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
2290
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "7.3", "11.0").
WithLocation
(19, 33),
2293
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
2296
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "7.3", "11.0").
WithLocation
(22, 35),
2299
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
2302
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "7.3", "11.0").
WithLocation
(25, 32),
2305
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
2308
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "7.3", "11.0").
WithLocation
(28, 34),
2311
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33),
2314
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "7.3", "11.0").
WithLocation
(31, 33)
2365
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "7.3", "11.0").
WithLocation
(4, 26),
2368
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M01.get").
WithLocation
(4, 32),
2371
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "7.3", "11.0").
WithLocation
(7, 25),
2374
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "7.3", "11.0").
WithLocation
(10, 24),
2377
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 26),
2380
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M04").WithArguments("default interface implementation", "8.0").
WithLocation
(13, 26),
2383
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "7.3", "11.0").
WithLocation
(16, 34),
2386
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "7.3", "11.0").
WithLocation
(16, 34),
2389
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("property", "I1.M05").
WithLocation
(16, 34),
2392
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M05.get").
WithLocation
(16, 40),
2395
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 33),
2398
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "7.3", "11.0").
WithLocation
(19, 33),
2401
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M06.get").
WithLocation
(19, 39),
2404
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 35),
2407
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "7.3", "11.0").
WithLocation
(22, 35),
2410
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("I1.M07.get").
WithLocation
(22, 41),
2413
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 32),
2416
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "7.3", "11.0").
WithLocation
(25, 32),
2419
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 34),
2422
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "7.3", "11.0").
WithLocation
(28, 34),
2425
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 33),
2428
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "7.3", "11.0").
WithLocation
(31, 33)
2481
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 29),
2484
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "10.0", "11.0").
WithLocation
(7, 28),
2487
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "10.0", "11.0").
WithLocation
(10, 27),
2490
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 29),
2493
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "10.0", "11.0").
WithLocation
(16, 37),
2496
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "10.0", "11.0").
WithLocation
(16, 37),
2499
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("event", "I1.M05").
WithLocation
(16, 37),
2502
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 36),
2505
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "10.0", "11.0").
WithLocation
(19, 36),
2508
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 38),
2511
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "10.0", "11.0").
WithLocation
(22, 38),
2514
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 35),
2517
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "10.0", "11.0").
WithLocation
(25, 35),
2520
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 37),
2523
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "10.0", "11.0").
WithLocation
(28, 37),
2526
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 36),
2529
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "10.0", "11.0").
WithLocation
(31, 36)
2816
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 29),
2819
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M01").
WithLocation
(4, 33),
2822
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "10.0", "11.0").
WithLocation
(7, 28),
2825
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "10.0", "11.0").
WithLocation
(10, 27),
2828
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 29),
2831
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "10.0", "11.0").
WithLocation
(16, 37),
2834
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "10.0", "11.0").
WithLocation
(16, 37),
2837
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("event", "I1.M05").
WithLocation
(16, 37),
2840
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M05").
WithLocation
(16, 41),
2843
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 36),
2846
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "10.0", "11.0").
WithLocation
(19, 36),
2849
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M06").
WithLocation
(19, 40),
2852
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 38),
2855
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "10.0", "11.0").
WithLocation
(22, 38),
2858
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M07").
WithLocation
(22, 42),
2861
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 35),
2864
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "10.0", "11.0").
WithLocation
(25, 35),
2867
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 37),
2870
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "10.0", "11.0").
WithLocation
(28, 37),
2873
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 36),
2876
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "10.0", "11.0").
WithLocation
(31, 36)
2929
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 29),
2932
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("event", "I1.M05").
WithLocation
(16, 37),
2935
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 36),
2938
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 38),
2941
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 35),
2944
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 37),
2947
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 36)
2999
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M01").
WithLocation
(4, 33),
3002
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 29),
3005
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("event", "I1.M05").
WithLocation
(16, 37),
3008
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M05").
WithLocation
(16, 41),
3011
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 36),
3014
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M06").
WithLocation
(19, 40),
3017
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 38),
3020
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M07").
WithLocation
(22, 42),
3023
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 35),
3026
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 37),
3029
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 36)
3082
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "7.3", "11.0").
WithLocation
(4, 29),
3085
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "7.3", "11.0").
WithLocation
(7, 28),
3088
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "7.3", "11.0").
WithLocation
(10, 27),
3091
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 29),
3094
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M04").WithArguments("static", "7.3", "8.0").
WithLocation
(13, 29),
3097
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "7.3", "11.0").
WithLocation
(16, 37),
3100
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "7.3", "11.0").
WithLocation
(16, 37),
3103
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("event", "I1.M05").
WithLocation
(16, 37),
3106
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 36),
3109
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "7.3", "11.0").
WithLocation
(19, 36),
3112
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 38),
3115
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "7.3", "11.0").
WithLocation
(22, 38),
3118
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 35),
3121
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "7.3", "11.0").
WithLocation
(25, 35),
3124
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 37),
3127
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "7.3", "11.0").
WithLocation
(28, 37),
3130
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 36),
3133
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "7.3", "11.0").
WithLocation
(31, 36)
3185
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("abstract", "7.3", "11.0").
WithLocation
(4, 29),
3188
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M01").
WithLocation
(4, 33),
3191
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments("virtual", "7.3", "11.0").
WithLocation
(7, 28),
3194
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M03").WithArguments("sealed", "7.3", "11.0").
WithLocation
(10, 27),
3197
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M04").WithArguments("override").
WithLocation
(13, 29),
3200
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "M04").WithArguments("default interface implementation", "8.0").
WithLocation
(13, 29),
3203
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("abstract", "7.3", "11.0").
WithLocation
(16, 37),
3206
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M05").WithArguments("virtual", "7.3", "11.0").
WithLocation
(16, 37),
3209
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M05").WithArguments("event", "I1.M05").
WithLocation
(16, 37),
3212
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M05").
WithLocation
(16, 41),
3215
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M06").WithArguments("sealed").
WithLocation
(19, 36),
3218
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M06").WithArguments("abstract", "7.3", "11.0").
WithLocation
(19, 36),
3221
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M06").
WithLocation
(19, 40),
3224
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M07").WithArguments("override").
WithLocation
(22, 38),
3227
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M07").WithArguments("abstract", "7.3", "11.0").
WithLocation
(22, 38),
3230
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.M07").
WithLocation
(22, 42),
3233
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M08").WithArguments("sealed").
WithLocation
(25, 35),
3236
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M08").WithArguments("virtual", "7.3", "11.0").
WithLocation
(25, 35),
3239
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M09").WithArguments("override").
WithLocation
(28, 37),
3242
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M09").WithArguments("virtual", "7.3", "11.0").
WithLocation
(28, 37),
3245
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M10").WithArguments("override").
WithLocation
(31, 36),
3248
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M10").WithArguments("sealed", "7.3", "11.0").
WithLocation
(31, 36)
3299
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "+").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 32),
3302
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "-").WithArguments("virtual", "10.0", "11.0").
WithLocation
(7, 31),
3305
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "-").WithArguments("I1.operator -(I1)").
WithLocation
(7, 31),
3308
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "++").WithArguments("sealed", "10.0", "11.0").
WithLocation
(10, 30),
3311
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "++").WithArguments("I1.operator ++(I1)").
WithLocation
(10, 30),
3314
Diagnostic(ErrorCode.ERR_BadMemberFlag, "--").WithArguments("override").
WithLocation
(13, 32),
3317
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "--").WithArguments("I1.operator --(I1)").
WithLocation
(13, 32),
3320
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!").WithArguments("abstract", "10.0", "11.0").
WithLocation
(16, 40),
3323
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "!").WithArguments("method", "I1.operator !(I1)").
WithLocation
(16, 40),
3326
Diagnostic(ErrorCode.ERR_BadMemberFlag, "~").WithArguments("sealed").
WithLocation
(19, 39),
3329
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "~").WithArguments("abstract", "10.0", "11.0").
WithLocation
(19, 39),
3332
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("override").
WithLocation
(22, 41),
3335
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "+").WithArguments("abstract", "10.0", "11.0").
WithLocation
(22, 41),
3338
Diagnostic(ErrorCode.ERR_BadMemberFlag, "-").WithArguments("sealed").
WithLocation
(25, 38),
3341
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "-").WithArguments("virtual", "10.0", "11.0").
WithLocation
(25, 38),
3344
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "-").WithArguments("I1.operator -(I1, I1)").
WithLocation
(25, 38),
3347
Diagnostic(ErrorCode.ERR_BadMemberFlag, "*").WithArguments("override").
WithLocation
(28, 40),
3350
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "*").WithArguments("virtual", "10.0", "11.0").
WithLocation
(28, 40),
3353
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "*").WithArguments("I1.operator *(I1, I1)").
WithLocation
(28, 40),
3356
Diagnostic(ErrorCode.ERR_BadMemberFlag, "/").WithArguments("override").
WithLocation
(31, 39),
3359
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "/").WithArguments("sealed", "10.0", "11.0").
WithLocation
(31, 39),
3362
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "/").WithArguments("I1.operator /(I1, I1)").
WithLocation
(31, 39)
3537
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "+").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 32),
3540
Diagnostic(ErrorCode.ERR_AbstractHasBody, "+").WithArguments("I1.operator +(I1)").
WithLocation
(4, 32),
3543
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "-").WithArguments("virtual", "10.0", "11.0").
WithLocation
(7, 31),
3546
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "++").WithArguments("sealed", "10.0", "11.0").
WithLocation
(10, 30),
3549
Diagnostic(ErrorCode.ERR_BadMemberFlag, "--").WithArguments("override").
WithLocation
(13, 32),
3552
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!").WithArguments("abstract", "10.0", "11.0").
WithLocation
(16, 40),
3555
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "!").WithArguments("method", "I1.operator !(I1)").
WithLocation
(16, 40),
3558
Diagnostic(ErrorCode.ERR_BadMemberFlag, "~").WithArguments("sealed").
WithLocation
(19, 39),
3561
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "~").WithArguments("abstract", "10.0", "11.0").
WithLocation
(19, 39),
3564
Diagnostic(ErrorCode.ERR_AbstractHasBody, "~").WithArguments("I1.operator ~(I1)").
WithLocation
(19, 39),
3567
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("override").
WithLocation
(22, 41),
3570
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "+").WithArguments("abstract", "10.0", "11.0").
WithLocation
(22, 41),
3573
Diagnostic(ErrorCode.ERR_AbstractHasBody, "+").WithArguments("I1.operator +(I1, I1)").
WithLocation
(22, 41),
3576
Diagnostic(ErrorCode.ERR_BadMemberFlag, "-").WithArguments("sealed").
WithLocation
(25, 38),
3579
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "-").WithArguments("virtual", "10.0", "11.0").
WithLocation
(25, 38),
3582
Diagnostic(ErrorCode.ERR_BadMemberFlag, "*").WithArguments("override").
WithLocation
(28, 40),
3585
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "*").WithArguments("virtual", "10.0", "11.0").
WithLocation
(28, 40),
3588
Diagnostic(ErrorCode.ERR_BadMemberFlag, "/").WithArguments("override").
WithLocation
(31, 39),
3591
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "/").WithArguments("sealed", "10.0", "11.0").
WithLocation
(31, 39)
3642
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "-").WithArguments("I1.operator -(I1)").
WithLocation
(7, 31),
3645
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "++").WithArguments("I1.operator ++(I1)").
WithLocation
(10, 30),
3648
Diagnostic(ErrorCode.ERR_BadMemberFlag, "--").WithArguments("override").
WithLocation
(13, 32),
3651
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "--").WithArguments("I1.operator --(I1)").
WithLocation
(13, 32),
3654
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "!").WithArguments("method", "I1.operator !(I1)").
WithLocation
(16, 40),
3657
Diagnostic(ErrorCode.ERR_BadMemberFlag, "~").WithArguments("sealed").
WithLocation
(19, 39),
3660
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("override").
WithLocation
(22, 41),
3663
Diagnostic(ErrorCode.ERR_BadMemberFlag, "-").WithArguments("sealed").
WithLocation
(25, 38),
3666
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "-").WithArguments("I1.operator -(I1, I1)").
WithLocation
(25, 38),
3669
Diagnostic(ErrorCode.ERR_BadMemberFlag, "*").WithArguments("override").
WithLocation
(28, 40),
3672
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "*").WithArguments("I1.operator *(I1, I1)").
WithLocation
(28, 40),
3675
Diagnostic(ErrorCode.ERR_BadMemberFlag, "/").WithArguments("override").
WithLocation
(31, 39),
3678
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "/").WithArguments("I1.operator /(I1, I1)").
WithLocation
(31, 39)
3729
Diagnostic(ErrorCode.ERR_AbstractHasBody, "+").WithArguments("I1.operator +(I1)").
WithLocation
(4, 32),
3732
Diagnostic(ErrorCode.ERR_BadMemberFlag, "--").WithArguments("override").
WithLocation
(13, 32),
3735
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "!").WithArguments("method", "I1.operator !(I1)").
WithLocation
(16, 40),
3738
Diagnostic(ErrorCode.ERR_BadMemberFlag, "~").WithArguments("sealed").
WithLocation
(19, 39),
3741
Diagnostic(ErrorCode.ERR_AbstractHasBody, "~").WithArguments("I1.operator ~(I1)").
WithLocation
(19, 39),
3744
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("override").
WithLocation
(22, 41),
3747
Diagnostic(ErrorCode.ERR_AbstractHasBody, "+").WithArguments("I1.operator +(I1, I1)").
WithLocation
(22, 41),
3750
Diagnostic(ErrorCode.ERR_BadMemberFlag, "-").WithArguments("sealed").
WithLocation
(25, 38),
3753
Diagnostic(ErrorCode.ERR_BadMemberFlag, "*").WithArguments("override").
WithLocation
(28, 40),
3756
Diagnostic(ErrorCode.ERR_BadMemberFlag, "/").WithArguments("override").
WithLocation
(31, 39)
3807
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "+").WithArguments("abstract", "7.3", "11.0").
WithLocation
(4, 32),
3810
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "-").WithArguments("virtual", "7.3", "11.0").
WithLocation
(7, 31),
3813
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "-").WithArguments("I1.operator -(I1)").
WithLocation
(7, 31),
3816
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "++").WithArguments("sealed", "7.3", "11.0").
WithLocation
(10, 30),
3819
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "++").WithArguments("I1.operator ++(I1)").
WithLocation
(10, 30),
3822
Diagnostic(ErrorCode.ERR_BadMemberFlag, "--").WithArguments("override").
WithLocation
(13, 32),
3825
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "--").WithArguments("default interface implementation", "8.0").
WithLocation
(13, 32),
3828
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "--").WithArguments("I1.operator --(I1)").
WithLocation
(13, 32),
3831
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!").WithArguments("abstract", "7.3", "11.0").
WithLocation
(16, 40),
3834
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "!").WithArguments("method", "I1.operator !(I1)").
WithLocation
(16, 40),
3837
Diagnostic(ErrorCode.ERR_BadMemberFlag, "~").WithArguments("sealed").
WithLocation
(19, 39),
3840
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "~").WithArguments("abstract", "7.3", "11.0").
WithLocation
(19, 39),
3843
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("override").
WithLocation
(22, 41),
3846
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "+").WithArguments("abstract", "7.3", "11.0").
WithLocation
(22, 41),
3849
Diagnostic(ErrorCode.ERR_BadMemberFlag, "-").WithArguments("sealed").
WithLocation
(25, 38),
3852
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "-").WithArguments("virtual", "7.3", "11.0").
WithLocation
(25, 38),
3855
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "-").WithArguments("I1.operator -(I1, I1)").
WithLocation
(25, 38),
3858
Diagnostic(ErrorCode.ERR_BadMemberFlag, "*").WithArguments("override").
WithLocation
(28, 40),
3861
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "*").WithArguments("virtual", "7.3", "11.0").
WithLocation
(28, 40),
3864
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "*").WithArguments("I1.operator *(I1, I1)").
WithLocation
(28, 40),
3867
Diagnostic(ErrorCode.ERR_BadMemberFlag, "/").WithArguments("override").
WithLocation
(31, 39),
3870
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "/").WithArguments("sealed", "7.3", "11.0").
WithLocation
(31, 39),
3873
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "/").WithArguments("I1.operator /(I1, I1)").
WithLocation
(31, 39)
3924
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "+").WithArguments("abstract", "7.3", "11.0").
WithLocation
(4, 32),
3927
Diagnostic(ErrorCode.ERR_AbstractHasBody, "+").WithArguments("I1.operator +(I1)").
WithLocation
(4, 32),
3930
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "-").WithArguments("virtual", "7.3", "11.0").
WithLocation
(7, 31),
3933
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "++").WithArguments("sealed", "7.3", "11.0").
WithLocation
(10, 30),
3936
Diagnostic(ErrorCode.ERR_BadMemberFlag, "--").WithArguments("override").
WithLocation
(13, 32),
3939
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "--").WithArguments("default interface implementation", "8.0").
WithLocation
(13, 32),
3942
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!").WithArguments("abstract", "7.3", "11.0").
WithLocation
(16, 40),
3945
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "!").WithArguments("method", "I1.operator !(I1)").
WithLocation
(16, 40),
3948
Diagnostic(ErrorCode.ERR_BadMemberFlag, "~").WithArguments("sealed").
WithLocation
(19, 39),
3951
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "~").WithArguments("abstract", "7.3", "11.0").
WithLocation
(19, 39),
3954
Diagnostic(ErrorCode.ERR_AbstractHasBody, "~").WithArguments("I1.operator ~(I1)").
WithLocation
(19, 39),
3957
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("override").
WithLocation
(22, 41),
3960
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "+").WithArguments("abstract", "7.3", "11.0").
WithLocation
(22, 41),
3963
Diagnostic(ErrorCode.ERR_AbstractHasBody, "+").WithArguments("I1.operator +(I1, I1)").
WithLocation
(22, 41),
3966
Diagnostic(ErrorCode.ERR_BadMemberFlag, "-").WithArguments("sealed").
WithLocation
(25, 38),
3969
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "-").WithArguments("virtual", "7.3", "11.0").
WithLocation
(25, 38),
3972
Diagnostic(ErrorCode.ERR_BadMemberFlag, "*").WithArguments("override").
WithLocation
(28, 40),
3975
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "*").WithArguments("virtual", "7.3", "11.0").
WithLocation
(28, 40),
3978
Diagnostic(ErrorCode.ERR_BadMemberFlag, "/").WithArguments("override").
WithLocation
(31, 39),
3981
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "/").WithArguments("sealed", "7.3", "11.0").
WithLocation
(31, 39)
4020
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments("abstract", "7.3", "11.0").
WithLocation
(4, 34),
4023
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments("abstract", "7.3", "11.0").
WithLocation
(6, 34),
4026
Diagnostic(ErrorCode.ERR_AbstractHasBody, "!=").WithArguments("I1.operator !=(I1, I1)").
WithLocation
(6, 34),
4029
Diagnostic(ErrorCode.ERR_BadMemberFlag, "==").WithArguments("sealed").
WithLocation
(11, 32),
4032
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "==").
WithLocation
(11, 32),
4035
Diagnostic(ErrorCode.ERR_BadMemberFlag, "!=").WithArguments("sealed").
WithLocation
(13, 32),
4038
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "!=").
WithLocation
(13, 32),
4041
Diagnostic(ErrorCode.ERR_BadMemberFlag, "==").WithArguments("sealed").
WithLocation
(18, 41),
4044
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments("abstract", "7.3", "11.0").
WithLocation
(18, 41),
4047
Diagnostic(ErrorCode.ERR_BadMemberFlag, "!=").WithArguments("sealed").
WithLocation
(20, 41),
4050
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments("abstract", "7.3", "11.0").
WithLocation
(20, 41),
4053
Diagnostic(ErrorCode.ERR_AbstractHasBody, "!=").WithArguments("I3.operator !=(I3, I3)").
WithLocation
(20, 41)
4065
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 34),
4068
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments("abstract", "10.0", "11.0").
WithLocation
(6, 34),
4071
Diagnostic(ErrorCode.ERR_AbstractHasBody, "!=").WithArguments("I1.operator !=(I1, I1)").
WithLocation
(6, 34),
4074
Diagnostic(ErrorCode.ERR_BadMemberFlag, "==").WithArguments("sealed").
WithLocation
(11, 32),
4077
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "==").
WithLocation
(11, 32),
4080
Diagnostic(ErrorCode.ERR_BadMemberFlag, "!=").WithArguments("sealed").
WithLocation
(13, 32),
4083
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "!=").
WithLocation
(13, 32),
4086
Diagnostic(ErrorCode.ERR_BadMemberFlag, "==").WithArguments("sealed").
WithLocation
(18, 41),
4089
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments("abstract", "10.0", "11.0").
WithLocation
(18, 41),
4092
Diagnostic(ErrorCode.ERR_BadMemberFlag, "!=").WithArguments("sealed").
WithLocation
(20, 41),
4095
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments("abstract", "10.0", "11.0").
WithLocation
(20, 41),
4098
Diagnostic(ErrorCode.ERR_AbstractHasBody, "!=").WithArguments("I3.operator !=(I3, I3)").
WithLocation
(20, 41)
4110
Diagnostic(ErrorCode.ERR_AbstractHasBody, "!=").WithArguments("I1.operator !=(I1, I1)").
WithLocation
(6, 34),
4113
Diagnostic(ErrorCode.ERR_BadMemberFlag, "==").WithArguments("sealed").
WithLocation
(11, 32),
4116
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "==").
WithLocation
(11, 32),
4119
Diagnostic(ErrorCode.ERR_BadMemberFlag, "!=").WithArguments("sealed").
WithLocation
(13, 32),
4122
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "!=").
WithLocation
(13, 32),
4125
Diagnostic(ErrorCode.ERR_BadMemberFlag, "==").WithArguments("sealed").
WithLocation
(18, 41),
4128
Diagnostic(ErrorCode.ERR_BadMemberFlag, "!=").WithArguments("sealed").
WithLocation
(20, 41),
4131
Diagnostic(ErrorCode.ERR_AbstractHasBody, "!=").WithArguments("I3.operator !=(I3, I3)").
WithLocation
(20, 41)
4212
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("abstract", "7.3", "11.0").
WithLocation
(4, 39),
4215
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(4, 39),
4218
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "I1").WithArguments("abstract", "7.3", "11.0").
WithLocation
(6, 39),
4221
Diagnostic(ErrorCode.ERR_AbstractHasBody, "I1").WithArguments("I1.explicit operator I1(bool)").
WithLocation
(6, 39),
4224
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I1").WithArguments("I1.explicit operator I1(bool)").
WithLocation
(6, 39),
4227
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("sealed").
WithLocation
(11, 37),
4230
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(11, 37),
4233
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I2.implicit operator int(I2)").
WithLocation
(11, 37),
4236
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I2").WithArguments("sealed").
WithLocation
(13, 37),
4239
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "I2").
WithLocation
(13, 37),
4242
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I2").WithArguments("I2.explicit operator I2(bool)").
WithLocation
(13, 37),
4245
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("sealed").
WithLocation
(18, 46),
4248
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("abstract", "7.3", "11.0").
WithLocation
(18, 46),
4251
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I3.implicit operator int(I3)").
WithLocation
(18, 46),
4254
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I3").WithArguments("sealed").
WithLocation
(20, 46),
4257
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "I3").WithArguments("abstract", "7.3", "11.0").
WithLocation
(20, 46),
4260
Diagnostic(ErrorCode.ERR_AbstractHasBody, "I3").WithArguments("I3.explicit operator I3(bool)").
WithLocation
(20, 46),
4263
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I3").WithArguments("I3.explicit operator I3(bool)").
WithLocation
(20, 46)
4275
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("abstract", "10.0", "11.0").
WithLocation
(4, 39),
4278
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(4, 39),
4281
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "I1").WithArguments("abstract", "10.0", "11.0").
WithLocation
(6, 39),
4284
Diagnostic(ErrorCode.ERR_AbstractHasBody, "I1").WithArguments("I1.explicit operator I1(bool)").
WithLocation
(6, 39),
4287
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I1").WithArguments("I1.explicit operator I1(bool)").
WithLocation
(6, 39),
4290
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("sealed").
WithLocation
(11, 37),
4293
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(11, 37),
4296
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I2.implicit operator int(I2)").
WithLocation
(11, 37),
4299
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I2").WithArguments("sealed").
WithLocation
(13, 37),
4302
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "I2").
WithLocation
(13, 37),
4305
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I2").WithArguments("I2.explicit operator I2(bool)").
WithLocation
(13, 37),
4308
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("sealed").
WithLocation
(18, 46),
4311
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("abstract", "10.0", "11.0").
WithLocation
(18, 46),
4314
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I3.implicit operator int(I3)").
WithLocation
(18, 46),
4317
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I3").WithArguments("sealed").
WithLocation
(20, 46),
4320
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "I3").WithArguments("abstract", "10.0", "11.0").
WithLocation
(20, 46),
4323
Diagnostic(ErrorCode.ERR_AbstractHasBody, "I3").WithArguments("I3.explicit operator I3(bool)").
WithLocation
(20, 46),
4326
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I3").WithArguments("I3.explicit operator I3(bool)").
WithLocation
(20, 46)
4338
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(4, 39),
4341
Diagnostic(ErrorCode.ERR_AbstractHasBody, "I1").WithArguments("I1.explicit operator I1(bool)").
WithLocation
(6, 39),
4344
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I1").WithArguments("I1.explicit operator I1(bool)").
WithLocation
(6, 39),
4347
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("sealed").
WithLocation
(11, 37),
4350
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I2.implicit operator int(I2)").
WithLocation
(11, 37),
4353
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(11, 37),
4356
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I2").WithArguments("sealed").
WithLocation
(13, 37),
4359
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I2").WithArguments("I2.explicit operator I2(bool)").
WithLocation
(13, 37),
4362
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "I2").
WithLocation
(13, 37),
4365
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("sealed").
WithLocation
(18, 46),
4368
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I3.implicit operator int(I3)").
WithLocation
(18, 46),
4371
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I3").WithArguments("sealed").
WithLocation
(20, 46),
4374
Diagnostic(ErrorCode.ERR_AbstractHasBody, "I3").WithArguments("I3.explicit operator I3(bool)").
WithLocation
(20, 46),
4377
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I3").WithArguments("I3.explicit operator I3(bool)").
WithLocation
(20, 46)
4458
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments("virtual", "7.3", "11.0").
WithLocation
(4, 33),
4461
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "==").WithArguments("I1.operator ==(I1, I1)").
WithLocation
(4, 33),
4464
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments("virtual", "7.3", "11.0").
WithLocation
(6, 33),
4467
Diagnostic(ErrorCode.ERR_BadMemberFlag, "==").WithArguments("sealed").
WithLocation
(11, 40),
4470
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments("virtual", "7.3", "11.0").
WithLocation
(11, 40),
4473
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "==").WithArguments("I2.operator ==(I2, I2)").
WithLocation
(11, 40),
4476
Diagnostic(ErrorCode.ERR_BadMemberFlag, "!=").WithArguments("sealed").
WithLocation
(13, 40),
4479
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments("virtual", "7.3", "11.0").
WithLocation
(13, 40),
4482
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments("abstract", "7.3", "11.0").
WithLocation
(18, 42),
4485
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "==").WithArguments("method", "I3.operator ==(I3, I3)").
WithLocation
(18, 42),
4488
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments("abstract", "7.3", "11.0").
WithLocation
(20, 42),
4491
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "!=").WithArguments("method", "I3.operator !=(I3, I3)").
WithLocation
(20, 42)
4503
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments("virtual", "10.0", "11.0").
WithLocation
(4, 33),
4506
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "==").WithArguments("I1.operator ==(I1, I1)").
WithLocation
(4, 33),
4509
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments("virtual", "10.0", "11.0").
WithLocation
(6, 33),
4512
Diagnostic(ErrorCode.ERR_BadMemberFlag, "==").WithArguments("sealed").
WithLocation
(11, 40),
4515
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments("virtual", "10.0", "11.0").
WithLocation
(11, 40),
4518
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "==").WithArguments("I2.operator ==(I2, I2)").
WithLocation
(11, 40),
4521
Diagnostic(ErrorCode.ERR_BadMemberFlag, "!=").WithArguments("sealed").
WithLocation
(13, 40),
4524
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments("virtual", "10.0", "11.0").
WithLocation
(13, 40),
4527
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments("abstract", "10.0", "11.0").
WithLocation
(18, 42),
4530
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "==").WithArguments("method", "I3.operator ==(I3, I3)").
WithLocation
(18, 42),
4533
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments("abstract", "10.0", "11.0").
WithLocation
(20, 42),
4536
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "!=").WithArguments("method", "I3.operator !=(I3, I3)").
WithLocation
(20, 42)
4548
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "==").WithArguments("I1.operator ==(I1, I1)").
WithLocation
(4, 33),
4551
Diagnostic(ErrorCode.ERR_BadMemberFlag, "==").WithArguments("sealed").
WithLocation
(11, 40),
4554
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "==").WithArguments("I2.operator ==(I2, I2)").
WithLocation
(11, 40),
4557
Diagnostic(ErrorCode.ERR_BadMemberFlag, "!=").WithArguments("sealed").
WithLocation
(13, 40),
4560
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "==").WithArguments("method", "I3.operator ==(I3, I3)").
WithLocation
(18, 42),
4563
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "!=").WithArguments("method", "I3.operator !=(I3, I3)").
WithLocation
(20, 42)
4644
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("virtual", "7.3", "11.0").
WithLocation
(4, 38),
4647
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(4, 38),
4650
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(4, 38),
4653
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "I1").WithArguments("virtual", "7.3", "11.0").
WithLocation
(6, 38),
4656
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I1").WithArguments("I1.explicit operator I1(bool)").
WithLocation
(6, 38),
4659
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("sealed").
WithLocation
(11, 45),
4662
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("virtual", "7.3", "11.0").
WithLocation
(11, 45),
4665
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "int").WithArguments("I2.implicit operator int(I2)").
WithLocation
(11, 45),
4668
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I2.implicit operator int(I2)").
WithLocation
(11, 45),
4671
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I2").WithArguments("sealed").
WithLocation
(13, 45),
4674
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "I2").WithArguments("virtual", "7.3", "11.0").
WithLocation
(13, 45),
4677
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I2").WithArguments("I2.explicit operator I2(bool)").
WithLocation
(13, 45),
4680
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("abstract", "7.3", "11.0").
WithLocation
(18, 47),
4683
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "int").WithArguments("method", "I3.implicit operator int(I3)").
WithLocation
(18, 47),
4686
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I3.implicit operator int(I3)").
WithLocation
(18, 47),
4689
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "I3").WithArguments("abstract", "7.3", "11.0").
WithLocation
(20, 47),
4692
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "I3").WithArguments("method", "I3.explicit operator I3(bool)").
WithLocation
(20, 47),
4695
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I3").WithArguments("I3.explicit operator I3(bool)").
WithLocation
(20, 47)
4707
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("virtual", "10.0", "11.0").
WithLocation
(4, 38),
4710
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(4, 38),
4713
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(4, 38),
4716
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "I1").WithArguments("virtual", "10.0", "11.0").
WithLocation
(6, 38),
4719
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I1").WithArguments("I1.explicit operator I1(bool)").
WithLocation
(6, 38),
4722
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("sealed").
WithLocation
(11, 45),
4725
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("virtual", "10.0", "11.0").
WithLocation
(11, 45),
4728
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "int").WithArguments("I2.implicit operator int(I2)").
WithLocation
(11, 45),
4731
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I2.implicit operator int(I2)").
WithLocation
(11, 45),
4734
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I2").WithArguments("sealed").
WithLocation
(13, 45),
4737
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "I2").WithArguments("virtual", "10.0", "11.0").
WithLocation
(13, 45),
4740
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I2").WithArguments("I2.explicit operator I2(bool)").
WithLocation
(13, 45),
4743
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments("abstract", "10.0", "11.0").
WithLocation
(18, 47),
4746
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "int").WithArguments("method", "I3.implicit operator int(I3)").
WithLocation
(18, 47),
4749
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I3.implicit operator int(I3)").
WithLocation
(18, 47),
4752
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "I3").WithArguments("abstract", "10.0", "11.0").
WithLocation
(20, 47),
4755
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "I3").WithArguments("method", "I3.explicit operator I3(bool)").
WithLocation
(20, 47),
4758
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I3").WithArguments("I3.explicit operator I3(bool)").
WithLocation
(20, 47)
4770
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(4, 38),
4773
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I1.implicit operator int(I1)").
WithLocation
(4, 38),
4776
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I1").WithArguments("I1.explicit operator I1(bool)").
WithLocation
(6, 38),
4779
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("sealed").
WithLocation
(11, 45),
4782
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "int").WithArguments("I2.implicit operator int(I2)").
WithLocation
(11, 45),
4785
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I2.implicit operator int(I2)").
WithLocation
(11, 45),
4788
Diagnostic(ErrorCode.ERR_BadMemberFlag, "I2").WithArguments("sealed").
WithLocation
(13, 45),
4791
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I2").WithArguments("I2.explicit operator I2(bool)").
WithLocation
(13, 45),
4794
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "int").WithArguments("method", "I3.implicit operator int(I3)").
WithLocation
(18, 47),
4797
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "int").WithArguments("I3.implicit operator int(I3)").
WithLocation
(18, 47),
4800
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "I3").WithArguments("method", "I3.explicit operator I3(bool)").
WithLocation
(20, 47),
4803
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I3").WithArguments("I3.explicit operator I3(bool)").
WithLocation
(20, 47)
4872
Diagnostic(ErrorCode.ERR_AbstractField, "F1").
WithLocation
(4, 25),
4875
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F2").WithArguments("sealed").
WithLocation
(5, 23),
4878
Diagnostic(ErrorCode.ERR_AbstractField, "F3").
WithLocation
(6, 18),
4881
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F3").
WithLocation
(6, 18),
4884
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F4").WithArguments("sealed").
WithLocation
(7, 16),
4887
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "F4").
WithLocation
(7, 16),
4890
Diagnostic(ErrorCode.ERR_BadMemberFlag, "F5").WithArguments("virtual").
WithLocation
(8, 24)
4914
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "M01").WithArguments("I1.M01()").
WithLocation
(4, 33),
4917
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "P01").WithArguments("I1.P01").
WithLocation
(5, 33),
4920
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "E01").WithArguments("I1.E01").
WithLocation
(6, 48),
4923
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "+").WithArguments("I1.operator +(I1)").
WithLocation
(7, 39)
4947
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M01").WithArguments("I1.M01()").
WithLocation
(4, 32),
4950
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("I1.P01.get").
WithLocation
(5, 38),
4953
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "E01").WithArguments("I1.E01.remove").
WithLocation
(6, 47),
4956
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "+").WithArguments("I1.operator +(I1)").
WithLocation
(7, 38)
4980
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "M01").WithArguments("I1.M01()").
WithLocation
(4, 33),
4983
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "P01").WithArguments("I1.P01").
WithLocation
(5, 33),
4986
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "E01").WithArguments("I1.E01").
WithLocation
(6, 48),
4989
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("I1.E01").
WithLocation
(6, 52),
4992
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "+").WithArguments("I1.operator +(I1)").
WithLocation
(7, 39)
5016
Diagnostic(ErrorCode.ERR_ExternHasBody, "M01").WithArguments("I1.M01()").
WithLocation
(4, 32),
5019
Diagnostic(ErrorCode.ERR_ExternHasBody, "get").WithArguments("I1.P01.get").
WithLocation
(5, 38),
5022
Diagnostic(ErrorCode.ERR_ExternHasBody, "add").WithArguments("I1.E01.add").
WithLocation
(6, 53),
5025
Diagnostic(ErrorCode.ERR_ExternHasBody, "remove").WithArguments("I1.E01.remove").
WithLocation
(6, 60),
5028
Diagnostic(ErrorCode.ERR_ExternHasBody, "+").WithArguments("I1.operator +(I1)").
WithLocation
(7, 38)
5074
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "M01").WithArguments("abstract").
WithLocation
(4, 33),
5077
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M01").WithArguments("C1.M01()").
WithLocation
(4, 33),
5080
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "P01").WithArguments("abstract").
WithLocation
(5, 33),
5083
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "E01").WithArguments("abstract").
WithLocation
(6, 48),
5086
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").
WithLocation
(6, 48),
5089
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("abstract").
WithLocation
(7, 39),
5092
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "+").WithArguments("C1.operator +(C1)").
WithLocation
(7, 39)
5116
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "M01").WithArguments("virtual").
WithLocation
(4, 32),
5119
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M01").WithArguments("C1.M01()").
WithLocation
(4, 32),
5122
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "P01").WithArguments("virtual").
WithLocation
(5, 32),
5125
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "E01").WithArguments("virtual").
WithLocation
(6, 47),
5128
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").
WithLocation
(6, 47),
5131
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("virtual").
WithLocation
(7, 38),
5134
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "+").WithArguments("C1.operator +(C1)").
WithLocation
(7, 38)
5158
Diagnostic(ErrorCode.ERR_SealedNonOverride, "M01").WithArguments("C1.M01()").
WithLocation
(4, 24),
5161
Diagnostic(ErrorCode.ERR_SealedNonOverride, "P01").WithArguments("C1.P01").
WithLocation
(5, 24),
5164
Diagnostic(ErrorCode.ERR_SealedNonOverride, "E01").WithArguments("C1.E01").
WithLocation
(6, 39),
5167
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("sealed").
WithLocation
(7, 37)
5191
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "M01").WithArguments("abstract").
WithLocation
(4, 33),
5194
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M01").WithArguments("C1.M01()").
WithLocation
(4, 33),
5197
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "P01").WithArguments("abstract").
WithLocation
(5, 33),
5200
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "E01").WithArguments("abstract").
WithLocation
(6, 48),
5203
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").
WithLocation
(6, 48),
5206
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("abstract").
WithLocation
(7, 39),
5209
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "+").WithArguments("C1.operator +(C1)").
WithLocation
(7, 39)
5233
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "M01").WithArguments("virtual").
WithLocation
(4, 32),
5236
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M01").WithArguments("C1.M01()").
WithLocation
(4, 32),
5239
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "P01").WithArguments("virtual").
WithLocation
(5, 32),
5242
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "E01").WithArguments("virtual").
WithLocation
(6, 47),
5245
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E01").WithArguments("C1.E01").
WithLocation
(6, 47),
5248
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("virtual").
WithLocation
(7, 38),
5251
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "+").WithArguments("C1.operator +(C1)").
WithLocation
(7, 38)
5275
Diagnostic(ErrorCode.ERR_SealedNonOverride, "M01").WithArguments("C1.M01()").
WithLocation
(4, 24),
5278
Diagnostic(ErrorCode.ERR_SealedNonOverride, "P01").WithArguments("C1.P01").
WithLocation
(5, 24),
5281
Diagnostic(ErrorCode.ERR_SealedNonOverride, "E01").WithArguments("C1.E01").
WithLocation
(6, 39),
5284
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("sealed").
WithLocation
(7, 37)
5377
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(4, 26)
5392
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(4, 26)
5418
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(4, 26)
5433
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(4, 26)
5709
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op.Substring(isChecked ? 8 : 0)).
WithLocation
(4, 31 + type.Length + (isChecked ? 8 : 0))
5756
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op.Substring(isChecked ? 8 : 0)).
WithLocation
(4, 31 + type.Length + (isChecked ? 8 : 0))
5784
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "true").
WithLocation
(4, 35),
5787
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "false").
WithLocation
(5, 35),
5790
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, ">").
WithLocation
(6, 33),
5793
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "<").
WithLocation
(7, 33),
5796
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, ">=").
WithLocation
(8, 33),
5799
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "<=").
WithLocation
(9, 33),
5802
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "==").
WithLocation
(10, 33),
5805
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "!=").
WithLocation
(11, 33)
5833
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "true").
WithLocation
(4, 35),
5836
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "false").
WithLocation
(5, 35),
5839
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, ">").
WithLocation
(6, 33),
5842
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "<").
WithLocation
(7, 33),
5845
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, ">=").
WithLocation
(8, 33),
5848
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "<=").
WithLocation
(9, 33),
5851
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "==").
WithLocation
(10, 33),
5854
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "!=").
WithLocation
(11, 33)
5958
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "int").
WithLocation
(4, 39),
5961
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "T").
WithLocation
(5, 39),
5964
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "T").
WithLocation
(6, 47)
6075
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(4, 31),
6078
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(4, 36)
6099
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(4, 31),
6102
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(4, 36)
6214
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "E01").
WithLocation
(4, 41)
6235
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "E01").
WithLocation
(4, 41)
6347
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "x").WithArguments("I2", "I1.M01()").
WithLocation
(4, 22),
6350
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I2>").WithArguments("I2", "I1.M01()").
WithLocation
(15, 11),
6353
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "x").WithArguments("I2", "I1.M01()").
WithLocation
(21, 22),
6356
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "y").WithArguments("I3", "I1.M01()").
WithLocation
(21, 32),
6359
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I2>").WithArguments("I2", "I1.M01()").
WithLocation
(32, 11),
6362
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I3>").WithArguments("I3", "I1.M01()").
WithLocation
(33, 11),
6365
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "y").WithArguments("I3", "I1.M01()").
WithLocation
(39, 22),
6368
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I3>").WithArguments("I3", "I1.M01()").
WithLocation
(50, 11),
6371
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "y").WithArguments("I1", "I1.M01()").
WithLocation
(56, 22),
6374
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I1>").WithArguments("I1", "I1.M01()").
WithLocation
(67, 11)
6481
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "C6").WithArguments("I1", "I1.M01()").
WithLocation
(43, 7)
6499
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "C6").WithArguments("I1", "I1.M01()").
WithLocation
(43, 7)
6606
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "y").WithArguments("I1", "I1.M01()").
WithLocation
(56, 22),
6609
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I1>").WithArguments("I1", "I1.M01()").
WithLocation
(67, 11)
6724
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "x").WithArguments("I2", "I1.M01()").
WithLocation
(4, 22),
6727
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I2>").WithArguments("I2", "I1.M01()").
WithLocation
(15, 11),
6730
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "x").WithArguments("I2", "I1.M01()").
WithLocation
(21, 22),
6733
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "y").WithArguments("I3", "I1.M01()").
WithLocation
(21, 32),
6736
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I2>").WithArguments("I2", "I1.M01()").
WithLocation
(32, 11),
6739
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I3>").WithArguments("I3", "I1.M01()").
WithLocation
(33, 11),
6742
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "y").WithArguments("I3", "I1.M01()").
WithLocation
(39, 22),
6745
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I3>").WithArguments("I3", "I1.M01()").
WithLocation
(50, 11)
6865
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "y").WithArguments("I3", "I1.M01()").
WithLocation
(21, 32),
6868
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I3>").WithArguments("I3", "I1.M01()").
WithLocation
(33, 11),
6871
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "y").WithArguments("I3", "I1.M01()").
WithLocation
(39, 22),
6874
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I3>").WithArguments("I3", "I1.M01()").
WithLocation
(50, 11)
6994
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "y").WithArguments("I3", "I1.M01()").
WithLocation
(21, 32),
6997
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I3>").WithArguments("I3", "I1.M01()").
WithLocation
(33, 11),
7000
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "y").WithArguments("I3", "I1.M01()").
WithLocation
(39, 22),
7003
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "M<I3>").WithArguments("I3", "I1.M01()").
WithLocation
(50, 11)
7047
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "D").WithArguments("I", "I.P").
WithLocation
(11, 7)
7074
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T2").WithArguments("I2<T1, T2>.P2", "T2", "contravariant", "covariantly").
WithLocation
(5, 21),
7077
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T1").WithArguments("I2<T1, T2>.P3", "T1", "covariant", "contravariantly").
WithLocation
(6, 21)
7104
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T2").WithArguments("I2<T1, T2>.M2()", "T2", "contravariant", "covariantly").
WithLocation
(5, 21),
7107
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T1").WithArguments("I2<T1, T2>.M3(T1)", "T1", "covariant", "contravariantly").
WithLocation
(6, 29)
7134
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "E2").WithArguments("I2<T1, T2>.E2", "T2", "contravariant", "covariantly").
WithLocation
(5, 58),
7137
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "E3").WithArguments("I2<T1, T2>.E3", "T1", "covariant", "contravariantly").
WithLocation
(6, 60)
7166
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "I2<T2>").WithArguments("I2<T2>.operator +(I2<T2>)", "T2", "covariant", "contravariantly").
WithLocation
(4, 36),
7169
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "I3<T3>").WithArguments("I3<T3>.operator +(I3<T3>)", "T3", "covariant", "contravariantly").
WithLocation
(9, 36)
7245
Diagnostic(ErrorCode.ERR_BadUnaryOperatorSignature, op).
WithLocation
(4, 26),
7248
Diagnostic(ErrorCode.ERR_BadUnaryOperatorSignature, op).
WithLocation
(9, 26),
7251
Diagnostic(ErrorCode.ERR_BadAbstractUnaryOperatorSignature, op).
WithLocation
(26, 39),
7254
Diagnostic(ErrorCode.ERR_BadAbstractUnaryOperatorSignature, op).
WithLocation
(32, 35),
7257
Diagnostic(ErrorCode.ERR_BadAbstractUnaryOperatorSignature, op).
WithLocation
(37, 35),
7260
Diagnostic(ErrorCode.ERR_BadAbstractUnaryOperatorSignature, op).
WithLocation
(44, 35),
7263
Diagnostic(ErrorCode.ERR_BadAbstractUnaryOperatorSignature, op).
WithLocation
(51, 35)
7339
Diagnostic(ErrorCode.ERR_BadIncDecSignature, op).
WithLocation
(4, 24),
7342
Diagnostic(ErrorCode.ERR_BadIncDecSignature, op).
WithLocation
(9, 25),
7345
Diagnostic(ErrorCode.ERR_BadAbstractIncDecSignature, op).
WithLocation
(26, 37),
7348
Diagnostic(ErrorCode.ERR_BadAbstractIncDecSignature, op).
WithLocation
(32, 34),
7351
Diagnostic(ErrorCode.ERR_BadAbstractIncDecSignature, op).
WithLocation
(37, 33),
7354
Diagnostic(ErrorCode.ERR_BadAbstractIncDecSignature, op).
WithLocation
(44, 34),
7357
Diagnostic(ErrorCode.ERR_BadAbstractIncDecSignature, op).
WithLocation
(51, 34)
7444
Diagnostic(ErrorCode.ERR_BadIncDecRetType, op).
WithLocation
(4, 24),
7447
Diagnostic(ErrorCode.ERR_BadIncDecRetType, op).
WithLocation
(9, 25),
7450
Diagnostic(ErrorCode.ERR_BadAbstractIncDecRetType, op).
WithLocation
(19, 34),
7453
Diagnostic(ErrorCode.ERR_BadAbstractIncDecRetType, op).
WithLocation
(26, 37),
7456
Diagnostic(ErrorCode.ERR_BadAbstractIncDecRetType, op).
WithLocation
(32, 34),
7459
Diagnostic(ErrorCode.ERR_BadAbstractIncDecRetType, op).
WithLocation
(37, 33),
7462
Diagnostic(ErrorCode.ERR_BadAbstractIncDecRetType, op).
WithLocation
(44, 34),
7465
Diagnostic(ErrorCode.ERR_BadAbstractIncDecRetType, op).
WithLocation
(51, 34),
7468
Diagnostic(ErrorCode.ERR_BadAbstractIncDecRetType, op).
WithLocation
(56, 35),
7471
Diagnostic(ErrorCode.ERR_BadAbstractIncDecRetType, op).
WithLocation
(61, 34),
7474
Diagnostic(ErrorCode.ERR_BadAbstractIncDecRetType, op).
WithLocation
(66, 35)
7550
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, op).
WithLocation
(4, 26),
7553
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, op).
WithLocation
(9, 26),
7556
Diagnostic(ErrorCode.ERR_BadAbstractBinaryOperatorSignature, op).
WithLocation
(26, 39),
7559
Diagnostic(ErrorCode.ERR_BadAbstractBinaryOperatorSignature, op).
WithLocation
(32, 35),
7562
Diagnostic(ErrorCode.ERR_BadAbstractBinaryOperatorSignature, op).
WithLocation
(37, 35),
7565
Diagnostic(ErrorCode.ERR_BadAbstractBinaryOperatorSignature, op).
WithLocation
(44, 35),
7568
Diagnostic(ErrorCode.ERR_BadAbstractBinaryOperatorSignature, op).
WithLocation
(51, 35)
7644
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, op).
WithLocation
(4, 26),
7647
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, op).
WithLocation
(9, 26),
7650
Diagnostic(ErrorCode.ERR_BadAbstractBinaryOperatorSignature, op).
WithLocation
(26, 39),
7653
Diagnostic(ErrorCode.ERR_BadAbstractBinaryOperatorSignature, op).
WithLocation
(32, 35),
7656
Diagnostic(ErrorCode.ERR_BadAbstractBinaryOperatorSignature, op).
WithLocation
(37, 35),
7659
Diagnostic(ErrorCode.ERR_BadAbstractBinaryOperatorSignature, op).
WithLocation
(44, 35),
7662
Diagnostic(ErrorCode.ERR_BadAbstractBinaryOperatorSignature, op).
WithLocation
(51, 35)
7743
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, op).
WithLocation
(4, 26),
7746
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, op).
WithLocation
(9, 26),
7749
Diagnostic(ErrorCode.ERR_BadAbstractShiftOperatorSignature, op).
WithLocation
(26, 39),
7752
Diagnostic(ErrorCode.ERR_BadAbstractShiftOperatorSignature, op).
WithLocation
(32, 35),
7755
Diagnostic(ErrorCode.ERR_BadAbstractShiftOperatorSignature, op).
WithLocation
(37, 35),
7758
Diagnostic(ErrorCode.ERR_BadAbstractShiftOperatorSignature, op).
WithLocation
(44, 35),
7761
Diagnostic(ErrorCode.ERR_BadAbstractShiftOperatorSignature, op).
WithLocation
(51, 35)
7860
Diagnostic(ErrorCode.ERR_IdentityConversion, "T1").
WithLocation
(4, 39),
7863
Diagnostic(ErrorCode.ERR_BadDynamicConversion, "dynamic").WithArguments("I2<T2>." + op + " operator dynamic(T2)").
WithLocation
(9, 39),
7866
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "T5").
WithLocation
(26, 43),
7869
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "T71").
WithLocation
(32, 39),
7872
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "T8").
WithLocation
(37, 39),
7875
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "T10").
WithLocation
(44, 39),
7878
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "int").
WithLocation
(51, 39),
7881
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "I13").WithArguments("I13." + op + " operator I13(bool)").
WithLocation
(56, 39)
7980
Diagnostic(ErrorCode.ERR_IdentityConversion, "T1").
WithLocation
(4, 39),
7983
Diagnostic(ErrorCode.ERR_BadDynamicConversion, "T2").WithArguments("I2<T2>." + op + " operator T2(dynamic)").
WithLocation
(9, 39),
7986
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "bool").
WithLocation
(26, 43),
7989
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "bool").
WithLocation
(32, 39),
7992
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "bool").
WithLocation
(37, 39),
7995
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "bool").
WithLocation
(44, 39),
7998
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "bool").
WithLocation
(51, 39),
8001
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "bool").WithArguments("I13." + op + " operator bool(I13)").
WithLocation
(56, 39)
8077
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, op).
WithLocation
(4, 26),
8080
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, op).
WithLocation
(9, 26),
8083
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("C5<T5>.I6").
WithLocation
(26, 39),
8086
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I7<T71, T72>").
WithLocation
(32, 35),
8089
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I8<T8>").
WithLocation
(37, 35),
8092
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I10<T10>").
WithLocation
(44, 35),
8095
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I12").
WithLocation
(51, 35),
8098
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I13").
WithLocation
(56, 35)
8174
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, op).
WithLocation
(4, 26),
8177
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, op).
WithLocation
(9, 26),
8180
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("C5<T5>.I6").
WithLocation
(26, 39),
8183
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I7<T71, T72>").
WithLocation
(32, 35),
8186
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I8<T8>").
WithLocation
(37, 35),
8189
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I10<T10>").
WithLocation
(44, 35),
8192
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I12").
WithLocation
(51, 35),
8195
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I13").
WithLocation
(56, 35)
8256
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "M01").
WithLocation
(8, 9),
8259
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.M01").WithArguments("I1.M01()").
WithLocation
(14, 9),
8262
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.M04").WithArguments("I1.M04()").
WithLocation
(15, 9),
8265
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "I1.M01").
WithLocation
(27, 9),
8268
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.M01").WithArguments("I1.M01()").
WithLocation
(28, 9),
8271
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.M04").WithArguments("I1.M04()").
WithLocation
(30, 9),
8274
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 9),
8277
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 9),
8280
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 9),
8283
Diagnostic(ErrorCode.ERR_BadAccess, "M05").WithArguments("I1.M05()").
WithLocation
(38, 11),
8286
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "T.M01()").
WithLocation
(40, 71)
8345
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 20),
8348
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 20),
8351
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 20),
8354
Diagnostic(ErrorCode.ERR_BadAccess, "M05").WithArguments("I1.M05()").
WithLocation
(38, 22)
8514
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "T.M01").
WithLocation
(6, 9)
8524
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(12, 26)
8557
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type parameter").
WithLocation
(11, 23),
8560
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "select t + 1").
WithLocation
(12, 26)
8599
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9)
8609
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9),
8612
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 26)
8679
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, prefixOp + "x" + postfixOp).
WithLocation
(8, 13),
8682
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, prefixOp + "y" + postfixOp).
WithLocation
(13, 13),
8685
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, prefixOp + "a" + postfixOp).
WithLocation
(21, 13),
8689
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, prefixOp + "b" + postfixOp).
WithLocation
(26, 78)
8693
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, prefixOp + "b" + postfixOp).
WithLocation
(26, 78)
9124
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, prefixOp + "x" + postfixOp).
WithLocation
(6, 13)
9134
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, prefixOp + postfixOp).
WithLocation
(12, 31 + checkedKeyword.Length)
9194
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, prefixOp + "x" + postfixOp).WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13),
9197
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, prefixOp + "x" + postfixOp).WithArguments("checked user-defined operators", "11.0").
WithLocation
(6, 13)
9205
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, prefixOp + "x" + postfixOp).WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13)
9218
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(12, 32),
9221
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, prefixOp + postfixOp).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 40)
9229
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, prefixOp + postfixOp).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 31)
9279
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "x").
WithLocation
(9, 13),
9282
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "y").
WithLocation
(14, 13),
9285
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "a").
WithLocation
(22, 13),
9288
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "b").
WithLocation
(27, 78)
9409
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "x").
WithLocation
(6, 13)
9419
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "true").
WithLocation
(12, 35),
9422
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "false").
WithLocation
(13, 35)
9462
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13)
9472
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "true").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 35),
9475
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "false").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(13, 35)
9534
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "x " + op + " x").
WithLocation
(9, 13),
9537
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "y " + op + " y").
WithLocation
(14, 13),
9540
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "a " + op + " a").
WithLocation
(22, 13),
9543
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleBinOp, "b " + op + " b").
WithLocation
(27, 98)
9551
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "x").WithArguments("I1", "I1.operator true(I1)").
WithLocation
(7, 34),
9554
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "y").WithArguments("I1", "I1.operator true(I1)").
WithLocation
(12, 27),
9557
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers, "a").WithArguments("I1", "I1.operator true(I1)").
WithLocation
(20, 34),
9560
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "x " + op + " x").
WithLocation
(9, 13),
9563
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "y " + op + " y").
WithLocation
(14, 13),
9566
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "a " + op + " a").
WithLocation
(22, 13),
9569
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleBinOp, "b " + op + " b").
WithLocation
(27, 98)
9814
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "x " + op + " x").
WithLocation
(6, 13)
9824
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "true").
WithLocation
(21, 35),
9827
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "false").
WithLocation
(22, 35)
9876
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + " x").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13)
9886
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "true").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(21, 35),
9889
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "false").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(22, 35)
9957
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "x " + op + " 1").
WithLocation
(8, 13),
9960
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "y " + op + " 2").
WithLocation
(13, 13),
9963
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "a " + op + " 3").
WithLocation
(21, 13),
9966
Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "b / 4").WithArguments("I1.operator checked /(I1, int)").
WithLocation
(26, 78)
9974
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "x >>> 1").
WithLocation
(8, 13),
9977
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "y >>> 2").
WithLocation
(13, 13),
9980
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "a >>> 3").
WithLocation
(21, 13),
9983
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "b >>> 4").
WithLocation
(26, 78),
9986
Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "b >>> 4").WithArguments(">>>").
WithLocation
(26, 78)
9994
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "x " + op + " 1").
WithLocation
(8, 13),
9997
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "y " + op + " 2").
WithLocation
(13, 13),
10000
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "a " + op + " 3").
WithLocation
(21, 13),
10003
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "b " + op + " 4").
WithLocation
(26, 78)
10213
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "x " + op + op + " x").
WithLocation
(10, 13),
10216
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "y " + op + op + " y").
WithLocation
(15, 13),
10219
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "a " + op + op + " a").
WithLocation
(23, 13),
10222
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "b " + op + op + " b").
WithLocation
(28, 78)
10230
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "b " + op + op + " c").
WithLocation
(33, 13)
10237
Diagnostic(ErrorCode.ERR_InvalidDynamicCondition, "d").WithArguments("T", op == "&" ? "false" : "true").
WithLocation
(38, 98)
10298
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "x " + op + "= 1").
WithLocation
(8, 9),
10301
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "y " + op + "= 2").
WithLocation
(13, 9),
10304
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "a " + op + "= 3").
WithLocation
(26, 9),
10307
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "b " + op + "= 4").
WithLocation
(31, 78)
10418
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "x " + op + " x").
WithLocation
(12, 13),
10421
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "y " + op + " y").
WithLocation
(17, 13),
10424
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "a " + op + " a").
WithLocation
(25, 13),
10427
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleBinOp, "b " + op + " b").
WithLocation
(30, 92)
12193
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "x " + op + " y").
WithLocation
(6, 13)
12203
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(12, 33 + checkedKeyword.Length)
12262
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "x " + op + op + " y").
WithLocation
(6, 13)
12277
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(12, 32)
12286
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "true").
WithLocation
(13, 35)
12295
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "false").
WithLocation
(14, 35)
12343
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "x " + op + "= y").
WithLocation
(6, 9)
12353
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(12, 32 + checkedKeyword.Length)
12393
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "x " + op + " x").
WithLocation
(6, 13)
12403
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "==").
WithLocation
(12, 35),
12406
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "!=").
WithLocation
(13, 35)
12452
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + " y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13),
12455
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + " y").WithArguments("checked user-defined operators", "11.0").
WithLocation
(6, 13)
12463
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + " y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13)
12471
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>> y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13),
12474
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>> y").WithArguments("unsigned right shift", "11.0").
WithLocation
(6, 13)
12487
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(12, 33),
12490
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 41)
12498
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 33)
12506
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(12, 33),
12509
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, ">>>").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 33)
12569
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + op + " y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13)
12584
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 32)
12593
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "true").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(13, 35)
12602
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "false").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(14, 35)
12652
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + "= y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9),
12655
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + "= y").WithArguments("checked user-defined operators", "11.0").
WithLocation
(6, 9)
12663
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + "= y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9)
12671
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>>= y").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9),
12674
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>>= y").WithArguments("unsigned right shift", "11.0").
WithLocation
(6, 9)
12687
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(12, 32),
12690
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 40)
12698
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 32)
12706
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(12, 32),
12709
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, ">>>").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 32)
12750
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + " x").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13)
12760
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "==").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 35),
12763
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "!=").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(13, 35)
12824
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "P01").
WithLocation
(8, 13),
12827
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P01").WithArguments("I1.P01").
WithLocation
(14, 13),
12830
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P04").WithArguments("I1.P04").
WithLocation
(15, 13),
12833
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "I1.P01").
WithLocation
(27, 13),
12836
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P01").WithArguments("I1.P01").
WithLocation
(28, 13),
12839
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P04").WithArguments("I1.P04").
WithLocation
(30, 13),
12842
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 13),
12845
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 13),
12848
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 13),
12851
Diagnostic(ErrorCode.ERR_BadAccess, "P05").WithArguments("I1.P05").
WithLocation
(38, 15),
12854
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "T.P01").
WithLocation
(40, 71)
12915
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "P01").
WithLocation
(8, 9),
12918
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P01").WithArguments("I1.P01").
WithLocation
(14, 9),
12921
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P04").WithArguments("I1.P04").
WithLocation
(15, 9),
12924
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "I1.P01").
WithLocation
(27, 9),
12927
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P01").WithArguments("I1.P01").
WithLocation
(28, 9),
12930
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P04").WithArguments("I1.P04").
WithLocation
(30, 9),
12933
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 9),
12936
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 9),
12939
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 9),
12942
Diagnostic(ErrorCode.ERR_BadAccess, "P05").WithArguments("I1.P05").
WithLocation
(38, 11),
12945
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "T.P01 = 1").
WithLocation
(40, 71),
12948
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "T.P01").
WithLocation
(40, 71)
13009
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "P01").
WithLocation
(8, 9),
13012
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "P01").
WithLocation
(8, 9),
13015
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P01").WithArguments("I1.P01").
WithLocation
(14, 9),
13018
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P04").WithArguments("I1.P04").
WithLocation
(15, 9),
13021
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "I1.P01").
WithLocation
(27, 9),
13024
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "I1.P01").
WithLocation
(27, 9),
13027
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P01").WithArguments("I1.P01").
WithLocation
(28, 9),
13030
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P04").WithArguments("I1.P04").
WithLocation
(30, 9),
13033
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 9),
13036
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 9),
13039
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 9),
13042
Diagnostic(ErrorCode.ERR_BadAccess, "P05").WithArguments("I1.P05").
WithLocation
(38, 11),
13045
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "T.P01 += 1").
WithLocation
(40, 71),
13048
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "T.P01").
WithLocation
(40, 71)
13107
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P01").WithArguments("I1.P01").
WithLocation
(14, 20),
13110
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P04").WithArguments("I1.P04").
WithLocation
(15, 20),
13113
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P01").WithArguments("I1.P01").
WithLocation
(28, 20),
13116
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P04").WithArguments("I1.P04").
WithLocation
(30, 20),
13119
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 20),
13122
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 20),
13125
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 20),
13128
Diagnostic(ErrorCode.ERR_BadAccess, "P05").WithArguments("I1.P05").
WithLocation
(38, 22)
13460
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "T.P01").
WithLocation
(6, 13)
13470
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(12, 31),
13473
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(12, 36)
13512
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "T.P01").
WithLocation
(6, 9)
13522
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(12, 31),
13525
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(12, 36)
13564
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "T.P01").
WithLocation
(6, 9),
13567
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "T.P01").
WithLocation
(6, 9)
13577
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(12, 31),
13580
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(12, 36)
13619
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13)
13629
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13),
13632
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 25)
13671
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9)
13681
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9),
13684
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 25)
13723
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9)
13733
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9),
13736
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 25)
13797
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "P01 += null").
WithLocation
(8, 9),
13800
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P01").WithArguments("I1.P01").
WithLocation
(14, 9),
13803
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "this.P01 += null").
WithLocation
(14, 9),
13806
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P04").WithArguments("I1.P04").
WithLocation
(15, 9),
13809
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "I1.P01 += null").
WithLocation
(27, 9),
13812
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P01").WithArguments("I1.P01").
WithLocation
(28, 9),
13815
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "x.P01 += null").
WithLocation
(28, 9),
13818
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P04").WithArguments("I1.P04").
WithLocation
(30, 9),
13821
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 9),
13824
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 9),
13827
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 9),
13830
Diagnostic(ErrorCode.ERR_BadAccess, "P05").WithArguments("I1.P05").
WithLocation
(38, 11),
13833
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "T.P01 += null").
WithLocation
(40, 71)
13894
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "P01 -= null").
WithLocation
(8, 9),
13897
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P01").WithArguments("I1.P01").
WithLocation
(14, 9),
13900
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "this.P01 -= null").
WithLocation
(14, 9),
13903
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P04").WithArguments("I1.P04").
WithLocation
(15, 9),
13906
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "I1.P01 -= null").
WithLocation
(27, 9),
13909
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P01").WithArguments("I1.P01").
WithLocation
(28, 9),
13912
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "x.P01 -= null").
WithLocation
(28, 9),
13915
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P04").WithArguments("I1.P04").
WithLocation
(30, 9),
13918
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 9),
13921
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 9),
13924
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 9),
13927
Diagnostic(ErrorCode.ERR_BadAccess, "P05").WithArguments("I1.P05").
WithLocation
(38, 11),
13930
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "T.P01 -= null").
WithLocation
(40, 71)
13989
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P01").WithArguments("I1.P01").
WithLocation
(14, 20),
13992
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.P04").WithArguments("I1.P04").
WithLocation
(15, 20),
13995
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P01").WithArguments("I1.P01").
WithLocation
(28, 20),
13998
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.P04").WithArguments("I1.P04").
WithLocation
(30, 20),
14001
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 20),
14004
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 20),
14007
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 20),
14010
Diagnostic(ErrorCode.ERR_BadAccess, "P05").WithArguments("I1.P05").
WithLocation
(38, 22)
14182
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "T.P01 += null").
WithLocation
(6, 9)
14192
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "P01").
WithLocation
(12, 41)
14231
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "T.P01 -= null").
WithLocation
(6, 9)
14241
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "P01").
WithLocation
(12, 41)
14280
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9)
14290
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9),
14293
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 41)
14332
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9)
14342
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 9),
14345
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 41)
14432
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(6, 9),
14435
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(11, 23)
14460
Diagnostic(ErrorCode.ERR_BadSKunknown, "T").WithArguments("T", "type").
WithLocation
(6, 9),
14463
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "set_Item").WithArguments("I1.this[int].set").
WithLocation
(11, 11),
14466
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "get_Item").WithArguments("I1.this[int].get").
WithLocation
(11, 25)
14527
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "Item").WithArguments("I1.Item[int]", "I1.get_Item(int)", "I1.set_Item(int, int)").
WithLocation
(6, 11),
14530
Diagnostic(ErrorCode.ERR_BindToBogusProp2, "Item").WithArguments("I1.Item[int]", "I1.get_Item(int)", "I1.set_Item(int, int)").
WithLocation
(11, 25)
14626
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "(System.Action)M01").
WithLocation
(8, 13),
14629
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.M01").WithArguments("I1.M01()").
WithLocation
(14, 28),
14632
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.M04").WithArguments("I1.M04()").
WithLocation
(15, 28),
14635
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "(System.Action)I1.M01").
WithLocation
(27, 13),
14638
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.M01").WithArguments("I1.M01()").
WithLocation
(28, 28),
14641
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.M04").WithArguments("I1.M04()").
WithLocation
(30, 28),
14644
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 28),
14647
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 28),
14650
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 28),
14653
Diagnostic(ErrorCode.ERR_BadAccess, "M05").WithArguments("I1.M05()").
WithLocation
(38, 30),
14656
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "T.M01").
WithLocation
(40, 87)
14784
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "(System.Action)T.M01").
WithLocation
(6, 13)
14794
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(12, 26)
14833
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 28)
14843
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 28),
14846
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 26)
15044
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "M01").
WithLocation
(8, 31),
15047
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.M01").WithArguments("I1.M01()").
WithLocation
(14, 31),
15050
Diagnostic(ErrorCode.ERR_ObjectProhibited, "this.M04").WithArguments("I1.M04()").
WithLocation
(15, 31),
15053
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "I1.M01").
WithLocation
(27, 31),
15056
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.M01").WithArguments("I1.M01()").
WithLocation
(28, 31),
15059
Diagnostic(ErrorCode.ERR_ObjectProhibited, "x.M04").WithArguments("I1.M04()").
WithLocation
(30, 31),
15062
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 31),
15065
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 31),
15068
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 31),
15071
Diagnostic(ErrorCode.ERR_BadAccess, "M05").WithArguments("I1.M05()").
WithLocation
(38, 33),
15074
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, "T.M01").
WithLocation
(40, 89)
15190
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "T.M01").
WithLocation
(6, 31)
15200
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(12, 26)
15239
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 31)
15249
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 31),
15252
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 26)
15313
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "(delegate*<void>)&M01").
WithLocation
(8, 13),
15316
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "(delegate*<void>)&this.M01").WithArguments("M01", "delegate*<void>").
WithLocation
(14, 13),
15319
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "(delegate*<void>)&this.M04").WithArguments("M04", "delegate*<void>").
WithLocation
(15, 13),
15322
Diagnostic(ErrorCode.ERR_BadAbstractStaticMemberAccess, "(delegate*<void>)&I1.M01").
WithLocation
(27, 13),
15325
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "(delegate*<void>)&x.M01").WithArguments("M01", "delegate*<void>").
WithLocation
(28, 13),
15328
Diagnostic(ErrorCode.ERR_MethFuncPtrMismatch, "(delegate*<void>)&x.M04").WithArguments("M04", "delegate*<void>").
WithLocation
(30, 13),
15331
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(35, 31),
15334
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(36, 31),
15337
Diagnostic(ErrorCode.ERR_LookupInTypeVariable, "T").WithArguments("T").
WithLocation
(37, 31),
15340
Diagnostic(ErrorCode.ERR_BadAccess, "M05").WithArguments("I1.M05()").
WithLocation
(38, 33),
15343
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsPointerOp, "(delegate*<void>)&T.M01").
WithLocation
(40, 88),
15346
Diagnostic(ErrorCode.ERR_AddressOfMethodGroupInExpressionTree, "T.M01").
WithLocation
(40, 106)
15458
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "(delegate*<void>)&T.M01").
WithLocation
(6, 13)
15468
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(12, 26)
15507
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 31)
15517
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "T").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 31),
15520
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 26)
15579
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01()").
WithLocation
(8, 10),
15582
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotStatic, "I1").WithArguments("C2", "I1.M01()", "C2.M01()").
WithLocation
(12, 10),
15585
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I1").WithArguments("C3", "I1.M01()", "C3.M01()").
WithLocation
(18, 10),
15588
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C4", "I1.M01()").
WithLocation
(24, 10),
15591
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C4.M01()").
WithLocation
(26, 13),
15594
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("C5", "I1.M01()", "C5.M01()", "void").
WithLocation
(30, 10),
15597
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C6", "I1.M01()").
WithLocation
(36, 10),
15600
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C6.M01()").
WithLocation
(38, 19)
15659
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C4.M01()").
WithLocation
(26, 13),
15662
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C6.M01()").
WithLocation
(38, 19)
15721
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01()").
WithLocation
(8, 10),
15724
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "I1").WithArguments("C2", "I1.M01()", "C2.M01()").
WithLocation
(12, 10),
15727
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I1").WithArguments("C3", "I1.M01()", "C3.M01()").
WithLocation
(18, 10),
15730
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C4", "I1.M01()").
WithLocation
(24, 10),
15733
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C4.M01()").
WithLocation
(26, 20),
15736
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("C5", "I1.M01()", "C5.M01()", "void").
WithLocation
(30, 10),
15739
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C6", "I1.M01()").
WithLocation
(36, 10),
15742
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C6.M01()").
WithLocation
(38, 12)
15797
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I3.M01()", "I1.M01()").
WithLocation
(12, 25),
15800
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I4.M01()", "I1.M01()").
WithLocation
(17, 17),
15803
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("I5.M01()").
WithLocation
(22, 13),
15806
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I7.M01()", "I1.M01()").
WithLocation
(32, 26)
15874
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I3.M01()", "I1.M01()").
WithLocation
(12, 25),
15877
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I4.M01()", "I1.M01()").
WithLocation
(17, 17),
15880
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("I5.M01()").
WithLocation
(22, 13),
15883
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I7.M01()", "I1.M01()").
WithLocation
(32, 26),
15886
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M01").WithArguments("virtual").
WithLocation
(37, 29)
15940
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("static", "10.0", "11.0").
WithLocation
(4, 20),
15943
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "M02").WithArguments("Test.M02()", "I1.M02()", "Test", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(5, 24)
15953
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("static", "10.0", "11.0").
WithLocation
(4, 20),
15956
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(10, 26),
15959
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(11, 26)
15996
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "M01").WithArguments("Test1.M01()", "I1.M01()", "Test1").
WithLocation
(4, 24)
16006
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(9, 26)
16043
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(4, 20)
16053
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(4, 20),
16056
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(9, 26)
16351
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("C2.M01()", "I1.M01()", "C5", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(10, 23)
16398
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.M01()", "I1.M01()", "C1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 19)
17380
Diagnostic(ErrorCode.WRN_MultipleRuntimeImplementationMatches, "I1").WithArguments("C1<int>.M01(int)", "I1.M01(int)", "C2").
WithLocation
(2, 28)
17637
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.operator " + checkedKeyword + op + "(C1)").
WithLocation
(8, 10),
17640
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotStatic, "I1<C2>").WithArguments("C2", "I1<C2>.operator " + checkedKeyword + op + "(C2)", "C2.operator " + checkedKeyword + op + "(C2)").
WithLocation
(12, 10),
17643
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("C2.operator " + checkedKeyword + op + "(C2)").
WithLocation
(14, 24 + checkedKeyword.Length),
17646
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I1<C3>").WithArguments("C3", "I1<C3>.operator " + checkedKeyword + op + "(C3)", "C3.operator " + checkedKeyword + op + "(C3)").
WithLocation
(18, 10),
17649
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("C3.operator " + checkedKeyword + op + "(C3)").
WithLocation
(20, 24 + checkedKeyword.Length),
17652
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C4>").WithArguments("C4", "I1<C4>.operator " + checkedKeyword + op + "(C4)").
WithLocation
(24, 10),
17655
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4)").
WithLocation
(26, 24 + checkedKeyword.Length),
17658
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4)").
WithLocation
(26, 24 + checkedKeyword.Length),
17661
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1<C5>").WithArguments("C5", "I1<C5>.operator " + checkedKeyword + op + "(C5)", "C5.operator " + checkedKeyword + op + "(C5)", "C5").
WithLocation
(30, 10),
17664
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C6>").WithArguments("C6", "I1<C6>.operator " + checkedKeyword + op + "(C6)").
WithLocation
(36, 10),
17667
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C6.operator " + checkedKeyword + op + "(C6)").
WithLocation
(38, 32 + checkedKeyword.Length),
17670
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C7>").WithArguments("C7", "I1<C7>.operator " + checkedKeyword + op + "(C7)").
WithLocation
(42, 10),
17673
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C8>").WithArguments("C8", "I1<C8>.operator " + checkedKeyword + op + "(C8)").
WithLocation
(48, 10),
17676
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, opName).WithArguments("C8." + opName + "(C8)").
WithLocation
(50, 22),
17679
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2<C9>").WithArguments("C9", "I2<C9>." + opName + "(C9)").
WithLocation
(59, 10),
17682
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2<C10>").WithArguments("C10", "I2<C10>." + opName + "(C10)").
WithLocation
(65, 11),
17685
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C10.operator " + checkedKeyword + op + "(C10)").
WithLocation
(67, 33 + checkedKeyword.Length)
17780
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("C2.operator " + checkedKeyword + op + "(C2)").
WithLocation
(14, 24 + checkedKeyword.Length),
17783
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("C3.operator " + checkedKeyword + op + "(C3)").
WithLocation
(20, 24 + checkedKeyword.Length),
17786
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4)").
WithLocation
(26, 24 + checkedKeyword.Length),
17789
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4)").
WithLocation
(26, 24 + checkedKeyword.Length),
17792
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C6.operator " + checkedKeyword + op + "(C6)").
WithLocation
(38, 32 + checkedKeyword.Length),
17795
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, opName).WithArguments("C8." + opName + "(C8)").
WithLocation
(50, 22),
17798
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C10.operator " + checkedKeyword + op + "(C10)").
WithLocation
(67, 33 + checkedKeyword.Length)
17916
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.operator " + checkedKeyword + op + "(C1, int)").
WithLocation
(8, 10),
17919
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotStatic, "I1<C2>").WithArguments("C2", "I1<C2>.operator " + checkedKeyword + op + "(C2, int)", "C2.operator " + checkedKeyword + op + "(C2, int)").
WithLocation
(12, 10),
17922
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("C2.operator " + checkedKeyword + op + "(C2, int)").
WithLocation
(14, 24 + checkedKeyword.Length),
17925
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I1<C3>").WithArguments("C3", "I1<C3>.operator " + checkedKeyword + op + "(C3, int)", "C3.operator " + checkedKeyword + op + "(C3, int)").
WithLocation
(18, 10),
17928
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("C3.operator " + checkedKeyword + op + "(C3, int)").
WithLocation
(20, 24 + checkedKeyword.Length),
17931
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C4>").WithArguments("C4", "I1<C4>.operator " + checkedKeyword + op + "(C4, int)").
WithLocation
(24, 10),
17934
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4, int)").
WithLocation
(26, 24 + checkedKeyword.Length),
17937
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4, int)").
WithLocation
(26, 24 + checkedKeyword.Length),
17940
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1<C5>").WithArguments("C5", "I1<C5>.operator " + checkedKeyword + op + "(C5, int)", "C5.operator " + checkedKeyword + op + "(C5, int)", "C5").
WithLocation
(30, 10),
17943
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C6>").WithArguments("C6", "I1<C6>.operator " + checkedKeyword + op + "(C6, int)").
WithLocation
(36, 10),
17946
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C6.operator " + checkedKeyword + op + "(C6, int)").
WithLocation
(38, 32 + checkedKeyword.Length),
17949
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C7>").WithArguments("C7", "I1<C7>.operator " + checkedKeyword + op + "(C7, int)").
WithLocation
(42, 10),
17952
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C8>").WithArguments("C8", "I1<C8>.operator " + checkedKeyword + op + "(C8, int)").
WithLocation
(48, 10),
17955
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, opName).WithArguments("C8." + opName + "(C8, int)").
WithLocation
(50, 22),
17958
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2<C9>").WithArguments("C9", "I2<C9>." + opName + "(C9, int)").
WithLocation
(59, 10),
17961
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2<C10>").WithArguments("C10", "I2<C10>." + opName + "(C10, int)").
WithLocation
(65, 11),
17964
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C10.operator " + checkedKeyword + op + "(C10, int)").
WithLocation
(67, 33 + checkedKeyword.Length)
18059
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("C2.operator " + checkedKeyword + op + "(C2, int)").
WithLocation
(14, 24 + checkedKeyword.Length),
18062
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("C3.operator " + checkedKeyword + op + "(C3, int)").
WithLocation
(20, 24 + checkedKeyword.Length),
18065
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4, int)").
WithLocation
(26, 24 + checkedKeyword.Length),
18068
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C4.operator " + checkedKeyword + op + "(C4, int)").
WithLocation
(26, 24 + checkedKeyword.Length),
18071
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C6.operator " + checkedKeyword + op + "(C6, int)").
WithLocation
(38, 32 + checkedKeyword.Length),
18074
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, opName).WithArguments("C8." + opName + "(C8, int)").
WithLocation
(50, 22),
18077
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C10.operator " + checkedKeyword + op + "(C10, int)").
WithLocation
(67, 33 + checkedKeyword.Length)
18171
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("I3.operator " + checkedKeyword + op + "(I1)").
WithLocation
(12, 17 + checkedKeyword.Length),
18174
Diagnostic(badSignatureError, op).
WithLocation
(12, 17 + checkedKeyword.Length),
18177
Diagnostic(badSignatureError, op).
WithLocation
(17, 24 + checkedKeyword.Length),
18180
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1)").
WithLocation
(22, 20 + checkedKeyword.Length),
18183
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1)").
WithLocation
(22, 20 + checkedKeyword.Length),
18186
Diagnostic(badAbstractSignatureError, op).
WithLocation
(32, 33 + checkedKeyword.Length),
18189
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("I8<T>.operator " + checkedKeyword + op + "(T)").
WithLocation
(42, 16 + checkedKeyword.Length),
18192
Diagnostic(badSignatureError, op).
WithLocation
(42, 16 + checkedKeyword.Length),
18195
Diagnostic(badSignatureError, op).
WithLocation
(47, 23 + checkedKeyword.Length)
18318
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("I3.operator " + checkedKeyword + op + "(I1)").
WithLocation
(12, 17 + checkedKeyword.Length),
18321
Diagnostic(badSignatureError, op).
WithLocation
(12, 17 + checkedKeyword.Length),
18324
Diagnostic(badSignatureError, op).
WithLocation
(17, 24 + checkedKeyword.Length),
18327
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1)").
WithLocation
(22, 20 + checkedKeyword.Length),
18330
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1)").
WithLocation
(22, 20 + checkedKeyword.Length),
18333
Diagnostic(badAbstractSignatureError, op).
WithLocation
(32, 33 + checkedKeyword.Length),
18336
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("I8<T>.operator " + checkedKeyword + op + "(T)").
WithLocation
(42, 16 + checkedKeyword.Length),
18339
Diagnostic(badSignatureError, op).
WithLocation
(42, 16 + checkedKeyword.Length),
18342
Diagnostic(badSignatureError, op).
WithLocation
(47, 23 + checkedKeyword.Length),
18345
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("virtual").
WithLocation
(62, 39 + checkedKeyword.Length),
18348
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("virtual").
WithLocation
(67, 36 + checkedKeyword.Length)
18472
Diagnostic(badSignatureError, op).
WithLocation
(12, 17 + checkedKeyword.Length),
18475
Diagnostic(badSignatureError, op).
WithLocation
(17, 24 + checkedKeyword.Length),
18478
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1, int)").
WithLocation
(22, 20 + checkedKeyword.Length),
18481
Diagnostic(badSignatureError, op).
WithLocation
(42, 16 + checkedKeyword.Length),
18484
Diagnostic(badSignatureError, op).
WithLocation
(47, 23 + checkedKeyword.Length)
18493
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I1").
WithLocation
(4, 33),
18496
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, op).
WithLocation
(12, 17 + checkedKeyword.Length),
18499
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, op).
WithLocation
(17, 24 + checkedKeyword.Length),
18502
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, op).WithArguments("I5.operator " + op + "(I1, int)").
WithLocation
(22, 20),
18505
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I7").
WithLocation
(32, 33),
18508
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, op).
WithLocation
(42, 16 + checkedKeyword.Length),
18511
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, op).
WithLocation
(47, 23 + checkedKeyword.Length)
18521
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("I3.operator " + checkedKeyword + op + "(I1, int)").
WithLocation
(12, 17 + checkedKeyword.Length),
18524
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1, int)").
WithLocation
(22, 20 + checkedKeyword.Length),
18527
Diagnostic(badAbstractSignatureError, op).
WithLocation
(32, 33 + checkedKeyword.Length),
18530
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("I8<T>.operator " + checkedKeyword + op + "(T, int)").
WithLocation
(42, 16 + checkedKeyword.Length)
18658
Diagnostic(badSignatureError, op).
WithLocation
(12, 17 + checkedKeyword.Length),
18661
Diagnostic(badSignatureError, op).
WithLocation
(17, 24 + checkedKeyword.Length),
18664
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1, int)").
WithLocation
(22, 20 + checkedKeyword.Length),
18667
Diagnostic(badSignatureError, op).
WithLocation
(42, 16 + checkedKeyword.Length),
18670
Diagnostic(badSignatureError, op).
WithLocation
(47, 23 + checkedKeyword.Length),
18673
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("virtual").
WithLocation
(62, 39 + checkedKeyword.Length),
18676
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("virtual").
WithLocation
(67, 36 + checkedKeyword.Length)
18685
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I1").
WithLocation
(4, 33),
18688
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, op).
WithLocation
(12, 17 + checkedKeyword.Length),
18691
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, op).
WithLocation
(17, 24 + checkedKeyword.Length),
18694
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, op).WithArguments("I5.operator " + op + "(I1, int)").
WithLocation
(22, 20),
18697
Diagnostic(ErrorCode.ERR_BadAbstractEqualityOperatorSignature, op).WithArguments("I7").
WithLocation
(32, 33),
18700
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, op).
WithLocation
(42, 16 + checkedKeyword.Length),
18703
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, op).
WithLocation
(47, 23 + checkedKeyword.Length)
18713
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("I3.operator " + checkedKeyword + op + "(I1, int)").
WithLocation
(12, 17 + checkedKeyword.Length),
18716
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, op).WithArguments("I5.operator " + checkedKeyword + op + "(I1, int)").
WithLocation
(22, 20 + checkedKeyword.Length),
18719
Diagnostic(badAbstractSignatureError, op).
WithLocation
(32, 33 + checkedKeyword.Length),
18722
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, op).WithArguments("I8<T>.operator " + checkedKeyword + op + "(T, int)").
WithLocation
(42, 16 + checkedKeyword.Length)
18811
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I1.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 15),
18814
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(4, 27),
18817
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(9, 34),
18820
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, op).WithArguments("Test2.operator checked " + op + "(Test2)", "I2<Test2>.operator checked " + op + "(Test2)", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(9, 42)
18828
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I1.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 15),
18831
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, op).WithArguments("Test2.operator " + op + "(Test2)", "I2<Test2>.operator " + op + "(Test2)", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(9, 34)
18848
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I1.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 15),
18851
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(4, 27),
18854
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(9, 34),
18857
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(14, 33),
18860
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(14, 41),
18863
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(19, 32),
18866
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(19, 40)
18874
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I1.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 15),
18877
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(14, 33),
18880
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(19, 32)
18939
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I1.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 15),
18942
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, op).WithArguments("Test2.operator " + op + "(Test2, int)", "I2<Test2>.operator " + op + "(Test2, int)", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(9, 34)
18950
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I1.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 15),
18953
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(4, 27),
18956
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(9, 34),
18959
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, ">>>").WithArguments("Test2.operator >>>(Test2, int)", "I2<Test2>.operator >>>(Test2, int)", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(9, 34)
18968
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I1.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 15),
18971
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(4, 27),
18974
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(9, 34),
18977
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, op).WithArguments("Test2.operator checked " + op + "(Test2, int)", "I2<Test2>.operator checked " + op + "(Test2, int)", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(9, 42)
18993
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I1.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 15),
18996
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(14, 33),
18999
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(19, 32)
19007
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I1.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 15),
19010
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(4, 27),
19013
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(9, 34),
19016
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(14, 33),
19019
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, ">>>").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(14, 33),
19022
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(19, 32),
19025
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, ">>>").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(19, 32)
19034
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I1.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 15),
19037
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(14, 33),
19040
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(14, 33 + checkedKeyword.Length),
19043
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(4, 27),
19046
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(19, 32),
19049
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, op).WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(19, 32 + checkedKeyword.Length),
19052
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(9, 34)
19095
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, op).WithArguments("Test1.operator " + checkedKeyword + op + "(Test1)", "I1<Test1>.operator " + checkedKeyword + op + "(Test1)", "Test1").
WithLocation
(4, 34 + checkedKeyword.Length)
19105
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(9, 32 + checkedKeyword.Length)
19147
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, op).WithArguments("Test1.operator " + checkedKeyword + op + "(Test1, int)", "I1<Test1>.operator " + checkedKeyword + op + "(Test1, int)", "Test1").
WithLocation
(4, 34 + checkedKeyword.Length)
19157
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(9, 32 + checkedKeyword.Length)
19199
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(4, 27 + checkedKeyword.Length)
19209
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(4, 27 + checkedKeyword.Length),
19212
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(9, 33 + checkedKeyword.Length)
19254
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(4, 27 + checkedKeyword.Length)
19264
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(4, 27 + checkedKeyword.Length),
19267
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, op).
WithLocation
(9, 33 + checkedKeyword.Length)
20334
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("C2.operator " + checkedKeyword + op + "(I1)", "I1.operator " + checkedKeyword + op + "(I1)", "C5", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(10, 23)
20469
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("C2.operator " + checkedKeyword + op + "(I1, int)", "I1.operator " + checkedKeyword + op + "(I1, int)", "C5", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(10, 23)
20528
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.operator " + checkedKeyword + op + @"(I1)", "I1.operator " + checkedKeyword + op + @"(I1)", "C1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 19)
20608
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.operator " + checkedKeyword + op + @"(I1, int)", "I1.operator " + checkedKeyword + op + @"(I1, int)", "C1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 19)
22077
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("private").
WithLocation
(16, 35),
22080
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("protected").
WithLocation
(22, 37),
22083
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("internal").
WithLocation
(28, 36),
22086
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("protected internal").
WithLocation
(34, 46),
22089
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("private protected").
WithLocation
(40, 45),
22092
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("public").
WithLocation
(46, 34),
22095
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(52, 12),
22098
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("async").
WithLocation
(58, 33),
22101
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("readonly").
WithLocation
(70, 36),
22104
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("abstract").
WithLocation
(82, 36),
22107
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("virtual").
WithLocation
(88, 35),
22110
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("sealed").
WithLocation
(94, 34)
22227
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("private").
WithLocation
(16, 35),
22230
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("protected").
WithLocation
(22, 37),
22233
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("internal").
WithLocation
(28, 36),
22236
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("protected internal").
WithLocation
(34, 46),
22239
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("private protected").
WithLocation
(40, 45),
22242
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("public").
WithLocation
(46, 34),
22245
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(52, 12),
22248
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("async").
WithLocation
(58, 33),
22251
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("readonly").
WithLocation
(70, 36),
22254
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("abstract").
WithLocation
(82, 36),
22257
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("virtual").
WithLocation
(88, 35),
22260
Diagnostic(ErrorCode.ERR_BadMemberFlag, op).WithArguments("sealed").
WithLocation
(94, 34)
22293
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1<int>").WithArguments("C1.I1<int>.operator " + op + "(I1<int>)", "I1<int>").
WithLocation
(9, 20),
22296
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "C2").WithArguments("I1<T>", "T", "C2").
WithLocation
(12, 7),
22299
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "I1<C2>").WithArguments("I1<T>", "T", "C2").
WithLocation
(14, 19),
22302
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, op).WithArguments("I1<T>", "T", "C2").
WithLocation
(14, 35),
22305
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "x").WithArguments("I1<T>", "T", "C2").
WithLocation
(14, 44 + op.Length - 1)
22338
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1<string>").WithArguments("C1.I1<string>.operator " + op + "(I1<string>, int)", "I1<string>").
WithLocation
(9, 23),
22341
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "C2").WithArguments("I1<T>", "T", "C2").
WithLocation
(12, 8),
22344
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "I1<C2>").WithArguments("I1<T>", "T", "C2").
WithLocation
(14, 19),
22347
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, op).WithArguments("I1<T>", "T", "C2").
WithLocation
(14, 35),
22350
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "x").WithArguments("I1<T>", "T", "C2").
WithLocation
(14, 44 + op.Length - 1)
22409
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01").
WithLocation
(8, 10),
22412
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotStatic, "I1").WithArguments("C2", "I1.M01", "C2.M01").
WithLocation
(12, 10),
22415
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I1").WithArguments("C3", "I1.M01", "C3.M01").
WithLocation
(18, 10),
22418
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C4", "I1.M01").
WithLocation
(24, 10),
22421
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C4.M01").
WithLocation
(26, 12),
22424
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("C5", "I1.M01", "C5.M01", "int").
WithLocation
(30, 10),
22427
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C6", "I1.M01").
WithLocation
(36, 10),
22430
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C6.M01").
WithLocation
(38, 20)
22489
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C4.M01").
WithLocation
(26, 12),
22492
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C6.M01").
WithLocation
(38, 20)
22551
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01").
WithLocation
(8, 10),
22554
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "I1").WithArguments("C2", "I1.M01", "C2.M01").
WithLocation
(12, 10),
22557
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I1").WithArguments("C3", "I1.M01", "C3.M01").
WithLocation
(18, 10),
22560
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C4", "I1.M01").
WithLocation
(24, 10),
22563
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C4.M01").
WithLocation
(26, 19),
22566
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("C5", "I1.M01", "C5.M01", "int").
WithLocation
(30, 10),
22569
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C6", "I1.M01").
WithLocation
(36, 10),
22572
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C6.M01").
WithLocation
(38, 13)
22627
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I3.M01", "I1.M01").
WithLocation
(12, 24),
22630
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I4.M01", "I1.M01").
WithLocation
(17, 16),
22633
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("I5.M01").
WithLocation
(22, 12),
22636
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I7.M01", "I1.M01").
WithLocation
(32, 25)
22708
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I3.M01", "I1.M01").
WithLocation
(12, 24),
22711
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I4.M01", "I1.M01").
WithLocation
(17, 16),
22714
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("I5.M01").
WithLocation
(22, 12),
22717
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I7.M01", "I1.M01").
WithLocation
(32, 25),
22720
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M01").WithArguments("virtual").
WithLocation
(37, 28)
22784
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("static", "10.0", "11.0").
WithLocation
(4, 19),
22787
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "M02").WithArguments("Test.M02", "I1.M02", "Test", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(5, 23),
22790
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "get").WithArguments("Test.M02.get", "I1.M02.get", "Test", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(5, 29),
22793
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "set").WithArguments("Test.M02.set", "I1.M02.set", "Test", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(5, 34)
22803
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("static", "10.0", "11.0").
WithLocation
(4, 19),
22806
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(10, 25),
22809
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(11, 25)
22846
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "M01").WithArguments("Test1.M01", "I1.M01", "Test1").
WithLocation
(4, 23),
22849
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "get").WithArguments("Test1.M01.get", "I1.M01.get", "Test1").
WithLocation
(4, 29),
22852
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "set").WithArguments("Test1.M01.set", "I1.M01.set", "Test1").
WithLocation
(4, 34)
22862
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(9, 31),
22865
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(9, 36)
22902
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(4, 19)
22912
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(4, 19),
22915
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "get").
WithLocation
(9, 31),
22918
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "set").
WithLocation
(9, 36)
23446
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("C2.M01.get", "I1.M01.get", "C5", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(10, 23),
23449
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("C2.M01.set", "I1.M01.set", "C5", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(10, 23),
23452
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("C2.M01", "I1.M01", "C5", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(10, 23)
23523
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.M01.get", "I1.M01.get", "C1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 19),
23526
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.M01.set", "I1.M01.set", "C1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 19)
23544
Diagnostic(ErrorCode.ERR_BadAccess, "M01").WithArguments("I1.M01").
WithLocation
(4, 18)
23574
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("C1", "I1.M01.get", "C1.M01.get").
WithLocation
(4, 28),
23577
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("C1", "I1.M01.set", "C1.M01.set").
WithLocation
(4, 33)
23636
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01").
WithLocation
(2, 19)
23665
Diagnostic(ErrorCode.ERR_BadAccess, "M01").WithArguments("I1.M01.set").
WithLocation
(4, 18),
23668
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "M01").WithArguments("C1.I1.M01", "I1.M01.set").
WithLocation
(4, 18)
23726
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("C1", "I1.M01.set", "C1.M01.set").
WithLocation
(4, 33)
23806
Diagnostic(ErrorCode.ERR_BadAccess, "M01").WithArguments("I1.M01.set").
WithLocation
(4, 18)
23896
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01.get").
WithLocation
(2, 19),
23899
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "set").WithArguments("C1", "I1.M01.set", "C1.M01.set").
WithLocation
(4, 28)
23926
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01.get").
WithLocation
(2, 19),
23929
Diagnostic(ErrorCode.ERR_BadAccess, "M01").WithArguments("I1.M01.set").
WithLocation
(4, 18),
23932
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "M01").WithArguments("C1.I1.M01", "I1.M01.get").
WithLocation
(4, 18)
23988
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01").
WithLocation
(2, 19)
24017
Diagnostic(ErrorCode.ERR_BadAccess, "M01").WithArguments("I1.M01.get").
WithLocation
(4, 18),
24020
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "M01").WithArguments("C1.I1.M01", "I1.M01.get").
WithLocation
(4, 18)
24078
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("C1", "I1.M01.get", "C1.M01.get").
WithLocation
(4, 28)
24158
Diagnostic(ErrorCode.ERR_BadAccess, "M01").WithArguments("I1.M01.get").
WithLocation
(4, 18)
24248
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01.set").
WithLocation
(2, 19),
24251
Diagnostic(ErrorCode.ERR_ImplicitImplementationOfInaccessibleInterfaceMember, "get").WithArguments("C1", "I1.M01.get", "C1.M01.get").
WithLocation
(4, 28)
24278
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01.set").
WithLocation
(2, 19),
24281
Diagnostic(ErrorCode.ERR_BadAccess, "M01").WithArguments("I1.M01.get").
WithLocation
(4, 18),
24284
Diagnostic(ErrorCode.ERR_ExplicitPropertyMissingAccessor, "M01").WithArguments("C1.I1.M01", "I1.M01.set").
WithLocation
(4, 18)
25188
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01").
WithLocation
(8, 10),
25191
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotStatic, "I1").WithArguments("C2", "I1.M01", "C2.M01").
WithLocation
(12, 10),
25194
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I1").WithArguments("C3", "I1.M01", "C3.M01").
WithLocation
(18, 10),
25197
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C4", "I1.M01").
WithLocation
(24, 10),
25200
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C4.M01").
WithLocation
(26, 28),
25203
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("C5", "I1.M01", "C5.M01", "System.Action").
WithLocation
(30, 10),
25206
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C6", "I1.M01").
WithLocation
(36, 10),
25209
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C6.M01").
WithLocation
(38, 40)
25268
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C4.M01").
WithLocation
(26, 28),
25271
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C6.M01").
WithLocation
(38, 40)
25330
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01").
WithLocation
(8, 10),
25333
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberStatic, "I1").WithArguments("C2", "I1.M01", "C2.M01").
WithLocation
(12, 10),
25336
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I1").WithArguments("C3", "I1.M01", "C3.M01").
WithLocation
(18, 10),
25339
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C4", "I1.M01").
WithLocation
(24, 10),
25342
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C4.M01").
WithLocation
(26, 35),
25345
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1").WithArguments("C5", "I1.M01", "C5.M01", "System.Action").
WithLocation
(30, 10),
25348
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C6", "I1.M01").
WithLocation
(36, 10),
25351
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("C6.M01").
WithLocation
(38, 33)
25406
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I3.M01", "I1.M01").
WithLocation
(12, 40),
25409
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I4.M01", "I1.M01").
WithLocation
(17, 32),
25412
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("I5.M01").
WithLocation
(22, 28),
25415
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I7.M01", "I1.M01").
WithLocation
(32, 41)
25488
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I3.M01", "I1.M01").
WithLocation
(12, 40),
25491
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I4.M01", "I1.M01").
WithLocation
(17, 32),
25494
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "M01").WithArguments("I5.M01").
WithLocation
(22, 28),
25497
Diagnostic(ErrorCode.WRN_NewRequired, "M01").WithArguments("I7.M01", "I1.M01").
WithLocation
(32, 41),
25500
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M01").WithArguments("virtual").
WithLocation
(37, 44),
25503
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, "M01").
WithLocation
(37, 44)
25562
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("static", "10.0", "11.0").
WithLocation
(4, 35),
25565
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "M02").WithArguments("Test.M02.add", "I1.M02.add", "Test", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(5, 39),
25568
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "M02").WithArguments("Test.M02.remove", "I1.M02.remove", "Test", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(5, 39),
25571
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "M02").WithArguments("Test.M02", "I1.M02", "Test", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(5, 39),
25574
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "M02").WithArguments("Test.M02").
WithLocation
(5, 39)
25584
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments("static", "10.0", "11.0").
WithLocation
(4, 35),
25587
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "M02").WithArguments("Test.M02").
WithLocation
(5, 39),
25590
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M01").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(10, 41),
25593
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M02").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(11, 41)
25630
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "M01").WithArguments("Test1.M01", "I1.M01", "Test1").
WithLocation
(4, 39),
25633
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "add").WithArguments("Test1.M01.add", "I1.M01.add", "Test1").
WithLocation
(4, 45),
25636
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "remove").WithArguments("Test1.M01.remove", "I1.M01.remove", "Test1").
WithLocation
(4, 51)
25646
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(9, 41)
25683
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(4, 35)
25693
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(4, 35),
25696
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "M01").
WithLocation
(9, 41)
26138
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("C2.M01.add", "I1.M01.add", "C5", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(10, 23),
26141
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("C2.M01.remove", "I1.M01.remove", "C5", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(10, 23),
26144
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("C2.M01", "I1.M01", "C5", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(10, 23)
26216
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.M01.add", "I1.M01.add", "C1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 19),
26219
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1").WithArguments("I1.M01.remove", "I1.M01.remove", "C1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 19)
26318
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01").
WithLocation
(2, 19)
26347
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "M01").WithArguments("C1.I1.M01").
WithLocation
(4, 34)
26475
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "M01").WithArguments("C1.M01").
WithLocation
(4, 38)
26502
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01.add").
WithLocation
(2, 19),
26505
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "M01").WithArguments("C1.M01").
WithLocation
(4, 38)
26532
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01.add").
WithLocation
(2, 19),
26535
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "M01").WithArguments("C1.I1.M01").
WithLocation
(4, 34)
26592
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01").
WithLocation
(2, 19)
26621
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "M01").WithArguments("C1.I1.M01").
WithLocation
(4, 34)
26749
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "M01").WithArguments("C1.M01").
WithLocation
(4, 38)
26776
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01.remove").
WithLocation
(2, 19),
26779
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "M01").WithArguments("C1.M01").
WithLocation
(4, 38)
26806
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1").WithArguments("C1", "I1.M01.remove").
WithLocation
(2, 19),
26809
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "M01").WithArguments("C1.I1.M01").
WithLocation
(4, 34)
27922
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>." + op + " operator " + checkedKeyword + "int(C1)").
WithLocation
(8, 10),
27925
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotStatic, "I1<C2>").WithArguments("C2", "I1<C2>." + op + " operator " + checkedKeyword + "int(C2)", "C2." + op + " operator " + checkedKeyword + "int(C2)").
WithLocation
(12, 10),
27928
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, "int").WithArguments("C2." + op + " operator " + checkedKeyword + "int(C2)").
WithLocation
(14, 30 + checkedKeyword.Length),
27931
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberNotPublic, "I1<C3>").WithArguments("C3", "I1<C3>." + op + " operator " + checkedKeyword + "int(C3)", "C3." + op + " operator " + checkedKeyword + "int(C3)").
WithLocation
(18, 10),
27934
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, "int").WithArguments("C3." + op + " operator " + checkedKeyword + "int(C3)").
WithLocation
(20, 30 + checkedKeyword.Length),
27937
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C4>").WithArguments("C4", "I1<C4>." + op + " operator " + checkedKeyword + "int(C4)").
WithLocation
(24, 10),
27940
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C4." + op + " operator " + checkedKeyword + "int(C4)").
WithLocation
(26, 30 + checkedKeyword.Length),
27943
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C4." + op + " operator " + checkedKeyword + "int(C4)").
WithLocation
(26, 30 + checkedKeyword.Length),
27946
Diagnostic(ErrorCode.ERR_CloseUnimplementedInterfaceMemberWrongReturnType, "I1<C5>").WithArguments("C5", "I1<C5>." + op + " operator " + checkedKeyword + "int(C5)", "C5." + op + " operator " + checkedKeyword + "long(C5)", "int").
WithLocation
(30, 10),
27949
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C6>").WithArguments("C6", "I1<C6>." + op + " operator " + checkedKeyword + "int(C6)").
WithLocation
(36, 10),
27952
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "long").WithArguments("C6." + op + " operator " + checkedKeyword + "long(C6)").
WithLocation
(38, 37 + checkedKeyword.Length),
27955
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C7>").WithArguments("C7", "I1<C7>." + op + " operator " + checkedKeyword + "int(C7)").
WithLocation
(42, 10),
27958
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C8>").WithArguments("C8", "I1<C8>." + op + " operator " + checkedKeyword + "int(C8)").
WithLocation
(48, 10),
27961
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, opName).WithArguments("C8." + opName + "(C8)").
WithLocation
(50, 23),
27964
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2<C9>").WithArguments("C9", "I2<C9>." + opName + "(C9)").
WithLocation
(59, 10),
27967
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I2<C10>").WithArguments("C10", "I2<C10>." + opName + "(C10)").
WithLocation
(65, 11),
27970
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C10." + op + " operator " + checkedKeyword + "int(C10)").
WithLocation
(67, 38 + checkedKeyword.Length)
28065
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, "int").WithArguments("C2." + op + " operator " + checkedKeyword + "int(C2)").
WithLocation
(14, 30 + checkedKeyword.Length),
28068
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, "int").WithArguments("C3." + op + " operator " + checkedKeyword + "int(C3)").
WithLocation
(20, 30 + checkedKeyword.Length),
28071
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C4." + op + " operator " + checkedKeyword + "int(C4)").
WithLocation
(26, 30 + checkedKeyword.Length),
28074
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C4." + op + " operator " + checkedKeyword + "int(C4)").
WithLocation
(26, 30 + checkedKeyword.Length),
28077
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "long").WithArguments("C6." + op + " operator " + checkedKeyword + "long(C6)").
WithLocation
(38, 37 + checkedKeyword.Length),
28080
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, opName).WithArguments("C8." + opName + "(C8)").
WithLocation
(50, 23),
28083
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C10." + op + " operator " + checkedKeyword + "int(C10)").
WithLocation
(67, 38 + checkedKeyword.Length)
28174
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "int").
WithLocation
(12, 23 + checkedKeyword.Length),
28177
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(12, 23 + checkedKeyword.Length),
28180
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "int").
WithLocation
(17, 30 + checkedKeyword.Length),
28183
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(17, 30 + checkedKeyword.Length),
28186
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("I5<T>." + op + " operator " + checkedKeyword + "int(T)").
WithLocation
(22, 29 + checkedKeyword.Length),
28189
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("I5<T>." + op + " operator " + checkedKeyword + "int(T)").
WithLocation
(22, 29 + checkedKeyword.Length),
28192
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "int").
WithLocation
(32, 39 + checkedKeyword.Length),
28195
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "int").
WithLocation
(42, 23 + checkedKeyword.Length),
28198
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(42, 23 + checkedKeyword.Length),
28201
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "int").
WithLocation
(47, 30 + checkedKeyword.Length),
28204
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(47, 30 + checkedKeyword.Length)
28331
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "int").
WithLocation
(12, 23 + checkedKeyword.Length),
28334
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(12, 23 + checkedKeyword.Length),
28337
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "int").
WithLocation
(17, 30 + checkedKeyword.Length),
28340
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(17, 30 + checkedKeyword.Length),
28343
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("I5<T>." + op + " operator " + checkedKeyword + "int(T)").
WithLocation
(22, 29 + checkedKeyword.Length),
28346
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("I5<T>." + op + " operator " + checkedKeyword + "int(T)").
WithLocation
(22, 29 + checkedKeyword.Length),
28349
Diagnostic(ErrorCode.ERR_AbstractConversionNotInvolvingContainedType, "int").
WithLocation
(32, 39 + checkedKeyword.Length),
28352
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "int").
WithLocation
(42, 23 + checkedKeyword.Length),
28355
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(42, 23 + checkedKeyword.Length),
28358
Diagnostic(ErrorCode.ERR_ConversionNotInvolvingContainedType, "int").
WithLocation
(47, 30 + checkedKeyword.Length),
28361
Diagnostic(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, "int").
WithLocation
(47, 30 + checkedKeyword.Length),
28364
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("virtual").
WithLocation
(62, 46 + checkedKeyword.Length),
28367
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("virtual").
WithLocation
(67, 45 + checkedKeyword.Length)
28456
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I2<Test1>.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 21),
28459
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "int").WithArguments("Test2." + op + " operator int(Test2)", "I2<Test2>." + op + " operator int(Test2)", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(9, 37)
28467
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I2<Test1>.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 21),
28470
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(4, 40),
28473
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(9, 37),
28476
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "int").WithArguments("Test2." + op + " operator checked int(Test2)", "I2<Test2>." + op + " operator checked int(Test2)", "Test2", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(9, 45)
28489
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I2<Test1>.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 21),
28492
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(14, 39)
28500
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "I2<Test1>.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(4, 21),
28503
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(4, 40),
28506
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(9, 37),
28509
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(14, 39),
28512
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(14, 47)
28555
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfacesForMember, "int").WithArguments("Test1." + op + " operator " + checkedKeyword + "int(Test1)", "I1<Test1>." + op + " operator " + checkedKeyword + "int(Test1)", "Test1").
WithLocation
(4, 37 + checkedKeyword.Length)
28565
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "int").
WithLocation
(9, 39 + checkedKeyword.Length)
28607
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "int").
WithLocation
(4, 40 + checkedKeyword.Length)
28617
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "int").
WithLocation
(4, 40 + checkedKeyword.Length),
28620
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "int").
WithLocation
(9, 39 + checkedKeyword.Length)
29073
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1<C1>").WithArguments("C2." + op + " operator " + checkedKeyword + "int(C1)", "I1<C1>." + op + " operator " + checkedKeyword + "int(C1)", "C5", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(10, 23)
29133
Diagnostic(ErrorCode.ERR_LanguageVersionDoesNotSupportInterfaceImplementationForMember, "I1<C1>").WithArguments("I1<C1>." + op + " operator " + checkedKeyword + "int(C1)", "I1<C1>." + op + " operator " + checkedKeyword + "int(C1)", "C1", "static abstract members in interfaces", "10.0", "11.0").
WithLocation
(2, 19)
29889
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("private").
WithLocation
(16, 45),
29892
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("protected").
WithLocation
(22, 47),
29895
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("internal").
WithLocation
(28, 46),
29898
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("protected internal").
WithLocation
(34, 56),
29901
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("private protected").
WithLocation
(40, 55),
29904
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("public").
WithLocation
(46, 44),
29907
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("async").
WithLocation
(52, 43),
29910
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("readonly").
WithLocation
(64, 47),
29913
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("abstract").
WithLocation
(76, 47),
29916
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("virtual").
WithLocation
(82, 46),
29919
Diagnostic(ErrorCode.ERR_BadMemberFlag, "int").WithArguments("sealed").
WithLocation
(88, 45)
29952
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I1<int>").WithArguments("C1.I1<int>." + op + " operator int(int)", "I1<int>").
WithLocation
(9, 21),
29955
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "I1<int>").WithArguments("I1<T>", "I1<int>", "T", "int").
WithLocation
(9, 21),
29958
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "C2").WithArguments("I1<T>", "T", "C2").
WithLocation
(12, 7),
29961
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "I1<C2>").WithArguments("I1<T>", "T", "C2").
WithLocation
(14, 21)
30019
Diagnostic(error, cast + "x").WithArguments("I1<T>", "int").
WithLocation
(8, 16),
30022
Diagnostic(error, cast + "y").WithArguments("I1<T>", "int").
WithLocation
(13, 16),
30025
Diagnostic(error, cast + "a").WithArguments("I1<T>", "int").
WithLocation
(21, 16),
30028
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, cast + "b").
WithLocation
(26, 80)
30085
Diagnostic(ErrorCode.ERR_ConversionWithInterface, "bool").WithArguments("I1.implicit operator bool(I1)").
WithLocation
(4, 39),
30088
Diagnostic(ErrorCode.ERR_NoImplicitConv, "x " + op + " x").WithArguments("I1", "bool").
WithLocation
(9, 13),
30091
Diagnostic(ErrorCode.ERR_NoImplicitConv, "y " + op + " y").WithArguments("I1", "bool").
WithLocation
(14, 13),
30094
Diagnostic(ErrorCode.ERR_NoImplicitConv, "a " + op + " a").WithArguments("I1", "bool").
WithLocation
(22, 13),
30097
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsTupleBinOp, "b " + op + " b").
WithLocation
(27, 98)
30552
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, (needCast ? "(int)" : "") + "x").
WithLocation
(6, 16)
30562
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "int").
WithLocation
(12, 39 + checkedKeyword.Length)
30610
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "x " + op + " x").
WithLocation
(6, 13)
30620
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, "bool").
WithLocation
(21, 39)
30669
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, (needCast ? "(int)" : "") + "x").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 16),
30672
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "(int)x").WithArguments("checked user-defined operators", "11.0").
WithLocation
(6, 16)
30680
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, (needCast ? "(int)" : "") + "x").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 16)
30693
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "checked").WithArguments("checked user-defined operators", "11.0").
WithLocation
(12, 40),
30696
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 48)
30704
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "int").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(12, 39)
30753
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x " + op + " x").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(6, 13)
30763
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "bool").WithArguments(modifier.Trim(), "10.0", "11.0").
WithLocation
(21, 39)
31020
Diagnostic(error, (needCast ? "(int)" : "") + "x").WithArguments("T", "int").
WithLocation
(16, 16),
31023
Diagnostic(error, (needCast ? "(int)" : "") + "y").WithArguments("C1<T>", "int").
WithLocation
(21, 16)
31071
Diagnostic(error, (needCast ? "(T)" : "") + "x").WithArguments("int", "T").
WithLocation
(16, 16),
31074
Diagnostic(error, (needCast ? "(C1<T>)" : "") + "y").WithArguments("int", "C1<T>").
WithLocation
(21, 16)
31190
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "x").WithArguments("int", "T").
WithLocation
(14, 16)
31865
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface<int, int>").WithArguments("Other", "Interface<int, int>.Method(int)").
WithLocation
(9, 15),
31868
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "Interface<int, int>").WithArguments("Other", "Interface<int, int>.Method(int)").
WithLocation
(9, 15),
31871
Diagnostic(ErrorCode.WRN_ExplicitImplCollision, "Method").WithArguments("Other.Interface<int, int>.Method(int)").
WithLocation
(11, 37)
31900
Diagnostic(ErrorCode.WRN_ExplicitImplCollision, "Method").WithArguments("Other.Interface<int, int>.Method(int)").
WithLocation
(11, 37)
31934
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(6, 6),
31937
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(7, 6),
31940
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(8, 6),
31943
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(13, 6),
31946
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(14, 6)
32068
Diagnostic(ErrorCode.ERR_BindToBogus, "M1").WithArguments("I1.M1()").
WithLocation
(6, 11),
32071
Diagnostic(ErrorCode.ERR_BindToBogus, "+x").WithArguments("I1.operator +(I1)").
WithLocation
(7, 13),
32074
Diagnostic(ErrorCode.ERR_BindToBogus, "x + y").WithArguments("I1.operator +(I1, I1)").
WithLocation
(8, 13),
32077
Diagnostic(ErrorCode.ERR_BindToBogus, "x").WithArguments("I2<T>.implicit operator int(T)").
WithLocation
(14, 16)
32116
Diagnostic(ErrorCode.ERR_InterfaceImplementedByUnmanagedCallersOnlyMethod, "M1").WithArguments("C.M1()", "I1<C>.M1()", "C").
WithLocation
(15, 47),
32119
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(16, 6),
32122
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(17, 6),
32125
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(18, 6),
32128
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(19, 6)
32167
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(15, 6),
32170
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(16, 6),
32173
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(17, 6),
32176
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(18, 6),
32179
Diagnostic(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, "UnmanagedCallersOnly").
WithLocation
(19, 6)
32211
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments(op).
WithLocation
(4, 39)
32245
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments("true").
WithLocation
(4, 42),
32248
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments("false").
WithLocation
(5, 42)
32299
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.operator checked " + op + "(C1)").
WithLocation
(7, 19),
32302
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C2>").WithArguments("C2", "I1<C2>.operator checked " + op + "(C2)").
WithLocation
(12, 19),
32305
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C2.operator " + op + "(C2)").
WithLocation
(14, 31)
32340
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C2.operator " + op + "(C2)").
WithLocation
(14, 31)
32375
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.operator " + op + "(C1)").
WithLocation
(7, 19),
32378
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C2>").WithArguments("C2", "I1<C2>.operator " + op + "(C2)").
WithLocation
(12, 19),
32381
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C2.operator checked " + op + "(C2)").
WithLocation
(14, 38)
32416
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C2.operator checked " + op + "(C2)").
WithLocation
(14, 38)
32459
Diagnostic(ErrorCode.ERR_OperatorCantBeChecked, "checked").WithArguments(op).
WithLocation
(4, 39)
32504
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.operator checked " + op + "(C1, int)").
WithLocation
(7, 19),
32507
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C2>").WithArguments("C2", "I1<C2>.operator checked " + op + "(C2, int)").
WithLocation
(12, 19),
32510
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C2.operator " + op + "(C2, int)").
WithLocation
(14, 31)
32546
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C2.operator " + op + "(C2, int)").
WithLocation
(14, 31)
32582
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.operator " + op + "(C1, int)").
WithLocation
(7, 19),
32585
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C2>").WithArguments("C2", "I1<C2>.operator " + op + "(C2, int)").
WithLocation
(12, 19),
32588
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C2.operator checked " + op + "(C2, int)").
WithLocation
(14, 38)
32624
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, op).WithArguments("C2.operator checked " + op + "(C2, int)").
WithLocation
(14, 38)
32646
Diagnostic(ErrorCode.ERR_ImplicitConversionOperatorCantBeChecked, "checked").
WithLocation
(4, 46)
32686
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.explicit operator checked int(C1)").
WithLocation
(7, 19),
32689
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C2>").WithArguments("C2", "I1<C2>.explicit operator checked int(C2)").
WithLocation
(12, 19),
32692
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.explicit operator int(C2)").
WithLocation
(14, 37)
32724
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.explicit operator int(C2)").
WithLocation
(14, 37)
32756
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.explicit operator int(C1)").
WithLocation
(7, 19),
32759
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C2>").WithArguments("C2", "I1<C2>.explicit operator int(C2)").
WithLocation
(12, 19),
32762
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.explicit operator checked int(C2)").
WithLocation
(14, 45)
32794
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.explicit operator checked int(C2)").
WithLocation
(14, 45)
32826
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.explicit operator checked int(C1)").
WithLocation
(7, 19),
32829
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C2>").WithArguments("C2", "I1<C2>.explicit operator checked int(C2)").
WithLocation
(12, 19),
32832
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.implicit operator int(C2)").
WithLocation
(14, 37)
32864
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.implicit operator int(C2)").
WithLocation
(14, 37)
32896
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.implicit operator int(C1)").
WithLocation
(7, 19),
32899
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C2>").WithArguments("C2", "I1<C2>.implicit operator int(C2)").
WithLocation
(12, 19),
32902
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.explicit operator checked int(C2)").
WithLocation
(14, 45)
32934
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.explicit operator checked int(C2)").
WithLocation
(14, 45)
32966
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.explicit operator int(C1)").
WithLocation
(7, 19),
32969
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C2>").WithArguments("C2", "I1<C2>.explicit operator int(C2)").
WithLocation
(12, 19),
32972
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.implicit operator int(C2)").
WithLocation
(14, 37)
33004
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.implicit operator int(C2)").
WithLocation
(14, 37)
33036
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C1>").WithArguments("C1", "I1<C1>.implicit operator int(C1)").
WithLocation
(7, 19),
33039
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C2>").WithArguments("C2", "I1<C2>.implicit operator int(C2)").
WithLocation
(12, 19),
33042
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.explicit operator int(C2)").
WithLocation
(14, 37)
33074
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C2.explicit operator int(C2)").
WithLocation
(14, 37)
33128
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "op_Addition").WithArguments("I2<T2>.op_Addition(T2, T2)").
WithLocation
(4, 31),
33131
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "op_Addition").WithArguments("I3<T3>.op_Addition(T3, T3)").
WithLocation
(9, 22),
33134
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C4>").WithArguments("C4", "I1<C4>.operator +(C4, C4)").
WithLocation
(12, 19),
33137
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "op_Addition").WithArguments("C4.op_Addition(C4, C4)").
WithLocation
(14, 22),
33140
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C5>").WithArguments("C5", "I1<C5>.operator +(C5, C5)").
WithLocation
(17, 19)
33195
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "+").WithArguments("I2<T2>.operator +(T2, T2)").
WithLocation
(4, 40),
33198
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "+").WithArguments("I3<T3>.operator +(T3, T3)").
WithLocation
(9, 31),
33201
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C4>").WithArguments("C4", "I1<C4>.op_Addition(C4, C4)").
WithLocation
(12, 19),
33204
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "+").WithArguments("C4.operator +(C4, C4)").
WithLocation
(14, 31),
33207
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C5>").WithArguments("C5", "I1<C5>.op_Addition(C5, C5)").
WithLocation
(17, 19)
33262
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "op_Implicit").WithArguments("I2<T2>.op_Implicit(T2)").
WithLocation
(4, 32),
33265
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "op_Implicit").WithArguments("I3<T3>.op_Implicit(T3)").
WithLocation
(9, 23),
33268
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C4>").WithArguments("C4", "I1<C4>.implicit operator int(C4)").
WithLocation
(12, 19),
33271
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "op_Implicit").WithArguments("C4.op_Implicit(C4)").
WithLocation
(14, 23),
33274
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C5>").WithArguments("C5", "I1<C5>.implicit operator int(C5)").
WithLocation
(17, 19)
33329
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("I2<T2>.implicit operator int(T2)").
WithLocation
(4, 46),
33332
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("I3<T3>.implicit operator int(T3)").
WithLocation
(9, 37),
33335
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C4>").WithArguments("C4", "I1<C4>.op_Implicit(C4)").
WithLocation
(12, 19),
33338
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "int").WithArguments("C4.implicit operator int(C4)").
WithLocation
(14, 37),
33341
Diagnostic(ErrorCode.ERR_UnimplementedInterfaceMember, "I1<C5>").WithArguments("C5", "I1<C5>.op_Implicit(C5)").
WithLocation
(17, 19)
33435
Diagnostic(ErrorCode.ERR_DuplicateConversionInClass, "int").WithArguments("C23_1").
WithLocation
(66, 37),
33438
Diagnostic(ErrorCode.ERR_DuplicateConversionInClass, "int").WithArguments("C23_1").
WithLocation
(69, 45),
33441
Diagnostic(ErrorCode.ERR_DuplicateConversionInClass, "int").WithArguments("C23_2").
WithLocation
(77, 37),
33444
Diagnostic(ErrorCode.ERR_DuplicateConversionInClass, "int").WithArguments("C23_2").
WithLocation
(80, 45)
33459
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1)
33476
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1)
33522
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1)
33568
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1)
Symbols\SymbolDistinguisherTests.cs (26)
354
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "I").WithArguments("file.cs", "I", "Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "I").
WithLocation
(8, 9),
357
Diagnostic(ErrorCode.ERR_NoImplicitConvCast, "Lib.M()").WithArguments("I [Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]", "I [file.cs(2)]").
WithLocation
(8, 15));
388
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "S").WithArguments("file.cs", "S", "Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "S").
WithLocation
(8, 9),
391
Diagnostic(ErrorCode.ERR_NoImplicitConv, "Lib.M()").WithArguments("S [Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]", "S [file.cs(2)]").
WithLocation
(8, 15));
422
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "S").WithArguments("file.cs", "S", "Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "S").
WithLocation
(8, 18),
425
Diagnostic(ErrorCode.ERR_NoExplicitConv, "(S)Lib.M()").WithArguments("S [Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]", "S [file.cs(2)]").
WithLocation
(8, 17));
454
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "C").WithArguments("file.cs", "C", "Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "C").
WithLocation
(6, 28),
457
Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, "Lib.M() as C").WithArguments("C [Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]", "C [file.cs(2)]").
WithLocation
(6, 17));
486
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "C").WithArguments("file.cs", "C", "Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "C").
WithLocation
(6, 36),
489
Diagnostic(ErrorCode.ERR_InvalidQM, "args == null ? new C() : Lib.M()").WithArguments("C [file.cs(2)]", "C [Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]").
WithLocation
(6, 17));
515
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "C").WithArguments("file.cs", "C", "Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "C").
WithLocation
(7, 16),
518
Diagnostic(ErrorCode.ERR_CantConvAnonMethParams, "(C c) => { }").WithArguments("lambda expression", "D").
WithLocation
(7, 15),
521
Diagnostic(ErrorCode.ERR_BadParamType, "c").WithArguments("1", "", "C [file.cs(3)]", "", "C [Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]").
WithLocation
(7, 18));
550
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "C").WithArguments("file.cs", "C", "Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "C").
WithLocation
(6, 19),
553
Diagnostic(ErrorCode.ERR_BadArgType, "new C()").WithArguments("1", "C [file.cs(2)]", "C [Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]").
WithLocation
(6, 15));
583
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "C").WithArguments("file.cs", "C", "Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "C").
WithLocation
(6, 21),
586
Diagnostic(ErrorCode.ERR_BadArgType, "c").WithArguments("1", "ref C [Source, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]", "ref C [Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]").
WithLocation
(7, 19));
615
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "C").WithArguments("file.cs", "C", "Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "C").
WithLocation
(6, 15),
618
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "M<C>").WithArguments("Lib.M<T>()", "C [Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]", "T", "C [file.cs(2)]").
WithLocation
(6, 13));
652
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedTyVar, "M<C>").WithArguments("Lib.M<T>()", "C [Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]", "T", "C [file.cs(2)]").
WithLocation
(6, 13));
683
Diagnostic(ErrorCode.WRN_SameFullNameThisAggAgg, "C").WithArguments("file.cs", "C", "Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "C").
WithLocation
(8, 15),
686
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedValType, "M<C>").WithArguments("Lib.M<T>()", "C [Metadata, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]", "T", "C [file.cs(2)]").
WithLocation
(8, 13));
748
Diagnostic(ErrorCode.ERR_GenericConstraintNotSatisfiedRefType, "C").WithArguments("B<T>", "A", "T", "object").
WithLocation
(1, 7));
780
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "E").WithArguments("E").
WithLocation
(3, 65));
786
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "E").WithArguments("E").
WithLocation
(3, 58),
789
Diagnostic(ErrorCode.ERR_BadArgType, "e").WithArguments("1", "System.Collections.Generic.IEnumerable<E>", "System.Collections.Generic.IEnumerable<E>").
WithLocation
(5, 13));
Symbols\SymbolEqualityTests.cs (2)
79
Diagnostic(ErrorCode.WRN_NullReferenceArgument, "s").WithArguments("o", "void Extensions.StringExt(object o)").
WithLocation
(17, 9));
882
Diagnostic(ErrorCode.WRN_UninitializedNonNullableField, "MyEvent").WithArguments("event", "MyEvent").
WithLocation
(6, 41)
Symbols\SymbolErrorTests.cs (945)
265
Diagnostic(ErrorCode.ERR_BadVisParamType, "M").WithArguments("C1.M(B<A>)", "B<A>").
WithLocation
(8, 17),
267
Diagnostic(ErrorCode.ERR_BadVisParamType, "M").WithArguments("C2.M(B<object>.C<A>)", "B<object>.C<A>").
WithLocation
(12, 17),
269
Diagnostic(ErrorCode.ERR_BadVisParamType, "M").WithArguments("C3.M(B<A>.C<object>)", "B<A>.C<object>").
WithLocation
(16, 17),
271
Diagnostic(ErrorCode.ERR_BadVisParamType, "M").WithArguments("C4.M(B<B<A>>.C<object>)", "B<B<A>>.C<object>").
WithLocation
(20, 17));
351
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "Q").WithArguments("A.Q", "InternalInterface").
WithLocation
(8, 30),
353
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "R").WithArguments("A.R", "A.ProtectedStruct").
WithLocation
(9, 28),
355
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "S").WithArguments("A.S", "A.PrivateClass").
WithLocation
(10, 25),
357
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "V").WithArguments("A.V", "A.ProtectedStruct").
WithLocation
(13, 30),
359
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "W").WithArguments("A.W", "A.PrivateClass").
WithLocation
(14, 27),
361
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "Q").WithArguments("A.B.Q", "InternalInterface").
WithLocation
(18, 34),
363
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "S").WithArguments("A.B.S", "A.PrivateClass").
WithLocation
(20, 29),
365
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "W").WithArguments("A.B.W", "A.PrivateClass").
WithLocation
(24, 31),
367
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "R").WithArguments("C.R", "C.ProtectedStruct").
WithLocation
(33, 28),
369
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "S").WithArguments("C.S", "C.PrivateClass").
WithLocation
(34, 25),
371
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "V").WithArguments("C.V", "C.ProtectedStruct").
WithLocation
(37, 30),
373
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "W").WithArguments("C.W", "C.PrivateClass").
WithLocation
(38, 27),
375
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "S").WithArguments("C.D.S", "C.PrivateClass").
WithLocation
(44, 29),
377
Diagnostic(ErrorCode.ERR_BadVisPropertyType, "W").WithArguments("C.D.W", "C.PrivateClass").
WithLocation
(48, 31));
436
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("A.this[object]", "InternalInterface").
WithLocation
(8, 30),
438
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("A.this[string]", "A.ProtectedStruct").
WithLocation
(9, 28),
440
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("A.this[double]", "A.PrivateClass").
WithLocation
(10, 25),
442
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("A.this[string, string]", "A.ProtectedStruct").
WithLocation
(13, 30),
444
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("A.this[double, double]", "A.PrivateClass").
WithLocation
(14, 27),
446
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("A.B.this[object]", "InternalInterface").
WithLocation
(18, 34),
448
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("A.B.this[double]", "A.PrivateClass").
WithLocation
(20, 29),
450
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("A.B.this[double, double]", "A.PrivateClass").
WithLocation
(24, 31),
452
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("C.this[string]", "C.ProtectedStruct").
WithLocation
(33, 28),
454
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("C.this[double]", "C.PrivateClass").
WithLocation
(34, 25),
456
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("C.this[string, string]", "C.ProtectedStruct").
WithLocation
(37, 30),
458
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("C.this[double, double]", "C.PrivateClass").
WithLocation
(38, 27),
460
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("C.D.this[double]", "C.PrivateClass").
WithLocation
(44, 29),
462
Diagnostic(ErrorCode.ERR_BadVisIndexerReturn, "this").WithArguments("C.D.this[double, double]", "C.PrivateClass").
WithLocation
(48, 31));
578
Diagnostic(ErrorCode.ERR_BadVisDelegateReturn, "MyDelegate").WithArguments("Outer.MyDelegate", "Outer.Test").
WithLocation
(5, 26)
742
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C1").WithArguments("C1", "B<A>").
WithLocation
(6, 14),
744
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C2").WithArguments("C2", "B<object>.C<A>").
WithLocation
(7, 14),
746
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C3").WithArguments("C3", "B<A>.C<object>").
WithLocation
(8, 14),
748
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C4").WithArguments("C4", "B<B<A>>.C<object>").
WithLocation
(9, 14));
766
Diagnostic(ErrorCode.ERR_BadVisBaseClass, "C").WithArguments("C", "B<A.B.C>").
WithLocation
(9, 14));
842
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(6, 35),
845
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(6, 43));
851
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(6, 35),
854
Diagnostic(ErrorCode.ERR_AddRemoveMustHaveBody, ";").
WithLocation
(6, 43),
857
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 32),
860
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 37)
879
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 32),
882
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "remove").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 39)
901
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "add").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 32),
904
Diagnostic(ErrorCode.ERR_EventNeedsBothAccessors, "myevent").WithArguments("i1.myevent").
WithLocation
(5, 22)
922
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, "P10").
WithLocation
(6, 28),
925
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.P10", "I2").
WithLocation
(6, 25),
928
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P10").WithArguments("I1.P10").
WithLocation
(6, 28)
947
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I2").WithArguments("I1.P10", "I2").
WithLocation
(6, 25),
950
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, "P10").
WithLocation
(7, 1),
953
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "P10").WithArguments("I1.P10").
WithLocation
(7, 1)
998
Diagnostic(ErrorCode.ERR_InterfaceEventInitializer, "d").WithArguments("I.d").
WithLocation
(6, 22),
1001
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "d").WithArguments("I.d").
WithLocation
(6, 22));
1059
Diagnostic(ErrorCode.ERR_AbstractEventInitializer, "e").WithArguments("Test.e").
WithLocation
(6, 29),
1062
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "e").WithArguments("Test.e").
WithLocation
(6, 29));
1120
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(5, 11),
1123
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(">").
WithLocation
(5, 11),
1126
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments("(").
WithLocation
(5, 11),
1129
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(5, 14),
1132
Diagnostic(ErrorCode.ERR_SyntaxError, ">").WithArguments(",").
WithLocation
(5, 14),
1135
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(",").
WithLocation
(5, 15),
1138
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(5, 16),
1141
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(5, 18),
1144
Diagnostic(ErrorCode.ERR_CloseParenExpected, "{").
WithLocation
(5, 18),
1147
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "()").WithArguments("System.ValueTuple`2").
WithLocation
(5, 15),
1150
Diagnostic(ErrorCode.ERR_ReturnExpected, "F").WithArguments("NS.C.F<>(int, (?, ?))").
WithLocation
(5, 9)
1171
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(5, 11),
1174
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(">").
WithLocation
(5, 11),
1177
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments("(").
WithLocation
(5, 11),
1180
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(5, 14),
1183
Diagnostic(ErrorCode.ERR_SyntaxError, ">").WithArguments(",").
WithLocation
(5, 14),
1186
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(",").
WithLocation
(5, 15),
1189
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "()").WithArguments("tuples", "7.0").
WithLocation
(5, 15),
1192
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(5, 16),
1195
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(5, 18),
1198
Diagnostic(ErrorCode.ERR_CloseParenExpected, "{").
WithLocation
(5, 18),
1201
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "()").WithArguments("System.ValueTuple`2").
WithLocation
(5, 15),
1204
Diagnostic(ErrorCode.ERR_ReturnExpected, "F").WithArguments("NS.C.F<>(int, (?, ?))").
WithLocation
(5, 9)
1220
Diagnostic(ErrorCode.ERR_MemberReserved, "get").WithArguments("get_P", "C").
WithLocation
(4, 20),
1221
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_P", "C").
WithLocation
(4, 25));
1251
Diagnostic(ErrorCode.ERR_MemberReserved, "get").WithArguments("get_P", "B").
WithLocation
(9, 9));
1282
Diagnostic(ErrorCode.ERR_MemberReserved, "get").WithArguments("get_P", "C").
WithLocation
(3, 32),
1283
Diagnostic(ErrorCode.ERR_MemberReserved, "P").WithArguments("set_P", "C").
WithLocation
(3, 28),
1284
Diagnostic(ErrorCode.ERR_MemberReserved, "Q").WithArguments("get_Q", "C").
WithLocation
(4, 31),
1285
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_Q", "C").
WithLocation
(4, 35),
1286
Diagnostic(ErrorCode.ERR_MemberReserved, "get").WithArguments("get_R", "C").
WithLocation
(5, 25),
1287
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_R", "C").
WithLocation
(5, 30),
1288
Diagnostic(ErrorCode.ERR_MemberReserved, "get").WithArguments("get_S", "C").
WithLocation
(6, 35),
1289
Diagnostic(ErrorCode.ERR_MemberReserved, "S").WithArguments("set_S", "C").
WithLocation
(6, 31),
1290
Diagnostic(ErrorCode.ERR_MemberReserved, "T").WithArguments("get_T", "C").
WithLocation
(7, 20),
1291
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_T", "C").
WithLocation
(7, 24),
1292
Diagnostic(ErrorCode.ERR_MemberReserved, "get").WithArguments("get_U", "C").
WithLocation
(8, 16),
1293
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_U", "C").
WithLocation
(8, 37));
1325
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_P", "A<T, U>").
WithLocation
(3, 23),
1326
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_P", "C").
WithLocation
(15, 29),
1327
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_Q", "C").
WithLocation
(16, 29),
1328
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_R", "C").
WithLocation
(17, 28),
1329
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_S", "C").
WithLocation
(18, 28));
1352
Diagnostic(ErrorCode.ERR_MemberReserved, "get").WithArguments("get_Q", "C").
WithLocation
(4, 16),
1353
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_Q", "C").
WithLocation
(4, 21),
1354
Diagnostic(ErrorCode.ERR_MemberReserved, "set").WithArguments("set_S", "C").
WithLocation
(6, 23));
1457
Diagnostic(ErrorCode.ERR_DuplicateParamName, "b").WithArguments("b").
WithLocation
(5, 31),
1460
Diagnostic(ErrorCode.ERR_DuplicateParamName, "p").WithArguments("p").
WithLocation
(10, 45),
1463
Diagnostic(ErrorCode.ERR_DuplicateParamName, "p").WithArguments("p").
WithLocation
(10, 59),
1466
Diagnostic(ErrorCode.ERR_DuplicateParamName, "p").WithArguments("p").
WithLocation
(10, 77),
1469
Diagnostic(ErrorCode.ERR_AmbigMember, "p").WithArguments("object p", "ref string p").
WithLocation
(10, 82)
1639
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "I").WithArguments("NS.C", "I").
WithLocation
(6, 15),
1640
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "S").WithArguments("NS.C", "S").
WithLocation
(8, 15),
1641
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "E").WithArguments("NS.C", "E").
WithLocation
(10, 19));
1675
Diagnostic(ErrorCode.ERR_AmbigContext, "A").WithArguments("A", "n1.A", "n3.n2.A").
WithLocation
(22, 9),
1678
Diagnostic(ErrorCode.ERR_AmbigContext, "IGoo<X>").WithArguments("IGoo<>", "n1.IGoo<T>", "n3.n2.IGoo<V>").
WithLocation
(16, 25),
1681
Diagnostic(ErrorCode.WRN_UnreferencedField, "a").WithArguments("n3.S.a").
WithLocation
(22, 11)
1718
Diagnostic(ErrorCode.ERR_BadMemberFlag, "field").WithArguments("virtual").
WithLocation
(11, 24),
1721
Diagnostic(ErrorCode.ERR_BadMemberFlag, "m").WithArguments("public").
WithLocation
(12, 23),
1724
Diagnostic(ErrorCode.ERR_ClassDoesntImplementInterface, "I").WithArguments("MyNamespace.MyClass.MyNamespace.I.m()", "MyNamespace.I").
WithLocation
(12, 21),
1727
Diagnostic(ErrorCode.WRN_UnreferencedField, "field").WithArguments("MyNamespace.MyClass.field").
WithLocation
(11, 24),
1730
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "f").WithArguments("static", "7.0", "8.0").
WithLocation
(6, 28),
1733
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "f").WithArguments("public", "7.0", "8.0").
WithLocation
(6, 28),
1736
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "f").WithArguments("MyNamespace.I.f()").
WithLocation
(6, 28)
1765
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("static", "7.0", "8.0").
WithLocation
(3, 23),
1768
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P1").WithArguments("public", "7.0", "8.0").
WithLocation
(3, 23),
1771
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P2").WithArguments("abstract", "7.0", "8.0").
WithLocation
(4, 18),
1774
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("static").
WithLocation
(4, 30),
1777
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("abstract").
WithLocation
(5, 27),
1780
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("new").
WithLocation
(5, 27),
1783
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("static").
WithLocation
(6, 21),
1786
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("sealed").
WithLocation
(7, 21),
1789
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("virtual").
WithLocation
(11, 29),
1792
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("static").
WithLocation
(12, 30),
1795
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("new").
WithLocation
(13, 25),
1798
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("sealed").
WithLocation
(14, 21),
1801
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("extern").
WithLocation
(15, 64),
1804
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("C.P6.get").
WithLocation
(16, 31)
1880
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Bar3").WithArguments("virtual").
WithLocation
(6, 24),
1883
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Bar4").WithArguments("abstract").
WithLocation
(7, 25),
1886
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("virtual").
WithLocation
(12, 24),
1889
Diagnostic(ErrorCode.ERR_BadMemberFlag, "this").WithArguments("abstract").
WithLocation
(14, 25),
1892
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Bar2").WithArguments("virtual").
WithLocation
(5, 25),
1895
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Bar1").WithArguments("abstract").
WithLocation
(4, 26),
1898
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Bar5").WithArguments("abstract").
WithLocation
(8, 47),
1901
Diagnostic(ErrorCode.ERR_BadMemberFlag, "Bar6").WithArguments("virtual").
WithLocation
(9, 46),
1904
Diagnostic(ErrorCode.ERR_BadMemberFlag, "ToString").WithArguments("sealed").
WithLocation
(15, 35));
1933
Diagnostic(ErrorCode.ERR_BadMemberFlag, "P1").WithArguments("private").
WithLocation
(8, 19),
1936
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("private").
WithLocation
(15, 17)
1967
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "E").WithArguments("E", "S").
WithLocation
(4, 26),
1969
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "E").WithArguments("E", "S").
WithLocation
(5, 26));
1992
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "C").
WithLocation
(5, 9),
1994
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "C").
WithLocation
(6, 12),
1996
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "I").
WithLocation
(11, 7),
1998
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "this").WithArguments("this", "I").
WithLocation
(12, 7));
2028
Diagnostic(ErrorCode.ERR_DuplicateExplicitImpl, "C").WithArguments("I.this[int]").
WithLocation
(13, 14),
2054
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "C").
WithLocation
(4, 10),
2056
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "C").
WithLocation
(5, 10),
2058
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "M").WithArguments("M", "I<T>").
WithLocation
(10, 10));
2085
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "MyClass2").WithArguments("MyNamespace.MyClass2", "MyNamespace.MyClass.MyMethod()").
WithLocation
(7, 18),
2088
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "MyMethod").WithArguments("override").
WithLocation
(9, 37),
2091
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "MyMethod").WithArguments("MyNamespace.MyClass2.MyMethod()", "MyNamespace.MyClass.MyMethod()").
WithLocation
(9, 37)
2114
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "B").WithArguments("B", "A.P.get").
WithLocation
(5, 7),
2117
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "P").WithArguments("override").
WithLocation
(7, 38),
2120
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "P").WithArguments("B.P", "A.P").
WithLocation
(7, 38),
2123
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "Q").WithArguments("virtual").
WithLocation
(8, 34),
2126
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "Q").WithArguments("readonly automatically implemented properties", "6").
WithLocation
(8, 34),
2129
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "R").WithArguments("abstract").
WithLocation
(9, 37)
2151
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "P").WithArguments("override").
WithLocation
(7, 51),
2154
Diagnostic(ErrorCode.ERR_HidingAbstractMethod, "P").WithArguments("B.P", "A.P").
WithLocation
(7, 51),
2157
Diagnostic(ErrorCode.WRN_NewOrOverrideExpected, "P").WithArguments("B.P", "A.P").
WithLocation
(7, 51),
2160
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P").WithArguments("B.P").
WithLocation
(7, 51),
2163
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "Q").WithArguments("virtual").
WithLocation
(8, 47),
2166
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Q").WithArguments("B.Q").
WithLocation
(8, 47),
2169
Diagnostic(ErrorCode.ERR_StaticNotVirtual, "R").WithArguments("abstract").
WithLocation
(9, 50),
2172
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "R").WithArguments("B.R").
WithLocation
(9, 50)
2251
Diagnostic(ErrorCode.ERR_OverrideNotNew, "Q").WithArguments("B.Q").
WithLocation
(9, 51),
2254
Diagnostic(ErrorCode.ERR_OverrideNotNew, "P").WithArguments("B.P").
WithLocation
(8, 48),
2257
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "P").WithArguments("B.P").
WithLocation
(8, 48),
2260
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Q").WithArguments("B.Q").
WithLocation
(9, 51),
2263
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "Q").WithArguments("A.Q").
WithLocation
(4, 42));
2655
Diagnostic(ErrorCode.ERR_ExternHasBody, "C").WithArguments("NS.C.C()").
WithLocation
(6, 16),
2658
Diagnostic(ErrorCode.ERR_ExternHasBody, "M1").WithArguments("NS.C.M1()").
WithLocation
(7, 21),
2661
Diagnostic(ErrorCode.ERR_ExternHasBody, "M2").WithArguments("NS.C.M2()").
WithLocation
(8, 20),
2664
Diagnostic(ErrorCode.ERR_ExternHasBody, "get").WithArguments("NS.C.P1.get").
WithLocation
(9, 28),
2667
Diagnostic(ErrorCode.ERR_ExternHasBody, "set").WithArguments("NS.C.P1.set").
WithLocation
(9, 49),
2670
Diagnostic(ErrorCode.ERR_ExternHasBody, "1").WithArguments("NS.C.P2.get").
WithLocation
(10, 26),
2673
Diagnostic(ErrorCode.ERR_ExternHasBody, "add").WithArguments("NS.C.E.add").
WithLocation
(11, 40),
2676
Diagnostic(ErrorCode.ERR_ExternHasBody, "remove").WithArguments("NS.C.E.remove").
WithLocation
(11, 48),
2679
Diagnostic(ErrorCode.ERR_ExternHasBody, "+").WithArguments("NS.C.operator +(NS.C, NS.C)").
WithLocation
(12, 43),
2682
Diagnostic(ErrorCode.ERR_ExternHasBody, "-").WithArguments("NS.C.operator -(NS.C, NS.C)").
WithLocation
(13, 43));
2700
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "M").WithArguments("X.M()").
WithLocation
(3, 33),
2701
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "P").WithArguments("X.P").
WithLocation
(4, 32),
2702
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "N").WithArguments("X.N(int)").
WithLocation
(7, 33),
2703
Diagnostic(ErrorCode.ERR_AbstractAndExtern, "Q").WithArguments("X.Q").
WithLocation
(8, 35));
2905
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[10]").
WithLocation
(8, 21));
3147
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Main").
WithLocation
(3, 31));
3166
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "B<object>").WithArguments("B<>", "N").
WithLocation
(2, 16),
3169
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "A").WithArguments("A", "N").
WithLocation
(1, 14),
3172
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "C<N.D>").WithArguments("C<>", "N").
WithLocation
(8, 7),
3175
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "D").WithArguments("D", "N").
WithLocation
(8, 11),
3178
Diagnostic(ErrorCode.WRN_UnreferencedField, "a").WithArguments("C<T>.a").
WithLocation
(6, 8),
3181
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("C<T>.b").
WithLocation
(7, 8),
3184
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("C<T>.c").
WithLocation
(8, 14)
3226
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M").WithArguments("sealed", "7.0", "8.0").
WithLocation
(3, 17),
3229
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "P").WithArguments("sealed", "7.0", "8.0").
WithLocation
(4, 19),
3232
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "get").WithArguments("I.P.get").
WithLocation
(4, 23),
3235
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M").WithArguments("I.M()").
WithLocation
(3, 17)
3318
Diagnostic(ErrorCode.ERR_ConditionalOnOverride, @"System.Diagnostics.ConditionalAttribute(""MySymbol"")").WithArguments("MyClass2.M()").
WithLocation
(8, 6));
3422
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Attribute").WithArguments("AttributeAttribute").
WithLocation
(1, 2),
3425
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Attribute").WithArguments("Attribute").
WithLocation
(1, 2));
3566
Diagnostic(ErrorCode.ERR_PartialModifierConflict, "I").WithArguments("NS.I").
WithLocation
(3, 30),
3569
Diagnostic(ErrorCode.ERR_PartialModifierConflict, "C").WithArguments("NS.A.C").
WithLocation
(9, 32),
3572
Diagnostic(ErrorCode.ERR_PartialModifierConflict, "S").WithArguments("NS.A.S").
WithLocation
(12, 32)
3695
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F").WithArguments("void MyClass.F<T, U>(T t)", "void MyClass.F<T, U>(T tt)").
WithLocation
(6, 22)
3720
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "F").WithArguments("void MyClass.F<T, U>(T t)", "void MyClass.F<U, T>(U u)").
WithLocation
(6, 22)
3796
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "A1").WithArguments("A1<T>", "T").
WithLocation
(4, 15),
3798
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "A2").WithArguments("A2<T, U>", "T").
WithLocation
(6, 15),
3800
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "A2").WithArguments("A2<T, U>", "U").
WithLocation
(6, 15),
3802
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "A3").WithArguments("A3<T>", "T").
WithLocation
(8, 15),
3804
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "A4").WithArguments("A4<T>", "T").
WithLocation
(10, 19),
3806
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "A5").WithArguments("A5<T>", "T").
WithLocation
(12, 16),
3808
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "B1").WithArguments("B1<T>", "T").
WithLocation
(16, 15),
3810
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "B2").WithArguments("B2<T, U>", "T").
WithLocation
(18, 15),
3812
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "C1").WithArguments("C1<T>", "T").
WithLocation
(21, 19),
3814
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "C2").WithArguments("C2<T, U>", "U").
WithLocation
(23, 16),
3816
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "E1").WithArguments("E1<T, U>", "T").
WithLocation
(32, 15),
3818
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "E1").WithArguments("E1<T, U>", "U").
WithLocation
(32, 15),
3820
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "E2").WithArguments("E2<T, U>", "T").
WithLocation
(35, 15),
3822
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "E2").WithArguments("E2<T, U>", "U").
WithLocation
(35, 15),
3824
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "F2").WithArguments("F2<T, U>", "U").
WithLocation
(43, 15),
3826
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "G2").WithArguments("G2<T, U>", "U").
WithLocation
(48, 16));
3856
Diagnostic(ErrorCode.ERR_PartialWrongConstraints, "B3").WithArguments("N.B3<T>", "T").
WithLocation
(19, 19),
3859
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using NIA = N.IA;").
WithLocation
(1, 1));
4147
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "get").WithArguments("private", "7.0", "8.0").
WithLocation
(4, 21),
4150
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "get").WithArguments("I.Q.get").
WithLocation
(4, 21),
4153
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "set").WithArguments("internal", "7.0", "8.0").
WithLocation
(5, 30)
4171
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "get").WithArguments("private", "7.0", "8.0").
WithLocation
(4, 32),
4174
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "get").WithArguments("I.this[char].get").
WithLocation
(4, 32),
4177
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "set").WithArguments("internal", "7.0", "8.0").
WithLocation
(5, 43)
4350
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(7, 15),
4353
Diagnostic(ErrorCode.ERR_BadTypeArgument, "ArgIterator").WithArguments("System.ArgIterator").
WithLocation
(8, 15),
4356
Diagnostic(ErrorCode.ERR_BadTypeArgument, "RuntimeArgumentHandle").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(9, 15),
4359
Diagnostic(ErrorCode.ERR_BadTypeArgument, "TypedReference").WithArguments("System.TypedReference").
WithLocation
(10, 15),
4362
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F<int*>").WithArguments("int*").
WithLocation
(11, 9),
4365
Diagnostic(ErrorCode.ERR_BadTypeArgument, "E<object, ArgIterator>").WithArguments("System.ArgIterator").
WithLocation
(12, 11),
4368
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F<RuntimeArgumentHandle>").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(14, 13),
4371
Diagnostic(ErrorCode.ERR_BadTypeArgument, "o.E<T, TypedReference>").WithArguments("System.TypedReference").
WithLocation
(15, 13),
4374
Diagnostic(ErrorCode.ERR_BadTypeArgument, "TypedReference?").WithArguments("System.TypedReference").
WithLocation
(16, 34),
4377
Diagnostic(ErrorCode.ERR_BadTypeArgument, "TypedReference").WithArguments("System.TypedReference").
WithLocation
(17, 43));
4382
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(7, 15),
4385
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(7, 15),
4388
Diagnostic(ErrorCode.ERR_BadTypeArgument, "ArgIterator").WithArguments("System.ArgIterator").
WithLocation
(8, 15),
4391
Diagnostic(ErrorCode.ERR_BadTypeArgument, "RuntimeArgumentHandle").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(9, 15),
4394
Diagnostic(ErrorCode.ERR_BadTypeArgument, "TypedReference").WithArguments("System.TypedReference").
WithLocation
(10, 15),
4397
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F<int*>").WithArguments("int*").
WithLocation
(11, 9),
4400
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(11, 11),
4403
Diagnostic(ErrorCode.ERR_BadTypeArgument, "E<object, ArgIterator>").WithArguments("System.ArgIterator").
WithLocation
(12, 11),
4406
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F<RuntimeArgumentHandle>").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(14, 13),
4409
Diagnostic(ErrorCode.ERR_BadTypeArgument, "o.E<T, TypedReference>").WithArguments("System.TypedReference").
WithLocation
(15, 13),
4412
Diagnostic(ErrorCode.ERR_BadTypeArgument, "TypedReference?").WithArguments("System.TypedReference").
WithLocation
(16, 34),
4415
Diagnostic(ErrorCode.ERR_BadTypeArgument, "TypedReference").WithArguments("System.TypedReference").
WithLocation
(17, 43));
4441
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(1, 1),
4444
Diagnostic(ErrorCode.ERR_BadTypeArgument, "int*").WithArguments("int*").
WithLocation
(7, 15),
4447
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F<int*>").WithArguments("int*").
WithLocation
(8, 9)
4483
Diagnostic(ErrorCode.ERR_BadTypeArgument, "COfArgIterator").WithArguments("System.ArgIterator").
WithLocation
(3, 7),
4486
Diagnostic(ErrorCode.ERR_BadTypeArgument, "COfIntPtr").WithArguments("int*").
WithLocation
(2, 7),
4489
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F<int*>").WithArguments("int*").
WithLocation
(10, 19),
4492
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using COfArgIterator = C<System.ArgIterator>;").
WithLocation
(3, 1));
4497
Diagnostic(ErrorCode.ERR_BadTypeArgument, "COfArgIterator").WithArguments("System.ArgIterator").
WithLocation
(3, 7),
4500
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 21),
4503
Diagnostic(ErrorCode.ERR_BadTypeArgument, "COfIntPtr").WithArguments("int*").
WithLocation
(2, 7),
4506
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "COfIntPtr").
WithLocation
(9, 13),
4509
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(10, 21),
4512
Diagnostic(ErrorCode.ERR_BadTypeArgument, "F<int*>").WithArguments("int*").
WithLocation
(10, 19),
4515
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using COfArgIterator = C<System.ArgIterator>;").
WithLocation
(3, 1));
4601
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "U<T>").WithArguments("U", "type parameter").
WithLocation
(1, 25),
4603
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "T<U>").WithArguments("T", "type parameter").
WithLocation
(5, 20));
4700
Diagnostic(ErrorCode.ERR_DuplicateBound, "IA").WithArguments("IA", "T").
WithLocation
(6, 23),
4702
Diagnostic(ErrorCode.ERR_DuplicateBound, "A").WithArguments("A", "U").
WithLocation
(7, 22),
4704
Diagnostic(ErrorCode.ERR_DuplicateBound, "U").WithArguments("U", "V").
WithLocation
(9, 34));
4722
Diagnostic(ErrorCode.ERR_ClassBoundNotFirst, "A").WithArguments("A").
WithLocation
(5, 18),
4724
Diagnostic(ErrorCode.ERR_ClassBoundNotFirst, "B").WithArguments("B").
WithLocation
(6, 18),
4726
Diagnostic(ErrorCode.ERR_ClassBoundNotFirst, "A").WithArguments("A").
WithLocation
(8, 30),
4728
Diagnostic(ErrorCode.ERR_ClassBoundNotFirst, "B").WithArguments("B").
WithLocation
(8, 33));
4747
Diagnostic(ErrorCode.ERR_DuplicateConstraintClause, "T").WithArguments("T").
WithLocation
(3, 11),
4749
Diagnostic(ErrorCode.ERR_DuplicateConstraintClause, "U").WithArguments("U").
WithLocation
(8, 15),
4751
Diagnostic(ErrorCode.ERR_DuplicateConstraintClause, "U").WithArguments("U").
WithLocation
(9, 15));
4914
Diagnostic(ErrorCode.ERR_ComImportWithImpl, "Main").WithArguments("ImageProperties.Main()", "ImageProperties").
WithLocation
(5, 24));
4929
Diagnostic(ErrorCode.ERR_ComImportWithBase, "B").WithArguments("B").
WithLocation
(5, 7));
4952
Diagnostic(ErrorCode.ERR_ComImportWithInitializers, "= 5").WithArguments("B").
WithLocation
(7, 25),
4955
Diagnostic(ErrorCode.ERR_ComImportWithInitializers, "= 5").WithArguments("B").
WithLocation
(9, 28),
4958
Diagnostic(ErrorCode.ERR_ComImportWithInitializers, "= 5").WithArguments("B").
WithLocation
(8, 18)
5035
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "A1").WithArguments("T", "C.A1<T>()", "T", "I.A1<T>()").
WithLocation
(38, 17),
5037
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "A2").WithArguments("U", "C.A2<T, U>()", "U", "I.A2<T, U>()").
WithLocation
(39, 17),
5039
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "A3").WithArguments("T", "C.A3<T>()", "T", "I.A3<T>()").
WithLocation
(40, 17),
5041
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "A4").WithArguments("T", "C.A4<T, U>()", "T", "I.A4<T, U>()").
WithLocation
(41, 17),
5043
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "B1").WithArguments("T", "C.B1<T>()", "T", "I.B1<T>()").
WithLocation
(43, 17),
5045
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "B2").WithArguments("T", "C.B2<T>()", "T", "I.B2<T>()").
WithLocation
(44, 17),
5047
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "B3").WithArguments("T", "C.B3<T, U>()", "T", "I.B3<T, U>()").
WithLocation
(45, 17),
5049
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "C1").WithArguments("T", "C.C1<T>()", "T", "I.C1<T>()").
WithLocation
(47, 17),
5051
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "C2").WithArguments("T", "C.C2<T>()", "T", "I.C2<T>()").
WithLocation
(48, 17),
5053
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "C3").WithArguments("U", "C.C3<T, U>()", "U", "I.C3<T, U>()").
WithLocation
(49, 17),
5055
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "E1").WithArguments("T", "C.E1<T, U>()", "T", "I.E1<T, U>()").
WithLocation
(54, 17),
5057
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "E1").WithArguments("U", "C.E1<T, U>()", "U", "I.E1<T, U>()").
WithLocation
(54, 17),
5059
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "F1").WithArguments("U", "C.F1<T, U>()", "U", "I.F1<T, U>()").
WithLocation
(56, 17),
5061
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "G1").WithArguments("U", "C.G1<T, U>()", "U", "I.G1<T, U>()").
WithLocation
(58, 17),
5063
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "H2").WithArguments("T", "C.H2<T, U>()", "T", "I.H2<T, U>()").
WithLocation
(61, 17),
5065
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "H2").WithArguments("U", "C.H2<T, U>()", "U", "I.H2<T, U>()").
WithLocation
(61, 17),
5067
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "K1").WithArguments("U", "C.K1<U, T>()", "T", "I.K1<T, U>()").
WithLocation
(64, 17),
5069
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "K1").WithArguments("T", "C.K1<U, T>()", "U", "I.K1<T, U>()").
WithLocation
(64, 17));
5095
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M2").WithArguments("U", "C1.M2<U>()", "U", "I<IB>.M2<U>()").
WithLocation
(11, 17),
5097
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M2").WithArguments("X", "C2<T, U>.M2<X>()", "U", "I<IA<U>>.M2<U>()").
WithLocation
(16, 17));
5164
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("U", "C1<T>.M<U>()", "U", "I1<T>.M<U>()").
WithLocation
(9, 17),
5166
Diagnostic(ErrorCode.ERR_ConWithValCon, "U").WithArguments("U", "T").
WithLocation
(9, 19),
5168
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("U", "C2.M<U>()", "U", "I2<B>.M<U>()").
WithLocation
(17, 17),
5170
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("U", "C2<T>.M<U>()", "U", "I2<T>.M<U>()").
WithLocation
(21, 17),
5172
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("U", "C3.M<U>()", "U", "I3<B>.M<U>()").
WithLocation
(29, 17),
5174
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("U", "C3<T>.M<U>()", "U", "I3<T>.M<U>()").
WithLocation
(33, 17),
5176
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("U", "C4<T>.M<U>()", "U", "I4<T>.M<U>()").
WithLocation
(45, 17),
5178
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M").WithArguments("U", "C5<T>.M<U>()", "U", "I5<T>.M<U>()").
WithLocation
(57, 17));
5202
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M2").WithArguments("Y", "C.M2<X, Y>()", "U", "IA.M2<T, U>()").
WithLocation
(14, 26),
5204
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M1").WithArguments("T", "C.M1<T>()", "T", "IB.M1<T>()").
WithLocation
(13, 26));
5252
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "IA<T, U>").WithArguments("V", "A<T, U>.A2<V>()", "V", "IA<T, U>.A2<V>()").
WithLocation
(30, 27),
5255
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "IA<T, U>").WithArguments("V", "A<T, U>.A1<V>()", "V", "IA<T, U>.A1<V>()").
WithLocation
(30, 27),
5258
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "IB<T>").WithArguments("U", "B<T>.B2<U, V>()", "U", "IB<T>.B2<U, V>()").
WithLocation
(36, 21),
5261
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "IB<T>").WithArguments("U", "B<T>.B1<U>()", "U", "IB<T>.B1<U>()").
WithLocation
(36, 21));
5294
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M1").WithArguments("T", "B2.M1<T>()", "T", "IB.M1<T>()").
WithLocation
(22, 26),
5296
Diagnostic(ErrorCode.ERR_ImplBadConstraints, "M2").WithArguments("T", "B2.M2<T>()", "T", "IB.M2<T>()").
WithLocation
(23, 26));
5356
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInAgg, "T").WithArguments("T", "A<T>").
WithLocation
(3, 10),
5358
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInAgg, "T").WithArguments("T", "A<T>").
WithLocation
(3, 29),
5360
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInAgg, "T").WithArguments("T", "B").
WithLocation
(7, 7),
5362
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInAgg, "T").WithArguments("T", "B").
WithLocation
(7, 23));
7404
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "set").WithArguments("MyClass.P.set").
WithLocation
(3, 42),
7407
Diagnostic(ErrorCode.ERR_PrivateAbstractAccessor, "get").WithArguments("MyClass.Q.get").
WithLocation
(4, 43));
7446
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "A").WithArguments("A").
WithLocation
(7, 23),
7448
Diagnostic(ErrorCode.ERR_RefValBoundWithClass, "B<T5>").WithArguments("B<T5>").
WithLocation
(8, 24));
7504
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "T").WithArguments("B<T>", "T", "T").
WithLocation
(9, 15),
7506
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "F<T>").WithArguments("C.F<U>()", "U", "T").
WithLocation
(10, 9),
7508
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "T").WithArguments("B<T>", "T", "T").
WithLocation
(19, 15),
7510
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "F<T>").WithArguments("C.F<U>()", "U", "T").
WithLocation
(20, 9),
7512
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "T").WithArguments("B<T>", "T", "T").
WithLocation
(24, 15),
7514
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "F<T>").WithArguments("C.F<U>()", "U", "T").
WithLocation
(25, 9),
7516
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "T").WithArguments("B<T>", "T", "T").
WithLocation
(29, 15),
7518
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "F<T>").WithArguments("C.F<U>()", "U", "T").
WithLocation
(30, 9),
7520
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "T").WithArguments("B<T>", "T", "T").
WithLocation
(39, 15),
7522
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "F<T>").WithArguments("C.F<U>()", "U", "T").
WithLocation
(40, 9),
7524
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "int?").WithArguments("B<T>", "T", "int?").
WithLocation
(44, 15),
7526
Diagnostic(ErrorCode.ERR_RefConstraintNotSatisfied, "F<int?>").WithArguments("C.F<U>()", "U", "int?").
WithLocation
(45, 9));
7582
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "T").WithArguments("B<T>", "T", "T").
WithLocation
(9, 15),
7584
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<T>").WithArguments("C.F<U>()", "U", "T").
WithLocation
(10, 9),
7586
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "T").WithArguments("B<T>", "T", "T").
WithLocation
(14, 15),
7588
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<T>").WithArguments("C.F<U>()", "U", "T").
WithLocation
(15, 9),
7590
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "T").WithArguments("B<T>", "T", "T").
WithLocation
(24, 15),
7592
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<T>").WithArguments("C.F<U>()", "U", "T").
WithLocation
(25, 9),
7594
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "T").WithArguments("B<T>", "T", "T").
WithLocation
(29, 15),
7596
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<T>").WithArguments("C.F<U>()", "U", "T").
WithLocation
(30, 9),
7598
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "T").WithArguments("B<T>", "T", "T").
WithLocation
(34, 15),
7600
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<T>").WithArguments("C.F<U>()", "U", "T").
WithLocation
(35, 9),
7602
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "T").WithArguments("B<T>", "T", "T").
WithLocation
(39, 15),
7604
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<T>").WithArguments("C.F<U>()", "U", "T").
WithLocation
(40, 9),
7606
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "int?").WithArguments("B<T>", "T", "int?").
WithLocation
(44, 15),
7608
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<int?>").WithArguments("C.F<U>()", "U", "int?").
WithLocation
(45, 9));
7657
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<U>").WithArguments("A<int?, object>.F<U>()", "U", "U").
WithLocation
(10, 9),
7659
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<U>").WithArguments("A<object, int?>.F<U>()", "U", "U").
WithLocation
(17, 9),
7661
Diagnostic(ErrorCode.ERR_ValConstraintNotSatisfied, "F<U>").WithArguments("A<object, T>.F<U>()", "U", "U").
WithLocation
(31, 9));
7683
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "T").
WithLocation
(1, 9),
7685
Diagnostic(ErrorCode.ERR_CircularConstraint, "T").WithArguments("T", "V").
WithLocation
(4, 9),
7687
Diagnostic(ErrorCode.ERR_CircularConstraint, "T1").WithArguments("T1", "T3").
WithLocation
(10, 17),
7689
Diagnostic(ErrorCode.ERR_CircularConstraint, "T2").WithArguments("T2", "T2").
WithLocation
(10, 21));
7711
Diagnostic(ErrorCode.ERR_CircularConstraint, "V").WithArguments("V", "U").
WithLocation
(3, 18),
7713
Diagnostic(ErrorCode.ERR_CircularConstraint, "U").WithArguments("U", "U").
WithLocation
(9, 12));
7750
Diagnostic(ErrorCode.ERR_CircularConstraint, "T1").WithArguments("T1", "T3").
WithLocation
(1, 13),
7752
Diagnostic(ErrorCode.ERR_CircularConstraint, "T1").WithArguments("T1", "T5").
WithLocation
(1, 13),
7754
Diagnostic(ErrorCode.ERR_CircularConstraint, "T2").WithArguments("T2", "T5").
WithLocation
(9, 13),
7756
Diagnostic(ErrorCode.ERR_CircularConstraint, "T3").WithArguments("T3", "T5").
WithLocation
(9, 17),
7758
Diagnostic(ErrorCode.ERR_CircularConstraint, "T1").WithArguments("T1", "T4").
WithLocation
(16, 10),
7760
Diagnostic(ErrorCode.ERR_CircularConstraint, "T2").WithArguments("T2", "T4").
WithLocation
(24, 21));
7779
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "U").WithArguments("U", "I<T>").
WithLocation
(2, 11),
7781
Diagnostic(ErrorCode.ERR_DuplicateConstraintClause, "U").WithArguments("U").
WithLocation
(8, 11));
7802
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "U").WithArguments("U", "A<T>", "B").
WithLocation
(8, 12));
7836
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "U").WithArguments("U", "int", "class").
WithLocation
(14, 31),
7838
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "U").WithArguments("U", "string", "System.ValueType").
WithLocation
(18, 31),
7840
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "U").WithArguments("U", "System.ValueType", "struct").
WithLocation
(18, 31),
7842
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "T").WithArguments("T", "int?", "struct").
WithLocation
(23, 31),
7844
Diagnostic(ErrorCode.ERR_BaseConstraintConflict, "X").WithArguments("X", "int?", "class").
WithLocation
(24, 31));
7863
Diagnostic(ErrorCode.ERR_ConWithValCon, "U").WithArguments("U", "T").
WithLocation
(1, 12),
7865
Diagnostic(ErrorCode.ERR_ConWithValCon, "U").WithArguments("U", "T").
WithLocation
(8, 12),
7867
Diagnostic(ErrorCode.ERR_ConWithValCon, "U").WithArguments("U", "T").
WithLocation
(9, 14));
7891
Diagnostic(ErrorCode.ERR_AmbigOverride, "F").WithArguments("C<T>.F(T)", "C<T>.F(int)", "D").
WithLocation
(9, 25)
7899
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "F").WithArguments("C<int>.F(int)", "D.F(int)").
WithLocation
(3, 24),
7902
Diagnostic(ErrorCode.ERR_AmbigOverride, "F").WithArguments("C<T>.F(T)", "C<T>.F(int)", "D").
WithLocation
(9, 25)
7987
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M1").WithArguments("NS.clx.M1()").
WithLocation
(5, 30),
7990
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M2").WithArguments("NS.clx.M2()").
WithLocation
(6, 34),
7993
Diagnostic(ErrorCode.ERR_AbstractHasBody, "M3").WithArguments("NS.clx.M3(sbyte)").
WithLocation
(7, 42),
7996
Diagnostic(ErrorCode.ERR_AbstractHasBody, "get").WithArguments("NS.clx.P.get").
WithLocation
(8, 36),
7999
Diagnostic(ErrorCode.ERR_AbstractHasBody, "set").WithArguments("NS.clx.P.set").
WithLocation
(8, 57),
8002
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("NS.clx.E").
WithLocation
(9, 47),
8005
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("NS.clx.X").
WithLocation
(10, 47));
8134
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "P").WithArguments("property", "NS.clx.P").
WithLocation
(7, 40),
8137
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M2").WithArguments("method", "NS.clx.M2<T>(T)").
WithLocation
(6, 41),
8140
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "M1").WithArguments("method", "NS.clx.M1()").
WithLocation
(5, 40),
8143
Diagnostic(ErrorCode.ERR_AbstractNotVirtual, "E").WithArguments("event", "NS.clx.E").
WithLocation
(8, 53));
8461
Diagnostic(ErrorCode.ERR_CantDeriveFromSealedType, "clx").WithArguments("NS.cly", "NS.clx").
WithLocation
(6, 25),
8464
Diagnostic(ErrorCode.ERR_CantDeriveFromSealedType, "stx").WithArguments("NS.clz", "NS.stx").
WithLocation
(7, 25));
8482
Diagnostic(ErrorCode.ERR_CantDeriveFromSealedType, "int").WithArguments("N2.E", "int").
WithLocation
(6, 15),
8485
Diagnostic(ErrorCode.ERR_CantDeriveFromSealedType, "N1.E").WithArguments("N2.C", "N1.E").
WithLocation
(4, 15),
8488
Diagnostic(ErrorCode.ERR_CantDeriveFromSealedType, "System.Int32").WithArguments("N2.D", "int").
WithLocation
(5, 15));
8509
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "get").WithArguments("NS.clx.P.get", "NS.clx").
WithLocation
(8, 36),
8512
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "set").WithArguments("NS.clx.P.set", "NS.clx").
WithLocation
(8, 41),
8515
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "M2").WithArguments("NS.clx.M2()", "NS.clx").
WithLocation
(6, 34),
8518
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "M3").WithArguments("NS.clx.M3(sbyte)", "NS.clx").
WithLocation
(7, 42),
8521
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "M1").WithArguments("NS.clx.M1()", "NS.clx").
WithLocation
(5, 30));
8677
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "F").WithArguments("B.F", "C").
WithLocation
(7, 7),
8680
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "G").WithArguments("C.G", "B").
WithLocation
(12, 7),
8683
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "F").WithArguments("D<T>.F", "D<D<object>>").
WithLocation
(16, 18),
8686
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "G").WithArguments("H<T>.G", "G").
WithLocation
(32, 7),
8689
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "F").WithArguments("G.F", "H<G>").
WithLocation
(28, 10),
8692
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "F").WithArguments("A.F", "A").
WithLocation
(3, 7),
8695
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("D<T>.F").
WithLocation
(16, 18),
8698
Diagnostic(ErrorCode.WRN_UnreferencedField, "G").WithArguments("H<T>.G").
WithLocation
(32, 7),
8701
Diagnostic(ErrorCode.WRN_UnreferencedField, "G").WithArguments("C.G").
WithLocation
(12, 7),
8704
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("K.F").
WithLocation
(40, 14),
8707
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("G.F").
WithLocation
(28, 10),
8710
Diagnostic(ErrorCode.WRN_UnreferencedField, "G").WithArguments("B.G").
WithLocation
(8, 7),
8713
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("J.F").
WithLocation
(36, 14),
8716
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("A.F").
WithLocation
(3, 7),
8719
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("E.F").
WithLocation
(20, 10),
8722
Diagnostic(ErrorCode.WRN_UnreferencedField, "G").WithArguments("L.G").
WithLocation
(44, 14),
8725
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("B.F").
WithLocation
(7, 7),
8728
Diagnostic(ErrorCode.WRN_UnreferencedField, "G").WithArguments("F<T>.G").
WithLocation
(24, 7)
8843
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("A.F").
WithLocation
(3, 7),
8846
Diagnostic(ErrorCode.WRN_UnreferencedField, "G").WithArguments("B.G").
WithLocation
(7, 14)
8874
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "xz").WithArguments("Y.xz", "X<Z>").
WithLocation
(9, 17),
8877
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "xy").WithArguments("Z.xy", "X<Y>").
WithLocation
(14, 17),
8880
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "xz").WithArguments("Y.xz", "").
WithLocation
(9, 17),
8883
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "xy").WithArguments("Z.xy", "").
WithLocation
(14, 17),
8886
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "t").WithArguments("X<T>.t", "").
WithLocation
(5, 14),
8889
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "xe").WithArguments("Z.xe", "").
WithLocation
(13, 17)
8943
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "F").WithArguments("S1<T, U>.F", "S1<object, object>").
WithLocation
(3, 24),
8946
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "F").WithArguments("S2<T, U>.F", "S2<U, T>").
WithLocation
(7, 14),
8949
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("S2<T, U>.F").
WithLocation
(7, 14),
8952
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("S3<T>.F").
WithLocation
(11, 7),
8955
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("S4<T>.F").
WithLocation
(15, 15),
8958
Diagnostic(ErrorCode.WRN_UnreferencedField, "F").WithArguments("S1<T, U>.F").
WithLocation
(3, 24)
9003
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("S1<T>.x", "S1<S1<T>.C>").
WithLocation
(8, 18),
9006
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("S2<T>.x", "S2<S2<T>.S>").
WithLocation
(13, 18),
9009
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("S3<T>.x", "S3<S3<T>.I>").
WithLocation
(18, 18),
9012
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("S4<T>.x", "S4<S4<T>.D>").
WithLocation
(23, 18),
9015
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("S5<T>.x", "S5<S5<T>.E>").
WithLocation
(28, 18),
9018
Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("S6<T>.x", "S6<T[]>").
WithLocation
(32, 20),
9021
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("S1<T>.x").
WithLocation
(8, 18),
9024
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("S4<T>.x").
WithLocation
(23, 18),
9027
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("S3<T>.x").
WithLocation
(18, 18),
9030
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("S0<T>.x").
WithLocation
(3, 18),
9033
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("S2<T>.x").
WithLocation
(13, 18),
9036
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("S5<T>.x").
WithLocation
(28, 18),
9039
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("S6<T>.x").
WithLocation
(32, 20));
9062
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "IBar").WithArguments("default interface implementation", "8.0").
WithLocation
(5, 19),
9065
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "@cly").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 22),
9068
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "S").WithArguments("default interface implementation", "8.0").
WithLocation
(7, 16),
9071
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "E").WithArguments("default interface implementation", "8.0").
WithLocation
(8, 22)
9095
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "field1").
WithLocation
(5, 16),
9098
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "field2").WithArguments("default interface implementation", "8.0").
WithLocation
(6, 21),
9101
Diagnostic(ErrorCode.ERR_InterfacesCantContainFields, "field3").
WithLocation
(7, 21)
9224
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(14, 39)
9364
Diagnostic(ErrorCode.ERR_HidingAbstractMethod, "goo").WithArguments("NS.A3.goo", "NS.B3.goo()").
WithLocation
(31, 32),
9367
Diagnostic(ErrorCode.ERR_HidingAbstractMethod, "@goo").WithArguments("A1.goo", "B1.goo").
WithLocation
(9, 24),
9370
Diagnostic(ErrorCode.ERR_HidingAbstractMethod, "@goo").WithArguments("A1.A2.goo", "A1.B2.goo()").
WithLocation
(18, 36),
9373
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "goo").WithArguments("NS.A3.goo", "null").
WithLocation
(31, 32));
9712
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "F").WithArguments("default interface implementation", "8.0").
WithLocation
(11, 20),
9715
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "set").WithArguments("default interface implementation", "8.0").
WithLocation
(12, 23),
9718
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "set").WithArguments("x.IFace2.x.IFace.P.set").
WithLocation
(12, 23),
9721
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "F").WithArguments("x.IFace2.x.IFace.F()").
WithLocation
(11, 20)
9921
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "get").WithArguments("get_P").
WithLocation
(3, 16),
9923
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "set").WithArguments("set_P").
WithLocation
(7, 16),
9925
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "get").WithArguments("get_R").
WithLocation
(23, 23));
9960
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "get").WithArguments("get_Item").
WithLocation
(5, 33),
9962
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "set").WithArguments("set_Item").
WithLocation
(9, 54),
9964
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "get").WithArguments("get_Item").
WithLocation
(20, 40));
10011
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "get").WithArguments("B1").
WithLocation
(7, 32),
10013
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "set").WithArguments("B2").
WithLocation
(11, 53));
10063
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "E").WithArguments("B1").
WithLocation
(8, 34),
10066
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "E").WithArguments("B2").
WithLocation
(12, 34),
10069
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("add_E.E").
WithLocation
(16, 34),
10072
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B2.E").
WithLocation
(12, 34),
10075
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B1.E").
WithLocation
(8, 34),
10078
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("remove_E.E").
WithLocation
(20, 34),
10081
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "E").WithArguments("B0.E").
WithLocation
(4, 34));
10678
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, ">>").
WithLocation
(8, 32),
10681
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, ">>>").
WithLocation
(12, 32)
10688
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "<<").WithArguments("relaxed shift operator", "11.0").
WithLocation
(4, 32),
10691
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, ">>").
WithLocation
(8, 32),
10694
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(12, 32),
10697
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, ">>>").
WithLocation
(12, 32)
10704
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, ">>").
WithLocation
(8, 32),
10707
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, ">>>").
WithLocation
(12, 32)
10725
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, "+").WithArguments("IA.operator +(int, int)").
WithLocation
(4, 17),
10728
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "+").WithArguments("IA.operator +(int, int)").
WithLocation
(4, 17),
10731
Diagnostic(ErrorCode.ERR_BadBinaryOperatorSignature, "+").
WithLocation
(4, 17)
10775
Diagnostic(ErrorCode.ERR_CantOverrideBogusMethod, "P").WithArguments("C.P", "B.P").
WithLocation
(3, 28),
10777
Diagnostic(ErrorCode.ERR_CantOverrideBogusMethod, "Q").WithArguments("C.Q", "B.Q").
WithLocation
(4, 28));
10805
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "@cly").
WithLocation
(10, 19),
10808
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "a").WithArguments("struct field initializers", "10.0").
WithLocation
(12, 13),
10811
Diagnostic(ErrorCode.WRN_UnreferencedField, "a").WithArguments("x.cly.a").
WithLocation
(12, 13),
10814
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "i").WithArguments("struct field initializers", "10.0").
WithLocation
(13, 13),
10817
Diagnostic(ErrorCode.WRN_UnreferencedField, "i").WithArguments("x.cly.i").
WithLocation
(13, 13),
10820
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "s").WithArguments("x.cly.s").
WithLocation
(15, 20));
10826
Diagnostic(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, "@cly").
WithLocation
(10, 19),
10829
Diagnostic(ErrorCode.WRN_UnreferencedField, "a").WithArguments("x.cly.a").
WithLocation
(12, 13),
10832
Diagnostic(ErrorCode.WRN_UnreferencedField, "i").WithArguments("x.cly.i").
WithLocation
(13, 13),
10835
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "s").WithArguments("x.cly.s").
WithLocation
(15, 20));
10858
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "S1").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(5, 16),
10861
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "S2").WithArguments("parameterless struct constructors", "10.0").
WithLocation
(9, 13),
10864
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "S2").
WithLocation
(9, 13));
10870
Diagnostic(ErrorCode.ERR_NonPublicParameterlessStructConstructor, "S2").
WithLocation
(9, 13));
10990
Diagnostic(ErrorCode.ERR_ConditionalOnSpecialMethod, @"Conditional("""")").WithArguments("Program.Program()").
WithLocation
(5, 6));
11006
Diagnostic(ErrorCode.ERR_ConditionalOnSpecialMethod, @"Conditional("""")").WithArguments("Program.~Program()").
WithLocation
(4, 6));
11022
Diagnostic(ErrorCode.ERR_ConditionalOnSpecialMethod, @"Conditional("""")").WithArguments("C.operator !(C)").
WithLocation
(4, 6));
11042
Diagnostic(ErrorCode.ERR_ConditionalOnSpecialMethod, @"System.Diagnostics.Conditional(""a"")").WithArguments("MyClass.I.m()").
WithLocation
(8, 6));
11060
Diagnostic(ErrorCode.ERR_ConditionalMustReturnVoid, @"System.Diagnostics.ConditionalAttribute(""a"")").WithArguments("MyClass.TestMethod()").
WithLocation
(3, 5));
11090
Diagnostic(ErrorCode.ERR_ConditionalOnInterfaceMethod, @"ConditionalAttribute(""DEBUG"")").
WithLocation
(4, 5));
11141
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "0").WithArguments("AttributeUsage").
WithLocation
(2, 17),
11143
Diagnostic(ErrorCode.ERR_InvalidAttributeArgument, "0").WithArguments("AttributeUsageAttribute").
WithLocation
(4, 26));
11386
Diagnostic(ErrorCode.ERR_VirtualPrivate, "P").WithArguments("A.P").
WithLocation
(3, 21),
11389
Diagnostic(ErrorCode.ERR_VirtualPrivate, "Q").WithArguments("B.Q").
WithLocation
(7, 28));
11486
Diagnostic(ErrorCode.ERR_InterfaceImplementedByConditional, "I<int>").WithArguments("Base.M(int)", "I<int>.M(int)", "Derived").
WithLocation
(13, 23));
11503
Diagnostic(ErrorCode.ERR_BadArgumentToAttribute, @"""DEB+UG""").WithArguments("Conditional").
WithLocation
(5, 18));
11565
Diagnostic(ErrorCode.ERR_AttributeUsageOnNonAttributeClass, "AttributeUsage").WithArguments("AttributeUsage").
WithLocation
(2, 2),
11567
Diagnostic(ErrorCode.ERR_AttributeUsageOnNonAttributeClass, "System.AttributeUsageAttribute").WithArguments("System.AttributeUsageAttribute").
WithLocation
(4, 2));
11622
Diagnostic(ErrorCode.ERR_DuplicateNamedAttributeArgument, "AllowMultiple = false").WithArguments("AllowMultiple").
WithLocation
(2, 39),
11625
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "AttributeUsage(AllowMultiple = true, AllowMultiple = false)").WithArguments("validOn", "System.AttributeUsageAttribute.AttributeUsageAttribute(System.AttributeTargets)").
WithLocation
(2, 2)
11646
Diagnostic(ErrorCode.ERR_DeriveFromEnumOrValueType, "ValueType").WithArguments("N.D", "System.ValueType").
WithLocation
(5, 15),
11649
Diagnostic(ErrorCode.ERR_DeriveFromEnumOrValueType, "Delegate").WithArguments("N.E", "System.Delegate").
WithLocation
(6, 15),
11652
Diagnostic(ErrorCode.ERR_DeriveFromEnumOrValueType, "Enum").WithArguments("N.C", "System.Enum").
WithLocation
(4, 15),
11655
Diagnostic(ErrorCode.ERR_DeriveFromEnumOrValueType, "Array").WithArguments("N.G", "System.Array").
WithLocation
(8, 22),
11658
Diagnostic(ErrorCode.ERR_DeriveFromEnumOrValueType, "MulticastDelegate").WithArguments("N.F", "System.MulticastDelegate").
WithLocation
(7, 22));
11937
Diagnostic(ErrorCode.ERR_OverloadRefKind, "M").WithArguments("NS.IGoo<T>", "method", "out", "ref").
WithLocation
(7, 14),
11940
Diagnostic(ErrorCode.ERR_OverloadRefKind, "RetInt").WithArguments("NS.CGoo", "method", "ref", "out").
WithLocation
(24, 20),
11943
Diagnostic(ErrorCode.ERR_OverloadRefKind, "M").WithArguments("NS.CGoo.SGoo", "method", "out", "ref").
WithLocation
(16, 18),
11946
Diagnostic(ErrorCode.ERR_UseDefViolationOut, "i").WithArguments("i").
WithLocation
(21, 20),
11949
Diagnostic(ErrorCode.ERR_ParamUnassigned, "return i;").WithArguments("i").
WithLocation
(21, 13),
11952
Diagnostic(ErrorCode.ERR_ParamUnassigned, "M").WithArguments("t").
WithLocation
(16, 18)
12210
Diagnostic(ErrorCode.ERR_ComImportWithUserCtor, "TestClass").
WithLocation
(5, 5));
12484
Diagnostic(ErrorCode.ERR_BogusExplicitImpl, "P").WithArguments("C2.I.P", "I.P").
WithLocation
(11, 14),
12486
Diagnostic(ErrorCode.ERR_BogusExplicitImpl, "E").WithArguments("C2.I.E", "I.E").
WithLocation
(16, 20));
12533
Diagnostic(ErrorCode.ERR_ConditionalWithOutParam, @"Conditional(""DEBUG"")").WithArguments("NS.Test.Debug(out int)").
WithLocation
(7, 10),
12536
Diagnostic(ErrorCode.ERR_ConditionalWithOutParam, @"Conditional(""TRACE"")").WithArguments("NS.Test.Trace(ref string, out string)").
WithLocation
(13, 10));
12599
Diagnostic(ErrorCode.ERR_DuplicateTypeParameter, "T").WithArguments("T").
WithLocation
(1, 12),
12601
Diagnostic(ErrorCode.ERR_DuplicateTypeParameter, "U").WithArguments("U").
WithLocation
(4, 18));
12655
Diagnostic(ErrorCode.ERR_TypeVariableSameAsParent, "C").WithArguments("C").
WithLocation
(8, 13),
12658
Diagnostic(ErrorCode.ERR_TypeVariableSameAsParent, "S").WithArguments("S").
WithLocation
(10, 28)
12728
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "System.Attribute").WithArguments("generic attributes", "11.0").
WithLocation
(1, 14));
12744
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "A").WithArguments("generic attributes", "11.0").
WithLocation
(2, 14),
12747
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "A").WithArguments("generic attributes", "11.0").
WithLocation
(5, 15));
12766
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "U").WithArguments("U", "S<T>").
WithLocation
(3, 11),
12768
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "T").WithArguments("T", "S<T>.M<U, V>()").
WithLocation
(6, 15),
12770
Diagnostic(ErrorCode.ERR_TyVarNotFoundInConstraint, "W").WithArguments("W", "S<T>.M<U, V>()").
WithLocation
(7, 15));
12791
Diagnostic(ErrorCode.ERR_BadBoundType, "string").WithArguments("string").
WithLocation
(7, 28),
12793
Diagnostic(ErrorCode.ERR_BadBoundType, "D").WithArguments("D").
WithLocation
(8, 28),
12795
Diagnostic(ErrorCode.ERR_BadBoundType, "E").WithArguments("E").
WithLocation
(9, 28),
12797
Diagnostic(ErrorCode.ERR_BadBoundType, "S").WithArguments("S").
WithLocation
(10, 28),
12799
Diagnostic(ErrorCode.ERR_BadBoundType, "A<T>").WithArguments("A<T>").
WithLocation
(11, 28));
12814
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "object").WithArguments("object").
WithLocation
(2, 27),
12817
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "System.Object").WithArguments("object").
WithLocation
(3, 27),
12819
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "ValueType").WithArguments("System.ValueType").
WithLocation
(4, 30),
12821
Diagnostic(ErrorCode.ERR_SpecialTypeAsBound, "Array").WithArguments("System.Array").
WithLocation
(5, 27));
12848
Diagnostic(ErrorCode.ERR_BadVisBound, "A<T>").WithArguments("C1.D<T>", "C1.A<T>").
WithLocation
(5, 43),
12851
Diagnostic(ErrorCode.ERR_BadVisBound, "I<T>").WithArguments("C1.D<T>", "C1.I<T>").
WithLocation
(5, 49),
12854
Diagnostic(ErrorCode.ERR_BadVisBound, "A<I<T>>").WithArguments("C2.M<T, U, V>()", "C1.A<C1.I<T>>").
WithLocation
(14, 19),
12857
Diagnostic(ErrorCode.ERR_BadVisBound, "I<I<U>>").WithArguments("C2.M<T, U, V>()", "C1.I<C1.I<U>>").
WithLocation
(15, 19),
12860
Diagnostic(ErrorCode.ERR_BadVisBound, "I<A<T>>").WithArguments("C2.S<T, U, V>", "C1.I<C1.A<T>>").
WithLocation
(10, 19),
12863
Diagnostic(ErrorCode.ERR_BadVisBound, "A<A<V>>").WithArguments("C2.S<T, U, V>", "C1.A<C1.A<V>>").
WithLocation
(12, 19));
12886
Diagnostic(ErrorCode.ERR_BadVisBound, "IB<U, IA<T>>").WithArguments("A.B<T, U>", "IB<U, IA<T>>").
WithLocation
(6, 44),
12889
Diagnostic(ErrorCode.ERR_BadVisBound, "IB<U, IA<T>>").WithArguments("A.B<T, U>", "IB<U, IA<T>>").
WithLocation
(7, 44),
12892
Diagnostic(ErrorCode.ERR_BadVisBound, "IA<T>").WithArguments("C.M<T>()", "IA<T>").
WithLocation
(11, 42),
12895
Diagnostic(ErrorCode.ERR_BadVisBound, "IA<T>").WithArguments("C.M<T>()", "IA<T>").
WithLocation
(12, 42));
13086
Diagnostic(ErrorCode.ERR_StaticDerivedFromNonObject, "Base").WithArguments("NS.Derived", "NS.Base").
WithLocation
(7, 35),
13089
Diagnostic(ErrorCode.ERR_StaticDerivedFromNonObject, "Base1<string, V>").WithArguments("NS.D<V>", "NS.Base1<string, V>").
WithLocation
(15, 25));
13104
Diagnostic(ErrorCode.ERR_StaticDerivedFromNonObject, "B").WithArguments("D", "B").
WithLocation
(4, 18),
13107
Diagnostic(ErrorCode.ERR_StaticDerivedFromNonObject, "A").WithArguments("C", "A").
WithLocation
(3, 18));
13135
Diagnostic(ErrorCode.ERR_StaticClassInterfaceImpl, "I").WithArguments("NS.C").
WithLocation
(7, 29),
13138
Diagnostic(ErrorCode.ERR_StaticClassInterfaceImpl, "IGoo<string, V>").WithArguments("NS.D<V>").
WithLocation
(15, 25));
13232
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "o as C").WithArguments("C").
WithLocation
(6, 11),
13235
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "new object() as C").WithArguments("C").
WithLocation
(7, 11),
13238
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "null as C").WithArguments("C").
WithLocation
(8, 11),
13241
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "1 as C").WithArguments("C").
WithLocation
(9, 11),
13244
Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, "1 as C").WithArguments("int", "C").
WithLocation
(9, 11),
13247
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, @"""a"" as C").WithArguments("C").
WithLocation
(10, 11),
13250
Diagnostic(ErrorCode.ERR_NoExplicitBuiltinConv, @"""a"" as C").WithArguments("string", "C").
WithLocation
(10, 11),
13253
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "o is C").WithArguments("C").
WithLocation
(12, 11),
13256
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "new object() is C").WithArguments("C").
WithLocation
(13, 11),
13259
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "null is C").WithArguments("C").
WithLocation
(14, 11),
13262
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "null is C").WithArguments("C").
WithLocation
(14, 11),
13265
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "1 is C").WithArguments("C").
WithLocation
(15, 11),
13268
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, "1 is C").WithArguments("C").
WithLocation
(15, 11),
13271
Diagnostic(ErrorCode.WRN_StaticInAsOrIs, @"""a"" is C").WithArguments("C").
WithLocation
(16, 11),
13274
Diagnostic(ErrorCode.WRN_IsAlwaysFalse, @"""a"" is C").WithArguments("C").
WithLocation
(16, 11)
13298
Diagnostic(ErrorCode.ERR_ConstraintIsStaticClass, "A").WithArguments("A").
WithLocation
(4, 15),
13300
Diagnostic(ErrorCode.ERR_ConstraintIsStaticClass, "B.C").WithArguments("B.C").
WithLocation
(5, 15));
13326
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "S").WithArguments("S").
WithLocation
(10, 11),
13329
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "S").WithArguments("S").
WithLocation
(11, 11),
13332
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "S").WithArguments("S").
WithLocation
(12, 11),
13335
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "M<S>").WithArguments("S").
WithLocation
(13, 9),
13338
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "S").WithArguments("S").
WithLocation
(14, 29),
13341
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(10, 14),
13344
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "c").WithArguments("c").
WithLocation
(11, 14)
13485
Diagnostic(ErrorCode.WRN_ParameterIsStaticClass, "D<T>").WithArguments("NS.D<T>").
WithLocation
(12, 16),
13488
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "C").WithArguments("NS.C").
WithLocation
(16, 23),
13491
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "D<T>").WithArguments("NS.D<T>").
WithLocation
(22, 25));
13506
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "S").WithArguments("S").
WithLocation
(4, 5));
13529
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "S").WithArguments("S").
WithLocation
(2, 19),
13532
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "S").WithArguments("S").
WithLocation
(7, 19),
13535
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "S").WithArguments("S").
WithLocation
(8, 28),
13538
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "p").WithArguments("S").
WithLocation
(9, 19),
13541
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "p").WithArguments("S").
WithLocation
(10, 18));
13579
Diagnostic(ErrorCode.WRN_ReturnTypeIsStaticClass, "M").WithArguments("NS.D<T>").
WithLocation
(12, 14),
13581
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "F").WithArguments("NS.C").
WithLocation
(16, 25),
13583
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "M").WithArguments("NS.D<sbyte>").
WithLocation
(23, 29),
13585
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "F").WithArguments("NS.Test.F()").
WithLocation
(16, 25),
13587
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M").WithArguments("NS.Test.S.M()").
WithLocation
(23, 29));
13602
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "S").WithArguments("S").
WithLocation
(4, 5));
13619
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "F").WithArguments("S").
WithLocation
(4, 23),
13621
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "F").WithArguments("C.F()", "C").
WithLocation
(4, 23),
13623
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "get").WithArguments("C.P.get", "C").
WithLocation
(5, 27),
13625
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "set").WithArguments("C.Q.set", "C").
WithLocation
(6, 27),
13627
Diagnostic(ErrorCode.ERR_ReturnTypeIsStaticClass, "get").WithArguments("S").
WithLocation
(5, 27),
13629
Diagnostic(ErrorCode.ERR_ParameterIsStaticClass, "set").WithArguments("S").
WithLocation
(6, 27));
13694
Diagnostic(ErrorCode.WRN_ParameterIsStaticClass, "C").WithArguments("C").
WithLocation
(5, 13),
13697
Diagnostic(ErrorCode.WRN_ReturnTypeIsStaticClass, "M2").WithArguments("C").
WithLocation
(6, 7),
13700
Diagnostic(ErrorCode.WRN_ReturnTypeIsStaticClass, "C").WithArguments("C").
WithLocation
(7, 5),
13703
Diagnostic(ErrorCode.WRN_ReturnTypeIsStaticClass, "C").WithArguments("C").
WithLocation
(8, 5),
13706
Diagnostic(ErrorCode.WRN_ParameterIsStaticClass, "C").WithArguments("C").
WithLocation
(8, 12)
13923
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "PartA").WithArguments("C.PartA()").
WithLocation
(19, 25),
13926
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "PartB").WithArguments("C.PartB()").
WithLocation
(20, 26),
13929
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "PartC").WithArguments("C.PartC()").
WithLocation
(21, 28),
13932
Diagnostic(ErrorCode.ERR_PartialMethodWithAccessibilityModsMustHaveImplementation, "PartD").WithArguments("C.PartD()").
WithLocation
(22, 27),
13935
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "PartJ").WithArguments("C.PartJ()").
WithLocation
(29, 25),
13938
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "PartE").WithArguments("C.PartE()").
WithLocation
(23, 26),
13941
Diagnostic(ErrorCode.ERR_PartialMethodInvalidModifier, "PartF").
WithLocation
(24, 27),
13944
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "PartG").WithArguments("C.PartG()").
WithLocation
(25, 27),
13947
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "PartH").WithArguments("C.PartH()").
WithLocation
(26, 22),
13950
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "PartI").WithArguments("C.PartI()").
WithLocation
(27, 34),
13953
Diagnostic(ErrorCode.ERR_PartialMethodWithExtendedModMustHaveAccessMods, "PartJ").WithArguments("C.PartJ()").
WithLocation
(29, 25),
13956
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "PartG").WithArguments("C.PartG()", "protected", "Base.PartG()").
WithLocation
(25, 27),
13959
Diagnostic(ErrorCode.ERR_CantChangeAccessOnOverride, "PartI").WithArguments("C.PartI()", "protected", "Base.PartI()").
WithLocation
(27, 34),
13962
Diagnostic(ErrorCode.ERR_DllImportOnInvalidMethod, "System.Runtime.InteropServices.DllImport").
WithLocation
(28, 6));
13999
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "F").WithArguments("NS.C.F(out int)").
WithLocation
(7, 22));
14021
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(4, 5),
14024
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(5, 5),
14027
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(6, 5),
14030
Diagnostic(ErrorCode.WRN_UnreferencedField, "f").WithArguments("C.f").
WithLocation
(4, 17));
14067
Diagnostic(ErrorCode.ERR_PartialMethodExtensionDifference, "M1").
WithLocation
(4, 25),
14069
Diagnostic(ErrorCode.ERR_PartialMethodExtensionDifference, "M2").
WithLocation
(5, 25));
14089
Diagnostic(ErrorCode.ERR_PartialMethodOnlyOneLatent, "Part").
WithLocation
(5, 18),
14092
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Part").WithArguments("Part", "C").
WithLocation
(5, 18));
14131
Diagnostic(ErrorCode.ERR_PartialMethodParamsDifference, "M1").
WithLocation
(4, 18),
14133
Diagnostic(ErrorCode.ERR_PartialMethodParamsDifference, "M2").
WithLocation
(5, 18));
14147
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M1").WithArguments("C.M1()").
WithLocation
(3, 18));
14167
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("EExtensionMethod.M()").
WithLocation
(9, 25));
14244
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "A2").WithArguments("C<X>.A2<T, U>()", "U").
WithLocation
(39, 18),
14247
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "A3").WithArguments("C<X>.A3<T>()", "T").
WithLocation
(40, 18),
14250
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "A4").WithArguments("C<X>.A4<T, U>()", "T").
WithLocation
(41, 18),
14253
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "B1").WithArguments("C<X>.B1<T>()", "T").
WithLocation
(43, 18),
14256
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "B2").WithArguments("C<X>.B2<T>()", "T").
WithLocation
(44, 18),
14259
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "B3").WithArguments("C<X>.B3<T, U>()", "T").
WithLocation
(45, 18),
14262
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "C1").WithArguments("C<X>.C1<T>()", "T").
WithLocation
(47, 18),
14265
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "C2").WithArguments("C<X>.C2<T>()", "T").
WithLocation
(48, 18),
14268
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "C3").WithArguments("C<X>.C3<T, U>()", "U").
WithLocation
(49, 18),
14271
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "E1").WithArguments("C<X>.E1<T, U>()", "T").
WithLocation
(22, 18),
14274
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "E1").WithArguments("C<X>.E1<T, U>()", "U").
WithLocation
(22, 18),
14277
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "F1").WithArguments("C<X>.F1<T, U>()", "U").
WithLocation
(24, 18),
14280
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "G1").WithArguments("C<X>.G1<T, U>()", "U").
WithLocation
(26, 18),
14283
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "H2").WithArguments("C<X>.H2<T, U>()", "T").
WithLocation
(29, 18),
14286
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "H2").WithArguments("C<X>.H2<T, U>()", "U").
WithLocation
(29, 18),
14289
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "K1").WithArguments("C<X>.K1<T, U>()", "T").
WithLocation
(32, 18),
14292
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "K1").WithArguments("C<X>.K1<T, U>()", "U").
WithLocation
(32, 18),
14295
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "K1").WithArguments("void C<X>.K1<U, T>()", "void C<X>.K1<T, U>()").
WithLocation
(32, 18),
14298
Diagnostic(ErrorCode.WRN_PartialMethodTypeDifference, "K2").WithArguments("void C<X>.K2<T1, T2>()", "void C<X>.K2<T, U>()").
WithLocation
(33, 18),
14301
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "A1").WithArguments("C<X>.A1<T>()", "T").
WithLocation
(38, 18));
14338
Diagnostic(ErrorCode.ERR_PartialMethodInconsistentConstraints, "M4").WithArguments("N.C.M4<T, U>()", "T").
WithLocation
(25, 22));
14354
Diagnostic(ErrorCode.ERR_PartialMethodStaticDifference, "M1").
WithLocation
(4, 18),
14356
Diagnostic(ErrorCode.ERR_PartialMethodStaticDifference, "M2").
WithLocation
(5, 25));
14372
Diagnostic(ErrorCode.ERR_PartialMethodUnsafeDifference, "M1").
WithLocation
(4, 18),
14374
Diagnostic(ErrorCode.ERR_PartialMethodUnsafeDifference, "M2").
WithLocation
(5, 25));
14400
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "Part").WithArguments("C.Part()").
WithLocation
(5, 17),
14403
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "Part").WithArguments("C.Part()").
WithLocation
(6, 17));
14497
Diagnostic(ErrorCode.ERR_MissingStructOffset, "Num").WithArguments("TestNamespace.Str.Num").
WithLocation
(9, 20)
14549
Diagnostic(ErrorCode.ERR_OverloadRefKind, "MyClass").WithArguments("TestNamespace.MyClass", "constructor", "out", "ref").
WithLocation
(8, 17));
14565
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "partial").
WithLocation
(3, 23),
14568
Diagnostic(ErrorCode.ERR_GetOrSetExpected, "add").
WithLocation
(4, 34));
14694
Diagnostic(ErrorCode.ERR_BadThisParam, "this").WithArguments("ExtMethod").
WithLocation
(3, 34));
14730
Diagnostic(ErrorCode.ERR_BadTypeforThis, "char*").WithArguments("char*").
WithLocation
(3, 42));
14781
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "A").
WithLocation
(1, 7),
14782
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "B").
WithLocation
(5, 7),
14783
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "C").
WithLocation
(9, 14),
14784
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "D").
WithLocation
(13, 14),
14785
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "S").
WithLocation
(17, 8),
14786
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "T").
WithLocation
(21, 8),
14787
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "U").
WithLocation
(25, 8));
14802
Diagnostic(ErrorCode.ERR_InvalidModifierForLanguageVersion, "M").WithArguments("static", "7.0", "8.0").
WithLocation
(3, 17),
14805
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "I").
WithLocation
(1, 11),
14808
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M").WithArguments("I.M(object)").
WithLocation
(3, 17)
14839
Diagnostic(ErrorCode.ERR_ExtensionMethodsDecl, "M").WithArguments("C").
WithLocation
(5, 21),
14840
Diagnostic(ErrorCode.ERR_ExtensionMethodsDecl, "M").WithArguments("C").
WithLocation
(12, 21),
14841
Diagnostic(ErrorCode.ERR_ExtensionMethodsDecl, "M").WithArguments("C").
WithLocation
(19, 21));
14862
Diagnostic(ErrorCode.ERR_ExtensionAttrNotFound, "this").WithArguments("System.Runtime.CompilerServices.ExtensionAttribute").
WithLocation
(3, 27),
14864
Diagnostic(ErrorCode.ERR_ExtensionAttrNotFound, "this").WithArguments("System.Runtime.CompilerServices.ExtensionAttribute").
WithLocation
(4, 27),
14866
Diagnostic(ErrorCode.ERR_BadThisParam, "this").WithArguments("M2").
WithLocation
(4, 42),
14868
Diagnostic(ErrorCode.ERR_BadTypeforThis, "dynamic").WithArguments("dynamic").
WithLocation
(5, 32),
14870
Diagnostic(ErrorCode.ERR_DynamicAttributeMissing, "dynamic").WithArguments("System.Runtime.CompilerServices.DynamicAttribute").
WithLocation
(5, 32),
14872
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "B").
WithLocation
(7, 7));
15034
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "ns").WithArguments("ns").
WithLocation
(13, 11),
15037
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "ns").WithArguments("ns").
WithLocation
(14, 11),
15040
Diagnostic(ErrorCode.ERR_DuplicateAlias, "ns").WithArguments("ns").
WithLocation
(14, 11),
15043
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(15, 5),
15046
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using ns = namespace2;").
WithLocation
(14, 5));
15160
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "System.TypedReference").WithArguments("System.TypedReference").
WithLocation
(6, 9),
15163
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "System.RuntimeArgumentHandle").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(12, 9),
15166
Diagnostic(ErrorCode.ERR_MethodReturnCantBeRefAny, "System.ArgIterator").WithArguments("System.ArgIterator").
WithLocation
(18, 9));
15296
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "ref System.TypedReference tr").WithArguments("System.TypedReference").
WithLocation
(8, 25),
15299
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "in System.TypedReference tr").WithArguments("System.TypedReference").
WithLocation
(11, 25),
15302
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "out System.TypedReference tr").WithArguments("System.TypedReference").
WithLocation
(14, 25),
15305
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "ref System.ArgIterator ai").WithArguments("System.ArgIterator").
WithLocation
(23, 25),
15308
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "in System.ArgIterator ai").WithArguments("System.ArgIterator").
WithLocation
(26, 25),
15311
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "out System.ArgIterator ai").WithArguments("System.ArgIterator").
WithLocation
(29, 25),
15314
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "ref System.RuntimeArgumentHandle ah").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(38, 25),
15317
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "in System.RuntimeArgumentHandle ah").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(41, 25),
15320
Diagnostic(ErrorCode.ERR_MethodArgCantBeRefAny, "out System.RuntimeArgumentHandle ah").WithArguments("System.RuntimeArgumentHandle").
WithLocation
(44, 25));
15336
Diagnostic(ErrorCode.ERR_CantUseRequiredAttribute, "RequiredAttribute").
WithLocation
(3, 2));
15463
Diagnostic(ErrorCode.ERR_SemicolonExpected, "[").
WithLocation
(4, 33),
15466
Diagnostic(ErrorCode.ERR_IdentifierExpected, "2").
WithLocation
(4, 34),
15469
Diagnostic(ErrorCode.ERR_SyntaxError, "2").WithArguments(",").
WithLocation
(4, 34),
15472
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(4, 36),
15475
Diagnostic(ErrorCode.ERR_FixedBufferTooManyDimensions, "[2,2]").
WithLocation
(3, 30));
15695
Diagnostic(ErrorCode.ERR_ConditionalOnNonAttributeClass, @"System.Diagnostics.Conditional(""A"")").WithArguments("System.Diagnostics.Conditional").
WithLocation
(1, 2));
15799
Diagnostic(ErrorCode.ERR_UnimplementedAbstractMethod, "Derived").WithArguments("Derived", "Base.myProperty.set").
WithLocation
(10, 14),
15802
Diagnostic(ErrorCode.ERR_CantChangeTypeOnOverride, "myProperty").WithArguments("Derived.myProperty", "Base.myProperty", "int").
WithLocation
(13, 28)
15828
Diagnostic(ErrorCode.ERR_DoNotUseFixedBufferAttr, "FixedBuffer").
WithLocation
(6, 6));
15919
Diagnostic(ErrorCode.ERR_FriendAssemblyBadArgs, @"InternalsVisibleTo(""Test, Version=1"")").WithArguments("Test, Version=1").
WithLocation
(12, 12),
15921
Diagnostic(ErrorCode.ERR_FriendAssemblyBadArgs, @"InternalsVisibleTo(""Test, Version=1.*"")").WithArguments("Test, Version=1.*").
WithLocation
(13, 12),
15923
Diagnostic(ErrorCode.ERR_FriendAssemblyBadArgs, @"InternalsVisibleTo(""Test, Version=1.1.*"")").WithArguments("Test, Version=1.1.*").
WithLocation
(14, 12),
15925
Diagnostic(ErrorCode.ERR_FriendAssemblyBadArgs, @"InternalsVisibleTo(""Test, Version=1.1.1.*"")").WithArguments("Test, Version=1.1.1.*").
WithLocation
(15, 12),
15927
Diagnostic(ErrorCode.ERR_FriendAssemblyBadArgs, @"InternalsVisibleTo(""Test, ProcessorArchitecture=MSIL"")").WithArguments("Test, ProcessorArchitecture=MSIL").
WithLocation
(16, 12),
15929
Diagnostic(ErrorCode.ERR_FriendAssemblyBadArgs, @"InternalsVisibleTo(""Test, CuLTure=EN"")").WithArguments("Test, CuLTure=EN").
WithLocation
(17, 12));
15967
Diagnostic(ErrorCode.ERR_DefaultValueMustBeConstant, "new C()").WithArguments("y").
WithLocation
(3, 38));
16041
Diagnostic(ErrorCode.ERR_DefaultValueForExtensionParameter, "this").
WithLocation
(4, 20),
16043
Diagnostic(ErrorCode.ERR_BadThisParam, "this").WithArguments("M3").
WithLocation
(5, 30));
16080
Diagnostic(ErrorCode.ERR_NoPIAAssemblyMissingAttribute).WithArguments("MissingPIAAttribute, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "System.Runtime.InteropServices.GuidAttribute").
WithLocation
(1, 1),
16082
Diagnostic(ErrorCode.ERR_NoPIAAssemblyMissingAttributes).WithArguments("MissingPIAAttribute, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "System.Runtime.InteropServices.ImportedFromTypeLibAttribute", "System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute").
WithLocation
(1, 1));
16480
Diagnostic(ErrorCode.ERR_NoConversionForNubDefaultParam, "x").WithArguments("System.DateTime", "x").
WithLocation
(13, 33),
16483
Diagnostic(ErrorCode.ERR_NoConversionForNubDefaultParam, "x").WithArguments("System.DateTime", "x").
WithLocation
(14, 33)
16615
Diagnostic(ErrorCode.ERR_UnexpectedVariance, "T").WithArguments("Goo<T>.Baz(T)", "T", "covariant", "contravariantly").
WithLocation
(4, 14));
16670
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "E2").
WithLocation
(10, 14),
16673
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I<dynamic>").WithArguments("E1", "I<dynamic>").
WithLocation
(9, 12),
16676
Diagnostic(ErrorCode.ERR_DeriveFromConstructedDynamic, "I<C<dynamic>.D*[]>").WithArguments("E2", "I<C<dynamic>.D*[]>").
WithLocation
(10, 19));
16714
Diagnostic(ErrorCode.ERR_ConstructedDynamicTypeAsBound, "A<S<T>.D<dynamic>>").WithArguments("A<S<T>.D<dynamic>>").
WithLocation
(8, 15),
16716
Diagnostic(ErrorCode.ERR_ConstructedDynamicTypeAsBound, "I<dynamic[]>").WithArguments("I<dynamic[]>").
WithLocation
(8, 35),
16718
Diagnostic(ErrorCode.ERR_ConstructedDynamicTypeAsBound, "I<S<dynamic>.D<T>>").WithArguments("I<S<dynamic>.D<T>>").
WithLocation
(9, 15));
16758
Diagnostic(ErrorCode.ERR_NamespaceNotAllowedInScript, "namespace").
WithLocation
(2, 1)
16779
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "I").
WithLocation
(5, 9),
16782
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "S").
WithLocation
(6, 16),
16785
Diagnostic(ErrorCode.ERR_InitializerOnNonAutoProperty, "P").
WithLocation
(7, 19)
16984
Diagnostic(ErrorCode.WRN_NewRequired, "Q").WithArguments("B.Q", "A.Q()").
WithLocation
(15, 16),
16987
Diagnostic(ErrorCode.WRN_NewRequired, "R").WithArguments("B.R", "A.R()").
WithLocation
(16, 23),
16990
Diagnostic(ErrorCode.WRN_NewRequired, "S").WithArguments("B.S", "A.S()").
WithLocation
(17, 16),
16993
Diagnostic(ErrorCode.WRN_NewRequired, "T").WithArguments("B.T()", "A.T").
WithLocation
(18, 24),
16996
Diagnostic(ErrorCode.WRN_NewRequired, "U").WithArguments("B.U()", "A.U").
WithLocation
(19, 17),
16999
Diagnostic(ErrorCode.WRN_NewRequired, "V").WithArguments("B.V()", "A.V").
WithLocation
(20, 24),
17002
Diagnostic(ErrorCode.WRN_NewRequired, "W").WithArguments("B.W()", "A.W").
WithLocation
(21, 17),
17005
Diagnostic(ErrorCode.WRN_NewRequired, "P").WithArguments("B.P", "A.P()").
WithLocation
(14, 23));
17952
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "M").WithArguments("B.M()").
WithLocation
(4, 17),
17954
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("B.P1.get").
WithLocation
(5, 24),
17956
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("B.P1.set").
WithLocation
(5, 29),
17958
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "!").WithArguments("B.operator !(B)").
WithLocation
(6, 40),
17960
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "get").WithArguments("C.P1.get").
WithLocation
(11, 28),
17962
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "set").WithArguments("C.P1.set").
WithLocation
(11, 33));
17981
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "E1").WithArguments("C.E1.remove").
WithLocation
(5, 20),
17984
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "E2").WithArguments("C.E2.remove").
WithLocation
(6, 24));
18103
Diagnostic(ErrorCode.ERR_BadMemberFlag, "D").WithArguments("override").
WithLocation
(9, 24),
18106
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "D").WithArguments("D.D(byte)").
WithLocation
(10, 15),
18109
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "D").WithArguments("D.D(short)").
WithLocation
(11, 24),
18112
Diagnostic(ErrorCode.WRN_ProtectedInSealed, "D").WithArguments("D.D(int)").
WithLocation
(12, 24));
18320
Diagnostic(ErrorCode.WRN_ExternCtorNoImplementation, "C").WithArguments("NS.C<T>.C()").
WithLocation
(5, 16),
18322
Diagnostic(ErrorCode.WRN_ExternCtorNoImplementation, "S").WithArguments("NS.C<T>.S.S(string)").
WithLocation
(9, 20));
18341
Diagnostic(ErrorCode.WRN_ExternCtorNoImplementation, "B").WithArguments("B.B()").
WithLocation
(4, 19));
18365
Diagnostic(ErrorCode.WRN_ExternCtorNoImplementation, "B").WithArguments("B.B()").
WithLocation
(8, 17)
18394
Diagnostic(ErrorCode.ERR_ExternHasConstructorInitializer, "B").WithArguments("B.B()").
WithLocation
(8, 17)
18419
Diagnostic(ErrorCode.ERR_ExternHasConstructorInitializer, "B").WithArguments("B.B()").
WithLocation
(8, 17)
18442
Diagnostic(ErrorCode.ERR_ExternHasConstructorInitializer, "B").WithArguments("B.B()").
WithLocation
(8, 17),
18445
Diagnostic(ErrorCode.ERR_ExternHasBody, "B").WithArguments("B.B()").
WithLocation
(8, 17)
18468
Diagnostic(ErrorCode.ERR_ExternHasBody, "B").WithArguments("B.B()").
WithLocation
(8, 17)
18488
Diagnostic(ErrorCode.WRN_ExternCtorNoImplementation, "B").WithArguments("B.B()").
WithLocation
(5, 17),
18491
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "x").WithArguments("B.x").
WithLocation
(4, 15)
18514
Diagnostic(ErrorCode.ERR_StaticConstructorWithExplicitConstructorCall, "base").WithArguments("B").
WithLocation
(8, 23)
18537
Diagnostic(ErrorCode.ERR_StaticConstructorWithExplicitConstructorCall, "base").WithArguments("B").
WithLocation
(8, 23),
18540
Diagnostic(ErrorCode.ERR_ExternHasBody, "B").WithArguments("B.B()").
WithLocation
(8, 17)
18565
Diagnostic(ErrorCode.WRN_DefaultValueForUnconsumedLocation, "x").
WithLocation
(7, 23).WithArguments("x"));
18655
Diagnostic(ErrorCode.WRN_InvalidAssemblyName, @"InternalsVisibleTo(""a'b'c"")").WithArguments("a'b'c").
WithLocation
(8, 12),
18657
Diagnostic(ErrorCode.WRN_InvalidAssemblyName, @"InternalsVisibleTo(""Test, PublicKey=Null"")").WithArguments("Test, PublicKey=Null").
WithLocation
(9, 12),
18659
Diagnostic(ErrorCode.WRN_InvalidAssemblyName, @"InternalsVisibleTo(""Test, Bar"")").WithArguments("Test, Bar").
WithLocation
(10, 12),
18661
Diagnostic(ErrorCode.WRN_InvalidAssemblyName, @"InternalsVisibleTo(""Test, Version"")").WithArguments("Test, Version").
WithLocation
(11, 12),
18663
Diagnostic(ErrorCode.WRN_InvalidAssemblyName, @"InternalsVisibleTo(""app2, Retargetable=f"")").WithArguments("app2, Retargetable=f").
WithLocation
(12, 12));
18733
Diagnostic(ErrorCode.WRN_MultipleRuntimeOverrideMatches, "Test").WithArguments("Base<string>.Test(string, ref int)", "Derived.Test(string, ref int)").
WithLocation
(8, 25)
19378
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P").WithArguments("C", "P").
WithLocation
(4, 9),
19379
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "Q").WithArguments("C", "Q").
WithLocation
(6, 10));
19428
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "P").WithArguments("C", "P").
WithLocation
(8, 17));
19510
Diagnostic(ErrorCode.ERR_DuplicateNameInNS, "E").WithArguments("E", "N").
WithLocation
(4, 10));
19579
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "E").WithArguments("C", "E").
WithLocation
(4, 10));
20126
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(4, 11),
20129
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using A = A;").
WithLocation
(1, 1),
20132
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using B;").
WithLocation
(4, 5));
20148
Diagnostic(ErrorCode.ERR_InvalidAnonymousTypeMemberDeclarator, "f1<int> = 1").
WithLocation
(3, 22),
20151
Diagnostic(ErrorCode.ERR_TypeArgsNotAllowed, "f1<int>").WithArguments("ClassA.f1", "property").
WithLocation
(3, 22));
20200
Diagnostic(ErrorCode.ERR_InvalidAnonymousTypeMemberDeclarator, "f1<int>").
WithLocation
(3, 22),
20203
Diagnostic(ErrorCode.ERR_AnonymousTypePropertyAssignedBadValue, "f1<int>").WithArguments("method group").
WithLocation
(3, 22));
20338
Diagnostic(ErrorCode.ERR_GenericArgIsStaticClass, "M").WithArguments("C").
WithLocation
(5, 9)
20370
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "M").WithArguments("M()", "Script").
WithLocation
(1, 24),
20373
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "get").WithArguments("P.get", "Script").
WithLocation
(2, 30),
20376
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "E").WithArguments("E", "Script").
WithLocation
(3, 45));
20392
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "M").WithArguments("M()", "Script").
WithLocation
(1, 24),
20395
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "get").WithArguments("P.get", "Script").
WithLocation
(2, 30),
20398
Diagnostic(ErrorCode.ERR_AbstractInConcreteClass, "E").WithArguments("E", "Script").
WithLocation
(3, 45));
20510
Diagnostic(ErrorCode.ERR_TypeForwardedToMultipleAssemblies, "TestClass").WithArguments("ForwarderModule.dll", "Forwarder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "Destination.TestClass", "Destination1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "Destination2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 29),
20513
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "TestClass").WithArguments("TestClass", "Destination").
WithLocation
(8, 29));
20573
Diagnostic(ErrorCode.ERR_TypeForwardedToMultipleAssemblies, "TestClass").WithArguments("ForwarderModule.dll", "Forwarder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "Destination.TestClass", "Destination1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "Destination2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 29),
20576
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "TestClass").WithArguments("TestClass", "Destination").
WithLocation
(8, 29));
20711
Diagnostic(ErrorCode.ERR_NoTypeDef, "ClassB.MethodB").WithArguments("C.ClassC", "D, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(10, 38));
20745
Diagnostic(ErrorCode.ERR_TypeForwardedToMultipleAssemblies).WithArguments("ForwarderModule.dll", "Forwarder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "Testspace.TestType", "D1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "D2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1));
20765
Diagnostic(ErrorCode.ERR_NoTypeDef).WithArguments("Testspace.TestType", "D, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(1, 1));
20823
Diagnostic(ErrorCode.ERR_TypeForwardedToMultipleAssemblies, "TestType").WithArguments("ForwarderModule.dll", "Forwarder, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "Testspace.TestType", "D1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "D2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(8, 37),
20826
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "TestType").WithArguments("TestType", "Testspace").
WithLocation
(8, 37));
20968
Diagnostic(ErrorCode.ERR_TypeForwardedToMultipleAssemblies, "ClassB.MethodB").WithArguments("C.dll", "C, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "C.ClassC", "D, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "E, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null").
WithLocation
(11, 13));
20981
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(ref int)").
WithLocation
(4, 18));
20994
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(in int)").
WithLocation
(4, 18));
21007
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "M").WithArguments("C.M(out int)").
WithLocation
(4, 18),
21010
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(out int)").
WithLocation
(4, 18));
21023
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(int)").
WithLocation
(4, 18));
21036
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(in int)").
WithLocation
(4, 18));
21049
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "M").WithArguments("C.M(out int)").
WithLocation
(4, 18),
21052
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(out int)").
WithLocation
(4, 18));
21065
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(int)").
WithLocation
(4, 18));
21078
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(ref int)").
WithLocation
(4, 18));
21091
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "M").WithArguments("C.M(out int)").
WithLocation
(4, 18),
21094
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(out int)").
WithLocation
(4, 18));
21107
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "M").WithArguments("C.M(out int)").
WithLocation
(3, 18),
21110
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(int)").
WithLocation
(4, 18));
21123
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "M").WithArguments("C.M(out int)").
WithLocation
(3, 18),
21126
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(ref int)").
WithLocation
(4, 18));
21139
Diagnostic(ErrorCode.ERR_PartialMethodWithOutParamMustHaveAccessMods, "M").WithArguments("C.M(out int)").
WithLocation
(3, 18),
21142
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "M").WithArguments("C.M(in int)").
WithLocation
(4, 18));
21155
Diagnostic(ErrorCode.ERR_MemberNeedsType, "Y").
WithLocation
(4, 20));
21204
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "one").WithArguments("one").
WithLocation
(2, 7),
21207
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "nint").WithArguments("nint").
WithLocation
(8, 11),
21210
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "three").WithArguments("three").
WithLocation
(13, 16),
21213
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "four").WithArguments("four").
WithLocation
(16, 19),
21216
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "four").WithArguments("four").
WithLocation
(17, 19),
21219
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "five").WithArguments("five").
WithLocation
(20, 15),
21222
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "seven").WithArguments("seven").
WithLocation
(25, 15),
21225
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "eight").WithArguments("eight").
WithLocation
(27, 6)
21277
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "one").WithArguments("one").
WithLocation
(2, 10),
21280
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "one").WithArguments("one").
WithLocation
(7, 18),
21283
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "one").WithArguments("one").
WithLocation
(14, 13),
21286
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "one").WithArguments("one").
WithLocation
(26, 21)
21313
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using one = System.Console;").
WithLocation
(2, 1),
21316
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "one").WithArguments("one").
WithLocation
(2, 7),
21319
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using @two = System.Console;").
WithLocation
(3, 1),
21322
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using three = System;").
WithLocation
(4, 1),
21325
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "three").WithArguments("three").
WithLocation
(4, 7),
21328
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Ten = System.Console;").
WithLocation
(5, 1),
21331
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using cédille = System.Console;").
WithLocation
(6, 1)
21341
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using one = System.Console;").
WithLocation
(2, 1),
21344
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using @two = System.Console;").
WithLocation
(3, 1),
21347
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using three = System;").
WithLocation
(4, 1),
21350
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Ten = System.Console;").
WithLocation
(5, 1),
21353
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using cédille = System.Console;").
WithLocation
(6, 1)
21383
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "a").WithArguments("a").
WithLocation
(2, 7),
21386
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "z").WithArguments("z").
WithLocation
(3, 7),
21389
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "abcdefghijklmnopqrstuvwxyz").WithArguments("abcdefghijklmnopqrstuvwxyz").
WithLocation
(5, 7)
21401
Diagnostic(ErrorCode.ERR_IdentifierExpected, @"\u0060").
WithLocation
(3, 7),
21404
Diagnostic(ErrorCode.ERR_LbraceExpected, @"\u0060").
WithLocation
(3, 7),
21407
Diagnostic(ErrorCode.ERR_RbraceExpected, @"\u0060").
WithLocation
(3, 7),
21410
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments("\\u0060").
WithLocation
(3, 7),
21413
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "{ }").
WithLocation
(3, 14),
21416
Diagnostic(ErrorCode.ERR_SimpleProgramNotAnExecutable, "{ }").
WithLocation
(3, 14)
21428
Diagnostic(ErrorCode.ERR_IdentifierExpected, @"\u007c").
WithLocation
(3, 7),
21431
Diagnostic(ErrorCode.ERR_LbraceExpected, @"\u007c").
WithLocation
(3, 7),
21434
Diagnostic(ErrorCode.ERR_RbraceExpected, @"\u007c").
WithLocation
(3, 7),
21437
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments("\\u007c").
WithLocation
(3, 7),
21440
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "{ }").
WithLocation
(3, 14),
21443
Diagnostic(ErrorCode.ERR_SimpleProgramNotAnExecutable, "{ }").
WithLocation
(3, 14)
21538
Diagnostic(ErrorCode.ERR_MissingTypeInSource, "new Derived()").WithArguments("Base").
WithLocation
(10, 18),
21541
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new Derived()").WithArguments("Derived", "Test").
WithLocation
(10, 18)
21633
Diagnostic(ErrorCode.ERR_MissingTypeInSource, "new Derived()").WithArguments("Base").
WithLocation
(10, 18),
21636
Diagnostic(ErrorCode.ERR_NoImplicitConv, "new Derived()").WithArguments("Derived", "Test").
WithLocation
(10, 18)
21701
Diagnostic(ErrorCode.ERR_ForwardedTypeInThisAssembly, "TypeForwardedTo(typeof(C1))").WithArguments("C1").
WithLocation
(4, 12),
21704
Diagnostic(ErrorCode.ERR_ForwardedTypeInThisAssembly, "TypeForwardedTo(typeof(C2))").WithArguments("C2").
WithLocation
(5, 12)
21745
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "C1").WithArguments("C1", "Error").
WithLocation
(2, 35),
21748
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "C2").WithArguments("C2", "Warning").
WithLocation
(3, 35)
21795
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "C1").WithArguments("C1", "Error").
WithLocation
(6, 35),
21798
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "C2").WithArguments("C2", "Warning").
WithLocation
(7, 35)
21842
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "C1").WithArguments("C1", "Error").
WithLocation
(2, 35),
21845
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "C2").WithArguments("C2", "Warning").
WithLocation
(3, 35)
21851
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "C1").WithArguments("C1", "Error").
WithLocation
(2, 35),
21854
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "C2").WithArguments("C2", "Warning").
WithLocation
(3, 35)
21903
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "TypeForwardedTo").WithArguments("TypeForwardedTo", "assembly").
WithLocation
(4, 10),
21906
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "C1").WithArguments("C1", "Error").
WithLocation
(4, 33),
21909
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "C2").WithArguments("C2", "Warning").
WithLocation
(5, 33),
21912
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "TypeForwardedTo").WithArguments("TypeForwardedTo", "assembly").
WithLocation
(7, 2),
21915
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "C1").WithArguments("C1", "Error").
WithLocation
(7, 25),
21918
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "C2").WithArguments("C2", "Warning").
WithLocation
(7, 54),
21921
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "TypeForwardedTo").WithArguments("TypeForwardedTo", "assembly").
WithLocation
(9, 6),
21924
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "C1").WithArguments("C1", "Error").
WithLocation
(9, 29),
21927
Diagnostic(ErrorCode.WRN_DeprecatedSymbolStr, "C2").WithArguments("C2", "Warning").
WithLocation
(9, 58)
22003
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "TypeForwardedTo(typeof(C1))").WithArguments("C1", "SomeFeatureIsRequired").
WithLocation
(4, 12),
22006
Diagnostic(ErrorCode.ERR_UnsupportedCompilerFeature, "C1").WithArguments("C1", "SomeFeatureIsRequired").
WithLocation
(4, 35)
22036
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 5),
22039
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 5),
22042
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(3, 5),
22045
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(3, 12),
22048
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "PartialCtor").WithArguments("PartialCtor").
WithLocation
(3, 13),
22051
Diagnostic(ErrorCode.ERR_ReturnExpected, "PartialCtor").WithArguments("PartialCtor.PartialCtor()").
WithLocation
(3, 13),
22054
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "PublicPartialCtor").WithArguments("PublicPartialCtor").
WithLocation
(3, 20),
22057
Diagnostic(ErrorCode.ERR_ReturnExpected, "PublicPartialCtor").WithArguments("PublicPartialCtor.PublicPartialCtor()").
WithLocation
(3, 20));
22116
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 5),
22119
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 5),
22122
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 5),
22125
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 5),
22128
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 5),
22131
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 5),
22134
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 12),
22137
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 12),
22140
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 12),
22143
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(3, 12),
22146
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(3, 12),
22149
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(3, 19),
22152
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(3, 19),
22155
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "StaticPartialCtor").WithArguments("StaticPartialCtor").
WithLocation
(3, 20),
22158
Diagnostic(ErrorCode.ERR_ReturnExpected, "StaticPartialCtor").WithArguments("StaticPartialCtor.StaticPartialCtor()").
WithLocation
(3, 20),
22161
Diagnostic(ErrorCode.ERR_StaticConstructorWithAccessModifiers, "PartialPublicStaticCtor").WithArguments("PartialPublicStaticCtor.PartialPublicStaticCtor()").
WithLocation
(3, 27),
22164
Diagnostic(ErrorCode.ERR_StaticConstructorWithAccessModifiers, "PublicPartialStaticCtor").WithArguments("PublicPartialStaticCtor.PublicPartialStaticCtor()").
WithLocation
(3, 27),
22167
Diagnostic(ErrorCode.ERR_StaticConstructorWithAccessModifiers, "StaticPartialPublicCtor").WithArguments("StaticPartialPublicCtor.StaticPartialPublicCtor()").
WithLocation
(3, 27),
22170
Diagnostic(ErrorCode.ERR_StaticConstructorWithAccessModifiers, "PartialStaticPublicCtor").WithArguments("PartialStaticPublicCtor.PartialStaticPublicCtor()").
WithLocation
(3, 27),
22173
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "StaticPublicPartialCtor").WithArguments("StaticPublicPartialCtor").
WithLocation
(3, 27),
22176
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "PublicStaticPartialCtor").WithArguments("PublicStaticPartialCtor").
WithLocation
(3, 27),
22179
Diagnostic(ErrorCode.ERR_ReturnExpected, "StaticPublicPartialCtor").WithArguments("StaticPublicPartialCtor.StaticPublicPartialCtor()").
WithLocation
(3, 27),
22182
Diagnostic(ErrorCode.ERR_ReturnExpected, "PublicStaticPartialCtor").WithArguments("PublicStaticPartialCtor.PublicStaticPartialCtor()").
WithLocation
(3, 27));
Symbols\TypeTests.cs (6)
1923
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TypeIdentifier").WithArguments("TypeIdentifier").
WithLocation
(6, 20),
1926
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "alias1").WithArguments("TypeIdentifier").
WithLocation
(8, 6)
1958
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "TypeIdentifier").WithArguments("TypeIdentifier").
WithLocation
(6, 20),
1961
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "alias1Attribute").WithArguments("alias1AttributeAttribute").
WithLocation
(8, 6),
1964
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "alias1Attribute").WithArguments("alias1Attribute").
WithLocation
(8, 6)
2251
Diagnostic(ErrorCode.ERR_NotAnAttributeClass, "alias1").WithArguments("System.Runtime.InteropServices").
WithLocation
(6, 6)
Symbols\UnsignedRightShiftTests.cs (78)
383
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >> y").WithArguments(">>", left, right).
WithLocation
(8, 18),
386
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>> y").WithArguments(">>>", left, right).
WithLocation
(9, 18)
527
Diagnostic(ErrorCode.ERR_NotConstantExpression, "x >>> 1").WithArguments("y").
WithLocation
(9, 24)
886
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>= y").WithArguments(">>=", left, right).
WithLocation
(8, 9),
889
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>>= y").WithArguments(">>>=", left, right).
WithLocation
(9, 9)
928
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "x >>= 1").
WithLocation
(8, 13),
931
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "x >>>= 1").
WithLocation
(9, 13)
953
Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "x >>> y").WithArguments(">>>").
WithLocation
(6, 86)
975
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "x >>>= y").
WithLocation
(6, 86)
998
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>> y").WithArguments(">>>", "dynamic", "int").
WithLocation
(6, 13),
1001
Diagnostic(ErrorCode.ERR_BadBinaryOps, "y >>> x").WithArguments(">>>", "int", "dynamic").
WithLocation
(7, 13),
1004
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>> x").WithArguments(">>>", "dynamic", "dynamic").
WithLocation
(8, 13)
1039
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>>= y").WithArguments(">>>=", "dynamic", "int").
WithLocation
(6, 9),
1042
Diagnostic(ErrorCode.ERR_BadBinaryOps, "y >>>= x").WithArguments(">>>=", "int", "dynamic").
WithLocation
(7, 9),
1045
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>>= x").WithArguments(">>>=", "dynamic", "dynamic").
WithLocation
(8, 9)
1439
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >> y").WithArguments(">>", nullableLeft, nullableRight).
WithLocation
(8, 18),
1442
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>> y").WithArguments(">>>", nullableLeft, nullableRight).
WithLocation
(9, 18)
1847
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>= y").WithArguments(">>=", nullableLeft, nullableRight).
WithLocation
(8, 9),
1850
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>>= y").WithArguments(">>>=", nullableLeft, nullableRight).
WithLocation
(9, 9)
1889
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "x >>= 1").
WithLocation
(8, 13),
1892
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "x >>>= 1").
WithLocation
(9, 13)
1914
Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "x >>> y").WithArguments(">>>").
WithLocation
(6, 89)
1936
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "x >>>= y").
WithLocation
(6, 89)
2068
Diagnostic(ErrorCode.ERR_CantCallSpecialMethod, "op_UnsignedRightShift").WithArguments("C1.operator >>>(C1, int)").
WithLocation
(9, 40)
2135
Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, ">>>").
WithLocation
(4, 33),
2138
Diagnostic(ErrorCode.ERR_OperatorCantReturnVoid, ">>").
WithLocation
(9, 33),
2141
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, ">>>").
WithLocation
(17, 31),
2144
Diagnostic(ErrorCode.ERR_BadShiftOperatorSignature, ">>").
WithLocation
(22, 31)
2185
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "op_UnsignedRightShift").WithArguments("op_UnsignedRightShift", "C1").
WithLocation
(9, 22),
2188
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, ">>>").WithArguments("op_UnsignedRightShift", "C2").
WithLocation
(22, 31)
2285
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>> y").WithArguments(">>>", "C1", "int").
WithLocation
(4, 37)
2293
Diagnostic(ErrorCode.ERR_BadBinaryOps, "x >>> y").WithArguments(">>>", "C1", "int").
WithLocation
(4, 37)
2323
Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "x >>> y").WithArguments(">>>").
WithLocation
(14, 84)
2409
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "x >>>= y").
WithLocation
(14, 84)
2449
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "x >>= 1").
WithLocation
(21, 13),
2452
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "x >>>= 1").
WithLocation
(22, 13)
2543
Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "x >>> y").WithArguments(">>>").
WithLocation
(14, 87)
2640
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsAssignment, "x >>>= y").
WithLocation
(14, 87)
2680
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "x >>= 1").
WithLocation
(21, 13),
2683
Diagnostic(ErrorCode.ERR_InvalidInitializerElementInitializer, "x >>>= 1").
WithLocation
(22, 13)
2714
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator >>>").WithArguments("operator >>>").
WithLocation
(3, 20),
2717
Diagnostic(ErrorCode.WRN_ErrorOverride, ">>>").WithArguments("Feature 'unsigned right shift' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29),
2720
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(7, 30)
2755
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>>").WithArguments("operator >>>").
WithLocation
(3, 20)
2784
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>").WithArguments("operator >>").
WithLocation
(3, 20)
2815
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator").WithArguments("operator >>>=").
WithLocation
(3, 20),
2818
Diagnostic(ErrorCode.WRN_ErrorOverride, " >>>").WithArguments("Overloadable operator expected", "1037").
WithLocation
(3, 28)
2825
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator").WithArguments("operator").
WithLocation
(3, 20)
2848
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>>(C)").WithArguments("operator >>>(C)").
WithLocation
(3, 20)
2886
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator >>>(C, int)").WithArguments("operator >>>(C, int)").
WithLocation
(3, 20),
2889
Diagnostic(ErrorCode.WRN_ErrorOverride, ">>>").WithArguments("Feature 'unsigned right shift' is not available in C# 10.0. Please use language version 11.0 or greater.", "8936").
WithLocation
(3, 29),
2892
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(7, 30)
2927
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>>(C, int)").WithArguments("operator >>>(C, int)").
WithLocation
(3, 20)
2956
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>(C, int)").WithArguments("operator >>(C, int)").
WithLocation
(3, 20)
2987
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator >>>=(C, int)").WithArguments("operator >>>=(C, int)").
WithLocation
(3, 20),
2990
Diagnostic(ErrorCode.WRN_ErrorOverride, " >>>").WithArguments("Overloadable operator expected", "1037").
WithLocation
(3, 28)
2997
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>>=(C, int)").WithArguments("operator >>>=(C, int)").
WithLocation
(3, 20)
3020
Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>>(C, int, object)").WithArguments("operator >>>(C, int, object)").
WithLocation
(3, 20)
3117
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>> y").WithArguments("unsigned right shift", "11.0").
WithLocation
(8, 13)
3211
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>>= y").WithArguments("unsigned right shift", "11.0").
WithLocation
(8, 9)
3305
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>> y").WithArguments("unsigned right shift", "11.0").
WithLocation
(8, 13)
3399
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>>= y").WithArguments("unsigned right shift", "11.0").
WithLocation
(8, 9)
3433
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(4, 31)
3450
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>> y").WithArguments("unsigned right shift", "11.0").
WithLocation
(4, 37)
3485
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(4, 31)
3502
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>>= y").WithArguments("unsigned right shift", "11.0").
WithLocation
(4, 37)
3537
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(4, 31)
3554
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>> y").WithArguments("unsigned right shift", "11.0").
WithLocation
(4, 40)
3589
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, ">>>").WithArguments("unsigned right shift", "11.0").
WithLocation
(4, 31)
3606
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "x >>>= y").WithArguments("unsigned right shift", "11.0").
WithLocation
(4, 40)
3634
Diagnostic(ErrorCode.ERR_NameNotInContext, "ImmutableDictionary").WithArguments("ImmutableDictionary").
WithLocation
(6, 21),
3637
Diagnostic(ErrorCode.ERR_NameNotInContext, "T").WithArguments("T").
WithLocation
(6, 41),
3640
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "S").WithArguments("S").
WithLocation
(6, 44),
3643
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "S a").
WithLocation
(6, 44),
3646
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "U").WithArguments("U").
WithLocation
(6, 49),
3649
Diagnostic(ErrorCode.ERR_DeclarationExpressionNotPermitted, "U b").
WithLocation
(6, 49),
3652
Diagnostic(ErrorCode.ERR_NameNotInContext, "ProjectChange").WithArguments("ProjectChange").
WithLocation
(8, 9),
3655
Diagnostic(ErrorCode.ERR_NameNotInContext, "projectChange").WithArguments("projectChange").
WithLocation
(8, 25)
Symbols\UserDefinedOperatorErrorTests.cs (17)
200
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(4, 5),
203
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(4, 5),
206
Diagnostic(ErrorCode.ERR_BadMemberFlag, "-").WithArguments("abstract").
WithLocation
(5, 34),
209
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, "-").WithArguments("C.operator -(C, C)").
WithLocation
(5, 34),
212
Diagnostic(ErrorCode.ERR_BadMemberFlag, "<<").WithArguments("sealed").
WithLocation
(6, 32),
215
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, "<<").WithArguments("C.operator <<(C, int)").
WithLocation
(6, 32),
218
Diagnostic(ErrorCode.ERR_BadMemberFlag, ">>").WithArguments("new").
WithLocation
(7, 36),
221
Diagnostic(ErrorCode.ERR_BadMemberFlag, "*").WithArguments("readonly").
WithLocation
(8, 41),
224
Diagnostic(ErrorCode.ERR_BadMemberFlag, "%").WithArguments("volatile").
WithLocation
(9, 41),
227
Diagnostic(ErrorCode.ERR_BadMemberFlag, "-").WithArguments("virtual").
WithLocation
(10, 33),
230
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, "-").WithArguments("C.operator -(C)").
WithLocation
(10, 33),
233
Diagnostic(ErrorCode.ERR_BadMemberFlag, "~").WithArguments("override").
WithLocation
(11, 34),
236
Diagnostic(ErrorCode.ERR_OperatorsMustBeStatic, "~").WithArguments("C.operator ~(C)").
WithLocation
(11, 34),
239
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(12, 12),
242
Diagnostic(ErrorCode.ERR_ExternHasBody, "^").WithArguments("C.operator ^(C, C)").
WithLocation
(13, 39),
245
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "+").WithArguments("C.operator +(C)").
WithLocation
(14, 32),
248
Diagnostic(ErrorCode.ERR_BadMemberFlag, ">>>").WithArguments("new").
WithLocation
(15, 36)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5005)
Diagnostics\DiagnosticTest.cs (100)
971
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 13),
974
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 13),
977
Diagnostic(ErrorCode.WRN_UnreferencedVar, "z").WithArguments("z").
WithLocation
(10, 13));
985
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 13).WithWarningAsError(true),
988
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 13),
991
Diagnostic(ErrorCode.WRN_UnreferencedVar, "z").WithArguments("z").
WithLocation
(10, 13).WithWarningAsError(true));
997
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 13),
1000
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 13),
1003
Diagnostic(ErrorCode.WRN_UnreferencedVar, "z").WithArguments("z").
WithLocation
(10, 13));
1038
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 13),
1041
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 13),
1044
Diagnostic(ErrorCode.WRN_UnreferencedVar, "z").WithArguments("z").
WithLocation
(10, 13),
1047
Diagnostic(ErrorCode.WRN_UnreferencedVar, "w").WithArguments("w").
WithLocation
(12, 13));
1055
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 13).WithWarningAsError(true),
1058
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 13),
1061
Diagnostic(ErrorCode.WRN_UnreferencedVar, "z").WithArguments("z").
WithLocation
(10, 13).WithWarningAsError(true),
1064
Diagnostic(ErrorCode.WRN_UnreferencedVar, "w").WithArguments("w").
WithLocation
(12, 13).WithWarningAsError(true));
1070
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 13),
1073
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 13),
1076
Diagnostic(ErrorCode.WRN_UnreferencedVar, "z").WithArguments("z").
WithLocation
(10, 13),
1079
Diagnostic(ErrorCode.WRN_UnreferencedVar, "w").WithArguments("w").
WithLocation
(12, 13));
1112
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 13),
1115
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 13),
1118
Diagnostic(ErrorCode.WRN_UnreferencedVar, "z").WithArguments("z").
WithLocation
(10, 13));
1126
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 13).WithWarningAsError(true),
1129
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 13),
1132
Diagnostic(ErrorCode.WRN_UnreferencedVar, "z").WithArguments("z").
WithLocation
(10, 13).WithWarningAsError(true));
1138
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(7, 13),
1141
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 13),
1144
Diagnostic(ErrorCode.WRN_UnreferencedVar, "z").WithArguments("z").
WithLocation
(10, 13));
1780
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").
WithLocation
(7, 25),
1794
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").
WithLocation
(7, 25),
1807
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").
WithLocation
(7, 25),
1816
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").
WithLocation
(7, 25));
1847
Diagnostic(ErrorCode.WRN_UnreferencedVar, "x").WithArguments("x").
WithLocation
(14, 13),
1850
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(15, 13));
1889
Diagnostic(ErrorCode.ERR_IdentifierExpected, "true").
WithLocation
(2, 9),
1892
Diagnostic(ErrorCode.ERR_IdentifierExpected, "default").
WithLocation
(3, 9),
1895
Diagnostic(ErrorCode.ERR_IdentifierExpected, "hidden").
WithLocation
(4, 9),
1898
Diagnostic(ErrorCode.ERR_IdentifierExpected, "disable").
WithLocation
(5, 9),
1901
Diagnostic(ErrorCode.ERR_IdentifierExpected, "checksum").
WithLocation
(6, 9),
1904
Diagnostic(ErrorCode.ERR_IdentifierExpected, "restore").
WithLocation
(7, 9),
1907
Diagnostic(ErrorCode.ERR_IdentifierExpected, "false").
WithLocation
(8, 9),
1910
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "true").
WithLocation
(13, 25),
1913
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "default").
WithLocation
(14, 25),
1916
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "hidden").
WithLocation
(15, 25),
1919
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "disable").
WithLocation
(16, 25),
1922
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "checksum").
WithLocation
(17, 25),
1925
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "restore").
WithLocation
(18, 25),
1928
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "false").
WithLocation
(19, 25));
1986
Diagnostic(ErrorCode.ERR_IdentifierExpected, "@").
WithLocation
(2, 9),
1989
Diagnostic(ErrorCode.ERR_IdentifierExpected, "@").
WithLocation
(3, 9),
1992
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "@").
WithLocation
(8, 25),
1995
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "@").
WithLocation
(9, 25));
2022
Diagnostic(ErrorCode.WRN_EndOfPPLineExpected, "+").
WithLocation
(6, 32),
2025
Diagnostic(ErrorCode.WRN_EndOfPPLineExpected, ".").
WithLocation
(9, 31),
2028
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "(").
WithLocation
(11, 25),
2031
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "-").
WithLocation
(13, 25),
2034
Diagnostic(ErrorCode.WRN_EndOfPPLineExpected, ".").
WithLocation
(14, 28),
2037
Diagnostic(ErrorCode.WRN_EndOfPPLineExpected, "L").
WithLocation
(15, 28),
2040
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(8, 13),
2043
Diagnostic(ErrorCode.WRN_UnreferencedVar, "z").WithArguments("z").
WithLocation
(12, 13));
2069
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "@").
WithLocation
(12, 25),
2072
Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").
WithLocation
(13, 25),
2075
Diagnostic(ErrorCode.WRN_IllegalPPWarning, "blah").
WithLocation
(14, 17));
2173
Diagnostic(ErrorCode.ERR_NoImplicitConv, "string.Empty").WithArguments("string", "int").
WithLocation
(7, 17),
2176
Diagnostic(ErrorCode.ERR_NoImplicitConv, "string.Empty").WithArguments("string", "int").
WithLocation
(10, 17));
2429
Diagnostic(ErrorCode.ERR_BadIteratorReturn, "Goo").WithArguments("Test.Goo()", "IMyEnumerator").
WithLocation
(6, 26)
2498
Diagnostic(ErrorCode.ERR_TypeExpected, "0").
WithLocation
(7, 35),
2501
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(8, 35),
2504
Diagnostic(ErrorCode.ERR_TypeExpected, "0").
WithLocation
(15, 33),
2507
Diagnostic(ErrorCode.ERR_TypeExpected, "1").
WithLocation
(15, 35),
2510
Diagnostic(ErrorCode.ERR_TypeExpected, "0").
WithLocation
(16, 33),
2513
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(17, 33),
2516
Diagnostic(ErrorCode.ERR_TypeExpected, "0").
WithLocation
(24, 43),
2519
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(25, 43),
2522
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "Action<>").
WithLocation
(26, 36));
2546
Diagnostic(ErrorCode.ERR_BadSKunknown, "ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(6, 18),
2549
Diagnostic(ErrorCode.ERR_PossibleBadNegCast, "(ConsoleColor) - 1").
WithLocation
(6, 17),
2552
Diagnostic(ErrorCode.ERR_BadSKunknown, "ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(6, 18),
2555
Diagnostic(ErrorCode.ERR_BadSKunknown, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(7, 18),
2558
Diagnostic(ErrorCode.ERR_PossibleBadNegCast, "(System.ConsoleColor) - 1").
WithLocation
(7, 17),
2561
Diagnostic(ErrorCode.ERR_BadSKunknown, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(7, 18)
2586
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "y").WithArguments("y").
WithLocation
(6, 13),
2589
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "z").WithArguments("z").
WithLocation
(7, 13)
2617
Diagnostic(ErrorCode.ERR_BadSKunknown, "ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(7, 19),
2620
Diagnostic(ErrorCode.ERR_BadSKunknown, "ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(7, 19),
2623
Diagnostic(ErrorCode.ERR_BadSKunknown, "ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(7, 19),
2626
Diagnostic(ErrorCode.ERR_BadSKunknown, "ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(8, 17),
2629
Diagnostic(ErrorCode.ERR_BadSKunknown, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(9, 19),
2632
Diagnostic(ErrorCode.ERR_BadSKunknown, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(9, 19),
2635
Diagnostic(ErrorCode.ERR_BadSKunknown, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(9, 19),
2638
Diagnostic(ErrorCode.ERR_BadSKunknown, "System.ConsoleColor").WithArguments("System.ConsoleColor", "type").
WithLocation
(10, 17)
2662
Diagnostic(ErrorCode.ERR_NameNotInContext, "dynamic").WithArguments("dynamic").
WithLocation
(5, 18),
2665
Diagnostic(ErrorCode.ERR_PossibleBadNegCast, "(dynamic) - 1").
WithLocation
(5, 17),
2668
Diagnostic(ErrorCode.ERR_NameNotInContext, "@dynamic").WithArguments("dynamic").
WithLocation
(6, 18),
2671
Diagnostic(ErrorCode.ERR_PossibleBadNegCast, "(@dynamic) - 1").
WithLocation
(6, 17)
2717
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(dynamic) - 1").WithArguments("-", "method group", "int").
WithLocation
(5, 17),
2720
Diagnostic(ErrorCode.ERR_BadBinaryOps, "(@dynamic) - 1").WithArguments("-", "method group", "int").
WithLocation
(6, 17)
2846
Diagnostic(ErrorCode.ERR_PublicKeyContainerFailure).WithArguments("bogus", "Assembly signing not supported.").
WithLocation
(1, 1)
Diagnostics\LineSpanDirectiveTests.cs (10)
142
Diagnostic(ErrorCode.ERR_LineSpanDirectiveEndLessThanStart, "(9, 20)").
WithLocation
(9, 18),
145
Diagnostic(ErrorCode.ERR_LineSpanDirectiveEndLessThanStart, "(10, 19)").
WithLocation
(11, 18));
530
Diagnostic(ErrorCode.ERR_NameNotInContext, "C").WithArguments("C").
WithLocation
(1, 9),
533
Diagnostic(ErrorCode.ERR_NameNotInContext, "A").WithArguments("A").
WithLocation
(3, 4),
536
Diagnostic(ErrorCode.ERR_NameNotInContext, "B").WithArguments("B").
WithLocation
(8, 9));
560
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, ")").
WithLocation
(5, 24),
563
Diagnostic(ErrorCode.ERR_NameNotInContext, "A").WithArguments("A").
WithLocation
(6, 9),
566
Diagnostic(ErrorCode.ERR_NameNotInContext, "C").WithArguments("C").
WithLocation
(10, 9),
569
Diagnostic(ErrorCode.ERR_NameNotInContext, "B").WithArguments("B").
WithLocation
(200, 8),
572
Diagnostic(ErrorCode.ERR_MissingPPFile, "x").
WithLocation
(201, 29));
IncrementalParsing\IncrementalParsingTests.cs (5)
74
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(4, 30));
78
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(4, 29));
2425
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 32));
2455
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 31));
2483
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 31));
LexicalAndXml\LexicalErrorTests.cs (113)
64
Diagnostic(ErrorCode.ERR_InvalidReal, "").
WithLocation
(3, 17),
67
Diagnostic(ErrorCode.ERR_InvalidReal, "").
WithLocation
(4, 17),
70
Diagnostic(ErrorCode.ERR_InvalidReal, "").
WithLocation
(5, 17),
73
Diagnostic(ErrorCode.ERR_InvalidReal, "").
WithLocation
(6, 17),
76
Diagnostic(ErrorCode.ERR_InvalidReal, "").
WithLocation
(7, 17)
93
Diagnostic(ErrorCode.ERR_InvalidReal, "").
WithLocation
(3, 23),
96
Diagnostic(ErrorCode.ERR_SemicolonExpected, "ndOfDirective").
WithLocation
(3, 25),
99
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(3, 43),
102
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(3, 43)
198
Diagnostic(ErrorCode.ERR_TypeExpected, "const").
WithLocation
(7, 15),
201
Diagnostic(ErrorCode.ERR_TypeExpected, "const").
WithLocation
(8, 15),
204
Diagnostic(ErrorCode.ERR_TypeExpected, "const").
WithLocation
(8, 21),
207
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(9, 15),
210
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(9, 24),
213
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(9, 33),
216
Diagnostic(ErrorCode.ERR_TypeExpected, "const").
WithLocation
(9, 42)
370
Diagnostic(ErrorCode.ERR_SemicolonExpected, @"\u005C").
WithLocation
(1, 8),
373
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments(@"\u005C").
WithLocation
(1, 8));
483
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(7, 23));
505
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(7, 28));
528
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(8, 23));
550
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(7, 30));
573
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(8, 28));
597
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(9, 23));
620
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(8, 28));
643
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(8, 28));
666
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(8, 39));
686
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(6, 38));
690
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(6, 38));
694
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(6, 38));
713
Diagnostic(ErrorCode.ERR_UnclosedExpressionHole, " {").
WithLocation
(6, 21),
716
Diagnostic(ErrorCode.ERR_OpenEndedComment, "").
WithLocation
(6, 24),
719
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(9, 1),
722
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(9, 1),
725
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(9, 1),
728
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(9, 1));
732
Diagnostic(ErrorCode.ERR_UnclosedExpressionHole, " {").
WithLocation
(6, 21),
735
Diagnostic(ErrorCode.ERR_OpenEndedComment, "").
WithLocation
(6, 24),
738
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(9, 1),
741
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(9, 1),
744
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(9, 1),
747
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(9, 1));
751
Diagnostic(ErrorCode.ERR_UnclosedExpressionHole, " {").
WithLocation
(6, 21),
754
Diagnostic(ErrorCode.ERR_OpenEndedComment, "").
WithLocation
(6, 24),
757
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(9, 1),
760
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(9, 1),
763
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(9, 1),
766
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(9, 1));
786
Diagnostic(ErrorCode.ERR_UnclosedExpressionHole, " {").
WithLocation
(6, 21),
789
Diagnostic(ErrorCode.ERR_OpenEndedComment, "").
WithLocation
(6, 24),
792
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(10, 1),
795
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(10, 1),
798
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(10, 1),
801
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(10, 1));
805
Diagnostic(ErrorCode.ERR_UnclosedExpressionHole, " {").
WithLocation
(6, 21),
808
Diagnostic(ErrorCode.ERR_OpenEndedComment, "").
WithLocation
(6, 24),
811
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(10, 1),
814
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(10, 1),
817
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(10, 1),
820
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(10, 1));
824
Diagnostic(ErrorCode.ERR_UnclosedExpressionHole, " {").
WithLocation
(6, 21),
827
Diagnostic(ErrorCode.ERR_OpenEndedComment, "").
WithLocation
(6, 24),
830
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(10, 1),
833
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(10, 1),
836
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(10, 1),
839
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(10, 1));
878
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(7, 27));
900
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(8, 29));
904
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(8, 29));
908
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(8, 29));
947
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(7, 27));
968
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 23));
972
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 23));
976
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 23));
997
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(7, 23));
1019
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(7, 27));
1042
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(9, 23));
1046
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(9, 23));
1050
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(9, 23));
1073
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(9, 23));
1097
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(9, 27));
1122
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(10, 23));
1143
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 39));
1147
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 39));
1151
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 39));
1172
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(7, 41));
1195
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(9, 29));
1199
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(9, 29));
1203
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(9, 29));
1226
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(9, 31));
1251
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(10, 27));
1275
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(10, 23));
1279
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(10, 23));
1283
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(10, 23));
1307
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(10, 23));
1333
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(11, 23));
1354
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 23));
1358
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 23));
1362
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 23));
1382
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 24));
1386
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 24));
1390
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 24));
1410
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 30));
1414
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 30));
1418
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(7, 30));
1440
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(8, 23));
1483
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("10.0", "11.0").
WithLocation
(8, 34));
1513
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(6, 20),
1516
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(7, 21),
1519
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(8, 22));
1530
Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "").
WithLocation
(3, 11));
1544
Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "#endregion").
WithLocation
(5, 1),
1545
Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "").
WithLocation
(6, 1));
LexicalAndXml\PreprocessorTests.cs (4)
3244
Diagnostic(ErrorCode.ERR_ErrorDirective, "version").WithArguments("version").
WithLocation
(1, 8),
3247
Diagnostic(ErrorCode.ERR_CompilerAndLanguageVersion, "version").WithArguments(GetExpectedVersion(), expectedLanguageVersion).
WithLocation
(1, 8)
3270
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion4, "version:7.1").WithArguments("version", "7.1").
WithLocation
(1, 8)
3290
Diagnostic(ErrorCode.ERR_ErrorDirective, "version:A.B").WithArguments("version:A.B").
WithLocation
(1, 8)
LexicalAndXml\RawStringLiteralLexingTests.cs (1)
238
Diagnostic(ErrorCode.ERR_RawStringNotInDirectives, "").
WithLocation
(2, 9));
LexicalAndXml\XmlDocCommentTests.cs (11)
67
Diagnostic(ErrorCode.ERR_DocFileGen).WithArguments("I/O error occurred.").
WithLocation
(1, 1));
2924
Diagnostic(ErrorCode.WRN_XMLParseError, "A :B").WithArguments("A :B", "A:B").
WithLocation
(7, 7),
2927
Diagnostic(ErrorCode.WRN_XMLParseError, " ").
WithLocation
(7, 8),
2930
Diagnostic(ErrorCode.WRN_XMLParseError, "A: B").WithArguments("A: B", "A:B").
WithLocation
(10, 7),
2933
Diagnostic(ErrorCode.WRN_XMLParseError, " ").
WithLocation
(10, 9)
3202
Diagnostic(ErrorCode.WRN_UnprocessedXMLComment, "/").
WithLocation
(2, 1)
3231
Diagnostic(ErrorCode.WRN_UnprocessedXMLComment, "/").
WithLocation
(3, 1)
3247
Diagnostic(ErrorCode.WRN_UnprocessedXMLComment, "/").
WithLocation
(2, 1),
3250
Diagnostic(ErrorCode.WRN_UnprocessedXMLComment, "/").
WithLocation
(3, 1)
3267
Diagnostic(ErrorCode.WRN_UnprocessedXMLComment, "/").
WithLocation
(2, 1),
3270
Diagnostic(ErrorCode.WRN_UnprocessedXMLComment, "/").
WithLocation
(3, 1)
Parsing\AnonymousFunctionParsingTests.cs (149)
116
Diagnostic(ErrorCode.ERR_DuplicateModifier, "async").WithArguments("async").
WithLocation
(8, 26),
119
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "delegate").
WithLocation
(8, 32));
216
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(8, 20));
314
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(8, 20),
317
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "delegate").
WithLocation
(8, 33));
415
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(8, 20),
418
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "delegate").
WithLocation
(8, 33));
516
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(8, 20),
519
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(8, 27),
522
Diagnostic(ErrorCode.ERR_DuplicateModifier, "static").WithArguments("static").
WithLocation
(8, 27));
771
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(9, 46));
880
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(8, 28));
892
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(1, 22));
896
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(1, 22),
899
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(1, 25));
954
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(1, 22),
957
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "static x => x").
WithLocation
(1, 29));
961
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(1, 22),
964
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(1, 29),
967
Diagnostic(ErrorCode.ERR_RefLvalueExpected, "static x => x").
WithLocation
(1, 29));
1023
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(1, 22));
1027
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(1, 22),
1030
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(1, 32));
1093
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(1, 22));
1097
Diagnostic(ErrorCode.ERR_NameNotInContext, "M1").WithArguments("M1").
WithLocation
(1, 22),
1100
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(1, 25));
1165
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "static x => x").WithArguments("lambda expression", "int").
WithLocation
(1, 34));
1169
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(1, 34),
1172
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "static x => x").WithArguments("lambda expression", "int").
WithLocation
(1, 34));
1236
Diagnostic(ErrorCode.ERR_SyntaxError, "static").WithArguments(",").
WithLocation
(1, 13)
1283
Diagnostic(ErrorCode.ERR_SyntaxError, "static").WithArguments(",").
WithLocation
(1, 13));
1329
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "]").WithArguments("]").
WithLocation
(1, 45));
1333
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(1, 34),
1336
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "]").WithArguments("]").
WithLocation
(1, 45));
1341
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "]").WithArguments("]").
WithLocation
(1, 24));
1347
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "]").WithArguments("]").
WithLocation
(1, 24));
1406
Diagnostic(ErrorCode.ERR_LbraceExpected, "]").
WithLocation
(1, 49));
1410
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(1, 34),
1413
Diagnostic(ErrorCode.ERR_LbraceExpected, "]").
WithLocation
(1, 49));
1418
Diagnostic(ErrorCode.ERR_LbraceExpected, "]").
WithLocation
(1, 28));
1424
Diagnostic(ErrorCode.ERR_LbraceExpected, "]").
WithLocation
(1, 28)
1481
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "static").WithArguments("", "static").
WithLocation
(1, 20),
1484
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 28));
1535
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "static").WithArguments("", "static").
WithLocation
(1, 20),
1538
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 30));
1593
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Action").WithArguments("Action").
WithLocation
(1, 30),
1596
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(1, 53),
1599
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(1, 55));
1603
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Action").WithArguments("Action").
WithLocation
(1, 30),
1606
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(1, 41),
1609
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(1, 53),
1612
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(1, 55));
1617
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(1, 32),
1620
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 33));
1626
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(1, 32),
1629
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 33));
1697
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Action").WithArguments("Action").
WithLocation
(1, 30),
1700
Diagnostic(ErrorCode.ERR_LbraceExpected, "}").
WithLocation
(1, 57),
1703
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(1, 59));
1707
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Action").WithArguments("Action").
WithLocation
(1, 30),
1710
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(1, 41),
1713
Diagnostic(ErrorCode.ERR_LbraceExpected, "}").
WithLocation
(1, 57),
1716
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(1, 59));
1721
Diagnostic(ErrorCode.ERR_LbraceExpected, "}").
WithLocation
(1, 36),
1724
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 37));
1730
Diagnostic(ErrorCode.ERR_LbraceExpected, "}").
WithLocation
(1, 36),
1733
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 37));
1798
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "static delegate(int x) { }").WithArguments("anonymous method", "int").
WithLocation
(1, 34));
1802
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(1, 34),
1805
Diagnostic(ErrorCode.ERR_AnonMethToNonDel, "static delegate(int x) { }").WithArguments("anonymous method", "int").
WithLocation
(1, 34));
1879
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 22),
1882
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(1, 46),
1885
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 48),
1888
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(1, 51));
1892
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "delegate").WithArguments("function pointers", "9.0").
WithLocation
(1, 22),
1895
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 22),
1898
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(1, 46),
1901
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 48),
1904
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(1, 51));
1909
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(1, 25),
1912
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 27)
1919
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(1, 25),
1922
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 27));
1985
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 22),
1988
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "static").WithArguments("static").
WithLocation
(1, 45),
1991
Diagnostic(ErrorCode.ERR_SemicolonExpected, "static").
WithLocation
(1, 45),
1994
Diagnostic(ErrorCode.ERR_BadMemberFlag, "static").WithArguments("static").
WithLocation
(1, 45),
1997
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(1, 53),
2000
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(1, 55),
2003
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 55),
2006
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(1, 58));
2010
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "delegate").WithArguments("function pointers", "9.0").
WithLocation
(1, 22),
2013
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 22),
2016
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "static").WithArguments("static").
WithLocation
(1, 45),
2019
Diagnostic(ErrorCode.ERR_SemicolonExpected, "static").
WithLocation
(1, 45),
2022
Diagnostic(ErrorCode.ERR_BadMemberFlag, "static").WithArguments("static").
WithLocation
(1, 45),
2025
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(1, 53),
2028
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(1, 55),
2031
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 55),
2034
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(1, 58));
2039
Diagnostic(ErrorCode.ERR_UnexpectedToken, "delegate*<void> ptr = &static (").WithArguments(")").
WithLocation
(1, 1),
2042
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "static").WithArguments("static").
WithLocation
(1, 24),
2045
Diagnostic(ErrorCode.ERR_SyntaxError, "static").WithArguments(",").
WithLocation
(1, 24),
2048
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(1, 32));
2054
Diagnostic(ErrorCode.ERR_UnexpectedToken, "delegate*<void> ptr = &static (").WithArguments(")").
WithLocation
(1, 1),
2057
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "static").WithArguments("static").
WithLocation
(1, 24),
2060
Diagnostic(ErrorCode.ERR_SyntaxError, "static").WithArguments(",").
WithLocation
(1, 24),
2063
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(1, 32));
2120
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 1),
2123
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "delegate() { }").
WithLocation
(1, 24));
2127
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "delegate*<void> ptr = &delegate() { };").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
2130
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "delegate").WithArguments("function pointers", "9.0").
WithLocation
(1, 1),
2133
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 1),
2136
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "delegate() { }").
WithLocation
(1, 24));
2209
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 22),
2212
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "delegate() { }").
WithLocation
(1, 45));
2216
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "delegate").WithArguments("function pointers", "9.0").
WithLocation
(1, 22),
2219
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 22),
2222
Diagnostic(ErrorCode.ERR_InvalidAddrOp, "delegate() { }").
WithLocation
(1, 45));
2300
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 25),
2303
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(4, 25)
2377
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(",").
WithLocation
(4, 25),
2380
Diagnostic(ErrorCode.ERR_CloseParenExpected, "static").
WithLocation
(5, 11),
2383
Diagnostic(ErrorCode.ERR_SyntaxError, "static").WithArguments("]").
WithLocation
(5, 11)
2593
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(9, 34),
2596
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(9, 53));
2741
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(9, 40),
2744
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(9, 53));
2890
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(9, 40),
2893
Diagnostic(ErrorCode.ERR_DuplicateModifier, "async").WithArguments("async").
WithLocation
(9, 47),
2896
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(9, 59));
3155
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(9, 48));
3269
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(8, 28));
3419
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(9, 34),
3422
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(9, 55));
3572
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(9, 40),
3575
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(9, 55));
3726
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(9, 40),
3729
Diagnostic(ErrorCode.ERR_DuplicateModifier, "async").WithArguments("async").
WithLocation
(9, 47),
3732
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(9, 61));
4009
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(10, 38));
4132
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(9, 23));
4291
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(10, 29),
4294
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(10, 45));
4453
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(10, 35),
4456
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(10, 45));
4616
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "static").WithArguments("static anonymous function", "9.0").
WithLocation
(10, 35),
4619
Diagnostic(ErrorCode.ERR_DuplicateModifier, "async").WithArguments("async").
WithLocation
(10, 42),
4622
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(10, 51));
Parsing\AsyncParsingTests.cs (119)
360
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 10),
363
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(5, 1));
394
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 16),
397
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(5, 1));
430
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 17));
470
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 21));
518
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 22),
521
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(5, 1));
555
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 23));
596
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 28),
599
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(5, 1));
634
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 29));
678
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(4, 16),
681
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(">").
WithLocation
(4, 16));
724
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(4, 22),
727
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(">").
WithLocation
(4, 22));
778
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(4, 29),
781
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(">").
WithLocation
(4, 29));
834
Diagnostic(ErrorCode.ERR_BadBinOpArgs, "+").WithArguments("+").
WithLocation
(4, 19),
837
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(4, 20),
840
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 20),
843
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 20));
885
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "}").WithArguments("}").
WithLocation
(5, 1));
929
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 20));
1108
Diagnostic(ErrorCode.ERR_SemicolonExpected, "async").
WithLocation
(4, 23),
1111
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(4, 28),
1114
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(4, 28));
1435
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(4, 20),
1438
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(4, 20),
1441
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 20),
1444
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 20));
1478
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(4, 24),
1481
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(4, 24),
1484
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 24),
1487
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 24));
1522
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(4, 16),
1525
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(4, 16),
1528
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 16),
1531
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 16));
1572
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "event").WithArguments("event").
WithLocation
(4, 19),
1575
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(4, 24),
1578
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(4, 24),
1581
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 24),
1584
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 24));
1632
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(4, 28),
1635
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(4, 28),
1638
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 28),
1641
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 28),
1644
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 28));
1686
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "partial").WithArguments("+").
WithLocation
(4, 11),
1689
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(4, 19),
1692
Diagnostic(ErrorCode.ERR_OvlOperatorExpected, "implicit").
WithLocation
(4, 19),
1695
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments("(").
WithLocation
(4, 28),
1698
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").
WithLocation
(4, 28),
1701
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 36),
1704
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 36),
1707
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 36));
1749
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(4, 28),
1752
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(4, 28),
1755
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 28),
1758
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 28),
1761
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 28));
1803
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "partial").WithArguments("+").
WithLocation
(4, 11),
1806
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(4, 19),
1809
Diagnostic(ErrorCode.ERR_OvlOperatorExpected, "explicit").
WithLocation
(4, 19),
1812
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments("(").
WithLocation
(4, 28),
1815
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").
WithLocation
(4, 28),
1818
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 36),
1821
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 36),
1824
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 36));
1866
Diagnostic(ErrorCode.ERR_OvlOperatorExpected, "").
WithLocation
(5, 1),
1869
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(5, 1),
1872
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(5, 1),
1875
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(5, 1),
1878
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 1));
1920
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "int").WithArguments("int").
WithLocation
(4, 19),
1923
Diagnostic(ErrorCode.ERR_OvlOperatorExpected, "").
WithLocation
(5, 1),
1926
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(5, 1),
1929
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(5, 1),
1932
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(5, 1),
1935
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 1));
1984
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 14),
1987
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 14));
2029
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("[").
WithLocation
(4, 25),
2032
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(4, 25),
2035
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(4, 25),
2038
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 25),
2041
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 25));
2082
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(1, 18),
2085
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 18));
2115
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "}").WithArguments("}").
WithLocation
(1, 19));
2148
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "int").WithArguments("int").
WithLocation
(3, 5),
2151
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(3, 8),
2154
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 8));
2194
Diagnostic(ErrorCode.ERR_BadModifierLocation, "public").WithArguments("public").
WithLocation
(3, 5),
2197
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(3, 11),
2200
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 11));
2237
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "class").WithArguments("class").
WithLocation
(3, 1),
2240
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(3, 6),
2243
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(3, 6),
2246
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 6),
2249
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 6));
2289
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(2, 12),
2292
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "namespace").WithArguments("namespace").
WithLocation
(3, 1),
2295
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(3, 10),
2298
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(3, 10),
2301
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 10));
2345
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "}").WithArguments("}").
WithLocation
(4, 1));
2397
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "async").WithArguments("async").
WithLocation
(1, 7),
2400
Diagnostic(ErrorCode.ERR_MemberNameSameAsType, "async").WithArguments("async").
WithLocation
(1, 21),
2403
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "=>").WithArguments("expression-bodied property", "6").
WithLocation
(1, 27));
2484
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "async").WithArguments("async").
WithLocation
(1, 11),
2487
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "=>").WithArguments("expression-bodied indexer", "6").
WithLocation
(1, 39),
2490
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "null").WithArguments("default interface implementation", "8.0").
WithLocation
(1, 42),
2493
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, "null").
WithLocation
(1, 42));
2600
Diagnostic(ErrorCode.ERR_CircularBase, "async").WithArguments("async", "async").
WithLocation
(1, 7),
2603
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "async").WithArguments("async").
WithLocation
(1, 7),
2606
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "async").WithArguments("async").
WithLocation
(1, 29),
2609
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "=>").WithArguments("expression-bodied property", "6").
WithLocation
(1, 41));
Parsing\AsyncStreamsParsingTests.cs (16)
189
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(6, 15),
192
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(6, 21),
195
Diagnostic(ErrorCode.ERR_BadVarDecl, "(this").
WithLocation
(6, 21),
198
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(6, 21),
201
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(6, 26),
204
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 27));
358
Diagnostic(ErrorCode.ERR_SyntaxError, "await").WithArguments("(").
WithLocation
(6, 17),
361
Diagnostic(ErrorCode.ERR_CloseParenExpected, "i").
WithLocation
(6, 28),
364
Diagnostic(ErrorCode.ERR_InExpected, "i").
WithLocation
(6, 28),
367
Diagnostic(ErrorCode.ERR_BadForeachDecl, "i").
WithLocation
(6, 28),
370
Diagnostic(ErrorCode.ERR_CloseParenExpected, "in").
WithLocation
(6, 30),
373
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "in").WithArguments("in").
WithLocation
(6, 30),
376
Diagnostic(ErrorCode.ERR_SemicolonExpected, "in").
WithLocation
(6, 30),
379
Diagnostic(ErrorCode.ERR_RbraceExpected, "in").
WithLocation
(6, 30),
382
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(6, 43),
385
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(6, 43));
Parsing\AwaitParsingTests.cs (1)
231
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(9, 21));
Parsing\CrefParsingTests.cs (16)
441
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator unchecked +").WithArguments("operator unchecked +").
WithLocation
(1, 16),
444
Diagnostic(ErrorCode.ERR_MisplacedUnchecked, "unchecked").
WithLocation
(1, 25));
509
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator unchecked +(A)").WithArguments("operator unchecked +(A)").
WithLocation
(1, 16),
512
Diagnostic(ErrorCode.ERR_MisplacedUnchecked, "unchecked").
WithLocation
(1, 25));
585
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "T.operator unchecked +").WithArguments("T.operator unchecked +").
WithLocation
(1, 16),
588
Diagnostic(ErrorCode.ERR_MisplacedUnchecked, "unchecked").
WithLocation
(1, 27)
770
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "operator unchecked }}(A{A{T}})").WithArguments("operator unchecked }}(A{A{T}})").
WithLocation
(1, 16),
773
Diagnostic(ErrorCode.ERR_MisplacedUnchecked, "unchecked").
WithLocation
(1, 25)
905
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "implicit operator unchecked A").WithArguments("implicit operator unchecked A").
WithLocation
(1, 16),
908
Diagnostic(ErrorCode.ERR_MisplacedUnchecked, "unchecked").
WithLocation
(1, 34)
986
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "explicit operator unchecked A(B)").WithArguments("explicit operator unchecked A(B)").
WithLocation
(1, 16),
989
Diagnostic(ErrorCode.ERR_MisplacedUnchecked, "unchecked").
WithLocation
(1, 34)
1074
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "T.implicit operator unchecked A").WithArguments("T.implicit operator unchecked A").
WithLocation
(1, 16),
1077
Diagnostic(ErrorCode.ERR_MisplacedUnchecked, "unchecked").
WithLocation
(1, 36)
1178
Diagnostic(ErrorCode.WRN_BadXMLRefSyntax, "T.explicit operator unchecked A(B)").WithArguments("T.explicit operator unchecked A(B)").
WithLocation
(1, 16),
1181
Diagnostic(ErrorCode.ERR_MisplacedUnchecked, "unchecked").
WithLocation
(1, 36)
Parsing\CSharpParseOptionsTests.cs (14)
102
Diagnostic(ErrorCode.ERR_BadSourceCodeKind).WithArguments("Interactive").
WithLocation
(1, 1));
110
Diagnostic(ErrorCode.ERR_BadSourceCodeKind).WithArguments("-2147483648").
WithLocation
(1, 1));
156
Diagnostic(ErrorCode.ERR_BadSourceCodeKind).WithArguments("Interactive").
WithLocation
(1, 1));
166
Diagnostic(ErrorCode.ERR_BadDocumentationMode).WithArguments("100").
WithLocation
(1, 1));
176
Diagnostic(ErrorCode.ERR_BadLanguageVersion).WithArguments("10000").
WithLocation
(1, 1));
186
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol).WithArguments("1").
WithLocation
(1, 1));
198
Diagnostic(ErrorCode.ERR_BadSourceCodeKind).WithArguments("Interactive").
WithLocation
(1, 1));
208
Diagnostic(ErrorCode.ERR_BadDocumentationMode).WithArguments("100").
WithLocation
(1, 1));
218
Diagnostic(ErrorCode.ERR_BadLanguageVersion).WithArguments("10000").
WithLocation
(1, 1));
228
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol).WithArguments("").
WithLocation
(1, 1));
238
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol).WithArguments(" ").
WithLocation
(1, 1));
248
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol).WithArguments("Bad.Symbol").
WithLocation
(1, 1));
258
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol).WithArguments("Bad\\Symbol").
WithLocation
(1, 1));
268
Diagnostic(ErrorCode.ERR_InvalidPreprocessingSymbol).WithArguments("null").
WithLocation
(1, 1));
Parsing\DeclarationExpressionTests.cs (4)
143
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(":").
WithLocation
(1, 16),
146
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(1, 16)
805
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(1, 12)
863
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(1, 14)
Parsing\DeclarationParsingTests.cs (164)
1185
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "a").WithArguments("a").
WithLocation
(1, 7),
1188
Diagnostic(ErrorCode.ERR_ConstraintOnlyAllowedOnGenericDecl, "where").
WithLocation
(1, 9));
1199
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "a").WithArguments("a").
WithLocation
(1, 7),
1202
Diagnostic(ErrorCode.ERR_ConstraintOnlyAllowedOnGenericDecl, "where").
WithLocation
(1, 20));
5669
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "A::B").
WithLocation
(1, 11));
5679
Diagnostic(ErrorCode.ERR_UnexpectedGenericName, "A<B>").
WithLocation
(1, 11));
5689
Diagnostic(ErrorCode.ERR_UnexpectedGenericName, "A<,>").
WithLocation
(1, 11));
5734
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "partial").WithArguments("partial").
WithLocation
(5, 13),
5737
Diagnostic(ErrorCode.ERR_SemicolonExpected, "partial").
WithLocation
(5, 13),
5740
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "partial").WithArguments("partial").
WithLocation
(6, 13),
5743
Diagnostic(ErrorCode.ERR_SemicolonExpected, "partial").
WithLocation
(6, 13),
5746
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "").WithArguments("PartialPartial", "").
WithLocation
(6, 13),
5749
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(5, 5),
5752
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(6, 5));
5762
Diagnostic(ErrorCode.ERR_PartialMisplaced, "E").
WithLocation
(1, 14));
5801
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(5, 28));
5915
Diagnostic(ErrorCode.ERR_ParamsLast, "params int[] i").
WithLocation
(4, 11));
5919
Diagnostic(ErrorCode.ERR_VarargsLast, "__arglist").
WithLocation
(4, 11));
6125
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, ".").
WithLocation
(5, 27),
6128
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "}").WithArguments("}").
WithLocation
(7, 1));
6201
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, ".").
WithLocation
(5, 27));
6268
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(4, 31),
6271
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 31),
6274
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 31),
6277
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 31));
6623
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(2, 19),
6626
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(2, 19));
6669
Diagnostic(ErrorCode.ERR_SyntaxError, "T").WithArguments(",").
WithLocation
(2, 20),
6672
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(2, 21),
6675
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(2, 21));
6726
Diagnostic(ErrorCode.ERR_TypeExpected, "where").
WithLocation
(2, 14),
6729
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(2, 23),
6732
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(2, 23),
6735
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(2, 23));
6794
Diagnostic(ErrorCode.ERR_TypeExpected, "where").
WithLocation
(2, 14),
6797
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(2, 25),
6800
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(2, 25));
6867
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("ref").
WithLocation
(6, 13));
6886
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("abstract").
WithLocation
(6, 22),
6889
Diagnostic(ErrorCode.ERR_BadMemberFlag, "get").WithArguments("ref").
WithLocation
(6, 22));
6908
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("ref").
WithLocation
(6, 13));
6927
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("abstract").
WithLocation
(6, 22),
6930
Diagnostic(ErrorCode.ERR_BadMemberFlag, "set").WithArguments("ref").
WithLocation
(6, 22));
6950
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "ref").
WithLocation
(6, 9),
6953
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "ref").
WithLocation
(7, 9));
6973
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "abstract").
WithLocation
(6, 9),
6976
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "abstract").
WithLocation
(7, 9));
7117
Diagnostic(ErrorCode.ERR_UnexpectedToken, "?").WithArguments("?").
WithLocation
(2, 28)
7209
Diagnostic(ErrorCode.ERR_UnexpectedToken, "?").WithArguments("?").
WithLocation
(2, 28)
7255
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19));
7290
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19));
7328
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(2, 29));
7365
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19));
7408
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19));
7451
Diagnostic(ErrorCode.ERR_SyntaxError, "!").WithArguments(",").
WithLocation
(1, 17));
7483
Diagnostic(ErrorCode.ERR_SyntaxError, "!").WithArguments(",").
WithLocation
(1, 17));
7515
Diagnostic(ErrorCode.ERR_SyntaxError, "!").WithArguments(",").
WithLocation
(1, 17));
7547
Diagnostic(ErrorCode.ERR_SyntaxError, "!").WithArguments(",").
WithLocation
(1, 17));
7579
Diagnostic(ErrorCode.ERR_SyntaxError, "[").WithArguments(",").
WithLocation
(1, 17),
7582
Diagnostic(ErrorCode.ERR_IdentifierExpected, "]").
WithLocation
(1, 18),
7585
Diagnostic(ErrorCode.ERR_TypeExpected, "!").
WithLocation
(1, 19),
7588
Diagnostic(ErrorCode.ERR_IdentifierExpected, "!").
WithLocation
(1, 19),
7591
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19));
7652
Diagnostic(ErrorCode.ERR_SyntaxError, "[").WithArguments(",").
WithLocation
(1, 17),
7655
Diagnostic(ErrorCode.ERR_IdentifierExpected, "]").
WithLocation
(1, 18),
7658
Diagnostic(ErrorCode.ERR_TypeExpected, ")").
WithLocation
(1, 19),
7661
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(1, 19));
7714
Diagnostic(ErrorCode.ERR_SyntaxError, "=").WithArguments(",").
WithLocation
(1, 18));
7746
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 20));
7789
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19));
7832
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19));
7875
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19));
7918
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19));
7962
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 20));
8005
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19));
8049
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 20));
8093
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19));
8136
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 19),
8139
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(1, 23));
8196
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(4, 27));
8247
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(4, 22));
8297
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(4, 39));
8367
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(2, 24),
8370
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "Del d = delegate(int k!!) { /* ... */ };").
WithLocation
(3, 1),
8373
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(3, 23));
8457
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(">").
WithLocation
(2, 16));
8501
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(1, 13));
8550
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(">").
WithLocation
(2, 22));
8627
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(2, 11),
8630
Diagnostic(ErrorCode.ERR_LbraceExpected, ":").
WithLocation
(2, 13),
8633
Diagnostic(ErrorCode.ERR_RbraceExpected, ":").
WithLocation
(2, 13),
8636
Diagnostic(ErrorCode.ERR_EOFExpected, ":").
WithLocation
(2, 13),
8641
").
WithLocation
(2, 15),
8646
").WithArguments("top-level statements", "9.0").
WithLocation
(2, 15),
8649
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C").WithArguments("C").
WithLocation
(2, 15),
8652
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(2, 16),
8655
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(",").
WithLocation
(2, 16),
8658
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(3, 2),
8661
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(4, 1));
8666
Diagnostic(ErrorCode.ERR_LbraceExpected, ":").
WithLocation
(2, 13),
8669
Diagnostic(ErrorCode.ERR_RbraceExpected, ":").
WithLocation
(2, 13),
8672
Diagnostic(ErrorCode.ERR_EOFExpected, ":").
WithLocation
(2, 13),
8677
").
WithLocation
(2, 15),
8680
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(2, 16),
8683
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(",").
WithLocation
(2, 16),
8686
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(3, 2),
8689
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(4, 1));
8744
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(2, 22));
8791
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(1, 13));
8839
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(2, 22));
8888
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(1, 22),
8891
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(1, 22)
8897
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(1, 22)
9016
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(2, 23),
9019
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(2, 23),
9022
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(2, 23),
9025
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "default").WithArguments("default type parameter constraints", "9.0").
WithLocation
(3, 15),
9028
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(3, 15),
9031
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(3, 24) }
9035
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(2, 23),
9038
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "default").
WithLocation
(2, 23),
9041
Diagnostic(ErrorCode.ERR_DefaultConstraintOverrideOnly, "default").
WithLocation
(3, 15),
9044
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(3, 24) });
9193
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(2, 12),
9196
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(2, 12)
9406
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(3, 2),
9409
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 2)
9436
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(3, 5),
9439
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 5)
9533
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(3, 3)
9571
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, ";").
WithLocation
(3, 1)
9945
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(3, 3)
9985
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(3, 2)
10016
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(3, 8)
10055
Diagnostic(ErrorCode.ERR_TypeExpected, ";").
WithLocation
(3, 9),
10058
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(3, 9),
10061
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(3, 9)
10110
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(3, 2)
10153
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(3, 7)
10204
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(3, 8),
10207
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(3, 8),
10210
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(3, 8)
10270
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(3, 2)
10324
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(3, 5)
10386
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(3, 6),
10389
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(3, 6),
10392
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(3, 6)
10506
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(3, 2),
10509
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(">").
WithLocation
(3, 2)
10558
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(">").
WithLocation
(3, 3)
10607
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(3, 4),
10610
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(">").
WithLocation
(3, 4)
10663
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(2, @struct ? 7 : 6)
10784
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(",").
WithLocation
(3, 3),
10787
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(3, 4),
10790
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(",").
WithLocation
(3, 5)
10900
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(3, 8)
10942
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(3, 9)
10991
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(3, 10),
10994
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(3, 10)
11051
Diagnostic(ErrorCode.ERR_CloseParenExpected, "where").
WithLocation
(3, 9)
11106
Diagnostic(ErrorCode.ERR_CloseParenExpected, "where").
WithLocation
(3, 10)
11168
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "where").WithArguments("where").
WithLocation
(3, 11),
11171
Diagnostic(ErrorCode.ERR_CloseParenExpected, "where").
WithLocation
(3, 11)
Parsing\DeclarationScopeParsingTests.cs (424)
145
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(1, 19),
148
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(1, 19),
151
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(1, 36),
154
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(1, 36),
157
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(1, 54),
160
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(1, 54)
279
Diagnostic(ErrorCode.ERR_SyntaxError, "F").WithArguments(",").
WithLocation
(1, 14)
501
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(1, 22)
550
Diagnostic(ErrorCode.ERR_SyntaxError, "R").WithArguments(",").
WithLocation
(1, 26)
601
Diagnostic(ErrorCode.ERR_SyntaxError, "z").WithArguments(",").
WithLocation
(1, 57),
604
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(1, 58)
749
Diagnostic(ErrorCode.ERR_IdentifierExpected, "readonly").
WithLocation
(1, 15),
752
Diagnostic(ErrorCode.ERR_SyntaxError, "readonly").WithArguments(",").
WithLocation
(1, 15)
803
Diagnostic(ErrorCode.ERR_TypeExpected, "readonly").
WithLocation
(1, 19),
806
Diagnostic(ErrorCode.ERR_IdentifierExpected, "readonly").
WithLocation
(1, 19),
809
Diagnostic(ErrorCode.ERR_SyntaxError, "readonly").WithArguments(",").
WithLocation
(1, 19)
862
Diagnostic(ErrorCode.ERR_IdentifierExpected, "ref").
WithLocation
(1, 19),
865
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(1, 19)
1025
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(ref scoped ").WithArguments("int").
WithLocation
(1, 1),
1028
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(1, 2),
1031
Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").
WithLocation
(1, 13)
1059
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(").WithArguments("in").
WithLocation
(1, 1),
1062
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "in").WithArguments("in").
WithLocation
(1, 2),
1065
Diagnostic(ErrorCode.ERR_CloseParenExpected, "in").
WithLocation
(1, 2)
1089
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(").WithArguments("out").
WithLocation
(1, 1),
1092
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(1, 2),
1095
Diagnostic(ErrorCode.ERR_CloseParenExpected, "out").
WithLocation
(1, 2)
1161
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(scoped ").WithArguments("scoped").
WithLocation
(1, 1),
1164
Diagnostic(ErrorCode.ERR_CloseParenExpected, "scoped").
WithLocation
(1, 9)
1186
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(ref scoped ").WithArguments("scoped").
WithLocation
(1, 1),
1189
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(1, 2),
1192
Diagnostic(ErrorCode.ERR_CloseParenExpected, "scoped").
WithLocation
(1, 13)
1314
Diagnostic(ErrorCode.ERR_IdentifierExpected, "params").
WithLocation
(1, 15),
1317
Diagnostic(ErrorCode.ERR_SyntaxError, "params").WithArguments(",").
WithLocation
(1, 15)
1431
Diagnostic(ErrorCode.ERR_SemicolonExpected, "c2").
WithLocation
(8, 31)
1752
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(5, 20),
1755
Diagnostic(ErrorCode.ERR_SemicolonExpected, "int").
WithLocation
(5, 20),
1758
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(6, 29),
1761
Diagnostic(ErrorCode.ERR_SemicolonExpected, "int").
WithLocation
(6, 29)
1943
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "scoped").
WithLocation
(2, 5)
2038
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 23),
2041
Diagnostic(ErrorCode.ERR_SyntaxError, "c").WithArguments(",").
WithLocation
(3, 30)
2572
Diagnostic(ErrorCode.ERR_SyntaxError, "d").WithArguments(",").
WithLocation
(2, 19),
2575
Diagnostic(ErrorCode.ERR_SyntaxError, "e").WithArguments(",").
WithLocation
(3, 28)
2707
Diagnostic(ErrorCode.ERR_SyntaxError, "c").WithArguments(",").
WithLocation
(2, 16)
2795
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 25),
2798
Diagnostic(ErrorCode.ERR_SyntaxError, "c").WithArguments(",").
WithLocation
(3, 32)
2925
Diagnostic(ErrorCode.ERR_BadModifierLocation, "readonly").WithArguments("readonly").
WithLocation
(1, 12),
2928
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(1, 12));
2977
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(1, 15),
2980
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 19));
3046
Diagnostic(ErrorCode.ERR_SemicolonExpected, "extern").
WithLocation
(5, 16),
3049
Diagnostic(ErrorCode.ERR_BadMemberFlag, "extern").WithArguments("extern").
WithLocation
(5, 16)
3123
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(1, 17),
3126
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(2, 15)
3193
Diagnostic(ErrorCode.ERR_SemicolonExpected, "extern").
WithLocation
(5, 23),
3196
Diagnostic(ErrorCode.ERR_BadMemberFlag, "extern").WithArguments("extern").
WithLocation
(5, 23)
3284
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "scoped record A;").WithArguments("top-level statements", "9.0").
WithLocation
(2, 1),
3287
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(2, 1),
3290
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(2, 8),
3293
Diagnostic(ErrorCode.WRN_UnreferencedVar, "A").WithArguments("A").
WithLocation
(2, 15));
3300
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "scoped").WithArguments("ref fields", "11.0").
WithLocation
(2, 1),
3303
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(2, 8),
3306
Diagnostic(ErrorCode.WRN_UnreferencedVar, "A").WithArguments("A").
WithLocation
(2, 15));
3313
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(2, 8),
3316
Diagnostic(ErrorCode.WRN_UnreferencedVar, "A").WithArguments("A").
WithLocation
(2, 15));
3395
Diagnostic(ErrorCode.ERR_SyntaxError, "=").WithArguments("(").
WithLocation
(2, 16),
3398
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=").
WithLocation
(2, 16),
3401
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(2, 19),
3404
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(2, 19)
3451
Diagnostic(ErrorCode.ERR_SyntaxError, "=").WithArguments("(").
WithLocation
(2, 25),
3454
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=").
WithLocation
(2, 25),
3457
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(2, 28),
3460
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(2, 28)
3648
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(2, 2),
3651
Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").
WithLocation
(2, 13),
3654
Diagnostic(ErrorCode.ERR_SemicolonExpected, "int").
WithLocation
(2, 13),
3657
Diagnostic(ErrorCode.ERR_MultiTypeInDeclaration, "var").
WithLocation
(2, 20),
3660
Diagnostic(ErrorCode.ERR_SyntaxError, "c").WithArguments(",").
WithLocation
(2, 24),
3663
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 25),
3666
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 25),
3669
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(2, 27)
3753
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(2, 2),
3756
Diagnostic(ErrorCode.ERR_CloseParenExpected, "a").
WithLocation
(2, 13),
3759
Diagnostic(ErrorCode.ERR_SemicolonExpected, "a").
WithLocation
(2, 13),
3762
Diagnostic(ErrorCode.ERR_MultiTypeInDeclaration, "var").
WithLocation
(2, 18),
3765
Diagnostic(ErrorCode.ERR_SyntaxError, "c").WithArguments(",").
WithLocation
(2, 22),
3768
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 23),
3771
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 23),
3774
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(2, 25)
3930
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref ").WithArguments("ref").
WithLocation
(2, 2),
3933
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(2, 6),
3936
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(2, 6),
3939
Diagnostic(ErrorCode.ERR_SemicolonExpected, "readonly").
WithLocation
(2, 6),
3942
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(2, 6),
3945
Diagnostic(ErrorCode.ERR_MultiTypeInDeclaration, "var").
WithLocation
(2, 29),
3948
Diagnostic(ErrorCode.ERR_SyntaxError, "d").WithArguments(",").
WithLocation
(2, 33),
3951
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 34),
3954
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 34),
3957
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(2, 36)
4046
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(2, 2),
4049
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(2, 13),
4052
Diagnostic(ErrorCode.ERR_SemicolonExpected, "readonly").
WithLocation
(2, 13),
4055
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(2, 13),
4058
Diagnostic(ErrorCode.ERR_MultiTypeInDeclaration, "var").
WithLocation
(2, 29),
4061
Diagnostic(ErrorCode.ERR_SyntaxError, "d").WithArguments(",").
WithLocation
(2, 33),
4064
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 34),
4067
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 34),
4070
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(2, 36)
4226
Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").
WithLocation
(2, 10),
4229
Diagnostic(ErrorCode.ERR_SemicolonExpected, "int").
WithLocation
(2, 10),
4232
Diagnostic(ErrorCode.ERR_MultiTypeInDeclaration, "var").
WithLocation
(2, 17),
4235
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 21),
4238
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 22),
4241
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 22),
4244
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(2, 24)
4399
Diagnostic(ErrorCode.ERR_CloseParenExpected, "ref").
WithLocation
(2, 10),
4402
Diagnostic(ErrorCode.ERR_SemicolonExpected, "ref").
WithLocation
(2, 10),
4405
Diagnostic(ErrorCode.ERR_MultiTypeInDeclaration, "var").
WithLocation
(2, 21),
4408
Diagnostic(ErrorCode.ERR_SyntaxError, "c").WithArguments(",").
WithLocation
(2, 25),
4411
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 26),
4414
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 26),
4417
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(2, 28)
4577
Diagnostic(ErrorCode.ERR_CloseParenExpected, "ref").
WithLocation
(2, 10),
4580
Diagnostic(ErrorCode.ERR_SemicolonExpected, "ref").
WithLocation
(2, 10),
4583
Diagnostic(ErrorCode.ERR_MultiTypeInDeclaration, "var").
WithLocation
(2, 30),
4586
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 34),
4589
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 35),
4592
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 35),
4595
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(2, 37)
5408
Diagnostic(ErrorCode.ERR_CloseParenExpected, "scoped").
WithLocation
(2, 9),
5411
Diagnostic(ErrorCode.ERR_SemicolonExpected, "scoped").
WithLocation
(2, 9),
5414
Diagnostic(ErrorCode.ERR_MultiTypeInDeclaration, "var").
WithLocation
(2, 23),
5417
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 27),
5420
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 28),
5423
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 28),
5426
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(2, 30)
5510
Diagnostic(ErrorCode.ERR_CloseParenExpected, "scoped").
WithLocation
(2, 9),
5513
Diagnostic(ErrorCode.ERR_SemicolonExpected, "scoped").
WithLocation
(2, 9),
5516
Diagnostic(ErrorCode.ERR_MultiTypeInDeclaration, "var").
WithLocation
(2, 23),
5519
Diagnostic(ErrorCode.ERR_SyntaxError, "c").WithArguments(",").
WithLocation
(2, 27),
5522
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 28),
5525
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 28),
5528
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(2, 30)
5612
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(2, 14),
5615
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(2, 17),
5618
Diagnostic(ErrorCode.ERR_SemicolonExpected, "=").
WithLocation
(2, 19),
5621
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(2, 19)
5696
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "var").
WithLocation
(2, 12)
5765
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "var").
WithLocation
(2, 21)
6064
Diagnostic(ErrorCode.ERR_CloseParenExpected, "var").
WithLocation
(2, 16),
6067
Diagnostic(ErrorCode.ERR_SemicolonExpected, "var").
WithLocation
(2, 16),
6070
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 26),
6073
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 26),
6076
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(2, 28)
6293
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(2, 7),
6296
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(2, 18),
6299
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 18),
6302
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 22)
6371
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 20)
6496
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref ").WithArguments("ref").
WithLocation
(2, 7),
6499
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(2, 11),
6502
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(2, 11),
6505
Diagnostic(ErrorCode.ERR_SemicolonExpected, "readonly").
WithLocation
(2, 11),
6508
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(2, 11),
6511
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 32),
6514
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 32)
6597
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(2, 7),
6600
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(2, 18),
6603
Diagnostic(ErrorCode.ERR_SemicolonExpected, "readonly").
WithLocation
(2, 18),
6606
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(2, 18),
6609
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 32),
6612
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 32)
6747
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(2, 15),
6750
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 15),
6753
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(2, 19)
6878
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(2, 15),
6881
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 19),
6884
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 23)
7011
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(2, 15),
7014
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(2, 19),
7017
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(2, 19),
7020
Diagnostic(ErrorCode.ERR_SemicolonExpected, "readonly").
WithLocation
(2, 19),
7023
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(2, 19),
7026
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 33),
7029
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 33)
7691
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(2, 21),
7694
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 21),
7697
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(2, 25)
7769
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 25)
7837
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(2, 7),
7840
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(2, 7)
7909
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(2, 10),
7912
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 10),
7915
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(2, 14)
7979
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(2, 10),
7982
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 14),
7985
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(2, 18)
8050
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(2, 7),
8053
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(2, 7)
8122
Diagnostic(ErrorCode.ERR_SyntaxError, "S").WithArguments(",").
WithLocation
(2, 10),
8125
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(2, 12)
8189
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(2, 10),
8192
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(2, 16)
8405
Diagnostic(ErrorCode.ERR_BadNewExpr, "int").
WithLocation
(2, 12),
8408
Diagnostic(ErrorCode.ERR_SemicolonExpected, "int").
WithLocation
(2, 12),
8411
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 12)
8507
Diagnostic(ErrorCode.ERR_BadNewExpr, "int").
WithLocation
(2, 12),
8510
Diagnostic(ErrorCode.ERR_SemicolonExpected, "int").
WithLocation
(2, 12)
8570
Diagnostic(ErrorCode.ERR_BadNewExpr, "ref").
WithLocation
(2, 12),
8573
Diagnostic(ErrorCode.ERR_SemicolonExpected, "ref").
WithLocation
(2, 12)
8752
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(2, 17),
8755
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(2, 17)
8800
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 19)
8887
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(2, 26),
8890
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(2, 26)
8936
Diagnostic(ErrorCode.ERR_IdentifierExpected, "readonly").
WithLocation
(2, 17),
8939
Diagnostic(ErrorCode.ERR_SyntaxError, "readonly").WithArguments(",").
WithLocation
(2, 17)
9025
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(2, 14),
9028
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 14),
9031
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(2, 18)
9120
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(2, 14),
9123
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref int").WithArguments("ref").
WithLocation
(2, 14),
9126
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 18),
9129
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 22)
9223
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(2, 14),
9226
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref ").WithArguments("ref").
WithLocation
(2, 14),
9229
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(2, 18),
9232
Diagnostic(ErrorCode.ERR_SyntaxError, "readonly").WithArguments(",").
WithLocation
(2, 18),
9235
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(2, 27),
9238
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 27),
9241
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(2, 31)
9772
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(2, 20)
9813
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 24)
9903
Diagnostic(ErrorCode.ERR_SyntaxError, "R").WithArguments(",").
WithLocation
(1, 32)
10049
Diagnostic(ErrorCode.ERR_UnexpectedToken, "foreach (ref scoped int b ").WithArguments("in").
WithLocation
(2, 1),
10052
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(2, 10),
10055
Diagnostic(ErrorCode.ERR_InExpected, "int").
WithLocation
(2, 21),
10058
Diagnostic(ErrorCode.ERR_BadForeachDecl, "int").
WithLocation
(2, 21),
10061
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 21),
10064
Diagnostic(ErrorCode.ERR_CloseParenExpected, "b").
WithLocation
(2, 25),
10067
Diagnostic(ErrorCode.ERR_SemicolonExpected, "in").
WithLocation
(2, 27)
10151
Diagnostic(ErrorCode.ERR_UnexpectedToken, "foreach (ref readonly scoped int c in collection").WithArguments(")").
WithLocation
(2, 1),
10154
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref ").WithArguments("ref").
WithLocation
(2, 10),
10157
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(2, 14),
10160
Diagnostic(ErrorCode.ERR_InExpected, "readonly").
WithLocation
(2, 14),
10163
Diagnostic(ErrorCode.ERR_BadForeachDecl, "readonly").
WithLocation
(2, 14),
10166
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(2, 14),
10169
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(2, 14),
10172
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(2, 14),
10175
Diagnostic(ErrorCode.ERR_SyntaxError, "in").WithArguments(",").
WithLocation
(2, 36),
10178
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 49)
10235
Diagnostic(ErrorCode.ERR_UnexpectedToken, "foreach (ref scoped readonly int c in collection").WithArguments(")").
WithLocation
(2, 1),
10238
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(2, 10),
10241
Diagnostic(ErrorCode.ERR_InExpected, "readonly").
WithLocation
(2, 21),
10244
Diagnostic(ErrorCode.ERR_BadForeachDecl, "readonly").
WithLocation
(2, 21),
10247
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(2, 21),
10250
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(2, 21),
10253
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(2, 21),
10256
Diagnostic(ErrorCode.ERR_SyntaxError, "in").WithArguments(",").
WithLocation
(2, 36),
10259
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 49)
10350
Diagnostic(ErrorCode.ERR_UnexpectedToken, "foreach (@scoped int a ").WithArguments("in").
WithLocation
(2, 1),
10353
Diagnostic(ErrorCode.ERR_InExpected, "int").
WithLocation
(2, 18),
10356
Diagnostic(ErrorCode.ERR_BadForeachDecl, "int").
WithLocation
(2, 18),
10359
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 18),
10362
Diagnostic(ErrorCode.ERR_CloseParenExpected, "a").
WithLocation
(2, 22),
10365
Diagnostic(ErrorCode.ERR_SemicolonExpected, "in").
WithLocation
(2, 24)
10448
Diagnostic(ErrorCode.ERR_UnexpectedToken, "foreach (@scoped ref int b ").WithArguments("in").
WithLocation
(2, 1),
10451
Diagnostic(ErrorCode.ERR_InExpected, "ref").
WithLocation
(2, 18),
10454
Diagnostic(ErrorCode.ERR_BadForeachDecl, "ref").
WithLocation
(2, 18),
10457
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref int").WithArguments("ref").
WithLocation
(2, 18),
10460
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 22),
10463
Diagnostic(ErrorCode.ERR_CloseParenExpected, "b").
WithLocation
(2, 26),
10466
Diagnostic(ErrorCode.ERR_SemicolonExpected, "in").
WithLocation
(2, 28)
10554
Diagnostic(ErrorCode.ERR_UnexpectedToken, "foreach (@scoped ref readonly int a in collection").WithArguments(")").
WithLocation
(2, 1),
10557
Diagnostic(ErrorCode.ERR_InExpected, "ref").
WithLocation
(2, 18),
10560
Diagnostic(ErrorCode.ERR_BadForeachDecl, "ref").
WithLocation
(2, 18),
10563
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref ").WithArguments("ref").
WithLocation
(2, 18),
10566
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(2, 22),
10569
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(2, 22),
10572
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(2, 22),
10575
Diagnostic(ErrorCode.ERR_SyntaxError, "in").WithArguments(",").
WithLocation
(2, 37),
10578
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 50)
11029
Diagnostic(ErrorCode.ERR_UnexpectedToken, "foreach (scoped scoped int a ").WithArguments("in").
WithLocation
(2, 1),
11032
Diagnostic(ErrorCode.ERR_InExpected, "int").
WithLocation
(2, 24),
11035
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 24),
11038
Diagnostic(ErrorCode.ERR_CloseParenExpected, "a").
WithLocation
(2, 28),
11041
Diagnostic(ErrorCode.ERR_SemicolonExpected, "in").
WithLocation
(2, 30)
11083
Diagnostic(ErrorCode.ERR_UnexpectedToken, "foreach (scoped scoped var b ").WithArguments("in").
WithLocation
(2, 1),
11086
Diagnostic(ErrorCode.ERR_InExpected, "b").
WithLocation
(2, 28),
11089
Diagnostic(ErrorCode.ERR_CloseParenExpected, "in").
WithLocation
(2, 30),
11092
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "in").WithArguments("in").
WithLocation
(2, 30),
11095
Diagnostic(ErrorCode.ERR_SemicolonExpected, "in").
WithLocation
(2, 30)
11141
Diagnostic(ErrorCode.ERR_UnexpectedToken, "foreach (scoped var (b, c) ").WithArguments("in").
WithLocation
(2, 1),
11144
Diagnostic(ErrorCode.ERR_InExpected, "(").
WithLocation
(2, 21),
11147
Diagnostic(ErrorCode.ERR_CloseParenExpected, "in").
WithLocation
(2, 28),
11150
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "in").WithArguments("in").
WithLocation
(2, 28),
11153
Diagnostic(ErrorCode.ERR_SemicolonExpected, "in").
WithLocation
(2, 28)
11211
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 18),
11214
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(2, 22),
11217
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 25),
11220
Diagnostic(ErrorCode.ERR_SyntaxError, "c").WithArguments(",").
WithLocation
(2, 29),
11223
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(2, 32)
11353
Diagnostic(ErrorCode.ERR_UnexpectedToken, "foreach (scoped ref int[M(out var b)] a ").WithArguments("in").
WithLocation
(2, 1),
11356
Diagnostic(ErrorCode.ERR_InExpected, "ref").
WithLocation
(2, 17),
11359
Diagnostic(ErrorCode.ERR_BadForeachDecl, "ref").
WithLocation
(2, 17),
11362
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref int[M(out var b)]").WithArguments("ref").
WithLocation
(2, 17),
11365
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(2, 21),
11368
Diagnostic(ErrorCode.ERR_CloseParenExpected, "a").
WithLocation
(2, 39),
11371
Diagnostic(ErrorCode.ERR_SemicolonExpected, "in").
WithLocation
(2, 41)
11454
Diagnostic(ErrorCode.ERR_IdentifierExpected, "struct").
WithLocation
(1, 8),
11457
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 8),
11460
Diagnostic(ErrorCode.ERR_TypeExpected, "struct").
WithLocation
(2, 12)
11525
Diagnostic(ErrorCode.ERR_BadModifierLocation, "readonly").WithArguments("readonly").
WithLocation
(2, 8),
11528
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "readonly scoped record ").
WithLocation
(3, 1),
11531
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(3, 1),
11534
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(3, 24)
11612
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(1, 17),
11615
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments("(").
WithLocation
(1, 17),
11618
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(",").
WithLocation
(1, 22),
11621
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(1, 23),
11624
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 24),
11627
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 24));
11727
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(1, 21),
11730
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments("(").
WithLocation
(1, 21),
11733
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(",").
WithLocation
(1, 26),
11736
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(1, 27),
11739
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 28),
11742
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 28)
11852
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "scoped").
WithLocation
(1, 5),
11855
Diagnostic(ErrorCode.ERR_TypeExpected, "struct").
WithLocation
(2, 19)
12176
Diagnostic(ErrorCode.ERR_SemicolonExpected, "r2").
WithLocation
(2, 20)
12233
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(2, 23)
12363
Diagnostic(ErrorCode.ERR_SemicolonExpected, "r2").
WithLocation
(2, 26)
12597
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(2, 8),
12600
Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").
WithLocation
(2, 19),
12603
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 24),
12606
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 24)
12667
Diagnostic(ErrorCode.ERR_CloseParenExpected, "b").
WithLocation
(2, 21),
12670
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 22),
12673
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 22)
12781
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref ").WithArguments("ref").
WithLocation
(2, 8),
12784
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(2, 12),
12787
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(2, 12),
12790
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(2, 12),
12793
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 33),
12796
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 33)
12862
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref scoped").WithArguments("ref").
WithLocation
(2, 8),
12865
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(2, 19),
12868
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(2, 19),
12871
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 33),
12874
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 33)
12982
Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").
WithLocation
(2, 16),
12985
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 21),
12988
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 21)
13095
Diagnostic(ErrorCode.ERR_CloseParenExpected, "ref").
WithLocation
(2, 16),
13098
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 25),
13101
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 25)
13213
Diagnostic(ErrorCode.ERR_CloseParenExpected, "ref").
WithLocation
(2, 16),
13216
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 34),
13219
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 34)
13813
Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").
WithLocation
(2, 22),
13816
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 27),
13819
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 27)
13883
Diagnostic(ErrorCode.ERR_CloseParenExpected, "b").
WithLocation
(2, 26),
13886
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 27),
13889
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 27)
14005
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(4, 18),
14008
Diagnostic(ErrorCode.ERR_ConstValueRequired, "int").
WithLocation
(4, 18),
14011
Diagnostic(ErrorCode.ERR_SemicolonExpected, "int").
WithLocation
(4, 18)
14075
Diagnostic(ErrorCode.ERR_IdentifierExpected, "ref").
WithLocation
(4, 18),
14078
Diagnostic(ErrorCode.ERR_ConstValueRequired, "ref").
WithLocation
(4, 18),
14081
Diagnostic(ErrorCode.ERR_SemicolonExpected, "ref").
WithLocation
(4, 18)
14149
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(4, 18),
14152
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments("[").
WithLocation
(4, 18),
14155
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(4, 18),
14158
Diagnostic(ErrorCode.ERR_SyntaxError, "F3").WithArguments(",").
WithLocation
(4, 22),
14161
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(4, 27),
14164
Diagnostic(ErrorCode.ERR_ValueExpected, "").
WithLocation
(4, 27),
14167
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("]").
WithLocation
(4, 27)
14259
Diagnostic(ErrorCode.ERR_IdentifierExpected, "ref").
WithLocation
(4, 18),
14262
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments("[").
WithLocation
(4, 18),
14265
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref int").WithArguments("ref").
WithLocation
(4, 18),
14268
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(4, 22),
14271
Diagnostic(ErrorCode.ERR_SyntaxError, "F3").WithArguments(",").
WithLocation
(4, 26),
14274
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(4, 31),
14277
Diagnostic(ErrorCode.ERR_ValueExpected, "").
WithLocation
(4, 31),
14280
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("]").
WithLocation
(4, 31)
14376
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "const").WithArguments("const").
WithLocation
(4, 12),
14379
Diagnostic(ErrorCode.ERR_ConstValueRequired, "F3").
WithLocation
(4, 22)
14435
Diagnostic(ErrorCode.ERR_TypeExpected, "const").
WithLocation
(4, 16),
14438
Diagnostic(ErrorCode.ERR_ConstValueRequired, "F3").
WithLocation
(4, 26)
14499
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "fixed").WithArguments("fixed").
WithLocation
(4, 12)
14567
Diagnostic(ErrorCode.ERR_TypeExpected, "fixed").
WithLocation
(4, 16)
14689
Diagnostic(ErrorCode.ERR_BadModifierLocation, "private").WithArguments("private").
WithLocation
(4, 12),
14692
Diagnostic(ErrorCode.ERR_BadModifierLocation, "private").WithArguments("private").
WithLocation
(5, 12)
14775
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "event").WithArguments("event").
WithLocation
(4, 12)
14831
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(4, 18),
14834
Diagnostic(ErrorCode.ERR_LbraceExpected, "int").
WithLocation
(4, 18),
14837
Diagnostic(ErrorCode.ERR_RbraceExpected, "int").
WithLocation
(4, 18)
14899
Diagnostic(ErrorCode.ERR_IdentifierExpected, "ref").
WithLocation
(4, 18),
14902
Diagnostic(ErrorCode.ERR_LbraceExpected, "ref").
WithLocation
(4, 18),
14905
Diagnostic(ErrorCode.ERR_RbraceExpected, "ref").
WithLocation
(4, 18)
14966
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(2, 15),
14969
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(2, 15)
15013
Diagnostic(ErrorCode.ERR_IdentifierExpected, "ref").
WithLocation
(2, 15),
15016
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(2, 15)
15060
Diagnostic(ErrorCode.ERR_IdentifierExpected, "ref").
WithLocation
(2, 15),
15063
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(2, 15)
15108
Diagnostic(ErrorCode.ERR_CloseParenExpected, "a").
WithLocation
(3, 17),
15111
Diagnostic(ErrorCode.ERR_LbraceExpected, "a").
WithLocation
(3, 17),
15114
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(3, 18),
15117
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(3, 18),
15120
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 22)
15185
Diagnostic(ErrorCode.ERR_CloseParenExpected, "ref").
WithLocation
(3, 15),
15188
Diagnostic(ErrorCode.ERR_LbraceExpected, "ref").
WithLocation
(3, 15),
15191
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(3, 22),
15194
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(3, 22),
15197
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 26)
15272
Diagnostic(ErrorCode.ERR_CloseParenExpected, "ref").
WithLocation
(3, 15),
15275
Diagnostic(ErrorCode.ERR_LbraceExpected, "ref").
WithLocation
(3, 15),
15278
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(3, 31),
15281
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(3, 31),
15284
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(3, 35)
Parsing\DeconstructionTests.cs (40)
2077
Diagnostic(ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, "(x1, x2)").
WithLocation
(6, 13)
2133
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(int x1, x2) = (1, 2)").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").
WithLocation
(7, 9),
2136
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "(x3, int x4) = (1, 2)").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").
WithLocation
(8, 9));
2196
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var(x, y)").
WithLocation
(6, 9),
2199
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 9),
2202
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(6, 13),
2205
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(6, 16));
2223
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var(x, y)").
WithLocation
(6, 9),
2226
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 9),
2229
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(6, 13),
2232
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(6, 16));
2250
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var(x, y)").
WithLocation
(6, 11),
2253
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 11),
2256
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(6, 15),
2259
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(6, 18));
2279
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 15),
2282
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(6, 19),
2285
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(6, 22),
2288
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var(x, y)").
WithLocation
(6, 15));
2308
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 15),
2311
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(6, 19),
2314
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(6, 22),
2317
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var(x, y)").
WithLocation
(6, 15));
2335
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var(x, y)").
WithLocation
(6, 20),
2338
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 20),
2341
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(6, 24),
2344
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(6, 27));
2362
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var(x, y)").
WithLocation
(6, 25),
2365
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 25),
2368
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(6, 32),
2371
Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").
WithLocation
(6, 29));
2389
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "object").WithArguments("object").
WithLocation
(4, 10),
2392
Diagnostic(ErrorCode.ERR_VarInvocationLvalueReserved, "var (x, 1)").
WithLocation
(6, 9),
2395
Diagnostic(ErrorCode.ERR_NameNotInContext, "var").WithArguments("var").
WithLocation
(6, 9),
2398
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(6, 14),
2401
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("C.M(string)").
WithLocation
(4, 17));
3136
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(1, 5)
3248
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(":").
WithLocation
(1, 16),
3251
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(1, 16)
3384
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(7, 10)
Parsing\ExpressionParsingTests.cs (91)
214
Diagnostic(ErrorCode.ERR_AltInterpolatedVerbatimStringsNotAvailable, @"@$""").WithArguments("8.0").
WithLocation
(6, 17));
270
Diagnostic(ErrorCode.ERR_AltInterpolatedVerbatimStringsNotAvailable, @"@$""").WithArguments("8.0").
WithLocation
(6, 24));
745
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(1, 30),
748
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "?").WithArguments("null propagating operator", "6").
WithLocation
(1, 33),
751
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "?").WithArguments("null propagating operator", "6").
WithLocation
(1, 38),
754
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "?").WithArguments("null propagating operator", "6").
WithLocation
(1, 42),
757
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "?").WithArguments("null propagating operator", "6").
WithLocation
(1, 47));
1376
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(1, 13),
1379
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 13));
1427
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(2, 2));
1509
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "]").
WithLocation
(2, 1));
1554
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(2, 2),
1557
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 2));
1598
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, keyword).
WithLocation
(1, 5),
1601
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(2, 2),
1604
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(2, 2),
1607
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 2));
1684
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, keyword).
WithLocation
(1, 5),
1687
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(2, 2));
1768
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(2, 2),
1771
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 2));
3157
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(6, 14),
3160
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 14));
3254
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(6, 14),
3257
Diagnostic(ErrorCode.ERR_SyntaxError, ".").WithArguments(",").
WithLocation
(6, 24),
3260
Diagnostic(ErrorCode.ERR_SemicolonExpected, "Delay").
WithLocation
(6, 25));
3350
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(7, 9));
3424
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(7, 9));
3506
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(7, 9));
3585
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(7, 9));
3658
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(7, 9));
3740
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(6, 14),
3743
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 14));
4294
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "<<").WithArguments("<<").
WithLocation
(7, 30)
4399
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ">").WithArguments(">").
WithLocation
(7, 31)
5034
Diagnostic(ErrorCode.ERR_ConditionalInInterpolation, "a ? b ").
WithLocation
(1, 4)
5243
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(1, 30),
5246
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "??=").WithArguments("coalescing assignment", "8.0").
WithLocation
(1, 32),
5249
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(1, 36));
5289
Diagnostic(ErrorCode.ERR_TripleDotNotAllowed, "").
WithLocation
(1, 2));
5847
Diagnostic(ErrorCode.ERR_UnexpectedToken, "1. ").WithArguments(".2").
WithLocation
(1, 1),
5850
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".2").
WithLocation
(1, 4));
5873
Diagnostic(ErrorCode.ERR_UnexpectedToken, "..").WithArguments(".").
WithLocation
(1, 1));
5888
Diagnostic(ErrorCode.ERR_UnexpectedToken, "1..").WithArguments(".").
WithLocation
(1, 1));
5973
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 6),
5976
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 6));
6020
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref ").WithArguments("ref").
WithLocation
(1, 9),
6023
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(1, 13));
6054
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref obj").WithArguments("ref").
WithLocation
(1, 9));
6085
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref[]").WithArguments("ref").
WithLocation
(1, 9),
6088
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(1, 12),
6091
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(1, 13));
6137
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref ").WithArguments("ref").
WithLocation
(1, 7),
6140
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(1, 11));
6169
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(1, 17));
6210
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(1, 13));
6243
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref ").WithArguments("ref").
WithLocation
(1, 14),
6246
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(1, 18));
6289
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref").WithArguments("ref").
WithLocation
(1, 17),
6292
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(1, 20));
6361
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref").WithArguments("ref").
WithLocation
(1, 17),
6364
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(1, 20));
6424
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "in").WithArguments("", "in").
WithLocation
(1, 9));
6447
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "out").WithArguments("", "out").
WithLocation
(1, 9));
6470
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(1, 13));
6529
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(7, 31),
6532
Diagnostic(ErrorCode.ERR_SyntaxError, "}").WithArguments(")").
WithLocation
(7, 33),
6535
Diagnostic(ErrorCode.ERR_SyntaxError, "}").WithArguments(",").
WithLocation
(7, 33),
6538
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(7, 34)
6566
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(7, 31),
6569
Diagnostic(ErrorCode.ERR_SyntaxError, "}").WithArguments(")").
WithLocation
(7, 33),
6572
Diagnostic(ErrorCode.ERR_SyntaxError, "}").WithArguments(",").
WithLocation
(7, 33),
6575
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments("\\").
WithLocation
(7, 34),
6578
Diagnostic(ErrorCode.ERR_SyntaxError, "F").WithArguments(",").
WithLocation
(7, 35),
6581
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments("\\").
WithLocation
(7, 36),
6584
Diagnostic(ErrorCode.ERR_SyntaxError, "G").WithArguments(",").
WithLocation
(7, 37),
6587
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(7, 38),
6590
Diagnostic(ErrorCode.ERR_SyntaxError, "H").WithArguments(",").
WithLocation
(7, 39),
6593
Diagnostic(ErrorCode.ERR_SyntaxError, "}").WithArguments(",").
WithLocation
(7, 40),
6596
Diagnostic(ErrorCode.ERR_SyntaxError, "_").WithArguments(",").
WithLocation
(7, 41),
6599
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(7, 42),
6602
Diagnostic(ErrorCode.ERR_SyntaxError, "I").WithArguments(",").
WithLocation
(7, 43),
6605
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(7, 49),
6608
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(7, 49),
6611
Diagnostic(ErrorCode.ERR_SyntaxError, "L").WithArguments(",").
WithLocation
(7, 50),
6614
Diagnostic(ErrorCode.ERR_SyntaxError, @""")}.M""").WithArguments(",").
WithLocation
(7, 51)
6649
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ">").WithArguments(">").
WithLocation
(1, 5)
6684
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ">").WithArguments(">").
WithLocation
(1, 6)
6742
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ">").WithArguments(">").
WithLocation
(1, 5)
6777
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ">=").WithArguments(">=").
WithLocation
(1, 6)
6812
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(1, 7)
Parsing\FileModifierParsingTests.cs (154)
103
Diagnostic(ErrorCode.ERR_PartialMisplaced, "C").
WithLocation
(1, 19)
134
Diagnostic(ErrorCode.ERR_SemicolonExpected, SyntaxFacts.GetText(typeKeyword)).
WithLocation
(1, 14)
140
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(1, 1),
143
Diagnostic(ErrorCode.WRN_UnreferencedVar, "file").WithArguments("file").
WithLocation
(1, 9),
146
Diagnostic(ErrorCode.ERR_SemicolonExpected, SyntaxFacts.GetText(typeKeyword)).
WithLocation
(1, 14)
190
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(1, 1)
241
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(1, 1)
271
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(1, 14),
274
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 18)
280
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(1, 1),
283
Diagnostic(ErrorCode.WRN_UnreferencedVar, "partial").WithArguments("partial").
WithLocation
(1, 6),
286
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(1, 14),
289
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 18)
333
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(1, 14),
336
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 18)
342
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(1, 1),
345
Diagnostic(ErrorCode.WRN_UnreferencedVar, "partial").WithArguments("partial").
WithLocation
(1, 6),
348
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(1, 14),
351
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 18)
396
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(1, 14),
399
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 18)
405
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(1, 1),
408
Diagnostic(ErrorCode.WRN_UnreferencedVar, "file").WithArguments("file").
WithLocation
(1, 9),
411
Diagnostic(ErrorCode.ERR_SyntaxError, "ref").WithArguments(",").
WithLocation
(1, 14),
414
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 18)
570
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "C").WithArguments("file types", "11.0").
WithLocation
(1, 12)
697
Diagnostic(ErrorCode.ERR_FileTypeNested, "C").WithArguments("Outer.C").
WithLocation
(3, 16)
735
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(3, 10),
738
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M").WithArguments("file").
WithLocation
(3, 31),
741
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M").WithArguments("C.M()").
WithLocation
(3, 31)
807
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M").WithArguments("file").
WithLocation
(3, 15)
855
Diagnostic(ErrorCode.ERR_BadMemberFlag, "x").WithArguments("file").
WithLocation
(3, 14),
858
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("C.x").
WithLocation
(3, 14)
903
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Action").WithArguments("Action").
WithLocation
(3, 16),
906
Diagnostic(ErrorCode.ERR_BadMemberFlag, "x").WithArguments("file").
WithLocation
(3, 23),
909
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "x").WithArguments("C.x").
WithLocation
(3, 23)
956
Diagnostic(ErrorCode.ERR_BadMemberFlag, "x").WithArguments("file").
WithLocation
(3, 14)
1010
Diagnostic(ErrorCode.ERR_BadMemberFlag, "M").WithArguments("file").
WithLocation
(3, 21),
1013
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(3, 21)
1061
Diagnostic(ErrorCode.WRN_UnreferencedField, "file").WithArguments("C.file").
WithLocation
(3, 9)
1153
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Action").WithArguments("Action").
WithLocation
(3, 11),
1156
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "file").WithArguments("C.file").
WithLocation
(3, 18)
1241
Diagnostic(ErrorCode.ERR_FileTypeNameDisallowed, "file").
WithLocation
(1, 12)
1273
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(3, 5),
1276
Diagnostic(ErrorCode.WRN_UnreferencedField, "async").WithArguments("C.async").
WithLocation
(3, 10)
1318
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(3, 15),
1321
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(3, 15));
1359
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(3, 5),
1362
Diagnostic(ErrorCode.WRN_UnreferencedField, "item").WithArguments("C.item").
WithLocation
(3, 10)
1407
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(3, 14),
1410
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(3, 14)
1445
Diagnostic(ErrorCode.ERR_FileTypeNameDisallowed, "file").
WithLocation
(1, 8)
1472
Diagnostic(ErrorCode.ERR_FileTypeNameDisallowed, "file").
WithLocation
(1, 7)
1500
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "file").WithArguments("file").
WithLocation
(1, 7)
1562
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "file").WithArguments("file").
WithLocation
(1, 15),
1565
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").
WithLocation
(3, 21)
1781
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(5, 22),
1784
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(5, 22),
1787
Diagnostic(ErrorCode.ERR_TypeExpected, "[").
WithLocation
(6, 16),
1790
Diagnostic(ErrorCode.ERR_TypeExpected, "*").
WithLocation
(7, 16),
1793
Diagnostic(ErrorCode.ERR_TypeExpected, "?").
WithLocation
(8, 16)
1799
Diagnostic(ErrorCode.ERR_FileTypeNameDisallowed, "file").
WithLocation
(1, 15),
1802
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").
WithLocation
(3, 21),
1805
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(5, 22),
1808
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(5, 22),
1811
Diagnostic(ErrorCode.ERR_TypeExpected, "[").
WithLocation
(6, 16),
1814
Diagnostic(ErrorCode.ERR_BadMemberFlag, "_array").WithArguments("file").
WithLocation
(6, 19),
1817
Diagnostic(ErrorCode.ERR_TypeExpected, "*").
WithLocation
(7, 16),
1820
Diagnostic(ErrorCode.ERR_BadMemberFlag, "_ptr").WithArguments("file").
WithLocation
(7, 18),
1823
Diagnostic(ErrorCode.WRN_ManagedAddr, "_ptr").WithArguments("?").
WithLocation
(7, 18),
1826
Diagnostic(ErrorCode.ERR_TypeExpected, "?").
WithLocation
(8, 16),
1829
Diagnostic(ErrorCode.ERR_BadMemberFlag, "_nullable").WithArguments("file").
WithLocation
(8, 18)
2032
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 5),
2035
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 5)
2041
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(1, 1),
2044
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 5),
2047
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 5)
2085
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 5),
2088
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 5)
2094
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(1, 1),
2097
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 5),
2100
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 5)
2139
Diagnostic(ErrorCode.ERR_NameNotInContext, "file").WithArguments("file").
WithLocation
(1, 1),
2142
Diagnostic(ErrorCode.ERR_IllegalStatement, "file").
WithLocation
(1, 1)
2173
Diagnostic(ErrorCode.ERR_NameNotInContext, "file").WithArguments("file").
WithLocation
(1, 1),
2176
Diagnostic(ErrorCode.ERR_IllegalStatement, "file").
WithLocation
(1, 1)
2208
Diagnostic(ErrorCode.ERR_IdentifierExpected, "namespace").
WithLocation
(1, 6),
2211
Diagnostic(ErrorCode.ERR_SemicolonExpected, "namespace").
WithLocation
(1, 6)
2217
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(1, 1),
2220
Diagnostic(ErrorCode.ERR_IdentifierExpected, "namespace").
WithLocation
(1, 6),
2223
Diagnostic(ErrorCode.ERR_SemicolonExpected, "namespace").
WithLocation
(1, 6),
2226
Diagnostic(ErrorCode.ERR_FileScopedNamespaceNotBeforeAllMembers, "NS").
WithLocation
(1, 16)
2273
Diagnostic(ErrorCode.ERR_IdentifierExpected, "namespace").
WithLocation
(1, 6),
2276
Diagnostic(ErrorCode.ERR_SemicolonExpected, "namespace").
WithLocation
(1, 6)
2282
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(1, 1),
2285
Diagnostic(ErrorCode.ERR_IdentifierExpected, "namespace").
WithLocation
(1, 6),
2288
Diagnostic(ErrorCode.ERR_SemicolonExpected, "namespace").
WithLocation
(1, 6),
2291
Diagnostic(ErrorCode.ERR_FileScopedNamespaceNotBeforeAllMembers, "NS").
WithLocation
(1, 16)
2339
Diagnostic(ErrorCode.ERR_IdentifierExpected, "namespace").
WithLocation
(1, 6),
2342
Diagnostic(ErrorCode.ERR_SemicolonExpected, "namespace").
WithLocation
(1, 6)
2348
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(1, 1),
2351
Diagnostic(ErrorCode.ERR_IdentifierExpected, "namespace").
WithLocation
(1, 6),
2354
Diagnostic(ErrorCode.ERR_SemicolonExpected, "namespace").
WithLocation
(1, 6)
2402
Diagnostic(ErrorCode.ERR_IdentifierExpected, "namespace").
WithLocation
(1, 6),
2405
Diagnostic(ErrorCode.ERR_SemicolonExpected, "namespace").
WithLocation
(1, 6)
2411
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(1, 1),
2414
Diagnostic(ErrorCode.ERR_IdentifierExpected, "namespace").
WithLocation
(1, 6),
2417
Diagnostic(ErrorCode.ERR_SemicolonExpected, "namespace").
WithLocation
(1, 6)
2463
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "file").
WithLocation
(1, 499996)
2486
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(1, 500007)
2490
Diagnostic(ErrorCode.ERR_DuplicateModifier, "file").WithArguments("file").
WithLocation
(1, 6),
2491
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(1, 500007)
2526
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(3, 5),
2529
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "record").WithArguments("C.record()").
WithLocation
(3, 10)
2573
Diagnostic(ErrorCode.ERR_BadMemberFlag, "record").WithArguments("file").
WithLocation
(3, 10),
2576
Diagnostic(ErrorCode.ERR_MemberNeedsType, "record").
WithLocation
(3, 10)
2618
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(3, 5),
2621
Diagnostic(ErrorCode.ERR_ReturnExpected, "record").WithArguments("C.record()").
WithLocation
(3, 10)
2668
Diagnostic(ErrorCode.ERR_BadMemberFlag, "record").WithArguments("file").
WithLocation
(3, 10),
2671
Diagnostic(ErrorCode.ERR_MemberNeedsType, "record").
WithLocation
(3, 10)
2717
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(3, 10),
2720
Diagnostic(ErrorCode.ERR_BadMemberFlag, "X").WithArguments("file").
WithLocation
(3, 17),
2723
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "X").WithArguments("C.X()").
WithLocation
(3, 17)
2768
Diagnostic(ErrorCode.ERR_FileTypeNested, "X").WithArguments("C.X").
WithLocation
(3, 17)
2811
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(3, 10),
2814
Diagnostic(ErrorCode.ERR_BadMemberFlag, "X").WithArguments("file").
WithLocation
(3, 17),
2817
Diagnostic(ErrorCode.ERR_ReturnExpected, "X").WithArguments("C.X()").
WithLocation
(3, 17)
2866
Diagnostic(ErrorCode.ERR_FileTypeNested, "X").WithArguments("C.X").
WithLocation
(3, 17)
2909
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(3, 10),
2912
Diagnostic(ErrorCode.ERR_BadMemberFlag, "X").WithArguments("file").
WithLocation
(3, 17),
2915
Diagnostic(ErrorCode.WRN_UnreferencedField, "X").WithArguments("C.X").
WithLocation
(3, 17)
2961
Diagnostic(ErrorCode.ERR_FileTypeNested, "X").WithArguments("C.X").
WithLocation
(3, 17)
3024
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "M").WithArguments("M").
WithLocation
(1, 6),
3027
Diagnostic(ErrorCode.ERR_BadSKknown, "file").WithArguments("file", "variable", "type").
WithLocation
(3, 5),
3030
Diagnostic(ErrorCode.WRN_UnreferencedVar, "file").WithArguments("file").
WithLocation
(3, 10)
3088
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "M").WithArguments("M").
WithLocation
(1, 6),
3091
Diagnostic(ErrorCode.WRN_UnreferencedVar, "file").WithArguments("file").
WithLocation
(3, 9)
3149
Diagnostic(ErrorCode.ERR_BadSKknown, "file").WithArguments("file", "variable", "type").
WithLocation
(1, 1),
3152
Diagnostic(ErrorCode.WRN_UnreferencedVar, "file").WithArguments("file").
WithLocation
(1, 6)
3193
Diagnostic(ErrorCode.WRN_UnreferencedVar, "file").WithArguments("file").
WithLocation
(1, 5)
3234
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "file").WithArguments("file").
WithLocation
(1, 6)
3295
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "M").WithArguments("M").
WithLocation
(1, 6),
3298
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "file").WithArguments("file").
WithLocation
(3, 10)
3370
Diagnostic(ErrorCode.ERR_DiscardTypeInferenceFailed, "_").
WithLocation
(1, 1),
3373
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(1, 5)
3425
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(1, 1),
3428
Diagnostic(ErrorCode.ERR_ReturnExpected, "local").WithArguments("local()").
WithLocation
(1, 6),
3431
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(1, 6)
3481
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(3, 17),
3484
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(3, 17)
3490
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(3, 12),
3493
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(3, 17),
3496
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(3, 17)
3560
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "file").WithArguments("file").
WithLocation
(3, 12)
Parsing\FunctionPointerTests.cs (91)
143
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "void").WithArguments("", "void").
WithLocation
(1, 21),
146
Diagnostic(ErrorCode.ERR_SyntaxError, "void").WithArguments(",").
WithLocation
(1, 21)
240
Diagnostic(ErrorCode.ERR_CannotSpecifyManagedWithUnmanagedSpecifiers, "[Cdecl]").
WithLocation
(1, 18)
292
Diagnostic(ErrorCode.ERR_SyntaxError, "invalid").WithArguments("unmanaged").
WithLocation
(1, 11)
344
Diagnostic(ErrorCode.ERR_SyntaxError, "invalid").WithArguments("managed").
WithLocation
(1, 11));
386
Diagnostic(ErrorCode.ERR_IdentifierExpected, "]").
WithLocation
(1, 21)
513
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "delegate* unmanaged[cdecl]<string, Goo, int> ptr;").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
516
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "delegate").WithArguments("function pointers", "9.0").
WithLocation
(1, 1),
519
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 1),
522
Diagnostic(ErrorCode.ERR_RuntimeDoesNotSupportUnmanagedDefaultCallConv, "cdecl").
WithLocation
(1, 21),
525
Diagnostic(ErrorCode.ERR_TypeNotFound, "cdecl").WithArguments("CallConvcdecl").
WithLocation
(1, 21),
528
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Goo").WithArguments("Goo").
WithLocation
(1, 36),
531
Diagnostic(ErrorCode.WRN_UnreferencedVar, "ptr").WithArguments("ptr").
WithLocation
(1, 46));
873
Diagnostic(ErrorCode.ERR_TypeExpected, ";").
WithLocation
(1, 12),
876
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(">").
WithLocation
(1, 12),
879
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 12));
917
Diagnostic(ErrorCode.ERR_TypeExpected, ";").
WithLocation
(1, 15),
920
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(">").
WithLocation
(1, 15),
923
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 15));
962
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(">").
WithLocation
(1, 19),
965
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 19));
1004
Diagnostic(ErrorCode.ERR_TypeExpected, ";").
WithLocation
(1, 20),
1007
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(">").
WithLocation
(1, 20),
1010
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 20));
1057
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("<").
WithLocation
(1, 25),
1060
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 25));
1111
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("<").
WithLocation
(1, 28),
1114
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 28));
1165
Diagnostic(ErrorCode.ERR_SyntaxError, "ptr").WithArguments("<").
WithLocation
(1, 28));
1216
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("<").
WithLocation
(1, 11),
1219
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 11));
1257
Diagnostic(ErrorCode.ERR_LbraceExpected, "*").
WithLocation
(1, 9),
1260
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "*").WithArguments("*").
WithLocation
(1, 9),
1263
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "void").WithArguments("void").
WithLocation
(1, 34));
1336
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("<").
WithLocation
(1, 10),
1339
Diagnostic(ErrorCode.ERR_TypeExpected, ";").
WithLocation
(1, 12),
1342
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(">").
WithLocation
(1, 12),
1345
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 12));
1383
Diagnostic(ErrorCode.ERR_SyntaxError, "@cdecl").WithArguments("<").
WithLocation
(1, 11),
1386
Diagnostic(ErrorCode.ERR_SyntaxError, ">").WithArguments(",").
WithLocation
(1, 17),
1389
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 18));
1427
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 22),
1430
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("]").
WithLocation
(1, 22),
1433
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("<").
WithLocation
(1, 22),
1436
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 22)
1488
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("]").
WithLocation
(1, 27),
1491
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("<").
WithLocation
(1, 27),
1494
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 27)
1546
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 27),
1549
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(1, 27),
1552
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("<").
WithLocation
(1, 27),
1555
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 27),
1558
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 27)
1615
Diagnostic(ErrorCode.ERR_TypeExpected, ">").
WithLocation
(1, 11));
1653
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("<").
WithLocation
(1, 10),
1656
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(">").
WithLocation
(1, 20),
1659
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 21),
1662
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 21));
2351
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(2, 1)
3071
Diagnostic(ErrorCode.ERR_SyntaxError, "param1").WithArguments(",").
WithLocation
(1, 15),
3074
Diagnostic(ErrorCode.ERR_SyntaxError, "param2").WithArguments(",").
WithLocation
(1, 30));
3128
Diagnostic(ErrorCode.ERR_SyntaxError, "void").WithArguments("<").
WithLocation
(1, 10),
3131
Diagnostic(ErrorCode.ERR_IdentifierExpected, "void").
WithLocation
(1, 10),
3134
Diagnostic(ErrorCode.ERR_SyntaxError, "void").WithArguments(",").
WithLocation
(1, 10));
3172
Diagnostic(ErrorCode.ERR_SyntaxError, "void").WithArguments("<").
WithLocation
(1, 28),
3175
Diagnostic(ErrorCode.ERR_IdentifierExpected, "void").
WithLocation
(1, 28),
3178
Diagnostic(ErrorCode.ERR_SyntaxError, "void").WithArguments(",").
WithLocation
(1, 28));
3229
Diagnostic(ErrorCode.ERR_SyntaxError, ">").WithArguments("<").
WithLocation
(1, 10));
3267
Diagnostic(ErrorCode.ERR_SyntaxError, "Cdecl").WithArguments("<").
WithLocation
(1, 21),
3270
Diagnostic(ErrorCode.ERR_SyntaxError, "]").WithArguments(",").
WithLocation
(1, 26)
3505
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(4, 15),
3508
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(4, 22));
3653
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("<").
WithLocation
(1, 10),
3656
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 10),
3659
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 10));
3697
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("<").
WithLocation
(1, 27),
3700
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 27),
3703
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 27));
3754
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(",").
WithLocation
(1, 32),
3757
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(">").
WithLocation
(1, 37),
3760
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 37));
3811
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("<").
WithLocation
(1, 27),
3814
Diagnostic(ErrorCode.ERR_SyntaxError, ">").WithArguments(",").
WithLocation
(1, 32),
3817
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(">").
WithLocation
(1, 37),
3820
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 37));
3876
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("<").
WithLocation
(5, 21),
3879
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(5, 21),
3882
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(5, 21));
3963
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("<").
WithLocation
(4, 14),
3966
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(4, 14),
3969
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 14));
Parsing\ImplicitObjectCreationParsingTests.cs (13)
26
Diagnostic(ErrorCode.ERR_BadNewExpr, "").
WithLocation
(1, 4));
91
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(1, 6),
94
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 6)
132
Diagnostic(ErrorCode.ERR_BadNewExpr, "?").
WithLocation
(1, 12));
313
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 20));
411
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(1, 30),
414
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new()").WithArguments("new()").
WithLocation
(1, 30));
460
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(1, 30),
463
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new(){}").WithArguments("new()").
WithLocation
(1, 30));
541
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(1, 30),
544
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(1, 34),
547
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(1, 36),
550
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(1, 41));
Parsing\LambdaAttributeParsingTests.cs (34)
234
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(1, 11));
280
Diagnostic(ErrorCode.ERR_UnexpectedToken, "[A]").WithArguments("ref").
WithLocation
(1, 1),
283
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(1, 1));
314
Diagnostic(ErrorCode.ERR_UnexpectedToken, "[A]").WithArguments("in").
WithLocation
(1, 1),
317
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(1, 1));
1066
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments("=").
WithLocation
(1, 13));
1210
Diagnostic(ErrorCode.ERR_UnexpectedToken, "-- [A] ()").WithArguments("=>").
WithLocation
(1, 1),
1213
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(1, 4));
1255
Diagnostic(ErrorCode.ERR_UnexpectedToken, "! [A] ()").WithArguments("=>").
WithLocation
(1, 1),
1258
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(1, 3));
1300
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(F) [A] ()").WithArguments("=>").
WithLocation
(1, 1));
1343
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "+").WithArguments("+").
WithLocation
(1, 15));
1388
Diagnostic(ErrorCode.ERR_UnexpectedToken, "x * [A] ()").WithArguments("=>").
WithLocation
(1, 1),
1391
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(1, 5));
1437
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "is").WithArguments("is").
WithLocation
(1, 15));
1523
Diagnostic(ErrorCode.ERR_UnexpectedToken, "x ? [A] ()").WithArguments("=>").
WithLocation
(1, 1));
1665
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "switch").WithArguments("switch").
WithLocation
(1, 15));
1948
Diagnostic(ErrorCode.ERR_SyntaxError, "[").WithArguments(",").
WithLocation
(1, 5));
2271
Diagnostic(ErrorCode.ERR_UnexpectedToken, "_ = x is string ? [] y").WithArguments("=>").
WithLocation
(1, 1));
2326
Diagnostic(ErrorCode.ERR_UnexpectedToken, "_ = x is string ? [A] y").WithArguments("=>").
WithLocation
(1, 1));
2381
Diagnostic(ErrorCode.ERR_UnexpectedToken, "_ = x is string ? [return: A] y").WithArguments("=>").
WithLocation
(1, 1),
2384
Diagnostic(ErrorCode.ERR_SyntaxError, "return").WithArguments(",").
WithLocation
(1, 20));
2590
Diagnostic(ErrorCode.ERR_UnexpectedToken, "x as string ? [A]").WithArguments("y").
WithLocation
(1, 1));
2689
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments("=").
WithLocation
(1, 13),
2692
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("=").
WithLocation
(1, 25));
2952
Diagnostic(ErrorCode.ERR_SyntaxError, "y").WithArguments(",").
WithLocation
(1, 13));
3565
Diagnostic(ErrorCode.ERR_UnexpectedToken, "[A]").WithArguments("delegate").
WithLocation
(1, 1),
3568
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(1, 1));
3605
Diagnostic(ErrorCode.ERR_UnexpectedToken, "[return: A]").WithArguments("delegate").
WithLocation
(1, 1),
3608
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(1, 1),
3611
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "return").WithArguments("", "return").
WithLocation
(1, 2));
3648
Diagnostic(ErrorCode.ERR_UnexpectedToken, "d = [A] ").WithArguments("delegate").
WithLocation
(1, 1),
3651
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(1, 5),
3654
Diagnostic(ErrorCode.ERR_SemicolonExpected, "delegate").
WithLocation
(1, 9));
Parsing\LambdaParameterParsingTests.cs (144)
40
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(4, 38),
43
Diagnostic(ErrorCode.ERR_CloseParenExpected, "out").
WithLocation
(4, 38),
46
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(4, 38),
49
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 41),
52
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 41),
55
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 41));
148
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(4, 38),
151
Diagnostic(ErrorCode.ERR_CloseParenExpected, "out").
WithLocation
(4, 38),
154
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(4, 38),
157
Diagnostic(ErrorCode.ERR_SemicolonExpected, "C").
WithLocation
(4, 42),
160
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 43),
163
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 43),
166
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 43));
267
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(4, 38),
270
Diagnostic(ErrorCode.ERR_CloseParenExpected, "out").
WithLocation
(4, 38),
273
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(4, 38),
276
Diagnostic(ErrorCode.ERR_SemicolonExpected, "C").
WithLocation
(4, 42),
279
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 45),
282
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 45),
285
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 45));
393
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(4, 38),
396
Diagnostic(ErrorCode.ERR_CloseParenExpected, "out").
WithLocation
(4, 38),
399
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(4, 38),
402
Diagnostic(ErrorCode.ERR_SemicolonExpected, "C").
WithLocation
(4, 42),
405
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 45),
408
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 45),
411
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 45));
519
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(4, 38),
522
Diagnostic(ErrorCode.ERR_CloseParenExpected, "out").
WithLocation
(4, 38),
525
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(4, 38),
528
Diagnostic(ErrorCode.ERR_SemicolonExpected, "C").
WithLocation
(4, 42),
531
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(4, 46),
534
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 46),
537
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 46),
540
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(4, 46));
650
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(int a, int ").WithArguments("b").
WithLocation
(1, 1),
653
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 9),
656
Diagnostic(ErrorCode.ERR_CloseParenExpected, "b").
WithLocation
(1, 13)
695
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(__arglist)").WithArguments("=>").
WithLocation
(1, 1));
716
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(int x, __arglist)").WithArguments("=>").
WithLocation
(1, 1));
755
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "__arglist").WithArguments("", "__arglist").
WithLocation
(1, 9));
781
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 31));
841
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 32));
916
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 26));
973
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 25));
1025
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 30));
1086
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 35));
1161
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 35),
1164
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 44));
1240
Diagnostic(ErrorCode.ERR_IdentifierExpected, "!").
WithLocation
(1, 20)
1291
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 26));
1348
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 31));
1403
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 32));
1458
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 32),
1461
Diagnostic(ErrorCode.ERR_SyntaxError, "=").WithArguments("=>").
WithLocation
(1, 33));
1516
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 33));
1566
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 34));
1616
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 32));
1670
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 32),
1673
Diagnostic(ErrorCode.ERR_SyntaxError, "=").WithArguments("=>").
WithLocation
(1, 34));
1728
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 31));
1782
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 31));
1837
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 31));
1892
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(1, 34),
1895
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 36));
1969
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(1, 36));
2057
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "string").WithArguments("string").
WithLocation
(1, 33),
2060
Diagnostic(ErrorCode.ERR_CloseParenExpected, "x").
WithLocation
(1, 40),
2063
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(1, 40));
2127
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 39));
2183
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 9),
2186
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(1, 13));
2285
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=").
WithLocation
(1, 12));
2609
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(1, 23));
2689
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(1, 18));
2748
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(1, 10));
2804
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(1, 18));
2864
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(int ").WithArguments("x").
WithLocation
(1, 1),
2867
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 2),
2870
Diagnostic(ErrorCode.ERR_CloseParenExpected, "x").
WithLocation
(1, 6));
2891
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 18),
2894
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 18),
2897
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(1, 18));
2938
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(int ").WithArguments("x").
WithLocation
(1, 1),
2941
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 2),
2944
Diagnostic(ErrorCode.ERR_CloseParenExpected, "x").
WithLocation
(1, 6));
2965
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 20),
2968
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(1, 20));
3010
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(int ").WithArguments("x").
WithLocation
(1, 1),
3013
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 2),
3016
Diagnostic(ErrorCode.ERR_CloseParenExpected, "x").
WithLocation
(1, 6));
3037
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(1, 21),
3040
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 21),
3043
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 21),
3046
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(1, 21));
3098
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=").
WithLocation
(1, 6));
3138
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=").
WithLocation
(1, 14));
3235
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(int ").WithArguments("x").
WithLocation
(1, 1),
3238
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 2),
3241
Diagnostic(ErrorCode.ERR_CloseParenExpected, "x").
WithLocation
(1, 6));
4055
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(Func<int, int> ").WithArguments("l1").
WithLocation
(1, 1),
4058
Diagnostic(ErrorCode.ERR_CloseParenExpected, "l1").
WithLocation
(1, 17));
4246
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 41));
4309
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 32));
4378
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 35));
4452
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 39));
4525
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 49));
4607
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(int x = > 0) => x").WithArguments(";").
WithLocation
(1, 1),
4610
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ">").WithArguments(">").
WithLocation
(1, 10));
4658
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(__arglist = null)").WithArguments("=>").
WithLocation
(1, 1));
4685
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 31));
4740
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 32));
4800
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 35));
4865
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 39));
4929
Diagnostic(ErrorCode.ERR_ParameterNullCheckingNotSupported, "!").
WithLocation
(1, 49));
5073
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").
WithLocation
(1, 1),
5076
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 7));
5103
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "ref").WithArguments("", "ref").
WithLocation
(1, 1));
5131
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref int => { }").WithArguments("ref").
WithLocation
(1, 1),
5134
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").
WithLocation
(1, 5));
5164
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "delegate").WithArguments("", "delegate").
WithLocation
(1, 1));
5189
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(1, 8));
5215
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "static").WithArguments("static").
WithLocation
(1, 1),
5218
Diagnostic(ErrorCode.ERR_UnexpectedToken, "").WithArguments("static").
WithLocation
(1, 1));
5234
Diagnostic(ErrorCode.ERR_UnexpectedToken, "f = [A]").WithArguments("int").
WithLocation
(1, 1),
5237
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[").WithArguments("[").
WithLocation
(1, 5));
5320
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(1, 5));
5354
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(1, 5),
5357
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(1, 10));
5400
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "public").WithArguments("public").
WithLocation
(1, 20),
5403
Diagnostic(ErrorCode.ERR_SemicolonExpected, "public").
WithLocation
(1, 20),
5406
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "public").
WithLocation
(1, 20),
5409
Diagnostic(ErrorCode.ERR_EOFExpected, "=>").
WithLocation
(1, 27));
5654
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(1, 1));
5679
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(1, 3),
5682
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 3),
5685
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(1, 9),
5688
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 9),
5691
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("=>").
WithLocation
(1, 9),
5694
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9));
5730
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(1, 3),
5733
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 9),
5736
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("=>").
WithLocation
(1, 9),
5739
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9));
Parsing\LambdaReturnTypeParsingTests.cs (57)
211
Diagnostic(ErrorCode.ERR_UnexpectedToken, "T").WithArguments("x").
WithLocation
(1, 1));
217
Diagnostic(ErrorCode.ERR_UnexpectedToken, "T").WithArguments("x").
WithLocation
(1, 1));
237
Diagnostic(ErrorCode.ERR_UnexpectedToken, "T").WithArguments("F").
WithLocation
(1, 1));
253
Diagnostic(ErrorCode.ERR_UnexpectedToken, "async").WithArguments("T").
WithLocation
(1, 1));
269
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "static").WithArguments("static").
WithLocation
(1, 1),
272
Diagnostic(ErrorCode.ERR_UnexpectedToken, "").WithArguments("static").
WithLocation
(1, 1));
293
Diagnostic(ErrorCode.ERR_UnexpectedToken, "delegate ").WithArguments("T").
WithLocation
(1, 1),
296
Diagnostic(ErrorCode.ERR_LbraceExpected, "T").
WithLocation
(1, 10));
323
Diagnostic(ErrorCode.ERR_UnexpectedToken, "delegate ").WithArguments("int").
WithLocation
(1, 1),
326
Diagnostic(ErrorCode.ERR_LbraceExpected, "int").
WithLocation
(1, 10));
701
Diagnostic(ErrorCode.ERR_UnexpectedToken, "int? () => x").WithArguments(":").
WithLocation
(1, 1));
776
Diagnostic(ErrorCode.ERR_UnexpectedToken, "int[]? () => x").WithArguments(":").
WithLocation
(1, 1));
821
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 25),
824
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 25));
1117
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(1, 3));
1170
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 14),
1173
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 14));
1359
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 1),
1362
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "?").WithArguments("?").
WithLocation
(1, 5),
1365
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 14),
1368
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 14));
1414
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 1),
1417
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "?").WithArguments("?").
WithLocation
(1, 5));
1507
Diagnostic(ErrorCode.ERR_UnexpectedToken, "delegate*<void>? () => x").WithArguments(":").
WithLocation
(1, 1));
1584
Diagnostic(ErrorCode.ERR_UnexpectedToken, "static T? () => x").WithArguments(":").
WithLocation
(1, 1));
1714
Diagnostic(ErrorCode.ERR_UnexpectedToken, "async").WithArguments("T").
WithLocation
(1, 1));
1772
Diagnostic(ErrorCode.ERR_UnexpectedToken, "[A] T? () => x").WithArguments(":").
WithLocation
(1, 1));
1817
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 18),
1820
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 18));
3602
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 5),
3605
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 5));
3691
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9),
3694
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 9));
3734
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(1, 5),
3737
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(1, 10));
3792
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(1, 9),
3795
Diagnostic(ErrorCode.ERR_SyntaxError, "c").WithArguments(",").
WithLocation
(1, 26));
3868
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(1, 9),
3871
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 11),
3874
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 11));
3922
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 11));
3960
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 13));
4035
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(1, 8),
4038
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(1, 15),
4041
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(1, 21));
4200
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 24),
4203
Diagnostic(ErrorCode.ERR_MissingPattern, "=>").
WithLocation
(1, 24));
4261
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "{").WithArguments("{").
WithLocation
(1, 20),
4264
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(1, 20));
4323
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "static").WithArguments("static").
WithLocation
(1, 12),
4326
Diagnostic(ErrorCode.ERR_SyntaxError, "static").WithArguments("=>").
WithLocation
(1, 12),
4329
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 32),
4332
Diagnostic(ErrorCode.ERR_MissingPattern, "=>").
WithLocation
(1, 32));
4616
Diagnostic(ErrorCode.ERR_UnexpectedToken, "x is T ()").WithArguments("=>").
WithLocation
(1, 1));
4648
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 10));
5092
Diagnostic(ErrorCode.ERR_UnexpectedToken, "var").WithArguments("x").
WithLocation
(1, 1));
5170
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(1, 7));
Parsing\LineSpanDirectiveParsingTests.cs (76)
239
Diagnostic(ErrorCode.ERR_LineSpanDirectiveRequiresSpace, "(1,2)").
WithLocation
(1, 6),
242
Diagnostic(ErrorCode.ERR_LineSpanDirectiveRequiresSpace, @"""file.cs""").
WithLocation
(1, 17));
313
Diagnostic(ErrorCode.ERR_LineSpanDirectiveRequiresSpace, "(1,2)").
WithLocation
(1, 6),
316
Diagnostic(ErrorCode.ERR_LineSpanDirectiveRequiresSpace, "5").
WithLocation
(1, 17),
319
Diagnostic(ErrorCode.ERR_LineSpanDirectiveRequiresSpace, @"""file.cs""").
WithLocation
(1, 18)
393
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "").
WithLocation
(1, 8));
430
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(",").
WithLocation
(1, 9));
467
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "").
WithLocation
(1, 10));
504
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12));
541
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("-").
WithLocation
(1, 13));
578
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(1, 15));
615
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "").
WithLocation
(1, 17));
652
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(",").
WithLocation
(1, 18));
689
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "").
WithLocation
(1, 19));
726
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 21));
763
Diagnostic(ErrorCode.ERR_MissingPPFile, "").
WithLocation
(1, 22));
800
Diagnostic(ErrorCode.ERR_MissingPPFile, "").
WithLocation
(1, 24));
844
Diagnostic(ErrorCode.ERR_MissingPPFile, ",").
WithLocation
(1, 8));
864
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, ",").
WithLocation
(1, 8));
901
Diagnostic(ErrorCode.ERR_SyntaxError, "2").WithArguments(",").
WithLocation
(1, 10));
938
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, ")").
WithLocation
(1, 11));
975
Diagnostic(ErrorCode.ERR_CloseParenExpected, "-").
WithLocation
(1, 13));
1012
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("-").
WithLocation
(1, 14));
1049
Diagnostic(ErrorCode.ERR_SyntaxError, "3").WithArguments("(").
WithLocation
(1, 16));
1086
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, ",").
WithLocation
(1, 17));
1123
Diagnostic(ErrorCode.ERR_SyntaxError, "4").WithArguments(",").
WithLocation
(1, 19));
1160
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, ")").
WithLocation
(1, 20));
1197
Diagnostic(ErrorCode.ERR_CloseParenExpected, @"""file.cs""").
WithLocation
(1, 22));
1234
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "'").
WithLocation
(1, 8));
1271
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, @"""2""").
WithLocation
(1, 11));
1308
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "0").
WithLocation
(1, 17));
1345
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "0").
WithLocation
(1, 20));
1382
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "null").
WithLocation
(1, 8));
1419
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "true").
WithLocation
(1, 11));
1456
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "int").
WithLocation
(1, 17));
1493
Diagnostic(ErrorCode.ERR_SyntaxError, "u").WithArguments(",").
WithLocation
(1, 9));
1530
Diagnostic(ErrorCode.ERR_CloseParenExpected, "f").
WithLocation
(1, 12));
1567
Diagnostic(ErrorCode.ERR_MissingPPFile, "file").
WithLocation
(1, 23));
1604
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "-").
WithLocation
(1, 8));
1641
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "0").
WithLocation
(1, 8),
1644
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "0").
WithLocation
(1, 11),
1647
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "0").
WithLocation
(1, 17),
1650
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "0").
WithLocation
(1, 20),
1653
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "0").
WithLocation
(1, 23));
1726
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "16707566").
WithLocation
(1, 8),
1729
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "65537").
WithLocation
(1, 18),
1732
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "16707566").
WithLocation
(1, 28),
1735
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "65537").
WithLocation
(1, 38),
1738
Diagnostic(ErrorCode.ERR_LineSpanDirectiveInvalidValue, "65537").
WithLocation
(1, 45));
1810
Diagnostic(ErrorCode.ERR_LineSpanDirectiveEndLessThanStart, "(10, 19)").
WithLocation
(1, 18));
1847
Diagnostic(ErrorCode.ERR_LineSpanDirectiveEndLessThanStart, "(9, 20)").
WithLocation
(1, 18));
1918
Diagnostic(ErrorCode.ERR_EndOfPPLineExpected, "u8").
WithLocation
(1, 18)
1940
Diagnostic(ErrorCode.ERR_MissingPPFile, "@").
WithLocation
(1, 9)
1961
Diagnostic(ErrorCode.ERR_EndOfPPLineExpected, "U8").
WithLocation
(1, 18)
1983
Diagnostic(ErrorCode.ERR_MissingPPFile, "@").
WithLocation
(1, 9)
2004
Diagnostic(ErrorCode.ERR_RawStringNotInDirectives, "").
WithLocation
(1, 9),
2007
Diagnostic(ErrorCode.ERR_EndOfPPLineExpected, "u8").
WithLocation
(1, 22)
2029
Diagnostic(ErrorCode.ERR_MissingPPFile, "@").
WithLocation
(1, 9)
2050
Diagnostic(ErrorCode.ERR_RawStringNotInDirectives, "").
WithLocation
(1, 9),
2053
Diagnostic(ErrorCode.ERR_EndOfPPLineExpected, "U8").
WithLocation
(1, 22)
2075
Diagnostic(ErrorCode.ERR_MissingPPFile, "@").
WithLocation
(1, 9)
2098
Diagnostic(ErrorCode.ERR_RawStringNotInDirectives, "").
WithLocation
(1, 9),
2101
Diagnostic(ErrorCode.ERR_EndOfPPLineExpected, "u8").
WithLocation
(2, 4)
2127
Diagnostic(ErrorCode.ERR_MissingPPFile, "@").
WithLocation
(1, 9)
2150
Diagnostic(ErrorCode.ERR_RawStringNotInDirectives, "").
WithLocation
(1, 9),
2153
Diagnostic(ErrorCode.ERR_EndOfPPLineExpected, "U8").
WithLocation
(2, 4)
2179
Diagnostic(ErrorCode.ERR_MissingPPFile, "@").
WithLocation
(1, 9)
2200
Diagnostic(ErrorCode.ERR_EndOfPPLineExpected, "u8").
WithLocation
(1, 30)
2238
Diagnostic(ErrorCode.ERR_MissingPPFile, "@").
WithLocation
(1, 21)
2276
Diagnostic(ErrorCode.ERR_RawStringNotInDirectives, "").
WithLocation
(1, 21),
2279
Diagnostic(ErrorCode.ERR_EndOfPPLineExpected, "u8").
WithLocation
(1, 34)
2317
Diagnostic(ErrorCode.ERR_MissingPPFile, "@").
WithLocation
(1, 21)
2355
Diagnostic(ErrorCode.ERR_LineSpanDirectiveRequiresSpace, "(1, 2)").
WithLocation
(1, 6)
2393
Diagnostic(ErrorCode.ERR_LineSpanDirectiveRequiresSpace, "5").
WithLocation
(1, 22)
2432
Diagnostic(ErrorCode.ERR_LineSpanDirectiveRequiresSpace, @"""file.cs""").
WithLocation
(1, 24)
2471
Diagnostic(ErrorCode.ERR_LineSpanDirectiveRequiresSpace, @"""file.cs""").
WithLocation
(1, 22)
Parsing\LocalFunctionParsingTests.cs (177)
56
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("}").
WithLocation
(6, 17),
59
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 17),
62
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(10, 15),
65
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(">").
WithLocation
(10, 15),
68
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(10, 15),
71
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(10, 15),
74
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(10, 15),
77
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(14, 16),
80
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(">").
WithLocation
(14, 16),
83
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(14, 16),
86
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(14, 16),
89
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(14, 16),
92
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(18, 17),
95
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(18, 17),
98
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(22, 15),
101
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(22, 15),
104
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(26, 16),
107
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(26, 16));
563
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 6),
566
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(8, 1));
618
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 6),
621
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(8, 1));
699
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "local").WithArguments("local()").
WithLocation
(6, 21),
702
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "local").WithArguments("local()").
WithLocation
(6, 21),
705
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(6, 21));
709
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "extern").WithArguments("extern local functions", "9.0").
WithLocation
(6, 9),
712
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "local").WithArguments("local()").
WithLocation
(6, 21),
715
Diagnostic(ErrorCode.WRN_ExternMethodNoImplementation, "local").WithArguments("local()").
WithLocation
(6, 21),
718
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(6, 21));
791
Diagnostic(ErrorCode.ERR_ExternHasBody, "local").WithArguments("local()").
WithLocation
(6, 21),
794
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(6, 21));
798
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "extern").WithArguments("extern local functions", "9.0").
WithLocation
(6, 9),
801
Diagnostic(ErrorCode.ERR_ExternHasBody, "local").WithArguments("local()").
WithLocation
(6, 21),
804
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(6, 21));
874
Diagnostic(ErrorCode.ERR_BadMemberFlag, "extern").WithArguments("extern").
WithLocation
(1, 1));
880
Diagnostic(ErrorCode.ERR_BadMemberFlag, "extern").WithArguments("extern").
WithLocation
(1, 1));
979
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
982
Diagnostic(ErrorCode.WRN_UnreferencedVar, "local").WithArguments("local").
WithLocation
(6, 20));
1064
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
1067
Diagnostic(ErrorCode.WRN_UnreferencedVar, "local1").WithArguments("local1").
WithLocation
(6, 20),
1070
Diagnostic(ErrorCode.WRN_UnreferencedVar, "local2").WithArguments("local2").
WithLocation
(6, 28));
1087
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("}").
WithLocation
(6, 12),
1090
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 12));
1146
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "").WithArguments("}").
WithLocation
(6, 12),
1149
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 12)
1202
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("(").
WithLocation
(11, 19),
1205
Diagnostic(ErrorCode.ERR_ConstraintOnlyAllowedOnGenericDecl, "where").
WithLocation
(7, 19),
1208
Diagnostic(ErrorCode.ERR_LocalDuplicate, "goo").WithArguments("goo").
WithLocation
(9, 13),
1211
Diagnostic(ErrorCode.ERR_ConstraintOnlyAllowedOnGenericDecl, "where").
WithLocation
(9, 19),
1214
Diagnostic(ErrorCode.ERR_LocalDuplicate, "goo").WithArguments("goo").
WithLocation
(11, 13),
1217
Diagnostic(ErrorCode.ERR_ReturnExpected, "goo").WithArguments("goo<T>()").
WithLocation
(11, 13),
1220
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "goo").WithArguments("goo").
WithLocation
(7, 13),
1223
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "goo").WithArguments("goo").
WithLocation
(9, 13),
1226
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "goo").WithArguments("goo").
WithLocation
(11, 13));
1250
Diagnostic(ErrorCode.ERR_BadMemberFlag, "async").WithArguments("async").
WithLocation
(3, 9),
1253
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(3, 15),
1256
Diagnostic(ErrorCode.ERR_TypeExpected, "virtual").
WithLocation
(3, 22),
1259
Diagnostic(ErrorCode.ERR_IdentifierExpected, "virtual").
WithLocation
(3, 22),
1262
Diagnostic(ErrorCode.ERR_SemicolonExpected, "virtual").
WithLocation
(3, 22),
1265
Diagnostic(ErrorCode.ERR_RbraceExpected, "virtual").
WithLocation
(3, 22),
1268
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(9, 1));
1307
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "c").WithArguments("c").
WithLocation
(2, 7),
1310
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "local").WithArguments("local functions", "7.0").
WithLocation
(6, 13),
1313
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(6, 13),
1316
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "local").WithArguments("local functions", "7.0").
WithLocation
(10, 13),
1319
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "local").WithArguments("local").
WithLocation
(10, 13));
1385
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 30),
1388
Diagnostic(ErrorCode.ERR_SemicolonExpected, "=>").
WithLocation
(6, 32),
1391
Diagnostic(ErrorCode.ERR_RbraceExpected, "=>").
WithLocation
(6, 32),
1394
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(6, 39),
1397
Diagnostic(ErrorCode.ERR_SemicolonExpected, "=>").
WithLocation
(8, 38),
1400
Diagnostic(ErrorCode.ERR_RbraceExpected, "=>").
WithLocation
(8, 38),
1403
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(8, 45));
1723
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "static").WithArguments("static local functions", "8.0").
WithLocation
(5, 9),
1726
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F").WithArguments("F").
WithLocation
(5, 21));
1730
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F").WithArguments("F").
WithLocation
(5, 21));
1734
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F").WithArguments("F").
WithLocation
(5, 21));
1808
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "static").WithArguments("static local functions", "8.0").
WithLocation
(5, 9),
1811
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "F1").
WithLocation
(5, 27),
1814
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F1").WithArguments("F1").
WithLocation
(5, 27),
1817
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "static").WithArguments("static local functions", "8.0").
WithLocation
(6, 15),
1820
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "F2").
WithLocation
(6, 27),
1823
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F2").WithArguments("F2").
WithLocation
(6, 27));
1827
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "F1").
WithLocation
(5, 27),
1830
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F1").WithArguments("F1").
WithLocation
(5, 27),
1833
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "F2").
WithLocation
(6, 27),
1836
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F2").WithArguments("F2").
WithLocation
(6, 27));
1840
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "F1").
WithLocation
(5, 27),
1843
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F1").WithArguments("F1").
WithLocation
(5, 27),
1846
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "F2").
WithLocation
(6, 27),
1849
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F2").WithArguments("F2").
WithLocation
(6, 27));
1942
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "static").WithArguments("static local functions", "8.0").
WithLocation
(5, 9),
1945
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(5, 16),
1948
Diagnostic(ErrorCode.ERR_DuplicateModifier, "static").WithArguments("static").
WithLocation
(5, 16),
1951
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "static").WithArguments("static local functions", "8.0").
WithLocation
(5, 16),
1954
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F1").WithArguments("F1").
WithLocation
(5, 28),
1957
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "static").WithArguments("static local functions", "8.0").
WithLocation
(6, 9),
1960
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(6, 22),
1963
Diagnostic(ErrorCode.ERR_DuplicateModifier, "static").WithArguments("static").
WithLocation
(6, 22),
1966
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "static").WithArguments("static local functions", "8.0").
WithLocation
(6, 22),
1969
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "F2").
WithLocation
(6, 34),
1972
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F2").WithArguments("F2").
WithLocation
(6, 34));
1976
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(5, 16),
1979
Diagnostic(ErrorCode.ERR_DuplicateModifier, "static").WithArguments("static").
WithLocation
(5, 16),
1982
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F1").WithArguments("F1").
WithLocation
(5, 28),
1985
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(6, 22),
1988
Diagnostic(ErrorCode.ERR_DuplicateModifier, "static").WithArguments("static").
WithLocation
(6, 22),
1991
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "F2").
WithLocation
(6, 34),
1994
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F2").WithArguments("F2").
WithLocation
(6, 34));
1998
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(5, 16),
2001
Diagnostic(ErrorCode.ERR_DuplicateModifier, "static").WithArguments("static").
WithLocation
(5, 16),
2004
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F1").WithArguments("F1").
WithLocation
(5, 28),
2007
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(6, 22),
2010
Diagnostic(ErrorCode.ERR_DuplicateModifier, "static").WithArguments("static").
WithLocation
(6, 22),
2013
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "F2").
WithLocation
(6, 34),
2016
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "F2").WithArguments("F2").
WithLocation
(6, 34));
2021
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(5, 16),
2024
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(6, 22));
2030
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(5, 16),
2033
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(6, 22));
2039
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(5, 16),
2042
Diagnostic(ErrorCode.ERR_TypeExpected, "static").
WithLocation
(6, 22));
2130
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 15),
2133
Diagnostic(ErrorCode.ERR_DuplicateModifier, "async").WithArguments("async").
WithLocation
(6, 15));
2138
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 15));
2207
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 15),
2210
Diagnostic(ErrorCode.ERR_DuplicateModifier, "async").WithArguments("async").
WithLocation
(6, 15),
2213
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 21));
2218
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 15),
2221
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 21));
2291
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 15),
2294
Diagnostic(ErrorCode.ERR_DuplicateModifier, "async").WithArguments("async").
WithLocation
(6, 15),
2297
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 21),
2300
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 27));
2305
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 15),
2308
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 21),
2311
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 27));
2382
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 15),
2385
Diagnostic(ErrorCode.ERR_DuplicateModifier, "async").WithArguments("async").
WithLocation
(6, 15),
2388
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 21),
2391
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 27),
2394
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 33));
2399
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 15),
2402
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 21),
2405
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 27),
2408
Diagnostic(ErrorCode.ERR_TypeExpected, "async").
WithLocation
(6, 33));
2477
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(5, 9),
2480
Diagnostic(ErrorCode.ERR_IdentifierExpected, "static").
WithLocation
(5, 14),
2483
Diagnostic(ErrorCode.ERR_SemicolonExpected, "static").
WithLocation
(5, 14),
2486
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "static").WithArguments("static local functions", "8.0").
WithLocation
(5, 14),
2489
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "F").WithArguments("F").
WithLocation
(5, 21),
2492
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(5, 22),
2495
Diagnostic(ErrorCode.ERR_ReturnExpected, "").WithArguments("()").
WithLocation
(5, 22));
2499
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(5, 9),
2502
Diagnostic(ErrorCode.ERR_IdentifierExpected, "static").
WithLocation
(5, 14),
2505
Diagnostic(ErrorCode.ERR_SemicolonExpected, "static").
WithLocation
(5, 14),
2508
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "F").WithArguments("F").
WithLocation
(5, 21),
2511
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(5, 22),
2514
Diagnostic(ErrorCode.ERR_ReturnExpected, "").WithArguments("()").
WithLocation
(5, 22));
2518
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(5, 9),
2521
Diagnostic(ErrorCode.ERR_IdentifierExpected, "static").
WithLocation
(5, 14),
2524
Diagnostic(ErrorCode.ERR_SemicolonExpected, "static").
WithLocation
(5, 14),
2527
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "F").WithArguments("F").
WithLocation
(5, 21),
2530
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(5, 22),
2533
Diagnostic(ErrorCode.ERR_ReturnExpected, "").WithArguments("()").
WithLocation
(5, 22));
2538
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(5, 9),
2541
Diagnostic(ErrorCode.ERR_IdentifierExpected, "static").
WithLocation
(5, 14),
2544
Diagnostic(ErrorCode.ERR_SemicolonExpected, "static").
WithLocation
(5, 14),
2547
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(5, 22));
2553
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(5, 9),
2556
Diagnostic(ErrorCode.ERR_IdentifierExpected, "static").
WithLocation
(5, 14),
2559
Diagnostic(ErrorCode.ERR_SemicolonExpected, "static").
WithLocation
(5, 14),
2562
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(5, 22));
2568
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(5, 9),
2571
Diagnostic(ErrorCode.ERR_IdentifierExpected, "static").
WithLocation
(5, 14),
2574
Diagnostic(ErrorCode.ERR_SemicolonExpected, "static").
WithLocation
(5, 14),
2577
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(5, 22));
Parsing\MemberDeclarationParsingTests.cs (483)
39
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(1, 8)
122
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=").WithArguments("=").
WithLocation
(1, 3),
125
Diagnostic(ErrorCode.ERR_UnexpectedToken, "x").WithArguments("=").
WithLocation
(1, 1)
484
Diagnostic(ErrorCode.ERR_SyntaxError, ">").WithArguments("(").
WithLocation
(1, 14),
487
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(1, 14),
490
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(1, 27),
493
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 27),
496
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(1, 30),
499
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 31),
502
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 31)
567
Diagnostic(ErrorCode.ERR_SyntaxError, ">").WithArguments("(").
WithLocation
(1, 15),
570
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(1, 15),
573
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(1, 27),
576
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 27),
579
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(1, 30),
582
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 31),
585
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 31)
650
Diagnostic(ErrorCode.ERR_SyntaxError, ">=").WithArguments("(").
WithLocation
(1, 14),
653
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">=").
WithLocation
(1, 14),
656
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=>").
WithLocation
(1, 27),
659
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(1, 27),
662
Diagnostic(ErrorCode.ERR_SyntaxError, "x").WithArguments(",").
WithLocation
(1, 30),
665
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 31),
668
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 31)
732
Diagnostic(ErrorCode.ERR_UnexpectedToken, "public int x;").WithArguments("public").
WithLocation
(1, 1)
781
Diagnostic(ErrorCode.ERR_UnexpectedToken, "async Task<SomeNamespace.SomeType Method").WithArguments("(").
WithLocation
(1, 1),
784
Diagnostic(ErrorCode.ERR_SyntaxError, "Method").WithArguments(",").
WithLocation
(1, 35),
787
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(">").
WithLocation
(1, 41)
832
Diagnostic(ErrorCode.ERR_UnexpectedToken, "public Task<SomeNamespace.SomeType Method").WithArguments("(").
WithLocation
(1, 1),
835
Diagnostic(ErrorCode.ERR_SyntaxError, "Method").WithArguments(",").
WithLocation
(1, 36),
838
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(">").
WithLocation
(1, 42)
883
Diagnostic(ErrorCode.ERR_UnexpectedToken, "async Task<SomeNamespace. Method").WithArguments("(").
WithLocation
(1, 1),
886
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(">").
WithLocation
(1, 33)
926
Diagnostic(ErrorCode.ERR_UnexpectedToken, "public Task<SomeNamespace. Method").WithArguments("(").
WithLocation
(1, 1),
929
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(">").
WithLocation
(1, 34)
969
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(1, 26)
1016
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(1, 27)
1097
Diagnostic(ErrorCode.ERR_SemiOrLBraceOrArrowExpected, "set").
WithLocation
(1, 24),
1100
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 30)
1263
Diagnostic(ErrorCode.ERR_UnexpectedToken, "required Prop").WithArguments("{").
WithLocation
(1, 1),
1266
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "{").WithArguments("{").
WithLocation
(1, 15)
1311
Diagnostic(ErrorCode.ERR_UnexpectedToken, "required required").WithArguments("{").
WithLocation
(1, 1),
1314
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "{").WithArguments("{").
WithLocation
(1, 19)
1330
Diagnostic(ErrorCode.ERR_UnexpectedToken, "required required Prop").WithArguments("{").
WithLocation
(1, 1),
1333
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "{").WithArguments("{").
WithLocation
(1, 24)
1426
Diagnostic(ErrorCode.ERR_UnexpectedToken, "required Field").WithArguments(";").
WithLocation
(1, 1),
1429
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(1, 15)
1471
Diagnostic(ErrorCode.ERR_UnexpectedToken, "required required").WithArguments(";").
WithLocation
(1, 1),
1474
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(1, 18)
1654
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "required").WithArguments("required").
WithLocation
(1, 27),
1657
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "required ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 27),
1660
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "required").WithArguments("required").
WithLocation
(1, 27),
1663
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 36),
1666
Diagnostic(ErrorCode.ERR_ReturnExpected, "C").WithArguments("C.implicit operator C(S)").
WithLocation
(1, 45),
1669
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "S").WithArguments("S").
WithLocation
(1, 47));
1674
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 26));
1721
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 28)
1752
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 23)
1778
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 21)
1806
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(1, 16)
1826
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(1, 11)
1846
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(1, 9)
1864
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(1, 9)
2079
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(5, 23),
2082
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(5, 23),
2085
Diagnostic(ErrorCode.ERR_TypeExpected, "[").
WithLocation
(6, 13),
2088
Diagnostic(ErrorCode.ERR_TypeExpected, "*").
WithLocation
(7, 13),
2091
Diagnostic(ErrorCode.ERR_TypeExpected, "?").
WithLocation
(8, 13)
2326
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
2329
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 22),
2332
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
2335
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 35),
2338
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int, int)").
WithLocation
(1, 35));
2342
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
2345
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
2348
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 35),
2351
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int, int)").
WithLocation
(1, 35));
2437
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 18),
2440
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
2443
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 22),
2446
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
2449
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 26),
2452
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 26),
2455
Diagnostic(ErrorCode.ERR_BadMemberFlag, "").WithArguments("public").
WithLocation
(1, 26),
2458
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
2462
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 18),
2465
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
2468
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
2471
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 26),
2474
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 26),
2477
Diagnostic(ErrorCode.ERR_BadMemberFlag, "").WithArguments("public").
WithLocation
(1, 26),
2480
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
2486
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 8),
2489
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 16),
2492
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 16)
2562
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 18),
2565
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
2568
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 22),
2571
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
2574
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 26),
2577
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 26),
2580
Diagnostic(ErrorCode.ERR_BadMemberFlag, "").WithArguments("public").
WithLocation
(1, 26),
2583
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
2587
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 18),
2590
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
2593
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
2596
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 26),
2599
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 26),
2602
Diagnostic(ErrorCode.ERR_BadMemberFlag, "").WithArguments("public").
WithLocation
(1, 26),
2605
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
2610
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 8),
2613
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 16),
2616
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 16)
2686
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
2689
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 22),
2692
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
2695
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 26),
2698
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 35),
2701
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 35));
2705
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
2708
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
2711
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 26),
2714
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 35),
2717
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 35));
2722
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 16)
2792
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 22),
2795
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 22),
2798
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 22),
2801
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 24),
2804
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 33),
2807
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 33));
2811
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 22),
2814
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 22),
2817
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 24),
2820
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 33),
2823
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 33));
2828
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 14)
2890
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 16)
2970
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(1, 13)
3136
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 18)
3207
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
3210
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 22),
3213
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
3216
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 35),
3219
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int, int)").
WithLocation
(1, 35));
3223
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
3226
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
3229
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 35),
3232
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int, int)").
WithLocation
(1, 35));
3322
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 18),
3325
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
3328
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 22),
3331
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
3334
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 26),
3337
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 26),
3340
Diagnostic(ErrorCode.ERR_BadMemberFlag, "").WithArguments("public").
WithLocation
(1, 26),
3343
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
3347
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 18),
3350
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
3353
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
3356
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 26),
3359
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 26),
3362
Diagnostic(ErrorCode.ERR_BadMemberFlag, "").WithArguments("public").
WithLocation
(1, 26),
3365
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
3370
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 8),
3373
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 16),
3376
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 16)
3450
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 18),
3453
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
3456
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 22),
3459
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
3462
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 26),
3465
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 26),
3468
Diagnostic(ErrorCode.ERR_BadMemberFlag, "").WithArguments("public").
WithLocation
(1, 26),
3471
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
3475
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 18),
3478
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
3481
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
3484
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 26),
3487
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 26),
3490
Diagnostic(ErrorCode.ERR_BadMemberFlag, "").WithArguments("public").
WithLocation
(1, 26),
3493
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
3498
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 8),
3501
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 16),
3504
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 16)
3578
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
3581
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 22),
3584
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
3587
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 26),
3590
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 35),
3593
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 35));
3597
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 22),
3600
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 22),
3603
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 26),
3606
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 35),
3609
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 35));
3614
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 16)
3688
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 22),
3691
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 22),
3694
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 22),
3697
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 24),
3700
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 33),
3703
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 33));
3707
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 22),
3710
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 22),
3713
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 24),
3716
Diagnostic(ErrorCode.ERR_BadMemberFlag, "+").WithArguments("public").
WithLocation
(1, 33),
3719
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 33));
3724
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 14)
3790
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 16)
3874
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(1, 13)
4052
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 18)
4127
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".operato").
WithLocation
(1, 14)
4190
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(1, 16)
4253
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
4256
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 15),
4259
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
4262
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int, int)").
WithLocation
(1, 28));
4266
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
4269
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
4272
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int, int)").
WithLocation
(1, 28));
4357
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 11),
4360
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
4363
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 15),
4366
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
4369
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 19),
4372
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 19),
4375
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 19));
4379
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 11),
4382
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
4385
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
4388
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 19),
4391
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 19),
4394
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 19));
4399
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 1),
4402
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 9),
4405
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 9)
4474
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 11),
4477
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
4480
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 15),
4483
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
4486
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 19),
4489
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 19),
4492
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 19));
4496
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 11),
4499
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
4502
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
4505
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 19),
4508
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 19),
4511
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 19));
4516
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 1),
4519
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 9),
4522
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 9)
4591
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
4594
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 15),
4597
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
4600
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 19),
4603
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 28));
4607
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
4610
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
4613
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 19),
4616
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 28));
4621
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 9)
4690
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 15),
4693
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 15),
4696
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 15),
4699
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 17),
4702
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
4706
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 15),
4709
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 15),
4712
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 17),
4715
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
4720
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 7)
4781
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 9)
4860
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(1, 6)
5023
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 11)
5093
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
5096
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 15),
5099
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
5102
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int, int)").
WithLocation
(1, 28));
5106
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
5109
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
5112
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int, int)").
WithLocation
(1, 28));
5201
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 11),
5204
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
5207
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 15),
5210
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
5213
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 19),
5216
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 19),
5219
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 19));
5223
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 11),
5226
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
5229
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
5232
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 19),
5235
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 19),
5238
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 19));
5243
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 1),
5246
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(1, 9),
5249
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(1, 9)
5322
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 11),
5325
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
5328
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 15),
5331
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
5334
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 19),
5337
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 19),
5340
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 19));
5344
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 11),
5347
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
5350
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
5353
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 19),
5356
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 19),
5359
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "").WithArguments("C.operator +(int)").
WithLocation
(1, 19));
5364
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(1, 1),
5367
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(1, 9),
5370
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(1, 9)
5443
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
5446
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 15),
5449
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
5452
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 19),
5455
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 28));
5459
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 15),
5462
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 15),
5465
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 19),
5468
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 28));
5473
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 9)
5546
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 15),
5549
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 15),
5552
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 15),
5555
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 17),
5558
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
5562
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 15),
5565
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 15),
5568
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 17),
5571
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "+").WithArguments("C.operator +(int)").
WithLocation
(1, 26));
5576
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 7)
5641
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 9)
5724
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(1, 6)
5899
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 11)
5973
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".operato").
WithLocation
(1, 7)
6035
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(1, 9)
6097
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".operato").
WithLocation
(1, 9)
6165
Diagnostic(ErrorCode.ERR_IdentifierExpected, "operator").
WithLocation
(1, 5)
6232
Diagnostic(ErrorCode.ERR_UnexpectedToken, "N.I. ").WithArguments("int").
WithLocation
(1, 1),
6235
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(1, 6)
6280
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
6283
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 20),
6286
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
6289
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.implicit operator int(int)").
WithLocation
(1, 33));
6293
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
6296
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
6299
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.implicit operator int(int)").
WithLocation
(1, 33));
6367
Diagnostic(ErrorCode.ERR_SyntaxError, "N").WithArguments("explicit").
WithLocation
(1, 11),
6370
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 11),
6373
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 11),
6376
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 11),
6379
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.explicit operator int(int)").
WithLocation
(1, 24));
6383
Diagnostic(ErrorCode.ERR_SyntaxError, "N").WithArguments("explicit").
WithLocation
(1, 11),
6386
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 11),
6389
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 11),
6392
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.explicit operator int(int)").
WithLocation
(1, 24));
6398
Diagnostic(ErrorCode.ERR_SyntaxError, "N").WithArguments("explicit").
WithLocation
(1, 1)
6465
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments("explicit").
WithLocation
(1, 1)
6518
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
6521
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 20),
6524
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
6527
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 24),
6530
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.implicit operator int(int)").
WithLocation
(1, 33));
6534
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
6537
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
6540
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 24),
6543
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.implicit operator int(int)").
WithLocation
(1, 33));
6549
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 14)
6618
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 20),
6621
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 20),
6624
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 20),
6627
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 22),
6630
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.explicit operator int(int)").
WithLocation
(1, 31));
6634
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 20),
6637
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 20),
6640
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 22),
6643
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.explicit operator int(int)").
WithLocation
(1, 31));
6649
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 12)
6710
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 14)
6772
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(1, 11)
6935
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 16)
7005
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
7008
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 20),
7011
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
7014
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.explicit operator int(int)").
WithLocation
(1, 33));
7018
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
7021
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
7024
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.explicit operator int(int)").
WithLocation
(1, 33));
7096
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
7099
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 20),
7102
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
7105
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(".").
WithLocation
(1, 24),
7108
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments("operator").
WithLocation
(1, 24),
7111
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.implicit operator int(int)").
WithLocation
(1, 24));
7115
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
7118
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
7121
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(".").
WithLocation
(1, 24),
7124
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments("operator").
WithLocation
(1, 24),
7127
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.implicit operator int(int)").
WithLocation
(1, 24));
7133
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(".").
WithLocation
(1, 14),
7136
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments("operator").
WithLocation
(1, 14)
7209
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
7212
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I.").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 20),
7215
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
7218
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments("operator").
WithLocation
(1, 25),
7221
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.explicit operator int(int)").
WithLocation
(1, 25));
7225
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
7228
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
7231
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments("operator").
WithLocation
(1, 25),
7234
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.explicit operator int(int)").
WithLocation
(1, 25));
7240
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments("operator").
WithLocation
(1, 15)
7313
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
7316
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "N.I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 20),
7319
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
7322
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 24),
7325
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.implicit operator int(int)").
WithLocation
(1, 33));
7329
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "N").WithArguments("N").
WithLocation
(1, 20),
7332
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "N.I").WithArguments("N.I").
WithLocation
(1, 20),
7335
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 24),
7338
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.implicit operator int(int)").
WithLocation
(1, 33));
7344
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 14)
7417
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 20),
7420
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "I ").WithArguments("static abstract members in interfaces", "11.0").
WithLocation
(1, 20),
7423
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 20),
7426
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 22),
7429
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.explicit operator int(int)").
WithLocation
(1, 31));
7433
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "I").WithArguments("I").
WithLocation
(1, 20),
7436
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "I").WithArguments("I").
WithLocation
(1, 20),
7439
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 22),
7442
Diagnostic(ErrorCode.ERR_ExplicitImplementationOfOperatorsMustBeStatic, "int").WithArguments("C.explicit operator int(int)").
WithLocation
(1, 31));
7448
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments(".").
WithLocation
(1, 12)
7513
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 14)
7579
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(1, 11)
7754
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 16)
7828
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".operato").
WithLocation
(1, 12)
7890
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(1, 14)
7952
Diagnostic(ErrorCode.ERR_SyntaxError, "T").WithArguments(".").
WithLocation
(1, 12),
7955
Diagnostic(ErrorCode.ERR_SyntaxError, "T").WithArguments("operator").
WithLocation
(1, 12)
8009
Diagnostic(ErrorCode.ERR_SyntaxError, "T").WithArguments("operator").
WithLocation
(1, 12)
8063
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 21)
8117
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 21)
8176
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 21)
8222
Diagnostic(ErrorCode.ERR_SyntaxError, "T2").WithArguments(".").
WithLocation
(1, 15),
8225
Diagnostic(ErrorCode.ERR_SyntaxError, "T2").WithArguments("operator").
WithLocation
(1, 15)
8287
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 21),
8290
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 28)
8336
Diagnostic(ErrorCode.ERR_TypeExpected, ")").
WithLocation
(1, 29),
8339
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("(").
WithLocation
(1, 30),
8342
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 30)
8397
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("(").
WithLocation
(1, 35),
8400
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 35)
8456
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(1, 26)
8502
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 21),
8505
Diagnostic(ErrorCode.ERR_SyntaxError, "int").WithArguments(",").
WithLocation
(1, 28)
8560
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".operato").
WithLocation
(1, 14)
8628
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("operator").
WithLocation
(2, 9),
8631
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(2, 9)
8721
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(1, 4)
8779
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(1, 8)
8837
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(1, 11)
8906
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 9)
8960
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 11)
9022
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(1, 13)
9084
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(1, 6)
9182
Diagnostic(ErrorCode.ERR_NoEnumConstraint, "enum").
WithLocation
(4, 39)
9250
Diagnostic(ErrorCode.ERR_NoEnumConstraint, "enum").
WithLocation
(2, 38)
9303
Diagnostic(ErrorCode.ERR_NoEnumConstraint, "enum").
WithLocation
(4, 48)
9374
Diagnostic(ErrorCode.ERR_NoEnumConstraint, "enum").
WithLocation
(6, 47)
9460
Diagnostic(ErrorCode.ERR_NoDelegateConstraint, "delegate").
WithLocation
(2, 34)
9510
Diagnostic(ErrorCode.ERR_NoDelegateConstraint, "delegate").
WithLocation
(2, 41)
9565
Diagnostic(ErrorCode.ERR_NoDelegateConstraint, "delegate").
WithLocation
(2, 40)
9621
Diagnostic(ErrorCode.ERR_NoDelegateConstraint, "delegate").
WithLocation
(1, 23),
9624
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(1, 31),
9627
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 31)
10019
Diagnostic(ErrorCode.ERR_MisplacedUnchecked, "unchecked").
WithLocation
(1, 12));
10078
Diagnostic(ErrorCode.ERR_MisplacedUnchecked, "unchecked").
WithLocation
(1, 14));
10139
Diagnostic(ErrorCode.ERR_MisplacedUnchecked, "unchecked").
WithLocation
(1, 19));
10393
Diagnostic(ErrorCode.ERR_LbraceExpected, ";").
WithLocation
(4, 26));
10447
Diagnostic(ErrorCode.ERR_LbraceExpected, ";").
WithLocation
(4, 26));
Parsing\NameParsingTests.cs (9)
915
Diagnostic(ErrorCode.ERR_BadArity, "M<,>").WithArguments("M", "method group", "2").
WithLocation
(5, 9));
934
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion1, "<").WithArguments("generics", "2").
WithLocation
(5, 10));
1013
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion1, "<").WithArguments("generics", "2").
WithLocation
(3, 11),
1016
Diagnostic(ErrorCode.ERR_BadArity, "M<,>").WithArguments("M", "method group", "2").
WithLocation
(5, 9),
1019
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion1, "<").WithArguments("generics", "2").
WithLocation
(5, 10));
1144
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "X<>").
WithLocation
(9, 15));
1269
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "X<>").
WithLocation
(9, 11));
1433
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "X<>").
WithLocation
(13, 11),
1436
Diagnostic(ErrorCode.ERR_UnexpectedUnboundGenericName, "Y<,>").
WithLocation
(13, 16));
Parsing\NullableParsingTests.cs (32)
33
Diagnostic(ErrorCode.ERR_CStyleArray, "[]").
WithLocation
(3, 13),
36
Diagnostic(ErrorCode.ERR_SyntaxError, "?").WithArguments(",").
WithLocation
(3, 15),
39
Diagnostic(ErrorCode.ERR_SemicolonExpected, "F").
WithLocation
(3, 17),
42
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(3, 18),
45
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(3, 18));
138
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(object[]??)").WithArguments("null").
WithLocation
(1, 1),
141
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "object").WithArguments("object").
WithLocation
(1, 2),
144
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(1, 9),
147
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(1, 12));
190
Diagnostic(ErrorCode.ERR_UnexpectedToken, "(object[?])").WithArguments("null").
WithLocation
(1, 1),
193
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "object").WithArguments("object").
WithLocation
(1, 2),
196
Diagnostic(ErrorCode.ERR_IdentifierExpected, "?").
WithLocation
(1, 9));
556
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "?").WithArguments("?").
WithLocation
(1, 9),
559
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 12),
562
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 12));
687
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "break").WithArguments("break").
WithLocation
(1, 25),
690
Diagnostic(ErrorCode.ERR_SyntaxError, "break").WithArguments(":").
WithLocation
(1, 25));
744
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "switch (e) { case T[] t: break; }").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
747
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 9),
750
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "T").WithArguments("T").
WithLocation
(1, 19));
812
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "switch (e) { case T[]? t: break; }").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
815
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 9),
818
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "T[]").WithArguments("type pattern", "9.0").
WithLocation
(1, 19),
821
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "T").WithArguments("T").
WithLocation
(1, 19),
824
Diagnostic(ErrorCode.ERR_SyntaxError, "?").WithArguments(":").
WithLocation
(1, 22),
827
Diagnostic(ErrorCode.ERR_RbraceExpected, "?").
WithLocation
(1, 22),
830
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "t").
WithLocation
(1, 24));
835
Diagnostic(ErrorCode.ERR_SyntaxError, "?").WithArguments(":").
WithLocation
(1, 22),
838
Diagnostic(ErrorCode.ERR_RbraceExpected, "?").
WithLocation
(1, 22));
1378
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 17),
1381
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 17),
1384
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 17)
Parsing\ParserErrorMessageTests.cs (553)
51
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, ".").
WithLocation
(9, 17),
54
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(9, 20),
57
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "{").WithArguments("{").
WithLocation
(10, 4),
63
}").
WithLocation
(12, 4),
66
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(12, 4),
69
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(16, 1)
98
Diagnostic(ErrorCode.ERR_AbstractEventHasAccessors, "{").WithArguments("A.E").
WithLocation
(9, 36));
119
Diagnostic(ErrorCode.ERR_ConstraintOnlyAllowedOnGenericDecl, "where").
WithLocation
(3, 9));
160
Diagnostic(ErrorCode.ERR_BadMemberProtection, "f").
WithLocation
(4, 27),
163
Diagnostic(ErrorCode.ERR_BadMemberProtection, "F").
WithLocation
(5, 24),
166
Diagnostic(ErrorCode.ERR_BadMemberProtection, "P").
WithLocation
(6, 24),
169
Diagnostic(ErrorCode.ERR_BadMemberProtection, "set").
WithLocation
(7, 45),
172
Diagnostic(ErrorCode.ERR_InvalidPropertyAccessMod, "set").WithArguments("C.Q.set", "C.Q").
WithLocation
(7, 45),
175
Diagnostic(ErrorCode.ERR_BadMemberProtection, "C").
WithLocation
(8, 20),
178
Diagnostic(ErrorCode.ERR_BadMemberProtection, "Main").
WithLocation
(9, 31)
195
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 8)
241
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "namespace").WithArguments("", "namespace").
WithLocation
(2, 7),
244
Diagnostic(ErrorCode.ERR_ConstantExpected, "}").
WithLocation
(4, 42),
247
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(10, 1));
269
Diagnostic(ErrorCode.ERR_InvalidArray, "5").
WithLocation
(6, 32),
272
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(6, 33),
275
Diagnostic(ErrorCode.ERR_ValueExpected, "").
WithLocation
(6, 33),
278
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("]").
WithLocation
(6, 33),
281
Diagnostic(ErrorCode.ERR_InvalidArray, "").
WithLocation
(6, 33)
299
Diagnostic(ErrorCode.ERR_InvalidArray, "3").
WithLocation
(4, 21));
316
Diagnostic(ErrorCode.ERR_InvalidArray, "3").
WithLocation
(4, 21));
333
Diagnostic(ErrorCode.ERR_InvalidArray, "3").
WithLocation
(4, 22));
350
Diagnostic(ErrorCode.ERR_InvalidArray, "3").
WithLocation
(4, 22),
353
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments("]").
WithLocation
(4, 24));
370
Diagnostic(ErrorCode.ERR_InvalidArray, "3").
WithLocation
(4, 21),
373
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments("]").
WithLocation
(4, 23));
390
Diagnostic(ErrorCode.ERR_InvalidArray, "3").
WithLocation
(4, 21),
393
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments("]").
WithLocation
(4, 24));
410
Diagnostic(ErrorCode.ERR_InvalidArray, "3").
WithLocation
(4, 21));
427
Diagnostic(ErrorCode.ERR_InvalidArray, "3").
WithLocation
(4, 22));
444
Diagnostic(ErrorCode.ERR_InvalidArray, "3").
WithLocation
(4, 23));
461
Diagnostic(ErrorCode.ERR_InvalidArray, "3").
WithLocation
(4, 21),
464
Diagnostic(ErrorCode.ERR_InvalidArray, "3").
WithLocation
(4, 24));
481
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments("]").
WithLocation
(4, 22));
503
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(7, 18),
506
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(7, 22)
550
Diagnostic(ErrorCode.ERR_ValueExpected, "]").
WithLocation
(7, 21),
553
Diagnostic(ErrorCode.ERR_BadForeachDecl, "in").
WithLocation
(7, 23)
572
Diagnostic(ErrorCode.ERR_ParamsLast, "params int[] values").
WithLocation
(3, 24));
614
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(2, 1));
627
Diagnostic(ErrorCode.ERR_PartialMisplaced, "E").
WithLocation
(2, 14));
641
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(2, 20),
644
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments("(").
WithLocation
(2, 20),
647
Diagnostic(ErrorCode.ERR_CloseParenExpected, "{").
WithLocation
(2, 20),
650
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(2, 20),
653
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "{ }").
WithLocation
(2, 20),
656
Diagnostic(ErrorCode.ERR_PartialMisplaced, "").
WithLocation
(2, 20),
659
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "E").WithArguments("E").
WithLocation
(2, 18));
672
Diagnostic(ErrorCode.ERR_PartialMisplaced, "E").
WithLocation
(2, 23));
702
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[2]").
WithLocation
(7, 12),
705
Diagnostic(ErrorCode.WRN_UnreferencedVar, "myarray").WithArguments("myarray").
WithLocation
(7, 16),
708
Diagnostic(ErrorCode.ERR_BadSKunknown, "MyClass").WithArguments("MyClass", "type").
WithLocation
(8, 9),
711
Diagnostic(ErrorCode.ERR_SemicolonExpected, "m").
WithLocation
(8, 20),
714
Diagnostic(ErrorCode.ERR_IllegalStatement, "m").
WithLocation
(8, 20),
717
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[13,5]").
WithLocation
(9, 13),
720
Diagnostic(ErrorCode.WRN_UnreferencedVar, "b").WithArguments("b").
WithLocation
(9, 20),
723
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[14,5,6]").
WithLocation
(10, 15),
726
Diagnostic(ErrorCode.WRN_UnreferencedVar, "d").WithArguments("d").
WithLocation
(10, 24),
729
Diagnostic(ErrorCode.ERR_BadSKunknown, "E").WithArguments("MyClass.E", "type").
WithLocation
(11, 9),
732
Diagnostic(ErrorCode.ERR_ValueExpected, ",").
WithLocation
(11, 11),
735
Diagnostic(ErrorCode.ERR_SemicolonExpected, "e").
WithLocation
(11, 16),
738
Diagnostic(ErrorCode.ERR_IllegalStatement, "e").
WithLocation
(11, 16),
741
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[2]").
WithLocation
(14, 15),
744
Diagnostic(ErrorCode.WRN_UnreferencedField, "myarray").WithArguments("MyClass.myarray").
WithLocation
(14, 19),
747
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[0]").
WithLocation
(15, 19),
750
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "m").WithArguments("MyClass.m", "null").
WithLocation
(15, 23),
753
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[13,5]").
WithLocation
(16, 16),
756
Diagnostic(ErrorCode.WRN_UnreferencedField, "b").WithArguments("MyClass.b").
WithLocation
(16, 23),
759
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[14,5,6]").
WithLocation
(17, 18),
762
Diagnostic(ErrorCode.WRN_UnreferencedField, "d").WithArguments("MyClass.d").
WithLocation
(17, 27),
765
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[,50]").
WithLocation
(18, 13),
768
Diagnostic(ErrorCode.ERR_ValueExpected, "").
WithLocation
(18, 14),
771
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "e").WithArguments("MyClass.e", "null").
WithLocation
(18, 19)
796
Diagnostic(ErrorCode.ERR_NewBoundMustBeLast, "new").
WithLocation
(5, 22));
881
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "struct").
WithLocation
(5, 41),
884
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "struct").
WithLocation
(6, 37),
887
Diagnostic(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, "class").
WithLocation
(7, 37));
910
Diagnostic(ErrorCode.ERR_NewBoundWithVal, "new").
WithLocation
(4, 42));
941
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "I").
WithLocation
(14, 30),
944
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "T").
WithLocation
(15, 32),
947
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "new()").
WithLocation
(17, 46),
950
Diagnostic(ErrorCode.ERR_OverrideWithConstraints, "A").
WithLocation
(18, 55),
953
Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M4").WithArguments("B.M4<T>()").
WithLocation
(19, 37));
979
Diagnostic(ErrorCode.ERR_StaticConstructorWithExplicitConstructorCall, "base").WithArguments("cly").
WithLocation
(12, 24),
982
Diagnostic(ErrorCode.ERR_NoCorrespondingArgument, "@cly").WithArguments("i", "x.clx.clx(int)").
WithLocation
(8, 18));
999
Diagnostic(ErrorCode.ERR_StaticConstructorWithExplicitConstructorCall, "this").WithArguments("C").
WithLocation
(5, 18));
1021
Diagnostic(ErrorCode.ERR_CStyleArray, "[2]").
WithLocation
(6, 20),
1024
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "2").
WithLocation
(6, 21),
1027
Diagnostic(ErrorCode.ERR_CStyleArray, "[0]").
WithLocation
(7, 18),
1030
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "0").
WithLocation
(7, 19),
1033
Diagnostic(ErrorCode.ERR_CStyleArray, "[13,5]").
WithLocation
(8, 15),
1036
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "13").
WithLocation
(8, 16),
1039
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "5").
WithLocation
(8, 19),
1042
Diagnostic(ErrorCode.ERR_CStyleArray, "[14,5,6]").
WithLocation
(9, 17),
1045
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "14").
WithLocation
(9, 18),
1048
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "5").
WithLocation
(9, 21),
1051
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "6").
WithLocation
(9, 23),
1054
Diagnostic(ErrorCode.WRN_UnreferencedVar, "myarray").WithArguments("myarray").
WithLocation
(6, 13),
1057
Diagnostic(ErrorCode.WRN_UnreferencedVar, "m").WithArguments("m").
WithLocation
(7, 17),
1060
Diagnostic(ErrorCode.WRN_UnreferencedVar, "b").WithArguments("b").
WithLocation
(8, 14),
1063
Diagnostic(ErrorCode.WRN_UnreferencedVar, "d").WithArguments("d").
WithLocation
(9, 16)
1106
Diagnostic(ErrorCode.ERR_BadConstraintType, "T*").
WithLocation
(2, 15),
1109
Diagnostic(ErrorCode.ERR_BadConstraintType, "T[]").
WithLocation
(3, 15),
1112
Diagnostic(ErrorCode.ERR_BadConstraintType, "T*").
WithLocation
(9, 19),
1115
Diagnostic(ErrorCode.ERR_BadConstraintType, "T[]").
WithLocation
(10, 19),
1121
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "T*").
WithLocation
(2, 15),
1124
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "T*").
WithLocation
(9, 19));
1235
Diagnostic(ErrorCode.ERR_InvalidAnonymousTypeMemberDeclarator, "a.b = 1").
WithLocation
(7, 23),
1238
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(7, 23),
1241
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 13));
1260
Diagnostic(ErrorCode.ERR_InvalidAnonymousTypeMemberDeclarator, "s.Length = 1").
WithLocation
(7, 23),
1263
Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "s.Length").WithArguments("string.Length").
WithLocation
(7, 23));
1282
Diagnostic(ErrorCode.ERR_InvalidAnonymousTypeMemberDeclarator, "s.ToString() = 1").
WithLocation
(7, 23),
1285
Diagnostic(ErrorCode.ERR_AssgLvalueExpected, "s.ToString()").
WithLocation
(7, 23));
1507
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(7, 13),
1510
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(7, 13));
1606
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(8, 10),
1609
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("switch").
WithLocation
(9, 16));
1632
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(8, 15)
1676
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(6, 16),
1679
Diagnostic(ErrorCode.WRN_UnreferencedField, "i").WithArguments("x.clx.i").
WithLocation
(5, 13));
1696
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(4, 12));
1713
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(4, 12),
1716
Diagnostic(ErrorCode.ERR_BadMemberFlag, "C").WithArguments("public").
WithLocation
(4, 20));
1731
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(4, 12),
1734
Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("C.x", "0").
WithLocation
(4, 23));
1749
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(4, 12));
1764
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(4, 12));
1779
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(4, 12));
1794
Diagnostic(ErrorCode.ERR_DuplicateModifier, "private").WithArguments("private").
WithLocation
(4, 33));
1809
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(4, 12));
1823
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(2, 8));
1837
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(2, 8));
1851
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(2, 8));
1865
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(2, 8));
1877
Diagnostic(ErrorCode.ERR_DuplicateModifier, "public").WithArguments("public").
WithLocation
(2, 8));
1909
Diagnostic(ErrorCode.ERR_DuplicateAccessor, "get").
WithLocation
(8, 19),
1912
Diagnostic(ErrorCode.ERR_DuplicateAccessor, "set").
WithLocation
(13, 18),
1915
Diagnostic(ErrorCode.ERR_DuplicateAccessor, "get").
WithLocation
(18, 19),
1918
Diagnostic(ErrorCode.ERR_DuplicateAccessor, "set").
WithLocation
(19, 18),
1921
Diagnostic(ErrorCode.ERR_DuplicatePropertyAccessMods, "this").WithArguments("Container.this[int]").
WithLocation
(15, 16),
1924
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(1, 1));
1945
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "char").
WithLocation
(6, 18)
1965
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "I").
WithLocation
(4, 10),
1966
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "C").
WithLocation
(5, 10),
1967
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "E").
WithLocation
(6, 10),
1968
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "System.Enum").
WithLocation
(7, 10),
1969
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "string").
WithLocation
(8, 10),
1970
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "float").
WithLocation
(9, 10),
1971
Diagnostic(ErrorCode.ERR_IntegralTypeExpected, "decimal").
WithLocation
(10, 10));
2177
Diagnostic(ErrorCode.ERR_BadExceptionType, "int").
WithLocation
(10, 15),
2180
Diagnostic(ErrorCode.ERR_BadExceptionType, "byte").
WithLocation
(13, 15),
2183
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(2, 1));
2213
Diagnostic(ErrorCode.ERR_NamedArgumentExpected, "b").
WithLocation
(9, 15),
2216
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(9, 15),
2219
Diagnostic(ErrorCode.ERR_BadCtorArgCount, "Goo(a=5, b)").WithArguments("x.GooAttribute", "1").
WithLocation
(9, 6));
2254
Diagnostic(ErrorCode.ERR_TooManyCatches, "catch").
WithLocation
(16, 9),
2257
Diagnostic(ErrorCode.ERR_TooManyCatches, "catch").
WithLocation
(17, 9),
2260
Diagnostic(ErrorCode.ERR_TooManyCatches, "catch").
WithLocation
(18, 9),
2263
Diagnostic(ErrorCode.WRN_FilterIsConstantFalse, "false").
WithLocation
(18, 21));
2366
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "(C c1, C c2)").
WithLocation
(4, 40));
2424
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ">").WithArguments(">").
WithLocation
(1, 2),
2427
Diagnostic(ErrorCode.ERR_NameNotInContext, "Roslyn").WithArguments("Roslyn").
WithLocation
(1, 4),
2430
Diagnostic(ErrorCode.ERR_SemicolonExpected, "Basic").
WithLocation
(1, 27),
2433
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Basic").WithArguments("Basic").
WithLocation
(1, 27),
2436
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 32),
2439
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 32)
2459
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "MyLabel: {}").
WithLocation
(6, 35),
2462
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "MyLabel").
WithLocation
(6, 35));
2481
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "int j;").
WithLocation
(6, 35),
2484
Diagnostic(ErrorCode.WRN_UnreferencedVar, "j").WithArguments("j").
WithLocation
(6, 39));
2503
Diagnostic(ErrorCode.ERR_BadEmbeddedStmt, "void j() { }").
WithLocation
(6, 35),
2506
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "j").WithArguments("j").
WithLocation
(6, 40));
2687
Diagnostic(ErrorCode.ERR_BadNewExpr, "base").
WithLocation
(7, 21),
2690
Diagnostic(ErrorCode.ERR_SemicolonExpected, "base").
WithLocation
(7, 21),
2693
Diagnostic(ErrorCode.ERR_BadNewExpr, "this").
WithLocation
(8, 21),
2696
Diagnostic(ErrorCode.ERR_SemicolonExpected, "this").
WithLocation
(8, 21));
2717
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(7, 21),
2720
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new ()").WithArguments("new()").
WithLocation
(7, 21));
2742
Diagnostic(ErrorCode.ERR_BadNewExpr, "base").
WithLocation
(7, 21),
2745
Diagnostic(ErrorCode.ERR_SemicolonExpected, "base").
WithLocation
(7, 21),
2748
Diagnostic(ErrorCode.ERR_BadNewExpr, "this").
WithLocation
(8, 21),
2751
Diagnostic(ErrorCode.ERR_SemicolonExpected, "this").
WithLocation
(8, 21));
2771
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(7, 21),
2774
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new ()").WithArguments("new()").
WithLocation
(7, 21));
2794
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "new").WithArguments("target-typed object creation", "9.0").
WithLocation
(7, 21),
2797
Diagnostic(ErrorCode.ERR_ImplicitObjectCreationNoTargetType, "new ()").WithArguments("new()").
WithLocation
(7, 21));
2816
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(6, 22),
2819
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(2, 1));
2858
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(4, 19),
2861
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(4, 23),
2864
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(4, 23),
2867
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments("(").
WithLocation
(4, 32),
2870
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").
WithLocation
(4, 32),
2873
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 42),
2876
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(4, 43),
2879
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(",").
WithLocation
(4, 43),
2882
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(6, 17),
2885
Diagnostic(ErrorCode.ERR_OvlOperatorExpected, "(").
WithLocation
(8, 30),
2888
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("(").
WithLocation
(8, 31),
2891
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(12, 1)
2913
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(4, 19),
2916
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(4, 23),
2919
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(4, 23),
2922
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "").WithArguments("A.operator +((?, ?))").
WithLocation
(4, 23),
2925
Diagnostic(ErrorCode.ERR_BadUnaryOperatorSignature, "").
WithLocation
(4, 23),
2928
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments("(").
WithLocation
(4, 32),
2931
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").
WithLocation
(4, 32),
2934
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "()").WithArguments("tuples", "7.0").
WithLocation
(4, 41),
2937
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 42),
2940
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(4, 43),
2943
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(",").
WithLocation
(4, 43),
2946
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(6, 17),
2949
Diagnostic(ErrorCode.ERR_OvlOperatorExpected, "(").
WithLocation
(8, 30),
2952
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("(").
WithLocation
(8, 31),
2955
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(12, 1));
2960
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(4, 19),
2963
Diagnostic(ErrorCode.ERR_SyntaxError, "explicit").WithArguments("operator").
WithLocation
(4, 23),
2966
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "explicit").
WithLocation
(4, 23),
2969
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments("(").
WithLocation
(4, 32),
2972
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").
WithLocation
(4, 32),
2975
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 42),
2978
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(4, 43),
2981
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(",").
WithLocation
(4, 43),
2984
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(6, 17),
2987
Diagnostic(ErrorCode.ERR_OvlOperatorExpected, "(").
WithLocation
(8, 30),
2990
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("(").
WithLocation
(8, 31),
2993
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(12, 1));
3064
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(3, 7));
3081
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(3, 17));
3092
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(1, 17));
3110
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(6, 25));
3125
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(4, 32),
3128
Diagnostic(ErrorCode.ERR_ThisInBadContext, "this").
WithLocation
(3, 41));
3146
Diagnostic(ErrorCode.ERR_CloseParenExpected, "this").
WithLocation
(6, 16),
3149
Diagnostic(ErrorCode.ERR_SyntaxError, "this").WithArguments("=>").
WithLocation
(6, 16),
3152
Diagnostic(ErrorCode.ERR_SemicolonExpected, "object").
WithLocation
(6, 21),
3155
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(6, 29),
3158
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(6, 29));
3295
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(5, 27));
3312
Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").
WithLocation
(5, 34));
3337
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "message").WithArguments("message").
WithLocation
(8, 22),
3340
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[ObsoleteAttribute(message)]").
WithLocation
(10, 13),
3343
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[ObsoleteAttribute(message)]").
WithLocation
(10, 42),
3346
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[ObsoleteAttribute(message)]").
WithLocation
(11, 13));
3365
Diagnostic(ErrorCode.ERR_DupParamMod, "in").WithArguments("in").
WithLocation
(7, 35),
3368
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "in").WithArguments("in", "ref").
WithLocation
(5, 36),
3371
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "ref").WithArguments("ref", "in").
WithLocation
(6, 35),
3374
Diagnostic(ErrorCode.ERR_DupParamMod, "ref").WithArguments("ref").
WithLocation
(4, 36)
3422
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21),
3428
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21),
3434
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21),
3440
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21),
3446
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21),
3452
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21));
3487
Diagnostic(ErrorCode.ERR_BadParamModThis, "params").
WithLocation
(22, 40),
3490
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21),
3493
Diagnostic(ErrorCode.ERR_BadParamModThis, "params").
WithLocation
(16, 33),
3496
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21),
3499
Diagnostic(ErrorCode.ERR_BadParamModThis, "params").
WithLocation
(18, 36),
3502
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21),
3505
Diagnostic(ErrorCode.ERR_BadParamModThis, "params").
WithLocation
(19, 36),
3508
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21),
3511
Diagnostic(ErrorCode.ERR_BadParamModThis, "params").
WithLocation
(21, 40),
3514
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21),
3517
Diagnostic(ErrorCode.ERR_BadParamModThis, "params").
WithLocation
(15, 33),
3520
Diagnostic(ErrorCode.ERR_BadExtensionAgg, "GenExtensions").
WithLocation
(12, 21),
3523
Diagnostic(ErrorCode.ERR_BadParamModThis, "params").
WithLocation
(10, 40),
3526
Diagnostic(ErrorCode.ERR_BadParamModThis, "params").
WithLocation
(8, 36),
3529
Diagnostic(ErrorCode.ERR_BadParamModThis, "params").
WithLocation
(6, 33));
3550
Diagnostic(ErrorCode.ERR_BadThisParam, "this").WithArguments("Goo").
WithLocation
(10, 32),
3553
Diagnostic(ErrorCode.ERR_BadThisParam, "this").WithArguments("Goo").
WithLocation
(7, 37),
3556
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "t").WithArguments("t").
WithLocation
(9, 33),
3559
Diagnostic(ErrorCode.ERR_DupParamMod, "this").WithArguments("this").
WithLocation
(6, 33),
3562
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "t").WithArguments("t").
WithLocation
(6, 38),
3565
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Goo").WithArguments("Goo", "Extensions").
WithLocation
(9, 24),
3568
Diagnostic(ErrorCode.ERR_MemberAlreadyExists, "Goo").WithArguments("Goo", "Extensions").
WithLocation
(10, 24));
3603
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "ref").
WithLocation
(6, 32),
3606
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "ref").
WithLocation
(8, 35),
3609
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "ref").
WithLocation
(10, 39),
3612
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "ref").
WithLocation
(15, 32),
3615
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "ref").
WithLocation
(16, 32),
3618
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "ref").
WithLocation
(18, 35),
3621
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "ref").
WithLocation
(19, 35),
3624
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "ref").
WithLocation
(21, 39),
3627
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "ref").
WithLocation
(22, 39));
3648
Diagnostic(ErrorCode.ERR_DupParamMod, "in").WithArguments("in").
WithLocation
(8, 33),
3651
Diagnostic(ErrorCode.ERR_DupParamMod, "out").WithArguments("out").
WithLocation
(5, 34),
3654
Diagnostic(ErrorCode.ERR_DupParamMod, "this").WithArguments("this").
WithLocation
(6, 35),
3657
Diagnostic(ErrorCode.ERR_DupParamMod, "params").WithArguments("params").
WithLocation
(7, 37),
3660
Diagnostic(ErrorCode.ERR_DupParamMod, "ref").WithArguments("ref").
WithLocation
(4, 34));
3687
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "in").WithArguments("in", "ref").
WithLocation
(6, 32),
3690
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "ref").WithArguments("ref", "in").
WithLocation
(9, 34),
3693
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "in").WithArguments("in", "ref").
WithLocation
(10, 35),
3696
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "ref").WithArguments("ref", "in").
WithLocation
(13, 40),
3699
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "in").WithArguments("in", "ref").
WithLocation
(14, 41),
3702
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "ref").WithArguments("ref", "in").
WithLocation
(5, 31));
3753
Diagnostic(ErrorCode.ERR_ParamsCantBeWithModifier, "in").WithArguments("in").
WithLocation
(6, 35),
3756
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "params").WithArguments("params", "in").
WithLocation
(9, 34),
3759
Diagnostic(ErrorCode.ERR_ParamsCantBeWithModifier, "in").WithArguments("in").
WithLocation
(10, 38),
3762
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "params").WithArguments("params", "in").
WithLocation
(13, 40),
3765
Diagnostic(ErrorCode.ERR_ParamsCantBeWithModifier, "in").WithArguments("in").
WithLocation
(14, 44),
3768
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "params").WithArguments("params", "in").
WithLocation
(5, 31));
3795
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "in").WithArguments("in", "out").
WithLocation
(6, 32),
3798
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "in").
WithLocation
(9, 34),
3801
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "in").WithArguments("in", "out").
WithLocation
(10, 35),
3804
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "in").
WithLocation
(13, 40),
3807
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "in").WithArguments("in", "out").
WithLocation
(14, 41),
3810
Diagnostic(ErrorCode.ERR_BadParameterModifiers, "out").WithArguments("out", "in").
WithLocation
(5, 31));
3906
Diagnostic(ErrorCode.ERR_LbraceExpected, ".").
WithLocation
(1, 15),
3909
Diagnostic(ErrorCode.ERR_RbraceExpected, ".").
WithLocation
(1, 15),
3912
Diagnostic(ErrorCode.ERR_EOFExpected, ".").
WithLocation
(1, 15),
3917
").
WithLocation
(1, 16),
3920
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 17),
3923
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(",").
WithLocation
(1, 17),
3926
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 2),
3929
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(4, 1));
3973
Diagnostic(ErrorCode.ERR_InExpected, ")").
WithLocation
(6, 19),
3976
Diagnostic(ErrorCode.ERR_BadForeachDecl, ")").
WithLocation
(6, 19),
3979
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(6, 19)
4127
Diagnostic(ErrorCode.ERR_BadBaseType, "Test1*").
WithLocation
(6, 15),
4130
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "Test1*").
WithLocation
(6, 15),
4133
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "Test1*").WithArguments("Test1*").
WithLocation
(6, 15),
4136
Diagnostic(ErrorCode.ERR_BadBaseType, "Test1[]").
WithLocation
(3, 15),
4139
Diagnostic(ErrorCode.ERR_NonInterfaceInInterfaceList, "Test1[]").WithArguments("Test1[]").
WithLocation
(3, 15));
4197
Diagnostic(ErrorCode.ERR_ExpectedEndTry, "}").
WithLocation
(6, 15));
4295
Diagnostic(ErrorCode.ERR_SyntaxError, ",").WithArguments(":").
WithLocation
(7, 27),
4298
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(7, 27),
4301
Diagnostic(ErrorCode.ERR_SemicolonExpected, "++").
WithLocation
(7, 30),
4304
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ":").WithArguments(":").
WithLocation
(7, 33),
4307
Diagnostic(ErrorCode.ERR_SemicolonExpected, ":").
WithLocation
(7, 33),
4310
Diagnostic(ErrorCode.ERR_RbraceExpected, ":").
WithLocation
(7, 33),
4313
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(8, 29),
4316
Diagnostic(ErrorCode.ERR_RbraceExpected, ",").
WithLocation
(8, 29));
4349
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "return").WithArguments("return").
WithLocation
(5, 23),
4352
Diagnostic(ErrorCode.ERR_SyntaxError, "return").WithArguments(":").
WithLocation
(5, 23),
4355
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "return").WithArguments("return").
WithLocation
(5, 23),
4358
Diagnostic(ErrorCode.ERR_SemicolonExpected, "return").
WithLocation
(5, 23),
4361
Diagnostic(ErrorCode.ERR_SemicolonExpected, ":").
WithLocation
(5, 31),
4364
Diagnostic(ErrorCode.ERR_RbraceExpected, ":").
WithLocation
(5, 31));
4385
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "goto").WithArguments("goto").
WithLocation
(5, 24),
4388
Diagnostic(ErrorCode.ERR_SyntaxError, "goto").WithArguments(":").
WithLocation
(5, 24),
4391
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "goto").WithArguments("goto").
WithLocation
(5, 24),
4394
Diagnostic(ErrorCode.ERR_SemicolonExpected, "goto").
WithLocation
(5, 24),
4397
Diagnostic(ErrorCode.ERR_SemicolonExpected, ":").
WithLocation
(5, 33),
4400
Diagnostic(ErrorCode.ERR_RbraceExpected, ":").
WithLocation
(5, 33));
4447
Diagnostic(ErrorCode.ERR_CloseParenExpected, "3").
WithLocation
(12, 18),
4450
Diagnostic(ErrorCode.ERR_SemicolonExpected, "3").
WithLocation
(12, 18),
4453
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(12, 19),
4456
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(12, 19));
4472
Diagnostic(ErrorCode.ERR_BadVarDecl, "(").
WithLocation
(4, 26),
4475
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(4, 26),
4478
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(4, 27)
4575
Diagnostic(ErrorCode.ERR_NoVoidParameter, "void").
WithLocation
(4, 21)
4636
Diagnostic(ErrorCode.ERR_IndexerNeedsParam, "]").
WithLocation
(4, 14));
4672
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(3, 19),
4675
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(3, 23),
4678
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(3, 23),
4681
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments("(").
WithLocation
(3, 32),
4684
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").
WithLocation
(3, 32),
4687
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(3, 47),
4690
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(3, 49),
4693
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(3, 49),
4696
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(3, 59),
4699
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(4, 1)
4722
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "goo").WithArguments("goo").
WithLocation
(2, 7),
4725
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(3, 19),
4728
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(3, 23),
4731
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(3, 23),
4734
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "").WithArguments("goo.operator +((goo f, ?))").
WithLocation
(3, 23),
4737
Diagnostic(ErrorCode.ERR_BadUnaryOperatorSignature, "").
WithLocation
(3, 23),
4740
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments("(").
WithLocation
(3, 32),
4743
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").
WithLocation
(3, 32),
4746
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(goo f)").WithArguments("tuples", "7.0").
WithLocation
(3, 41),
4749
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(3, 47),
4752
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(3, 49),
4755
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(3, 49),
4758
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(3, 59),
4761
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(4, 1));
4766
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "int").WithArguments("+").
WithLocation
(3, 19),
4769
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(3, 23),
4772
Diagnostic(ErrorCode.ERR_OvlUnaryOperatorExpected, "implicit").
WithLocation
(3, 23),
4775
Diagnostic(ErrorCode.ERR_SyntaxError, "operator").WithArguments("(").
WithLocation
(3, 32),
4778
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").
WithLocation
(3, 32),
4781
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(3, 47),
4784
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(3, 49),
4787
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(3, 49),
4790
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(3, 59),
4793
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(4, 1));
4835
Diagnostic(ErrorCode.ERR_SemicolonExpected, "30").
WithLocation
(7, 34),
4838
Diagnostic(ErrorCode.ERR_BadStackAllocExpr, "int").
WithLocation
(6, 29),
4841
Diagnostic(ErrorCode.ERR_BadStackAllocExpr, "int").
WithLocation
(7, 30),
4844
Diagnostic(ErrorCode.ERR_IllegalStatement, "30").
WithLocation
(7, 34)
4861
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "stackalloc int[1]").WithArguments("System.Span`1").
WithLocation
(4, 14)
4881
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "stackalloc int[1]").WithArguments("System.Span`1").
WithLocation
(6, 33)
4901
Diagnostic(ErrorCode.ERR_BadConstType, "int*").WithArguments("int*").
WithLocation
(6, 15)
4923
Diagnostic(ErrorCode.ERR_NoConvToIDisp, "var v = stackalloc int[1]").WithArguments("System.Span<int>").
WithLocation
(6, 16));
4944
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "stackalloc int[1]").WithArguments("System.Span`1").
WithLocation
(6, 39)
5052
Diagnostic(ErrorCode.ERR_MissingArraySize, "[]").
WithLocation
(6, 26),
5055
Diagnostic(ErrorCode.ERR_MissingArraySize, "[,]").
WithLocation
(7, 27),
5058
Diagnostic(ErrorCode.ERR_MissingArraySize, "[]").
WithLocation
(8, 28),
5061
Diagnostic(ErrorCode.ERR_MissingArraySize, "[]").
WithLocation
(9, 32)
5113
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "private").
WithLocation
(17, 9),
5116
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "public").
WithLocation
(18, 9));
5137
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "public").
WithLocation
(7, 9),
5140
Diagnostic(ErrorCode.ERR_NoModifiersOnAccessor, "private").
WithLocation
(8, 9));
5168
Diagnostic(ErrorCode.ERR_ParamsCantBeWithModifier, "ref").WithArguments("ref").
WithLocation
(4, 45),
5171
Diagnostic(ErrorCode.ERR_ParamsCantBeWithModifier, "out").WithArguments("out").
WithLocation
(7, 45));
5326
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "}").WithArguments("}").
WithLocation
(8, 33));
5346
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(9, 36),
5349
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(9, 36),
5352
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(9, 36),
5355
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(9, 36),
5358
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(9, 36),
5361
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(9, 36));
5389
Diagnostic(ErrorCode.ERR_UnexpectedGenericName, "this").
WithLocation
(4, 12),
5392
Diagnostic(ErrorCode.ERR_IllegalVarianceSyntax, "out").
WithLocation
(6, 10),
5395
Diagnostic(ErrorCode.ERR_IllegalVarianceSyntax, "out").
WithLocation
(11, 9),
5398
Diagnostic(ErrorCode.ERR_IllegalVarianceSyntax, "in").
WithLocation
(3, 12),
5401
Diagnostic(ErrorCode.ERR_IllegalVarianceSyntax, "out").
WithLocation
(13, 12),
5404
Diagnostic(ErrorCode.ERR_IllegalVarianceSyntax, "out").
WithLocation
(8, 12),
5407
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M").WithArguments("S<T>.M<U>()").
WithLocation
(8, 10),
5410
Diagnostic(ErrorCode.ERR_ConcreteMissingBody, "M").WithArguments("A<T>.M<U>()").
WithLocation
(13, 10),
5413
Diagnostic(ErrorCode.ERR_IllegalVarianceSyntax, "out").
WithLocation
(17, 13),
5416
Diagnostic(ErrorCode.ERR_IllegalVarianceSyntax, "out").
WithLocation
(15, 14));
5433
Diagnostic(ErrorCode.ERR_IllegalVarianceSyntax, "in").
WithLocation
(5, 20),
5436
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "Local").WithArguments("Local").
WithLocation
(5, 14));
5464
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(12, 22),
5467
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "N1Alias::N2").
WithLocation
(6, 15),
5470
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "N1.global").WithArguments("global", "N1").
WithLocation
(12, 13),
5473
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using N1Alias = N1;").
WithLocation
(2, 1),
5476
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System;").
WithLocation
(1, 1));
5610
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion1, "partial").WithArguments("partial types", "2").
WithLocation
(2, 1));
5631
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "Goo").WithArguments("C.Goo()").
WithLocation
(4, 17),
5634
Diagnostic(ErrorCode.ERR_PartialMethodOnlyInPartialClass, "Goo").
WithLocation
(4, 17),
5637
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "Goo").WithArguments("C.Goo()").
WithLocation
(4, 17),
5640
Diagnostic(ErrorCode.ERR_ReturnExpected, "Goo").WithArguments("C.Goo()").
WithLocation
(4, 17));
5644
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "partial").WithArguments("partial method", "3").
WithLocation
(4, 5),
5647
Diagnostic(ErrorCode.ERR_PartialMethodMustHaveLatent, "Goo").WithArguments("C.Goo()").
WithLocation
(4, 17),
5650
Diagnostic(ErrorCode.ERR_PartialMethodOnlyInPartialClass, "Goo").
WithLocation
(4, 17),
5653
Diagnostic(ErrorCode.ERR_PartialMethodWithNonVoidReturnMustHaveAccessMods, "Goo").WithArguments("C.Goo()").
WithLocation
(4, 17),
5656
Diagnostic(ErrorCode.ERR_ReturnExpected, "Goo").WithArguments("C.Goo()").
WithLocation
(4, 17));
5679
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "var").WithArguments("implicitly typed local variable", "3").
WithLocation
(6, 9),
5682
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "from").WithArguments("query expression", "3").
WithLocation
(6, 17),
5685
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(6, 27));
5716
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "var").WithArguments("implicitly typed local variable", "3").
WithLocation
(6, 9),
5719
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "new").WithArguments("anonymous types", "3").
WithLocation
(6, 17));
5737
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new [] { }").
WithLocation
(6, 17));
5741
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "var").WithArguments("implicitly typed local variable", "3").
WithLocation
(6, 9),
5744
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "new").WithArguments("implicitly typed array", "3").
WithLocation
(6, 17),
5747
Diagnostic(ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, "new [] { }").
WithLocation
(6, 17));
5772
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Goo").WithArguments("Goo").
WithLocation
(6, 21));
5776
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "var").WithArguments("implicitly typed local variable", "3").
WithLocation
(6, 9),
5779
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Goo").WithArguments("Goo").
WithLocation
(6, 21),
5782
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "{").WithArguments("object initializer", "3").
WithLocation
(6, 25));
5806
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "a => b").WithArguments("inferred delegate type", "10.0").
WithLocation
(6, 17));
5810
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "var").WithArguments("implicitly typed local variable", "3").
WithLocation
(6, 9),
5813
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "a => b").WithArguments("inferred delegate type", "10.0").
WithLocation
(6, 17),
5816
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "=>").WithArguments("lambda expression", "3").
WithLocation
(6, 19));
5840
Diagnostic(ErrorCode.ERR_ReturnExpected, "Main").WithArguments("C.Main()").
WithLocation
(4, 23),
5843
Diagnostic(ErrorCode.WRN_FilterIsConstantTrue, "true").
WithLocation
(6, 29));
5847
Diagnostic(ErrorCode.ERR_ReturnExpected, "Main").WithArguments("C.Main()").
WithLocation
(4, 23),
5850
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "when").WithArguments("exception filter", "6").
WithLocation
(6, 23),
5853
Diagnostic(ErrorCode.WRN_FilterIsConstantTrue, "true").
WithLocation
(6, 29));
5871
Diagnostic(ErrorCode.ERR_SyntaxError, "Two").WithArguments(",").
WithLocation
(1, 6)
5929
Diagnostic(ErrorCode.WRN_GlobalAliasDefn, "global").
WithLocation
(2, 7),
5932
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "global").WithArguments("global").
WithLocation
(2, 7),
5935
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using global = MyClass;").
WithLocation
(2, 1));
5967
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(10, 17),
5970
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(10, 22),
5973
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(11, 20),
5976
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(12, 19),
5979
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(13, 11),
5982
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(15, 40),
5985
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(16, 29),
5988
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(17, 21));
6007
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 15),
6010
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(6, 15),
6013
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "").WithArguments("").
WithLocation
(9, 1),
6016
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(8, 11),
6019
Diagnostic(ErrorCode.ERR_ReturnExpected, "Main").WithArguments("MyClass.Main(bool)").
WithLocation
(4, 23));
6034
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[Goo(5)]").
WithLocation
(4, 27)
6075
Diagnostic(ErrorCode.WRN_EmptySwitch, "{").
WithLocation
(8, 9)
6144
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 16));
6152
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion3, "M").WithArguments("async function", "5").
WithLocation
(4, 16),
6155
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 16));
6172
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 23));
6179
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion3, "M").WithArguments("async function", "5").
WithLocation
(4, 23),
6182
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "M").
WithLocation
(4, 23));
6202
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Func<int, Task<int>>").WithArguments("Func<,>").
WithLocation
(6, 9),
6205
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Task<int>").WithArguments("Task<>").
WithLocation
(6, 19),
6208
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(6, 42));
6215
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Func<int, Task<int>>").WithArguments("Func<,>").
WithLocation
(6, 9),
6218
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Task<int>").WithArguments("Task<>").
WithLocation
(6, 19),
6221
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion4, "async").WithArguments("async function", "5").
WithLocation
(6, 34),
6224
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "=>").
WithLocation
(6, 42));
6244
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Func<int, Task<int>>").WithArguments("Func<,>").
WithLocation
(6, 9),
6247
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Task<int>").WithArguments("Task<>").
WithLocation
(6, 19),
6250
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "delegate").
WithLocation
(6, 40));
6257
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Func<int, Task<int>>").WithArguments("Func<,>").
WithLocation
(6, 9),
6260
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Task<int>").WithArguments("Task<>").
WithLocation
(6, 19),
6263
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion4, "async").WithArguments("async function", "5").
WithLocation
(6, 34),
6266
Diagnostic(ErrorCode.WRN_AsyncLacksAwaits, "delegate").
WithLocation
(6, 40));
6285
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Attr").WithArguments("AttrAttribute").
WithLocation
(2, 2),
6288
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Attr").WithArguments("Attr").
WithLocation
(2, 2),
6291
Diagnostic(ErrorCode.ERR_NameNotInContext, "M").WithArguments("M").
WithLocation
(7, 9));
6295
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Attr").WithArguments("AttrAttribute").
WithLocation
(2, 2),
6298
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Attr").WithArguments("Attr").
WithLocation
(2, 2),
6301
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion3, "x:").WithArguments("named argument", "4").
WithLocation
(2, 7),
6304
Diagnostic(ErrorCode.ERR_NameNotInContext, "M").WithArguments("M").
WithLocation
(7, 9),
6307
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion3, "y:").WithArguments("named argument", "4").
WithLocation
(7, 11));
6327
Diagnostic(ErrorCode.ERR_GlobalSingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(2, 19));
6331
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion1, "global").WithArguments("namespace alias qualifier", "2").
WithLocation
(2, 11),
6334
Diagnostic(ErrorCode.ERR_GlobalSingleTypeNameNotFound, "B").WithArguments("B").
WithLocation
(2, 19));
6351
Diagnostic(ErrorCode.ERR_AliasNotFound, "A").WithArguments("A").
WithLocation
(2, 11));
6355
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion1, "A").WithArguments("namespace alias qualifier", "2").
WithLocation
(2, 11),
6358
Diagnostic(ErrorCode.ERR_AliasNotFound, "A").WithArguments("A").
WithLocation
(2, 11));
6374
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion3, "=").WithArguments("optional parameter", "4").
WithLocation
(4, 18));
6395
Diagnostic(ErrorCode.ERR_NoSuchMember, "Goo").WithArguments("C", "Goo").
WithLocation
(6, 24));
6399
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "{").WithArguments("object initializer", "3").
WithLocation
(6, 22),
6402
Diagnostic(ErrorCode.ERR_NoSuchMember, "Goo").WithArguments("C", "Goo").
WithLocation
(6, 24));
6423
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, "{ 1, 2, 3 }").WithArguments("C").
WithLocation
(6, 22));
6427
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion2, "{").WithArguments("collection initializer", "3").
WithLocation
(6, 22),
6430
Diagnostic(ErrorCode.ERR_CollectionInitRequiresIEnumerable, "{ 1, 2, 3 }").WithArguments("C").
WithLocation
(6, 22));
6547
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Obsolete").WithArguments("ObsoleteAttribute").
WithLocation
(1, 9),
6550
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Obsolete").WithArguments("Obsolete").
WithLocation
(1, 9));
6554
Diagnostic(ErrorCode.WRN_NonECMAFeature, "module:").WithArguments("IDS_FeatureModuleAttrLoc").
WithLocation
(1, 2),
6557
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Obsolete").WithArguments("ObsoleteAttribute").
WithLocation
(1, 9),
6560
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Obsolete").WithArguments("Obsolete").
WithLocation
(1, 9));
6594
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(11, 51),
6597
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Exception").WithArguments("Exception").
WithLocation
(18, 18));
6601
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "L").WithArguments("readonly automatically implemented properties", "6").
WithLocation
(3, 9),
6604
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "=").WithArguments("auto property initializer", "6").
WithLocation
(3, 20),
6607
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "=>").WithArguments("expression-bodied method", "6").
WithLocation
(5, 13),
6610
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "=>").WithArguments("expression-bodied property", "6").
WithLocation
(7, 11),
6613
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "=>").WithArguments("expression-bodied indexer", "6").
WithLocation
(9, 21),
6616
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "=>").WithArguments("expression-bodied method", "6").
WithLocation
(11, 48),
6619
Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int").
WithLocation
(11, 51),
6622
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "=>").WithArguments("expression-bodied method", "6").
WithLocation
(13, 49),
6625
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Exception").WithArguments("Exception").
WithLocation
(18, 18),
6628
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "when").WithArguments("exception filter", "6").
WithLocation
(18, 32),
6631
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, "?").WithArguments("null propagating operator", "6").
WithLocation
(21, 18),
6634
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion5, @"$""hello world""").WithArguments("interpolated strings", "6").
WithLocation
(22, 17));
6791
Diagnostic(ErrorCode.ERR_LbraceExpected, "int").
WithLocation
(7, 14),
6794
Diagnostic(ErrorCode.ERR_SemicolonExpected, "int").
WithLocation
(7, 14),
6797
Diagnostic(ErrorCode.ERR_LbraceExpected, "int").
WithLocation
(8, 14),
6800
Diagnostic(ErrorCode.ERR_SemicolonExpected, "int").
WithLocation
(8, 14),
6803
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(9, 2));
Parsing\ParserRegressionTests.cs (21)
46
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(4, 5),
49
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(5, 5),
52
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "partial").WithArguments("partial").
WithLocation
(7, 13),
55
Diagnostic(ErrorCode.ERR_SemicolonExpected, "partial").
WithLocation
(7, 13),
58
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "partial").WithArguments("partial").
WithLocation
(8, 13),
61
Diagnostic(ErrorCode.ERR_SemicolonExpected, "partial").
WithLocation
(8, 13),
64
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(10, 5),
67
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(11, 5),
70
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S").WithArguments("abstract").
WithLocation
(10, 29),
73
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "").WithArguments("Program", "").
WithLocation
(8, 13),
76
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(8, 5),
79
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "partial").WithArguments("partial").
WithLocation
(7, 5));
193
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "}").WithArguments("}").
WithLocation
(6, 1));
208
Diagnostic(ErrorCode.WRN_WarningDirective, "hello").WithArguments("hello").
WithLocation
(4, 14),
211
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "}").WithArguments("}").
WithLocation
(6, 1));
353
Diagnostic(ErrorCode.ERR_SemicolonExpected, "::").
WithLocation
(6, 10),
356
Diagnostic(ErrorCode.ERR_IdentifierExpected, "::").
WithLocation
(6, 10));
490
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(4, 6));
580
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(4, 6));
670
Diagnostic(ErrorCode.ERR_IdentifierExpected, "::").
WithLocation
(5, 13));
758
Diagnostic(ErrorCode.ERR_UnexpectedAliasedName, "::").
WithLocation
(5, 13));
Parsing\ParsingErrorRecoveryTests.cs (68)
56
Diagnostic(ErrorCode.ERR_BadMemberFlag, accessibility).WithArguments(accessibility).
WithLocation
(7, 9),
59
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(11, 15),
62
Diagnostic(ErrorCode.ERR_BadMemberFlag, accessibility).WithArguments(accessibility).
WithLocation
(12, 9),
65
Diagnostic(ErrorCode.ERR_BadMemberFlag, accessibility).WithArguments(accessibility).
WithLocation
(19, 5),
68
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(20, 2)
1873
Diagnostic(ErrorCode.ERR_SyntaxError, "}").WithArguments("]").
WithLocation
(1, 21),
1876
Diagnostic(ErrorCode.ERR_LbraceExpected, "}").
WithLocation
(1, 21),
1879
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 22),
1882
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "c").WithArguments("c").
WithLocation
(1, 7),
1885
Diagnostic(ErrorCode.ERR_IndexerNeedsParam, "[").
WithLocation
(1, 19),
1888
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "this").WithArguments("c.this").
WithLocation
(1, 15));
1988
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments("$").
WithLocation
(1, 21),
1991
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "c").WithArguments("c").
WithLocation
(1, 7),
1994
Diagnostic(ErrorCode.ERR_IndexerNeedsParam, "]").
WithLocation
(1, 23),
1997
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "this").WithArguments("c.this").
WithLocation
(1, 15));
2076
Diagnostic(ErrorCode.ERR_SyntaxError, "public").WithArguments("]").
WithLocation
(1, 21),
2079
Diagnostic(ErrorCode.ERR_LbraceExpected, "public").
WithLocation
(1, 21),
2082
Diagnostic(ErrorCode.ERR_RbraceExpected, "public").
WithLocation
(1, 21),
2085
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "c").WithArguments("c").
WithLocation
(1, 7),
2088
Diagnostic(ErrorCode.ERR_IndexerNeedsParam, "[").
WithLocation
(1, 19),
2091
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "this").WithArguments("c.this").
WithLocation
(1, 15));
3924
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 31),
3927
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "c").WithArguments("c").
WithLocation
(1, 7),
3930
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "fixed(t v;").
WithLocation
(1, 22),
3933
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "t").WithArguments("t").
WithLocation
(1, 28),
3936
Diagnostic(ErrorCode.ERR_BadFixedInitType, "v").
WithLocation
(1, 30),
3939
Diagnostic(ErrorCode.ERR_FixedMustInit, "v").
WithLocation
(1, 30),
3942
Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";").
WithLocation
(1, 31));
4184
Diagnostic(ErrorCode.ERR_SyntaxError).WithArguments("]").
WithLocation
(1, 1),
4186
Diagnostic(ErrorCode.ERR_CloseParenExpected).
WithLocation
(1, 1)
4354
Diagnostic(ErrorCode.ERR_SyntaxError).WithArguments("]").
WithLocation
(1, 1),
4356
Diagnostic(ErrorCode.ERR_CloseParenExpected).
WithLocation
(1, 1)
5041
Diagnostic(ErrorCode.ERR_RbraceExpected, ";").
WithLocation
(1, 45));
5189
Diagnostic(ErrorCode.ERR_RbraceExpected, "while").
WithLocation
(1, 45),
5192
Diagnostic(ErrorCode.ERR_SemicolonExpected, "while").
WithLocation
(1, 45));
5358
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments("$").
WithLocation
(1, 45));
5386
Diagnostic(ErrorCode.ERR_InvalidExprTerm).WithArguments(";").
WithLocation
(1, 1),
5388
Diagnostic(ErrorCode.ERR_CloseParenExpected).
WithLocation
(1, 1)
5452
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "c").WithArguments("c").
WithLocation
(1, 7),
5455
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(y, ").WithArguments("tuples", "7.0").
WithLocation
(1, 30),
5458
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(1, 31),
5461
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(1, 34),
5464
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 34));
5493
Diagnostic(ErrorCode.ERR_InvalidExprTerm).WithArguments("while").
WithLocation
(1, 1),
5495
Diagnostic(ErrorCode.ERR_CloseParenExpected).
WithLocation
(1, 1),
5497
Diagnostic(ErrorCode.ERR_SemicolonExpected).
WithLocation
(1, 1)
5567
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "c").WithArguments("c").
WithLocation
(1, 7),
5570
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "(y, ").WithArguments("tuples", "7.0").
WithLocation
(1, 30),
5573
Diagnostic(ErrorCode.ERR_NameNotInContext, "y").WithArguments("y").
WithLocation
(1, 31),
5576
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "while").WithArguments("while").
WithLocation
(1, 34),
5579
Diagnostic(ErrorCode.ERR_CloseParenExpected, "while").
WithLocation
(1, 34),
5582
Diagnostic(ErrorCode.ERR_SemicolonExpected, "while").
WithLocation
(1, 34),
5585
Diagnostic(ErrorCode.ERR_BadSKunknown, "c").WithArguments("c", "type").
WithLocation
(1, 41));
6322
Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "namespace").WithArguments("", "namespace").
WithLocation
(1, 7));
6820
Diagnostic(ErrorCode.ERR_SyntaxError, "::").WithArguments(".").
WithLocation
(2, 4),
6823
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("[").
WithLocation
(2, 10),
6826
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(2, 10),
6829
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(2, 10),
6832
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(2, 10),
6835
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").
WithLocation
(2, 3),
6838
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "_").WithArguments("_").
WithLocation
(2, 1),
6840
Diagnostic(ErrorCode.ERR_IndexerNeedsParam).
WithLocation
(1, 1),
6843
Diagnostic(ErrorCode.ERR_ExplicitInterfaceImplementationNotInterface, "_").WithArguments("_").
WithLocation
(2, 3),
6846
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "this").WithArguments("<invalid-global-code>.this").
WithLocation
(2, 6));
6859
Diagnostic(ErrorCode.ERR_SemicolonExpected, "::").
WithLocation
(1, 4),
6862
Diagnostic(ErrorCode.ERR_IdentifierExpected, "::").
WithLocation
(1, 4),
6865
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 6),
6868
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 6)
Parsing\PatternParsingTests.cs (193)
53
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "case").WithArguments("pattern matching", "7.0").
WithLocation
(9, 13),
56
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "case").WithArguments("pattern matching", "7.0").
WithLocation
(11, 13),
59
Diagnostic(ErrorCode.ERR_PatternWrongType, "string").WithArguments("int", "string").
WithLocation
(11, 18),
62
Diagnostic(ErrorCode.ERR_LocalIllegallyOverrides, "s").WithArguments("s").
WithLocation
(11, 25),
65
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "is").WithArguments("pattern matching", "7.0").
WithLocation
(15, 26));
89
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "NeverReturnsFunction").WithArguments("local functions", "7.0").
WithLocation
(6, 14),
92
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "throw").WithArguments("throw expression", "7.0").
WithLocation
(6, 40),
95
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "throw").WithArguments("throw expression", "7.0").
WithLocation
(7, 21),
98
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "throw").WithArguments("throw expression", "7.0").
WithLocation
(8, 21),
101
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "throw").WithArguments("throw expression", "7.0").
WithLocation
(9, 18),
104
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "throw").WithArguments("throw expression", "7.0").
WithLocation
(11, 47),
107
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "throw").WithArguments("throw expression", "7.0").
WithLocation
(11, 85),
110
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion6, "throw").WithArguments("throw expression", "7.0").
WithLocation
(13, 42)
138
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "throw new NullReferenceException()").WithArguments("throw").
WithLocation
(7, 17),
141
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "throw new NullReferenceException()").WithArguments("throw").
WithLocation
(8, 18),
144
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(11, 27),
147
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(12, 11),
150
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(13, 15),
153
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(int, int)").WithArguments("System.ValueTuple`2").
WithLocation
(14, 9),
156
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(14, 28),
159
Diagnostic(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, "(1, throw null)").WithArguments("System.ValueTuple`2").
WithLocation
(14, 24),
162
Diagnostic(ErrorCode.ERR_ThrowMisplaced, "throw").
WithLocation
(15, 16),
165
Diagnostic(ErrorCode.WRN_UnreachableCode, "(").
WithLocation
(14, 9)
1053
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 10)
1849
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 30),
1852
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (x: ((3))):").WithArguments("case (x: ((3))):").
WithLocation
(1, 35),
1855
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "(x: ((3)))").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 40));
1859
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 30),
1862
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (x: ((3))):").WithArguments("case (x: ((3))):").
WithLocation
(1, 35));
1945
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 30),
1948
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (((x: 3))):").WithArguments("case (((x: 3))):").
WithLocation
(1, 35),
1951
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "(").WithArguments("parenthesized pattern", "9.0").
WithLocation
(1, 40),
1954
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "(").WithArguments("parenthesized pattern", "9.0").
WithLocation
(1, 41),
1957
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "(x: 3)").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 42));
2033
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 30),
2036
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case T(X: 3, Y: 4){L: 5} p:").WithArguments("case T(X: 3, Y: 4){L: 5} p:").
WithLocation
(1, 35),
2039
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "T(X: 3, Y: 4){L: 5} p").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 40),
2042
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "T").WithArguments("T").
WithLocation
(1, 40));
2157
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 30),
2160
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (: ").WithArguments("case (: ").
WithLocation
(1, 35),
2163
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "(: ").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 40),
2166
Diagnostic(ErrorCode.ERR_IdentifierExpected, ":").
WithLocation
(1, 41),
2169
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 43),
2172
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(":").
WithLocation
(1, 43));
2177
Diagnostic(ErrorCode.ERR_IdentifierExpected, ":").
WithLocation
(1, 20),
2180
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 22),
2183
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(":").
WithLocation
(1, 22));
2228
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 30),
2231
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case ( ").WithArguments("case ( ").
WithLocation
(1, 35),
2234
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "( ").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 40),
2237
Diagnostic(ErrorCode.ERR_CloseParenExpected, "}").
WithLocation
(1, 42),
2240
Diagnostic(ErrorCode.ERR_SyntaxError, "}").WithArguments(":").
WithLocation
(1, 42),
2243
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 45));
2248
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 20),
2251
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 20),
2254
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 20)
2297
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 30),
2300
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case ():").WithArguments("case ():").
WithLocation
(1, 35),
2303
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "()").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 40));
2343
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 18),
2346
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 18),
2349
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 18)
2388
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 30),
2391
Diagnostic(ErrorCode.ERR_SwitchFallOut, "case (x: ):").WithArguments("case (x: ):").
WithLocation
(1, 35),
2394
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "(x: )").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 40),
2397
Diagnostic(ErrorCode.ERR_MissingPattern, ")").
WithLocation
(1, 44));
2402
Diagnostic(ErrorCode.ERR_MissingPattern, ")").
WithLocation
(1, 23));
2465
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "switch").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 32),
2468
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(1, 32),
2471
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(1, 32));
2496
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "switch").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 32),
2499
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(1, 40),
2502
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(1, 45),
2505
Diagnostic(ErrorCode.ERR_NameNotInContext, "c").WithArguments("c").
WithLocation
(1, 48),
2508
Diagnostic(ErrorCode.ERR_NameNotInContext, "d").WithArguments("d").
WithLocation
(1, 53));
2564
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "switch").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 32),
2567
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(1, 41),
2570
Diagnostic(ErrorCode.ERR_SyntaxError, "?").WithArguments("=>").
WithLocation
(1, 42),
2573
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "?").WithArguments("?").
WithLocation
(1, 42),
2576
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(1, 43));
2581
Diagnostic(ErrorCode.ERR_SyntaxError, "?").WithArguments("=>").
WithLocation
(1, 13),
2584
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "?").WithArguments("?").
WithLocation
(1, 13));
2643
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "switch").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 32),
2646
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "(a, b, c)").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 41),
2649
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "(a, b, c)").WithArguments("int", "Deconstruct").
WithLocation
(1, 41),
2652
Diagnostic(ErrorCode.ERR_MissingDeconstruct, "(a, b, c)").WithArguments("int", "3").
WithLocation
(1, 41),
2655
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(1, 42),
2658
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(1, 45),
2661
Diagnostic(ErrorCode.ERR_NameNotInContext, "c").WithArguments("c").
WithLocation
(1, 48),
2664
Diagnostic(ErrorCode.ERR_NameNotInContext, "d").WithArguments("d").
WithLocation
(1, 54));
2737
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 30),
2740
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "T( : Q x ").WithArguments("recursive patterns", "8.0").
WithLocation
(1, 40),
2743
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "T").WithArguments("T").
WithLocation
(1, 40),
2746
Diagnostic(ErrorCode.ERR_IdentifierExpected, ":").
WithLocation
(1, 43),
2749
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Q").WithArguments("Q").
WithLocation
(1, 45),
2752
Diagnostic(ErrorCode.ERR_CloseParenExpected, "=").
WithLocation
(1, 49),
2755
Diagnostic(ErrorCode.ERR_SyntaxError, "=").WithArguments(":").
WithLocation
(1, 49),
2758
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(1, 49),
2761
Diagnostic(ErrorCode.ERR_NameNotInContext, "n").WithArguments("n").
WithLocation
(1, 51));
2768
Diagnostic(ErrorCode.ERR_IdentifierExpected, ":").
WithLocation
(1, 22),
2771
Diagnostic(ErrorCode.ERR_SyntaxError, "=").WithArguments(",").
WithLocation
(1, 28),
2774
Diagnostic(ErrorCode.ERR_SyntaxError, "n").WithArguments(",").
WithLocation
(1, 30),
2777
Diagnostic(ErrorCode.ERR_CloseParenExpected, ";").
WithLocation
(1, 31),
2780
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(":").
WithLocation
(1, 31)
2923
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ":").WithArguments(":").
WithLocation
(1, 27)
2974
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ":").WithArguments(":").
WithLocation
(1, 25)
6430
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 18),
6433
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 18)
6775
Diagnostic(ErrorCode.ERR_MissingPattern, ",").
WithLocation
(1, 12),
6778
Diagnostic(ErrorCode.ERR_SyntaxError, ",").WithArguments("=>").
WithLocation
(1, 12),
6781
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(1, 12)
6860
Diagnostic(ErrorCode.ERR_MissingPattern, ",").
WithLocation
(1, 8)
6898
Diagnostic(ErrorCode.ERR_MissingPattern, ")").
WithLocation
(1, 14)
6954
Diagnostic(ErrorCode.ERR_MissingPattern, ",").
WithLocation
(1, 8),
6957
Diagnostic(ErrorCode.ERR_MissingPattern, ")").
WithLocation
(1, 10)
7005
Diagnostic(ErrorCode.ERR_MissingPattern, ",").
WithLocation
(1, 19),
7008
Diagnostic(ErrorCode.ERR_SyntaxError, ",").WithArguments("=>").
WithLocation
(1, 19),
7011
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(1, 19)
7064
Diagnostic(ErrorCode.ERR_MissingPattern, ",").
WithLocation
(1, 13)
7839
Diagnostic(ErrorCode.ERR_UnexpectedToken, "a switch {}").WithArguments(".").
WithLocation
(1, 1));
7859
Diagnostic(ErrorCode.ERR_UnexpectedToken, "a switch {}").WithArguments("[").
WithLocation
(1, 1));
7879
Diagnostic(ErrorCode.ERR_UnexpectedToken, "a switch {}").WithArguments("(").
WithLocation
(1, 1));
7899
Diagnostic(ErrorCode.ERR_UnexpectedToken, "a switch {}").WithArguments("!").
WithLocation
(1, 1));
7919
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(1, 12)
7945
Diagnostic(ErrorCode.ERR_MissingPattern, ",").
WithLocation
(1, 12),
7948
Diagnostic(ErrorCode.ERR_SyntaxError, ",").WithArguments("=>").
WithLocation
(1, 12),
7951
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(1, 12),
7954
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(1, 13)
7996
Diagnostic(ErrorCode.ERR_MissingPattern, ",").
WithLocation
(1, 11),
7999
Diagnostic(ErrorCode.ERR_SyntaxError, ",").WithArguments("=>").
WithLocation
(1, 11),
8002
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(1, 11),
8005
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 12)
8079
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(1, 18)
8131
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(1, 26)
8220
Diagnostic(ErrorCode.ERR_UnexpectedToken, "+").WithArguments("+").
WithLocation
(1, 10)
8258
Diagnostic(ErrorCode.ERR_UnexpectedToken, "+").WithArguments("+").
WithLocation
(1, 9)
8296
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 26),
8299
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(1, 31),
8302
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "or").WithArguments("or pattern", "9.0").
WithLocation
(1, 33),
8305
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(1, 36));
8358
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 26),
8361
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(1, 31),
8364
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "and").WithArguments("and pattern", "9.0").
WithLocation
(1, 33),
8367
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(1, 37));
8420
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 26),
8423
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "not").WithArguments("not pattern", "9.0").
WithLocation
(1, 31),
8426
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(1, 35));
8472
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 26),
8475
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "not").WithArguments("not pattern", "9.0").
WithLocation
(1, 31));
8526
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 26),
8529
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(2, 5),
8532
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "or").WithArguments("or pattern", "9.0").
WithLocation
(2, 7),
8535
Diagnostic(ErrorCode.ERR_NameNotInContext, "b").WithArguments("b").
WithLocation
(2, 10),
8538
Diagnostic(ErrorCode.ERR_NameNotInContext, "c").WithArguments("c").
WithLocation
(3, 5),
8541
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "and").WithArguments("and pattern", "9.0").
WithLocation
(3, 7),
8544
Diagnostic(ErrorCode.ERR_NameNotInContext, "d").WithArguments("d").
WithLocation
(3, 11),
8547
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "not").WithArguments("not pattern", "9.0").
WithLocation
(4, 5),
8550
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(4, 9),
8553
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "not").WithArguments("not pattern", "9.0").
WithLocation
(5, 5));
8696
};").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
8699
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 5),
8702
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "<").WithArguments("relational pattern", "9.0").
WithLocation
(2, 5),
8705
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "<=").WithArguments("relational pattern", "9.0").
WithLocation
(3, 5),
8708
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, ">").WithArguments("relational pattern", "9.0").
WithLocation
(4, 5),
8711
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, ">=").WithArguments("relational pattern", "9.0").
WithLocation
(5, 5),
8714
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "==").WithArguments("relational pattern", "9.0").
WithLocation
(6, 5),
8717
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "==").WithArguments("==").
WithLocation
(6, 5),
8720
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "!=").WithArguments("relational pattern", "9.0").
WithLocation
(7, 5),
8723
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "!=").WithArguments("!=").
WithLocation
(7, 5));
8865
Diagnostic(ErrorCode.ERR_SyntaxError, "<").WithArguments("=>").
WithLocation
(2, 9),
8868
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "<").WithArguments("<").
WithLocation
(2, 9),
8871
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(2, 13),
8874
Diagnostic(ErrorCode.ERR_MissingPattern, "=>").
WithLocation
(2, 13),
8877
Diagnostic(ErrorCode.ERR_SyntaxError, "<").WithArguments("=>").
WithLocation
(3, 10),
8880
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "<").WithArguments("<").
WithLocation
(3, 10),
8883
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(3, 14),
8886
Diagnostic(ErrorCode.ERR_MissingPattern, "=>").
WithLocation
(3, 14),
8889
Diagnostic(ErrorCode.ERR_SyntaxError, "<").WithArguments("=>").
WithLocation
(4, 10),
8892
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "<").WithArguments("<").
WithLocation
(4, 10),
8895
Diagnostic(ErrorCode.ERR_SyntaxError, "=>").WithArguments(",").
WithLocation
(4, 14),
8898
Diagnostic(ErrorCode.ERR_MissingPattern, "=>").
WithLocation
(4, 14)
10284
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 6)
10318
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "+").WithArguments("+").
WithLocation
(1, 10)
10351
Diagnostic(ErrorCode.WRN_PrecedenceInversion, "+").WithArguments("+").
WithLocation
(1, 13)
11896
Diagnostic(ErrorCode.ERR_MissingPattern, "}").
WithLocation
(1, 32),
11899
Diagnostic(ErrorCode.ERR_CloseParenExpected, "}").
WithLocation
(1, 32),
11902
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 33)
12001
Diagnostic(ErrorCode.ERR_UnexpectedToken, "_ = i is (1, ").WithArguments("}").
WithLocation
(1, 1),
12004
Diagnostic(ErrorCode.ERR_MissingPattern, "}").
WithLocation
(1, 16),
12007
Diagnostic(ErrorCode.ERR_CloseParenExpected, "}").
WithLocation
(1, 16),
12010
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(1, 16)
12737
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(1, 21),
12740
Diagnostic(ErrorCode.ERR_SyntaxError, "1").WithArguments(",").
WithLocation
(1, 23));
Parsing\PatternParsingTests_ListPatterns.cs (15)
102
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(1, 15),
105
Diagnostic(ErrorCode.ERR_SyntaxError, "0").WithArguments(",").
WithLocation
(1, 17));
152
Diagnostic(ErrorCode.ERR_MissingPattern, ",").
WithLocation
(1, 8));
184
Diagnostic(ErrorCode.ERR_UnexpectedToken, "c is ()").WithArguments("[").
WithLocation
(1, 1));
211
Diagnostic(ErrorCode.ERR_UnexpectedToken, "c is {}").WithArguments("[").
WithLocation
(1, 1));
532
Diagnostic(ErrorCode.ERR_TripleDotNotAllowed, "").
WithLocation
(1, 6)
771
Diagnostic(ErrorCode.ERR_SyntaxError, "..").WithArguments(",").
WithLocation
(1, 13));
808
Diagnostic(ErrorCode.ERR_UnexpectedToken, "..").WithArguments("..").
WithLocation
(1, 12));
839
Diagnostic(ErrorCode.ERR_SyntaxError, "..").WithArguments(",").
WithLocation
(1, 9));
873
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 13),
876
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 14));
946
Diagnostic(ErrorCode.ERR_UnexpectedToken, "..").WithArguments("..").
WithLocation
(1, 11));
978
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(1, 9),
981
Diagnostic(ErrorCode.ERR_UnexpectedToken, "..").WithArguments("..").
WithLocation
(1, 16));
1031
Diagnostic(ErrorCode.ERR_UnexpectedToken, "..").WithArguments("..").
WithLocation
(1, 14));
Parsing\PatternParsingTests2.cs (19)
33
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 30),
36
Diagnostic(ErrorCode.ERR_NameNotInContext, "p").WithArguments("p").
WithLocation
(1, 44));
40
Diagnostic(ErrorCode.ERR_NameNotInContext, "e").WithArguments("e").
WithLocation
(1, 30),
43
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, ":").WithArguments("extended property patterns", "10.0").
WithLocation
(1, 42),
46
Diagnostic(ErrorCode.ERR_NameNotInContext, "p").WithArguments("p").
WithLocation
(1, 44));
117
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(1, 10),
120
Diagnostic(ErrorCode.ERR_SyntaxError, "p").WithArguments(",").
WithLocation
(1, 12));
220
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(1, 15),
223
Diagnostic(ErrorCode.ERR_SyntaxError, "p").WithArguments(",").
WithLocation
(1, 17));
387
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(1, 11),
390
Diagnostic(ErrorCode.ERR_SyntaxError, "p").WithArguments(",").
WithLocation
(1, 13));
443
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(1, 13),
446
Diagnostic(ErrorCode.ERR_SyntaxError, "p").WithArguments(",").
WithLocation
(1, 15));
498
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(1, 14),
501
Diagnostic(ErrorCode.ERR_SyntaxError, "p").WithArguments(",").
WithLocation
(1, 16));
602
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments(",").
WithLocation
(1, 10),
605
Diagnostic(ErrorCode.ERR_SyntaxError, "p").WithArguments(",").
WithLocation
(1, 12));
773
Diagnostic(ErrorCode.ERR_SyntaxError, ".").WithArguments(",").
WithLocation
(1, 11),
776
Diagnostic(ErrorCode.ERR_SyntaxError, "b").WithArguments(",").
WithLocation
(1, 12));
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (125)
76
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, @"$"""""" """"""").WithArguments("raw string literals", "11.0").
WithLocation
(3, 22));
230
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(8, 17));
291
""""""").WithArguments("raw string literals", "11.0").
WithLocation
(5, 20),
294
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("9.0", "11.0").
WithLocation
(7, 4));
357
Diagnostic(ErrorCode.ERR_TooManyCloseBracesForRawString, "}").
WithLocation
(5, 24));
376
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, @"await $"""""" """"""").WithArguments("string", "GetAwaiter").
WithLocation
(8, 17));
456
Diagnostic(ErrorCode.ERR_IllegalStatement, @"$"""""" """"""").
WithLocation
(6, 9));
493
Diagnostic(ErrorCode.ERR_UnterminatedRawString, "l").
WithLocation
(3, 11),
496
Diagnostic(ErrorCode.ERR_NameNotInContext, "hi").WithArguments("hi").
WithLocation
(4, 6),
499
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ">").WithArguments(">").
WithLocation
(4, 9),
502
Diagnostic(ErrorCode.ERR_UnterminatedRawString, "").
WithLocation
(5, 10),
505
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(5, 10),
508
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(5, 10));
521
Diagnostic(ErrorCode.ERR_UnterminatedRawString, "l").
WithLocation
(3, 20),
524
Diagnostic(ErrorCode.ERR_NameNotInContext, "hi").WithArguments("hi").
WithLocation
(4, 6),
527
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ">").WithArguments(">").
WithLocation
(4, 9),
530
Diagnostic(ErrorCode.ERR_UnterminatedRawString, "").
WithLocation
(5, 10),
533
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(5, 10),
536
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(5, 10));
567
Diagnostic(ErrorCode.ERR_TooManyOpenBracesForRawString, "{").
WithLocation
(4, 9),
570
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(4, 11));
584
Diagnostic(ErrorCode.ERR_TooManyCloseBracesForRawString, "}").
WithLocation
(4, 9));
598
Diagnostic(ErrorCode.ERR_UnterminatedRawString, "/").
WithLocation
(4, 15));
614
Diagnostic(ErrorCode.ERR_TooManyOpenBracesForRawString, "{").
WithLocation
(5, 5),
617
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(6, 5));
633
Diagnostic(ErrorCode.ERR_TooManyCloseBracesForRawString, "}").
WithLocation
(5, 5));
648
Diagnostic(ErrorCode.ERR_RawStringMustContainContent, @"""""""").
WithLocation
(5, 5));
679
Diagnostic(ErrorCode.ERR_UnexpectedToken, "").WithArguments("#").
WithLocation
(4, 2),
682
Diagnostic(ErrorCode.ERR_SyntaxError, "#").WithArguments("}").
WithLocation
(5, 1),
685
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "#").WithArguments("").
WithLocation
(5, 1),
688
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments("#").
WithLocation
(5, 1),
691
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments("#").
WithLocation
(7, 1));
708
Diagnostic(ErrorCode.ERR_UnexpectedToken, "").WithArguments("#").
WithLocation
(4, 2),
711
Diagnostic(ErrorCode.ERR_SyntaxError, "#").WithArguments("}").
WithLocation
(5, 1),
714
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "#").WithArguments("").
WithLocation
(5, 1),
717
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments("#").
WithLocation
(5, 1),
720
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments("#").
WithLocation
(7, 1));
797
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(3, 10),
800
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(3, 11),
803
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(3, 11));
815
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(4, 7),
818
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 8),
821
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 8));
833
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(4, 8),
836
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 9),
839
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 9));
851
Diagnostic(ErrorCode.ERR_RawStringMustContainContent, @"""""""").
WithLocation
(4, 5));
873
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(4, 7),
876
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 8),
879
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 8));
891
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(4, 8),
894
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 9),
897
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 9));
909
Diagnostic(ErrorCode.ERR_RawStringMustContainContent, @"""""""").
WithLocation
(4, 5));
931
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(4, 7),
934
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 8),
937
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 8));
949
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(4, 8),
952
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 9),
955
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 9));
967
Diagnostic(ErrorCode.ERR_RawStringMustContainContent, @"""""""").
WithLocation
(4, 5));
989
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(4, 8),
992
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 9),
995
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 9));
1007
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(4, 9),
1010
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 10),
1013
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 10));
1025
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(4, 9),
1028
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 10),
1031
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 10));
1043
Diagnostic(ErrorCode.ERR_UnterminatedRawString, ";").
WithLocation
(4, 10),
1046
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(4, 11),
1049
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 11));
1061
Diagnostic(ErrorCode.ERR_RawStringMustContainContent, @"""""""").
WithLocation
(4, 7));
1123
Diagnostic(ErrorCode.ERR_RawStringDelimiterOnOwnLine, @"""""""").
WithLocation
(4, 6));
1135
Diagnostic(ErrorCode.ERR_RawStringDelimiterOnOwnLine, @"""""""""").
WithLocation
(4, 6));
1188
Diagnostic(ErrorCode.ERR_TooManyQuotesForRawString, @"""").
WithLocation
(5, 8));
1201
Diagnostic(ErrorCode.ERR_TooManyQuotesForRawString, @"""""").
WithLocation
(5, 8));
1214
Diagnostic(ErrorCode.ERR_TooManyQuotesForRawString, @"""""""").
WithLocation
(5, 8));
1231
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(4, 1));
1248
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(5, 1));
1265
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(5, 1));
1282
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(5, 1));
1299
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(6, 1));
1316
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(7, 1));
1333
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(7, 1));
1350
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(8, 1));
1368
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(5, 1));
1386
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(6, 1));
1404
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(6, 1));
1422
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(7, 1));
1440
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(8, 1));
1458
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(8, 1));
1476
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(9, 1));
1681
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(5, 1));
1754
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(11, 1));
1917
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(4, 1));
1931
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(5, 1));
1946
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(6, 1));
1961
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(5, 1));
1976
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(4, 1));
1992
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(4, 1),
1995
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(6, 1));
2011
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(4, 1),
2014
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(7, 1));
2030
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(5, 1),
2033
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(7, 1));
2049
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(6, 1),
2052
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(7, 1));
2069
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(4, 1),
2072
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(7, 1),
2075
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(8, 1));
2092
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(5, 1),
2095
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(7, 1),
2098
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(8, 1));
2116
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(4, 1),
2119
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(6, 1),
2122
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, "{").
WithLocation
(8, 1),
2125
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(9, 1));
2162
Diagnostic(ErrorCode.ERR_VariableUsedBeforeDeclaration, "x").WithArguments("x").
WithLocation
(4, 20));
2171
Diagnostic(ErrorCode.ERR_LineContainsDifferentWhitespace, " ").WithArguments(@"\t", @"\u0020").
WithLocation
(4, 1));
2180
Diagnostic(ErrorCode.ERR_LineContainsDifferentWhitespace, " ").WithArguments(@"\u0020", @"\t").
WithLocation
(4, 1));
2189
Diagnostic(ErrorCode.ERR_LineContainsDifferentWhitespace, " ").WithArguments(@"\t", @"\u0020").
WithLocation
(4, 1));
2198
Diagnostic(ErrorCode.ERR_LineContainsDifferentWhitespace, " ").WithArguments(@"\t", @"\u0020").
WithLocation
(4, 1));
2207
Diagnostic(ErrorCode.ERR_LineContainsDifferentWhitespace, "").WithArguments(@"\f", @"\v").
WithLocation
(4, 1));
Parsing\RawInterpolatedStringLiteralParsingTests.cs (67)
44
Diagnostic(ErrorCode.ERR_TooManyQuotesForRawString, @"""").
WithLocation
(6, 25));
62
Diagnostic(ErrorCode.ERR_TooManyQuotesForRawString, @"""""").
WithLocation
(6, 25));
170
Diagnostic(ErrorCode.ERR_TooManyOpenBracesForRawString, "{").
WithLocation
(6, 21));
188
Diagnostic(ErrorCode.ERR_TooManyOpenBracesForRawString, "{{").
WithLocation
(6, 22));
206
Diagnostic(ErrorCode.ERR_TooManyCloseBracesForRawString, "}}").
WithLocation
(6, 24));
224
Diagnostic(ErrorCode.ERR_TooManyCloseBracesForRawString, "}}").
WithLocation
(6, 28));
242
Diagnostic(ErrorCode.ERR_TooManyCloseBracesForRawString, "}}").
WithLocation
(6, 24));
260
Diagnostic(ErrorCode.ERR_NotEnoughCloseBracesForRawString, "{").
WithLocation
(6, 22));
496
Diagnostic(ErrorCode.ERR_LineDoesNotStartWithSameWhitespace, " ").
WithLocation
(7, 1));
1102
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "@@").WithArguments("").
WithLocation
(6, 17),
1105
Diagnostic(ErrorCode.ERR_ExpectedVerbatimLiteral, "").
WithLocation
(6, 17));
1123
Diagnostic(ErrorCode.ERR_IllegalAtSequence, "@@").
WithLocation
(6, 17),
1126
Diagnostic(ErrorCode.ERR_UnterminatedStringLit, "").
WithLocation
(6, 17),
1129
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(8, 2),
1132
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(8, 2),
1135
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(8, 2));
1153
Diagnostic(ErrorCode.ERR_IllegalAtSequence, "@@").
WithLocation
(6, 17));
1171
Diagnostic(ErrorCode.ERR_IllegalAtSequence, "@@").
WithLocation
(6, 17));
1189
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "@@@").WithArguments("").
WithLocation
(6, 17),
1192
Diagnostic(ErrorCode.ERR_ExpectedVerbatimLiteral, "").
WithLocation
(6, 17));
1210
Diagnostic(ErrorCode.ERR_IllegalAtSequence, "@@@").
WithLocation
(6, 17),
1213
Diagnostic(ErrorCode.ERR_UnterminatedStringLit, "").
WithLocation
(6, 17),
1216
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(8, 2),
1219
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(8, 2),
1222
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(8, 2));
1240
Diagnostic(ErrorCode.ERR_IllegalAtSequence, "@@@").
WithLocation
(6, 17));
1258
Diagnostic(ErrorCode.ERR_IllegalAtSequence, "@@@").
WithLocation
(6, 17));
1276
Diagnostic(ErrorCode.ERR_StringMustStartWithQuoteCharacter, "$@@").
WithLocation
(6, 17));
1294
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"$@@""").
WithLocation
(6, 17),
1297
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 22));
1315
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"$@@""").
WithLocation
(6, 17));
1333
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"$@@""""""").
WithLocation
(6, 17));
1351
Diagnostic(ErrorCode.ERR_StringMustStartWithQuoteCharacter, "$@@@").
WithLocation
(6, 17));
1369
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"$@@@""").
WithLocation
(6, 17),
1372
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 23));
1390
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"$@@@""").
WithLocation
(6, 17));
1408
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"$@@@""""""").
WithLocation
(6, 17));
1426
Diagnostic(ErrorCode.ERR_StringMustStartWithQuoteCharacter, "@@$").
WithLocation
(6, 17));
1444
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$""").
WithLocation
(6, 17),
1447
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 22));
1465
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$""").
WithLocation
(6, 17));
1483
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$""""""").
WithLocation
(6, 17));
1501
Diagnostic(ErrorCode.ERR_StringMustStartWithQuoteCharacter, "@@$$").
WithLocation
(6, 17));
1519
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$$""").
WithLocation
(6, 17),
1522
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 23));
1540
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$$""").
WithLocation
(6, 17));
1558
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$$""""""").
WithLocation
(6, 17));
1576
Diagnostic(ErrorCode.ERR_StringMustStartWithQuoteCharacter, "@@$@").
WithLocation
(6, 17));
1594
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$@""").
WithLocation
(6, 17),
1597
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 23));
1615
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$@""").
WithLocation
(6, 17));
1633
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$@""""""").
WithLocation
(6, 17));
1651
Diagnostic(ErrorCode.ERR_StringMustStartWithQuoteCharacter, "@@$$@").
WithLocation
(6, 17));
1669
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$$@""").
WithLocation
(6, 17),
1672
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 24));
1690
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$$@""").
WithLocation
(6, 17));
1708
Diagnostic(ErrorCode.ERR_IllegalAtSequence, @"@@$$@""""""").
WithLocation
(6, 17));
1726
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "$").WithArguments("").
WithLocation
(6, 17),
1729
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments("$").
WithLocation
(6, 17));
1747
Diagnostic(ErrorCode.ERR_StringMustStartWithQuoteCharacter, "$$").
WithLocation
(6, 17));
1765
Diagnostic(ErrorCode.ERR_StringMustStartWithQuoteCharacter, "$$$").
WithLocation
(6, 17));
1783
Diagnostic(ErrorCode.ERR_NotEnoughQuotesForRawString, @"""").
WithLocation
(6, 19),
1786
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 21));
1804
Diagnostic(ErrorCode.ERR_NotEnoughQuotesForRawString, @"""").
WithLocation
(6, 19));
1822
Diagnostic(ErrorCode.ERR_NotEnoughQuotesForRawString, @"""""").
WithLocation
(6, 19));
1846
Diagnostic(ErrorCode.ERR_NotEnoughQuotesForRawString, @"""").
WithLocation
(6, 19));
1866
Diagnostic(ErrorCode.ERR_NotEnoughQuotesForRawString, @"""""").
WithLocation
(6, 19));
Parsing\RawStringLiteralCompilingTests.cs (12)
22
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, @""""""" """"""").WithArguments("raw string literals", "11.0").
WithLocation
(3, 22));
35
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "s").WithArguments("C.s").
WithLocation
(3, 12));
158
Diagnostic(ErrorCode.WRN_UnreachableCode, "break").
WithLocation
(8, 17));
219
""""""").WithArguments("raw string literals", "11.0").
WithLocation
(5, 20),
222
Diagnostic(ErrorCode.ERR_NewlinesAreNotAllowedInsideANonVerbatimInterpolatedString, "}").WithArguments("9.0", "11.0").
WithLocation
(7, 4));
301
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, @"await """""" """"""").WithArguments("string", "GetAwaiter").
WithLocation
(8, 17));
381
Diagnostic(ErrorCode.ERR_IllegalStatement, @""""""" """"""").
WithLocation
(6, 9));
491
Diagnostic(ErrorCode.ERR_LineContainsDifferentWhitespace, " ").WithArguments(@"\t", @"\u0020").
WithLocation
(4, 1));
500
Diagnostic(ErrorCode.ERR_LineContainsDifferentWhitespace, " ").WithArguments(@"\u0020", @"\t").
WithLocation
(4, 1));
509
Diagnostic(ErrorCode.ERR_LineContainsDifferentWhitespace, " ").WithArguments(@"\t", @"\u0020").
WithLocation
(4, 1));
518
Diagnostic(ErrorCode.ERR_LineContainsDifferentWhitespace, " ").WithArguments(@"\t", @"\u0020").
WithLocation
(4, 1));
527
Diagnostic(ErrorCode.ERR_LineContainsDifferentWhitespace, "").WithArguments(@"\f", @"\v").
WithLocation
(4, 1));
Parsing\ReadOnlyStructs.cs (6)
81
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "readonly").WithArguments("readonly structs", "7.2").
WithLocation
(4, 5),
84
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "readonly").WithArguments("readonly structs", "7.2").
WithLocation
(6, 12),
87
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "readonly").WithArguments("readonly structs", "7.2").
WithLocation
(8, 5)
109
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S1").WithArguments("readonly").
WithLocation
(4, 20),
112
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S2").WithArguments("readonly").
WithLocation
(6, 47),
115
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S3").WithArguments("readonly").
WithLocation
(8, 31)
Parsing\RecordParsing.cs (118)
112
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "record C(int X, int Y);").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
115
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(1, 1),
118
Diagnostic(ErrorCode.ERR_LocalFunctionMissingBody, "C").WithArguments("C(int, int)").
WithLocation
(1, 8),
121
Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "C").WithArguments("C").
WithLocation
(1, 8));
270
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "record Point;").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
273
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(1, 1),
276
Diagnostic(ErrorCode.WRN_UnreferencedVar, "Point").WithArguments("Point").
WithLocation
(1, 8));
339
Diagnostic(ErrorCode.ERR_UnexpectedParameterList, "(int x, int y)").
WithLocation
(1, 12)
395
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "return").WithArguments("return").
WithLocation
(2, 15),
398
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "return").WithArguments("return").
WithLocation
(5, 19));
497
Diagnostic(ErrorCode.ERR_SyntaxError, "class").WithArguments(":").
WithLocation
(1, 23)
777
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(":").
WithLocation
(1, 32),
780
Diagnostic(ErrorCode.ERR_TypeExpected, "{").
WithLocation
(1, 32)
844
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(1, 30),
847
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(":").
WithLocation
(1, 30),
850
Diagnostic(ErrorCode.ERR_TypeExpected, "{").
WithLocation
(1, 30)
955
Diagnostic(ErrorCode.ERR_TypeExpected, ";").
WithLocation
(1, 30)
1054
Diagnostic(ErrorCode.ERR_SyntaxError, "where").WithArguments(",").
WithLocation
(1, 37),
1057
Diagnostic(ErrorCode.ERR_SyntaxError, "where").WithArguments(",").
WithLocation
(1, 43)
1125
Diagnostic(ErrorCode.ERR_SyntaxError, "where").WithArguments(",").
WithLocation
(1, 37),
1128
Diagnostic(ErrorCode.ERR_SyntaxError, "where").WithArguments(",").
WithLocation
(1, 43),
1131
Diagnostic(ErrorCode.ERR_SyntaxError, "where").WithArguments(",").
WithLocation
(1, 49)
1212
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "0 with {}").WithArguments("with on structs", "10.0").
WithLocation
(4, 13),
1215
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "with").WithArguments("records", "9.0").
WithLocation
(4, 15));
1235
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "{").WithArguments("{").
WithLocation
(4, 10),
1238
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "{").WithArguments("{").
WithLocation
(4, 10),
1241
Diagnostic(ErrorCode.ERR_UnexpectedSemicolon, ";").
WithLocation
(5, 15),
1244
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "int x = with { ").
WithLocation
(6, 5),
1247
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(6, 18),
1250
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(6, 20),
1253
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(6, 20),
1256
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(8, 1)
1463
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 9)
1490
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 11)
1521
Diagnostic(ErrorCode.ERR_SyntaxError, "3").WithArguments(",").
WithLocation
(1, 12),
1524
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(1, 15),
1527
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 16));
1647
Diagnostic(ErrorCode.ERR_UnexpectedToken, "M() with { }").WithArguments(".").
WithLocation
(1, 1)
1855
Diagnostic(ErrorCode.ERR_UnexpectedToken, "with").WithArguments("with").
WithLocation
(1, 12)
1932
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(1, 8));
2003
Diagnostic(ErrorCode.ERR_SyntaxError, "B").WithArguments(",").
WithLocation
(1, 23));
2068
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(1, 10));
2286
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments(",").
WithLocation
(2, 7),
2289
Diagnostic(ErrorCode.ERR_SyntaxError, "X").WithArguments(",").
WithLocation
(2, 8),
2292
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments(",").
WithLocation
(2, 12)
2513
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(1, 8),
2516
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 14));
2520
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 14));
2526
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 14));
2530
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 14));
2588
Diagnostic(ErrorCode.ERR_IdentifierExpected, "struct").
WithLocation
(1, 8),
2591
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 8)
2597
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "record ").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
2600
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(1, 1),
2603
Diagnostic(ErrorCode.ERR_IdentifierExpected, "struct").
WithLocation
(1, 8),
2606
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 8),
2609
Diagnostic(ErrorCode.ERR_FeatureInPreview, "(int X, int Y)").WithArguments("primary constructors").
WithLocation
(1, 16),
2612
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "X").WithArguments("X").
WithLocation
(1, 21),
2615
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Y").WithArguments("Y").
WithLocation
(1, 28)
2760
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "X").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(1, 20),
2763
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "Y").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(1, 27));
2770
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "class").WithArguments("record structs", "10.0").
WithLocation
(1, 8),
2773
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "X").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(1, 20),
2776
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "Y").WithArguments("System.Runtime.CompilerServices.IsExternalInit").
WithLocation
(1, 27));
2783
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "record ").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
2786
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(1, 1),
2789
Diagnostic(ErrorCode.ERR_IdentifierExpected, "class").
WithLocation
(1, 8),
2792
Diagnostic(ErrorCode.ERR_SemicolonExpected, "class").
WithLocation
(1, 8),
2795
Diagnostic(ErrorCode.ERR_FeatureInPreview, "(int X, int Y)").WithArguments("primary constructors").
WithLocation
(1, 15),
2798
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "X").WithArguments("X").
WithLocation
(1, 20),
2801
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "Y").WithArguments("Y").
WithLocation
(1, 27)
2807
Diagnostic(ErrorCode.ERR_IdentifierExpected, "class").
WithLocation
(1, 8),
2810
Diagnostic(ErrorCode.ERR_SemicolonExpected, "class").
WithLocation
(1, 8)
2911
Diagnostic(ErrorCode.ERR_IdentifierExpected, "interface").
WithLocation
(1, 8),
2914
Diagnostic(ErrorCode.ERR_LbraceExpected, "interface").
WithLocation
(1, 8),
2917
Diagnostic(ErrorCode.ERR_RbraceExpected, "interface").
WithLocation
(1, 8)
2969
Diagnostic(ErrorCode.ERR_LbraceExpected, "C").
WithLocation
(1, 15),
2972
Diagnostic(ErrorCode.ERR_RbraceExpected, "C").
WithLocation
(1, 15),
2975
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "C(int X, int Y);").
WithLocation
(1, 15),
2978
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 17),
2981
Diagnostic(ErrorCode.ERR_SyntaxError, "X").WithArguments(",").
WithLocation
(1, 21),
2984
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 24),
2987
Diagnostic(ErrorCode.ERR_SyntaxError, "Y").WithArguments(",").
WithLocation
(1, 28)
3061
Diagnostic(ErrorCode.ERR_MisplacedRecord, "record").
WithLocation
(1, 8));
3106
Diagnostic(ErrorCode.ERR_MisplacedRecord, "record").
WithLocation
(1, 8));
3211
Diagnostic(ErrorCode.ERR_MisplacedRecord, "record").
WithLocation
(1, 7));
3256
Diagnostic(ErrorCode.ERR_MisplacedRecord, "record").
WithLocation
(1, 7));
3301
Diagnostic(ErrorCode.ERR_LbraceExpected, "C").
WithLocation
(1, 18),
3304
Diagnostic(ErrorCode.ERR_RbraceExpected, "C").
WithLocation
(1, 18),
3307
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "C(int X, int Y);").
WithLocation
(1, 18),
3310
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 20),
3313
Diagnostic(ErrorCode.ERR_SyntaxError, "X").WithArguments(",").
WithLocation
(1, 24),
3316
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 27),
3319
Diagnostic(ErrorCode.ERR_SyntaxError, "Y").WithArguments(",").
WithLocation
(1, 31)
3567
Diagnostic(ErrorCode.ERR_BadModifierLocation, "readonly").WithArguments("readonly").
WithLocation
(1, 9)
3599
Diagnostic(ErrorCode.ERR_BadNewExpr, "struct").
WithLocation
(1, 12),
3602
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 12)
3646
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S").WithArguments("ref").
WithLocation
(1, 19));
3653
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "record").
WithLocation
(1, 5),
3656
Diagnostic(ErrorCode.ERR_FeatureInPreview, ";").WithArguments("primary constructors").
WithLocation
(1, 20)
3661
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "record").
WithLocation
(1, 5)
3690
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "struct").WithArguments("record structs", "10.0").
WithLocation
(1, 12),
3693
Diagnostic(ErrorCode.ERR_BadMemberFlag, "S").WithArguments("ref").
WithLocation
(1, 19));
3728
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "ref record R;").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
3731
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(1, 5),
3734
Diagnostic(ErrorCode.ERR_ByReferenceVariableMustBeInitialized, "R").
WithLocation
(1, 12),
3737
Diagnostic(ErrorCode.WRN_UnreferencedVar, "R").WithArguments("R").
WithLocation
(1, 12));
3795
Diagnostic(ErrorCode.ERR_IdentifierExpected, "struct").
WithLocation
(1, 14),
3798
Diagnostic(ErrorCode.ERR_ConstValueRequired, "struct").
WithLocation
(1, 14),
3801
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 14)
3843
Diagnostic(ErrorCode.ERR_IdentifierExpected, "struct").
WithLocation
(1, 14),
3846
Diagnostic(ErrorCode.ERR_SyntaxError, "struct").WithArguments("[").
WithLocation
(1, 14),
3849
Diagnostic(ErrorCode.ERR_SyntaxError, "struct").WithArguments("]").
WithLocation
(1, 14),
3852
Diagnostic(ErrorCode.ERR_ValueExpected, "struct").
WithLocation
(1, 14),
3855
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(1, 14)
4021
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(3, 6),
4024
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(3, 6),
4027
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(3, 6)
Parsing\RefFieldParsingTests.cs (16)
102
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "out").WithArguments("out").
WithLocation
(1, 12));
138
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "in").WithArguments("in").
WithLocation
(1, 12));
295
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref F()").WithArguments("ref").
WithLocation
(1, 29));
355
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref s").WithArguments("ref").
WithLocation
(1, 31));
553
Diagnostic(ErrorCode.ERR_TypeExpected, "fixed").
WithLocation
(1, 17),
556
Diagnostic(ErrorCode.ERR_TypeExpected, "fixed").
WithLocation
(1, 47));
742
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref t").WithArguments("ref").
WithLocation
(1, 14)
786
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "{").WithArguments("{").
WithLocation
(1, 17),
789
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(1, 17)
934
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "{").WithArguments("{").
WithLocation
(1, 13),
937
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments(",").
WithLocation
(1, 13)
988
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref x").WithArguments("ref").
WithLocation
(1, 7));
1019
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref x").WithArguments("ref").
WithLocation
(1, 7));
1058
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref y").WithArguments("ref").
WithLocation
(1, 10));
1097
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref x").WithArguments("ref").
WithLocation
(1, 11));
1144
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref y").WithArguments("ref").
WithLocation
(1, 14));
Parsing\RefReadonlyTests.cs (57)
49
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "readonly").WithArguments("readonly references", "7.2").
WithLocation
(4, 18),
52
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "readonly").WithArguments("readonly references", "7.2").
WithLocation
(6, 16),
55
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "readonly").WithArguments("readonly references", "7.2").
WithLocation
(11, 24),
58
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "readonly").WithArguments("readonly references", "7.2").
WithLocation
(13, 16)
94
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "in").WithArguments("readonly references", "7.2").
WithLocation
(4, 19),
97
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "in").WithArguments("readonly references", "7.2").
WithLocation
(8, 14),
100
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "in").WithArguments("readonly references", "7.2").
WithLocation
(19, 11),
103
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_1, "in").WithArguments("readonly references", "7.2").
WithLocation
(21, 29)
139
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "operator").WithArguments("operator").
WithLocation
(11, 41),
142
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "operator").WithArguments("operator").
WithLocation
(11, 41),
145
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "{").WithArguments("{").
WithLocation
(12, 5),
148
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "{").WithArguments("{").
WithLocation
(12, 5),
154
}").
WithLocation
(17, 5),
157
Diagnostic(ErrorCode.ERR_TypeExpected, "virtual").
WithLocation
(22, 25),
160
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(24, 1));
192
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(9, 10),
195
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(9, 28),
198
Diagnostic(ErrorCode.ERR_UnexpectedToken, "ref").WithArguments("ref").
WithLocation
(11, 41));
216
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(8, 40),
219
Diagnostic(ErrorCode.ERR_SemicolonExpected, "readonly").
WithLocation
(8, 40),
222
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(8, 40),
225
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(8, 54));
243
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(8, 31),
246
Diagnostic(ErrorCode.ERR_SemicolonExpected, "readonly").
WithLocation
(8, 31),
249
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(8, 31),
252
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(8, 45));
269
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(7, 39),
272
Diagnostic(ErrorCode.ERR_SemicolonExpected, "readonly").
WithLocation
(7, 39),
275
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(7, 53),
278
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(7, 53));
298
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "ref ").WithArguments("ref").
WithLocation
(8, 17),
301
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(8, 21),
304
Diagnostic(ErrorCode.ERR_InExpected, "readonly").
WithLocation
(8, 21),
307
Diagnostic(ErrorCode.ERR_BadForeachDecl, "readonly").
WithLocation
(8, 21),
310
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(8, 21),
313
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(8, 21),
316
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(8, 21),
319
Diagnostic(ErrorCode.ERR_IdentifierExpected, "in").
WithLocation
(8, 32),
322
Diagnostic(ErrorCode.ERR_SyntaxError, "in").WithArguments(",").
WithLocation
(8, 32),
325
Diagnostic(ErrorCode.ERR_SemicolonExpected, "ar").
WithLocation
(8, 35),
328
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(8, 37),
331
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(8, 37));
351
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "readonly").WithArguments("readonly").
WithLocation
(10, 15),
354
Diagnostic(ErrorCode.ERR_CloseParenExpected, "readonly").
WithLocation
(10, 15),
357
Diagnostic(ErrorCode.ERR_SemicolonExpected, "readonly").
WithLocation
(10, 15),
360
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(10, 15),
363
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(10, 25),
366
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(10, 25),
369
Diagnostic(ErrorCode.ERR_RbraceExpected, ")").
WithLocation
(10, 25));
418
Diagnostic(ErrorCode.ERR_ReadOnlyNotSuppAsParamModDidYouMeanIn, "readonly").
WithLocation
(4, 12));
431
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "operator").WithArguments("operator").
WithLocation
(4, 37),
434
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "operator").WithArguments("operator").
WithLocation
(4, 37),
437
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 55),
440
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "=>").WithArguments("=>").
WithLocation
(4, 57));
453
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "in").WithArguments("in").
WithLocation
(4, 5));
466
Diagnostic(ErrorCode.ERR_ReadOnlyNotSuppAsParamModDidYouMeanIn, "readonly").
WithLocation
(4, 16));
475
Diagnostic(ErrorCode.ERR_TypeExpected, "[").
WithLocation
(1, 8));
Parsing\RefStructs.cs (18)
58
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "ref").WithArguments("ref structs", "7.2").
WithLocation
(4, 5),
61
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "ref").WithArguments("ref structs", "7.2").
WithLocation
(6, 12)
91
Diagnostic(ErrorCode.ERR_TypeExpected, "interface").
WithLocation
(8, 9),
94
Diagnostic(ErrorCode.ERR_TypeExpected, "delegate").
WithLocation
(10, 16),
115
Diagnostic(ErrorCode.ERR_BadModifierLocation, "ref").WithArguments("ref").
WithLocation
(4, 13),
118
Diagnostic(ErrorCode.ERR_BadModifierLocation, "ref").WithArguments("ref").
WithLocation
(5, 13),
121
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "S").WithArguments("Program", "S").
WithLocation
(5, 24));
148
Diagnostic(ErrorCode.ERR_BadModifierLocation, "readonly").WithArguments("readonly").
WithLocation
(4, 17),
151
Diagnostic(ErrorCode.ERR_BadModifierLocation, "readonly").WithArguments("readonly").
WithLocation
(5, 17),
154
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "S").WithArguments("C", "S").
WithLocation
(5, 33));
169
Diagnostic(ErrorCode.ERR_BadModifierLocation, "ref").WithArguments("ref").
WithLocation
(4, 13),
172
Diagnostic(ErrorCode.ERR_TypeExpected, "struct").
WithLocation
(4, 26),
175
Diagnostic(ErrorCode.ERR_BadModifierLocation, "ref").WithArguments("ref").
WithLocation
(5, 13),
178
Diagnostic(ErrorCode.ERR_TypeExpected, "struct").
WithLocation
(5, 26),
181
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "S").WithArguments("C", "S").
WithLocation
(5, 33));
196
Diagnostic(ErrorCode.ERR_BadModifierLocation, "ref").WithArguments("ref").
WithLocation
(4, 22),
199
Diagnostic(ErrorCode.ERR_BadModifierLocation, "ref").WithArguments("ref").
WithLocation
(5, 22),
202
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "S").WithArguments("C", "S").
WithLocation
(5, 33));
Parsing\ScriptParsingTests.cs (325)
93
Diagnostic(ErrorCode.ERR_BadNewExpr, "in").
WithLocation
(2, 5),
96
Diagnostic(ErrorCode.ERR_SemicolonExpected, "in").
WithLocation
(2, 5),
99
Diagnostic(ErrorCode.ERR_GlobalDefinitionOrStatementExpected, "in").
WithLocation
(2, 5));
190
Diagnostic(ErrorCode.ERR_SemicolonExpected, "y").
WithLocation
(1, 7));
232
Diagnostic(ErrorCode.ERR_SemicolonExpected, "y").
WithLocation
(1, 7));
1047
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(1, 5),
1050
Diagnostic(ErrorCode.ERR_BadMemberFlag, "C").WithArguments("new").
WithLocation
(1, 26)
1076
Diagnostic(ErrorCode.ERR_PartialMisplaced, "partial").
WithLocation
(1, 12),
1079
Diagnostic(ErrorCode.ERR_BadMemberFlag, "C").WithArguments("new").
WithLocation
(1, 33));
1710
Diagnostic(ErrorCode.ERR_SyntaxError, "=").WithArguments("[").
WithLocation
(1, 13),
1713
Diagnostic(ErrorCode.ERR_IdentifierExpected, "=").
WithLocation
(1, 13),
1716
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments("]").
WithLocation
(1, 16),
1719
Diagnostic(ErrorCode.ERR_LbraceExpected, ";").
WithLocation
(1, 16),
1722
Diagnostic(ErrorCode.ERR_GetOrSetExpected, ";").
WithLocation
(1, 16),
1725
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 17),
1728
Diagnostic(ErrorCode.ERR_PropertyWithNoAccessors, "this").WithArguments("<invalid-global-code>.this").
WithLocation
(1, 8),
1730
Diagnostic(ErrorCode.ERR_IndexerNeedsParam).
WithLocation
(1, 1));
1748
Diagnostic(ErrorCode.ERR_UnexpectedGenericName, "Goo").
WithLocation
(5, 14));
1983
Diagnostic(ErrorCode.ERR_PartialMisplaced, "@en").
WithLocation
(2, 14));
2286
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(15, 11));
2984
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 7),
2987
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 7));
3026
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 11),
3029
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 11));
3077
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 8));
3108
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 10));
3147
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 13));
3195
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 19));
3266
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 10));
3302
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 14),
3305
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 14),
3308
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(1, 14),
3311
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 14));
3359
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 10),
3362
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 10));
3402
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
3405
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 12));
3453
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 18),
3456
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 18));
3522
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 16),
3525
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 16));
3577
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 21),
3580
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 21),
3583
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 21));
3655
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 14),
3658
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 14));
3699
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
3702
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 12));
3754
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(1, 13),
3757
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 13),
3760
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 13),
3763
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 13));
3804
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 16),
3807
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 16));
3852
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 16),
3855
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 16));
3900
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 19),
3903
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 19));
3948
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 18),
3951
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 18));
4007
Diagnostic(ErrorCode.ERR_TypeExpected, "").
WithLocation
(1, 13),
4010
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 13),
4013
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 13),
4016
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 13));
4069
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 13));
4113
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 11));
4153
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 15),
4156
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 15));
4197
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 18),
4200
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 18));
4242
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
4245
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 12));
4285
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 16),
4288
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 16));
4329
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 12),
4332
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
4335
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 12));
4383
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 13),
4386
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 13));
4443
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 16));
4502
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 20));
4558
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 6),
4561
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 6));
4599
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 6),
4602
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 6));
4640
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 7),
4643
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 7),
4646
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 7));
4692
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(1, 7),
4695
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 7),
4698
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 7));
4744
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 7),
4747
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 7),
4750
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 7));
4796
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 8),
4799
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 8));
4845
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 9),
4848
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9));
4895
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 11),
4898
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 11));
4950
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 10),
4953
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 10),
4956
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 10));
5011
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 11),
5014
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 11));
5069
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
5072
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 12),
5075
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 12));
5138
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 7),
5141
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 7),
5144
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 7));
5190
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 9),
5193
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 9),
5196
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9));
5250
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 8),
5253
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 8),
5256
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 8));
5309
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9),
5312
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 9),
5315
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 9),
5318
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9));
5379
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9),
5382
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 9),
5385
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 9),
5388
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9));
5449
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9),
5452
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 9),
5455
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9),
5458
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 9),
5461
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 9),
5464
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9));
5530
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 11),
5533
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 11),
5536
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 11),
5539
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 11),
5542
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 11));
5608
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 13),
5611
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 13),
5614
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 13),
5617
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 13),
5620
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 13),
5623
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 13));
5697
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 17),
5700
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 17),
5703
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 17),
5706
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 17),
5709
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 17),
5712
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 17),
5715
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 17),
5718
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 17));
5805
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 8),
5808
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 8));
5854
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 9),
5857
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9));
5910
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(":").
WithLocation
(1, 8),
5913
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(1, 8));
5959
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(":").
WithLocation
(1, 9),
5962
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(1, 9));
6015
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 11),
6018
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 11),
6021
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 11));
6082
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 26),
6085
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 26));
6328
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 8),
6331
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 8),
6334
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 8),
6337
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 8),
6340
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 8));
6391
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 8),
6394
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 8),
6397
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 8));
6443
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 10),
6446
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 10));
6492
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 13));
6538
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
6541
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 12),
6544
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 12));
6598
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
6601
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 12),
6604
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 12));
6658
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(1, 11),
6661
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(1, 11),
6664
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 14),
6667
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 14),
6670
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 14),
6673
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 14));
6736
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "out").WithArguments("out").
WithLocation
(1, 11),
6739
Diagnostic(ErrorCode.ERR_SyntaxError, "out").WithArguments(",").
WithLocation
(1, 11),
6742
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 16),
6745
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 16),
6748
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 16));
6811
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 11),
6814
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 11),
6817
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 11));
6870
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 12),
6873
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
6876
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 12),
6879
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 12));
6940
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 12),
6943
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
6946
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 12),
6949
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 12));
7010
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(1, 12),
7013
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
7016
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 12),
7019
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 12));
7080
Diagnostic(ErrorCode.ERR_SyntaxError, "a").WithArguments(",").
WithLocation
(1, 12),
7083
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 13),
7086
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 13),
7089
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 13));
7150
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
7153
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 12),
7156
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 12),
7159
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 12));
7220
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(1, 9),
7223
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 9),
7226
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 9),
7229
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9));
7290
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(1, 10),
7293
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 10),
7296
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 10),
7299
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 10));
7367
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 11),
7370
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 11),
7373
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 11));
7441
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 14),
7444
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 14),
7447
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 14),
7450
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 14),
7453
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 14),
7456
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 14));
7530
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 9),
7533
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9));
7586
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 24),
7589
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 24));
7651
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 13),
7654
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 13),
7657
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 13),
7660
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 13));
7722
Diagnostic(ErrorCode.ERR_MissingArgument, ",").
WithLocation
(1, 7),
7725
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 8),
7728
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 8),
7731
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 8),
7734
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 8));
7795
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(1, 23),
7798
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 23));
7896
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(2, 17),
7899
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(2, 17));
7968
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 22));
8078
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(2, 9),
8081
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(2, 9));
8121
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(2, 11),
8124
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("in").
WithLocation
(2, 11),
8127
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(2, 11),
8130
Diagnostic(ErrorCode.ERR_ExpectedSelectOrGroup, "").
WithLocation
(2, 11),
8133
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(2, 11),
8136
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(2, 11));
8200
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(2, 11),
8203
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(2, 11),
8206
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(2, 11));
8264
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(2, 13),
8267
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("in").
WithLocation
(2, 13),
8270
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(2, 13),
8273
Diagnostic(ErrorCode.ERR_ExpectedSelectOrGroup, "").
WithLocation
(2, 13),
8276
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(2, 13),
8279
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(":").
WithLocation
(2, 13),
8282
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(2, 13));
8385
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 7));
8414
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 8),
8417
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 8));
8478
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9),
8481
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 9));
8519
Diagnostic(ErrorCode.ERR_CStyleArray, "[").
WithLocation
(1, 7),
8522
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(1, 8),
8525
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 8));
8567
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 8),
8570
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 8));
8598
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 8),
8601
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(">").
WithLocation
(1, 8),
8604
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(1, 8),
8607
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 8),
8610
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 8));
8648
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 8),
8651
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(1, 8),
8654
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 8),
8657
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 8));
8694
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(1, 7),
8697
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 9),
8700
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(1, 9),
8703
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 9),
8706
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 9));
8743
Diagnostic(ErrorCode.ERR_AliasQualAsExpression, "::").
WithLocation
(1, 12),
8746
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 14),
8749
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(1, 14),
8752
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 14),
8755
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 14));
8792
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 9));
8819
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("in").
WithLocation
(1, 9),
8822
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 9),
8825
Diagnostic(ErrorCode.ERR_ExpectedSelectOrGroup, "").
WithLocation
(1, 9));
8874
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("in").
WithLocation
(1, 10),
8877
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 10),
8880
Diagnostic(ErrorCode.ERR_ExpectedSelectOrGroup, "").
WithLocation
(1, 10));
8934
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("in").
WithLocation
(1, 10),
8937
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 10),
8940
Diagnostic(ErrorCode.ERR_ExpectedSelectOrGroup, "").
WithLocation
(1, 10));
8994
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("in").
WithLocation
(1, 11),
8997
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 11),
9000
Diagnostic(ErrorCode.ERR_ExpectedSelectOrGroup, "").
WithLocation
(1, 11));
9062
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 12),
9065
Diagnostic(ErrorCode.ERR_ExpectedSelectOrGroup, "").
WithLocation
(1, 12));
9110
Diagnostic(ErrorCode.ERR_IdentifierExpected, "in").
WithLocation
(1, 14),
9113
Diagnostic(ErrorCode.ERR_ExpressionExpected, "").
WithLocation
(1, 16),
9116
Diagnostic(ErrorCode.ERR_ExpectedSelectOrGroup, "").
WithLocation
(1, 16));
9180
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(1, 6),
9183
Diagnostic(ErrorCode.ERR_GlobalDefinitionOrStatementExpected, ",").
WithLocation
(1, 6),
9186
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 9));
9241
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(2, 6),
9244
Diagnostic(ErrorCode.ERR_GlobalDefinitionOrStatementExpected, ",").
WithLocation
(2, 6));
9298
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 6),
9301
Diagnostic(ErrorCode.ERR_GlobalDefinitionOrStatementExpected, ")").
WithLocation
(2, 6));
9355
Diagnostic(ErrorCode.ERR_SemicolonExpected, "]").
WithLocation
(2, 6),
9358
Diagnostic(ErrorCode.ERR_GlobalDefinitionOrStatementExpected, "]").
WithLocation
(2, 6));
9412
Diagnostic(ErrorCode.ERR_SemicolonExpected, "}").
WithLocation
(2, 6),
9415
Diagnostic(ErrorCode.ERR_GlobalDefinitionOrStatementExpected, "}").
WithLocation
(2, 6));
Parsing\SeparatedSyntaxListParsingTests.cs (48)
45
Diagnostic(ErrorCode.ERR_SyntaxError, "U").WithArguments(",").
WithLocation
(7, 9),
48
Diagnostic(ErrorCode.ERR_TypeExpected, ">").
WithLocation
(9, 9),
51
Diagnostic(ErrorCode.ERR_TypeExpected, ",").
WithLocation
(10, 7),
54
Diagnostic(ErrorCode.ERR_SyntaxError, "U").WithArguments(",").
WithLocation
(11, 9),
57
Diagnostic(ErrorCode.ERR_TypeExpected, ",").
WithLocation
(11, 11),
60
Diagnostic(ErrorCode.ERR_TypeExpected, ">").
WithLocation
(11, 12));
330
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "(").WithArguments("(").
WithLocation
(4, 12),
333
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 13),
336
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(4, 14),
339
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "(").WithArguments("(").
WithLocation
(5, 14),
342
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(5, 15),
345
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(5, 16),
348
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(12, 9),
351
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(12, 10));
676
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "(").WithArguments("(").
WithLocation
(4, 12),
679
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 13),
682
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(4, 14),
685
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "(").WithArguments("(").
WithLocation
(5, 14),
688
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(5, 15),
691
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(5, 16),
694
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<C<>>").WithArguments("C", "type").
WithLocation
(6, 5),
697
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<>").WithArguments("C", "type").
WithLocation
(6, 7),
700
Diagnostic(ErrorCode.WRN_UnreferencedField, "a1").WithArguments("C.a1").
WithLocation
(6, 12),
703
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<A<>>").WithArguments("C", "type").
WithLocation
(7, 5),
706
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "A<>").WithArguments("A<>").
WithLocation
(7, 7),
709
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "a1").WithArguments("C", "a1").
WithLocation
(7, 12),
712
Diagnostic(ErrorCode.WRN_UnreferencedField, "a1").WithArguments("C.a1").
WithLocation
(7, 12),
715
Diagnostic(ErrorCode.ERR_DuplicateNameInClass, "a1").WithArguments("C", "a1").
WithLocation
(8, 12),
718
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<C<, >, int>").WithArguments("C", "type").
WithLocation
(8, 24),
721
Diagnostic(ErrorCode.ERR_HasNoTypeVars, "C<, >").WithArguments("C", "type").
WithLocation
(8, 26),
724
Diagnostic(ErrorCode.ERR_NameNotInContext, "Swap<>").WithArguments("Swap").
WithLocation
(9, 17),
727
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(12, 9),
730
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(12, 10),
733
Diagnostic(ErrorCode.ERR_DuplicateTypeParameter, "").WithArguments("").
WithLocation
(12, 10));
738
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "(").WithArguments("(").
WithLocation
(4, 12),
741
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 13),
744
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(4, 14),
747
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "(").WithArguments("(").
WithLocation
(5, 14),
750
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(5, 15),
753
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(5, 16),
756
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(12, 9),
759
Diagnostic(ErrorCode.ERR_IdentifierExpected, ">").
WithLocation
(12, 10));
782
Diagnostic(ErrorCode.ERR_SyntaxError, "2").WithArguments(",").
WithLocation
(7, 27),
785
Diagnostic(ErrorCode.ERR_ValueExpected, "").
WithLocation
(9, 27),
788
Diagnostic(ErrorCode.ERR_ValueExpected, "").
WithLocation
(10, 25),
791
Diagnostic(ErrorCode.ERR_SyntaxError, "1").WithArguments(",").
WithLocation
(11, 27),
794
Diagnostic(ErrorCode.ERR_ValueExpected, "").
WithLocation
(11, 30),
797
Diagnostic(ErrorCode.ERR_ValueExpected, "").
WithLocation
(11, 31));
Parsing\SingleLineDeclarationParsingTests.cs (17)
35
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 10),
38
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(1, 10),
41
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 10));
67
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(1, 12),
70
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 12));
96
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 13),
99
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(1, 13),
102
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 13));
136
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(1, 14),
139
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 14));
196
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "namespace").WithArguments("file-scoped namespace", "10.0").
WithLocation
(1, 1));
223
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 13));
286
Diagnostic(ErrorCode.ERR_EOFExpected, "{").
WithLocation
(1, 14));
311
Diagnostic(ErrorCode.ERR_EOFExpected, "{").
WithLocation
(1, 14),
314
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(1, 16));
339
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(1, 14));
685
Diagnostic(ErrorCode.ERR_EOFExpected, ";").
WithLocation
(1, 13));
Parsing\StackAllocInitializerParsingTests.cs (36)
28
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc").WithArguments("stackalloc initializer", "7.3").
WithLocation
(1, 30),
31
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[] { 42 }").
WithLocation
(1, 30));
75
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc").WithArguments("stackalloc initializer", "7.3").
WithLocation
(1, 30),
78
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc int[1] { 42 }").
WithLocation
(1, 30));
122
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc").WithArguments("stackalloc initializer", "7.3").
WithLocation
(1, 30),
125
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "stackalloc[] { 42 }").
WithLocation
(1, 30));
156
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7, "stackalloc").WithArguments("stackalloc initializer", "7.3").
WithLocation
(1, 30),
159
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "1").
WithLocation
(1, 41));
164
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "1").
WithLocation
(1, 12));
197
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "3").
WithLocation
(4, 28)
215
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "3").
WithLocation
(4, 28),
218
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 29)
236
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "3").
WithLocation
(4, 29),
239
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 28)
257
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "3").
WithLocation
(4, 29),
260
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 28),
263
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments("]").
WithLocation
(4, 31)
281
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "3").
WithLocation
(4, 28),
284
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments("]").
WithLocation
(4, 30)
302
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "3").
WithLocation
(4, 28),
305
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 29),
308
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments("]").
WithLocation
(4, 31)
326
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "3").
WithLocation
(4, 28),
329
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 29),
332
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 30)
350
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "3").
WithLocation
(4, 29),
353
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 28),
356
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 30)
374
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "3").
WithLocation
(4, 30),
377
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 28),
380
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 29)
398
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "3").
WithLocation
(4, 28),
401
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, "3").
WithLocation
(4, 31),
404
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 29),
407
Diagnostic(ErrorCode.ERR_InvalidStackAllocArray, ",").
WithLocation
(4, 30)
425
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments("]").
WithLocation
(4, 29)
Parsing\StatementAttributeParsingTests.cs (212)
81
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
146
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
230
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
233
Diagnostic(ErrorCode.WRN_UnreferencedLabel, "bar").
WithLocation
(7, 9));
327
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
412
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(8, 13));
497
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(8, 13));
563
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
629
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
632
Diagnostic(ErrorCode.ERR_BadEmptyThrow, "throw").
WithLocation
(6, 12));
703
Diagnostic(ErrorCode.ERR_BadIteratorReturn, "Goo").WithArguments("C.Goo()", "void").
WithLocation
(4, 10),
706
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
777
Diagnostic(ErrorCode.ERR_BadIteratorReturn, "Goo").WithArguments("C.Goo()", "void").
WithLocation
(4, 10),
780
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
796
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 17));
852
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
855
Diagnostic(ErrorCode.ERR_NameNotInContext, "yield").WithArguments("yield").
WithLocation
(6, 12),
858
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 17));
933
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
1011
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
1085
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
1187
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
1321
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
1397
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
1474
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
1477
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "await").WithArguments("System.IAsyncDisposable").
WithLocation
(6, 12),
1480
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "await").WithArguments("System.Threading.Tasks.ValueTask").
WithLocation
(6, 12),
1483
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await").
WithLocation
(6, 12));
1561
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
1564
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "await").WithArguments("System.IAsyncDisposable").
WithLocation
(6, 12),
1567
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "await").WithArguments("System.Threading.Tasks.ValueTask").
WithLocation
(6, 12));
1683
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "Goo").
WithLocation
(4, 17),
1686
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
1756
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
1826
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 17));
1896
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
1966
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
1969
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "unsafe").
WithLocation
(6, 12));
1985
Diagnostic(ErrorCode.ERR_BadMemberFlag, "unsafe").WithArguments("unsafe").
WithLocation
(6, 9),
1988
Diagnostic(ErrorCode.ERR_TypeExpected, "[").
WithLocation
(6, 16),
1991
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(6, 19),
1994
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(6, 19));
2063
Diagnostic(ErrorCode.ERR_BadMemberFlag, "unsafe").WithArguments("unsafe").
WithLocation
(6, 9),
2066
Diagnostic(ErrorCode.ERR_TypeExpected, "[").
WithLocation
(6, 16),
2069
Diagnostic(ErrorCode.ERR_ArraySizeInDeclaration, "[A]").
WithLocation
(6, 16),
2072
Diagnostic(ErrorCode.ERR_NameNotInContext, "A").WithArguments("A").
WithLocation
(6, 17),
2075
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(6, 19),
2078
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(6, 19));
2154
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
2230
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
2303
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
2306
Diagnostic(ErrorCode.WRN_EmptySwitch, "{").
WithLocation
(6, 23));
2396
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(9, 17));
2417
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 10),
2420
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("switch").
WithLocation
(8, 16));
2509
Diagnostic(ErrorCode.WRN_EmptySwitch, "{").
WithLocation
(7, 9),
2512
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 10),
2515
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(8, 13),
2518
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("switch").
WithLocation
(8, 16));
2539
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 10),
2542
Diagnostic(ErrorCode.ERR_SemicolonExpected, ":").
WithLocation
(9, 20),
2545
Diagnostic(ErrorCode.ERR_RbraceExpected, ":").
WithLocation
(9, 20),
2548
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(13, 1));
2621
Diagnostic(ErrorCode.WRN_EmptySwitch, "{").
WithLocation
(7, 9),
2624
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(7, 10),
2627
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(8, 13),
2630
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(9, 13),
2633
Diagnostic(ErrorCode.ERR_SemicolonExpected, ":").
WithLocation
(9, 20),
2636
Diagnostic(ErrorCode.ERR_RbraceExpected, ":").
WithLocation
(9, 20),
2639
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(13, 1));
2718
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
2797
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 13));
2813
Diagnostic(ErrorCode.ERR_ExpectedEndTry, "}").
WithLocation
(6, 15),
2816
Diagnostic(ErrorCode.ERR_SyntaxError, "finally").WithArguments("try").
WithLocation
(6, 21));
2900
Diagnostic(ErrorCode.ERR_ExpectedEndTry, "}").
WithLocation
(6, 15),
2903
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 17),
2906
Diagnostic(ErrorCode.ERR_SyntaxError, "finally").WithArguments("try").
WithLocation
(6, 21));
2985
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 25));
3001
Diagnostic(ErrorCode.ERR_ExpectedEndTry, "}").
WithLocation
(6, 15),
3004
Diagnostic(ErrorCode.ERR_SyntaxError, "catch").WithArguments("try").
WithLocation
(6, 21));
3088
Diagnostic(ErrorCode.ERR_ExpectedEndTry, "}").
WithLocation
(6, 15),
3091
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 17),
3094
Diagnostic(ErrorCode.ERR_SyntaxError, "catch").WithArguments("try").
WithLocation
(6, 21));
3173
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 23));
3249
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 19));
3265
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 24));
3326
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
3329
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 24));
3345
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(6, 20),
3348
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 20));
3409
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
3412
Diagnostic(ErrorCode.ERR_LbraceExpected, "").
WithLocation
(6, 20),
3415
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 20));
3494
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
3497
Diagnostic(ErrorCode.ERR_IllegalStatement, "delegate () { }").
WithLocation
(6, 12));
3576
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
3579
Diagnostic(ErrorCode.ERR_IllegalStatement, "() => { }").
WithLocation
(6, 12));
3666
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
3669
Diagnostic(ErrorCode.ERR_IllegalStatement, "(int i) => { }").
WithLocation
(6, 12));
3747
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
3750
Diagnostic(ErrorCode.ERR_IllegalStatement, "i => { }").
WithLocation
(6, 12));
3821
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
3824
Diagnostic(ErrorCode.ERR_IllegalStatement, "new { }").
WithLocation
(6, 12));
3914
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
3917
Diagnostic(ErrorCode.ERR_IllegalStatement, "new int[] { }").
WithLocation
(6, 12));
3997
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
4000
Diagnostic(ErrorCode.ERR_IllegalStatement, "new [] { 0 }").
WithLocation
(6, 12));
4085
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
4170
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
4246
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
4249
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "await").WithArguments("await").
WithLocation
(6, 12),
4252
Diagnostic(ErrorCode.WRN_UnreferencedVar, "a").WithArguments("a").
WithLocation
(6, 18));
4326
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
4329
Diagnostic(ErrorCode.ERR_NameNotInContext, "a").WithArguments("a").
WithLocation
(6, 18));
4414
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
4417
Diagnostic(ErrorCode.ERR_IllegalStatement, "a + a").
WithLocation
(6, 12));
4503
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
4506
Diagnostic(ErrorCode.ERR_IllegalStatement, "(object)a").
WithLocation
(6, 12));
4603
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
4678
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
4681
Diagnostic(ErrorCode.ERR_IllegalStatement, "default(int)").
WithLocation
(6, 12));
4750
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
4753
Diagnostic(ErrorCode.ERR_DefaultLiteralNoTargetType, "default").
WithLocation
(6, 12),
4756
Diagnostic(ErrorCode.ERR_IllegalStatement, "default").
WithLocation
(6, 12));
4848
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
4851
Diagnostic(ErrorCode.ERR_IllegalStatement, "s[0]").
WithLocation
(6, 12));
4947
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
4950
Diagnostic(ErrorCode.ERR_IllegalStatement, "s?[0]").
WithLocation
(6, 12));
5027
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
5096
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
5099
Diagnostic(ErrorCode.ERR_IllegalStatement, "0").
WithLocation
(6, 12));
5184
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
5187
Diagnostic(ErrorCode.ERR_IllegalStatement, "i.ToString").
WithLocation
(6, 12));
5265
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
5351
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
5425
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
5428
Diagnostic(ErrorCode.ERR_IllegalStatement, "(1)").
WithLocation
(6, 12));
5509
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
5590
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
5705
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(7, 9),
5708
Diagnostic(ErrorCode.ERR_IllegalStatement, "from c in s select c").
WithLocation
(7, 12));
5802
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
5805
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "a..b").WithArguments("System.Range").
WithLocation
(6, 12),
5808
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "a").WithArguments("System.Index").
WithLocation
(6, 12),
5811
Diagnostic(ErrorCode.ERR_IllegalStatement, "a..b").
WithLocation
(6, 12),
5814
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "b").WithArguments("System.Index").
WithLocation
(6, 15));
5904
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
5907
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "a..").WithArguments("System.Range").
WithLocation
(6, 12),
5910
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "a").WithArguments("System.Index").
WithLocation
(6, 12),
5913
Diagnostic(ErrorCode.ERR_IllegalStatement, "a..").
WithLocation
(6, 12));
6003
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
6006
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "..b").WithArguments("System.Range").
WithLocation
(6, 12),
6009
Diagnostic(ErrorCode.ERR_IllegalStatement, "..b").
WithLocation
(6, 12),
6012
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "b").WithArguments("System.Index").
WithLocation
(6, 14));
6098
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
6101
Diagnostic(ErrorCode.ERR_PredefinedTypeNotFound, "..").WithArguments("System.Range").
WithLocation
(6, 12),
6104
Diagnostic(ErrorCode.ERR_IllegalStatement, "..").
WithLocation
(6, 12));
6179
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
6182
Diagnostic(ErrorCode.ERR_IllegalStatement, "sizeof(int)").
WithLocation
(6, 12));
6265
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
6268
Diagnostic(ErrorCode.ERR_IllegalStatement, "a switch { }").
WithLocation
(6, 12),
6271
Diagnostic(ErrorCode.WRN_SwitchExpressionNotExhaustive, "switch").WithArguments("_").
WithLocation
(6, 14),
6274
Diagnostic(ErrorCode.ERR_SwitchExpressionNoBestType, "switch").
WithLocation
(6, 14));
6349
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
6352
Diagnostic(ErrorCode.ERR_IllegalStatement, "typeof(int)").
WithLocation
(6, 12));
6428
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
6431
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i").WithArguments("i").
WithLocation
(6, 16));
6512
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
6515
Diagnostic(ErrorCode.WRN_UnreferencedVar, "i").WithArguments("i").
WithLocation
(6, 16),
6518
Diagnostic(ErrorCode.WRN_UnreferencedVar, "j").WithArguments("j").
WithLocation
(6, 19));
6602
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
6605
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 16));
6621
Diagnostic(ErrorCode.ERR_IdentifierExpected, "this").
WithLocation
(6, 16),
6624
Diagnostic(ErrorCode.ERR_SemicolonExpected, "this").
WithLocation
(6, 16),
6627
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 21),
6630
Diagnostic(ErrorCode.ERR_SyntaxError, "i").WithArguments(",").
WithLocation
(6, 25),
6633
Diagnostic(ErrorCode.ERR_SemicolonExpected, "=>").
WithLocation
(6, 28),
6636
Diagnostic(ErrorCode.ERR_RbraceExpected, "=>").
WithLocation
(6, 28));
6738
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
6741
Diagnostic(ErrorCode.ERR_IdentifierExpected, "this").
WithLocation
(6, 16),
6744
Diagnostic(ErrorCode.ERR_SemicolonExpected, "this").
WithLocation
(6, 16),
6747
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 21),
6750
Diagnostic(ErrorCode.ERR_SyntaxError, "i").WithArguments(",").
WithLocation
(6, 25),
6753
Diagnostic(ErrorCode.ERR_NameNotInContext, "i").WithArguments("i").
WithLocation
(6, 25),
6756
Diagnostic(ErrorCode.ERR_SemicolonExpected, "=>").
WithLocation
(6, 28),
6759
Diagnostic(ErrorCode.ERR_RbraceExpected, "=>").
WithLocation
(6, 28),
6762
Diagnostic(ErrorCode.ERR_IllegalStatement, "0").
WithLocation
(6, 31));
6847
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
6850
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 22));
6866
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 6),
6869
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(8, 1));
6930
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 6),
6933
Diagnostic(ErrorCode.ERR_BadMemberFlag, "i").WithArguments("extern").
WithLocation
(6, 27),
6936
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(8, 1));
6952
Diagnostic(ErrorCode.ERR_BadMemberFlag, "extern").WithArguments("extern").
WithLocation
(6, 9),
6955
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(6, 16));
7016
Diagnostic(ErrorCode.ERR_BadMemberFlag, "extern").WithArguments("extern").
WithLocation
(6, 9),
7019
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(6, 16),
7022
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 27));
7038
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(6, 12));
7110
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
7113
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(6, 12),
7116
Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i").WithArguments("i").
WithLocation
(6, 23));
7217
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
7319
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IAsyncDisposable").WithArguments("IAsyncDisposable", "System").
WithLocation
(4, 21),
7322
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9),
7325
Diagnostic(ErrorCode.ERR_BadAwaitWithoutVoidAsyncMethod, "await").
WithLocation
(6, 12));
7428
Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "IAsyncDisposable").WithArguments("IAsyncDisposable", "System").
WithLocation
(4, 27),
7431
Diagnostic(ErrorCode.ERR_AttributesNotAllowed, "[A]").
WithLocation
(6, 9));
7445
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "(").WithArguments("(").
WithLocation
(4, 15),
7448
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 16),
7451
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, ";").WithArguments(";").
WithLocation
(4, 17));
Parsing\StatementParsingTests.cs (57)
33
Diagnostic(ErrorCode.ERR_UnexpectedToken, "").WithArguments("private").
WithLocation
(1, 1),
36
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "private").WithArguments("private").
WithLocation
(1, 1),
39
Diagnostic(ErrorCode.ERR_SemicolonExpected, "private").
WithLocation
(1, 1)
2690
Diagnostic(ErrorCode.ERR_BadAwaitAsIdentifier, "await").
WithLocation
(6, 15),
2693
Diagnostic(ErrorCode.ERR_SemicolonExpected, "x").
WithLocation
(6, 25));
2765
Diagnostic(ErrorCode.ERR_UnexpectedToken, "await var ").WithArguments("a").
WithLocation
(1, 1),
2768
Diagnostic(ErrorCode.ERR_SemicolonExpected, "a").
WithLocation
(1, 11));
3291
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(1, 7));
3462
CSharpTestBase.Diagnostic(ErrorCode.ERR_SyntaxError, "if").WithArguments("when").
WithLocation
(7, 36));
3532
CSharpTestBase.Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(9, 10),
3535
CSharpTestBase.Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(9, 10),
3538
CSharpTestBase.Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(9, 10));
3563
Diagnostic(ErrorCode.ERR_UnexpectedToken, "{ label: ").WithArguments("public").
WithLocation
(1, 1),
3566
Diagnostic(ErrorCode.ERR_SemicolonExpected, "public").
WithLocation
(1, 10),
3569
Diagnostic(ErrorCode.ERR_RbraceExpected, "public").
WithLocation
(1, 10)
3596
Diagnostic(ErrorCode.ERR_ElseCannotStartStatement, "else").
WithLocation
(1, 1),
3599
Diagnostic(ErrorCode.ERR_SyntaxError, "else").WithArguments("(").
WithLocation
(1, 1),
3602
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "else").WithArguments("else").
WithLocation
(1, 1),
3605
Diagnostic(ErrorCode.ERR_CloseParenExpected, "else").
WithLocation
(1, 1),
3608
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "else").WithArguments("else").
WithLocation
(1, 1),
3611
Diagnostic(ErrorCode.ERR_SemicolonExpected, "else").
WithLocation
(1, 1)
3650
Diagnostic(ErrorCode.ERR_ElseCannotStartStatement, "else").
WithLocation
(1, 3),
3653
Diagnostic(ErrorCode.ERR_SyntaxError, "else").WithArguments("(").
WithLocation
(1, 3),
3656
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "else").WithArguments("else").
WithLocation
(1, 3),
3659
Diagnostic(ErrorCode.ERR_CloseParenExpected, "else").
WithLocation
(1, 3),
3662
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "else").WithArguments("else").
WithLocation
(1, 3),
3665
Diagnostic(ErrorCode.ERR_SemicolonExpected, "else").
WithLocation
(1, 3),
3668
Diagnostic(ErrorCode.ERR_ElseCannotStartStatement, "else").
WithLocation
(1, 11),
3671
Diagnostic(ErrorCode.ERR_SyntaxError, "else").WithArguments("(").
WithLocation
(1, 11),
3674
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "else").WithArguments("else").
WithLocation
(1, 11),
3677
Diagnostic(ErrorCode.ERR_CloseParenExpected, "else").
WithLocation
(1, 11),
3680
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "else").WithArguments("else").
WithLocation
(1, 11),
3683
Diagnostic(ErrorCode.ERR_SemicolonExpected, "else").
WithLocation
(1, 11)
3754
Diagnostic(ErrorCode.ERR_ElseCannotStartStatement, "else").
WithLocation
(1, 23),
3757
Diagnostic(ErrorCode.ERR_SyntaxError, "else").WithArguments("(").
WithLocation
(1, 23),
3760
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "else").WithArguments("else").
WithLocation
(1, 23),
3763
Diagnostic(ErrorCode.ERR_CloseParenExpected, "else").
WithLocation
(1, 23),
3766
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "else").WithArguments("else").
WithLocation
(1, 23),
3769
Diagnostic(ErrorCode.ERR_SemicolonExpected, "else").
WithLocation
(1, 23)
3837
Diagnostic(ErrorCode.ERR_ElseCannotStartStatement, "else").
WithLocation
(1, 8),
3840
Diagnostic(ErrorCode.ERR_SyntaxError, "else").WithArguments("(").
WithLocation
(1, 8),
3843
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "else").WithArguments("else").
WithLocation
(1, 8),
3846
Diagnostic(ErrorCode.ERR_CloseParenExpected, "else").
WithLocation
(1, 8),
3849
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "else").WithArguments("else").
WithLocation
(1, 8),
3852
Diagnostic(ErrorCode.ERR_SemicolonExpected, "else").
WithLocation
(1, 8)
3900
Diagnostic(ErrorCode.ERR_SwitchGoverningExpressionRequiresParens, "1+2").
WithLocation
(1, 8)
3931
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(1, 13)
4025
Diagnostic(ErrorCode.ERR_SwitchGoverningExpressionRequiresParens, "(1) + (2)").
WithLocation
(1, 8)
4118
Diagnostic(ErrorCode.ERR_UnexpectedToken, "_ = new (int, int) ? (x) ").WithArguments(":").
WithLocation
(1, 1),
4121
Diagnostic(ErrorCode.ERR_SemicolonExpected, ":").
WithLocation
(1, 26)
4184
Diagnostic(ErrorCode.ERR_IdentifierExpected, "*").
WithLocation
(1, 7),
4187
Diagnostic(ErrorCode.ERR_SyntaxError, "*").WithArguments(",").
WithLocation
(1, 7)
4272
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("switch").
WithLocation
(4, 6));
4406
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(6, 10),
4409
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("switch").
WithLocation
(7, 19));
4570
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(6, 10),
4573
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("switch").
WithLocation
(7, 40));
Parsing\SuppressNullableWarningExpressionParsingTests.cs (20)
191
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "=").WithArguments("=").
WithLocation
(1, 8));
373
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ".", isSuppressed: false).WithArguments(".").
WithLocation
(1, 7),
376
Diagnostic(ErrorCode.ERR_SyntaxError, "", isSuppressed: false).WithArguments(":").
WithLocation
(1, 20),
379
Diagnostic(ErrorCode.ERR_ExpressionExpected, "", isSuppressed: false).
WithLocation
(1, 20));
447
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "[", isSuppressed: false).WithArguments("[").
WithLocation
(1, 7),
450
Diagnostic(ErrorCode.ERR_SyntaxError, "", isSuppressed: false).WithArguments(":").
WithLocation
(1, 21),
453
Diagnostic(ErrorCode.ERR_ExpressionExpected, "", isSuppressed: false).
WithLocation
(1, 21));
528
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")", isSuppressed: false).WithArguments(")").
WithLocation
(1, 8),
531
Diagnostic(ErrorCode.ERR_SyntaxError, "", isSuppressed: false).WithArguments(":").
WithLocation
(1, 20),
534
Diagnostic(ErrorCode.ERR_ExpressionExpected, "", isSuppressed: false).
WithLocation
(1, 20));
599
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ".", isSuppressed: false).WithArguments(".").
WithLocation
(1, 8),
602
Diagnostic(ErrorCode.ERR_SyntaxError, "", isSuppressed: false).WithArguments(":").
WithLocation
(1, 19),
605
Diagnostic(ErrorCode.ERR_ExpressionExpected, "", isSuppressed: false).
WithLocation
(1, 19));
806
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "x?.y!.z").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
809
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(1, 1),
812
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "!").WithArguments("nullable reference types", "8.0").
WithLocation
(1, 5),
815
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 8));
819
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "x?.y!.z").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
822
Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x").
WithLocation
(1, 1),
825
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 8));
Parsing\SwitchExpressionParsingTests.cs (44)
28
Diagnostic(ErrorCode.ERR_BadCaseInSwitchArm, "case").
WithLocation
(3, 5),
31
Diagnostic(ErrorCode.ERR_BadCaseInSwitchArm, "case").
WithLocation
(4, 5));
89
Diagnostic(ErrorCode.ERR_BadCaseInSwitchArm, "case").
WithLocation
(3, 5),
92
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(3, 16),
95
Diagnostic(ErrorCode.ERR_BadCaseInSwitchArm, "case").
WithLocation
(4, 5),
98
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(4, 16));
156
Diagnostic(ErrorCode.ERR_BadCaseInSwitchArm, "case").
WithLocation
(3, 5),
159
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(3, 11),
162
Diagnostic(ErrorCode.ERR_BadCaseInSwitchArm, "case").
WithLocation
(4, 5),
165
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(4, 11));
223
Diagnostic(ErrorCode.ERR_BadCaseInSwitchArm, "case").
WithLocation
(3, 5),
226
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(3, 11),
229
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(3, 14),
232
Diagnostic(ErrorCode.ERR_BadCaseInSwitchArm, "case").
WithLocation
(4, 5),
235
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(4, 11),
238
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(4, 14));
304
Diagnostic(ErrorCode.ERR_BadCaseInSwitchArm, "case").
WithLocation
(4, 9),
307
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(4, 15),
310
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(5, 18),
313
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(5, 19),
316
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(5, 19),
319
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("switch").
WithLocation
(6, 24));
469
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(3, 6),
472
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(4, 6));
530
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(3, 6),
533
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(3, 9),
536
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(4, 6),
539
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(4, 9));
597
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(4, 12));
655
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(3, 11),
658
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(4, 12),
661
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(4, 15));
719
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(4, 17));
783
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(3, 11),
786
Diagnostic(ErrorCode.ERR_SyntaxError, ":").WithArguments("=>").
WithLocation
(4, 17),
789
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(4, 20));
855
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(4, 5));
936
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(3, 11),
939
Diagnostic(ErrorCode.ERR_DefaultPattern, "default").
WithLocation
(4, 5),
942
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(4, 17));
947
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(3, 11),
950
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(4, 17));
1091
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(3, 11),
1094
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(",").
WithLocation
(4, 22));
Parsing\TopLevelStatementsParsingTests.cs (158)
30
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(4, 1)
101
Diagnostic(ErrorCode.ERR_IdentifierExpected, "]").
WithLocation
(2, 5),
104
Diagnostic(ErrorCode.ERR_SyntaxError, "]").WithArguments(",").
WithLocation
(2, 5),
107
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 6),
110
Diagnostic(ErrorCode.ERR_ExternAfterElements, "extern").
WithLocation
(3, 1),
113
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "asas").
WithLocation
(4, 1),
116
Diagnostic(ErrorCode.ERR_UsingAfterElements, "using System;").
WithLocation
(5, 1),
119
Diagnostic(ErrorCode.ERR_IdentifierExpected, "]").
WithLocation
(6, 10),
122
Diagnostic(ErrorCode.ERR_SyntaxError, "]").WithArguments(",").
WithLocation
(6, 10),
125
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 11),
128
Diagnostic(ErrorCode.ERR_GlobalAttributesNotFirst, "assembly").
WithLocation
(8, 2),
131
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "[a]fod;").
WithLocation
(15, 1),
134
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("]").
WithLocation
(16, 3)
242
Diagnostic(ErrorCode.ERR_BadOperatorSyntax, "fg").WithArguments("+").
WithLocation
(2, 1),
245
Diagnostic(ErrorCode.ERR_SyntaxError, "implicit").WithArguments("operator").
WithLocation
(2, 4),
248
Diagnostic(ErrorCode.ERR_OvlOperatorExpected, "implicit").
WithLocation
(2, 4),
251
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments("(").
WithLocation
(2, 12),
254
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(2, 12),
257
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 12)
296
Diagnostic(ErrorCode.ERR_RbraceExpected, "namespace").
WithLocation
(1, 3)
335
Diagnostic(ErrorCode.ERR_SemicolonExpected, @"\u005C").
WithLocation
(1, 8),
338
Diagnostic(ErrorCode.ERR_UnexpectedCharacter, "").WithArguments(@"\u005C").
WithLocation
(1, 8)
411
Diagnostic(ErrorCode.ERR_BadMemberFlag, "extern").WithArguments("extern").
WithLocation
(1, 1)
528
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 5)
567
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "garbage").
WithLocation
(1, 1)
602
Diagnostic(ErrorCode.ERR_LbraceExpected, "4").
WithLocation
(1, 10),
605
Diagnostic(ErrorCode.ERR_RbraceExpected, "4").
WithLocation
(1, 10),
608
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "4").
WithLocation
(1, 10),
611
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 11)
657
Diagnostic(ErrorCode.ERR_ExplicitEventFieldImpl, ".").
WithLocation
(4, 17),
660
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 20),
663
Diagnostic(ErrorCode.ERR_InvalidMemberDecl, "{").WithArguments("{").
WithLocation
(5, 4),
669
}").
WithLocation
(7, 4),
672
Diagnostic(ErrorCode.ERR_BadMemberFlag, "public").WithArguments("public").
WithLocation
(7, 4),
675
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(11, 1)
791
Diagnostic(ErrorCode.ERR_LbraceExpected, ".").
WithLocation
(1, 15),
794
Diagnostic(ErrorCode.ERR_RbraceExpected, ".").
WithLocation
(1, 15),
797
Diagnostic(ErrorCode.ERR_EOFExpected, ".").
WithLocation
(1, 15),
802
").
WithLocation
(1, 16),
805
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 17),
808
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(",").
WithLocation
(1, 17),
811
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 2),
814
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(4, 1)
889
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ">").WithArguments(">").
WithLocation
(1, 2),
892
Diagnostic(ErrorCode.ERR_SemicolonExpected, "Basic").
WithLocation
(1, 27),
895
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 32),
898
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 32)
974
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "E").WithArguments("E").
WithLocation
(2, 18),
977
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(2, 20),
980
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments("(").
WithLocation
(2, 20),
983
Diagnostic(ErrorCode.ERR_CloseParenExpected, "{").
WithLocation
(2, 20),
986
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(2, 20),
989
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "{ }").
WithLocation
(2, 20),
992
Diagnostic(ErrorCode.ERR_PartialMisplaced, "").
WithLocation
(2, 20)
997
Diagnostic(ErrorCode.ERR_IdentifierExpected, "{").
WithLocation
(2, 20),
1000
Diagnostic(ErrorCode.ERR_SyntaxError, "{").WithArguments("(").
WithLocation
(2, 20),
1003
Diagnostic(ErrorCode.ERR_CloseParenExpected, "{").
WithLocation
(2, 20),
1006
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(2, 20),
1009
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "{ }").
WithLocation
(2, 20)
1055
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 8)
1158
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(4, 4),
1161
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(4, 4)
1196
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "a").
WithLocation
(1, 8)
1234
Diagnostic(ErrorCode.ERR_RbraceExpected, "void").
WithLocation
(4, 12),
1237
Diagnostic(ErrorCode.ERR_TopLevelStatementAfterNamespaceOrType, "static int Main() { return 1; }").
WithLocation
(5, 2),
1240
Diagnostic(ErrorCode.ERR_EOFExpected, "}").
WithLocation
(6, 1)
1329
Diagnostic(ErrorCode.ERR_BadDirectivePlacement, "#").
WithLocation
(1, 21),
1332
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 61),
1335
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 61)
1372
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "double").WithArguments("double").
WithLocation
(2, 6),
1375
Diagnostic(ErrorCode.ERR_SyntaxError, "E").WithArguments(",").
WithLocation
(2, 13),
1378
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(2, 16),
1381
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(2, 22)
1462
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "object").WithArguments("object").
WithLocation
(1, 13),
1465
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(1, 19),
1468
Diagnostic(ErrorCode.ERR_EOFExpected, ",").
WithLocation
(1, 19),
1471
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 38),
1474
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 38)
1527
Diagnostic(ErrorCode.ERR_RbraceExpected, "").
WithLocation
(1, 29)
1579
Diagnostic(ErrorCode.ERR_BadNewExpr, "").
WithLocation
(1, 5),
1582
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 5)
1674
Diagnostic(ErrorCode.ERR_BadDirectivePlacement, "#").
WithLocation
(1, 21),
1677
Diagnostic(ErrorCode.ERR_CloseParenExpected, "").
WithLocation
(1, 61),
1680
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 61)
1716
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 2),
1719
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 2)
1759
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "e").
WithLocation
(3, 1)
1796
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "abc").
WithLocation
(1, 1),
1799
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 10),
1802
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 10)
1879
Diagnostic(ErrorCode.ERR_BadMemberFlag, "static").WithArguments("static").
WithLocation
(1, 7)
1917
Diagnostic(ErrorCode.ERR_BadMemberFlag, "volatile").WithArguments("volatile").
WithLocation
(1, 7),
1920
Diagnostic(ErrorCode.ERR_TypeExpected, ";").
WithLocation
(1, 15),
1923
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 15)
1961
Diagnostic(ErrorCode.ERR_TypeExpected, ";").
WithLocation
(1, 12),
1964
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 12),
1967
Diagnostic(ErrorCode.ERR_ConstValueRequired, ";").
WithLocation
(1, 12)
2005
Diagnostic(ErrorCode.ERR_TypeExpected, ";").
WithLocation
(1, 10),
2008
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 10)
2049
Diagnostic(ErrorCode.ERR_BadMemberFlag, "readonly").WithArguments("readonly").
WithLocation
(1, 7),
2052
Diagnostic(ErrorCode.ERR_TypeExpected, ";").
WithLocation
(1, 15),
2055
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 15)
2234
Diagnostic(ErrorCode.ERR_IdentifierExpected, ".").
WithLocation
(1, 10),
2237
Diagnostic(ErrorCode.ERR_SyntaxError, ".").WithArguments(",").
WithLocation
(1, 10),
2240
Diagnostic(ErrorCode.ERR_SemicolonExpected, "Parse").
WithLocation
(1, 11)
2303
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 11),
2306
Diagnostic(ErrorCode.ERR_BadVarDecl, "(x, y").
WithLocation
(1, 11),
2309
Diagnostic(ErrorCode.ERR_SyntaxError, "(").WithArguments("[").
WithLocation
(1, 11),
2312
Diagnostic(ErrorCode.ERR_SyntaxError, ")").WithArguments("]").
WithLocation
(1, 16),
2315
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 17)
2372
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 10),
2375
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 10)
2413
Diagnostic(ErrorCode.ERR_LbraceExpected, "using").
WithLocation
(1, 15),
2416
Diagnostic(ErrorCode.ERR_SyntaxError, "using").WithArguments(",").
WithLocation
(1, 15),
2419
Diagnostic(ErrorCode.ERR_ValueExpected, "").
WithLocation
(1, 15),
2422
Diagnostic(ErrorCode.ERR_SyntaxError, "using").WithArguments("]").
WithLocation
(1, 15),
2425
Diagnostic(ErrorCode.ERR_SyntaxError, "using").WithArguments(">").
WithLocation
(1, 15),
2428
Diagnostic(ErrorCode.ERR_SyntaxError, "using").WithArguments("]").
WithLocation
(1, 15),
2431
Diagnostic(ErrorCode.ERR_TypeExpected, "'").
WithLocation
(1, 20),
2434
Diagnostic(ErrorCode.ERR_IdentifierExpected, "'").
WithLocation
(1, 20),
2437
Diagnostic(ErrorCode.ERR_SemicolonExpected, "'").
WithLocation
(1, 20),
2440
Diagnostic(ErrorCode.ERR_NewlineInConst, "").
WithLocation
(1, 20),
2443
Diagnostic(ErrorCode.ERR_EmptyCharConst, "").
WithLocation
(1, 20),
2446
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 21)
2537
Diagnostic(ErrorCode.ERR_SemicolonExpected, "{").
WithLocation
(1, 9)
2582
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 13)
2622
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 18)
2717
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 3),
2720
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 3)
2758
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(3, 3),
2761
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(3, 3)
2827
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(2, 3),
2830
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 3)
2893
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "alias").
WithLocation
(1, 8)
3012
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "]").
WithLocation
(2, 15)
3059
Diagnostic(ErrorCode.ERR_IdentifierExpected, "struct").
WithLocation
(2, 8),
3062
Diagnostic(ErrorCode.ERR_SemicolonExpected, "struct").
WithLocation
(2, 8),
3065
Diagnostic(ErrorCode.ERR_TypeExpected, "struct").
WithLocation
(3, 12),
3068
Diagnostic(ErrorCode.ERR_BadModifierLocation, "readonly").WithArguments("readonly").
WithLocation
(4, 8)
3193
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "record ").WithArguments("top-level statements", "9.0").
WithLocation
(2, 1),
3196
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "record").WithArguments("record").
WithLocation
(2, 1),
3199
Diagnostic(ErrorCode.ERR_IdentifierExpected, "class").
WithLocation
(2, 8),
3202
Diagnostic(ErrorCode.ERR_SemicolonExpected, "class").
WithLocation
(2, 8),
3205
Diagnostic(ErrorCode.ERR_FeatureInPreview, "(int x, int y)").WithArguments("primary constructors").
WithLocation
(2, 19),
3208
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "x").WithArguments("x").
WithLocation
(2, 24),
3211
Diagnostic(ErrorCode.WRN_UnreadPrimaryConstructorParameter, "y").WithArguments("y").
WithLocation
(2, 31)
3217
Diagnostic(ErrorCode.ERR_IdentifierExpected, "class").
WithLocation
(2, 8),
3220
Diagnostic(ErrorCode.ERR_SemicolonExpected, "class").
WithLocation
(2, 8)
3288
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "p").
WithLocation
(3, 1)
3330
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "p").
WithLocation
(3, 1)
3370
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(3, 2),
3373
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(3, 2)
3441
Diagnostic(ErrorCode.ERR_SemicolonExpected, "using").
WithLocation
(4, 8)
3508
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(2, 15),
3511
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(2, 15),
3514
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(2, 15),
3517
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(2, 17),
3520
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(2, 17)
Parsing\TypeArgumentListParsingTests.cs (33)
38
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 76));
154
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 73));
282
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 74));
402
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ",").WithArguments(",").
WithLocation
(6, 43),
405
Diagnostic(ErrorCode.ERR_SemicolonExpected, "<").
WithLocation
(6, 65),
408
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "<").WithArguments("<").
WithLocation
(6, 65),
411
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(6, 67),
414
Diagnostic(ErrorCode.ERR_RbraceExpected, ",").
WithLocation
(6, 67));
548
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(6, 42),
551
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "string").WithArguments("string").
WithLocation
(6, 47),
554
Diagnostic(ErrorCode.ERR_SemicolonExpected, "<").
WithLocation
(6, 76),
557
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "<").WithArguments("<").
WithLocation
(6, 76),
560
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(6, 78),
563
Diagnostic(ErrorCode.ERR_RbraceExpected, ",").
WithLocation
(6, 78));
1014
Diagnostic(ErrorCode.ERR_SemicolonExpected, "<").
WithLocation
(6, 66),
1017
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "<").WithArguments("<").
WithLocation
(6, 66),
1020
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(6, 68),
1023
Diagnostic(ErrorCode.ERR_RbraceExpected, ",").
WithLocation
(6, 68));
1153
Diagnostic(ErrorCode.ERR_SemicolonExpected, "<").
WithLocation
(6, 66),
1156
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "<").WithArguments("<").
WithLocation
(6, 66),
1159
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(6, 68),
1162
Diagnostic(ErrorCode.ERR_RbraceExpected, ",").
WithLocation
(6, 68));
1295
Diagnostic(ErrorCode.ERR_SemicolonExpected, "<").
WithLocation
(6, 67),
1298
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "<").WithArguments("<").
WithLocation
(6, 67),
1301
Diagnostic(ErrorCode.ERR_SemicolonExpected, ",").
WithLocation
(6, 69),
1304
Diagnostic(ErrorCode.ERR_RbraceExpected, ",").
WithLocation
(6, 69));
1437
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 72));
1557
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 44));
1658
Diagnostic(ErrorCode.ERR_SyntaxError, ";").WithArguments(":").
WithLocation
(8, 38),
1661
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(8, 38));
1762
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 74));
2017
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 77));
2151
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(6, 77));
Parsing\UsingDirectiveParsingTests.cs (130)
28
Diagnostic(ErrorCode.ERR_SemicolonExpected, "*").
WithLocation
(1, 8),
31
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(1, 9));
71
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 14));
110
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 27));
166
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 10));
201
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 11));
240
Diagnostic(ErrorCode.ERR_IdentifierExpected, ",").
WithLocation
(1, 11),
243
Diagnostic(ErrorCode.ERR_IdentifierExpected, "int").
WithLocation
(1, 13),
246
Diagnostic(ErrorCode.ERR_CloseParenExpected, "int").
WithLocation
(1, 13),
249
Diagnostic(ErrorCode.ERR_IdentifierExpected, ")").
WithLocation
(1, 16),
252
Diagnostic(ErrorCode.ERR_SemicolonExpected, ")").
WithLocation
(1, 16),
255
Diagnostic(ErrorCode.ERR_EOFExpected, ")").
WithLocation
(1, 16));
318
Diagnostic(ErrorCode.ERR_SemicolonExpected, "*").
WithLocation
(1, 15),
321
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ";").WithArguments(";").
WithLocation
(1, 16));
363
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static x = ref int;").
WithLocation
(1, 1),
366
Diagnostic(ErrorCode.ERR_NoAliasHere, "x").
WithLocation
(1, 14),
369
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 14),
372
Diagnostic(ErrorCode.ERR_BadRefInUsingAlias, "ref").
WithLocation
(1, 18));
410
Diagnostic(ErrorCode.ERR_BadMemberFlag, "static").WithArguments("static").
WithLocation
(1, 7),
413
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 34));
470
Diagnostic(ErrorCode.ERR_BadMemberFlag, "static").WithArguments("static").
WithLocation
(1, 7),
473
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 17));
509
Diagnostic(ErrorCode.ERR_BadMemberFlag, "static").WithArguments("static").
WithLocation
(1, 7),
512
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(1, 18));
552
Diagnostic(ErrorCode.ERR_IdentifierExpected, "(").
WithLocation
(1, 14),
555
Diagnostic(ErrorCode.ERR_SemicolonExpected, "(").
WithLocation
(1, 14),
558
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 15),
561
Diagnostic(ErrorCode.ERR_InvalidExprTerm, "int").WithArguments("int").
WithLocation
(1, 20));
618
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using x = A*;").
WithLocation
(1, 1),
621
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 7),
624
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "A*").
WithLocation
(1, 11));
672
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe x = A*;").
WithLocation
(1, 1),
675
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 14));
722
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using x = delegate*<int, void>;").
WithLocation
(1, 1),
725
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 7),
728
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 11));
784
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe x = delegate*<int, void>;").
WithLocation
(1, 1),
787
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 14));
844
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe System;").
WithLocation
(1, 1),
847
Diagnostic(ErrorCode.ERR_BadUnsafeInUsingDirective, "unsafe").
WithLocation
(1, 7));
875
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using static unsafe System.Console;").
WithLocation
(1, 1),
878
Diagnostic(ErrorCode.ERR_BadUnsafeInUsingDirective, "unsafe").
WithLocation
(1, 14));
914
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using x = int;").
WithLocation
(1, 1),
917
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 7),
920
Diagnostic(ErrorCode.ERR_FeatureInPreview, "int").WithArguments("using type alias").
WithLocation
(1, 11));
954
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using x = int;").
WithLocation
(1, 1),
957
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 7));
991
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using x = int;").
WithLocation
(1, 1),
994
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 7));
1028
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using x = ref int;").
WithLocation
(1, 1),
1031
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 7),
1034
Diagnostic(ErrorCode.ERR_BadRefInUsingAlias, "ref").
WithLocation
(1, 11));
1072
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using x = ref readonly int;").
WithLocation
(1, 1),
1075
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 7),
1078
Diagnostic(ErrorCode.ERR_BadRefInUsingAlias, "ref").
WithLocation
(1, 11));
1117
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using x = int*;").
WithLocation
(1, 1),
1120
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 7),
1123
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(1, 11));
1161
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe x = int*;").
WithLocation
(1, 1),
1164
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 14));
1209
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Y = X;").
WithLocation
(6, 5),
1212
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 15));
1284
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe Y = X;").
WithLocation
(6, 5));
1357
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "int*").
WithLocation
(2, 11),
1360
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe Y = X;").
WithLocation
(6, 5));
1432
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Y = X[];").
WithLocation
(6, 5),
1435
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "X").
WithLocation
(6, 15));
1519
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using unsafe Y = X[];").
WithLocation
(6, 5));
1598
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using x = (int, int);").
WithLocation
(1, 1),
1601
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 7));
1658
Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "x").WithArguments("C.x").
WithLocation
(5, 7));
1761
Diagnostic(ErrorCode.ERR_NoImplicitConv, "true").WithArguments("bool", "int").
WithLocation
(5, 12),
1764
Diagnostic(ErrorCode.ERR_NoImplicitConv, "false").WithArguments("bool", "int").
WithLocation
(5, 18));
1860
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using x = int?;").
WithLocation
(1, 1),
1863
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 7));
1901
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using x = string?;").
WithLocation
(1, 1),
1904
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "x").WithArguments("x").
WithLocation
(1, 7),
1907
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(1, 17),
1910
Diagnostic(ErrorCode.ERR_BadNullableReferenceTypeInUsingAlias, "?").
WithLocation
(1, 17));
1951
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = string?;").
WithLocation
(2, 1),
1954
Diagnostic(ErrorCode.ERR_BadNullableReferenceTypeInUsingAlias, "?").
WithLocation
(2, 17));
1998
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Y = X?;").
WithLocation
(4, 5),
2001
Diagnostic(ErrorCode.WRN_MissingNonNullTypesContextForAnnotation, "?").
WithLocation
(4, 16),
2004
Diagnostic(ErrorCode.ERR_BadNullableReferenceTypeInUsingAlias, "?").
WithLocation
(4, 16));
2076
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using Y = X?;").
WithLocation
(5, 5),
2079
Diagnostic(ErrorCode.ERR_BadNullableReferenceTypeInUsingAlias, "?").
WithLocation
(5, 16));
2149
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "VP").
WithLocation
(5, 12));
2301
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "void*").
WithLocation
(1, 12));
2377
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(1, 11));
2382
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(1, 11));
2453
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(1, 11));
2458
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(1, 11));
2521
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(1, 11));
2526
Diagnostic(ErrorCode.ERR_NoVoidHere, "void").
WithLocation
(1, 11),
2529
Diagnostic(ErrorCode.ERR_ReturnExpected, "M").WithArguments("C.M()").
WithLocation
(5, 7));
2601
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using dynamic;").
WithLocation
(2, 1),
2604
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "dynamic").WithArguments("dynamic").
WithLocation
(2, 7));
3005
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "dynamic").WithArguments("dynamic").
WithLocation
(4, 7),
3008
Diagnostic(ErrorCode.ERR_NoSuchMemberOrExtension, "Goo").WithArguments("dynamic", "Goo").
WithLocation
(8, 11));
3200
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = int?;").
WithLocation
(1, 1),
3203
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = System;").
WithLocation
(2, 1),
3206
Diagnostic(ErrorCode.ERR_DuplicateAlias, "X").WithArguments("X").
WithLocation
(2, 7));
3264
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = int?;").
WithLocation
(1, 1),
3267
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = int;").
WithLocation
(2, 1),
3270
Diagnostic(ErrorCode.ERR_DuplicateAlias, "X").WithArguments("X").
WithLocation
(2, 7));
3328
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = int?;").
WithLocation
(1, 1),
3331
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = System.Int32;").
WithLocation
(2, 1),
3334
Diagnostic(ErrorCode.ERR_DuplicateAlias, "X").WithArguments("X").
WithLocation
(2, 7));
3401
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = int?;").
WithLocation
(1, 1),
3404
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = int;").
WithLocation
(3, 1));
3470
Diagnostic(ErrorCode.ERR_SemicolonExpected, "int").
WithLocation
(2, 14),
3473
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(2, 17));
3519
Diagnostic(ErrorCode.ERR_SemicolonExpected, "int").
WithLocation
(2, 18),
3522
Diagnostic(ErrorCode.ERR_IdentifierExpected, ";").
WithLocation
(2, 21));
3575
Diagnostic(ErrorCode.ERR_SemicolonExpected, "System").
WithLocation
(2, 18));
3622
Diagnostic(ErrorCode.ERR_SemicolonExpected, "System").
WithLocation
(2, 18));
3689
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "X").WithArguments("C", "").
WithLocation
(11, 5),
3692
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("D.x").
WithLocation
(11, 7),
3695
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "C").WithArguments("C", "").
WithLocation
(12, 5),
3698
Diagnostic(ErrorCode.WRN_UnreferencedField, "c").WithArguments("D.c").
WithLocation
(12, 7));
3839
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "X").WithArguments("C", "").
WithLocation
(11, 5),
3842
Diagnostic(ErrorCode.WRN_UnreferencedField, "x1").WithArguments("D.x1").
WithLocation
(11, 7),
3845
Diagnostic(ErrorCode.ERR_DeprecatedSymbolStr, "C").WithArguments("C", "").
WithLocation
(12, 5),
3848
Diagnostic(ErrorCode.WRN_UnreferencedField, "c1").WithArguments("D.c1").
WithLocation
(12, 9));
4002
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = __arglist;").
WithLocation
(2, 1),
4005
Diagnostic(ErrorCode.ERR_TypeExpected, "__arglist").
WithLocation
(2, 11));
4010
Diagnostic(ErrorCode.ERR_TypeExpected, "__arglist").
WithLocation
(2, 11));
4047
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using X = __makeref;").
WithLocation
(2, 1),
4050
Diagnostic(ErrorCode.ERR_TypeExpected, "__makeref").
WithLocation
(2, 11));
4055
Diagnostic(ErrorCode.ERR_TypeExpected, "__makeref").
WithLocation
(2, 11));
Parsing\Utf8StringLiteralsParsingTests.cs (32)
250
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"@""hello""").WithArguments("u8").
WithLocation
(1, 1)
266
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"@""hello""").WithArguments("u").
WithLocation
(1, 1)
282
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"@""hello""").WithArguments("8").
WithLocation
(1, 1)
299
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"@""hello""u8").WithArguments("0").
WithLocation
(1, 1)
315
Diagnostic(ErrorCode.ERR_UnexpectedToken, "1L").WithArguments("0").
WithLocation
(1, 1)
331
Diagnostic(ErrorCode.ERR_UnexpectedToken, "1").WithArguments("L").
WithLocation
(1, 1)
348
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"""hello""").WithArguments("u8").
WithLocation
(1, 1)
364
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"""hello""").WithArguments("u").
WithLocation
(1, 1)
380
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"""hello""").WithArguments("8").
WithLocation
(1, 1)
397
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"""hello""u8").WithArguments("0").
WithLocation
(1, 1)
414
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"@""hello""").WithArguments("U8").
WithLocation
(1, 1)
430
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"@""hello""").WithArguments("U").
WithLocation
(1, 1)
447
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"@""hello""U8").WithArguments("0").
WithLocation
(1, 1)
464
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"""hello""").WithArguments("U8").
WithLocation
(1, 1)
480
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"""hello""").WithArguments("U").
WithLocation
(1, 1)
497
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"""hello""U8").WithArguments("0").
WithLocation
(1, 1)
513
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"$""hello""").WithArguments("u8").
WithLocation
(1, 1)
534
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"$@""hello""").WithArguments("u8").
WithLocation
(1, 1)
555
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"$""hello""").WithArguments("U8").
WithLocation
(1, 1)
576
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"$@""hello""").WithArguments("U8").
WithLocation
(1, 1)
636
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"""""""hello""""""").WithArguments(suffix).
WithLocation
(1, 1)
654
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"""""""hello""""""").WithArguments(suffix).
WithLocation
(1, 1)
670
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"""""""hello""""""").WithArguments("8").
WithLocation
(1, 1)
689
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"""""""hello""""""" + suffix.Substring(0, 2)).WithArguments("0").
WithLocation
(1, 1)
707
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"$""""""hello""""""").WithArguments(suffix).
WithLocation
(1, 1)
730
Diagnostic(ErrorCode.ERR_UnexpectedToken, @"$@""""""hello""""""").WithArguments(suffix).
WithLocation
(1, 1)
802
""""""").WithArguments(suffix).
WithLocation
(1, 1)
826
""""""").WithArguments(suffix).
WithLocation
(1, 1)
848
""""""").WithArguments("8").
WithLocation
(1, 1)
873
""""""" + suffix.Substring(0, 2)).WithArguments("0").
WithLocation
(1, 1)
897
""""""").WithArguments(suffix).
WithLocation
(1, 1)
924
""""""").WithArguments(suffix).
WithLocation
(1, 1)
Parsing\ValueTupleTests.cs (7)
509
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 20),
512
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 31)
616
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 26),
619
Diagnostic(ErrorCode.ERR_InvalidExprTerm, ")").WithArguments(")").
WithLocation
(4, 30)
717
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 22));
722
Diagnostic(ErrorCode.WRN_LowercaseEllSuffix, "l").
WithLocation
(4, 21),
725
Diagnostic(ErrorCode.ERR_TupleTooFewElements, ")").
WithLocation
(4, 22));
Syntax\SyntaxFactoryTests.cs (13)
621
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "delegate*<void>").WithArguments("top-level statements", "9.0").
WithLocation
(1, 1),
624
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "delegate").WithArguments("function pointers", "9.0").
WithLocation
(1, 1),
627
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 1),
630
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 16),
633
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 16));
638
Diagnostic(ErrorCode.ERR_UnsafeNeeded, "delegate*").
WithLocation
(1, 1),
641
Diagnostic(ErrorCode.ERR_IdentifierExpected, "").
WithLocation
(1, 16),
644
Diagnostic(ErrorCode.ERR_SemicolonExpected, "").
WithLocation
(1, 16));
651
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").
WithLocation
(1, 14),
654
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion8, "delegate").WithArguments("function pointers", "9.0").
WithLocation
(1, 18),
657
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("C.x").
WithLocation
(1, 34));
662
Diagnostic(ErrorCode.ERR_IllegalUnsafe, "C").
WithLocation
(1, 14),
665
Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("C.x").
WithLocation
(1, 34));
Syntax\SyntaxNodeTests.cs (2)
364
TestBase.Diagnostic(ErrorCode.ERR_BadDirectivePlacement, "#").
WithLocation
(1, 17),
367
TestBase.Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "").
WithLocation
(1, 26));
Syntax\SyntaxTreeTests.cs (31)
367
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "global").WithArguments("global using directive", "10.0").
WithLocation
(1, 1),
370
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using ns1;").
WithLocation
(1, 1),
373
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ns1").WithArguments("ns1").
WithLocation
(1, 14));
436
Diagnostic(ErrorCode.ERR_GlobalUsingInNamespace, "global").
WithLocation
(1, 16),
439
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "global").WithArguments("global using directive", "10.0").
WithLocation
(1, 16),
442
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using ns1;").
WithLocation
(1, 16),
445
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ns1").WithArguments("ns1").
WithLocation
(1, 29));
509
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "global").WithArguments("global using directive", "10.0").
WithLocation
(1, 1),
512
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using static ns1;").
WithLocation
(1, 1),
515
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ns1").WithArguments("ns1").
WithLocation
(1, 21));
580
Diagnostic(ErrorCode.ERR_GlobalUsingInNamespace, "global").
WithLocation
(1, 16),
583
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "global").WithArguments("global using directive", "10.0").
WithLocation
(1, 16),
586
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using static ns1;").
WithLocation
(1, 16),
589
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ns1").WithArguments("ns1").
WithLocation
(1, 36));
661
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "global").WithArguments("global using directive", "10.0").
WithLocation
(1, 1),
664
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using alias = ns1;").
WithLocation
(1, 1),
667
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "alias").WithArguments("alias").
WithLocation
(1, 14),
670
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ns1").WithArguments("ns1").
WithLocation
(1, 22));
749
Diagnostic(ErrorCode.ERR_GlobalUsingInNamespace, "global").
WithLocation
(1, 16),
752
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "global").WithArguments("global using directive", "10.0").
WithLocation
(1, 16),
755
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "global using alias = ns1;").
WithLocation
(1, 16),
758
Diagnostic(ErrorCode.WRN_LowerCaseTypeName, "alias").WithArguments("alias").
WithLocation
(1, 29),
761
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "ns1").WithArguments("ns1").
WithLocation
(1, 37));
811
Diagnostic(ErrorCode.ERR_UsingAfterElements, "global using ns1;").
WithLocation
(3, 1)
842
Diagnostic(ErrorCode.ERR_ExternAfterElements, "extern").
WithLocation
(3, 1)
876
Diagnostic(ErrorCode.ERR_UsingAfterElements, "global using ns1;").
WithLocation
(5, 5)
951
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").
WithLocation
(1, 1)
978
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "d").
WithLocation
(1, 1)
1006
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "p").
WithLocation
(1, 12)
1042
Diagnostic(ErrorCode.ERR_NamespaceUnexpected, "p").
WithLocation
(1, 19)
1083
Diagnostic(ErrorCode.ERR_UsingAfterElements, "global using ns1;").
WithLocation
(3, 1)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (13)
CodeGen\WinMdEventTests.cs (1)
651
Diagnostic(ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, "f = E = null").WithArguments("void").
WithLocation
(7, 13));
CodeGen\WinRTCollectionTests.cs (6)
5696
Diagnostic(ErrorCode.ERR_InterfaceMemberNotFound, "this").WithArguments("Test.R.this[int]").
WithLocation
(30, 36),
5699
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "VectorChanged").WithArguments("Test.R.VectorChanged").
WithLocation
(13, 53),
5701
Diagnostic(ErrorCode.ERR_NoEntryPoint).
WithLocation
(1, 1),
5704
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System.Reflection;").
WithLocation
(2, 1),
5707
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System.Threading;").
WithLocation
(4, 1),
5710
Diagnostic(ErrorCode.HDN_UnusedUsingDirective, "using System.Runtime.InteropServices;").
WithLocation
(3, 1));
Metadata\WinMdEventTests.cs (6)
2454
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "d2").WithArguments("A.d2").
WithLocation
(7, 42),
2457
Diagnostic(ErrorCode.WRN_UnreferencedEvent, "d3").WithArguments("A.d3").
WithLocation
(8, 34));
3382
Diagnostic(ErrorCode.ERR_WinRtEventPassedByRef, "Instance").
WithLocation
(9, 17),
3385
Diagnostic(ErrorCode.ERR_WinRtEventPassedByRef, "Instance").
WithLocation
(10, 17),
3388
Diagnostic(ErrorCode.ERR_WinRtEventPassedByRef, "Static").
WithLocation
(11, 17),
3391
Diagnostic(ErrorCode.ERR_WinRtEventPassedByRef, "Static").
WithLocation
(12, 17));
Microsoft.CodeAnalysis.Test.Utilities (62)
Diagnostics\SuppressMessageAttributeTests.cs (62)
498
Diagnostic("Token", "{").
WithLocation
(4, 1),
499
Diagnostic("Token", "class").
WithLocation
(7, 9),
500
Diagnostic("Token", "C").
WithLocation
(7, 15),
501
Diagnostic("Token", "{").
WithLocation
(7, 17),
502
Diagnostic("Token", "}").
WithLocation
(7, 18),
503
Diagnostic("Token", "}").
WithLocation
(9, 1));
520
Diagnostic("Token", "{").
WithLocation
(4, 1),
521
Diagnostic("Token", "}").
WithLocation
(9, 1));
537
Diagnostic("Token", "A").
WithLocation
(3, 11),
538
Diagnostic("Token", "Class").
WithLocation
(5, 9),
539
Diagnostic("Token", "C").
WithLocation
(5, 15),
540
Diagnostic("Token", "End").
WithLocation
(6, 9),
541
Diagnostic("Token", "Class").
WithLocation
(6, 13),
542
Diagnostic("Token", "End").
WithLocation
(8, 1));
558
Diagnostic("Token", "A").
WithLocation
(3, 11),
559
Diagnostic("Token", "End").
WithLocation
(8, 1));
573
diagnostics: Diagnostic("Comment", "' In root namespace").
WithLocation
(3, 1));
601
Diagnostic("Token", "{").
WithLocation
(5, 1),
602
Diagnostic("Token", "}").
WithLocation
(20, 1));
638
Diagnostic("Token", "N").
WithLocation
(4, 11),
639
Diagnostic("Token", "End").
WithLocation
(28, 1));
759
Diagnostic("Token", "{").
WithLocation
(5, 5),
760
Diagnostic("Token", "remove").
WithLocation
(8, 9));
799
Diagnostic("Token", "}").
WithLocation
(6, 14),
800
Diagnostic("Token", "}").
WithLocation
(9, 5));
866
Diagnostic("Token", "{").
WithLocation
(5, 1),
867
Diagnostic("Token", "}").
WithLocation
(15, 1));
892
Diagnostic("Token", "C").
WithLocation
(4, 7),
893
Diagnostic("Token", "End").
WithLocation
(17, 1));
912
Diagnostic("Token", "{").
WithLocation
(6, 5),
913
Diagnostic("Token", "set").
WithLocation
(9, 9));
934
Diagnostic("Token", "Integer").
WithLocation
(4, 28),
935
Diagnostic("Token", "Set").
WithLocation
(9, 9));
954
Diagnostic("Token", "{").
WithLocation
(6, 5),
955
Diagnostic("Token", "set").
WithLocation
(9, 9));
976
Diagnostic("Token", "Get").
WithLocation
(7, 13),
977
Diagnostic("Token", "End").
WithLocation
(12, 5));
996
Diagnostic("Token", ";").
WithLocation
(4, 10),
997
Diagnostic("Token", "}").
WithLocation
(11, 1));
1016
Diagnostic("Token", "{").
WithLocation
(6, 5),
1017
Diagnostic("Token", "set").
WithLocation
(9, 9));
1036
Diagnostic("Token", "}").
WithLocation
(7, 25),
1037
Diagnostic("Token", "}").
WithLocation
(10, 5));
1056
Diagnostic("Token", "{").
WithLocation
(5, 1),
1057
Diagnostic("Token", "}").
WithLocation
(11, 1));
1077
Diagnostic("Token", "C").
WithLocation
(4, 26),
1078
Diagnostic("Token", "End").
WithLocation
(12, 1));
1095
Diagnostic("Token", "{").
WithLocation
(3, 1),
1096
Diagnostic("Token", "}").
WithLocation
(9, 1));
1111
Diagnostic("Token", "C").
WithLocation
(2, 7),
1112
Diagnostic("Token", "End").
WithLocation
(7, 1));
1131
Diagnostic("Token", "{").
WithLocation
(8, 1),
1132
Diagnostic("Token", "}").
WithLocation
(11, 1));
1146
Diagnostic("Token", "C").
WithLocation
(2, 7),
1147
Diagnostic("Token", "End").
WithLocation
(6, 1));
1161
Diagnostic("Token", "{").
WithLocation
(3, 1),
1162
Diagnostic("Token", "}").
WithLocation
(6, 1));
1181
Diagnostic("Token", "{").
WithLocation
(3, 1),
1182
Diagnostic("Token", "}").
WithLocation
(11, 1));
1198
Diagnostic("Token", "C").
WithLocation
(2, 7),
1199
Diagnostic("Token", "End").
WithLocation
(8, 1));
1359
Diagnostic("TypeDeclaration", "C").
WithLocation
(9, 7));
Microsoft.CodeAnalysis.UnitTests (10)
Analyzers\AnalyzerConfigTests.cs (8)
1672
Diagnostic("MultipleGlobalAnalyzerKeys").WithArguments("option1", "Global Section", "/.globalconfig1, /.globalconfig2").
WithLocation
(1, 1)
1693
Diagnostic("MultipleGlobalAnalyzerKeys").WithArguments("option1", "/path/to/file1.cs", "/.globalconfig1, /.globalconfig2").
WithLocation
(1, 1)
1882
Diagnostic("MultipleGlobalAnalyzerKeys").WithArguments("option1", "/path/to/file1.cs", "/.globalconfig1, /.globalconfig2").
WithLocation
(1, 1)
1901
Diagnostic("MultipleGlobalAnalyzerKeys").WithArguments("option1", "Global Section", "/.globalconfig1, /.globalconfig2").
WithLocation
(1, 1)
1993
Diagnostic("InvalidSeverityInAnalyzerConfig").WithArguments("cs000", "foo", "<Global Config>").
WithLocation
(1, 1)
1997
Diagnostic("InvalidSeverityInAnalyzerConfig").WithArguments("cs001", "bar", "<Global Config>").
WithLocation
(1, 1)
2209
Diagnostic("InvalidGlobalSectionName", isSuppressed: false).WithArguments(sectionName, "/.editorconfig").
WithLocation
(1, 1)
2461
Diagnostic("MultipleGlobalAnalyzerKeys").WithArguments("option1", "Global Section", "/.globalconfig3, /.globalconfig4").
WithLocation
(1, 1)
Diagnostics\SuppressMessageAttributeCompilerTests.cs (2)
101
var baseDiagnostic = Diagnostic("AD0001", null).
WithLocation
(1, 1);
169
.
WithLocation
(1, 1);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (48)
CommandLineTests.vb (48)
830
args.Errors.Verify({Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/i").
WithLocation
(1, 1),
831
Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1)})
856
args.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("i").
WithLocation
(1, 1))
868
args.Errors.Verify({Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("instrument", ":<string>").
WithLocation
(1, 1)})
872
args.Errors.Verify({Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("instrument", ":<string>").
WithLocation
(1, 1)})
876
args.Errors.Verify({Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("instrument", ":<string>").
WithLocation
(1, 1)})
880
args.Errors.Verify({Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("instrument", ":<string>").
WithLocation
(1, 1)})
884
args.Errors.Verify({Diagnostic(ERRID.ERR_InvalidInstrumentationKind).WithArguments("InvalidOption").
WithLocation
(1, 1)})
888
args.Errors.Verify({Diagnostic(ERRID.ERR_InvalidInstrumentationKind).WithArguments("None").
WithLocation
(1, 1)})
892
args.Errors.Verify({Diagnostic(ERRID.ERR_InvalidInstrumentationKind).WithArguments("InvalidOption").
WithLocation
(1, 1)})
1333
diags.Verify(Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii").
WithLocation
(1, 1))
2948
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1))
2952
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1))
2956
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1))
2960
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1))
2964
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1))
2968
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1))
2972
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1))
2978
Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1))
2983
Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1))
2988
Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1))
2993
Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1)) ' TODO: Dev11 reports ERR_ArgumentRequired
2998
Diagnostic(ERRID.ERR_NoSources).
WithLocation
(1, 1)) ' TODO: Dev11 reports ERR_ArgumentRequired
3450
Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/pathmap:").
WithLocation
(1, 1)
3579
Diagnostic(ERRID.ERR_ArgumentRequired, arguments:={"sdkpath", ":<path>"}).
WithLocation
(1, 1),
3580
Diagnostic(ERRID.WRN_CannotFindStandardLibrary1).WithArguments("System.dll").
WithLocation
(1, 1),
3581
Diagnostic(ERRID.ERR_LibNotFound).WithArguments("Microsoft.VisualBasic.dll").
WithLocation
(1, 1))
3724
Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("refout", ":<file>").
WithLocation
(1, 1))
3728
Diagnostic(ERRID.ERR_NoRefOutWhenRefOnly).
WithLocation
(1, 1))
3732
Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("refonly").
WithLocation
(1, 1))
3736
Diagnostic(ERRID.ERR_NoNetModuleOutputWhenRefOutOrRefOnly).
WithLocation
(1, 1))
3746
Diagnostic(ERRID.ERR_NoNetModuleOutputWhenRefOutOrRefOnly).
WithLocation
(1, 1))
3750
Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("C:""My Folder\MyBinary.dll").
WithLocation
(1, 1))
3888
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoRefOutWhenRefOnly).
WithLocation
(1, 1))
4576
Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("C:""My Folder\MyBinary.xml").
WithLocation
(1, 1))
4785
Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_LibAnycpu32bitPreferredConflict).WithArguments("Platform", "AnyCpu32BitPreferred").
WithLocation
(1, 1))
4788
Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_LibAnycpu32bitPreferredConflict).WithArguments("Platform", "AnyCpu32BitPreferred").
WithLocation
(1, 1))
7409
parsedArgs.Errors.Verify(Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("\\.\com1").
WithLocation
(1, 1))
7416
parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_XMLCannotWriteToXMLDocFile2).WithArguments("..\lpt2.xml", "The system cannot find the path specified").
WithLocation
(1, 1))
7422
parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_CannotFindStandardLibrary1).WithArguments("System.dll").
WithLocation
(1, 1),
7423
Diagnostic(ERRID.ERR_LibNotFound).WithArguments("Microsoft.VisualBasic.dll").
WithLocation
(1, 1))
9049
args.Errors.Verify(Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("e:c:\test\test.cs").
WithLocation
(1, 1))
9154
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("keyfile", ":<file>").
WithLocation
(1, 1))
9161
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("keyfile", ":<file>").
WithLocation
(1, 1))
9550
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "1 ^^ ^^ ").
WithLocation
(1, 1))
9556
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("langversion", "1000").
WithLocation
(1, 1))
10499
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("generatedfilesout", ":<dir>").
WithLocation
(1, 1))
10503
parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("generatedfilesout", ":<dir>").
WithLocation
(1, 1))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (114)
Attributes\AttributeTests.vb (2)
4871
Diagnostic(ERRID.ERR_BadAttributeConstructor1, "Command").WithArguments("a.Class1.CommandAttribute.FxCommand").
WithLocation
(20, 10),
4872
Diagnostic(ERRID.ERR_RequiredConstExpr, "AddressOf UserInfo").
WithLocation
(20, 18))
Attributes\AttributeTests_ObsoleteAttribute.vb (40)
1193
diags.Verify(Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()").
WithLocation
(9, 9))
1223
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(9, 9))
1253
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(9, 9))
1283
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(9, 9))
1330
Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "DiagnosticId").WithArguments("DiagnosticId", "class", "System.ObsoleteAttribute").
WithLocation
(4, 15),
1331
Diagnostic(ERRID.ERR_MultiplyDefinedType3, "DiagnosticId").WithArguments("DiagnosticId", "Public DiagnosticId As String", "class").
WithLocation
(27, 25))
1358
diags.Verify(Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()", "don't use").
WithLocation
(9, 9))
1388
diags.Verify(Diagnostic("A", "M1()").WithArguments("Public Sub M1()").
WithLocation
(9, 9))
1430
Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()", "don't use").
WithLocation
(13, 9),
1431
Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M2()").WithArguments("Public Sub M2()").
WithLocation
(14, 9),
1432
Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M2()").WithArguments("Public Sub M2()").
WithLocation
(18, 9),
1433
Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()", "don't use").
WithLocation
(22, 9))
1483
Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()", "don't use").
WithLocation
(5, 9),
1484
Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M2()").WithArguments("Public Sub M2()").
WithLocation
(6, 9),
1485
Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M2()").WithArguments("Public Sub M2()").
WithLocation
(10, 9),
1486
Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()", "don't use").
WithLocation
(14, 9)
1539
Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9),
1540
Diagnostic("TEST2", "M2()").WithArguments("Public Sub M2()", "don't use").
WithLocation
(6, 9),
1541
Diagnostic("TEST3", "M3()").WithArguments("Public Sub M3()", "don't use").
WithLocation
(7, 9)
1585
diags.Verify(Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1592
diags.Verify(Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1632
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1639
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1688
diags.Verify(Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1695
diags.Verify(Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1744
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1751
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1830
diags.Verify(Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1837
diags.Verify(Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1894
diags.Verify(Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1901
diags.Verify(Diagnostic("TEST1", "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1956
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
1963
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
2018
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
2025
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
2167
diags.Verify(Diagnostic("A", "M1()").WithArguments("Public Overloads Sub M1()").
WithLocation
(5, 9))
2307
diags.Verify(Diagnostic("A", "M1()").WithArguments("Public Overloads Sub M1()").
WithLocation
(5, 9))
2362
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
2369
diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").
WithLocation
(5, 9))
2728
Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "S").WithArguments("S", "Types with embedded references are not supported in this version of your compiler.").
WithLocation
(2, 16)
Attributes\AttributeTests_Synthesized.vb (1)
928
Diagnostic(ERRID.ERR_InvalidModuleAttribute1, "RuntimeCompatibilityAttribute").WithArguments("RuntimeCompatibilityAttribute").
WithLocation
(4, 10))
Attributes\EmitTestStrongNameProvider.vb (1)
43
Diagnostic(ERRID.ERR_PeWritingFailure).WithArguments(thrownException.ToString()).
WithLocation
(1, 1))
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
2262
Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: System.Runtime.CompilerServices.InternalsVisibleTo(""System.Runtime.Serialization, PublicKey = 10000000000000000400000000000000"")").WithArguments("System.Runtime.Serialization, PublicKey = 10000000000000000400000000000000").
WithLocation
(1, 2))
CodeGen\CodeGenScriptTests.vb (1)
417
Diagnostic(ERRID.ERR_MissingRuntimeHelper).WithArguments("Task.GetAwaiter").
WithLocation
(1, 1))
CodeGen\CodeGenTests.vb (5)
13624
Diagnostic(ERRID.ERR_TooLongOrComplexExpression, "a").
WithLocation
(7, 16)
13673
Diagnostic(ERRID.ERR_TooLongOrComplexExpression, "1").
WithLocation
(13, 16)
13767
Diagnostic(ERRID.ERR_TooLongOrComplexExpression, "a").
WithLocation
(7, 16),
13768
Diagnostic(ERRID.ERR_TooLongOrComplexExpression, "a").
WithLocation
(7, 16),
13769
Diagnostic(ERRID.ERR_TooLongOrComplexExpression, "a").
WithLocation
(7, 16)
CodeGen\CodeGenTuples.vb (22)
9798
Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "x.goo.Alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer)").
WithLocation
(8, 34),
9799
Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "x.goo.alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer)").
WithLocation
(9, 34),
9800
Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "f.Alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer)").
WithLocation
(14, 34),
9801
Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "f.alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer)").
WithLocation
(15, 34)
9859
Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "x.goo.Alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer, Integer)").
WithLocation
(9, 34),
9860
Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "x.goo.alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer, Integer)").
WithLocation
(10, 34),
9861
Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "f.Alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer, Integer)").
WithLocation
(16, 34),
9862
Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "f.alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer, Integer)").
WithLocation
(17, 34)
10337
Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").
WithLocation
(8, 34)
10662
Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss.Rest.Rest.Rest").WithArguments("Rest").
WithLocation
(36, 34),
10663
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "ss.I31").WithArguments("I31").
WithLocation
(38, 34),
10664
Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss.Rest.Rest").WithArguments("Rest").
WithLocation
(49, 34),
10665
Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss.Rest").WithArguments("Rest").
WithLocation
(52, 34),
10666
Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").
WithLocation
(55, 34),
10667
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "ss.I2").WithArguments("I2").
WithLocation
(58, 34))
10818
Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").
WithLocation
(44, 38),
10819
Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").
WithLocation
(65, 38)
10901
Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").
WithLocation
(43, 38),
10902
Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").
WithLocation
(64, 38)
10947
Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss.Rest").WithArguments("Rest").
WithLocation
(28, 38)
10983
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "ss.I3").WithArguments("I3").
WithLocation
(18, 38)
22290
'Public Sub M1(Of Integer, (Integer, Integer))(a As ((Integer, Integer), Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, (Integer, Integer)))': Not most specific.").
WithLocation
(7, 9)
CodeGen\CodeGenVBCore.vb (3)
3024
Diagnostic(ERRID.ERR_NewInStruct, "New").
WithLocation
(20, 24),
3025
Diagnostic(ERRID.ERR_StructCantInherit, "Inherits System.Exception").
WithLocation
(19, 13),
3026
Diagnostic(ERRID.ERR_UseOfKeywordFromStructure1, "MyBase").WithArguments("MyBase").
WithLocation
(21, 17)
Emit\CompilationEmitTests.vb (10)
75
Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("RootNamespace", """Test""").
WithLocation
(1, 1),
76
Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("""Test.Module1""").
WithLocation
(1, 1))
82
Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("RootNamespace", """решения""").
WithLocation
(1, 1),
83
Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("""решения.Module1""").
WithLocation
(1, 1))
422
Diagnostic(ERRID.WRN_XMLDocParseError1, "<summary>").WithArguments("Element is missing an end tag.").
WithLocation
(4, 9),
423
Diagnostic(ERRID.WRN_XMLDocParseError1, "").WithArguments("Expected beginning '<' for an XML tag.").
WithLocation
(4, 40),
424
Diagnostic(ERRID.WRN_XMLDocParseError1, "").WithArguments("'>' expected.").
WithLocation
(4, 40))
471
Diagnostic(ERRID.WRN_XMLDocCrefAttributeNotFound1, "cref=""T""").WithArguments("T").
WithLocation
(4, 23))
3667
Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.Deny").WithArguments("Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.").
WithLocation
(3, 25),
3668
Diagnostic(ERRID.ERR_PermissionSetAttributeInvalidFile, "File:=""NonExistentFile.xml""").WithArguments("NonExistentFile.xml", "File").
WithLocation
(3, 46))
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (7)
1443
Diagnostic(ERRID.WRN_UnusedLocal, "y").WithArguments("y").
WithLocation
(3, 16),
1444
Diagnostic(ERRID.WRN_UnusedLocal, "o1").WithArguments("o1").
WithLocation
(14, 13),
1445
Diagnostic(ERRID.WRN_UnusedLocal, "aa").WithArguments("aa").
WithLocation
(6, 17),
1446
Diagnostic(ERRID.WRN_UnusedLocal, "o4").WithArguments("o4").
WithLocation
(14, 67),
1447
Diagnostic(ERRID.WRN_UnusedLocal, "bb").WithArguments("bb").
WithLocation
(6, 21),
1448
Diagnostic(ERRID.WRN_UnusedLocal, "cc").WithArguments("cc").
WithLocation
(7, 17),
1449
Diagnostic(ERRID.WRN_UnusedLocal, "dd").WithArguments("dd").
WithLocation
(7, 32))
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (5)
8865
Diagnostic(ERRID.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("Public Function F() As IEnumerable(Of Integer)", "System.Runtime.CompilerServices.IteratorStateMachineAttribute").
WithLocation
(6, 30))
8923
Diagnostic(ERRID.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("Public Function F() As IEnumerable(Of Integer)", "System.Runtime.CompilerServices.IteratorStateMachineAttribute").
WithLocation
(12, 30))
9094
Diagnostic(ERRID.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("Public Function F() As Task(Of Integer)", "System.Runtime.CompilerServices.AsyncStateMachineAttribute").
WithLocation
(15, 27))
9171
Diagnostic(ERRID.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("Public Function F() As Task(Of Integer)", "System.Runtime.CompilerServices.AsyncStateMachineAttribute").
WithLocation
(15, 27))
9210
Diagnostic(ERRID.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("Public Function F() As IEnumerable(Of Integer)", "System.Runtime.CompilerServices.IteratorStateMachineAttribute").
WithLocation
(5, 30))
Emit\EditAndContinue\EditAndContinueTests.vb (5)
67
Diagnostic(ERRID.ERR_NameNotDeclared1, "Unknown").WithArguments("Unknown").
WithLocation
(4, 17))
121
Diagnostic(ERRID.ERR_TypeInItsInheritsClause1, "Bad").WithArguments("Bad").
WithLocation
(9, 12))
5344
Diagnostic(ERRID.ERR_EncReferenceToAddedMember, "X").WithArguments("X", "LibA").
WithLocation
(8, 14),
5345
Diagnostic(ERRID.ERR_EncReferenceToAddedMember, "M").WithArguments("M", "LibA").
WithLocation
(3, 16))
5765
Diagnostic(ERRID.ERR_AmbiguousInImports2, "Timer").WithArguments("Timer", "System.Threading, System.Timers").
WithLocation
(7, 21))
ErrorHandling.vb (7)
477
compilation.VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, ExpectedOutput).WithArguments("Unstructured exception handling").
WithLocation
(2, 9))
506
compilation.VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, "a + 1").WithArguments("Late binding").
WithLocation
(6, 13),
507
Diagnostic(ERRID.ERR_PlatformDoesntSupport, "a & ""test""").WithArguments("Late binding").
WithLocation
(8, 13)
533
compilation.VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, ExpectedOutput).WithArguments("Like operator").
WithLocation
(5, 21))
554
compilation.VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, "Error 1").WithArguments("Unstructured exception handling").
WithLocation
(4, 18))
579
compilation.VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, "a + 1").WithArguments("Late binding").
WithLocation
(6, 40))
599
compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, "My").WithArguments("My").
WithLocation
(3, 13))
ExpressionTrees\CodeGenExprLambda.vb (1)
8650
Diagnostic(ERRID.ERR_ExpressionTreeNotSupported, "x.City += ""qq""").
WithLocation
(39, 25)
PDB\PDBTests.vb (2)
34
Diagnostic(ERRID.ERR_EncodinglessSyntaxTree, "Class A : End Class").
WithLocation
(1, 1),
35
Diagnostic(ERRID.ERR_EncodinglessSyntaxTree, "Class C : End Class").
WithLocation
(1, 1))
PDB\PortablePdbTests.vb (1)
272
Diagnostic(ERRID.ERR_PDBWritingFailed).WithArguments("Error!").
WithLocation
(1, 1))
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (3)
LocalsTests.vb (1)
1727
Diagnostic(ERRID.ERR_TypeRefResolutionError3, "a").WithArguments("A", "Test.dll").
WithLocation
(1, 1)
ReferencedModulesTests.vb (2)
757
Diagnostic(ERRID.ERR_AmbiguousInNamespace2, "System.Console").WithArguments("Console", "System").
WithLocation
(3, 25),
758
Diagnostic(ERRID.ERR_AmbiguousInNamespace2, "System.Collections.ObjectModel.ReadOnlyDictionary(Of Object, Object)").WithArguments("ReadOnlyDictionary", "System.Collections.ObjectModel").
WithLocation
(4, 37))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (428)
Compilation\CompilationAPITests.vb (6)
2158
compilation.VerifyDiagnostics(Diagnostic(ERRID.WRN_MainIgnored, "Main").WithArguments("Public Shared Sub Main()").
WithLocation
(3, 20))
2165
entryPoint.Diagnostics.Verify(Diagnostic(ERRID.WRN_MainIgnored, "Main").WithArguments("Public Shared Sub Main()").
WithLocation
(3, 20))
2199
compilation.VerifyDiagnostics(Diagnostic(ERRID.WRN_MainIgnored, "Main").WithArguments("Public Shared Sub Main()").
WithLocation
(3, 20))
2206
entryPoint.Diagnostics.Verify(Diagnostic(ERRID.WRN_MainIgnored, "Main").WithArguments("Public Shared Sub Main()").
WithLocation
(3, 20))
2463
c5.VerifyDiagnostics(Diagnostic(ERRID.ERR_UndefinedType1, "C").WithArguments("C").
WithLocation
(1, 40))
2477
c.VerifyDiagnostics(Diagnostic(ERRID.ERR_LinkedNetmoduleMetadataMustProvideFullPEImage).WithArguments("ModuleCS00").
WithLocation
(1, 1))
Diagnostics\DiagnosticAnalyzerTests.vb (64)
996
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "0").
WithLocation
(8, 28),
997
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "x").
WithLocation
(9, 28),
998
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "12").
WithLocation
(12, 36))
1017
Diagnostic("Parameter_ID", "a").
WithLocation
(2, 18),
1018
Diagnostic("Parameter_ID", "b").
WithLocation
(2, 32))
1037
Diagnostic("Parameter_ID", "a").
WithLocation
(2, 20),
1038
Diagnostic("Parameter_ID", "b").
WithLocation
(2, 34))
1062
Diagnostic("Parameter_ID", "a").
WithLocation
(2, 34),
1063
Diagnostic("Parameter_ID", "b").
WithLocation
(2, 48),
1064
Diagnostic("Parameter_ID", "Value").
WithLocation
(6, 19))
1082
Diagnostic("Parameter_ID", "a").
WithLocation
(2, 34),
1083
Diagnostic("Parameter_ID", "b").
WithLocation
(2, 48))
1103
Diagnostic("Parameter_ID", "h1").
WithLocation
(2, 36),
1104
Diagnostic("Parameter_ID", "h2").
WithLocation
(2, 51))
1128
Diagnostic("Parameter_ID", "a").
WithLocation
(2, 11),
1129
Diagnostic("Parameter_ID", "b").
WithLocation
(2, 25),
1130
Diagnostic("Parameter_ID", "a").
WithLocation
(7, 18),
1131
Diagnostic("Parameter_ID", "b").
WithLocation
(7, 32))
1153
Diagnostic("Parameter_ID", "a").
WithLocation
(2, 35),
1154
Diagnostic("Parameter_ID", "b").
WithLocation
(2, 49))
1317
Dim diag = Diagnostic(GeneratedCodeAnalyzer.Warning.Id, squiggledText).WithArguments(arguments).
WithLocation
(line, column)
1320
diag = Diagnostic(GeneratedCodeAnalyzer.Error.Id, squiggledText).WithArguments(arguments).
WithLocation
(line, column)
1330
Dim diag = Diagnostic(diagnosticId, squiggledText).WithArguments(arguments).
WithLocation
(line, column)
1462
Diagnostic("ID", "C.FieldForClass").WithArguments("FieldForClass", "1").
WithLocation
(16, 14),
1463
Diagnostic("ID", "FieldForStruct").WithArguments("FieldForStruct", "2").
WithLocation
(27, 18),
1464
Diagnostic("ID", "FieldForInterface").WithArguments("FieldForInterface", "3").
WithLocation
(31, 18),
1465
Diagnostic("ID", "FieldForField").WithArguments("FieldForField", "4").
WithLocation
(35, 18),
1466
Diagnostic("ID", "FieldForField").WithArguments("FieldForField", "4").
WithLocation
(35, 18),
1467
Diagnostic("ID", "FieldForMethod").WithArguments("FieldForMethod", "5").
WithLocation
(38, 18),
1468
Diagnostic("ID", "FieldForEnum").WithArguments("FieldForEnum", "6").
WithLocation
(43, 18),
1469
Diagnostic("ID", "FieldForEnumMember").WithArguments("FieldForEnumMember", "7").
WithLocation
(45, 22),
1470
Diagnostic("ID", "FieldForDelegateSub").WithArguments("FieldForDelegateSub", "8").
WithLocation
(49, 18),
1471
Diagnostic("ID", "FieldForDelegateFunction").WithArguments("FieldForDelegateFunction", "9").
WithLocation
(52, 18),
1472
Diagnostic("ID", "FieldForEventField").WithArguments("FieldForEventField", "10").
WithLocation
(55, 18),
1473
Diagnostic("ID", "FieldForEvent").WithArguments("FieldForEvent", "11").
WithLocation
(58, 18),
1474
Diagnostic("ID", "FieldForAddHandler").WithArguments("FieldForAddHandler", "12").
WithLocation
(60, 22),
1475
Diagnostic("ID", "FieldForRemoveHandler").WithArguments("FieldForRemoveHandler", "13").
WithLocation
(63, 22),
1476
Diagnostic("ID", "FieldForRaiseHandler").WithArguments("FieldForRaiseHandler", "14").
WithLocation
(66, 22),
1477
Diagnostic("ID", "FieldForProperty").WithArguments("FieldForProperty", "15").
WithLocation
(71, 18),
1478
Diagnostic("ID", "FieldForPropertyGetter").WithArguments("FieldForPropertyGetter", "16").
WithLocation
(73, 22),
1479
Diagnostic("ID", "FieldForPropertySetter").WithArguments("FieldForPropertySetter", "17").
WithLocation
(77, 22),
1480
Diagnostic("ID", "FieldForIndexer").WithArguments("FieldForIndexer", "18").
WithLocation
(82, 18),
1481
Diagnostic("ID", "FieldForIndexerGetter").WithArguments("FieldForIndexerGetter", "19").
WithLocation
(84, 22),
1482
Diagnostic("ID", "FieldForIndexerSetter").WithArguments("FieldForIndexerSetter", "20").
WithLocation
(88, 22),
1483
Diagnostic("ID", "FieldForMethodParameter").WithArguments("FieldForMethodParameter", "21").
WithLocation
(39, 38),
1484
Diagnostic("ID", "FieldForEventParameter").WithArguments("FieldForEventParameter", "22").
WithLocation
(56, 39),
1485
Diagnostic("ID", "FieldForDelegateSubParameter").WithArguments("FieldForDelegateSubParameter", "23").
WithLocation
(50, 49),
1486
Diagnostic("ID", "FieldForDelegateFunctionParameter").WithArguments("FieldForDelegateFunctionParameter", "24").
WithLocation
(53, 53),
1487
Diagnostic("ID", "FieldForIndexerParameter").WithArguments("FieldForIndexerParameter", "25").
WithLocation
(83, 40),
1488
Diagnostic("ID", "C.FieldForAssembly").WithArguments("FieldForAssembly", "26").
WithLocation
(3, 24),
1489
Diagnostic("ID", "C.FieldForModule").WithArguments("FieldForModule", "27").
WithLocation
(4, 22),
1490
Diagnostic("ID", "FieldForMethodReturnType").WithArguments("FieldForMethodReturnType", "28").
WithLocation
(39, 95),
1491
Diagnostic("ID", "FieldForDelegateFunctionReturnType").WithArguments("FieldForDelegateFunctionReturnType", "29").
WithLocation
(53, 120),
1492
Diagnostic("ID", "FieldForPropertyReturnType").WithArguments("FieldForPropertyReturnType", "30").
WithLocation
(72, 43),
1493
Diagnostic("ID", "FieldForIndexerReturnType").WithArguments("FieldForIndexerReturnType", "31").
WithLocation
(83, 101))
1591
Diagnostic("ID", "0").WithArguments("Operation").
WithLocation
(2, 43),
1592
Diagnostic("ID", "1").WithArguments("Operation").
WithLocation
(3, 28),
1593
Diagnostic("ID", "2").WithArguments("Operation").
WithLocation
(3, 32))
1598
Diagnostic("ID", "0").WithArguments("OperationInOperationBlockStart").
WithLocation
(2, 43),
1599
Diagnostic("ID", "1").WithArguments("OperationInOperationBlockStart").
WithLocation
(3, 28),
1600
Diagnostic("ID", "2").WithArguments("OperationInOperationBlockStart").
WithLocation
(3, 32))
1605
Diagnostic("ID", "M").WithArguments("OperationBlock").
WithLocation
(2, 17))
1610
Diagnostic("ID", "M").WithArguments("OperationBlockEnd").
WithLocation
(2, 17))
1646
Diagnostic("SymbolStartRuleId").WithArguments("MyApplication", "Analyzer1").
WithLocation
(1, 1))
Diagnostics\GetDiagnosticsTests.vb (22)
532
Diagnostic("ID0001", "Private Function M() As Integer").WithArguments("M").
WithLocation
(41, 5),
533
Diagnostic("ID0001", "Private Sub New()").WithArguments(".ctor").
WithLocation
(45, 5),
534
Diagnostic("ID0001", "Protected Overrides Sub Finalize()").WithArguments("Finalize").
WithLocation
(49, 5),
535
Diagnostic("ID0001", "Public Shared Operator +(value As D) As Integer").WithArguments("op_UnaryPlus").
WithLocation
(53, 5))
539
End Get").
WithLocation
(8, 9),
542
End Set").
WithLocation
(12, 9),
545
End Get").
WithLocation
(18, 9),
548
End Set").
WithLocation
(22, 9),
551
End AddHandler").
WithLocation
(28, 9),
554
End RemoveHandler").
WithLocation
(32, 9),
557
End RaiseEvent").
WithLocation
(36, 9),
560
End Function").
WithLocation
(41, 5),
563
End Sub").
WithLocation
(45, 5),
566
End Sub").
WithLocation
(49, 5),
569
End Operator").
WithLocation
(53, 5))
572
Diagnostic("ID0001", "Private Property P As Integer").WithArguments("set_P").
WithLocation
(7, 5),
573
Diagnostic("ID0001", "Private Property P As Integer").WithArguments("get_P").
WithLocation
(7, 5),
574
Diagnostic("ID0001", "Private Property Item(i As Char) As Integer").WithArguments("set_Item").
WithLocation
(17, 5),
575
Diagnostic("ID0001", "Private Property Item(i As Char) As Integer").WithArguments("get_Item").
WithLocation
(17, 5),
576
Diagnostic("ID0001", "Public Custom Event E As EventHandler").WithArguments("add_E").
WithLocation
(27, 5),
577
Diagnostic("ID0001", "Public Custom Event E As EventHandler").WithArguments("raise_E").
WithLocation
(27, 5),
578
Diagnostic("ID0001", "Public Custom Event E As EventHandler").WithArguments("remove_E").
WithLocation
(27, 5))
Diagnostics\OperationAnalyzerTests.vb (314)
49
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "New Integer(-1) { }").
WithLocation
(3, 33),
50
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "{ }").
WithLocation
(4, 30),
51
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "New C(-1) { }").
WithLocation
(5, 27),
52
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "New Integer(-1)() { }").
WithLocation
(9, 35),
53
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "New Integer( -1)()()() { }").
WithLocation
(10, 39),
54
Diagnostic(EmptyArrayAnalyzer.UseArrayEmptyDescriptor.Id, "New Integer(-1)(,) { }").
WithLocation
(12, 37))
100
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "3").
WithLocation
(6, 32),
101
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "v1").
WithLocation
(6, 39),
102
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "v3").
WithLocation
(7, 29),
103
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "3").
WithLocation
(9, 21),
104
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "v3").
WithLocation
(12, 21),
105
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "p1").
WithLocation
(27, 9),
106
Diagnostic(BoxingOperationAnalyzer.BoxingDescriptor.Id, "Me").
WithLocation
(28, 13))
130
Diagnostic(BadStuffTestAnalyzer.InvalidExpressionDescriptor.Id, "Framitz()").
WithLocation
(3, 9),
131
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "Framitz()").
WithLocation
(3, 9),
132
Diagnostic(BadStuffTestAnalyzer.InvalidExpressionDescriptor.Id, "Framitz").
WithLocation
(3, 9),
133
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "Framitz").
WithLocation
(3, 9),
134
Diagnostic(BadStuffTestAnalyzer.InvalidExpressionDescriptor.Id, "Bexley()").
WithLocation
(4, 28),
135
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "Bexley()").
WithLocation
(4, 28),
136
Diagnostic(BadStuffTestAnalyzer.InvalidExpressionDescriptor.Id, "Bexley").
WithLocation
(4, 28),
137
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "Bexley").
WithLocation
(4, 28),
138
Diagnostic(BadStuffTestAnalyzer.InvalidExpressionDescriptor.Id, "M1(d)").
WithLocation
(7, 9),
139
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "M1(d)").
WithLocation
(7, 9),
140
Diagnostic(BadStuffTestAnalyzer.InvalidStatementDescriptor.Id, "Goto").
WithLocation
(8, 9),
141
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "Goto").
WithLocation
(8, 9),
142
Diagnostic(BadStuffTestAnalyzer.InvalidStatementDescriptor.Id, "").
WithLocation
(8, 13),
143
Diagnostic(BadStuffTestAnalyzer.IsInvalidDescriptor.Id, "").
WithLocation
(8, 13))
234
comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(60, 17),
235
Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(68, 1),
236
Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(74, 22))
238
Diagnostic(SwitchTestAnalyzer.SparseSwitchDescriptor.Id, "x").
WithLocation
(12, 21),
239
Diagnostic(SwitchTestAnalyzer.SparseSwitchDescriptor.Id, "x").
WithLocation
(30, 21),
240
Diagnostic(SwitchTestAnalyzer.SparseSwitchDescriptor.Id, "x").
WithLocation
(37, 21),
241
Diagnostic(SwitchTestAnalyzer.NoDefaultSwitchDescriptor.Id, "x").
WithLocation
(37, 21),
242
Diagnostic(SwitchTestAnalyzer.NoDefaultSwitchDescriptor.Id, "x").
WithLocation
(42, 21),
243
Diagnostic(SwitchTestAnalyzer.OnlyDefaultSwitchDescriptor.Id, "x").
WithLocation
(49, 21),
244
Diagnostic(SwitchTestAnalyzer.SparseSwitchDescriptor.Id, "x").
WithLocation
(54, 21),
245
Diagnostic(SwitchTestAnalyzer.NoDefaultSwitchDescriptor.Id, "x").
WithLocation
(54, 21))
289
Diagnostic(InvocationTestAnalyzer.UseDefaultArgumentDescriptor.Id, "M3(Nothing,)").WithArguments("b").
WithLocation
(25, 9),
290
Diagnostic(InvocationTestAnalyzer.UseDefaultArgumentDescriptor.Id, "M3(,0)").WithArguments("a").
WithLocation
(26, 9),
291
Diagnostic(InvocationTestAnalyzer.UseDefaultArgumentDescriptor.Id, "M3(,)").WithArguments("a").
WithLocation
(27, 9),
292
Diagnostic(InvocationTestAnalyzer.UseDefaultArgumentDescriptor.Id, "M3(,)").WithArguments("b").
WithLocation
(27, 9),
293
Diagnostic(InvocationTestAnalyzer.OutOfNumericalOrderArgumentsDescriptor.Id, "2").
WithLocation
(11, 21),
294
Diagnostic(InvocationTestAnalyzer.OutOfNumericalOrderArgumentsDescriptor.Id, "4").
WithLocation
(12, 33),
295
Diagnostic(InvocationTestAnalyzer.OutOfNumericalOrderArgumentsDescriptor.Id, "2").
WithLocation
(12, 21),
296
Diagnostic(InvocationTestAnalyzer.OutOfNumericalOrderArgumentsDescriptor.Id, "1").
WithLocation
(12, 15),
297
Diagnostic(InvocationTestAnalyzer.BigParamArrayArgumentsDescriptor.Id, "M0(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)").
WithLocation
(14, 9),
298
Diagnostic(InvocationTestAnalyzer.BigParamArrayArgumentsDescriptor.Id, "M0(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)").
WithLocation
(15, 9),
299
Diagnostic(InvocationTestAnalyzer.OutOfNumericalOrderArgumentsDescriptor.Id, "3").
WithLocation
(17, 21))
363
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F5").
WithLocation
(6, 12),
364
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F6").
WithLocation
(7, 12),
365
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F10").
WithLocation
(10, 12))
429
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F5").
WithLocation
(6, 19),
430
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F6").
WithLocation
(7, 19),
431
Diagnostic(FieldCouldBeReadOnlyAnalyzer.FieldCouldBeReadOnlyDescriptor.Id, "F10").
WithLocation
(10, 19))
483
Diagnostic(LocalCouldBeConstAnalyzer.LocalCouldBeConstDescriptor.Id, "e").
WithLocation
(10, 13),
484
Diagnostic(LocalCouldBeConstAnalyzer.LocalCouldBeConstDescriptor.Id, "s").
WithLocation
(11, 13))
648
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "a").WithArguments("a", "Middle").
WithLocation
(3, 13),
649
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "b").WithArguments("b", "Value").
WithLocation
(4, 13),
650
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "c").WithArguments("c", "Base").
WithLocation
(5, 13),
651
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "d").WithArguments("d", "Derived").
WithLocation
(7, 13),
652
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "e").WithArguments("e", "Middle").
WithLocation
(8, 13),
653
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "g").WithArguments("g", "Base").
WithLocation
(12, 13),
654
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "i").WithArguments("i", "Integer").
WithLocation
(17, 13),
655
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "k").WithArguments("k", "Derived").
WithLocation
(21, 13),
656
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "ia").WithArguments("ia", "IMiddle").
WithLocation
(31, 13),
657
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "ic").WithArguments("ic", "IBase1").
WithLocation
(32, 13),
658
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "id").WithArguments("id", "IDerived").
WithLocation
(34, 13),
659
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "ie").WithArguments("ie", "IMiddle").
WithLocation
(35, 13),
660
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "ig").WithArguments("ig", "IBase1").
WithLocation
(39, 13),
661
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "ik").WithArguments("ik", "IDerived").
WithLocation
(44, 13),
662
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.LocalCouldHaveMoreSpecificTypeDescriptor.Id, "im").WithArguments("im", "IDerived").
WithLocation
(48, 13),
663
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fa").WithArguments("Private fa As Object", "Middle").
WithLocation
(53, 13),
664
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fb").WithArguments("Private fb As Object", "Value").
WithLocation
(54, 13),
665
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fc").WithArguments("Private fc As Object", "Base").
WithLocation
(55, 13),
666
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fd").WithArguments("Private fd As Base", "Derived").
WithLocation
(56, 13),
667
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fe").WithArguments("Private fe As Base", "Middle").
WithLocation
(57, 13),
668
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fg").WithArguments("Private fg As Object", "Base").
WithLocation
(59, 13),
669
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fi").WithArguments("Private fi As Object", "Integer").
WithLocation
(61, 13),
670
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fk").WithArguments("Private fk As Middle", "Derived").
WithLocation
(63, 13),
671
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fia").WithArguments("Private fia As Object", "IMiddle").
WithLocation
(72, 13),
672
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fic").WithArguments("Private fic As Object", "IBase1").
WithLocation
(73, 13),
673
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fid").WithArguments("Private fid As IBase1", "IDerived").
WithLocation
(74, 13),
674
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fie").WithArguments("Private fie As IBase1", "IMiddle").
WithLocation
(75, 13),
675
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fig").WithArguments("Private fig As Object", "IBase1").
WithLocation
(77, 13),
676
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fik").WithArguments("Private fik As IMiddle", "IDerived").
WithLocation
(79, 13),
677
Diagnostic(SymbolCouldHaveMoreSpecificTypeAnalyzer.FieldCouldHaveMoreSpecificTypeDescriptor.Id, "fim").WithArguments("Private fim As IBase2", "IDerived").
WithLocation
(83, 13))
726
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "17").
WithLocation
(2, 71),
727
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "17").
WithLocation
(6, 28),
728
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "17").
WithLocation
(10, 16),
729
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "17").
WithLocation
(19, 9),
730
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "17").
WithLocation
(27, 40),
731
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "17").
WithLocation
(28, 29),
732
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "17").
WithLocation
(33, 42),
733
Diagnostic(SeventeenTestAnalyzer.SeventeenDescriptor.Id, "M0").
WithLocation
(12, 9)) ' The M0 diagnostic is an artifact of the VB compiler filling in default values in the high-level bound tree, and is questionable.
770
Diagnostic(NullArgumentTestAnalyzer.NullArgumentsDescriptor.Id, "Nothing").
WithLocation
(13, 12),
771
Diagnostic(NullArgumentTestAnalyzer.NullArgumentsDescriptor.Id, "Nothing").
WithLocation
(14, 18),
772
Diagnostic(NullArgumentTestAnalyzer.NullArgumentsDescriptor.Id, "Nothing").
WithLocation
(15, 12),
773
Diagnostic(NullArgumentTestAnalyzer.NullArgumentsDescriptor.Id, "Nothing").
WithLocation
(15, 21),
774
Diagnostic(NullArgumentTestAnalyzer.NullArgumentsDescriptor.Id, "Nothing").
WithLocation
(20, 26))
809
comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedQualifiedNameInInit, "").
WithLocation
(20, 32))
811
Diagnostic(MemberInitializerTestAnalyzer.DoNotUseFieldInitializerDescriptor.Id, "Field").
WithLocation
(14, 35),
812
Diagnostic(MemberInitializerTestAnalyzer.DoNotUsePropertyInitializerDescriptor.Id, "Prop1").
WithLocation
(15, 33),
813
Diagnostic(MemberInitializerTestAnalyzer.DoNotUseFieldInitializerDescriptor.Id, "Field").
WithLocation
(16, 33),
814
Diagnostic(MemberInitializerTestAnalyzer.DoNotUsePropertyInitializerDescriptor.Id, "Prop1").
WithLocation
(16, 46),
815
Diagnostic(MemberInitializerTestAnalyzer.DoNotUsePropertyInitializerDescriptor.Id, "Prop2").
WithLocation
(17, 33),
816
Diagnostic(MemberInitializerTestAnalyzer.DoNotUseFieldInitializerDescriptor.Id, "Field").
WithLocation
(17, 58),
817
Diagnostic(MemberInitializerTestAnalyzer.DoNotUsePropertyInitializerDescriptor.Id, "Prop1").
WithLocation
(19, 35))
860
Diagnostic(AssignmentTestAnalyzer.DoNotUseMemberAssignmentDescriptor.Id, ".Prop2 = New Bar() With {.Field = True}").
WithLocation
(21, 32),
861
Diagnostic(AssignmentTestAnalyzer.DoNotUseMemberAssignmentDescriptor.Id, ".Field = 10").
WithLocation
(14, 34),
862
Diagnostic(AssignmentTestAnalyzer.DoNotUseMemberAssignmentDescriptor.Id, ".Prop1 = Nothing").
WithLocation
(15, 32),
863
Diagnostic(AssignmentTestAnalyzer.DoNotUseMemberAssignmentDescriptor.Id, ".Field = 10").
WithLocation
(16, 32),
864
Diagnostic(AssignmentTestAnalyzer.DoNotUseMemberAssignmentDescriptor.Id, ".Prop1 = Nothing").
WithLocation
(16, 45),
865
Diagnostic(AssignmentTestAnalyzer.DoNotUseMemberAssignmentDescriptor.Id, ".Prop2 = New Bar() With {.Field = True}").
WithLocation
(17, 32),
866
Diagnostic(AssignmentTestAnalyzer.DoNotUseMemberAssignmentDescriptor.Id, ".Field = True").
WithLocation
(17, 57),
867
Diagnostic(AssignmentTestAnalyzer.DoNotUseMemberAssignmentDescriptor.Id, ".Field = True").
WithLocation
(21, 57),
868
Diagnostic(AssignmentTestAnalyzer.DoNotUseMemberAssignmentDescriptor.Id, "f1.Field = 0").
WithLocation
(22, 9),
869
Diagnostic(AssignmentTestAnalyzer.DoNotUseMemberAssignmentDescriptor.Id, "f1.Prop1 = Nothing").
WithLocation
(23, 9),
870
Diagnostic(AssignmentTestAnalyzer.DoNotUseMemberAssignmentDescriptor.Id, "f2.Field = True").
WithLocation
(26, 9))
911
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{1, 2, 3, 4, 5, 6}").
WithLocation
(11, 34),
912
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{1, 2, 3, 4, 5, 6}").
WithLocation
(12, 20),
913
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{Nothing, Nothing, Nothing, Nothing, Nothing, Nothing}").
WithLocation
(13, 27),
914
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{1, 2, 3, 4, 5, 6}").
WithLocation
(15, 36),
915
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{1, 2, 3, 4, 5, 6}").
WithLocation
(16, 37),
916
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{7, 8, 9, 10, 11, 12}").
WithLocation
(17, 37),
917
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{Nothing, Nothing, Nothing, Nothing, Nothing, Nothing}").
WithLocation
(18, 30),
918
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{Nothing, Nothing, Nothing, Nothing, Nothing, Nothing}").
WithLocation
(19, 29),
919
Diagnostic(ArrayInitializerTestAnalyzer.DoNotUseLargeListOfArrayInitializersDescriptor.Id, "{1, 2, 3, 4, 5, 6}").
WithLocation
(24, 25))
955
Diagnostic(ERRID.ERR_ExpectedIdentifier, "").
WithLocation
(11, 21),
956
Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").
WithLocation
(12, 35),
957
Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").
WithLocation
(12, 35),
958
Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").
WithLocation
(12, 35),
959
Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").
WithLocation
(12, 35),
960
Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").
WithLocation
(13, 31),
961
Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").
WithLocation
(13, 31),
962
Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").
WithLocation
(13, 31),
963
Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").
WithLocation
(13, 31))
965
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "a1").
WithLocation
(5, 13),
966
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "Dim b1 As New Integer, b2, b3, b4 As New Goo(1)").
WithLocation
(6, 9),
967
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "b1").
WithLocation
(6, 13),
968
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "b2").
WithLocation
(6, 32),
969
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "b3").
WithLocation
(6, 36),
970
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "b4").
WithLocation
(6, 40),
971
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "Dim c1, c2 As Integer, c3, c4 As Goo").
WithLocation
(7, 9),
972
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "Dim e1 As Integer = 10, e2 = {1, 2, 3}, e3, e4 As C").
WithLocation
(9, 9),
973
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "e1").
WithLocation
(9, 13),
974
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "e2").
WithLocation
(9, 33),
975
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "f1").
WithLocation
(10, 13),
976
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "f2").
WithLocation
(10, 22),
977
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "Dim h1, h2, , h3 As Integer").
WithLocation
(11, 9),
978
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "Dim i1, i2, i3, i4 As New UndefType").
WithLocation
(12, 9),
979
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "Dim j1, j2, j3, j4 As UndefType").
WithLocation
(13, 9),
980
Diagnostic(VariableDeclarationTestAnalyzer.TooManyLocalVarDeclarationsDescriptor.Id, "Dim k1 As Integer, k2, k3, k4 As New Goo(1)").
WithLocation
(14, 9),
981
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "k2").
WithLocation
(14, 28),
982
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "k3").
WithLocation
(14, 32),
983
Diagnostic(VariableDeclarationTestAnalyzer.LocalVarInitializedDeclarationDescriptor.Id, "k4").
WithLocation
(14, 36))
1073
comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(60, 17),
1074
Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(68, 1),
1075
Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(74, 22))
1079
Exit Select").
WithLocation
(4, 13),
1080
Diagnostic(CaseTestAnalyzer.HasDefaultCaseDescriptor.Id, "Case Else").
WithLocation
(8, 13),
1081
Diagnostic(CaseTestAnalyzer.HasDefaultCaseDescriptor.Id, "Case Else").
WithLocation
(17, 13),
1082
Diagnostic(CaseTestAnalyzer.HasDefaultCaseDescriptor.Id, "Case Else").
WithLocation
(26, 13),
1085
Exit Select").
WithLocation
(31, 13),
1086
Diagnostic(CaseTestAnalyzer.HasDefaultCaseDescriptor.Id, "Case Else").
WithLocation
(33, 13),
1089
Exit Select").
WithLocation
(38, 13),
1090
Diagnostic(CaseTestAnalyzer.HasDefaultCaseDescriptor.Id, "Case Else").
WithLocation
(50, 13))
1122
Diagnostic(ExplicitVsImplicitInstanceAnalyzer.ExplicitInstanceDescriptor.Id, "Me").
WithLocation
(3, 9),
1123
Diagnostic(ExplicitVsImplicitInstanceAnalyzer.ImplicitInstanceDescriptor.Id, "M1").
WithLocation
(4, 9),
1124
Diagnostic(ExplicitVsImplicitInstanceAnalyzer.ExplicitInstanceDescriptor.Id, "MyBase").
WithLocation
(13, 9),
1125
Diagnostic(ExplicitVsImplicitInstanceAnalyzer.ImplicitInstanceDescriptor.Id, "M1").
WithLocation
(14, 9),
1126
Diagnostic(ExplicitVsImplicitInstanceAnalyzer.ImplicitInstanceDescriptor.Id, "M2").
WithLocation
(15, 9))
1162
Diagnostic(MemberReferenceAnalyzer.HandlerAddedDescriptor.Id, "AddHandler Mumble, New MumbleEventHandler(AddressOf Mumbler)").
WithLocation
(7, 9), ' Bug: we are missing diagnostics of "MethodBindingDescriptor" here. https://github.com/dotnet/roslyn/issues/20095
1163
Diagnostic(MemberReferenceAnalyzer.EventReferenceDescriptor.Id, "Mumble").
WithLocation
(7, 20),
1164
Diagnostic(MemberReferenceAnalyzer.MethodBindingDescriptor.Id, "AddressOf Mumbler").
WithLocation
(7, 51),
1166
End Sub)").
WithLocation
(8, 9),
1167
Diagnostic(MemberReferenceAnalyzer.EventReferenceDescriptor.Id, "Mumble").
WithLocation
(8, 20),
1169
End Sub").
WithLocation
(10, 9),
1170
Diagnostic(MemberReferenceAnalyzer.EventReferenceDescriptor.Id, "Mumble").
WithLocation
(10, 20),
1171
Diagnostic(MemberReferenceAnalyzer.EventReferenceDescriptor.Id, "Mumble").
WithLocation
(12, 20),
1172
Diagnostic(MemberReferenceAnalyzer.MethodBindingDescriptor.Id, "AddressOf Mumbler").
WithLocation
(14, 39),
1173
Diagnostic(MemberReferenceAnalyzer.HandlerRemovedDescriptor.Id, "RemoveHandler Mumble, AddressOf Mumbler").
WithLocation
(16, 9),
1174
Diagnostic(MemberReferenceAnalyzer.EventReferenceDescriptor.Id, "Mumble").
WithLocation
(16, 23),
1175
Diagnostic(MemberReferenceAnalyzer.MethodBindingDescriptor.Id, "AddressOf Mumbler").
WithLocation
(16, 31)
1215
Diagnostic(ParamsArrayTestAnalyzer.LongParamsDescriptor.Id, "M0(1, 2, 3, 4, 5)").
WithLocation
(9, 9),
1216
Diagnostic(ParamsArrayTestAnalyzer.LongParamsDescriptor.Id, "M0(1, 2, 3, 4, 5, 6)").
WithLocation
(10, 9),
1217
Diagnostic(ParamsArrayTestAnalyzer.LongParamsDescriptor.Id, "New Integer() { 2, 3, 4, 5 }").
WithLocation
(12, 15),
1218
Diagnostic(ParamsArrayTestAnalyzer.LongParamsDescriptor.Id, "New Integer() { 2, 3, 4, 5, 6 }").
WithLocation
(13, 15),
1219
Diagnostic(ParamsArrayTestAnalyzer.LongParamsDescriptor.Id, "D").
WithLocation
(14, 30),
1220
Diagnostic(ParamsArrayTestAnalyzer.LongParamsDescriptor.Id, "New Integer() { 2, 3, 4, 5 }").
WithLocation
(15, 26))
1248
Diagnostic(EqualsValueTestAnalyzer.EqualsValueDescriptor.Id, "= 44").
WithLocation
(2, 26),
1249
Diagnostic(EqualsValueTestAnalyzer.EqualsValueDescriptor.Id, "= ""Hello""").
WithLocation
(3, 25),
1250
Diagnostic(EqualsValueTestAnalyzer.EqualsValueDescriptor.Id, "= Goo()").
WithLocation
(4, 26),
1251
Diagnostic(EqualsValueTestAnalyzer.EqualsValueDescriptor.Id, "= 20").
WithLocation
(10, 84))
1280
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "0").
WithLocation
(8, 28),
1281
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "x").
WithLocation
(9, 28),
1282
Diagnostic(OwningSymbolTestAnalyzer.ExpressionDescriptor.Id, "12").
WithLocation
(12, 36))
1328
End Sub]]>).
WithLocation
(22, 5),
1329
Diagnostic(NoneOperationTestAnalyzer.NoneOperationDescriptor.Id, "Resume").
WithLocation
(23, 9))
1380
End Sub").
WithLocation
(5, 33),
1382
End Sub").
WithLocation
(25, 51),
1385
End Sub").
WithLocation
(7, 33),
1391
End Sub").
WithLocation
(27, 28),
1397
End Sub").
WithLocation
(27, 28),
1403
End Function").
WithLocation
(10, 50),
1409
End Function").
WithLocation
(10, 50))
1454
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "AddHandler C.E, AddressOf D.Method").
WithLocation
(19, 9),
1455
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "AddressOf D.Method").
WithLocation
(19, 25),
1456
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "E").
WithLocation
(20, 20),
1457
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "C.Bar()").
WithLocation
(21, 9),
1459
End Sub").
WithLocation
(23, 9),
1460
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "D.Field").
WithLocation
(25, 9),
1461
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "D.P").
WithLocation
(26, 17),
1462
Diagnostic(StaticMemberTestAnalyzer.StaticMemberDescriptor.Id, "D.Method()").
WithLocation
(27, 9))
1485
Diagnostic(LabelOperationsTestAnalyzer.LabelDescriptor.Id, "Wilma:").
WithLocation
(3, 9),
1486
Diagnostic(LabelOperationsTestAnalyzer.GotoDescriptor.Id, "GoTo Betty").
WithLocation
(4, 9),
1487
Diagnostic(LabelOperationsTestAnalyzer.LabelDescriptor.Id, "Betty:").
WithLocation
(5, 9),
1488
Diagnostic(LabelOperationsTestAnalyzer.GotoDescriptor.Id, "GoTo Wilma").
WithLocation
(6, 9))
1541
Diagnostic(UnaryAndBinaryOperationsTestAnalyzer.BooleanNotDescriptor.Id, "Not b").
WithLocation
(33, 13),
1542
Diagnostic(UnaryAndBinaryOperationsTestAnalyzer.DoubleMultiplyDescriptor.Id, "d * 100").
WithLocation
(34, 13),
1543
Diagnostic(UnaryAndBinaryOperationsTestAnalyzer.OperatorAddMethodDescriptor.Id, "a1 + a2").
WithLocation
(35, 14),
1544
Diagnostic(UnaryAndBinaryOperationsTestAnalyzer.OperatorMinusMethodDescriptor.Id, "-a2").
WithLocation
(36, 14))
1689
Diagnostic("BinaryUserDefinedOperator", "x + y").WithArguments("Add").
WithLocation
(109, 13),
1690
Diagnostic("BinaryUserDefinedOperator", "x - y").WithArguments("Subtract").
WithLocation
(110, 13),
1691
Diagnostic("BinaryUserDefinedOperator", "x * y").WithArguments("Multiply").
WithLocation
(111, 13),
1692
Diagnostic("BinaryUserDefinedOperator", "x / y").WithArguments("Divide").
WithLocation
(112, 13),
1693
Diagnostic("BinaryUserDefinedOperator", "x \ y").WithArguments("IntegerDivide").
WithLocation
(113, 13),
1694
Diagnostic("BinaryUserDefinedOperator", "x Mod y").WithArguments("Remainder").
WithLocation
(114, 13),
1695
Diagnostic("BinaryUserDefinedOperator", "x ^ y").WithArguments("Power").
WithLocation
(115, 13),
1696
Diagnostic("BinaryUserDefinedOperator", "x = y").WithArguments("Equals").
WithLocation
(116, 13),
1697
Diagnostic("BinaryUserDefinedOperator", "x <> y").WithArguments("NotEquals").
WithLocation
(117, 13),
1698
Diagnostic("BinaryUserDefinedOperator", "x < y").WithArguments("LessThan").
WithLocation
(118, 13),
1699
Diagnostic("BinaryUserDefinedOperator", "x > y").WithArguments("GreaterThan").
WithLocation
(119, 13),
1700
Diagnostic("BinaryUserDefinedOperator", "x <= y").WithArguments("LessThanOrEqual").
WithLocation
(120, 13),
1701
Diagnostic("BinaryUserDefinedOperator", "x >= y").WithArguments("GreaterThanOrEqual").
WithLocation
(121, 13),
1702
Diagnostic("BinaryUserDefinedOperator", "x Like y").WithArguments("Like").
WithLocation
(122, 13),
1703
Diagnostic("BinaryUserDefinedOperator", "x & y").WithArguments("Concatenate").
WithLocation
(123, 13),
1704
Diagnostic("BinaryUserDefinedOperator", "x And y").WithArguments("And").
WithLocation
(124, 13),
1705
Diagnostic("BinaryUserDefinedOperator", "x Or y").WithArguments("Or").
WithLocation
(125, 13),
1706
Diagnostic("BinaryUserDefinedOperator", "x Xor y").WithArguments("ExclusiveOr").
WithLocation
(126, 13),
1707
Diagnostic("BinaryUserDefinedOperator", "x << 2").WithArguments("LeftShift").
WithLocation
(127, 13),
1708
Diagnostic("BinaryUserDefinedOperator", "x >> 3").WithArguments("RightShift").
WithLocation
(128, 13))
1748
comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_DuplicateProcDef1, "-", New Object() {"Public Shared Operator -(x As B2) As B2"}).
WithLocation
(8, 28),
1749
Diagnostic(ERRID.ERR_TypeMismatch2, "10", New Object() {"Integer", "B2"}).
WithLocation
(23, 17),
1750
Diagnostic(ERRID.ERR_NoMostSpecificOverload2, "-x", New Object() {"-", Environment.NewLine & " 'Public Shared Operator -(x As B2) As B2': Not most specific." & vbCrLf & " 'Public Shared Operator -(x As B2) As B2': Not most specific."}).
WithLocation
(25, 13))
1783
Diagnostic(NullOperationSyntaxTestAnalyzer.ParamsArrayOperationDescriptor.Id, "M0()").
WithLocation
(6, 9),
1784
Diagnostic(NullOperationSyntaxTestAnalyzer.ParamsArrayOperationDescriptor.Id, "M0(1)").
WithLocation
(7, 9),
1785
Diagnostic(NullOperationSyntaxTestAnalyzer.ParamsArrayOperationDescriptor.Id, "M0(1, 2)").
WithLocation
(8, 9))
1809
Diagnostic(ERRID.ERR_EndFunctionExpected, "Public Function M1(a As Double, b as C) as Double").
WithLocation
(2, 5),
1810
Diagnostic(ERRID.ERR_InvalidEndSub, "End Sub").
WithLocation
(4, 5),
1811
Diagnostic(ERRID.ERR_InvInsideEndsProc, "Public Function M2(s As C) As C").
WithLocation
(6, 5),
1812
Diagnostic(ERRID.ERR_ClassNotExpression1, "c").WithArguments("C").
WithLocation
(3, 20),
1813
Diagnostic(ERRID.ERR_UnaryOperand2, "-s").WithArguments("-", "C").
WithLocation
(7, 16))
1815
Diagnostic(InvalidOperatorExpressionTestAnalyzer.InvalidBinaryDescriptor.Id, "b + c").
WithLocation
(3, 16),
1816
Diagnostic(InvalidOperatorExpressionTestAnalyzer.InvalidUnaryDescriptor.Id, "-s").
WithLocation
(7, 16))
1846
Diagnostic(ParamsArrayTestAnalyzer.InvalidConstructorDescriptor.Id, "New C.S()").
WithLocation
(7, 11))
1906
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "p?.Prop").
WithLocation
(24, 17),
1907
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "p").
WithLocation
(24, 17),
1908
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "p?.Field").
WithLocation
(25, 13),
1909
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "p").
WithLocation
(25, 13),
1910
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "p?(0)").
WithLocation
(26, 13),
1911
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "p").
WithLocation
(26, 13),
1912
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "p?.M0(Nothing)").
WithLocation
(27, 9),
1913
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "p").
WithLocation
(27, 9),
1914
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "Field1?.Prop").
WithLocation
(29, 13),
1915
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "Field1").
WithLocation
(29, 13),
1916
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "Field1?.Field").
WithLocation
(30, 13),
1917
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "Field1").
WithLocation
(30, 13),
1918
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "Field1?(0)").
WithLocation
(31, 13),
1919
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "Field1").
WithLocation
(31, 13),
1920
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessOperationDescriptor.Id, "Field1?.M0(Nothing)").
WithLocation
(32, 9),
1921
Diagnostic(ConditionalAccessOperationTestAnalyzer.ConditionalAccessInstanceOperationDescriptor.Id, "Field1").
WithLocation
(32, 9))
1980
Diagnostic(ERRID.ERR_LoopControlMustNotBeProperty, "Moo").
WithLocation
(38, 13),
1981
Diagnostic(ERRID.ERR_LoopControlMustNotBeProperty, "Boo").
WithLocation
(41, 13),
1982
Diagnostic(ERRID.ERR_NoGetProperty1, "Boo").WithArguments("Boo").
WithLocation
(41, 24),
1983
Diagnostic(ERRID.ERR_NoGetProperty1, "Boo").WithArguments("Boo").
WithLocation
(41, 33),
1984
Diagnostic(ERRID.ERR_UnacceptableForLoopOperator2, "For i As C1(Of Integer) = 1 To 10").WithArguments("Public Shared Operator -(p1 As M1.C1(Of Integer), p2 As M1.C1(Of Integer)) As M1.C1(Of Short)", "M1.C1(Of Integer)").
WithLocation
(19, 9),
1985
Diagnostic(ERRID.ERR_ForLoopOperatorRequired2, "For i As C1(Of Integer) = 1 To 10").WithArguments("M1.C1(Of Integer)", "<=").
WithLocation
(19, 9),
1986
Diagnostic(ERRID.ERR_ForLoopOperatorRequired2, "For i As C1(Of Integer) = 1 To 10").WithArguments("M1.C1(Of Integer)", ">=").
WithLocation
(19, 9),
1987
Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports System").
WithLocation
(1, 1))
1989
Diagnostic(ForLoopConditionCrashVBTestAnalyzer.ForLoopConditionCrashDescriptor.Id, "Boo").
WithLocation
(41, 24),
1990
Diagnostic(ForLoopConditionCrashVBTestAnalyzer.ForLoopConditionCrashDescriptor.Id, "10").
WithLocation
(19, 40))
2044
Diagnostic(ERRID.ERR_ExpectedComma, "").
WithLocation
(6, 39),
2045
Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(6, 39),
2046
Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(24, 38),
2047
Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(25, 62),
2048
Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(26, 34),
2049
Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(27, 32),
2050
Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(28, 32),
2051
Diagnostic(ERRID.ERR_ExpectedExpression, "").
WithLocation
(37, 14),
2052
Diagnostic(ERRID.ERR_TooFewGenericArguments1, "IEnumerator").WithArguments("System.Collections.Generic.IEnumerator(Of Out T)").
WithLocation
(31, 31),
2053
Diagnostic(ERRID.ERR_TooFewGenericArguments1, "IEnumerator").WithArguments("System.Collections.Generic.IEnumerator(Of Out T)").
WithLocation
(33, 31),
2054
Diagnostic(ERRID.ERR_TooFewGenericArguments1, "IEnumerator").WithArguments("System.Collections.Generic.IEnumerator(Of Out T)").
WithLocation
(36, 30),
2055
Diagnostic(ERRID.ERR_AddOrRemoveHandlerEvent, "receiver?.TestEvent").
WithLocation
(15, 20),
2056
Diagnostic(ERRID.ERR_AddOrRemoveHandlerEvent, "Function(ByVal x) x").
WithLocation
(6, 20),
2057
Diagnostic(ERRID.ERR_BadIteratorReturn, "sub").
WithLocation
(24, 27),
2058
Diagnostic(ERRID.ERR_BadIteratorReturn, "sub").
WithLocation
(25, 27),
2059
Diagnostic(ERRID.ERR_BadIteratorReturn, "sub").
WithLocation
(25, 51),
2060
Diagnostic(ERRID.ERR_BadIteratorReturn, "sub").
WithLocation
(27, 21),
2061
Diagnostic(ERRID.ERR_BadIteratorReturn, "Sub").
WithLocation
(28, 21),
2062
Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports System.Collections.Generic").
WithLocation
(2, 1))
2064
Diagnostic("HandlerAdded", "AddHandler Function(ByVal x) x").
WithLocation
(6, 9),
2065
Diagnostic("InvalidEvent", "AddHandler Function(ByVal x) x").
WithLocation
(6, 9),
2066
Diagnostic("HandlerAdded", "AddHandler receiver?.TestEvent, AddressOf Main").
WithLocation
(15, 9),
2067
Diagnostic("InvalidEvent", "AddHandler receiver?.TestEvent, AddressOf Main").
WithLocation
(15, 9),
2068
Diagnostic("HandlerAdded", "AddHandler, New Object").
WithLocation
(26, 24),
2069
Diagnostic("InvalidEvent", "AddHandler, New Object").
WithLocation
(26, 24),
2070
Diagnostic("EventReference", ".TestEvent").
WithLocation
(15, 29))
2123
Diagnostic(TrueFalseUnaryOperationTestAnalyzer.UnaryTrueDescriptor.Id, "x").
WithLocation
(27, 12),
2124
Diagnostic(TrueFalseUnaryOperationTestAnalyzer.UnaryTrueDescriptor.Id, "x AndAlso y").
WithLocation
(33, 12))
2149
Diagnostic("ID", "M").WithArguments("M", "Block").
WithLocation
(2, 16),
2150
Diagnostic("ID", "M2").WithArguments("M2", "Block").
WithLocation
(5, 16),
2151
Diagnostic("ID", "M3").WithArguments("M3", "ParameterInitializer").
WithLocation
(8, 16),
2152
Diagnostic("ID", "M3").WithArguments("M3", "Block").
WithLocation
(8, 16))
Semantics\ScriptSemanticsTests.vb (1)
126
Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("ScriptClassName", "a" + ChrW(0) + "b").
WithLocation
(1, 1)
SourceGeneration\GeneratorDriverTests.vb (21)
122
Diagnostic("BC42501").WithArguments("CallbackGenerator", "Exception", "Init Exception").
WithLocation
(1, 1)
140
Diagnostic("BC42502").WithArguments("CallbackGenerator", "Exception", "Generate Exception").
WithLocation
(1, 1)
158
Diagnostic("BC42502").WithArguments("VBGenerator", "Exception", "Syntax Walk").
WithLocation
(1, 1)
197
Diagnostic("GEN001").
WithLocation
(1, 1),
198
Diagnostic("GEN002").
WithLocation
(1, 1))
203
Diagnostic("GEN002").
WithLocation
(1, 1))
208
Diagnostic("GEN001").
WithLocation
(1, 1))
213
Diagnostic("GEN001").
WithLocation
(1, 1).WithWarningAsError(True),
214
Diagnostic("GEN002").
WithLocation
(1, 1))
219
Diagnostic("GEN001").
WithLocation
(1, 1),
220
Diagnostic("GEN002").
WithLocation
(1, 1).WithWarningAsError(True))
230
Diagnostic("GEN001", "com").
WithLocation
(1, 2))
235
Diagnostic("GEN001", "com", isSuppressed:=True).
WithLocation
(2, 2))
240
Diagnostic("GEN001").
WithLocation
(1, 1))
245
Diagnostic("GEN001", "com", isSuppressed:=True).
WithLocation
(2, 2))
252
Diagnostic("GEN001", "ano").
WithLocation
(4, 2))
266
Diagnostic("GEN001", "com").
WithLocation
(3, 6))
275
Diagnostic("GEN001", "com", isSuppressed:=True).
WithLocation
(4, 6))
284
Diagnostic("GEN001").
WithLocation
(1, 1))
294
Diagnostic("GEN001", "com").
WithLocation
(4, 6),
295
Diagnostic("GEN001", "ano").
WithLocation
(5, 6))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (14)
SymbolDisplay\SymbolDisplayTests.vb (2)
5552
Diagnostic(9064, "F1").
WithLocation
(4, 11),
5553
Diagnostic(9064, "F2").
WithLocation
(5, 20)
SymbolsTests\Source\TypeTests.vb (1)
2502
Diagnostic(ERRID.ERR_NewInStruct, "new").
WithLocation
(2, 9)
SymbolsTests\SymbolErrorTests.vb (11)
13402
Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, Version=1"")").WithArguments("Test, Version=1").
WithLocation
(11, 2),
13403
Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, Version=1.*"")").WithArguments("Test, Version=1.*").
WithLocation
(12, 2),
13404
Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, Version=1.1.*"")").WithArguments("Test, Version=1.1.*").
WithLocation
(13, 2),
13405
Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, Version=1.1.1.*"")").WithArguments("Test, Version=1.1.1.*").
WithLocation
(14, 2),
13406
Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, ProcessorArchitecture=MSIL"")").WithArguments("Test, ProcessorArchitecture=MSIL").
WithLocation
(15, 2),
13407
Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, CuLTure=EN"")").WithArguments("Test, CuLTure=EN").
WithLocation
(16, 2))
13431
Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: InternalsVisibleTo(""\u1000000;a"")").WithArguments("\u1000000;a").
WithLocation
(6, 2),
13432
Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: InternalsVisibleTo(""a'b'c"")").WithArguments("a'b'c").
WithLocation
(7, 2),
13433
Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: InternalsVisibleTo(""Test, PublicKey=Null"")").WithArguments("Test, PublicKey=Null").
WithLocation
(8, 2),
13434
Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: InternalsVisibleTo(""Test, Bar"")").WithArguments("Test, Bar").
WithLocation
(9, 2),
13435
Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: InternalsVisibleTo(""Test, Version"")").WithArguments("Test, Version").
WithLocation
(10, 2))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (151)
Parser\ParseDirectives.vb (83)
934
Diagnostic(ERRID.ERR_ExpectedEndClass, "Class MissingEnd").
WithLocation
(4, 1)
2783
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13))
2789
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13).WithWarningAsError(True))
2798
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13).WithWarningAsError(True))
2823
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13))
2829
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13).WithWarningAsError(True))
2838
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13).WithWarningAsError(True))
2863
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13))
2869
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13).WithWarningAsError(True))
2878
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13).WithWarningAsError(True))
2903
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13))
2909
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13).WithWarningAsError(True))
2918
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13).WithWarningAsError(True))
2941
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(4, 13),
2942
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17),
2943
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13))
2949
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(4, 13).WithWarningAsError(True),
2950
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17),
2951
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13).WithWarningAsError(True))
2957
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17))
2961
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(4, 13).WithWarningAsError(True),
2962
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17).WithWarningAsError(True),
2963
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13).WithWarningAsError(True))
2986
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(4, 13),
2987
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17),
2988
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13))
2994
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(4, 13).WithWarningAsError(True),
2995
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17),
2996
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13).WithWarningAsError(True))
3002
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17))
3006
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(4, 13).WithWarningAsError(True),
3007
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17).WithWarningAsError(True),
3008
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13).WithWarningAsError(True))
3033
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(7, 17),
3034
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(5, 13))
3040
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(5, 13).WithWarningAsError(True),
3041
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(7, 17))
3047
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(7, 17))
3051
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(5, 13).WithWarningAsError(True),
3052
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(7, 17).WithWarningAsError(True))
3076
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17),
3077
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13))
3083
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17),
3084
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13).WithWarningAsError(True))
3090
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17))
3094
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17).WithWarningAsError(True),
3095
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13).WithWarningAsError(True))
3125
Diagnostic(ERRID.WRN_UnusedLocal, "f").WithArguments("f").
WithLocation
(10, 13),
3126
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "g").WithArguments("g").
WithLocation
(13, 17))
3132
Diagnostic(ERRID.WRN_UnusedLocal, "f").WithArguments("f").
WithLocation
(10, 13).WithWarningAsError(True),
3133
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "g").WithArguments("g").
WithLocation
(13, 17))
3139
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "g").WithArguments("g").
WithLocation
(13, 17))
3143
Diagnostic(ERRID.WRN_UnusedLocal, "f").WithArguments("f").
WithLocation
(10, 13).WithWarningAsError(True),
3144
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "g").WithArguments("g").
WithLocation
(13, 17).WithWarningAsError(True))
3216
New Test.Utilities.DiagnosticDescription(expectedId, "As Long", Nothing, Nothing, Nothing, False, GetType(String)).
WithLocation
(10, 15))
3222
New Test.Utilities.DiagnosticDescription(expectedId, "As Long", Nothing, Nothing, Nothing, False, GetType(String)).
WithLocation
(10, 15).WithWarningAsError(True))
3231
New Test.Utilities.DiagnosticDescription(expectedId, "As Long", Nothing, Nothing, Nothing, False, GetType(String)).
WithLocation
(10, 15).WithWarningAsError(True))
3256
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(5, 13),
3257
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(7, 17),
3258
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13))
3264
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(5, 13).WithWarningAsError(True),
3265
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(7, 17),
3266
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13).WithWarningAsError(True))
3272
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(7, 17))
3276
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(5, 13).WithWarningAsError(True),
3277
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(7, 17).WithWarningAsError(True),
3278
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(9, 13).WithWarningAsError(True))
3323
New Test.Utilities.DiagnosticDescription(expectedId, "As Long", Nothing, Nothing, Nothing, False, GetType(String)).
WithLocation
(10, 15))
3329
New Test.Utilities.DiagnosticDescription(expectedId, "As Long", Nothing, Nothing, Nothing, False, GetType(String)).
WithLocation
(10, 15).WithWarningAsError(True))
3338
New Test.Utilities.DiagnosticDescription(expectedId, "As Long", Nothing, Nothing, Nothing, False, GetType(String)).
WithLocation
(10, 15).WithWarningAsError(True))
3363
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").
WithLocation
(6, 17),
3364
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(4, 13))
3383
Diagnostic(ERRID.ERR_TypeMismatch2, "x").WithArguments("Integer", "System.Exception").
WithLocation
(5, 37))
3544
Diagnostic(ERRID.ERR_ExpectedWarningKeyword, "").
WithLocation
(3, 10),
3545
Diagnostic(ERRID.ERR_ExpectedWarningKeyword, "").
WithLocation
(5, 9),
3546
Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").
WithLocation
(4, 13))
3569
Diagnostic(ERRID.ERR_ExpectedIdentifier, "").
WithLocation
(3, 26),
3570
Diagnostic(ERRID.ERR_ExpectedIdentifier, "").
WithLocation
(7, 17),
3571
Diagnostic(ERRID.ERR_ExpectedIdentifier, "").
WithLocation
(8, 1),
3572
Diagnostic(ERRID.WRN_DefAsgUseNullRef, "e").WithArguments("e").
WithLocation
(10, 17),
3573
Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").
WithLocation
(8, 13))
3602
Diagnostic(ERRID.WRN_SharedMemberThroughInstance, "j.MaxValue").
WithLocation
(9, 25),
3603
Diagnostic(ERRID.WRN_SharedMemberThroughInstance, "j.MaxValue").
WithLocation
(14, 21))
Parser\ParseErrorTests.vb (3)
2900
Diagnostic(ERRID.ERR_InvInsideEnum, "if(true,3,4)").
WithLocation
(5, 21))
3793
ParseAndVerify(code, Diagnostic(ERRID.ERR_UnrecognizedType, "").
WithLocation
(2, 50),
3794
Diagnostic(ERRID.ERR_BadConstraintSyntax, "").
WithLocation
(2, 50))
Parser\ParseLanguageVersionTests.vb (23)
28
Diagnostic(ERRID.ERR_LanguageVersion, "Async").WithArguments("9.0", "async methods or lambdas", "11").
WithLocation
(3, 5),
29
Diagnostic(ERRID.ERR_LanguageVersion, "Async").WithArguments("9.0", "async methods or lambdas", "11").
WithLocation
(7, 5))
45
Diagnostic(ERRID.ERR_LanguageVersion, "Iterator").WithArguments("9.0", "iterators", "11").
WithLocation
(3, 13),
46
Diagnostic(ERRID.ERR_LanguageVersion, "Yield").WithArguments("9.0", "iterators", "11").
WithLocation
(4, 9),
47
Diagnostic(ERRID.ERR_LanguageVersion, "Yield").WithArguments("9.0", "iterators", "11").
WithLocation
(5, 9),
48
Diagnostic(ERRID.ERR_LanguageVersion, "Yield").WithArguments("9.0", "iterators", "11").
WithLocation
(6, 9))
62
Diagnostic(ERRID.ERR_LanguageVersion, "From").WithArguments("9.0", "collection initializers", "10").
WithLocation
(4, 51))
76
Diagnostic(ERRID.ERR_LanguageVersion, "Out").WithArguments("9.0", "variance", "10").
WithLocation
(2, 23),
77
Diagnostic(ERRID.ERR_LanguageVersion, "In").WithArguments("9.0", "variance", "10").
WithLocation
(2, 30))
100
Diagnostic(ERRID.ERR_LanguageVersion, "Async").WithArguments("9.0", "async methods or lambdas", "11").
WithLocation
(3, 13))
142
Diagnostic(ERRID.ERR_LanguageVersion, "Public Property Name As String").WithArguments("9.0", "auto-implemented properties", "10").
WithLocation
(3, 5),
143
Diagnostic(ERRID.ERR_LanguageVersion, "Public Property Owner As String = ""DefaultName""").WithArguments("9.0", "auto-implemented properties", "10").
WithLocation
(4, 5))
220
Diagnostic(ERRID.ERR_LanguageVersion, "NameOf").WithArguments("9.0", "'nameof' expressions", "14").
WithLocation
(5, 41))
236
Diagnostic(ERRID.ERR_LanguageVersion, "?").WithArguments("9.0", "null conditional operations", "14").
WithLocation
(4, 31),
237
Diagnostic(ERRID.ERR_LanguageVersion, "?").WithArguments("9.0", "null conditional operations", "14").
WithLocation
(5, 22))
256
Diagnostic(ERRID.ERR_LanguageVersion, "Global").WithArguments($"{CInt(version)}.0", "declaring a Global namespace", "11").
WithLocation
(4, 11))
297
Diagnostic(ERRID.ERR_LanguageVersion, "Global").WithArguments($"{CInt(version)}.0", "declaring a Global namespace", "11").
WithLocation
(4, 11))
320
Diagnostic(ERRID.ERR_LanguageVersion, "$""world""").WithArguments("12.0", "interpolated strings", "14").
WithLocation
(4, 18),
321
Diagnostic(ERRID.ERR_LanguageVersion, "$""hello {x1}""").WithArguments("12.0", "interpolated strings", "14").
WithLocation
(5, 18))
339
Diagnostic(ERRID.ERR_LanguageVersion, "(1, 2)").WithArguments("14.0", "tuples", "15").
WithLocation
(4, 18),
340
Diagnostic(ERRID.ERR_LanguageVersion, "(A:=1, B:=2)").WithArguments("14.0", "tuples", "15").
WithLocation
(5, 18))
358
Diagnostic(ERRID.ERR_LanguageVersion, "(Integer, Integer)").WithArguments("14.0", "tuples", "15").
WithLocation
(4, 19),
359
Diagnostic(ERRID.ERR_LanguageVersion, "(A As Integer, B As Integer)").WithArguments("14.0", "tuples", "15").
WithLocation
(5, 19))
Parser\ParseStatements.vb (24)
380
Diagnostic(ERRID.ERR_ExpectedEOS, "ElseIf True Then").
WithLocation
(4, 18),
381
Diagnostic(ERRID.ERR_ExpectedEOS, "x").
WithLocation
(4, 35),
382
Diagnostic(ERRID.ERR_ExpectedEOS, "elseIf").
WithLocation
(5, 24)
3940
]]>, Diagnostic(ERRID.ERR_ExpectedEndClass, "Class C1").
WithLocation
(2, 13),
3941
Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Namespace").
WithLocation
(19, 33),
3942
Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Class").
WithLocation
(20, 33),
3943
Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "End").
WithLocation
(21, 23),
3944
Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Namespace").
WithLocation
(25, 25),
3945
Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Class").
WithLocation
(26, 25),
3946
Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "End").
WithLocation
(27, 27),
3947
Diagnostic(ERRID.ERR_NamespaceNotAtNamespace, "namespace").
WithLocation
(31, 21),
3948
Diagnostic(ERRID.ERR_SpecifiersInvalidOnInheritsImplOpt, "dim").
WithLocation
(31, 17),
3949
Diagnostic(ERRID.ERR_ExpectedIdentifier, "").
WithLocation
(31, 30),
3950
Diagnostic(ERRID.ERR_EndClassNoClass, "End Class").
WithLocation
(37, 13),
3951
Diagnostic(ERRID.ERR_SpecifiersInvalidOnInheritsImplOpt, "dim").
WithLocation
(40, 13),
3952
Diagnostic(ERRID.ERR_ExpectedIdentifier, "").
WithLocation
(40, 26))
6288
Diagnostic(ERRID.ERR_Syntax, "5").
WithLocation
(4, 22)
6873
Diagnostic(ERRID.ERR_ExpectedEOS, "Else").
WithLocation
(4, 60))
8169
Diagnostic(ERRID.ERR_InvInsideProc, "Implements I").
WithLocation
(3, 37))
8310
Diagnostic(ERRID.ERR_InvInsideEndsProc, "<A> Property P").
WithLocation
(3, 37))
8422
Diagnostic(ERRID.ERR_LineContWithCommentOrNoPrecSpace, "_").
WithLocation
(4, 1)
8439
Diagnostic(ERRID.ERR_LineContWithCommentOrNoPrecSpace, "_").
WithLocation
(6, 1)
8500
Diagnostic(ERRID.ERR_CommentsAfterLineContinuationNotAvailable1, "' Comment").
WithLocation
(4, 36).WithArguments("16")
8516
Diagnostic(ERRID.ERR_CommentsAfterLineContinuationNotAvailable1, "' Comment").
WithLocation
(4, 36).WithArguments("16")
Parser\ParseXml.vb (4)
4405
Diagnostic(ERRID.ERR_ExpectedXmlName, "@").
WithLocation
(4, 22))
4413
Diagnostic(ERRID.ERR_ExpectedXmlName, "@").
WithLocation
(4, 22))
4421
Diagnostic(ERRID.ERR_ExpectedXmlName, "").
WithLocation
(4, 27))
4429
Diagnostic(ERRID.ERR_ExpectedXmlName, "").
WithLocation
(4, 27))
Parser\VisualBasicParseOptionsTests.vb (13)
269
options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").
WithLocation
(1, 1))
275
options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("-2147483648").
WithLocation
(1, 1))
316
options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").
WithLocation
(1, 1))
323
options.Errors.Verify(Diagnostic(ERRID.ERR_BadDocumentationMode).WithArguments("100").
WithLocation
(1, 1))
330
options.Errors.Verify(Diagnostic(ERRID.ERR_BadLanguageVersion).WithArguments("10000").
WithLocation
(1, 1))
340
options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "1").
WithLocation
(1, 1))
349
options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").
WithLocation
(1, 1))
356
options.Errors.Verify(Diagnostic(ERRID.ERR_BadDocumentationMode).WithArguments("100").
WithLocation
(1, 1))
363
options.Errors.Verify(Diagnostic(ERRID.ERR_BadLanguageVersion).WithArguments("10000").
WithLocation
(1, 1))
372
options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "").
WithLocation
(1, 1))
381
options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", " ").
WithLocation
(1, 1))
391
options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "Bad.Symbol").
WithLocation
(1, 1))
401
options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "Bad\\Symbol").
WithLocation
(1, 1))
TestSyntaxNodes.vb (1)
2114
Diagnostic(ERRID.ERR_ExpectedEOS, "#").
WithLocation
(2, 15))