| Server IP : 217.160.0.135 / Your IP : 216.73.217.37 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/nodejs/acorn-node/lib/import-meta/ |
Upload File : |
/* Generated by `npm run build`, do not edit! */
"use strict"
var tt = require("acorn").tokTypes
var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g
var nextTokenIsDot = function (parser) {
skipWhiteSpace.lastIndex = parser.pos
var skip = skipWhiteSpace.exec(parser.input)
var next = parser.pos + skip[0].length
return parser.input.slice(next, next + 1) === "."
}
module.exports = function(Parser) {
return /*@__PURE__*/(function (Parser) {
function anonymous () {
Parser.apply(this, arguments);
}
if ( Parser ) Object.setPrototypeOf(anonymous, Parser);
anonymous.prototype = Object.create( Parser && Parser.prototype );
anonymous.prototype.constructor = anonymous;
anonymous.prototype.parseExprAtom = function parseExprAtom (refDestructuringErrors) {
if (this.type !== tt._import || !nextTokenIsDot(this)) { return Parser.prototype.parseExprAtom.call(this, refDestructuringErrors) }
if (!this.options.allowImportExportEverywhere && !this.inModule) {
this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")
}
var node = this.startNode()
if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword import") }
node.meta = this.parseIdent(true)
this.expect(tt.dot)
node.property = this.parseIdent(true)
if (node.property.name !== "meta") {
this.raiseRecoverable(node.property.start, "The only valid meta property for import is import.meta")
}
if (this.containsEsc) {
this.raiseRecoverable(node.property.start, "\"meta\" in import.meta must not contain escape sequences")
}
return this.finishNode(node, "MetaProperty")
};
anonymous.prototype.parseStatement = function parseStatement (context, topLevel, exports) {
if (this.type !== tt._import || !nextTokenIsDot(this)) {
return Parser.prototype.parseStatement.call(this, context, topLevel, exports)
}
var node = this.startNode()
var expr = this.parseExpression()
return this.parseExpressionStatement(node, expr)
};
return anonymous;
}(Parser))
}