File tree Expand file tree Collapse file tree
javascript/ql/test/library-tests/TypeScript/NestedLiteral Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ | tst.ts:2:3:2:6 | name | string |
2+ | tst.ts:3:3:3:10 | children | T[] |
3+ | tst.ts:6:5:6:5 | x | T |
4+ | tst.ts:6:12:17:1 | {\\n nam ... }\\n ]\\n} | { name: string; children: ({ name: string; } \| ... |
5+ | tst.ts:7:3:7:6 | name | string |
6+ | tst.ts:7:9:7:11 | 'x' | "x" |
7+ | tst.ts:8:3:8:10 | children | ({ name: string; } \| { name: string; children: ... |
8+ | tst.ts:8:13:16:3 | [\\n { ... }\\n ] | ({ name: string; } \| { name: string; children: ... |
9+ | tst.ts:9:5:9:18 | { name: 'x1' } | { name: string; } |
10+ | tst.ts:9:7:9:10 | name | string |
11+ | tst.ts:9:13:9:16 | 'x1' | "x1" |
12+ | tst.ts:10:5:15:5 | {\\n ... ]\\n } | { name: string; children: { name: string; }[]; } |
13+ | tst.ts:11:7:11:10 | name | string |
14+ | tst.ts:11:13:11:16 | 'x2' | "x2" |
15+ | tst.ts:12:7:12:14 | children | { name: string; }[] |
16+ | tst.ts:12:17:14:7 | [\\n ... ] | { name: string; }[] |
17+ | tst.ts:13:9:13:22 | { name: 'x3' } | { name: string; } |
18+ | tst.ts:13:11:13:14 | name | string |
19+ | tst.ts:13:17:13:20 | 'x3' | "x3" |
Original file line number Diff line number Diff line change 1+ import javascript
2+
3+ from Expr e
4+ select e , e .getType ( )
Original file line number Diff line number Diff line change 1+ { "include" : [" ." ] }
Original file line number Diff line number Diff line change 1+ interface T {
2+ name : string ;
3+ children ?: T [ ] ;
4+ }
5+
6+ let context : T = {
7+ name : 'x' ,
8+ children : [
9+ { name : 'x1' } ,
10+ {
11+ name : 'x2' ,
12+ children : [
13+ { name : 'x3' }
14+ ]
15+ }
16+ ]
17+ }
18+
19+ let nocontext = {
20+ name : 'x' ,
21+ children : [
22+ { name : 'x1' } ,
23+ {
24+ name : 'x2' ,
25+ children : [
26+ { name : 'x3' }
27+ ]
28+ }
29+ ]
30+ }
You can’t perform that action at this time.
0 commit comments