JS: Check isPrivateLike in isExported instead

This commit is contained in:
Asger F
2024-02-12 11:39:29 +01:00
parent 8a2485a22f
commit 6d01ba67f7

View File

@@ -49,7 +49,8 @@ private predicate isExported(API::Node node) {
or
exists(API::Node pred |
isExported(pred) and
memberEdge(pred, node)
memberEdge(pred, node) and
not isPrivateLike(node)
)
}
@@ -82,7 +83,6 @@ private API::Node getASuccessor(API::Node node, string name, int badness) {
isExported(node) and
exists(string member |
result = node.getMember(member) and
not isPrivateLike(node) and
if member = "default"
then
if defaultExportCanBeInterpretedAsNamespaceExport(node)