abstract-syntax-tree
Advanced tools
Comparing version 2.8.4 to 2.8.5
@@ -32,2 +32,3 @@ const find = require('./src/find') | ||
const SourceLocation = require('./src/nodes/SourceLocation') | ||
const IfStatement = require('./src/nodes/IfStatement') | ||
@@ -211,3 +212,4 @@ class AbstractSyntaxTree { | ||
AbstractSyntaxTree.SourceLocation = SourceLocation | ||
AbstractSyntaxTree.IfStatement = IfStatement | ||
module.exports = AbstractSyntaxTree |
{ | ||
"name": "abstract-syntax-tree", | ||
"version": "2.8.4", | ||
"version": "2.8.5", | ||
"description": "abstract syntax tree", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const Statement = require('./Statement') | ||
class BlockStatement extends Statement { | ||
constructor () { | ||
constructor (options) { | ||
super() | ||
this.type = 'BlockStatement' | ||
this.body = [] | ||
Object.assign(this, options) | ||
} | ||
@@ -9,0 +10,0 @@ } |
59932
49
770