fix(parser): handle empty strings

This commit is contained in:
vsavkin
2014-11-25 18:38:28 -08:00
parent 6f889e3094
commit a3d9f0fead
3 changed files with 19 additions and 2 deletions

View File

@ -18,6 +18,16 @@ export class AST {
}
}
export class EmptyExpr extends AST {
eval(context) {
return null;
}
visit(visitor, args) {
//do nothing
}
}
export class ImplicitReceiver extends AST {
eval(context) {
return context;