You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
1.4 KiB

/* Generated by `npm run build`, do not edit! */
"use strict"
var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g
var tt = require("acorn").tokTypes
module.exports = function(Parser) {
return /*@__PURE__*/(function (Parser) {
function anonymous () {
Parser.apply(this, arguments);
}
if ( Parser ) anonymous.__proto__ = Parser;
anonymous.prototype = Object.create( Parser && Parser.prototype );
anonymous.prototype.constructor = anonymous;
anonymous.prototype.parseExport = function parseExport (node, exports) {
skipWhiteSpace.lastIndex = this.pos
var skip = skipWhiteSpace.exec(this.input)
var next = this.input.charAt(this.pos + skip[0].length)
if (next !== "*") { return Parser.prototype.parseExport.call(this, node, exports) }
this.next()
var specifier = this.startNode()
this.expect(tt.star)
if (this.eatContextual("as")) {
node.declaration = null
specifier.exported = this.parseIdent(true)
this.checkExport(exports, specifier.exported.name, this.lastTokStart)
node.specifiers = [this.finishNode(specifier, "ExportNamespaceSpecifier")]
}
this.expectContextual("from")
if (this.type !== tt.string) { this.unexpected() }
node.source = this.parseExprAtom()
this.semicolon()
return this.finishNode(node, node.specifiers ? "ExportNamedDeclaration" : "ExportAllDeclaration")
};
return anonymous;
}(Parser))
}