File tree Expand file tree Collapse file tree 12 files changed +710
-37
lines changed
ql/test/library-tests/TypeScript Expand file tree Collapse file tree 12 files changed +710
-37
lines changed Original file line number Diff line number Diff line change
1
+ lgtm,codescanning
2
+ * TypeScript 4.3 is now supported.
Original file line number Diff line number Diff line change 2
2
"name" : " typescript-parser-wrapper" ,
3
3
"private" : true ,
4
4
"dependencies" : {
5
- "typescript" : " 4.2 .2"
5
+ "typescript" : " 4.3 .2"
6
6
},
7
7
"scripts" : {
8
8
"build" : " tsc --project tsconfig.json" ,
Original file line number Diff line number Diff line change 6
6
version "12.7.11"
7
7
resolved node-12.7.11.tgz#be879b52031cfb5d295b047f5462d8ef1a716446
8
8
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 ==
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public class Main {
43
43
* A version identifier that should be updated every time the extractor changes in such a way that
44
44
* it may produce different tuples for the same file under the same {@link ExtractorConfig}.
45
45
*/
46
- public static final String EXTRACTOR_VERSION = "2021-03-19 " ;
46
+ public static final String EXTRACTOR_VERSION = "2021-05-31 " ;
47
47
48
48
public static final Pattern NEWLINE = Pattern .compile ("\n " );
49
49
Original file line number Diff line number Diff line change 4
4
| tst.ts:55:3:55:27 | obj.ove ... od(num) | (x: number): number | 0 |
5
5
| tst.ts:56:3:56:27 | obj.ove ... od(str) | (x: string): string | 1 |
6
6
| 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 |
9
9
| tst.ts:60:3:60:34 | obj.gen ... od(num) | (x: any): any | 2 |
10
10
| tst.ts:64:3:64:23 | obj.sim ... od(str) | (x: string): number | 0 |
11
11
| tst.ts:65:3:65:24 | obj.gen ... od(str) | (x: string): string | 0 |
12
12
| tst.ts:66:3:66:24 | obj.gen ... od(num) | (x: number): number | 0 |
13
13
| tst.ts:67:3:67:27 | obj.ove ... od(num) | (x: number): number | 0 |
14
14
| 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 |
17
17
| tst.ts:74:3:74:28 | new Sim ... or(str) | new (x: string): SimpleConstructor | 0 |
18
18
| tst.ts:75:3:75:29 | new Gen ... or(str) | new (x: string): GenericConstructor<string> | 0 |
19
19
| tst.ts:76:3:76:29 | new Gen ... or(num) | new (x: number): GenericConstructor<number> | 0 |
Original file line number Diff line number Diff line change
1
+ | Foo | boolean |
2
+ | typeof Foo in global scope | string |
Original file line number Diff line number Diff line change
1
+ import javascript
2
+
3
+ query Type stringIndexType ( Type t ) { result = t .getStringIndexType ( ) }
Original file line number Diff line number Diff line change
1
+ {}
Original file line number Diff line number Diff line change
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 ;
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments