mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
TypeScript: add test case with mixed rescanned tokens
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
| greaterThanTS.ts:8 | console . log ( x >= 1 ) ; |
|
||||
| greaterThanTS.ts:9 | console . log ( x >= 1 ) ; |
|
||||
| greaterThanTS.ts:10 | console . log ( x >= 1 ) ; |
|
||||
| mixed.ts:2 | console . log ( x >= 1 ) ; |
|
||||
| mixed.ts:3 | console . log ( `${ /r/g >= 1 }` ) ; |
|
||||
| mixed.ts:4 | console . log ( /r/g ) ; |
|
||||
| mixed.ts:5 | console . log ( `${ 1 }${ 1 }` ) ; |
|
||||
| regexpTS.ts:2 | console . log ( /foo/g ) ; |
|
||||
| regexpTS.ts:3 | console . log ( /foo/g ) ; |
|
||||
| templateLiteralsJS.js:2 | console . log ( ` template~without~placeholders ` ) ; |
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
function f(x) {
|
||||
console.log(x >= 1);
|
||||
console.log(`${/r/g >= 1}`);
|
||||
console.log( /r/g);
|
||||
console.log( `${1}${1}`);
|
||||
}
|
||||
Reference in New Issue
Block a user