mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
python: remove getTree for now
This commit is contained in:
@@ -519,9 +519,6 @@ class XPathExecution extends DataFlow::Node {
|
||||
/** Gets the data flow node for the XPath expression being executed by this node. */
|
||||
DataFlow::Node getXPath() { result = range.getXPath() }
|
||||
|
||||
/** Gets a dataflow node for the tree in which the XPath expression is being evaluated. */
|
||||
DataFlow::Node getTree() { result = range.getTree() }
|
||||
|
||||
/**
|
||||
* Gets the name of this XPath expression execution, typically the name of an executing method.
|
||||
* This is used for nice alert messages and should include the module if possible.
|
||||
@@ -544,9 +541,6 @@ module XPathExecution {
|
||||
/** Gets the data flow node for the XPath expression being executed by this node. */
|
||||
abstract DataFlow::Node getXPath();
|
||||
|
||||
/** Gets a dataflow node for the tree in which the XPath expression is being evaluated. */
|
||||
abstract DataFlow::Node getTree();
|
||||
|
||||
/**
|
||||
* Gets the name of this xpath expression execution, typically the name of an executing method.
|
||||
* This is used for nice alert messages and should include the module if possible.
|
||||
|
||||
@@ -40,9 +40,6 @@ private module Libxml2 {
|
||||
|
||||
override DataFlow::Node getXPath() { result = this.getArg(0) }
|
||||
|
||||
// TODO: implement when we get call nodes
|
||||
override DataFlow::Node getTree() { none() }
|
||||
|
||||
override string getName() { result = "libxml2" }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,9 +68,6 @@ private module Lxml {
|
||||
|
||||
override DataFlow::Node getXPath() { result in [this.getArg(0), this.getArgByName("_path")] }
|
||||
|
||||
// TODO: implement when we get call nodes
|
||||
override DataFlow::Node getTree() { none() }
|
||||
|
||||
override string getName() { result = "lxml.etree" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user