add initial support for expressions in TypeScript

This commit is contained in:
Erik Krogh Kristensen
2019-10-22 15:46:54 +02:00
parent 4b27b2ac05
commit 834b572f45
17 changed files with 2399 additions and 10 deletions

View File

@@ -0,0 +1 @@
| tst.ts:7:9:7:19 | import.meta |

View File

@@ -0,0 +1,5 @@
import javascript
from Expr prop
where prop instanceof ImportMetaExpr
select prop

View File

@@ -0,0 +1,3 @@
{
}

View File

@@ -0,0 +1,7 @@
interface ImportMeta {
wellKnownProperty: { a: number, b: string, c: boolean };
}
var a = import.meta.wellKnownProperty.a;