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 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" ,
Original file line number Diff line number Diff line change 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 ==
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 |
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