{"version":3,"sources":["https://lively-kernel.org/lively4/lively4-tom/src/components/tools/lively-ast-comparison.js"],"names":["Morph","LivelyAstComparison","initialize","windowTitle","registerButtons","lively","html","registerKeys","leftAST","get","rigthAST","updateView","oldAST","newAST","inspect","livelyPrepareSave","livelyPreMigrate","livelyMigrate","other","someJavaScriptProperty","livelyInspect","contentNode","inspector","livelyExample"],"mappings":";;;;;;AAAOA,W;;;;;;;;;;;AAAAA,gD;;;;;;;AAEQ,YAAMC,mBAAN,SAAkCD,KAAlC,CAAwC;AACrD,cAAME,UAAN,GAAmB;AACjB,eAAKC,WAAL,GAAmB,qBAAnB;AACA,eAAKC,eAAL;;AAEAC,iBAAOC,IAAP,CAAYC,YAAZ,CAAyB,IAAzB,EAJiB,CAIe;AAEjC;;AAEC,YAAIC,OAAJ,GAAc;AACV,iBAAO,KAAKC,GAAL,CAAS,UAAT,CAAP;AACH;;AAED,YAAIC,QAAJ,GAAe;AACX,iBAAO,KAAKD,GAAL,CAAS,WAAT,CAAP;AACH;;AAEDE,mBAAWC,MAAX,EAAmBC,MAAnB,EAA2B;AACvB,eAAKL,OAAL,CAAaM,OAAb,CAAqBF,MAArB;AACA,eAAKF,QAAL,CAAcI,OAAd,CAAsBD,MAAtB;AACH;;AAGH;;AAIA;AACAE,4BAAoB,CAEnB;;AAEDC,2BAAmB;AACjB;AACD;;AAEDC,sBAAcC,KAAd,EAAqB;AACnB;AACA;AACA,eAAKC,sBAAL,GAA8BD,MAAMC,sBAApC;AACD;;AAEDC,sBAAcC,WAAd,EAA2BC,SAA3B,EAAsC;AACpC;AACD;;AAED,cAAMC,aAAN,GAAsB,CAErB;;AAhDoD;;yBAAlCtB,mB;;;;;;;;6BAAAA,oD","file":"lively-ast-comparison.js","sourcesContent":["import Morph from 'src/components/widgets/lively-morph.js';\n\nexport default class LivelyAstComparison extends Morph {\n  async initialize() {\n    this.windowTitle = \"LivelyAstComparison\";\n    this.registerButtons()\n\n    lively.html.registerKeys(this); // automatically installs handler for some methods\n\n  }\n    \n    get leftAST() {\n        return this.get('#leftAst');\n    }\n    \n    get rigthAST() {\n        return this.get('#rigthAst');\n    }\n    \n    updateView(oldAST, newAST) {\n        this.leftAST.inspect(oldAST);\n        this.rigthAST.inspect(newAST);\n    }\n  \n\n  /* Lively-specific API */\n    \n    \n\n  // store something that would be lost\n  livelyPrepareSave() {\n\n  }\n  \n  livelyPreMigrate() {\n    // is called on the old object before the migration\n  }\n  \n  livelyMigrate(other) {\n    // whenever a component is replaced with a newer version during development\n    // this method is called on the new object during migration, but before initialization\n    this.someJavaScriptProperty = other.someJavaScriptProperty\n  }\n  \n  livelyInspect(contentNode, inspector) {\n    // do nothing\n  }\n  \n  async livelyExample() {\n\n  }\n  \n  \n}"]}