Show More
Commit Description:
force log out when password change
Commit Description:
force log out when password change
References:
File last commit:
Show/Diff file:
Action:
node_modules/acorn-node/lib/export-ns-from/index.js
| 43 lines
| 1.4 KiB
| application/javascript
| JavascriptLexer
|
r789 | /* 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)) | ||||
} | ||||