Skip to content

Commit a70f534

Browse files
committed
Sync identical files.
1 parent 511d7c9 commit a70f534

File tree

4 files changed

+8
-8
lines changed
  • csharp/ql/src/semmle/code/csharp
  • javascript/ql/src/semmle/javascript
  • java/ql/src/semmle/code/xml
  • python/ql/src/semmle/python/xml

4 files changed

+8
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class XMLFile extends XMLParent, File {
116116
XMLFile() { xmlEncoding(this, _) }
117117

118118
/** Gets a printable representation of this XML file. */
119-
override string toString() { result = XMLParent.super.toString() }
119+
override string toString() { result = getName() }
120120

121121
/** Gets the name of this XML file. */
122122
override string getName() { result = File.super.getAbsolutePath() }
@@ -236,7 +236,7 @@ class XMLElement extends @xmlelement, XMLParent, XMLLocatable {
236236
string getAttributeValue(string name) { result = this.getAttribute(name).getValue() }
237237

238238
/** Gets a printable representation of this XML element. */
239-
override string toString() { result = XMLParent.super.toString() }
239+
override string toString() { result = getName() }
240240
}
241241

242242
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class XMLFile extends XMLParent, File {
116116
XMLFile() { xmlEncoding(this, _) }
117117

118118
/** Gets a printable representation of this XML file. */
119-
override string toString() { result = XMLParent.super.toString() }
119+
override string toString() { result = getName() }
120120

121121
/** Gets the name of this XML file. */
122122
override string getName() { result = File.super.getAbsolutePath() }
@@ -236,7 +236,7 @@ class XMLElement extends @xmlelement, XMLParent, XMLLocatable {
236236
string getAttributeValue(string name) { result = this.getAttribute(name).getValue() }
237237

238238
/** Gets a printable representation of this XML element. */
239-
override string toString() { result = XMLParent.super.toString() }
239+
override string toString() { result = getName() }
240240
}
241241

242242
/**

javascript/ql/src/semmle/javascript/XML.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class XMLFile extends XMLParent, File {
116116
XMLFile() { xmlEncoding(this, _) }
117117

118118
/** Gets a printable representation of this XML file. */
119-
override string toString() { result = XMLParent.super.toString() }
119+
override string toString() { result = getName() }
120120

121121
/** Gets the name of this XML file. */
122122
override string getName() { result = File.super.getAbsolutePath() }
@@ -236,7 +236,7 @@ class XMLElement extends @xmlelement, XMLParent, XMLLocatable {
236236
string getAttributeValue(string name) { result = this.getAttribute(name).getValue() }
237237

238238
/** Gets a printable representation of this XML element. */
239-
override string toString() { result = XMLParent.super.toString() }
239+
override string toString() { result = getName() }
240240
}
241241

242242
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class XMLFile extends XMLParent, File {
116116
XMLFile() { xmlEncoding(this, _) }
117117

118118
/** Gets a printable representation of this XML file. */
119-
override string toString() { result = XMLParent.super.toString() }
119+
override string toString() { result = getName() }
120120

121121
/** Gets the name of this XML file. */
122122
override string getName() { result = File.super.getAbsolutePath() }
@@ -236,7 +236,7 @@ class XMLElement extends @xmlelement, XMLParent, XMLLocatable {
236236
string getAttributeValue(string name) { result = this.getAttribute(name).getValue() }
237237

238238
/** Gets a printable representation of this XML element. */
239-
override string toString() { result = XMLParent.super.toString() }
239+
override string toString() { result = getName() }
240240
}
241241

242242
/**

0 commit comments

Comments
 (0)