Skip to content

Commit e79eecb

Browse files
committed
update toString() of API::Node, and update expected output that depends on the former
1 parent c5fb19c commit e79eecb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ module API {
317317
exists(Node pred, Label::ApiLabel lbl, string predpath |
318318
Impl::edge(pred, lbl, this) and
319319
predpath = pred.getAPath(length - 1) and
320-
exists(string space | if length = 1 then space = "" else space = " " |
321-
result = "(" + lbl + space + predpath + ")" and
320+
exists(string dot | if length = 1 then dot = "" else dot = "." |
321+
result = predpath + dot + lbl and
322322
// avoid producing strings longer than 1MB
323323
result.length() < 1000 * 1000
324324
)

javascript/ql/test/library-tests/TypeScript/HasUnderlyingType/HasUnderlyingType.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
underlyingTypeNode
2-
| foo | Bar | foo.ts:3:1:5:1 | use (instance (member Bar (member exports (module foo)))) |
3-
| foo | Bar | foo.ts:3:12:3:12 | use (instance (member Bar (member exports (module foo)))) |
2+
| foo | Bar | foo.ts:3:1:5:1 | use moduleImport("foo").getMember("exports").getMember("Bar").getInstance() |
3+
| foo | Bar | foo.ts:3:12:3:12 | use moduleImport("foo").getMember("exports").getMember("Bar").getInstance() |
44
#select
55
| foo.ts:3:12:3:12 | x | foo.Bar in unknown scope |
66
| foo.ts:4:10:4:10 | x | foo.Bar in unknown scope |

0 commit comments

Comments
 (0)