Skip to content

Commit 89f7619

Browse files
committed
Fixup of the XMl discardable.
1 parent 4f234c3 commit 89f7619

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

csharp/ql/lib/semmle/code/csharp/internal/Overlay.qll

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@ private class DiscardableEntityBase extends @locatable {
3030
string toString() { none() }
3131
}
3232

33-
/**
34-
* A class of Xml locatables that can be discarded from the base.
35-
*/
36-
overlay[local]
37-
private class DiscardableXmlEntity extends DiscardableEntityBase instanceof @xmllocatable {
38-
/** Gets the path to the file in which this element occurs. */
39-
override string getFilePath() {
40-
exists(@location_default loc | result = getLocationFilePath(loc) | xmllocations(this, loc))
41-
}
42-
}
43-
4433
/**
4534
* A class of elements that can be discarded from the base.
4635
*/
@@ -121,6 +110,17 @@ private predicate discardLocation(@location_default loc) {
121110
exists(string path | discardableLocation(loc, path) | overlayChangedFiles(path))
122111
}
123112

113+
/**
114+
* A class of Xml locatables that can be discarded from the base.
115+
*/
116+
overlay[local]
117+
private class DiscardableXmlEntity extends DiscardableEntityBase instanceof @xmllocatable {
118+
/** Gets the path to the file in which this element occurs. */
119+
override string getFilePath() {
120+
exists(@location_default loc | result = getLocationFilePath(loc) | xmllocations(this, loc))
121+
}
122+
}
123+
124124
overlay[local]
125125
private predicate overlayXmlExtracted(string file) {
126126
exists(DiscardableXmlEntity dxe |

0 commit comments

Comments
 (0)