File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
csharp/ql/lib/semmle/code/csharp/internal Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff 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+
124124overlay [ local]
125125private predicate overlayXmlExtracted ( string file ) {
126126 exists ( DiscardableXmlEntity dxe |
You can’t perform that action at this time.
0 commit comments