File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
javascript/ql/src/semmle/javascript
java/ql/src/semmle/code/xml Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,20 @@ class XMLFile extends XMLParent, File {
117117 /** Gets the name of this XML file. */
118118 override string getName ( ) { result = File .super .getAbsolutePath ( ) }
119119
120+ /**
121+ * DEPRECATED: Use `getAbsolutePath()` instead.
122+ *
123+ * Gets the path of this XML file.
124+ */
125+ deprecated string getPath ( ) { result = getAbsolutePath ( ) }
126+
127+ /**
128+ * DEPRECATED: Use `getParentContainer().getAbsolutePath()` instead.
129+ *
130+ * Gets the path of the folder that contains this XML file.
131+ */
132+ deprecated string getFolder ( ) { result = getParentContainer ( ) .getAbsolutePath ( ) }
133+
120134 /** Gets the encoding of this XML file. */
121135 string getEncoding ( ) { xmlEncoding ( this , result ) }
122136
Original file line number Diff line number Diff line change @@ -117,6 +117,20 @@ class XMLFile extends XMLParent, File {
117117 /** Gets the name of this XML file. */
118118 override string getName ( ) { result = File .super .getAbsolutePath ( ) }
119119
120+ /**
121+ * DEPRECATED: Use `getAbsolutePath()` instead.
122+ *
123+ * Gets the path of this XML file.
124+ */
125+ deprecated string getPath ( ) { result = getAbsolutePath ( ) }
126+
127+ /**
128+ * DEPRECATED: Use `getParentContainer().getAbsolutePath()` instead.
129+ *
130+ * Gets the path of the folder that contains this XML file.
131+ */
132+ deprecated string getFolder ( ) { result = getParentContainer ( ) .getAbsolutePath ( ) }
133+
120134 /** Gets the encoding of this XML file. */
121135 string getEncoding ( ) { xmlEncoding ( this , result ) }
122136
You can’t perform that action at this time.
0 commit comments