UNPKG

cst

Version:

JavaScript CST Implementation

64 lines (45 loc) 2.33 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _createClass2 = require('babel-runtime/helpers/createClass'); var _createClass3 = _interopRequireDefault(_createClass2); var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn'); var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); var _inherits2 = require('babel-runtime/helpers/inherits'); var _inherits3 = _interopRequireDefault(_inherits2); var _ModuleDeclaration2 = require('../ModuleDeclaration'); var _ModuleDeclaration3 = _interopRequireDefault(_ModuleDeclaration2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var ExportAllDeclaration = function (_ModuleDeclaration) { (0, _inherits3.default)(ExportAllDeclaration, _ModuleDeclaration); function ExportAllDeclaration(childNodes) { (0, _classCallCheck3.default)(this, ExportAllDeclaration); return (0, _possibleConstructorReturn3.default)(this, (ExportAllDeclaration.__proto__ || (0, _getPrototypeOf2.default)(ExportAllDeclaration)).call(this, 'ExportAllDeclaration', childNodes)); } (0, _createClass3.default)(ExportAllDeclaration, [{ key: '_acceptChildren', value: function _acceptChildren(children) { children.passToken('Keyword', 'export'); children.skipNonCode(); children.passToken('Punctuator', '*'); children.skipNonCode(); children.passToken('Identifier', 'from'); children.skipNonCode(); var source = children.passNode('StringLiteral'); if (!children.isEnd) { children.skipNonCode(); children.passToken('Punctuator', ';'); } children.assertEnd(); this.source = source; } }]); return ExportAllDeclaration; }(_ModuleDeclaration3.default); exports.default = ExportAllDeclaration; //# sourceMappingURL=ExportAllDeclaration.js.map