File tree Expand file tree Collapse file tree
python/ql/lib/semmle/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -471,6 +471,12 @@ class XPathConstruction extends DataFlow::Node {
471471
472472 /** Gets the argument that specifies the XPath expressions to be constructed. */
473473 DataFlow:: Node getXPath ( ) { result = range .getXPath ( ) }
474+
475+ /**
476+ * Gets the name of this XPath expression construction, typically the name of an executing method.
477+ * This is used for nice alert messages and should include the module if possible.
478+ */
479+ string getName ( ) { result = range .getName ( ) }
474480}
475481
476482/** Provides a class for modeling new XPath construction APIs. */
@@ -487,6 +493,12 @@ module XPathConstruction {
487493 abstract class Range extends DataFlow:: Node {
488494 /** Gets the argument that specifies the XPath expressions to be constructed. */
489495 abstract DataFlow:: Node getXPath ( ) ;
496+
497+ /**
498+ * Gets the name of this XPath expression construction, typically the name of an executing method.
499+ * This is used for nice alert messages and should include the module if possible.
500+ */
501+ abstract string getName ( ) ;
490502 }
491503}
492504
You can’t perform that action at this time.
0 commit comments