Skip to content

Commit 2ac5441

Browse files
committed
rename the XMLDTD class to XmlDTD
1 parent 1a89dda commit 2ac5441

File tree

5 files changed

+25
-10
lines changed
  • cpp/ql/lib/semmle/code/cpp
  • csharp/ql/lib/semmle/code/csharp
  • javascript/ql/lib/semmle/javascript
  • java/ql/lib/semmle/code/xml
  • python/ql/lib/semmle/python/xml

5 files changed

+25
-10
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class XmlFile extends XmlParent, File {
132132
XmlElement getARootElement() { result = this.getAChild() }
133133

134134
/** Gets a DTD associated with this XML file. */
135-
XMLDTD getADTD() { xmlDTDs(result, _, _, _, this) }
135+
XmlDTD getADTD() { xmlDTDs(result, _, _, _, this) }
136136
}
137137

138138
/** DEPRECATED: Alias for XmlFile */
@@ -149,7 +149,7 @@ deprecated class XMLFile = XmlFile;
149149
* <!ELEMENT lastName (#PCDATA)>
150150
* ```
151151
*/
152-
class XMLDTD extends XmlLocatable, @xmldtd {
152+
class XmlDTD extends XmlLocatable, @xmldtd {
153153
/** Gets the name of the root element of this DTD. */
154154
string getRoot() { xmlDTDs(this, result, _, _, _) }
155155

@@ -174,6 +174,9 @@ class XMLDTD extends XmlLocatable, @xmldtd {
174174
}
175175
}
176176

177+
/** DEPRECATED: Alias for XmlDTD */
178+
deprecated class XMLDTD = XmlDTD;
179+
177180
/**
178181
* An XML element in an XML file.
179182
*

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class XmlFile extends XmlParent, File {
132132
XmlElement getARootElement() { result = this.getAChild() }
133133

134134
/** Gets a DTD associated with this XML file. */
135-
XMLDTD getADTD() { xmlDTDs(result, _, _, _, this) }
135+
XmlDTD getADTD() { xmlDTDs(result, _, _, _, this) }
136136
}
137137

138138
/** DEPRECATED: Alias for XmlFile */
@@ -149,7 +149,7 @@ deprecated class XMLFile = XmlFile;
149149
* <!ELEMENT lastName (#PCDATA)>
150150
* ```
151151
*/
152-
class XMLDTD extends XmlLocatable, @xmldtd {
152+
class XmlDTD extends XmlLocatable, @xmldtd {
153153
/** Gets the name of the root element of this DTD. */
154154
string getRoot() { xmlDTDs(this, result, _, _, _) }
155155

@@ -174,6 +174,9 @@ class XMLDTD extends XmlLocatable, @xmldtd {
174174
}
175175
}
176176

177+
/** DEPRECATED: Alias for XmlDTD */
178+
deprecated class XMLDTD = XmlDTD;
179+
177180
/**
178181
* An XML element in an XML file.
179182
*

java/ql/lib/semmle/code/xml/XML.qll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class XmlFile extends XmlParent, File {
132132
XmlElement getARootElement() { result = this.getAChild() }
133133

134134
/** Gets a DTD associated with this XML file. */
135-
XMLDTD getADTD() { xmlDTDs(result, _, _, _, this) }
135+
XmlDTD getADTD() { xmlDTDs(result, _, _, _, this) }
136136
}
137137

138138
/** DEPRECATED: Alias for XmlFile */
@@ -149,7 +149,7 @@ deprecated class XMLFile = XmlFile;
149149
* <!ELEMENT lastName (#PCDATA)>
150150
* ```
151151
*/
152-
class XMLDTD extends XmlLocatable, @xmldtd {
152+
class XmlDTD extends XmlLocatable, @xmldtd {
153153
/** Gets the name of the root element of this DTD. */
154154
string getRoot() { xmlDTDs(this, result, _, _, _) }
155155

@@ -174,6 +174,9 @@ class XMLDTD extends XmlLocatable, @xmldtd {
174174
}
175175
}
176176

177+
/** DEPRECATED: Alias for XmlDTD */
178+
deprecated class XMLDTD = XmlDTD;
179+
177180
/**
178181
* An XML element in an XML file.
179182
*

javascript/ql/lib/semmle/javascript/XML.qll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class XmlFile extends XmlParent, File {
132132
XmlElement getARootElement() { result = this.getAChild() }
133133

134134
/** Gets a DTD associated with this XML file. */
135-
XMLDTD getADTD() { xmlDTDs(result, _, _, _, this) }
135+
XmlDTD getADTD() { xmlDTDs(result, _, _, _, this) }
136136
}
137137

138138
/** DEPRECATED: Alias for XmlFile */
@@ -149,7 +149,7 @@ deprecated class XMLFile = XmlFile;
149149
* <!ELEMENT lastName (#PCDATA)>
150150
* ```
151151
*/
152-
class XMLDTD extends XmlLocatable, @xmldtd {
152+
class XmlDTD extends XmlLocatable, @xmldtd {
153153
/** Gets the name of the root element of this DTD. */
154154
string getRoot() { xmlDTDs(this, result, _, _, _) }
155155

@@ -174,6 +174,9 @@ class XMLDTD extends XmlLocatable, @xmldtd {
174174
}
175175
}
176176

177+
/** DEPRECATED: Alias for XmlDTD */
178+
deprecated class XMLDTD = XmlDTD;
179+
177180
/**
178181
* An XML element in an XML file.
179182
*

python/ql/lib/semmle/python/xml/XML.qll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class XmlFile extends XmlParent, File {
132132
XmlElement getARootElement() { result = this.getAChild() }
133133

134134
/** Gets a DTD associated with this XML file. */
135-
XMLDTD getADTD() { xmlDTDs(result, _, _, _, this) }
135+
XmlDTD getADTD() { xmlDTDs(result, _, _, _, this) }
136136
}
137137

138138
/** DEPRECATED: Alias for XmlFile */
@@ -149,7 +149,7 @@ deprecated class XMLFile = XmlFile;
149149
* <!ELEMENT lastName (#PCDATA)>
150150
* ```
151151
*/
152-
class XMLDTD extends XmlLocatable, @xmldtd {
152+
class XmlDTD extends XmlLocatable, @xmldtd {
153153
/** Gets the name of the root element of this DTD. */
154154
string getRoot() { xmlDTDs(this, result, _, _, _) }
155155

@@ -174,6 +174,9 @@ class XMLDTD extends XmlLocatable, @xmldtd {
174174
}
175175
}
176176

177+
/** DEPRECATED: Alias for XmlDTD */
178+
deprecated class XMLDTD = XmlDTD;
179+
177180
/**
178181
* An XML element in an XML file.
179182
*

0 commit comments

Comments
 (0)