monkberry-parser
Advanced tools
Comparing version 3.6.1 to 3.7.0
{ | ||
"name": "monkberry-parser", | ||
"version": "3.6.1", | ||
"version": "3.7.0", | ||
"description": "Monkberry Parser", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -102,7 +102,7 @@ /* Helper methods */ | ||
function IfStatementNode(test, then, _else, loc) { | ||
function IfStatementNode(cond, then, otherwise, loc) { | ||
this.type = "IfStatement"; | ||
this.test = test; | ||
this.cond = cond; | ||
this.then = then; | ||
this._else = _else; | ||
this.otherwise = otherwise; | ||
this.loc = loc; | ||
@@ -119,2 +119,9 @@ } | ||
function BlockStatementNode(name, body, loc) { | ||
this.type = "BlockStatement"; | ||
this.name = name; | ||
this.body = body; | ||
this.loc = loc; | ||
} | ||
function UnsafeStatementNode(html, loc) { | ||
@@ -255,2 +262,3 @@ this.type = "UnsafeStatement"; | ||
parser.ast.ForStatementNode = ForStatementNode; | ||
parser.ast.BlockStatementNode = BlockStatementNode; | ||
parser.ast.UnsafeStatementNode = UnsafeStatementNode; | ||
@@ -257,0 +265,0 @@ parser.ast.FilterExpressionNode = FilterExpressionNode; |
Sorry, the diff of this file is too big to display
116652
1802