Socket
Socket
Sign inDemoInstall

cst

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cst - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

lib/elements/types/utils/acceptArgumentList.js

4

lib/elements/Element.js

@@ -42,3 +42,2 @@ 'use strict';

*/
var Element = function () {

@@ -49,3 +48,2 @@ /**

*/
function Element(type, children) {

@@ -799,3 +797,3 @@ (0, _classCallCheck3.default)(this, Element);

(0, _classCallCheck3.default)(this, ConcreteElement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ConcreteElement).call(this, 'ConcreteElement', children));
return (0, _possibleConstructorReturn3.default)(this, (ConcreteElement.__proto__ || (0, _getPrototypeOf2.default)(ConcreteElement)).call(this, 'ConcreteElement', children));
}

@@ -802,0 +800,0 @@

@@ -30,3 +30,2 @@ 'use strict';

*/
var ElementAssert = function () {

@@ -36,3 +35,2 @@ /**

*/
function ElementAssert(elements) {

@@ -60,9 +58,7 @@ (0, _classCallCheck3.default)(this, ElementAssert);

value: function assertToken(tokenType, tokenValue) {
var _ref = this.currentElement || {};
var _ref = this.currentElement || {},
isToken = _ref.isToken,
type = _ref.type,
value = _ref.value;
var isToken = _ref.isToken;
var type = _ref.type;
var value = _ref.value;
if (!isToken) {

@@ -97,8 +93,6 @@ throw new Error('Token expected but "' + type + '" found');

value: function assertNode(nodeType) {
var _ref2 = this.currentElement || {};
var _ref2 = this.currentElement || {},
isNode = _ref2.isNode,
type = _ref2.type;
var isNode = _ref2.isNode;
var type = _ref2.type;
if (!isNode) {

@@ -123,8 +117,6 @@ throw new Error('Node expected but "' + type + '" found');

value: function assertOneOfNode(nodeTypes) {
var _ref3 = this.currentElement || {};
var _ref3 = this.currentElement || {},
isNode = _ref3.isNode,
type = _ref3.type;
var isNode = _ref3.isNode;
var type = _ref3.type;
if (!isNode) {

@@ -146,8 +138,6 @@ throw new Error('Node expected but "' + type + '" found');

value: function assertExpression() {
var _ref4 = this.currentElement || {};
var _ref4 = this.currentElement || {},
isExpression = _ref4.isExpression,
type = _ref4.type;
var isExpression = _ref4.isExpression;
var type = _ref4.type;
if (!isExpression) {

@@ -165,8 +155,6 @@ throw new Error('Expression expected but "' + type + '" found');

value: function assertAssignable() {
var _ref5 = this.currentElement || {};
var _ref5 = this.currentElement || {},
isAssignable = _ref5.isAssignable,
type = _ref5.type;
var isAssignable = _ref5.isAssignable;
var type = _ref5.type;
if (!isAssignable) {

@@ -184,8 +172,6 @@ throw new Error('Expected assignable expression but ' + type + ' found.');

value: function assertPattern() {
var _ref6 = this.currentElement || {};
var _ref6 = this.currentElement || {},
isPattern = _ref6.isPattern,
type = _ref6.type;
var isPattern = _ref6.isPattern;
var type = _ref6.type;
if (!isPattern) {

@@ -203,8 +189,6 @@ throw new Error('Expected pattern but ' + type + ' found.');

value: function assertStatement() {
var _ref7 = this.currentElement || {};
var _ref7 = this.currentElement || {},
isStatement = _ref7.isStatement,
type = _ref7.type;
var isStatement = _ref7.isStatement;
var type = _ref7.type;
if (!isStatement) {

@@ -222,8 +206,6 @@ throw new Error('Statement expected but "' + type + '" found');

value: function assertModuleSpecifier() {
var _ref8 = this.currentElement || {};
var _ref8 = this.currentElement || {},
isModuleSpecifier = _ref8.isModuleSpecifier,
type = _ref8.type;
var isModuleSpecifier = _ref8.isModuleSpecifier;
var type = _ref8.type;
if (!isModuleSpecifier) {

@@ -242,6 +224,5 @@ throw new Error('ModuleSpecifier expected but "' + type + '" found');

if (this.currentElement !== undefined) {
var _ref9 = this.currentElement || {};
var _ref9 = this.currentElement || {},
type = _ref9.type;
var type = _ref9.type;
throw new Error('Expected end of node list but "' + type + '" found');

@@ -263,9 +244,7 @@ }

value: function isToken(tokenType, tokenValue) {
var _ref10 = this.currentElement || {};
var _ref10 = this.currentElement || {},
isToken = _ref10.isToken,
type = _ref10.type,
value = _ref10.value;
var isToken = _ref10.isToken;
var type = _ref10.type;
var value = _ref10.value;
if (!isToken || arguments.length > 0 && type !== tokenType) {

@@ -296,8 +275,6 @@ return false;

value: function isNode(nodeType) {
var _ref11 = this.currentElement || {};
var _ref11 = this.currentElement || {},
isNode = _ref11.isNode,
type = _ref11.type;
var isNode = _ref11.isNode;
var type = _ref11.type;
return !(!isNode || arguments.length > 0 && type !== nodeType);

@@ -315,7 +292,5 @@ }

value: function isStatement() {
var _ref12 = this.currentElement || {};
var _ref12 = this.currentElement || {},
isStatement = _ref12.isStatement;
var isStatement = _ref12.isStatement;
return isStatement;

@@ -557,6 +532,5 @@ }

while (true) {
var _ref13 = this.currentElement || {};
var _ref13 = this.currentElement || {},
isCode = _ref13.isCode;
var isCode = _ref13.isCode;
if (isCode !== false) {

@@ -577,6 +551,5 @@ break;

while (true) {
var _ref14 = this.currentElement || {};
var _ref14 = this.currentElement || {},
isCode = _ref14.isCode;
var isCode = _ref14.isCode;
if (isCode !== false) {

@@ -583,0 +556,0 @@ break;

@@ -36,3 +36,2 @@ 'use strict';

*/
var Expression = function (_Node) {

@@ -44,3 +43,3 @@ (0, _inherits3.default)(Expression, _Node);

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Expression).call(this, type, children));
var _this = (0, _possibleConstructorReturn3.default)(this, (Expression.__proto__ || (0, _getPrototypeOf2.default)(Expression)).call(this, type, children));

@@ -47,0 +46,0 @@ _this.isExpression = true;

@@ -35,3 +35,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Fragment).call(this, 'Fragment', children));
var _this = (0, _possibleConstructorReturn3.default)(this, (Fragment.__proto__ || (0, _getPrototypeOf2.default)(Fragment)).call(this, 'Fragment', children));

@@ -38,0 +38,0 @@ _this.isFragment = true;

@@ -34,3 +34,2 @@ 'use strict';

*/
var ModuleDeclaration = function (_Statement) {

@@ -42,3 +41,3 @@ (0, _inherits3.default)(ModuleDeclaration, _Statement);

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ModuleDeclaration).call(this, type, children));
var _this = (0, _possibleConstructorReturn3.default)(this, (ModuleDeclaration.__proto__ || (0, _getPrototypeOf2.default)(ModuleDeclaration)).call(this, type, children));

@@ -45,0 +44,0 @@ _this.isModuleDeclaration = true;

@@ -34,3 +34,2 @@ 'use strict';

*/
var ModuleSpecifier = function (_Node) {

@@ -42,3 +41,3 @@ (0, _inherits3.default)(ModuleSpecifier, _Node);

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ModuleSpecifier).call(this, type, children));
var _this = (0, _possibleConstructorReturn3.default)(this, (ModuleSpecifier.__proto__ || (0, _getPrototypeOf2.default)(ModuleSpecifier)).call(this, type, children));

@@ -45,0 +44,0 @@ _this.isModuleSpecifier = true;

@@ -34,3 +34,2 @@ 'use strict';

*/
var Node = function (_Element) {

@@ -42,3 +41,3 @@ (0, _inherits3.default)(Node, _Element);

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Node).call(this, type, children));
var _this = (0, _possibleConstructorReturn3.default)(this, (Node.__proto__ || (0, _getPrototypeOf2.default)(Node)).call(this, type, children));

@@ -45,0 +44,0 @@ _this.isNode = true;

@@ -36,3 +36,2 @@ 'use strict';

*/
var Statement = function (_Node) {

@@ -44,3 +43,3 @@ (0, _inherits3.default)(Statement, _Node);

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Statement).call(this, type, children));
var _this = (0, _possibleConstructorReturn3.default)(this, (Statement.__proto__ || (0, _getPrototypeOf2.default)(Statement)).call(this, type, children));

@@ -47,0 +46,0 @@ _this.isStatement = true;

@@ -73,3 +73,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Token).call(this, type, []));
var _this = (0, _possibleConstructorReturn3.default)(this, (Token.__proto__ || (0, _getPrototypeOf2.default)(Token)).call(this, type, []));

@@ -76,0 +76,0 @@ if (arguments.length === 2) {

@@ -36,3 +36,2 @@ 'use strict';

*/
var ArrayExpression = function (_Expression) {

@@ -43,3 +42,3 @@ (0, _inherits3.default)(ArrayExpression, _Expression);

(0, _classCallCheck3.default)(this, ArrayExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ArrayExpression).call(this, 'ArrayExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ArrayExpression.__proto__ || (0, _getPrototypeOf2.default)(ArrayExpression)).call(this, 'ArrayExpression', childNodes));
}

@@ -46,0 +45,0 @@

@@ -39,3 +39,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ArrayPattern).call(this, 'ArrayPattern', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (ArrayPattern.__proto__ || (0, _getPrototypeOf2.default)(ArrayPattern)).call(this, 'ArrayPattern', childNodes));

@@ -42,0 +42,0 @@ _this.isPattern = true;

@@ -43,3 +43,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ArrowFunctionExpression).call(this, 'ArrowFunctionExpression', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (ArrowFunctionExpression.__proto__ || (0, _getPrototypeOf2.default)(ArrowFunctionExpression)).call(this, 'ArrowFunctionExpression', childNodes));

@@ -46,0 +46,0 @@ _this.id = null;

@@ -54,3 +54,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, AssignmentExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(AssignmentExpression).call(this, 'AssignmentExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (AssignmentExpression.__proto__ || (0, _getPrototypeOf2.default)(AssignmentExpression)).call(this, 'AssignmentExpression', childNodes));
}

@@ -57,0 +57,0 @@

@@ -39,3 +39,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(AssignmentPattern).call(this, 'AssignmentPattern', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (AssignmentPattern.__proto__ || (0, _getPrototypeOf2.default)(AssignmentPattern)).call(this, 'AssignmentPattern', childNodes));

@@ -42,0 +42,0 @@ _this.isPattern = true;

@@ -36,3 +36,2 @@ 'use strict';

// TODO: Requires an async function.

@@ -42,3 +41,3 @@

(0, _classCallCheck3.default)(this, AwaitExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(AwaitExpression).call(this, 'AwaitExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (AwaitExpression.__proto__ || (0, _getPrototypeOf2.default)(AwaitExpression)).call(this, 'AwaitExpression', childNodes));
}

@@ -45,0 +44,0 @@

@@ -61,3 +61,2 @@ 'use strict';

// TODO: Should respect operator precedence: putting "a + b" before " * b" without parens should raise an error.

@@ -67,3 +66,3 @@

(0, _classCallCheck3.default)(this, BinaryExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(BinaryExpression).call(this, 'BinaryExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (BinaryExpression.__proto__ || (0, _getPrototypeOf2.default)(BinaryExpression)).call(this, 'BinaryExpression', childNodes));
}

@@ -70,0 +69,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, BindExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(BindExpression).call(this, 'BindExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (BindExpression.__proto__ || (0, _getPrototypeOf2.default)(BindExpression)).call(this, 'BindExpression', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, BlockStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(BlockStatement).call(this, 'BlockStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (BlockStatement.__proto__ || (0, _getPrototypeOf2.default)(BlockStatement)).call(this, 'BlockStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, BooleanLiteral);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(BooleanLiteral).call(this, 'BooleanLiteral', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (BooleanLiteral.__proto__ || (0, _getPrototypeOf2.default)(BooleanLiteral)).call(this, 'BooleanLiteral', childNodes));
}

@@ -41,0 +41,0 @@

@@ -36,3 +36,2 @@ 'use strict';

// TODO: Requires a loop.

@@ -43,3 +42,3 @@ // TODO: In case of a label, requires label.

(0, _classCallCheck3.default)(this, BreakStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(BreakStatement).call(this, 'BreakStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (BreakStatement.__proto__ || (0, _getPrototypeOf2.default)(BreakStatement)).call(this, 'BreakStatement', childNodes));
}

@@ -46,0 +45,0 @@

@@ -31,2 +31,6 @@ 'use strict';

var _acceptArgumentList = require('./utils/acceptArgumentList');
var _acceptArgumentList2 = _interopRequireDefault(_acceptArgumentList);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -39,3 +43,3 @@

(0, _classCallCheck3.default)(this, CallExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(CallExpression).call(this, 'CallExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (CallExpression.__proto__ || (0, _getPrototypeOf2.default)(CallExpression)).call(this, 'CallExpression', childNodes));
}

@@ -46,30 +50,4 @@

value: function _acceptChildren(children) {
var args = [];
var callee = children.passExpressionOrSuper();
children.skipNonCode();
children.passToken('Punctuator', '(');
children.skipNonCode();
while (!children.isToken('Punctuator', ')')) {
if (children.isToken('Punctuator', ',')) {
children.moveNext();
children.skipNonCode();
children.assertToken('Punctuator', ')');
} else {
args.push(children.passExpressionOrSpreadElement());
children.skipNonCode();
if (children.isToken('Punctuator', ',')) {
children.moveNext();
children.skipNonCode();
}
}
}
children.passToken('Punctuator', ')');
children.assertEnd();
this.callee = callee;
this.arguments = args;
this.callee = children.passExpressionOrSuper();
this.arguments = (0, _acceptArgumentList2.default)(children);
}

@@ -76,0 +54,0 @@ }]);

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, CatchClause);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(CatchClause).call(this, 'CatchClause', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (CatchClause.__proto__ || (0, _getPrototypeOf2.default)(CatchClause)).call(this, 'CatchClause', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ClassBody);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ClassBody).call(this, 'ClassBody', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ClassBody.__proto__ || (0, _getPrototypeOf2.default)(ClassBody)).call(this, 'ClassBody', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ClassDeclaration);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ClassDeclaration).call(this, 'ClassDeclaration', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ClassDeclaration.__proto__ || (0, _getPrototypeOf2.default)(ClassDeclaration)).call(this, 'ClassDeclaration', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ClassExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ClassExpression).call(this, 'ClassExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ClassExpression.__proto__ || (0, _getPrototypeOf2.default)(ClassExpression)).call(this, 'ClassExpression', childNodes));
}

@@ -41,0 +41,0 @@

@@ -48,3 +48,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ClassMethod).call(this, 'ClassMethod', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (ClassMethod.__proto__ || (0, _getPrototypeOf2.default)(ClassMethod)).call(this, 'ClassMethod', childNodes));

@@ -51,0 +51,0 @@ _this.isFunction = true;

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ClassProperty);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ClassProperty).call(this, 'ClassProperty', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ClassProperty.__proto__ || (0, _getPrototypeOf2.default)(ClassProperty)).call(this, 'ClassProperty', childNodes));
}

@@ -41,0 +41,0 @@

@@ -36,3 +36,2 @@ 'use strict';

// TODO: Should respect operator precedence: putting "a + b" before " * b" without parens should raise an error.

@@ -42,3 +41,3 @@

(0, _classCallCheck3.default)(this, ConditionalExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ConditionalExpression).call(this, 'ConditionalExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ConditionalExpression.__proto__ || (0, _getPrototypeOf2.default)(ConditionalExpression)).call(this, 'ConditionalExpression', childNodes));
}

@@ -45,0 +44,0 @@

@@ -36,3 +36,2 @@ 'use strict';

// TODO: Requires a loop.

@@ -43,3 +42,3 @@ // TODO: In case of a label, requires label.

(0, _classCallCheck3.default)(this, ContinueStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ContinueStatement).call(this, 'ContinueStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ContinueStatement.__proto__ || (0, _getPrototypeOf2.default)(ContinueStatement)).call(this, 'ContinueStatement', childNodes));
}

@@ -46,0 +45,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, DebuggerStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(DebuggerStatement).call(this, 'DebuggerStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (DebuggerStatement.__proto__ || (0, _getPrototypeOf2.default)(DebuggerStatement)).call(this, 'DebuggerStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, Directive);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Directive).call(this, 'Directive', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (Directive.__proto__ || (0, _getPrototypeOf2.default)(Directive)).call(this, 'Directive', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, DirectiveLiteral);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(DirectiveLiteral).call(this, 'DirectiveLiteral', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (DirectiveLiteral.__proto__ || (0, _getPrototypeOf2.default)(DirectiveLiteral)).call(this, 'DirectiveLiteral', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, DoWhileStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(DoWhileStatement).call(this, 'DoWhileStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (DoWhileStatement.__proto__ || (0, _getPrototypeOf2.default)(DoWhileStatement)).call(this, 'DoWhileStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, EmptyStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(EmptyStatement).call(this, 'EmptyStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (EmptyStatement.__proto__ || (0, _getPrototypeOf2.default)(EmptyStatement)).call(this, 'EmptyStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ExportAllDeclaration);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ExportAllDeclaration).call(this, 'ExportAllDeclaration', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ExportAllDeclaration.__proto__ || (0, _getPrototypeOf2.default)(ExportAllDeclaration)).call(this, 'ExportAllDeclaration', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ExportDefaultDeclaration);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ExportDefaultDeclaration).call(this, 'ExportDefaultDeclaration', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ExportDefaultDeclaration.__proto__ || (0, _getPrototypeOf2.default)(ExportDefaultDeclaration)).call(this, 'ExportDefaultDeclaration', childNodes));
}

@@ -41,0 +41,0 @@

@@ -40,3 +40,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ExportDefaultSpecifier);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ExportDefaultSpecifier).call(this, 'ExportDefaultSpecifier', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ExportDefaultSpecifier.__proto__ || (0, _getPrototypeOf2.default)(ExportDefaultSpecifier)).call(this, 'ExportDefaultSpecifier', childNodes));
}

@@ -43,0 +43,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ExportNamedDeclaration);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ExportNamedDeclaration).call(this, 'ExportNamedDeclaration', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ExportNamedDeclaration.__proto__ || (0, _getPrototypeOf2.default)(ExportNamedDeclaration)).call(this, 'ExportNamedDeclaration', childNodes));
}

@@ -41,0 +41,0 @@

@@ -40,3 +40,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ExportNamespaceSpecifier);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ExportNamespaceSpecifier).call(this, 'ExportNamespaceSpecifier', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ExportNamespaceSpecifier.__proto__ || (0, _getPrototypeOf2.default)(ExportNamespaceSpecifier)).call(this, 'ExportNamespaceSpecifier', childNodes));
}

@@ -43,0 +43,0 @@

@@ -40,3 +40,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ExportSpecifier);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ExportSpecifier).call(this, 'ExportSpecifier', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ExportSpecifier.__proto__ || (0, _getPrototypeOf2.default)(ExportSpecifier)).call(this, 'ExportSpecifier', childNodes));
}

@@ -43,0 +43,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ExpressionStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ExpressionStatement).call(this, 'ExpressionStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ExpressionStatement.__proto__ || (0, _getPrototypeOf2.default)(ExpressionStatement)).call(this, 'ExpressionStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -39,3 +39,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ForInStatement).call(this, 'ForInStatement', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (ForInStatement.__proto__ || (0, _getPrototypeOf2.default)(ForInStatement)).call(this, 'ForInStatement', childNodes));

@@ -42,0 +42,0 @@ _this.each = false;

@@ -39,3 +39,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ForOfStatement).call(this, 'ForOfStatement', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (ForOfStatement.__proto__ || (0, _getPrototypeOf2.default)(ForOfStatement)).call(this, 'ForOfStatement', childNodes));

@@ -42,0 +42,0 @@ _this.each = false;

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ForStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ForStatement).call(this, 'ForStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ForStatement.__proto__ || (0, _getPrototypeOf2.default)(ForStatement)).call(this, 'ForStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -43,3 +43,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(FunctionDeclaration).call(this, 'FunctionDeclaration', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (FunctionDeclaration.__proto__ || (0, _getPrototypeOf2.default)(FunctionDeclaration)).call(this, 'FunctionDeclaration', childNodes));

@@ -46,0 +46,0 @@ _this.expression = false;

@@ -40,3 +40,2 @@ 'use strict';

// TODO: get params from Property in case of setter

@@ -47,3 +46,3 @@

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(FunctionExpression).call(this, 'FunctionExpression', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (FunctionExpression.__proto__ || (0, _getPrototypeOf2.default)(FunctionExpression)).call(this, 'FunctionExpression', childNodes));

@@ -50,0 +49,0 @@ _this._short = false;

@@ -39,3 +39,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Identifier).call(this, 'Identifier', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (Identifier.__proto__ || (0, _getPrototypeOf2.default)(Identifier)).call(this, 'Identifier', childNodes));

@@ -42,0 +42,0 @@ _this.isPattern = true;

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, IfStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(IfStatement).call(this, 'IfStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (IfStatement.__proto__ || (0, _getPrototypeOf2.default)(IfStatement)).call(this, 'IfStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ImportDeclaration);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ImportDeclaration).call(this, 'ImportDeclaration', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ImportDeclaration.__proto__ || (0, _getPrototypeOf2.default)(ImportDeclaration)).call(this, 'ImportDeclaration', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ImportDefaultSpecifier);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ImportDefaultSpecifier).call(this, 'ImportDefaultSpecifier', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ImportDefaultSpecifier.__proto__ || (0, _getPrototypeOf2.default)(ImportDefaultSpecifier)).call(this, 'ImportDefaultSpecifier', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ImportNamespaceSpecifier);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ImportNamespaceSpecifier).call(this, 'ImportNamespaceSpecifier', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ImportNamespaceSpecifier.__proto__ || (0, _getPrototypeOf2.default)(ImportNamespaceSpecifier)).call(this, 'ImportNamespaceSpecifier', childNodes));
}

@@ -41,0 +41,0 @@

@@ -40,3 +40,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ImportSpecifier);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ImportSpecifier).call(this, 'ImportSpecifier', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ImportSpecifier.__proto__ || (0, _getPrototypeOf2.default)(ImportSpecifier)).call(this, 'ImportSpecifier', childNodes));
}

@@ -43,0 +43,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, JSXAttribute);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(JSXAttribute).call(this, 'JSXAttribute', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (JSXAttribute.__proto__ || (0, _getPrototypeOf2.default)(JSXAttribute)).call(this, 'JSXAttribute', childNodes));
}

@@ -41,0 +41,0 @@

@@ -34,3 +34,2 @@ 'use strict';

// TODO: create JSXBoundaryElement?
var JSXClosingElement = function (_Node) {

@@ -41,3 +40,3 @@ (0, _inherits3.default)(JSXClosingElement, _Node);

(0, _classCallCheck3.default)(this, JSXClosingElement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(JSXClosingElement).call(this, 'JSXClosingElement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (JSXClosingElement.__proto__ || (0, _getPrototypeOf2.default)(JSXClosingElement)).call(this, 'JSXClosingElement', childNodes));
}

@@ -44,0 +43,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, JSXElement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(JSXElement).call(this, 'JSXElement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (JSXElement.__proto__ || (0, _getPrototypeOf2.default)(JSXElement)).call(this, 'JSXElement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, JSXEmptyExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(JSXEmptyExpression).call(this, 'JSXEmptyExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (JSXEmptyExpression.__proto__ || (0, _getPrototypeOf2.default)(JSXEmptyExpression)).call(this, 'JSXEmptyExpression', childNodes));
}

@@ -41,0 +41,0 @@

@@ -42,3 +42,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, JSXExpressionContainer);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(JSXExpressionContainer).call(this, 'JSXExpressionContainer', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (JSXExpressionContainer.__proto__ || (0, _getPrototypeOf2.default)(JSXExpressionContainer)).call(this, 'JSXExpressionContainer', childNodes));
}

@@ -45,0 +45,0 @@

@@ -39,3 +39,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(JSXIdentifier).call(this, 'JSXIdentifier', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (JSXIdentifier.__proto__ || (0, _getPrototypeOf2.default)(JSXIdentifier)).call(this, 'JSXIdentifier', childNodes));

@@ -42,0 +42,0 @@ _this.isPattern = true;

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, JSXMemberExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(JSXMemberExpression).call(this, 'JSXMemberExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (JSXMemberExpression.__proto__ || (0, _getPrototypeOf2.default)(JSXMemberExpression)).call(this, 'JSXMemberExpression', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, JSXNamespacedName);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(JSXNamespacedName).call(this, 'JSXNamespacedName', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (JSXNamespacedName.__proto__ || (0, _getPrototypeOf2.default)(JSXNamespacedName)).call(this, 'JSXNamespacedName', childNodes));
}

@@ -41,0 +41,0 @@

@@ -34,3 +34,2 @@ 'use strict';

// TODO: create JSXBoundaryElement?
var JSXOpeningElement = function (_Node) {

@@ -41,3 +40,3 @@ (0, _inherits3.default)(JSXOpeningElement, _Node);

(0, _classCallCheck3.default)(this, JSXOpeningElement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(JSXOpeningElement).call(this, 'JSXOpeningElement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (JSXOpeningElement.__proto__ || (0, _getPrototypeOf2.default)(JSXOpeningElement)).call(this, 'JSXOpeningElement', childNodes));
}

@@ -44,0 +43,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, JSXSpreadAttribute);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(JSXSpreadAttribute).call(this, 'JSXSpreadAttribute', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (JSXSpreadAttribute.__proto__ || (0, _getPrototypeOf2.default)(JSXSpreadAttribute)).call(this, 'JSXSpreadAttribute', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, JSXText);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(JSXText).call(this, 'JSXText', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (JSXText.__proto__ || (0, _getPrototypeOf2.default)(JSXText)).call(this, 'JSXText', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, LabeledStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(LabeledStatement).call(this, 'LabeledStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (LabeledStatement.__proto__ || (0, _getPrototypeOf2.default)(LabeledStatement)).call(this, 'LabeledStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -41,3 +41,2 @@ 'use strict';

// TODO: Should respect operator precedence: putting "a + b" before " * b" without parens should raise an error.

@@ -47,3 +46,3 @@

(0, _classCallCheck3.default)(this, LogicalExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(LogicalExpression).call(this, 'LogicalExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (LogicalExpression.__proto__ || (0, _getPrototypeOf2.default)(LogicalExpression)).call(this, 'LogicalExpression', childNodes));
}

@@ -50,0 +49,0 @@

@@ -39,3 +39,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(MemberExpression).call(this, 'MemberExpression', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (MemberExpression.__proto__ || (0, _getPrototypeOf2.default)(MemberExpression)).call(this, 'MemberExpression', childNodes));

@@ -42,0 +42,0 @@ _this.isAssignable = true;

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, MetaProperty);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(MetaProperty).call(this, 'MetaProperty', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (MetaProperty.__proto__ || (0, _getPrototypeOf2.default)(MetaProperty)).call(this, 'MetaProperty', childNodes));
}

@@ -41,0 +41,0 @@

@@ -31,2 +31,6 @@ 'use strict';

var _acceptArgumentList = require('./utils/acceptArgumentList');
var _acceptArgumentList2 = _interopRequireDefault(_acceptArgumentList);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -39,3 +43,3 @@

(0, _classCallCheck3.default)(this, NewExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(NewExpression).call(this, 'NewExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (NewExpression.__proto__ || (0, _getPrototypeOf2.default)(NewExpression)).call(this, 'NewExpression', childNodes));
}

@@ -46,32 +50,7 @@

value: function _acceptChildren(children) {
var args = [];
children.passToken('Keyword', 'new');
children.skipNonCode();
var callee = children.passExpression();
if (!children.isEnd) {
children.skipNonCode();
children.passToken('Punctuator', '(');
children.skipNonCode();
if (!children.isToken('Punctuator', ')')) {
args.push(children.passExpression());
children.skipNonCode();
while (!children.isToken('Punctuator', ')')) {
children.passToken('Punctuator', ',');
children.skipNonCode();
args.push(children.passExpression());
children.skipNonCode();
}
}
children.passToken('Punctuator', ')');
}
children.assertEnd();
this.callee = callee;
this.arguments = args;
this.callee = children.passExpression();
this.arguments = children.isEnd ? [] : (0, _acceptArgumentList2.default)(children);
}

@@ -78,0 +57,0 @@ }]);

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, NullLiteral);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(NullLiteral).call(this, 'NullLiteral', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (NullLiteral.__proto__ || (0, _getPrototypeOf2.default)(NullLiteral)).call(this, 'NullLiteral', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, NumericLiteral);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(NumericLiteral).call(this, 'NumericLiteral', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (NumericLiteral.__proto__ || (0, _getPrototypeOf2.default)(NumericLiteral)).call(this, 'NumericLiteral', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ObjectExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ObjectExpression).call(this, 'ObjectExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ObjectExpression.__proto__ || (0, _getPrototypeOf2.default)(ObjectExpression)).call(this, 'ObjectExpression', childNodes));
}

@@ -41,0 +41,0 @@

@@ -48,3 +48,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ObjectMethod).call(this, 'ObjectMethod', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (ObjectMethod.__proto__ || (0, _getPrototypeOf2.default)(ObjectMethod)).call(this, 'ObjectMethod', childNodes));

@@ -51,0 +51,0 @@ _this.isFunction = true;

@@ -39,3 +39,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ObjectPattern).call(this, 'ObjectPattern', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (ObjectPattern.__proto__ || (0, _getPrototypeOf2.default)(ObjectPattern)).call(this, 'ObjectPattern', childNodes));

@@ -42,0 +42,0 @@ _this.isPattern = true;

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ObjectProperty);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ObjectProperty).call(this, 'ObjectProperty', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ObjectProperty.__proto__ || (0, _getPrototypeOf2.default)(ObjectProperty)).call(this, 'ObjectProperty', childNodes));
}

@@ -41,0 +41,0 @@

@@ -43,3 +43,3 @@ 'use strict';

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Program).call(this, 'Program', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (Program.__proto__ || (0, _getPrototypeOf2.default)(Program)).call(this, 'Program', childNodes));

@@ -46,0 +46,0 @@ _this._isProgram = true;

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, RegExpLiteral);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(RegExpLiteral).call(this, 'RegExpLiteral', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (RegExpLiteral.__proto__ || (0, _getPrototypeOf2.default)(RegExpLiteral)).call(this, 'RegExpLiteral', childNodes));
}

@@ -41,0 +41,0 @@

@@ -36,3 +36,2 @@ 'use strict';

// TODO: Requires a function?

@@ -43,3 +42,3 @@

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(RestElement).call(this, 'RestElement', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (RestElement.__proto__ || (0, _getPrototypeOf2.default)(RestElement)).call(this, 'RestElement', childNodes));

@@ -46,0 +45,0 @@ _this.isPattern = true;

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, RestProperty);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(RestProperty).call(this, 'RestProperty', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (RestProperty.__proto__ || (0, _getPrototypeOf2.default)(RestProperty)).call(this, 'RestProperty', childNodes));
}

@@ -41,0 +41,0 @@

@@ -36,3 +36,2 @@ 'use strict';

// TODO: Requires a function.

@@ -42,3 +41,3 @@

(0, _classCallCheck3.default)(this, ReturnStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ReturnStatement).call(this, 'ReturnStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ReturnStatement.__proto__ || (0, _getPrototypeOf2.default)(ReturnStatement)).call(this, 'ReturnStatement', childNodes));
}

@@ -45,0 +44,0 @@

@@ -36,3 +36,2 @@ 'use strict';

// TODO: Should respect operator precedence: putting "a + b" before " * b" without parens should raise an error.

@@ -42,3 +41,3 @@

(0, _classCallCheck3.default)(this, SequenceExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(SequenceExpression).call(this, 'SequenceExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (SequenceExpression.__proto__ || (0, _getPrototypeOf2.default)(SequenceExpression)).call(this, 'SequenceExpression', childNodes));
}

@@ -45,0 +44,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, SpreadElement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(SpreadElement).call(this, 'SpreadElement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (SpreadElement.__proto__ || (0, _getPrototypeOf2.default)(SpreadElement)).call(this, 'SpreadElement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, SpreadProperty);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(SpreadProperty).call(this, 'SpreadProperty', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (SpreadProperty.__proto__ || (0, _getPrototypeOf2.default)(SpreadProperty)).call(this, 'SpreadProperty', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, StringLiteral);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(StringLiteral).call(this, 'StringLiteral', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (StringLiteral.__proto__ || (0, _getPrototypeOf2.default)(StringLiteral)).call(this, 'StringLiteral', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, Super);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Super).call(this, 'Super', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (Super.__proto__ || (0, _getPrototypeOf2.default)(Super)).call(this, 'Super', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, SwitchCase);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(SwitchCase).call(this, 'SwitchCase', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (SwitchCase.__proto__ || (0, _getPrototypeOf2.default)(SwitchCase)).call(this, 'SwitchCase', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, SwitchStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(SwitchStatement).call(this, 'SwitchStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (SwitchStatement.__proto__ || (0, _getPrototypeOf2.default)(SwitchStatement)).call(this, 'SwitchStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, TaggedTemplateExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(TaggedTemplateExpression).call(this, 'TaggedTemplateExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (TaggedTemplateExpression.__proto__ || (0, _getPrototypeOf2.default)(TaggedTemplateExpression)).call(this, 'TaggedTemplateExpression', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, TemplateElement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(TemplateElement).call(this, 'TemplateElement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (TemplateElement.__proto__ || (0, _getPrototypeOf2.default)(TemplateElement)).call(this, 'TemplateElement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, TemplateLiteral);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(TemplateLiteral).call(this, 'TemplateLiteral', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (TemplateLiteral.__proto__ || (0, _getPrototypeOf2.default)(TemplateLiteral)).call(this, 'TemplateLiteral', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ThisExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ThisExpression).call(this, 'ThisExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ThisExpression.__proto__ || (0, _getPrototypeOf2.default)(ThisExpression)).call(this, 'ThisExpression', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ThrowStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ThrowStatement).call(this, 'ThrowStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (ThrowStatement.__proto__ || (0, _getPrototypeOf2.default)(ThrowStatement)).call(this, 'ThrowStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, TryStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(TryStatement).call(this, 'TryStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (TryStatement.__proto__ || (0, _getPrototypeOf2.default)(TryStatement)).call(this, 'TryStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -46,3 +46,2 @@ 'use strict';

// TODO: Should respect operator precedence: putting "-a" after "b" without parens should raise an error.

@@ -53,3 +52,3 @@

var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(UnaryExpression).call(this, 'UnaryExpression', childNodes));
var _this = (0, _possibleConstructorReturn3.default)(this, (UnaryExpression.__proto__ || (0, _getPrototypeOf2.default)(UnaryExpression)).call(this, 'UnaryExpression', childNodes));

@@ -56,0 +55,0 @@ _this.prefix = true;

@@ -41,3 +41,2 @@ 'use strict';

// TODO: Should respect operator precedence: putting "++a" after "b" without parens should raise an error.

@@ -47,3 +46,3 @@

(0, _classCallCheck3.default)(this, UpdateExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(UpdateExpression).call(this, 'UpdateExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (UpdateExpression.__proto__ || (0, _getPrototypeOf2.default)(UpdateExpression)).call(this, 'UpdateExpression', childNodes));
}

@@ -50,0 +49,0 @@

@@ -42,3 +42,2 @@ 'use strict';

// TODO: Can only have 1 declarator inside for ... in.

@@ -48,3 +47,3 @@

(0, _classCallCheck3.default)(this, VariableDeclaration);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(VariableDeclaration).call(this, 'VariableDeclaration', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (VariableDeclaration.__proto__ || (0, _getPrototypeOf2.default)(VariableDeclaration)).call(this, 'VariableDeclaration', childNodes));
}

@@ -51,0 +50,0 @@

@@ -36,3 +36,2 @@ 'use strict';

// TODO: Initial value is required for const.

@@ -42,3 +41,3 @@

(0, _classCallCheck3.default)(this, VariableDeclarator);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(VariableDeclarator).call(this, 'VariableDeclarator', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (VariableDeclarator.__proto__ || (0, _getPrototypeOf2.default)(VariableDeclarator)).call(this, 'VariableDeclarator', childNodes));
}

@@ -45,0 +44,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, WhileStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(WhileStatement).call(this, 'WhileStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (WhileStatement.__proto__ || (0, _getPrototypeOf2.default)(WhileStatement)).call(this, 'WhileStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -38,3 +38,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, WithStatement);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(WithStatement).call(this, 'WithStatement', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (WithStatement.__proto__ || (0, _getPrototypeOf2.default)(WithStatement)).call(this, 'WithStatement', childNodes));
}

@@ -41,0 +41,0 @@

@@ -36,3 +36,2 @@ 'use strict';

// TODO: Requires a generator function.

@@ -42,3 +41,3 @@

(0, _classCallCheck3.default)(this, YieldExpression);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(YieldExpression).call(this, 'YieldExpression', childNodes));
return (0, _possibleConstructorReturn3.default)(this, (YieldExpression.__proto__ || (0, _getPrototypeOf2.default)(YieldExpression)).call(this, 'YieldExpression', childNodes));
}

@@ -45,0 +44,0 @@

@@ -84,7 +84,5 @@ 'use strict';

/**
* CST Parser.
*/
var Parser = function () {

@@ -94,3 +92,2 @@ /**

*/
function Parser(options) {

@@ -97,0 +94,0 @@ (0, _classCallCheck3.default)(this, Parser);

@@ -22,3 +22,2 @@ 'use strict';

*/
var BasePlugin = function () {

@@ -25,0 +24,0 @@ function BasePlugin() {

@@ -15,5 +15,5 @@ 'use strict';

var Definition = function Definition(_ref) {
var node = _ref.node;
var type = _ref.type;
var scope = _ref.scope;
var node = _ref.node,
type = _ref.type,
scope = _ref.scope;
(0, _classCallCheck3.default)(this, Definition);

@@ -20,0 +20,0 @@

@@ -19,7 +19,7 @@ 'use strict';

function Reference(_ref) {
var node = _ref.node;
var scope = _ref.scope;
var read = _ref.read;
var write = _ref.write;
var type = _ref.type;
var node = _ref.node,
scope = _ref.scope,
read = _ref.read,
write = _ref.write,
type = _ref.type;
(0, _classCallCheck3.default)(this, Reference);

@@ -26,0 +26,0 @@

@@ -48,8 +48,8 @@ 'use strict';

(0, _classCallCheck3.default)(this, Scope);
var node = scopeInfo.node;
var parentScope = scopeInfo.parentScope;
var isProgramScope = scopeInfo.isProgramScope;
var isFunctionScope = scopeInfo.isFunctionScope;
var isClassScope = scopeInfo.isClassScope;
var isArrowFunctionScope = scopeInfo.isArrowFunctionScope;
var node = scopeInfo.node,
parentScope = scopeInfo.parentScope,
isProgramScope = scopeInfo.isProgramScope,
isFunctionScope = scopeInfo.isFunctionScope,
isClassScope = scopeInfo.isClassScope,
isArrowFunctionScope = scopeInfo.isArrowFunctionScope;

@@ -103,5 +103,5 @@

value: function _addDefinition(definitionInfo) {
var node = definitionInfo.node;
var name = definitionInfo.name;
var type = definitionInfo.type;
var node = definitionInfo.node,
name = definitionInfo.name,
type = definitionInfo.type;

@@ -108,0 +108,0 @@ if (type === _Definition.types.Variable) {

@@ -42,3 +42,3 @@ 'use strict';

(0, _classCallCheck3.default)(this, ScopesPlugin);
return (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(ScopesPlugin).apply(this, arguments));
return (0, _possibleConstructorReturn3.default)(this, (ScopesPlugin.__proto__ || (0, _getPrototypeOf2.default)(ScopesPlugin)).apply(this, arguments));
}

@@ -45,0 +45,0 @@

@@ -31,5 +31,5 @@ 'use strict';

function Variable(_ref) {
var name = _ref.name;
var type = _ref.type;
var scope = _ref.scope;
var name = _ref.name,
type = _ref.type,
scope = _ref.scope;
(0, _classCallCheck3.default)(this, Variable);

@@ -36,0 +36,0 @@

@@ -8,4 +8,2 @@ "use strict";

exports.getLineInfo = getLineInfo;
var lineBreakRegex = /\r\n|\r|\n/;

@@ -12,0 +10,0 @@ var lineBreakRegexGlobal = /\r\n|\r|\n/g;

{
"name": "cst",
"version": "0.4.6",
"version": "0.4.7",
"description": "JavaScript CST Implementation",

@@ -47,3 +47,3 @@ "author": "Marat Dulin",

"jscs": "^2.11.0",
"mocha": "^2.5.3"
"mocha": "^3.1.2"
},

@@ -50,0 +50,0 @@ "dependencies": {

@@ -77,3 +77,2 @@ [![Build Status](https://travis-ci.org/cst/cst.svg?branch=master)](https://travis-ci.org/cst/cst)

isFragment: boolean;
isFragment: boolean;
isModuleDeclaration: boolean;

@@ -80,0 +79,0 @@ isModuleSpecifier: boolean;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc