163 references to WRN_BadXMLRef
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Crefs.cs (3)
54diagnostics.Add(ErrorCode.WRN_BadXMLRef, syntax.Location, noTrivia.ToFullString()); 107diagnostics.Add(ErrorCode.WRN_BadXMLRef, crefSyntax.Location, noTrivia.ToFullString()); 136diagnostics.Add(ErrorCode.WRN_BadXMLRef, crefSyntax.Location, noTrivia.ToFullString());
Errors\ErrorFacts.cs (2)
336case ErrorCode.WRN_BadXMLRef: 1185case ErrorCode.WRN_BadXMLRef:
Generated\ErrorFacts.Generated.cs (1)
77case ErrorCode.WRN_BadXMLRef:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\CompilationEmitTests.cs (1)
426Diagnostic(ErrorCode.WRN_BadXMLRef, "T").WithArguments("T").WithLocation(4, 29),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\NumericIntPtrTests.cs (1)
11239Diagnostic(ErrorCode.WRN_BadXMLRef, type).WithArguments(type).WithLocation(1, 33)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\NullableReferenceTypesTests.cs (2)
4546Diagnostic(ErrorCode.WRN_BadXMLRef, "M{T}(T?)").WithArguments("M{T}(T?)").WithLocation(8, 20)); 4578Diagnostic(ErrorCode.WRN_BadXMLRef, "M{T}(T?)").WithArguments("M{T}(T?)").WithLocation(8, 20));
Semantics\PrimaryConstructorTests.cs (5)
5516Diagnostic(ErrorCode.WRN_BadXMLRef, "I1").WithArguments("I1").WithLocation(3, 49), 5519Diagnostic(ErrorCode.WRN_BadXMLRef, "I1").WithArguments("I1").WithLocation(3, 49), 5522Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").WithLocation(7, 52), 5528Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").WithLocation(11, 52), 5534Diagnostic(ErrorCode.WRN_BadXMLRef, "I1").WithArguments("I1").WithLocation(16, 53)
Semantics\RecordStructTests.cs (3)
3250Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").WithLocation(7, 52) 3298Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").WithLocation(7, 52) 3349Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").WithLocation(7, 52)
Semantics\RecordTests.cs (1)
28318Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x").WithLocation(7, 52)
Semantics\SemanticErrorTests.cs (3)
21604Diagnostic(ErrorCode.WRN_BadXMLRef, "D").WithArguments("D")); 21634Diagnostic(ErrorCode.WRN_BadXMLRef, "Test(i)").WithArguments("Test(i)")); 21665Diagnostic(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)
251Diagnostic(ErrorCode.WRN_BadXMLRef, "Gibberish").WithArguments("Gibberish")); 259Diagnostic(ErrorCode.WRN_BadXMLRef, "Gibberish").WithArguments("Gibberish")); 299Diagnostic(ErrorCode.WRN_BadXMLRef, "A").WithArguments("A")); 333Diagnostic(ErrorCode.WRN_BadXMLRef, "").WithArguments("")); 362Diagnostic(ErrorCode.WRN_BadXMLRef, "").WithArguments("")); 391Diagnostic(ErrorCode.WRN_BadXMLRef, "").WithArguments("")); 473Diagnostic(ErrorCode.WRN_BadXMLRef, "M").WithArguments("M")); 565Diagnostic(ErrorCode.WRN_BadXMLRef, "T").WithArguments("T")); 588Diagnostic(ErrorCode.WRN_BadXMLRef, "p").WithArguments("p")); 611Diagnostic(ErrorCode.WRN_BadXMLRef, "Item").WithArguments("Item")); 633Diagnostic(ErrorCode.WRN_BadXMLRef, "x").WithArguments("x")); 942Diagnostic(ErrorCode.WRN_BadXMLRef, "B").WithArguments("B"), 945Diagnostic(ErrorCode.WRN_BadXMLRef, "B.B").WithArguments("B"), 948Diagnostic(ErrorCode.WRN_BadXMLRef, "B.B()").WithArguments("B()"), 951Diagnostic(ErrorCode.WRN_BadXMLRef, "B{T}.B").WithArguments("B"), 954Diagnostic(ErrorCode.WRN_BadXMLRef, "B{T}.B{T}").WithArguments("B{T}"), 957Diagnostic(ErrorCode.WRN_BadXMLRef, "B{T}.B{T}()").WithArguments("B{T}()")); 1038Diagnostic(ErrorCode.WRN_BadXMLRef, "B").WithArguments("B"), 1041Diagnostic(ErrorCode.WRN_BadXMLRef, "B()").WithArguments("B()"), 1044Diagnostic(ErrorCode.WRN_BadXMLRef, "B.B").WithArguments("B"), 1047Diagnostic(ErrorCode.WRN_BadXMLRef, "B.B()").WithArguments("B()"), 1050Diagnostic(ErrorCode.WRN_BadXMLRef, "B{T}.B{T}").WithArguments("B{T}"), 1053Diagnostic(ErrorCode.WRN_BadXMLRef, "B{T}.B{T}()").WithArguments("B{T}()")); 1137Diagnostic(ErrorCode.WRN_BadXMLRef, "B").WithArguments("B"), 1140Diagnostic(ErrorCode.WRN_BadXMLRef, "B()").WithArguments("B()"), 1143Diagnostic(ErrorCode.WRN_BadXMLRef, "B.B").WithArguments("B"), 1146Diagnostic(ErrorCode.WRN_BadXMLRef, "B.B()").WithArguments("B()"), 1149Diagnostic(ErrorCode.WRN_BadXMLRef, "B{T}.B{T}").WithArguments("B{T}"), 1152Diagnostic(ErrorCode.WRN_BadXMLRef, "B{T}.B{T}()").WithArguments("B{T}()")); 1184Diagnostic(ErrorCode.WRN_BadXMLRef, text).WithArguments(arguments))); 2049Diagnostic(ErrorCode.WRN_BadXMLRef, "A.M").WithArguments("M")); 2103Diagnostic(ErrorCode.WRN_BadXMLRef, "B.M(A)").WithArguments("M(A)")); 2171Diagnostic(ErrorCode.WRN_BadXMLRef, "BadAlias::A").WithArguments("BadAlias::A")); 2201Diagnostic(ErrorCode.WRN_BadXMLRef, "LibAlias::BadType").WithArguments("LibAlias::BadType")); 2284Diagnostic(ErrorCode.WRN_BadXMLRef, "this[float]").WithArguments("this[float]")); 2333Diagnostic(ErrorCode.WRN_BadXMLRef, "operator -").WithArguments("operator -").WithLocation(3, 20) 2384Diagnostic(ErrorCode.WRN_BadXMLRef, "operator !(int)").WithArguments("operator !(int)")); 2569Diagnostic(ErrorCode.WRN_BadXMLRef, "operator /(int)").WithArguments("operator /(int)")); 2662Diagnostic(ErrorCode.WRN_BadXMLRef, "operator /(int)").WithArguments("operator /(int)")); 2777Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator int(int)").WithArguments("explicit operator int(int)")); 4450Diagnostic(ErrorCode.WRN_BadXMLRef, "M(Q)").WithArguments("M(Q)"), 4456Diagnostic(ErrorCode.WRN_BadXMLRef, "M(C{Q})").WithArguments("M(C{Q})"), 4462Diagnostic(ErrorCode.WRN_BadXMLRef, "M(Q[])").WithArguments("M(Q[])"), 4468Diagnostic(ErrorCode.WRN_BadXMLRef, "M(Q*)").WithArguments("M(Q*)")); 4493Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator Q").WithArguments("explicit operator Q").WithLocation(2, 16), 4499Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator C{Q}").WithArguments("explicit operator C{Q}").WithLocation(3, 16), 4505Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator Q[]").WithArguments("explicit operator Q[]").WithLocation(4, 16), 4511Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator Q*").WithArguments("explicit operator Q*").WithLocation(5, 16)); 4817Diagnostic(ErrorCode.WRN_BadXMLRef, "Derived.M").WithArguments("M")); 4906Diagnostic(ErrorCode.WRN_BadXMLRef, "Derived.M").WithArguments("M")); 4972Diagnostic(ErrorCode.WRN_BadXMLRef, "Derived.M2").WithArguments("M2"), 4975Diagnostic(ErrorCode.WRN_BadXMLRef, "Derived.M3").WithArguments("M3")); 5007Diagnostic(ErrorCode.WRN_BadXMLRef, "G()").WithArguments("G()")); 5042Diagnostic(ErrorCode.WRN_BadXMLRef, "Outer()").WithArguments("Outer()")); 5079Diagnostic(ErrorCode.WRN_BadXMLRef, "Outer{T}.Outer").WithArguments("Outer"), 5082Diagnostic(ErrorCode.WRN_BadXMLRef, "Outer{T}.Outer").WithArguments("Outer")); 5127Diagnostic(ErrorCode.WRN_BadXMLRef, "GenericClass").WithArguments("GenericClass"), 5130Diagnostic(ErrorCode.WRN_BadXMLRef, "GenericClass.NormalSub").WithArguments("NormalSub"), 5133Diagnostic(ErrorCode.WRN_BadXMLRef, "GenericClass.GenericSub").WithArguments("GenericSub"), 5136Diagnostic(ErrorCode.WRN_BadXMLRef, "GenericClass.GenericSub{T}").WithArguments("GenericSub{T}")); 5173Diagnostic(ErrorCode.WRN_BadXMLRef, "dynamic").WithArguments("dynamic")); 5195Diagnostic(ErrorCode.WRN_BadXMLRef, "dynamic()").WithArguments("dynamic()")); 5742Diagnostic(ErrorCode.WRN_BadXMLRef, "F{T}(T.C)").WithArguments("F{T}(T.C)")); 5782Diagnostic(ErrorCode.WRN_BadXMLRef, "C{C}").WithArguments("C{C}"), 5785Diagnostic(ErrorCode.WRN_BadXMLRef, "C.D{C}").WithArguments("D{C}"), 5788Diagnostic(ErrorCode.WRN_BadXMLRef, "C.D.E{C}").WithArguments("E{C}")); 5946Diagnostic(ErrorCode.WRN_BadXMLRef, "string(float[])").WithArguments("string(float[])")); 5995Diagnostic(ErrorCode.WRN_BadXMLRef, "global::D()").WithArguments("global::D()")); 6180Diagnostic(ErrorCode.WRN_BadXMLRef, "Outer{Q}.M(Inner)").WithArguments("M(Inner)")); 6385Diagnostic(ErrorCode.WRN_BadXMLRef, "T").WithArguments("T"), 6388Diagnostic(ErrorCode.WRN_BadXMLRef, "t").WithArguments("t"), 6391Diagnostic(ErrorCode.WRN_BadXMLRef, "Invoke").WithArguments("Invoke"), 6394Diagnostic(ErrorCode.WRN_BadXMLRef, "ToString").WithArguments("ToString")); 6422Diagnostic(ErrorCode.WRN_BadXMLRef, "IDerived.P").WithArguments("P").WithLocation(11, 16)); 6460Diagnostic(ErrorCode.WRN_BadXMLRef, "I.ToString").WithArguments("ToString").WithLocation(6, 16)); 6529Diagnostic(ErrorCode.WRN_BadXMLRef, "C").WithArguments("C").WithLocation(2, 16)); 6778Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").WithLocation(6, 25), 6781Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").WithLocation(6, 25)); 6803Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").WithLocation(6, 25), 6806Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").WithLocation(6, 25)); 6827Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").WithLocation(5, 25)); 6848Diagnostic(ErrorCode.WRN_BadXMLRef, "InvalidCref").WithArguments("InvalidCref").WithLocation(5, 25));
DocumentationComments\DocumentationCommentCompilerTests.cs (21)
1546Diagnostic(ErrorCode.WRN_BadXMLRef, "Q").WithArguments("Q"), 1549Diagnostic(ErrorCode.WRN_BadXMLRef, "R{S, T}").WithArguments("R{S, T}")); 3724Diagnostic(ErrorCode.WRN_BadXMLRef, includeElement).WithArguments("Int32")); 3801Diagnostic(ErrorCode.WRN_BadXMLRef, includeElement).WithArguments("Invalid")); 4637Diagnostic(ErrorCode.WRN_BadXMLRef, "Bogus1").WithArguments("Bogus1") }); 4656Diagnostic(ErrorCode.WRN_BadXMLRef, "Bogus2").WithArguments("Bogus2")}); 4829Diagnostic(ErrorCode.WRN_BadXMLRef, "dynamic").WithArguments("dynamic"), 4832Diagnostic(ErrorCode.WRN_BadXMLRef, "C{T}").WithArguments("C{T}"), 4840Diagnostic(ErrorCode.WRN_BadXMLRef, "dynamic").WithArguments("dynamic"), 4843Diagnostic(ErrorCode.WRN_BadXMLRef, "C{T}").WithArguments("C{T}"), 4957Diagnostic(ErrorCode.WRN_BadXMLRef, "fake1").WithArguments("fake1"), 4960Diagnostic(ErrorCode.WRN_BadXMLRef, "fake2").WithArguments("fake2"), 4963Diagnostic(ErrorCode.WRN_BadXMLRef, "fake2").WithArguments("fake2"), 4966Diagnostic(ErrorCode.WRN_BadXMLRef, "fake3").WithArguments("fake3"), 4969Diagnostic(ErrorCode.WRN_BadXMLRef, "fake4").WithArguments("fake4"), 4972Diagnostic(ErrorCode.WRN_BadXMLRef, "fake4").WithArguments("fake4")); 5792Diagnostic(ErrorCode.WRN_BadXMLRef, "SemanticModel.GetDeclaredSymbol(MemberDeclarationSyntax, CancellationToken)").WithArguments("GetDeclaredSymbol(MemberDeclarationSyntax, CancellationToken)")); 6183Diagnostic(ErrorCode.WRN_BadXMLRef, "IEquatable{T}.GetHashCode").WithArguments("GetHashCode")); 6310Diagnostic(ErrorCode.WRN_BadXMLRef, "C{Q}.M(Inner)").WithArguments("M(Inner)")); 6354Diagnostic(ErrorCode.WRN_BadXMLRef, "C{Q}.M(C{Inner[]})").WithArguments("M(C{Inner[]})")); 6395Diagnostic(ErrorCode.WRN_BadXMLRef, "C{Q}.M(Inner{int})").WithArguments("M(Inner{int})"));
DocumentationComments\DocumentationModeTests.cs (4)
216Diagnostic(ErrorCode.WRN_BadXMLRef, "NotFound").WithArguments("NotFound"), 219Diagnostic(ErrorCode.WRN_BadXMLRef, "NotFound").WithArguments("NotFound")); 253Diagnostic(ErrorCode.WRN_BadXMLRef, includeElement).WithArguments("NotFound"), 257Diagnostic(ErrorCode.WRN_BadXMLRef, includeElement).WithArguments("NotFound")
Symbols\CheckedUserDefinedOperatorsTests.cs (25)
567Diagnostic(ErrorCode.WRN_BadXMLRef, "operator " + op).WithArguments("operator " + op).WithLocation(3, 20) 599Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20) 630Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked -").WithArguments("operator checked -").WithLocation(3, 20) 739Diagnostic(ErrorCode.WRN_BadXMLRef, "operator " + op + "(C)").WithArguments("operator " + op + "(C)").WithLocation(3, 20) 771Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").WithLocation(3, 20) 1051Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20) 1101Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20) 1154Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").WithLocation(3, 20) 1204Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").WithLocation(3, 20) 1749Diagnostic(ErrorCode.WRN_BadXMLRef, "operator " + op).WithArguments("operator " + op).WithLocation(3, 20) 1782Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20) 1981Diagnostic(ErrorCode.WRN_BadXMLRef, "operator " + op + "(C, C)").WithArguments("operator " + op + "(C, C)").WithLocation(3, 20) 2014Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + op + "(C, C)").WithArguments("operator checked " + op + "(C, C)").WithLocation(3, 20) 2269Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + opForXml).WithArguments("operator checked " + opForXml).WithLocation(3, 20) 2363Diagnostic(ErrorCode.WRN_BadXMLRef, "operator checked " + opForXml + "(C, int)").WithArguments("operator checked " + opForXml + "(C, int)").WithLocation(3, 20) 2903Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator int").WithArguments("explicit operator int").WithLocation(3, 20) 2932Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator checked int").WithArguments("explicit operator checked int").WithLocation(3, 20) 2961Diagnostic(ErrorCode.WRN_BadXMLRef, "implicit operator int").WithArguments("implicit operator int").WithLocation(3, 20) 2990Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator checked int").WithArguments("explicit operator checked int").WithLocation(3, 20) 3069Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator int(C)").WithArguments("explicit operator int(C)").WithLocation(3, 20) 3098Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator checked int(C)").WithArguments("explicit operator checked int(C)").WithLocation(3, 20) 3127Diagnostic(ErrorCode.WRN_BadXMLRef, "implicit operator int(C)").WithArguments("implicit operator int(C)").WithLocation(3, 20) 3156Diagnostic(ErrorCode.WRN_BadXMLRef, "explicit operator checked int(C)").WithArguments("explicit operator checked int(C)").WithLocation(3, 20) 3248Diagnostic(ErrorCode.WRN_BadXMLRef, "implicit operator checked int").WithArguments("implicit operator checked int").WithLocation(3, 20) 3298Diagnostic(ErrorCode.WRN_BadXMLRef, "implicit operator checked int(C)").WithArguments("implicit operator checked int(C)").WithLocation(3, 20)
Symbols\Source\FileModifierTests.cs (1)
3326Diagnostic(ErrorCode.WRN_BadXMLRef, "C").WithArguments("C").WithLocation(4, 45)
Symbols\UnsignedRightShiftTests.cs (8)
2755Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>>").WithArguments("operator >>>").WithLocation(3, 20) 2784Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>").WithArguments("operator >>").WithLocation(3, 20) 2825Diagnostic(ErrorCode.WRN_BadXMLRef, "operator").WithArguments("operator").WithLocation(3, 20) 2848Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>>(C)").WithArguments("operator >>>(C)").WithLocation(3, 20) 2927Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>>(C, int)").WithArguments("operator >>>(C, int)").WithLocation(3, 20) 2956Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>(C, int)").WithArguments("operator >>(C, int)").WithLocation(3, 20) 2997Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>>=(C, int)").WithArguments("operator >>>=(C, int)").WithLocation(3, 20) 3020Diagnostic(ErrorCode.WRN_BadXMLRef, "operator >>>(C, int, object)").WithArguments("operator >>>(C, int, object)").WithLocation(3, 20)