File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
python/ql/lib/semmle/python/dataflow/new/internal Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ import semmle.python.SpecialMethods
44private import semmle.python.essa.SsaCompute
55private import semmle.python.dataflow.new.internal.ImportStar
66
7+ // Since we allow extra data-flow steps from modeled frameworks, we import these
8+ // up-front, to ensure these are included. This provides a more seamless experience from
9+ // a user point of view, since they don't need to know they need to import a specific
10+ // set of .qll files to get the same data-flow steps as they are used to seeing. This
11+ // also ensures that we don't end up re-evaluating data-flow because it has different
12+ // global steps in some configurations.
13+ //
14+ // This matches behavior in C#.
15+ private import semmle.python.Frameworks
16+ private import semmle.python.Concepts
17+
718/** Gets the callable in which this node occurs. */
819DataFlowCallable nodeGetEnclosingCallable ( Node n ) { result = n .getEnclosingCallable ( ) }
920
You can’t perform that action at this time.
0 commit comments