Sha256: 9f183543ec46c628fdd0edd90053b051c6694cb1b3e488f4800772e298ddec5a

Contents?: true

Size: 497 Bytes

Versions: 7

Compression:

Stored size: 497 Bytes

Contents

"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;
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.16.1 test/dummy/node_modules/@babel/types/lib/converters/toSequenceExpression.js
disco_app-0.15.2 test/dummy/node_modules/@babel/types/lib/converters/toSequenceExpression.js
disco_app-0.18.4 test/dummy/node_modules/@babel/types/lib/converters/toSequenceExpression.js
disco_app-0.18.1 test/dummy/node_modules/@babel/types/lib/converters/toSequenceExpression.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/types/lib/converters/toSequenceExpression.js
disco_app-0.14.0 test/dummy/node_modules/@babel/types/lib/converters/toSequenceExpression.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/types/lib/converters/toSequenceExpression.js