137 references to WRN_BadXMLRefSyntax
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
352
case ErrorCode.
WRN_BadXMLRefSyntax
:
1255
or ErrorCode.
WRN_BadXMLRefSyntax
Generated\ErrorFacts.Generated.cs (1)
80
case ErrorCode.
WRN_BadXMLRefSyntax
:
Parser\DocumentationCommentParser.cs (1)
928
result = this.AddError(result, ErrorCode.
WRN_BadXMLRefSyntax
, result.ToFullString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Semantics\ExtensionTests2.cs (4)
4059
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "E.extension(.M()").WithArguments("E.extension(.M()").WithLocation(1, 16),
4630
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "E.extension(int).").WithArguments("E.extension(int).").WithLocation(1, 16),
5137
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "E.extension{int}(int).M").WithArguments("E.extension{int}(int).M").WithLocation(1, 16),
5186
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "E.extension(int).extension(string).M").WithArguments("E.extension(int).extension(string).M").WithLocation(1, 16),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\SemanticErrorTests.cs (2)
21913
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "MyClass1.operator").WithArguments("MyClass1.operator@"),
22055
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, @"""").WithArguments(""),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (80)
Compilation\CompilationAPITests.cs (1)
58
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "x").WithArguments("x...y").WithLocation(2, 16),
DocumentationComments\CrefTests.cs (44)
35
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, @"""").WithArguments(""),
53
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, @"""").WithArguments(""),
71
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "#").WithArguments("#"),
92
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, " ").WithArguments(" `"),
113
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "<").WithArguments(""),
134
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "").WithArguments(""),
162
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "M(T,").WithArguments("M(T, ///"),
187
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "M{").WithArguments("M{"),
281
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, ":").WithArguments(":"),
287
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, ":").WithArguments("::"),
293
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "&").WithArguments("::Gibberish"),
323
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, ".").WithArguments(".ctor"),
352
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, ".").WithArguments(".cctor"),
381
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "~").WithArguments("~Program"),
3422
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "2").WithArguments("2"),
3432
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "3").WithArguments("3A"),
3442
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "@").WithArguments("@4"),
3452
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "@").WithArguments("@5"),
3478
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "G<").WithArguments("G<3>"),
3490
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "G{T}.M<").WithArguments("G{T}.M<3>"),
3539
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "G{int}").WithArguments("G{int}"),
3545
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "G{A.B}").WithArguments("G{A.B}"),
3551
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "G{G{T}}").WithArguments("G{G{T}}}"),
3557
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "G{T}.M{int}").WithArguments("G{T}.M{int}"),
3563
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "G{T}.M{A.B}").WithArguments("G{T}.M{A.B}"),
3569
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "G{T}.M{G{T}}").WithArguments("G{T}.M{G{T}}"),
4680
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A{A{T}}").WithArguments("A{A{T}}"),
4686
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A{T}.B{A{T}}").WithArguments("A{T}.B{A{T}}"),
4692
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A{T}.B{U}.M{A{T}}").WithArguments("A{T}.B{U}.M{A{T}}"),
4736
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A{int}").WithArguments("A{int}"),
4742
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A{T}.B{int}").WithArguments("A{T}.B{int}"),
4748
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A{T}.B{U}.M{int}").WithArguments("A{T}.B{U}.M{int}"),
5272
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "Console.WriteLine(,,)").WithArguments("Console.WriteLine(,,)"),
5304
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator").WithArguments("operator ="),
5330
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator").WithArguments("operator q"),
5356
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "@").WithArguments("@"),
5645
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, " {").WithArguments(" {"),
6520
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "C{}").WithArguments("C{}").WithLocation(3, 16),
6553
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "C").WithArguments("C[]"));
6575
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "C").WithArguments("C?"));
6598
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "Cat").WithArguments("Cat:-)"));
6745
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "M(").WithArguments("M(readonly ref int)").WithLocation(8, 20),
6754
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "M(").WithArguments("M(readonly ref int)").WithLocation(8, 20),
6796
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "M(").WithArguments("M(readonly ref int)").WithLocation(8, 20),
DocumentationComments\DocumentationCommentCompilerTests.cs (3)
5505
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, includeElement).WithArguments("#"),
6556
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "C").WithArguments("C[]"),
6559
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "C").WithArguments("C*"),
DocumentationComments\DocumentationModeTests.cs (4)
115
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "#").WithArguments("#"),
125
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "#").WithArguments("#"),
165
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, includeElement).WithArguments("#"),
175
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, includeElement).WithArguments("#"),
Symbols\CheckedUserDefinedOperatorsTests.cs (26)
548
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20),
669
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked -").WithArguments("operator checked -").WithLocation(3, 20),
720
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").WithLocation(3, 20),
825
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked (C)").WithArguments("operator checked (C)").WithLocation(3, 20),
874
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator (C)").WithArguments("operator (C)").WithLocation(3, 20),
1090
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20),
1140
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20),
1193
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").WithLocation(3, 20),
1242
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked " + op + "(C)").WithArguments("operator checked " + op + "(C)").WithLocation(3, 20),
1729
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(3, 20),
1836
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked").WithArguments("operator checked").WithLocation(3, 20),
1851
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked").WithArguments("operator checked").WithLocation(3, 20),
1869
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked").WithArguments("operator checked").WithLocation(3, 20),
1899
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator").WithArguments("operator").WithLocation(3, 20),
1961
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked " + op + "(C, C)").WithArguments("operator checked " + op + "(C, C)").WithLocation(3, 20),
2068
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked (C, C)").WithArguments("operator checked (C, C)").WithLocation(3, 20),
2086
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked (C, C)").WithArguments("operator checked (C, C)").WithLocation(3, 20),
2127
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator (C, C)").WithArguments("operator (C, C)").WithLocation(3, 20),
2313
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked " + opForXml).WithArguments("operator checked " + opForXml).WithLocation(3, 20),
2324
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked }}}").WithArguments("operator checked }}}").WithLocation(3, 20),
2407
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked " + opForXml + "(C, int)").WithArguments("operator checked " + opForXml + "(C, int)").WithLocation(3, 20),
2418
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked }}}(C, int)").WithArguments("operator checked }}}(C, int)").WithLocation(3, 20),
2887
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "explicit operator checked int").WithArguments("explicit operator checked int").WithLocation(3, 20),
3053
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "explicit operator checked int(C)").WithArguments("explicit operator checked int(C)").WithLocation(3, 20),
3287
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "implicit operator checked int").WithArguments("implicit operator checked int").WithLocation(3, 20),
3337
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "implicit operator checked int(C)").WithArguments("implicit operator checked int(C)").WithLocation(3, 20),
Symbols\UnsignedRightShiftTests.cs (2)
2714
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator >>>").WithArguments("operator >>>").WithLocation(3, 20),
2883
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator >>>(C, int)").WithArguments("operator >>>(C, int)").WithLocation(3, 20),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (47)
Parsing\CrefParsingTests.cs (44)
442
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator unchecked +").WithArguments("operator unchecked +").WithLocation(1, 16),
510
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator unchecked +(A)").WithArguments("operator unchecked +(A)").WithLocation(1, 16),
556
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator " + op).WithArguments("operator " + op).WithLocation(1, 16),
592
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator checked " + op).WithArguments("operator checked " + op).WithLocation(1, 16),
629
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator unchecked " + op).WithArguments("operator unchecked " + op).WithLocation(1, 16),
640
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator unchecked " + op).WithArguments("operator unchecked " + op).WithLocation(1, 16),
675
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator " + op + "(A)").WithArguments("operator " + op + "(A)").WithLocation(1, 16),
724
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator " + op + "(A, A)").WithArguments("operator " + op + "(A, A)").WithLocation(1, 16),
781
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator " + op + "()").WithArguments("operator " + op + "()").WithLocation(1, 16),
821
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator " + op.Substring(0, op.Length - 2)).WithArguments("operator " + op).WithLocation(1, 16)
840
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator <").WithArguments("operator < < =").WithLocation(1, 16)
861
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator " + op.Substring(0, op.Length - 4)).WithArguments("operator " + op).WithLocation(1, 16)
880
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator <").WithArguments("operator < <=").WithLocation(1, 16)
901
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator " + op.Substring(0, op.Length - 3)).WithArguments("operator " + op).WithLocation(1, 16)
920
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator }").WithArguments("operator } } }=").WithLocation(1, 16)
939
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator }").WithArguments("operator } }}=").WithLocation(1, 16)
1024
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator unchecked +").WithArguments("T.operator unchecked +").WithLocation(1, 16),
1132
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator " + op).WithArguments("T.operator " + op).WithLocation(1, 16),
1177
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator checked " + op).WithArguments("T.operator checked " + op).WithLocation(1, 16),
1223
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator unchecked " + op).WithArguments("T.operator unchecked " + op).WithLocation(1, 16),
1234
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator unchecked " + op).WithArguments("T.operator unchecked " + op).WithLocation(1, 16),
1278
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator " + op + "(A)").WithArguments("T.operator " + op + "(A)").WithLocation(1, 16),
1335
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator " + op + "(A, A)").WithArguments("T.operator " + op + "(A, A)").WithLocation(1, 16),
1400
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator " + op + "()").WithArguments("T.operator " + op + "()").WithLocation(1, 16),
1448
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator " + op.Substring(0, op.Length - 2)).WithArguments("T.operator " + op).WithLocation(1, 16)
1476
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator <").WithArguments("T.operator < < =").WithLocation(1, 16)
1506
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator " + op.Substring(0, op.Length - 4)).WithArguments("T.operator " + op).WithLocation(1, 16)
1534
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator <").WithArguments("T.operator < <=").WithLocation(1, 16)
1564
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator " + op.Substring(0, op.Length - 3)).WithArguments("T.operator " + op).WithLocation(1, 16)
1592
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator }").WithArguments("T.operator } } }=").WithLocation(1, 16)
1620
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.operator }").WithArguments("T.operator } }}=").WithLocation(1, 16)
1769
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "operator unchecked }}(A{A{T}})").WithArguments("operator unchecked }}(A{A{T}})").WithLocation(1, 16),
1904
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "implicit operator unchecked A").WithArguments("implicit operator unchecked A").WithLocation(1, 16),
1985
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "explicit operator unchecked A(B)").WithArguments("explicit operator unchecked A(B)").WithLocation(1, 16),
2073
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.implicit operator unchecked A").WithArguments("T.implicit operator unchecked A").WithLocation(1, 16),
2177
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "T.explicit operator unchecked A(B)").WithArguments("T.explicit operator unchecked A(B)").WithLocation(1, 16),
2471
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A(").WithArguments("A(readonly ref B)").WithLocation(1, 16),
2498
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A(").WithArguments("A(readonly B)").WithLocation(1, 16),
2525
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A(in readonly B)").WithArguments("A(in readonly B)").WithLocation(1, 16),
2560
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A(out readonly B)").WithArguments("A(out readonly B)").WithLocation(1, 16),
2595
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A(ref readonly").WithArguments("A(ref readonly readonly B)").WithLocation(1, 16),
2634
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "A(").WithArguments("A(readonly ref B)").WithLocation(1, 16),
3799
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "E.extension{T}(int).").WithArguments("E.extension{T}(int).").WithLocation(1, 16),
3978
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "E.extension().extension().M").WithArguments("E.extension().extension().M").WithLocation(1, 16),
Parsing\ParserErrorMessageTests.cs (3)
6289
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "C{T}").WithArguments("C{T}"),
6308
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "Alias::Goo").WithArguments("Alias::Goo"),
6314
Diagnostic(ErrorCode.
WRN_BadXMLRefSyntax
, "global::Goo").WithArguments("global::Goo"),