File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
python/ql/lib/semmle/python Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -471,6 +471,12 @@ class XPathConstruction extends DataFlow::Node {
471
471
472
472
/** Gets the argument that specifies the XPath expressions to be constructed. */
473
473
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 ( ) }
474
480
}
475
481
476
482
/** Provides a class for modeling new XPath construction APIs. */
@@ -487,6 +493,12 @@ module XPathConstruction {
487
493
abstract class Range extends DataFlow:: Node {
488
494
/** Gets the argument that specifies the XPath expressions to be constructed. */
489
495
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 ( ) ;
490
502
}
491
503
}
492
504
You can’t perform that action at this time.
0 commit comments