mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
TypeScript: test case for whitespace before a rescanned token
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
| regexpTS.ts:2 | console . log ( /foo/g ) ; |
|
||||
| regexpTS.ts:3 | console . log ( /foo/g ) ; |
|
||||
| templateLiteralsJS.js:2 | console . log ( ` template~without~placeholders ` ) ; |
|
||||
| templateLiteralsJS.js:3 | console . log ( ` template~with~placeholder~ ${ x } . ` ) ; |
|
||||
| templateLiteralsTS.ts:2 | console . log ( `template~without~placeholders` ) ; |
|
||||
| templateLiteralsTS.ts:3 | console . log ( `template~with~placeholder~${ x }.` ) ; |
|
||||
| templateLiteralsTS.ts:4 | console . log ( `template~with~placeholder~${ x }.` ) ; |
|
||||
| templateLiteralsTS.ts:5 | console . log ( `template~with~placeholder~${ x }.` ) ; |
|
||||
| templateLiteralsTS.ts:6 | console . log ( `template~with~placeholder~${ x }.` ) ; |
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
function f() {
|
||||
console.log(/foo/g);
|
||||
console.log( /foo/g);
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
function f(x) {
|
||||
console.log(`template without placeholders`);
|
||||
console.log(`template with placeholder ${x}.`);
|
||||
console.log(`template with placeholder ${x }.`);
|
||||
console.log(`template with placeholder ${ x}.`);
|
||||
console.log(`template with placeholder ${ x }.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user