diff options
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index 45212b3..e5904c6 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -101,6 +101,18 @@ var AST = { this.value = bool === 'true'; }, + UndefinedLiteral: function(locInfo) { + this.loc = locInfo; + this.type = 'UndefinedLiteral'; + this.original = this.value = undefined; + }, + + NullLiteral: function(locInfo) { + this.loc = locInfo; + this.type = 'NullLiteral'; + this.original = this.value = null; + }, + Hash: function(pairs, locInfo) { this.loc = locInfo; this.type = 'Hash'; |