Skip to content

Commit 3006fa6

Browse files
authored
Merge pull request #9856 from tausbn/python-fix-bad-ScopeEntryDefinition-charpred-join
Python: Fix bad join in `ScopeEntryDefinition`
2 parents fd5b889 + b17e74d commit 3006fa6

File tree

1 file changed

+2
-1
lines changed
  • python/ql/lib/semmle/python/essa

1 file changed

+2
-1
lines changed

python/ql/lib/semmle/python/essa/Essa.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,8 @@ class DeletionDefinition extends EssaNodeDefinition {
632632
*/
633633
class ScopeEntryDefinition extends EssaNodeDefinition {
634634
ScopeEntryDefinition() {
635-
this.getDefiningNode() = this.getSourceVariable().getScopeEntryDefinition() and
635+
this.getDefiningNode() =
636+
pragma[only_bind_out](this.getSourceVariable()).getScopeEntryDefinition() and
636637
not this instanceof ImplicitSubModuleDefinition
637638
}
638639

0 commit comments

Comments
 (0)