Skip to content

Commit cc1204a

Browse files
committed
JS: remove isAmbient() check
1 parent 1eb0ca4 commit cc1204a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

  • javascript/ql/src/semmle/javascript/dataflow

javascript/ql/src/semmle/javascript/dataflow/Nodes.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,6 @@ module ClassNode {
598598
exists(MethodDeclaration method |
599599
method = astNode.getMethod(name) and
600600
not method.isStatic() and
601-
not method.isAmbient() and
602601
not method instanceof ConstructorDeclaration and
603602
result = method.getBody().flow()
604603
)
@@ -608,7 +607,6 @@ module ClassNode {
608607
exists(MethodDeclaration method |
609608
method = astNode.getAMethod() and
610609
not method.isStatic() and
611-
not method.isAmbient() and
612610
not method instanceof ConstructorDeclaration and
613611
result = method.getBody().flow()
614612
)
@@ -618,7 +616,6 @@ module ClassNode {
618616
exists(MethodDeclaration method |
619617
method = astNode.getMethod(name) and
620618
method.isStatic() and
621-
not method.isAmbient() and
622619
result = method.getBody().flow()
623620
)
624621
or
@@ -629,7 +626,6 @@ module ClassNode {
629626
exists(MethodDeclaration method |
630627
method = astNode.(ClassDefinition).getAMethod() and
631628
method.isStatic() and
632-
not method.isAmbient() and
633629
result = method.getBody().flow()
634630
)
635631
}

0 commit comments

Comments
 (0)