Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/@babel/traverse/lib/path/replacement.js

    rd565449 r0c6b92a  
    1717var _parser = require("@babel/parser");
    1818var _t = require("@babel/types");
     19var _context = require("./context.js");
    1920const {
    2021  FUNCTION_TYPES,
     
    4950function replaceWithMultiple(nodes) {
    5051  var _getCachedPaths;
    51   this.resync();
     52  _context.resync.call(this);
    5253  nodes = _modification._verifyNodeList.call(this, nodes);
    5354  inheritLeadingComments(nodes[0], this.node);
     
    6465}
    6566function replaceWithSourceString(replacement) {
    66   this.resync();
     67  _context.resync.call(this);
    6768  let ast;
    6869  try {
     
    8788}
    8889function replaceWith(replacementPath) {
    89   this.resync();
     90  _context.resync.call(this);
    9091  if (this.removed) {
    9192    throw new Error("You can't replace this node, we've already removed it");
     
    126127  _replaceWith.call(this, replacement);
    127128  this.type = replacement.type;
    128   this.setScope();
     129  _context.setScope.call(this);
    129130  this.requeue();
    130131  return [nodePath ? this.get(nodePath) : this];
     
    145146}
    146147function replaceExpressionWithStatements(nodes) {
    147   this.resync();
     148  _context.resync.call(this);
    148149  const declars = [];
    149150  const nodesAsSingleExpression = gatherSequenceExpressions(nodes, declars);
     
    155156  }
    156157  const functionParent = this.getFunctionParent();
    157   const isParentAsync = functionParent == null ? void 0 : functionParent.is("async");
    158   const isParentGenerator = functionParent == null ? void 0 : functionParent.is("generator");
     158  const isParentAsync = functionParent == null ? void 0 : functionParent.node.async;
     159  const isParentGenerator = functionParent == null ? void 0 : functionParent.node.generator;
    159160  const container = arrowFunctionExpression([], blockStatement(nodes));
    160161  this.replaceWith(callExpression(container, []));
     
    245246}
    246247function replaceInline(nodes) {
    247   this.resync();
     248  _context.resync.call(this);
    248249  if (Array.isArray(nodes)) {
    249250    if (Array.isArray(this.container)) {
Note: See TracChangeset for help on using the changeset viewer.