Python: Use range instead of self for ::Range pattern

Following the suggestions from https://github.com/github/codeql/pull/4357
This commit is contained in:
Rasmus Wriedt Larsen
2020-10-07 14:54:51 +02:00
parent 88575799e9
commit bec33b745e

View File

@@ -16,12 +16,12 @@ private import experimental.semmle.python.Frameworks
* extend `SystemCommandExecution::Range` instead.
*/
class SystemCommandExecution extends DataFlow::Node {
SystemCommandExecution::Range self;
SystemCommandExecution::Range range;
SystemCommandExecution() { this = self }
SystemCommandExecution() { this = range }
/** Gets the argument that specifies the command to be executed. */
DataFlow::Node getCommand() { result = self.getCommand() }
DataFlow::Node getCommand() { result = range.getCommand() }
}
/** Provides a class for modeling new system-command execution APIs. */