Skip to content

Commit 98b3e9c

Browse files
committed
sync XML.qll after XMLComment revert
1 parent 7f97237 commit 98b3e9c

File tree

4 files changed

+8
-20
lines changed
  • cpp/ql/lib/semmle/code/cpp
  • java/ql/lib/semmle/code/xml
  • javascript/ql/lib/semmle/javascript
  • python/ql/lib/semmle/python/xml

4 files changed

+8
-20
lines changed

cpp/ql/lib/semmle/code/cpp/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.

java/ql/lib/semmle/code/xml/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.

javascript/ql/lib/semmle/javascript/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.

python/ql/lib/semmle/python/xml/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)