mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-06 05:19:13 +08:00
21 lines
No EOL
497 B
Text
21 lines
No EOL
497 B
Text
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = toSequenceExpression;
|
|
|
|
var _gatherSequenceExpressions = require("./gatherSequenceExpressions");
|
|
|
|
function toSequenceExpression(nodes, scope) {
|
|
if (!(nodes != null && nodes.length)) return;
|
|
const declars = [];
|
|
const result = (0, _gatherSequenceExpressions.default)(nodes, scope, declars);
|
|
if (!result) return;
|
|
|
|
for (const declar of declars) {
|
|
scope.push(declar);
|
|
}
|
|
|
|
return result;
|
|
} |