monkberry-parser
Advanced tools
Comparing version 3.2.1 to 3.3.0
{ | ||
"name": "monkberry-parser", | ||
"version": "3.2.1", | ||
"version": "3.3.0", | ||
"description": "Monkberry Parser", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -63,2 +63,8 @@ /* Helper methods */ | ||
function CommentNode(comment, loc) { | ||
this.type = "Comment"; | ||
this.comment = comment; | ||
this.loc = loc; | ||
} | ||
function ElementNode(name, attributes, body, loc) { | ||
@@ -79,2 +85,8 @@ this.type = "Element"; | ||
function SpreadAttributeNode(identifier, loc) { | ||
this.type = "SpreadAttribute"; | ||
this.identifier = identifier; | ||
this.loc = loc; | ||
} | ||
function ExpressionStatementNode(expression, loc) { | ||
@@ -86,2 +98,8 @@ this.type = 'ExpressionStatement'; | ||
function ImportStatementNode(path, loc) { | ||
this.type = 'ImportStatement'; | ||
this.path = path; | ||
this.loc = loc; | ||
} | ||
function IfStatementNode(test, then, _else, loc) { | ||
@@ -224,5 +242,8 @@ this.type = "IfStatement"; | ||
parser.ast.TextNode = TextNode; | ||
parser.ast.CommentNode = CommentNode; | ||
parser.ast.ElementNode = ElementNode; | ||
parser.ast.AttributeNode = AttributeNode; | ||
parser.ast.SpreadAttributeNode = SpreadAttributeNode; | ||
parser.ast.ExpressionStatementNode = ExpressionStatementNode; | ||
parser.ast.ImportStatementNode = ImportStatementNode; | ||
parser.ast.IfStatementNode = IfStatementNode; | ||
@@ -229,0 +250,0 @@ parser.ast.ForStatementNode = ForStatementNode; |
Sorry, the diff of this file is too big to display
113758
1753