Merge pull request #9856 from tausbn/python-fix-bad-ScopeEntryDefinition-charpred-join

Python: Fix bad join in `ScopeEntryDefinition`
This commit is contained in:
yoff
2022-08-16 14:37:53 +02:00
committed by GitHub

View File

@@ -632,7 +632,8 @@ class DeletionDefinition extends EssaNodeDefinition {
*/
class ScopeEntryDefinition extends EssaNodeDefinition {
ScopeEntryDefinition() {
this.getDefiningNode() = this.getSourceVariable().getScopeEntryDefinition() and
this.getDefiningNode() =
pragma[only_bind_out](this.getSourceVariable()).getScopeEntryDefinition() and
not this instanceof ImplicitSubModuleDefinition
}