We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4585345 commit 06e44aeCopy full SHA for 06e44ae
src/tstool/dfbscan_extractor/Javascript/Javascript_NPD_extractor.py
@@ -61,6 +61,10 @@ def is_global_source(self, global_declaration_node: Tree) -> bool:
61
sibling = global_declaration_node.next_sibling
62
63
while sibling is not None:
64
+ if len(sibling.children) == 0:
65
+ sibling = sibling.next_sibling
66
+ continue
67
+
68
expr = sibling.child(0)
69
70
if self.is_expression_delete(expr):
@@ -72,7 +76,7 @@ def is_global_source(self, global_declaration_node: Tree) -> bool:
72
76
if self.is_expression_nullable(expr) and expr.child(0).text == global_name:
73
77
return True
74
78
75
- return False
79
80
return False
81
82
def is_global_sink(self, global_declarator_node: Tree) -> bool:
0 commit comments