abstract-syntax-tree
Advanced tools
Comparing version 2.9.3 to 2.9.4
{ | ||
"name": "abstract-syntax-tree", | ||
"version": "2.9.3", | ||
"version": "2.9.4", | ||
"description": "abstract syntax tree", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const Statement = require('./Statement') | ||
class EmptyStatement extends Statement { | ||
constructor () { | ||
constructor (options) { | ||
super() | ||
this.type = 'EmptyStatement' | ||
Object.assign(this, options) | ||
} | ||
@@ -8,0 +9,0 @@ } |
const Statement = require('./Statement') | ||
class ExpressionStatement extends Statement { | ||
constructor () { | ||
constructor (options) { | ||
super() | ||
this.type = 'ExpressionStatement' | ||
this.expression = null | ||
Object.assign(this, options) | ||
} | ||
@@ -9,0 +10,0 @@ } |
class Function { | ||
constructor () { | ||
constructor (options) { | ||
this.type = 'Function' | ||
this.generator = false | ||
Object.assign(this, options) | ||
} | ||
@@ -6,0 +7,0 @@ } |
class Node { | ||
constructor () { | ||
constructor (options) { | ||
this.type = 'Node' | ||
this.loc = null | ||
Object.assign(this, options) | ||
} | ||
@@ -6,0 +7,0 @@ } |
class Program { | ||
constructor () { | ||
constructor (options) { | ||
this.type = 'Program' | ||
this.sourceType = 'script' | ||
this.body = [] | ||
Object.assign(this, options) | ||
} | ||
@@ -7,0 +8,0 @@ } |
class SourceLocation { | ||
constructor () { | ||
constructor (options) { | ||
this.type = 'SourceLocation' | ||
@@ -7,2 +7,3 @@ this.source = null | ||
this.end = null | ||
Object.assign(this, options) | ||
} | ||
@@ -9,0 +10,0 @@ } |
72718
1377