mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
JS: Add HTML file example
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
classDeclaration
|
||||
| test.vue:3:18:5:3 | class M ... er;\\n } |
|
||||
exprType
|
||||
| htmlfile.html:4:22:4:24 | foo | () => void |
|
||||
| htmlfile.html:4:22:4:24 | foo | () => void |
|
||||
| htmlfile.html:4:33:4:41 | "./other" | any |
|
||||
| htmlfile.html:5:17:5:22 | result | number[] |
|
||||
| htmlfile.html:5:26:5:28 | foo | () => void |
|
||||
| htmlfile.html:5:26:5:30 | foo() | void |
|
||||
| htmlfile.html:5:26:5:42 | foo() as number[] | number[] |
|
||||
| other.ts:1:8:1:16 | Component | typeof default in library-tests/TypeScript/EmbeddedInScript/test.vue |
|
||||
| other.ts:1:23:1:34 | "./test.vue" | any |
|
||||
| other.ts:3:1:3:15 | new Component() | MyComponent |
|
||||
@@ -14,5 +21,6 @@ symbols
|
||||
| other.ts:1:1:6:0 | <toplevel> | library-tests/TypeScript/EmbeddedInScript/other.ts |
|
||||
| test.vue:2:3:6:0 | <toplevel> | library-tests/TypeScript/EmbeddedInScript/test.vue |
|
||||
importTarget
|
||||
| htmlfile.html:4:13:4:42 | import ... other"; | other.ts:1:1:6:0 | <toplevel> |
|
||||
| other.ts:1:1:1:35 | import ... t.vue"; | test.vue:2:3:6:0 | <toplevel> |
|
||||
| test.vue:2:3:2:35 | import ... other"; | other.ts:1:1:6:0 | <toplevel> |
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<script type="module" language="typescript">
|
||||
import { foo } from "./other";
|
||||
let result = foo() as number[];
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user