Skip to content

Commit 7f97237

Browse files
committed
C#: revert XMLComment -> XmlComment change to avoid name conflict
1 parent 95a9e44 commit 7f97237

File tree

1 file changed

+2
-5
lines changed
  • csharp/ql/lib/semmle/code/csharp

1 file changed

+2
-5
lines changed

csharp/ql/lib/semmle/code/csharp/XML.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class XmlParent extends @xmlparent {
7272
XmlElement getAChild(string name) { xmlElements(result, _, this, _, _) and result.hasName(name) }
7373

7474
/** Gets a comment that is a child of this XML parent. */
75-
XmlComment getAComment() { xmlComments(result, _, this, _) }
75+
XMLComment getAComment() { xmlComments(result, _, this, _) }
7676

7777
/** Gets a character sequence that is a child of this XML parent. */
7878
XmlCharacters getACharactersSet() { xmlChars(result, _, this, _, _, _) }
@@ -325,7 +325,7 @@ deprecated class XMLNamespace = XmlNamespace;
325325
* <!-- This is a comment. -->
326326
* ```
327327
*/
328-
class XmlComment extends @xmlcomment, XmlLocatable {
328+
class XMLComment extends @xmlcomment, XmlLocatable {
329329
/** Gets the text content of this XML comment. */
330330
string getText() { xmlComments(this, result, _, _) }
331331

@@ -336,9 +336,6 @@ class XmlComment extends @xmlcomment, XmlLocatable {
336336
override string toString() { result = this.getText() }
337337
}
338338

339-
/** DEPRECATED: Alias for XmlComment */
340-
deprecated class XMLComment = XmlComment;
341-
342339
/**
343340
* A sequence of characters that occurs between opening and
344341
* closing tags of an XML element, excluding other elements.

0 commit comments

Comments
 (0)