File tree Expand file tree Collapse file tree 12 files changed +25
-0
lines changed
javascript/ql/test/query-tests/Diagnostics Expand file tree Collapse file tree 12 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ | bad1.js:1:7:1:7 | Error: Unexpected token | Extraction failed in bad1.js with error Error: Unexpected token | 2 |
2+ | bad2.ts:1:11:1:11 | Error: Expression expected. | Extraction failed in bad2.ts with error Error: Expression expected. | 2 |
3+ | bad2.ts:1:13:1:13 | Error: Expression expected. | Extraction failed in bad2.ts with error Error: Expression expected. | 2 |
4+ | bad3.html:2:11:2:11 | Error: Unexpected token | Extraction failed in bad3.html with error Error: Unexpected token | 2 |
Original file line number Diff line number Diff line change 1+ Diagnostics/ExtractionErrors.ql
Original file line number Diff line number Diff line change 1+ | contains-template.js:0:0:0:0 | contains-template.js | |
2+ | good1.js:0:0:0:0 | good1.js | |
3+ | good2.ts:0:0:0:0 | good2.ts | |
4+ | good3.html:0:0:0:0 | good3.html | |
Original file line number Diff line number Diff line change 1+ Diagnostics/SuccessfullyExtractedFiles.ql
Original file line number Diff line number Diff line change 1+ let x x x ;
Original file line number Diff line number Diff line change 1+ const z = ??;
Original file line number Diff line number Diff line change 1+ < script >
2+ let q q q q ; // error
3+ </ script >
Original file line number Diff line number Diff line change 1+ const obj = {
2+ // Template where we can't parse `x x x` but surrounding file still OK
3+ template : '<b [foo]="x x x"></a>'
4+ } ;
Original file line number Diff line number Diff line change 1+ let x = 123 ;
Original file line number Diff line number Diff line change 1+ const y : string = "dfg" ;
You can’t perform that action at this time.
0 commit comments