Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
497 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
---|
| 4 | value: true
|
---|
| 5 | });
|
---|
| 6 | exports.default = toSequenceExpression;
|
---|
| 7 |
|
---|
| 8 | var _gatherSequenceExpressions = require("./gatherSequenceExpressions");
|
---|
| 9 |
|
---|
| 10 | function toSequenceExpression(nodes, scope) {
|
---|
| 11 | if (!(nodes != null && nodes.length)) return;
|
---|
| 12 | const declars = [];
|
---|
| 13 | const result = (0, _gatherSequenceExpressions.default)(nodes, scope, declars);
|
---|
| 14 | if (!result) return;
|
---|
| 15 |
|
---|
| 16 | for (const declar of declars) {
|
---|
| 17 | scope.push(declar);
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | return result;
|
---|
| 21 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.