273 references to WRN_BadXMLRef
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Crefs.cs (3)
55
diagnostics.Add(ErrorCode.
WRN_BadXMLRef
, syntax.Location, noTrivia.ToFullString());
108
diagnostics.Add(ErrorCode.
WRN_BadXMLRef
, crefSyntax.Location, noTrivia.ToFullString());
140
diagnostics.Add(ErrorCode.
WRN_BadXMLRef
, crefSyntax.Location, noTrivia.ToFullString());
Errors\ErrorFacts.cs (2)
349
case ErrorCode.
WRN_BadXMLRef
:
1247
or ErrorCode.
WRN_BadXMLRef
Generated\ErrorFacts.Generated.cs (1)
77
case ErrorCode.
WRN_BadXMLRef
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\CompilationEmitTests.cs (1)
427
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "T").WithArguments("T").WithLocation(4, 29),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\NumericIntPtrTests.cs (1)
11279
Diagnostic(ErrorCode.
WRN_BadXMLRef
, type).WithArguments(type).WithLocation(1, 33)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (111)
Semantics\ExtensionOperatorsTests.cs (38)
4030
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + op).WithArguments("extension(S1).operator " + op).WithLocation(1, 16),
4033
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + op + "()").WithArguments("extension(S1).operator " + op + "()").WithLocation(2, 16),
4036
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + op + "(S1)").WithArguments("extension(S1).operator " + op + "(S1)").WithLocation(3, 16),
4039
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + op).WithArguments("extension(S1).operator checked " + op).WithLocation(4, 16),
4042
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + op + "()").WithArguments("extension(S1).operator checked " + op + "()").WithLocation(5, 16),
4045
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + op + "(S1)").WithArguments("extension(S1).operator checked " + op + "(S1)").WithLocation(6, 16)
4081
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator true").WithArguments("extension(S1).operator true").WithLocation(1, 16),
4084
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator true()").WithArguments("extension(S1).operator true()").WithLocation(2, 16),
4087
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator true(S1)").WithArguments("extension(S1).operator true(S1)").WithLocation(3, 16),
4090
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator false").WithArguments("extension(S1).operator false").WithLocation(4, 16),
4093
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator false()").WithArguments("extension(S1).operator false()").WithLocation(5, 16),
4096
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator false(S1)").WithArguments("extension(S1).operator false(S1)").WithLocation(6, 16),
4099
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked true").WithArguments("extension(S1).operator checked true").WithLocation(7, 16),
4102
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked true()").WithArguments("extension(S1).operator checked true()").WithLocation(8, 16),
4105
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked true(S1)").WithArguments("extension(S1).operator checked true(S1)").WithLocation(9, 16),
4108
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked false").WithArguments("extension(S1).operator checked false").WithLocation(10, 16),
4111
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked false()").WithArguments("extension(S1).operator checked false()").WithLocation(11, 16),
4114
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked false(S1)").WithArguments("extension(S1).operator checked false(S1)").WithLocation(12, 16)
10258
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + op).WithArguments("extension(S1).operator " + op).WithLocation(1, 16),
10261
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + op + "()").WithArguments("extension(S1).operator " + op + "()").WithLocation(2, 16),
10264
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + op + "(S1)").WithArguments("extension(S1).operator " + op + "(S1)").WithLocation(3, 16),
10267
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + op).WithArguments("extension(S1).operator checked " + op).WithLocation(4, 16),
10270
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + op + "()").WithArguments("extension(S1).operator checked " + op + "()").WithLocation(5, 16),
10273
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + op + "(S1)").WithArguments("extension(S1).operator checked " + op + "(S1)").WithLocation(6, 16)
19336
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + ToCRefOp(op)).WithArguments("extension(S1).operator " + ToCRefOp(op)).WithLocation(1, 16),
19339
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + ToCRefOp(op) + "()").WithArguments("extension(S1).operator " + ToCRefOp(op) + "()").WithLocation(2, 16),
19342
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + ToCRefOp(op) + "(S1)").WithArguments("extension(S1).operator " + ToCRefOp(op) + "(S1)").WithLocation(3, 16),
19345
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + ToCRefOp(op) + "(S1, S1)").WithArguments("extension(S1).operator " + ToCRefOp(op) + "(S1, S1)").WithLocation(4, 16),
19348
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + ToCRefOp(op)).WithArguments("extension(S1).operator checked " + ToCRefOp(op)).WithLocation(5, 16),
19351
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + ToCRefOp(op) + "()").WithArguments("extension(S1).operator checked " + ToCRefOp(op) + "()").WithLocation(6, 16),
19354
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + ToCRefOp(op) + "(S1)").WithArguments("extension(S1).operator checked " + ToCRefOp(op) + "(S1)").WithLocation(7, 16),
19357
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + ToCRefOp(op) + "(S1, S1)").WithArguments("extension(S1).operator checked " + ToCRefOp(op) + "(S1, S1)").WithLocation(8, 16)
26787
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + ToCRefOp(op)).WithArguments("extension(S1).operator " + ToCRefOp(op)).WithLocation(1, 16),
26790
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + ToCRefOp(op) + "()").WithArguments("extension(S1).operator " + ToCRefOp(op) + "()").WithLocation(2, 16),
26793
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator " + ToCRefOp(op) + "(S1)").WithArguments("extension(S1).operator " + ToCRefOp(op) + "(S1)").WithLocation(3, 16),
26796
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + ToCRefOp(op)).WithArguments("extension(S1).operator checked " + ToCRefOp(op)).WithLocation(4, 16),
26799
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + ToCRefOp(op) + "()").WithArguments("extension(S1).operator checked " + ToCRefOp(op) + "()").WithLocation(5, 16),
26802
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(S1).operator checked " + ToCRefOp(op) + "(S1)").WithArguments("extension(S1).operator checked " + ToCRefOp(op) + "(S1)").WithLocation(6, 16)
Semantics\ExtensionTests2.cs (37)
3763
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "M(string)").WithArguments("M(string)").WithLocation(10, 24));
3849
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(ref int).M()").WithArguments("extension(ref int).M()").WithLocation(1, 16));
3870
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(int).M()").WithArguments("extension(int).M()").WithLocation(2, 16));
4023
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(int, int).M()").WithArguments("extension(int, int).M()").WithLocation(1, 16),
4095
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension().M()").WithArguments("extension().M()").WithLocation(1, 16));
4128
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(int, int).M()").WithArguments("extension(int, int).M()").WithLocation(1, 16),
4287
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(string).M").WithArguments("extension(string).M").WithLocation(1, 16));
4414
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(int).M").WithArguments("extension(int).M").WithLocation(1, 16));
4447
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension{T}(int).M").WithArguments("extension{T}(int).M").WithLocation(1, 16));
4505
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.M").WithArguments("M").WithLocation(1, 16));
4568
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(string).P").WithArguments("extension(string).P").WithLocation(1, 16),
4665
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(int).Nested").WithArguments("extension(int).Nested").WithLocation(1, 16),
4705
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(int).M").WithArguments("extension(int).M").WithLocation(1, 16),
4743
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(missing).M").WithArguments("extension(missing).M").WithLocation(1, 16),
4819
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension().M").WithArguments("extension().M").WithLocation(2, 16),
4822
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(int).M").WithArguments("extension(int).M").WithLocation(3, 16));
4878
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension{T}(int).M").WithArguments("extension{T}(int).M").WithLocation(1, 16));
4911
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E2.extension()").WithArguments("extension()").WithLocation(9, 16),
4914
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E2.extension(int)").WithArguments("extension(int)").WithLocation(10, 16),
4917
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "extension()").WithArguments("extension()").WithLocation(17, 20),
4920
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "extension(int)").WithArguments("extension(int)").WithLocation(18, 20));
4975
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension().M").WithArguments("extension().M").WithLocation(1, 16),
4978
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(int).M").WithArguments("extension(int).M").WithLocation(2, 16));
5031
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(object).M").WithArguments("extension(object).M").WithLocation(1, 16));
5105
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(object).M").WithArguments("extension(object).M").WithLocation(1, 16));
5157
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "extension(int).M").WithArguments("extension(int).M").WithLocation(1, 16),
5315
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.extension(missing).M").WithArguments("extension(missing).M").WithLocation(1, 16),
5420
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "extension(int).Method").WithArguments("extension(int).Method").WithLocation(1, 16),
5423
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "extension(int).Property").WithArguments("extension(int).Property").WithLocation(2, 16),
5426
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "extension(int).Method").WithArguments("extension(int).Method").WithLocation(7, 24),
5429
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "extension(int).Property").WithArguments("extension(int).Property").WithLocation(8, 24),
5432
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "extension(int).Method").WithArguments("extension(int).Method").WithLocation(15, 20),
5435
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "extension(int).Property").WithArguments("extension(int).Property").WithLocation(16, 20),
5438
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "extension(int).M2").WithArguments("extension(int).M2").WithLocation(21, 20),
5441
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "extension(int).Property").WithArguments("extension(int).Property").WithLocation(22, 20));
5496
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "M2(string)").WithArguments("M2(string)").WithLocation(5, 24));
5566
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "E.M(string)").WithArguments("M(string)").WithLocation(1, 16));
Semantics\PrimaryConstructorTests.cs (5)
6132
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "I1").WithArguments("I1").WithLocation(3, 49),
6135
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "I1").WithArguments("I1").WithLocation(3, 49),
6138
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x").WithLocation(7, 52),
6144
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x").WithLocation(11, 52),
6150
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "I1").WithArguments("I1").WithLocation(16, 53)
Semantics\RecordTests.cs (1)
28444
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x").WithLocation(7, 52)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (30)
6164
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator " + op).WithArguments("operator " + op).WithLocation(3, 20),
6167
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator " + op).WithArguments("operator " + op).WithLocation(11, 20)
6341
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator " + op + @"(C1)").WithArguments("operator " + op + @"(C1)").WithLocation(3, 20),
6344
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator " + op + @"(C1)").WithArguments("operator " + op + @"(C1)").WithLocation(11, 20)
6384
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator " + op).WithArguments("operator " + op).WithLocation(3, 20),
6387
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator " + op).WithArguments("operator " + op).WithLocation(11, 20)
6429
Diagnostic(ErrorCode.
WRN_BadXMLRef
, name).WithArguments(name).WithLocation(3, 20),
6432
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1." + name).WithArguments(name).WithLocation(11, 20)
6542
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20),
6545
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator checked " + op).WithArguments("operator checked " + op).WithLocation(12, 20)
6730
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op + @"(C1)").WithArguments("operator checked " + op + @"(C1)").WithLocation(3, 20),
6733
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator checked " + op + @"(C1)").WithArguments("operator checked " + op + @"(C1)").WithLocation(11, 20)
6773
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20),
6776
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator checked " + op).WithArguments("operator checked " + op).WithLocation(11, 20)
6820
Diagnostic(ErrorCode.
WRN_BadXMLRef
, name).WithArguments(name).WithLocation(3, 20),
6823
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1." + name).WithArguments(name).WithLocation(12, 20)
17788
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator " + ToCRefOp(op) + @"()").WithArguments("operator " + ToCRefOp(op) + @"()").WithLocation(3, 20),
17791
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator " + ToCRefOp(op) + @"()").WithArguments("operator " + ToCRefOp(op) + @"()").WithLocation(12, 20)
17945
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator " + ToCRefOp(op) + @"(string)").WithArguments("operator " + ToCRefOp(op) + @"(string)").WithLocation(3, 20),
17948
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator " + ToCRefOp(op) + @"(string)").WithArguments("operator " + ToCRefOp(op) + @"(string)").WithLocation(12, 20)
17988
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator " + ToCRefOp(op) + @"(int, string)").WithArguments("operator " + ToCRefOp(op) + @"(int, string)").WithLocation(3, 20),
17991
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator " + ToCRefOp(op) + @"(int, string)").WithArguments("operator " + ToCRefOp(op) + @"(int, string)").WithLocation(12, 20)
18102
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + ToCRefOp(op) + @"()").WithArguments("operator checked " + ToCRefOp(op) + @"()").WithLocation(3, 20),
18105
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator checked " + ToCRefOp(op) + @"()").WithArguments("operator checked " + ToCRefOp(op) + @"()").WithLocation(12, 20)
18179
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + ToCRefOp(op)).WithArguments("operator checked " + ToCRefOp(op)).WithLocation(3, 20),
18182
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator checked " + ToCRefOp(op)).WithArguments("operator checked " + ToCRefOp(op)).WithLocation(12, 20)
18311
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + ToCRefOp(op) + @"(string)").WithArguments("operator checked " + ToCRefOp(op) + @"(string)").WithLocation(3, 20),
18314
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator checked " + ToCRefOp(op) + @"(string)").WithArguments("operator checked " + ToCRefOp(op) + @"(string)").WithLocation(12, 20)
18357
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + ToCRefOp(op) + @"(int, string)").WithArguments("operator checked " + ToCRefOp(op) + @"(int, string)").WithLocation(3, 20),
18360
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C1.operator checked " + ToCRefOp(op) + @"(int, string)").WithArguments("operator checked " + ToCRefOp(op) + @"(int, string)").WithLocation(12, 20)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\NullableReferenceTypesTests.cs (2)
4558
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "M{T}(T?)").WithArguments("M{T}(T?)").WithLocation(8, 20));
4590
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "M{T}(T?)").WithArguments("M{T}(T?)").WithLocation(8, 20));
Semantics\RecordStructTests.cs (3)
3352
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x").WithLocation(7, 52)
3400
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x").WithLocation(7, 52)
3451
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x").WithLocation(7, 52)
Semantics\SemanticErrorTests.cs (3)
21828
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "D").WithArguments("D"));
21858
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Test(i)").WithArguments("Test(i)"));
21889
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "MyClass.explicit operator intt(MyClass)").WithArguments("explicit operator intt(MyClass)").WithLocation(15, 20));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (146)
DocumentationComments\CrefTests.cs (85)
251
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Gibberish").WithArguments("Gibberish"));
259
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Gibberish").WithArguments("Gibberish"));
299
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "A").WithArguments("A"));
333
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "").WithArguments(""));
362
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "").WithArguments(""));
391
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "").WithArguments(""));
473
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "M").WithArguments("M"));
565
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "T").WithArguments("T"));
588
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "p").WithArguments("p"));
611
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Item").WithArguments("Item"));
633
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x"));
942
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B").WithArguments("B"),
945
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B.B").WithArguments("B"),
948
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B.B()").WithArguments("B()"),
951
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B{T}.B").WithArguments("B"),
954
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B{T}.B{T}").WithArguments("B{T}"),
957
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B{T}.B{T}()").WithArguments("B{T}()"));
1038
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B").WithArguments("B"),
1041
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B()").WithArguments("B()"),
1044
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B.B").WithArguments("B"),
1047
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B.B()").WithArguments("B()"),
1050
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B{T}.B{T}").WithArguments("B{T}"),
1053
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B{T}.B{T}()").WithArguments("B{T}()"));
1137
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B").WithArguments("B"),
1140
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B()").WithArguments("B()"),
1143
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B.B").WithArguments("B"),
1146
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B.B()").WithArguments("B()"),
1149
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B{T}.B{T}").WithArguments("B{T}"),
1152
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B{T}.B{T}()").WithArguments("B{T}()"));
1184
Diagnostic(ErrorCode.
WRN_BadXMLRef
, text).WithArguments(arguments)));
2049
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "A.M").WithArguments("M"));
2103
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "B.M(A)").WithArguments("M(A)"));
2171
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "BadAlias::A").WithArguments("BadAlias::A"));
2201
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "LibAlias::BadType").WithArguments("LibAlias::BadType"));
2284
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "this[float]").WithArguments("this[float]"));
2333
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator -").WithArguments("operator -").WithLocation(3, 20)
2384
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator !(int)").WithArguments("operator !(int)"));
2569
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator /(int)").WithArguments("operator /(int)"));
2662
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator /(int)").WithArguments("operator /(int)"));
2777
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "explicit operator int(int)").WithArguments("explicit operator int(int)"));
4450
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "M(Q)").WithArguments("M(Q)"),
4456
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "M(C{Q})").WithArguments("M(C{Q})"),
4462
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "M(Q[])").WithArguments("M(Q[])"),
4468
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "M(Q*)").WithArguments("M(Q*)"));
4493
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "explicit operator Q").WithArguments("explicit operator Q").WithLocation(2, 16),
4499
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "explicit operator C{Q}").WithArguments("explicit operator C{Q}").WithLocation(3, 16),
4505
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "explicit operator Q[]").WithArguments("explicit operator Q[]").WithLocation(4, 16),
4511
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "explicit operator Q*").WithArguments("explicit operator Q*").WithLocation(5, 16));
4817
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Derived.M").WithArguments("M"));
4906
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Derived.M").WithArguments("M"));
4972
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Derived.M2").WithArguments("M2"),
4975
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Derived.M3").WithArguments("M3"));
5007
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "G()").WithArguments("G()"));
5042
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Outer()").WithArguments("Outer()"));
5079
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Outer{T}.Outer").WithArguments("Outer"),
5082
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Outer{T}.Outer").WithArguments("Outer"));
5127
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "GenericClass").WithArguments("GenericClass"),
5130
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "GenericClass.NormalSub").WithArguments("NormalSub"),
5133
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "GenericClass.GenericSub").WithArguments("GenericSub"),
5136
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "GenericClass.GenericSub{T}").WithArguments("GenericSub{T}"));
5173
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "dynamic").WithArguments("dynamic"));
5195
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "dynamic()").WithArguments("dynamic()"));
5742
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "F{T}(T.C)").WithArguments("F{T}(T.C)"));
5782
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C{C}").WithArguments("C{C}"),
5785
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C.D{C}").WithArguments("D{C}"),
5788
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C.D.E{C}").WithArguments("E{C}"));
5824
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator }}=").WithArguments("operator }}=").WithLocation(2, 16));
5943
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "string(float[])").WithArguments("string(float[])"));
5992
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "global::D()").WithArguments("global::D()"));
6177
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Outer{Q}.M(Inner)").WithArguments("M(Inner)"));
6382
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "T").WithArguments("T"),
6385
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "t").WithArguments("t"),
6388
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Invoke").WithArguments("Invoke"),
6391
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "ToString").WithArguments("ToString"));
6419
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "IDerived.P").WithArguments("P").WithLocation(11, 16));
6457
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "I.ToString").WithArguments("ToString").WithLocation(6, 16));
6526
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C").WithArguments("C").WithLocation(2, 16));
6838
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "M(ref readonly int)").WithArguments("M(ref readonly int)").WithLocation(8, 20),
6850
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "M(ref readonly int)").WithArguments("M(ref readonly int)").WithLocation(8, 20)
6936
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "InvalidCref").WithArguments("InvalidCref").WithLocation(6, 25),
6939
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "InvalidCref").WithArguments("InvalidCref").WithLocation(6, 25));
6961
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "InvalidCref").WithArguments("InvalidCref").WithLocation(6, 25),
6964
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "InvalidCref").WithArguments("InvalidCref").WithLocation(6, 25));
6985
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "InvalidCref").WithArguments("InvalidCref").WithLocation(5, 25));
7006
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "InvalidCref").WithArguments("InvalidCref").WithLocation(5, 25));
DocumentationComments\DocumentationCommentCompilerTests.cs (21)
3291
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Q").WithArguments("Q"),
3294
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "R{S, T}").WithArguments("R{S, T}"));
5469
Diagnostic(ErrorCode.
WRN_BadXMLRef
, includeElement).WithArguments("Int32"));
5546
Diagnostic(ErrorCode.
WRN_BadXMLRef
, includeElement).WithArguments("Invalid"));
6382
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Bogus1").WithArguments("Bogus1") });
6401
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Bogus2").WithArguments("Bogus2")});
6574
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "dynamic").WithArguments("dynamic"),
6577
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C{T}").WithArguments("C{T}"),
6585
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "dynamic").WithArguments("dynamic"),
6588
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C{T}").WithArguments("C{T}"),
6702
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake1").WithArguments("fake1"),
6705
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake2").WithArguments("fake2"),
6708
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake2").WithArguments("fake2"),
6711
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake3").WithArguments("fake3"),
6714
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake4").WithArguments("fake4"),
6717
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake4").WithArguments("fake4"));
7537
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "SemanticModel.GetDeclaredSymbol(MemberDeclarationSyntax, CancellationToken)").WithArguments("GetDeclaredSymbol(MemberDeclarationSyntax, CancellationToken)"));
7928
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "IEquatable{T}.GetHashCode").WithArguments("GetHashCode"));
8055
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C{Q}.M(Inner)").WithArguments("M(Inner)"));
8099
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C{Q}.M(C{Inner[]})").WithArguments("M(C{Inner[]})"));
8140
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C{Q}.M(Inner{int})").WithArguments("M(Inner{int})"));
DocumentationComments\DocumentationModeTests.cs (4)
216
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "NotFound").WithArguments("NotFound"),
219
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "NotFound").WithArguments("NotFound"));
253
Diagnostic(ErrorCode.
WRN_BadXMLRef
, includeElement).WithArguments("NotFound"),
257
Diagnostic(ErrorCode.
WRN_BadXMLRef
, includeElement).WithArguments("NotFound")
Symbols\CheckedUserDefinedOperatorsTests.cs (25)
592
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator " + op).WithArguments("operator " + op).WithLocation(3, 20)
624
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20)
655
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked -").WithArguments("operator checked -").WithLocation(3, 20)
764
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator " + op + "(C)").WithArguments("operator " + op + "(C)").WithLocation(3, 20)
796
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").WithLocation(3, 20)
1076
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20)
1126
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20)
1179
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").WithLocation(3, 20)
1229
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").WithLocation(3, 20)
1774
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator " + op).WithArguments("operator " + op).WithLocation(3, 20)
1807
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20)
2006
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator " + op + "(C, C)").WithArguments("operator " + op + "(C, C)").WithLocation(3, 20)
2039
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op + "(C, C)").WithArguments("operator checked " + op + "(C, C)").WithLocation(3, 20)
2294
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + opForXml).WithArguments("operator checked " + opForXml).WithLocation(3, 20)
2388
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + opForXml + "(C, int)").WithArguments("operator checked " + opForXml + "(C, int)").WithLocation(3, 20)
2928
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "explicit operator int").WithArguments("explicit operator int").WithLocation(3, 20)
2957
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "explicit operator checked int").WithArguments("explicit operator checked int").WithLocation(3, 20)
2986
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "implicit operator int").WithArguments("implicit operator int").WithLocation(3, 20)
3015
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "explicit operator checked int").WithArguments("explicit operator checked int").WithLocation(3, 20)
3094
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "explicit operator int(C)").WithArguments("explicit operator int(C)").WithLocation(3, 20)
3123
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "explicit operator checked int(C)").WithArguments("explicit operator checked int(C)").WithLocation(3, 20)
3152
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "implicit operator int(C)").WithArguments("implicit operator int(C)").WithLocation(3, 20)
3181
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "explicit operator checked int(C)").WithArguments("explicit operator checked int(C)").WithLocation(3, 20)
3273
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "implicit operator checked int").WithArguments("implicit operator checked int").WithLocation(3, 20)
3323
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "implicit operator checked int(C)").WithArguments("implicit operator checked int(C)").WithLocation(3, 20)
Symbols\Source\FileModifierTests.cs (1)
3884
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C").WithArguments("C").WithLocation(4, 45)
Symbols\UnsignedRightShiftTests.cs (10)
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_BadXMLRef
, "operator >>>=").WithArguments("operator >>>=").WithLocation(3, 20)
2822
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator >>>=").WithArguments("operator >>>=").WithLocation(3, 20)
2845
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator >>>(C)").WithArguments("operator >>>(C)").WithLocation(3, 20)
2924
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator >>>(C, int)").WithArguments("operator >>>(C, int)").WithLocation(3, 20)
2953
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator >>(C, int)").WithArguments("operator >>(C, int)").WithLocation(3, 20)
2984
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator >>>=(C, int)").WithArguments("operator >>>=(C, int)").WithLocation(3, 20)
2991
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator >>>=(C, int)").WithArguments("operator >>>=(C, int)").WithLocation(3, 20)
3014
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator >>>(C, int, object)").WithArguments("operator >>>(C, int, object)").WithLocation(3, 20)