163 references to WRN_BadXMLRef
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Crefs.cs (3)
54
diagnostics.Add(ErrorCode.
WRN_BadXMLRef
, syntax.Location, noTrivia.ToFullString());
107
diagnostics.Add(ErrorCode.
WRN_BadXMLRef
, crefSyntax.Location, noTrivia.ToFullString());
136
diagnostics.Add(ErrorCode.
WRN_BadXMLRef
, crefSyntax.Location, noTrivia.ToFullString());
Errors\ErrorFacts.cs (2)
336
case ErrorCode.
WRN_BadXMLRef
:
1185
case ErrorCode.
WRN_BadXMLRef
:
Generated\ErrorFacts.Generated.cs (1)
77
case ErrorCode.
WRN_BadXMLRef
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\CompilationEmitTests.cs (1)
426
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "T").WithArguments("T").WithLocation(4, 29),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\NumericIntPtrTests.cs (1)
11239
Diagnostic(ErrorCode.
WRN_BadXMLRef
, type).WithArguments(type).WithLocation(1, 33)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\NullableReferenceTypesTests.cs (2)
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));
Semantics\PrimaryConstructorTests.cs (5)
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),
5528
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x").WithLocation(11, 52),
5534
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "I1").WithArguments("I1").WithLocation(16, 53)
Semantics\RecordStructTests.cs (3)
3250
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x").WithLocation(7, 52)
3298
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x").WithLocation(7, 52)
3349
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x").WithLocation(7, 52)
Semantics\RecordTests.cs (1)
28318
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "x").WithArguments("x").WithLocation(7, 52)
Semantics\SemanticErrorTests.cs (3)
21604
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "D").WithArguments("D"));
21634
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Test(i)").WithArguments("Test(i)"));
21665
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "MyClass.explicit operator intt(MyClass)").WithArguments("explicit operator intt(MyClass)").WithLocation(15, 20));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (141)
DocumentationComments\CrefTests.cs (82)
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}"));
5946
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "string(float[])").WithArguments("string(float[])"));
5995
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "global::D()").WithArguments("global::D()"));
6180
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Outer{Q}.M(Inner)").WithArguments("M(Inner)"));
6385
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "T").WithArguments("T"),
6388
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "t").WithArguments("t"),
6391
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Invoke").WithArguments("Invoke"),
6394
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "ToString").WithArguments("ToString"));
6422
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "IDerived.P").WithArguments("P").WithLocation(11, 16));
6460
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "I.ToString").WithArguments("ToString").WithLocation(6, 16));
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));
DocumentationComments\DocumentationCommentCompilerTests.cs (21)
1546
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Q").WithArguments("Q"),
1549
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "R{S, T}").WithArguments("R{S, T}"));
3724
Diagnostic(ErrorCode.
WRN_BadXMLRef
, includeElement).WithArguments("Int32"));
3801
Diagnostic(ErrorCode.
WRN_BadXMLRef
, includeElement).WithArguments("Invalid"));
4637
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Bogus1").WithArguments("Bogus1") });
4656
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "Bogus2").WithArguments("Bogus2")});
4829
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "dynamic").WithArguments("dynamic"),
4832
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C{T}").WithArguments("C{T}"),
4840
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "dynamic").WithArguments("dynamic"),
4843
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C{T}").WithArguments("C{T}"),
4957
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake1").WithArguments("fake1"),
4960
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake2").WithArguments("fake2"),
4963
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake2").WithArguments("fake2"),
4966
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake3").WithArguments("fake3"),
4969
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake4").WithArguments("fake4"),
4972
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "fake4").WithArguments("fake4"));
5792
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "SemanticModel.GetDeclaredSymbol(MemberDeclarationSyntax, CancellationToken)").WithArguments("GetDeclaredSymbol(MemberDeclarationSyntax, CancellationToken)"));
6183
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "IEquatable{T}.GetHashCode").WithArguments("GetHashCode"));
6310
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C{Q}.M(Inner)").WithArguments("M(Inner)"));
6354
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C{Q}.M(C{Inner[]})").WithArguments("M(C{Inner[]})"));
6395
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)
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)
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)
1051
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20)
1101
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20)
1154
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").WithLocation(3, 20)
1204
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").WithLocation(3, 20)
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)
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)
2269
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + opForXml).WithArguments("operator checked " + opForXml).WithLocation(3, 20)
2363
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator checked " + opForXml + "(C, int)").WithArguments("operator checked " + opForXml + "(C, int)").WithLocation(3, 20)
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)
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)
3248
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "implicit operator checked int").WithArguments("implicit operator checked int").WithLocation(3, 20)
3298
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "implicit operator checked int(C)").WithArguments("implicit operator checked int(C)").WithLocation(3, 20)
Symbols\Source\FileModifierTests.cs (1)
3326
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "C").WithArguments("C").WithLocation(4, 45)
Symbols\UnsignedRightShiftTests.cs (8)
2755
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator >>>").WithArguments("operator >>>").WithLocation(3, 20)
2784
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator >>").WithArguments("operator >>").WithLocation(3, 20)
2825
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator").WithArguments("operator").WithLocation(3, 20)
2848
Diagnostic(ErrorCode.
WRN_BadXMLRef
, "operator >>>(C)").WithArguments("operator >>>(C)").WithLocation(3, 20)
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)
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)