Skip to content

Commit b05942b

Browse files
committed
JS: Add HTML file example
1 parent 3938856 commit b05942b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

javascript/ql/test/library-tests/TypeScript/EmbeddedInScript/Test.expected

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
classDeclaration
22
| test.vue:3:18:5:3 | class M ... er;\\n } |
33
exprType
4+
| htmlfile.html:4:22:4:24 | foo | () => void |
5+
| htmlfile.html:4:22:4:24 | foo | () => void |
6+
| htmlfile.html:4:33:4:41 | "./other" | any |
7+
| htmlfile.html:5:17:5:22 | result | number[] |
8+
| htmlfile.html:5:26:5:28 | foo | () => void |
9+
| htmlfile.html:5:26:5:30 | foo() | void |
10+
| htmlfile.html:5:26:5:42 | foo() as number[] | number[] |
411
| other.ts:1:8:1:16 | Component | typeof default in library-tests/TypeScript/EmbeddedInScript/test.vue |
512
| other.ts:1:23:1:34 | "./test.vue" | any |
613
| other.ts:3:1:3:15 | new Component() | MyComponent |
@@ -14,5 +21,6 @@ symbols
1421
| other.ts:1:1:6:0 | <toplevel> | library-tests/TypeScript/EmbeddedInScript/other.ts |
1522
| test.vue:2:3:6:0 | <toplevel> | library-tests/TypeScript/EmbeddedInScript/test.vue |
1623
importTarget
24+
| htmlfile.html:4:13:4:42 | import ... other"; | other.ts:1:1:6:0 | <toplevel> |
1725
| other.ts:1:1:1:35 | import ... t.vue"; | test.vue:2:3:6:0 | <toplevel> |
1826
| test.vue:2:3:2:35 | import ... other"; | other.ts:1:1:6:0 | <toplevel> |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<html>
2+
<body>
3+
<script type="module" language="typescript">
4+
import { foo } from "./other";
5+
let result = foo() as number[];
6+
</script>
7+
</body>
8+
</html>

0 commit comments

Comments
 (0)