Skip to content

Commit 40b6c85

Browse files
authored
Merge pull request github#5972 from erik-krogh/ts43
Approved by esbena
2 parents 87268d5 + 3bda1f2 commit 40b6c85

File tree

12 files changed

+710
-37
lines changed

12 files changed

+710
-37
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lgtm,codescanning
2+
* TypeScript 4.3 is now supported.

javascript/extractor/lib/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "typescript-parser-wrapper",
33
"private": true,
44
"dependencies": {
5-
"typescript": "4.2.2"
5+
"typescript": "4.3.2"
66
},
77
"scripts": {
88
"build": "tsc --project tsconfig.json",

javascript/extractor/lib/typescript/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
version "12.7.11"
77
resolved node-12.7.11.tgz#be879b52031cfb5d295b047f5462d8ef1a716446
88

9-
typescript@4.2.2:
10-
version "4.2.2"
11-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.2.tgz#1450f020618f872db0ea17317d16d8da8ddb8c4c"
12-
integrity sha512-tbb+NVrLfnsJy3M59lsDgrzWIflR4d4TIUjz+heUnHZwdF7YsrMTKoRERiIvI2lvBG95dfpLxB21WZhys1bgaQ==
9+
typescript@4.3.2:
10+
version "4.3.2"
11+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805"
12+
integrity sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==

javascript/extractor/src/com/semmle/js/extractor/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class Main {
4343
* A version identifier that should be updated every time the extractor changes in such a way that
4444
* it may produce different tuples for the same file under the same {@link ExtractorConfig}.
4545
*/
46-
public static final String EXTRACTOR_VERSION = "2021-03-19";
46+
public static final String EXTRACTOR_VERSION = "2021-05-31";
4747

4848
public static final Pattern NEWLINE = Pattern.compile("\n");
4949

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
| tst.ts:55:3:55:27 | obj.ove ... od(num) | (x: number): number | 0 |
55
| tst.ts:56:3:56:27 | obj.ove ... od(str) | (x: string): string | 1 |
66
| tst.ts:57:3:57:26 | obj.ove ... hod([]) | (x: any): any | 2 |
7-
| tst.ts:58:3:58:36 | obj.gen ... ([num]) | (x: number[]): T | 0 |
8-
| tst.ts:59:3:59:39 | obj.gen ... : str}) | (x: Box<string>): T | 1 |
7+
| tst.ts:58:3:58:36 | obj.gen ... ([num]) | (x: number[]): number | 0 |
8+
| tst.ts:59:3:59:39 | obj.gen ... : str}) | (x: Box<string>): string | 1 |
99
| tst.ts:60:3:60:34 | obj.gen ... od(num) | (x: any): any | 2 |
1010
| tst.ts:64:3:64:23 | obj.sim ... od(str) | (x: string): number | 0 |
1111
| tst.ts:65:3:65:24 | obj.gen ... od(str) | (x: string): string | 0 |
1212
| tst.ts:66:3:66:24 | obj.gen ... od(num) | (x: number): number | 0 |
1313
| tst.ts:67:3:67:27 | obj.ove ... od(num) | (x: number): number | 0 |
1414
| tst.ts:68:3:68:27 | obj.ove ... od(str) | (x: string): string | 1 |
15-
| tst.ts:69:3:69:36 | obj.gen ... ([num]) | (x: number[]): T | 0 |
16-
| tst.ts:70:3:70:39 | obj.gen ... : str}) | (x: Box<string>): T | 1 |
15+
| tst.ts:69:3:69:36 | obj.gen ... ([num]) | (x: number[]): number | 0 |
16+
| tst.ts:70:3:70:39 | obj.gen ... : str}) | (x: Box<string>): string | 1 |
1717
| tst.ts:74:3:74:28 | new Sim ... or(str) | new (x: string): SimpleConstructor | 0 |
1818
| tst.ts:75:3:75:29 | new Gen ... or(str) | new (x: string): GenericConstructor<string> | 0 |
1919
| tst.ts:76:3:76:29 | new Gen ... or(num) | new (x: number): GenericConstructor<number> | 0 |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| Foo | boolean |
2+
| typeof Foo in global scope | string |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import javascript
2+
3+
query Type stringIndexType(Type t) { result = t.getStringIndexType() }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// static index signature
2+
class Foo {
3+
static hello = "world";
4+
static [n: string]: string;
5+
[n: string]: boolean;
6+
}
7+
Foo["whatever"] = "foo";
8+
new Foo()["something"] = true;

javascript/ql/test/library-tests/TypeScript/Types/printAst.expected

Lines changed: 535 additions & 26 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)