Add undefined and null literal support

This adds the UndefinedLiteral and NullLiteral to AST.

Fixes #990
This commit is contained in:
kpdecker
2015-04-07 23:37:38 -05:00
parent 81a4d50955
commit 2d149e7797
12 changed files with 65 additions and 2 deletions
+8
View File
@@ -164,6 +164,14 @@ interface NumberLiteral <: Literal {
value: number;
original: number;
}
interface UndefinedLiteral <: Literal {
type: "UndefinedLiteral";
}
interface NullLiteral <: Literal {
type: "NullLiteral";
}
```