/
var
/
www
/
greso.tech
/
server
/
nsm
/
node_modules
/
@babel
/
parser
/
lib
/
plugins
/
flow
/
/var/www/greso.tech/server/nsm/node_modules/@babel/parser/lib/plugins/flow
mkdir
upload
Name
Size
Mode
Actions
index.js
86503
0644
edit
dl
rm
index.js.map
223188
0644
edit
dl
rm
scope.js
1329
0644
edit
dl
rm
scope.js.map
3454
0644
edit
dl
rm
Edit:
/var/www/greso.tech/server/nsm/node_modules/@babel/parser/lib/plugins/flow/scope.js
(1329B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _scope = require("../../util/scope"); var _scopeflags = require("../../util/scopeflags"); class FlowScope extends _scope.Scope { constructor(...args) { super(...args); this.declareFunctions = new Set(); } } class FlowScopeHandler extends _scope.default { createScope(flags) { return new FlowScope(flags); } declareName(name, bindingType, loc) { const scope = this.currentScope(); if (bindingType & _scopeflags.BIND_FLAGS_FLOW_DECLARE_FN) { this.checkRedeclarationInScope(scope, name, bindingType, loc); this.maybeExportDefined(scope, name); scope.declareFunctions.add(name); return; } super.declareName(name, bindingType, loc); } isRedeclaredInScope(scope, name, bindingType) { if (super.isRedeclaredInScope(scope, name, bindingType)) return true; if (bindingType & _scopeflags.BIND_FLAGS_FLOW_DECLARE_FN) { return !scope.declareFunctions.has(name) && (scope.lexical.has(name) || scope.functions.has(name)); } return false; } checkLocalExport(id) { if (!this.scopeStack[0].declareFunctions.has(id.name)) { super.checkLocalExport(id); } } } exports.default = FlowScopeHandler; //# sourceMappingURL=scope.js.map
Save
cmd:
run