{"version":3,"sources":["https://lively-kernel.org/lively4/lively4-tom/demos/swe/debugging-plugin.js"],"names":["babel","types","t","template","transformFromAst","traverse","name","visitor","BinaryExpression","path","func","findParent","p","isFunctionDeclaration","get","replaceWith","NumericLiteral"],"mappings":";;;;;;;;;yBAAe,UAAUA,KAAV,EAAiB;AAC9B,cAAM,EAAEC,OAAOC,CAAT,EAAYC,QAAZ,EAAsBC,gBAAtB,EAAwCC,QAAxC,KAAqDL,KAA3D;;AAEA,eAAO;AACLM,gBAAM,eADD,EACkB;AACvBC,mBAAS;AACPC,6BAAiBC,IAAjB,EAAuB;AACrB,oBAAMC,OAAOD,KAAKE,UAAL,CAAgBC,KAAKA,EAAEC,qBAAF,EAArB,CAAb;AACA,kBAAIH,IAAJ,EAAU;AACRD,qBAAKK,GAAL,CAAS,OAAT,EAAkBC,WAAlB,CAA8Bb,EAAEc,cAAF,CAAiB,CAAjB,CAA9B;AACD;AACF;AANM;AAFJ,SAAP;AAWD,O","file":"debugging-plugin.js","sourcesContent":["export default function (babel) {\n  const { types: t, template, transformFromAst, traverse } = babel;\n\n  return {\n    name: \"ast-transform\", // not required\n    visitor: { \n      BinaryExpression(path) {\n        const func = path.findParent(p => p.isFunctionDeclaration())\n        if (func) {\n          path.get('right').replaceWith(t.NumericLiteral(0))\n        }\n      }\n    }\n  }\n}\n"]}