Helios-Debugger.js 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384
  1. define("amber_core/Helios-Debugger", ["amber_vm/smalltalk", "amber_vm/nil", "amber_vm/_st", "amber_vm/globals", "amber_core/Kernel-Objects", "amber_core/Helios-Core", "amber_core/Helios-Workspace"], function(smalltalk,nil,_st, globals){
  2. smalltalk.addPackage('Helios-Debugger');
  3. smalltalk.packages["Helios-Debugger"].transport = {"type":"amd","amdNamespace":"amber_core"};
  4. smalltalk.addClass('HLContextInspectorDecorator', globals.Object, ['context'], 'Helios-Debugger');
  5. smalltalk.addMethod(
  6. smalltalk.method({
  7. selector: "context",
  8. protocol: 'accessing',
  9. fn: function (){
  10. var self=this;
  11. var $1;
  12. $1=self["@context"];
  13. return $1;
  14. },
  15. args: [],
  16. source: "context\x0a\x09^ context",
  17. messageSends: [],
  18. referencedClasses: []
  19. }),
  20. globals.HLContextInspectorDecorator);
  21. smalltalk.addMethod(
  22. smalltalk.method({
  23. selector: "initializeFromContext:",
  24. protocol: 'initialization',
  25. fn: function (aContext){
  26. var self=this;
  27. self["@context"]=aContext;
  28. return self},
  29. args: ["aContext"],
  30. source: "initializeFromContext: aContext\x0a\x09context := aContext",
  31. messageSends: [],
  32. referencedClasses: []
  33. }),
  34. globals.HLContextInspectorDecorator);
  35. smalltalk.addMethod(
  36. smalltalk.method({
  37. selector: "inspectOn:",
  38. protocol: 'inspecting',
  39. fn: function (anInspector){
  40. var self=this;
  41. var variables,inspectedContext;
  42. function $Dictionary(){return globals.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  43. return smalltalk.withContext(function($ctx1) {
  44. var $1,$2,$3,$4;
  45. variables=_st($Dictionary())._new();
  46. inspectedContext=self._context();
  47. $1=variables;
  48. $2=_st(inspectedContext)._locals();
  49. $ctx1.sendIdx["locals"]=1;
  50. _st($1)._addAll_($2);
  51. $ctx1.sendIdx["addAll:"]=1;
  52. _st((function(){
  53. return smalltalk.withContext(function($ctx2) {
  54. return _st(_st(inspectedContext)._notNil())._and_((function(){
  55. return smalltalk.withContext(function($ctx3) {
  56. return _st(inspectedContext)._isBlockContext();
  57. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)})}));
  58. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}))._whileTrue_((function(){
  59. return smalltalk.withContext(function($ctx2) {
  60. inspectedContext=_st(inspectedContext)._outerContext();
  61. inspectedContext;
  62. $3=inspectedContext;
  63. if(($receiver = $3) == nil || $receiver == null){
  64. return $3;
  65. } else {
  66. return _st(variables)._addAll_(_st(inspectedContext)._locals());
  67. };
  68. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,3)})}));
  69. _st(anInspector)._setLabel_("Context");
  70. $4=_st(anInspector)._setVariables_(variables);
  71. return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables,inspectedContext:inspectedContext},globals.HLContextInspectorDecorator)})},
  72. args: ["anInspector"],
  73. source: "inspectOn: anInspector\x0a\x09| variables inspectedContext |\x0a\x09\x0a\x09variables := Dictionary new.\x0a\x09inspectedContext := self context.\x0a\x09\x0a\x09variables addAll: inspectedContext locals.\x0a\x09\x0a\x09[ inspectedContext notNil and: [ inspectedContext isBlockContext ] ] whileTrue: [\x0a\x09\x09inspectedContext := inspectedContext outerContext.\x0a\x09\x09inspectedContext ifNotNil: [\x0a\x09\x09\x09variables addAll: inspectedContext locals ] ].\x0a\x09\x0a\x09anInspector\x0a\x09\x09setLabel: 'Context';\x0a\x09\x09setVariables: variables",
  74. messageSends: ["new", "context", "addAll:", "locals", "whileTrue:", "and:", "notNil", "isBlockContext", "outerContext", "ifNotNil:", "setLabel:", "setVariables:"],
  75. referencedClasses: ["Dictionary"]
  76. }),
  77. globals.HLContextInspectorDecorator);
  78. smalltalk.addMethod(
  79. smalltalk.method({
  80. selector: "on:",
  81. protocol: 'instance creation',
  82. fn: function (aContext){
  83. var self=this;
  84. return smalltalk.withContext(function($ctx1) {
  85. var $2,$3,$1;
  86. $2=self._new();
  87. _st($2)._initializeFromContext_(aContext);
  88. $3=_st($2)._yourself();
  89. $1=$3;
  90. return $1;
  91. }, function($ctx1) {$ctx1.fill(self,"on:",{aContext:aContext},globals.HLContextInspectorDecorator.klass)})},
  92. args: ["aContext"],
  93. source: "on: aContext\x0a\x09^ self new\x0a\x09\x09initializeFromContext: aContext;\x0a\x09\x09yourself",
  94. messageSends: ["initializeFromContext:", "new", "yourself"],
  95. referencedClasses: []
  96. }),
  97. globals.HLContextInspectorDecorator.klass);
  98. smalltalk.addClass('HLDebugger', globals.HLFocusableWidget, ['model', 'stackListWidget', 'codeWidget', 'inspectorWidget'], 'Helios-Debugger');
  99. globals.HLDebugger.comment="I am the main widget for the Helios debugger.";
  100. smalltalk.addMethod(
  101. smalltalk.method({
  102. selector: "codeWidget",
  103. protocol: 'widgets',
  104. fn: function (){
  105. var self=this;
  106. function $HLDebuggerCodeWidget(){return globals.HLDebuggerCodeWidget||(typeof HLDebuggerCodeWidget=="undefined"?nil:HLDebuggerCodeWidget)}
  107. function $HLDebuggerCodeModel(){return globals.HLDebuggerCodeModel||(typeof HLDebuggerCodeModel=="undefined"?nil:HLDebuggerCodeModel)}
  108. return smalltalk.withContext(function($ctx1) {
  109. var $2,$3,$4,$6,$7,$8,$9,$5,$10,$1;
  110. $2=self["@codeWidget"];
  111. if(($receiver = $2) == nil || $receiver == null){
  112. $3=_st($HLDebuggerCodeWidget())._new();
  113. $ctx1.sendIdx["new"]=1;
  114. $4=$3;
  115. $6=_st($HLDebuggerCodeModel())._new();
  116. $7=$6;
  117. $8=self._model();
  118. $ctx1.sendIdx["model"]=1;
  119. _st($7)._debuggerModel_($8);
  120. $9=_st($6)._yourself();
  121. $ctx1.sendIdx["yourself"]=1;
  122. $5=$9;
  123. _st($4)._model_($5);
  124. _st($3)._browserModel_(self._model());
  125. $10=_st($3)._yourself();
  126. self["@codeWidget"]=$10;
  127. $1=self["@codeWidget"];
  128. } else {
  129. $1=$2;
  130. };
  131. return $1;
  132. }, function($ctx1) {$ctx1.fill(self,"codeWidget",{},globals.HLDebugger)})},
  133. args: [],
  134. source: "codeWidget\x0a\x09^ codeWidget ifNil: [ codeWidget := HLDebuggerCodeWidget new\x0a\x09\x09model: (HLDebuggerCodeModel new\x0a\x09\x09\x09debuggerModel: self model;\x0a\x09\x09\x09yourself);\x0a\x09\x09browserModel: self model;\x0a\x09\x09yourself ]",
  135. messageSends: ["ifNil:", "model:", "new", "debuggerModel:", "model", "yourself", "browserModel:"],
  136. referencedClasses: ["HLDebuggerCodeWidget", "HLDebuggerCodeModel"]
  137. }),
  138. globals.HLDebugger);
  139. smalltalk.addMethod(
  140. smalltalk.method({
  141. selector: "cssClass",
  142. protocol: 'accessing',
  143. fn: function (){
  144. var self=this;
  145. return smalltalk.withContext(function($ctx1) {
  146. var $1;
  147. $1=_st(globals.HLDebugger.superclass.fn.prototype._cssClass.apply(_st(self), [])).__comma(" hl_debugger");
  148. return $1;
  149. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},globals.HLDebugger)})},
  150. args: [],
  151. source: "cssClass\x0a\x09^ super cssClass, ' hl_debugger'",
  152. messageSends: [",", "cssClass"],
  153. referencedClasses: []
  154. }),
  155. globals.HLDebugger);
  156. smalltalk.addMethod(
  157. smalltalk.method({
  158. selector: "focus",
  159. protocol: 'actions',
  160. fn: function (){
  161. var self=this;
  162. return smalltalk.withContext(function($ctx1) {
  163. _st(self._stackListWidget())._focus();
  164. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},globals.HLDebugger)})},
  165. args: [],
  166. source: "focus\x0a\x09self stackListWidget focus",
  167. messageSends: ["focus", "stackListWidget"],
  168. referencedClasses: []
  169. }),
  170. globals.HLDebugger);
  171. smalltalk.addMethod(
  172. smalltalk.method({
  173. selector: "initializeFromError:",
  174. protocol: 'initialization',
  175. fn: function (anError){
  176. var self=this;
  177. function $HLDebuggerModel(){return globals.HLDebuggerModel||(typeof HLDebuggerModel=="undefined"?nil:HLDebuggerModel)}
  178. return smalltalk.withContext(function($ctx1) {
  179. self["@model"]=_st($HLDebuggerModel())._on_(anError);
  180. self._observeModel();
  181. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromError:",{anError:anError},globals.HLDebugger)})},
  182. args: ["anError"],
  183. source: "initializeFromError: anError\x0a\x09model := HLDebuggerModel on: anError.\x0a\x09self observeModel",
  184. messageSends: ["on:", "observeModel"],
  185. referencedClasses: ["HLDebuggerModel"]
  186. }),
  187. globals.HLDebugger);
  188. smalltalk.addMethod(
  189. smalltalk.method({
  190. selector: "inspectorWidget",
  191. protocol: 'widgets',
  192. fn: function (){
  193. var self=this;
  194. function $HLInspectorWidget(){return globals.HLInspectorWidget||(typeof HLInspectorWidget=="undefined"?nil:HLInspectorWidget)}
  195. return smalltalk.withContext(function($ctx1) {
  196. var $2,$1;
  197. $2=self["@inspectorWidget"];
  198. if(($receiver = $2) == nil || $receiver == null){
  199. self["@inspectorWidget"]=_st($HLInspectorWidget())._new();
  200. $1=self["@inspectorWidget"];
  201. } else {
  202. $1=$2;
  203. };
  204. return $1;
  205. }, function($ctx1) {$ctx1.fill(self,"inspectorWidget",{},globals.HLDebugger)})},
  206. args: [],
  207. source: "inspectorWidget\x0a\x09^ inspectorWidget ifNil: [ \x0a\x09\x09inspectorWidget := HLInspectorWidget new ]",
  208. messageSends: ["ifNil:", "new"],
  209. referencedClasses: ["HLInspectorWidget"]
  210. }),
  211. globals.HLDebugger);
  212. smalltalk.addMethod(
  213. smalltalk.method({
  214. selector: "model",
  215. protocol: 'accessing',
  216. fn: function (){
  217. var self=this;
  218. function $HLDebuggerModel(){return globals.HLDebuggerModel||(typeof HLDebuggerModel=="undefined"?nil:HLDebuggerModel)}
  219. return smalltalk.withContext(function($ctx1) {
  220. var $2,$1;
  221. $2=self["@model"];
  222. if(($receiver = $2) == nil || $receiver == null){
  223. self["@model"]=_st($HLDebuggerModel())._new();
  224. $1=self["@model"];
  225. } else {
  226. $1=$2;
  227. };
  228. return $1;
  229. }, function($ctx1) {$ctx1.fill(self,"model",{},globals.HLDebugger)})},
  230. args: [],
  231. source: "model\x0a\x09^ model ifNil: [ model := HLDebuggerModel new ]",
  232. messageSends: ["ifNil:", "new"],
  233. referencedClasses: ["HLDebuggerModel"]
  234. }),
  235. globals.HLDebugger);
  236. smalltalk.addMethod(
  237. smalltalk.method({
  238. selector: "observeModel",
  239. protocol: 'actions',
  240. fn: function (){
  241. var self=this;
  242. function $HLDebuggerContextSelected(){return globals.HLDebuggerContextSelected||(typeof HLDebuggerContextSelected=="undefined"?nil:HLDebuggerContextSelected)}
  243. function $HLDebuggerStepped(){return globals.HLDebuggerStepped||(typeof HLDebuggerStepped=="undefined"?nil:HLDebuggerStepped)}
  244. return smalltalk.withContext(function($ctx1) {
  245. var $2,$1;
  246. $2=self._model();
  247. $ctx1.sendIdx["model"]=1;
  248. $1=_st($2)._announcer();
  249. $ctx1.sendIdx["announcer"]=1;
  250. _st($1)._on_send_to_($HLDebuggerContextSelected(),"onContextSelected:",self);
  251. $ctx1.sendIdx["on:send:to:"]=1;
  252. _st(_st(self._model())._announcer())._on_send_to_($HLDebuggerStepped(),"onContextSelected:",self);
  253. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},globals.HLDebugger)})},
  254. args: [],
  255. source: "observeModel\x0a\x09self model announcer \x0a\x09\x09on: HLDebuggerContextSelected\x0a\x09\x09send: #onContextSelected:\x0a\x09\x09to: self.\x0a\x09\x09\x0a\x09self model announcer \x0a\x09\x09on: HLDebuggerStepped\x0a\x09\x09send: #onContextSelected:\x0a\x09\x09to: self",
  256. messageSends: ["on:send:to:", "announcer", "model"],
  257. referencedClasses: ["HLDebuggerContextSelected", "HLDebuggerStepped"]
  258. }),
  259. globals.HLDebugger);
  260. smalltalk.addMethod(
  261. smalltalk.method({
  262. selector: "onContextSelected:",
  263. protocol: 'reactions',
  264. fn: function (anAnnouncement){
  265. var self=this;
  266. function $HLContextInspectorDecorator(){return globals.HLContextInspectorDecorator||(typeof HLContextInspectorDecorator=="undefined"?nil:HLContextInspectorDecorator)}
  267. return smalltalk.withContext(function($ctx1) {
  268. _st(self._inspectorWidget())._inspect_(_st($HLContextInspectorDecorator())._on_(_st(anAnnouncement)._context()));
  269. return self}, function($ctx1) {$ctx1.fill(self,"onContextSelected:",{anAnnouncement:anAnnouncement},globals.HLDebugger)})},
  270. args: ["anAnnouncement"],
  271. source: "onContextSelected: anAnnouncement\x0a\x09self inspectorWidget inspect: (HLContextInspectorDecorator on: anAnnouncement context)",
  272. messageSends: ["inspect:", "inspectorWidget", "on:", "context"],
  273. referencedClasses: ["HLContextInspectorDecorator"]
  274. }),
  275. globals.HLDebugger);
  276. smalltalk.addMethod(
  277. smalltalk.method({
  278. selector: "registerBindingsOn:",
  279. protocol: 'keybindings',
  280. fn: function (aBindingGroup){
  281. var self=this;
  282. function $HLToolCommand(){return globals.HLToolCommand||(typeof HLToolCommand=="undefined"?nil:HLToolCommand)}
  283. return smalltalk.withContext(function($ctx1) {
  284. _st($HLToolCommand())._registerConcreteClassesOn_for_(aBindingGroup,self._model());
  285. return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup},globals.HLDebugger)})},
  286. args: ["aBindingGroup"],
  287. source: "registerBindingsOn: aBindingGroup\x0a\x09HLToolCommand \x0a\x09\x09registerConcreteClassesOn: aBindingGroup \x0a\x09\x09for: self model",
  288. messageSends: ["registerConcreteClassesOn:for:", "model"],
  289. referencedClasses: ["HLToolCommand"]
  290. }),
  291. globals.HLDebugger);
  292. smalltalk.addMethod(
  293. smalltalk.method({
  294. selector: "renderContentOn:",
  295. protocol: 'rendering',
  296. fn: function (html){
  297. var self=this;
  298. function $HLContainer(){return globals.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}
  299. function $HLHorizontalSplitter(){return globals.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  300. function $HLVerticalSplitter(){return globals.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  301. return smalltalk.withContext(function($ctx1) {
  302. var $2,$1;
  303. self._renderHeadOn_(html);
  304. $2=_st($HLHorizontalSplitter())._with_with_(self._stackListWidget(),_st($HLVerticalSplitter())._with_with_(self._codeWidget(),self._inspectorWidget()));
  305. $ctx1.sendIdx["with:with:"]=1;
  306. $1=_st($HLContainer())._with_($2);
  307. _st(html)._with_($1);
  308. $ctx1.sendIdx["with:"]=1;
  309. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},globals.HLDebugger)})},
  310. args: ["html"],
  311. source: "renderContentOn: html\x0a\x09self renderHeadOn: html.\x0a\x09html with: (HLContainer with: (HLHorizontalSplitter\x0a\x09\x09with: self stackListWidget\x0a\x09\x09with: (HLVerticalSplitter\x0a\x09\x09\x09with: self codeWidget\x0a\x09\x09\x09with: self inspectorWidget)))",
  312. messageSends: ["renderHeadOn:", "with:", "with:with:", "stackListWidget", "codeWidget", "inspectorWidget"],
  313. referencedClasses: ["HLContainer", "HLHorizontalSplitter", "HLVerticalSplitter"]
  314. }),
  315. globals.HLDebugger);
  316. smalltalk.addMethod(
  317. smalltalk.method({
  318. selector: "renderHeadOn:",
  319. protocol: 'rendering',
  320. fn: function (html){
  321. var self=this;
  322. return smalltalk.withContext(function($ctx1) {
  323. var $1,$2;
  324. $1=_st(html)._div();
  325. _st($1)._class_("head");
  326. $2=_st($1)._with_((function(){
  327. return smalltalk.withContext(function($ctx2) {
  328. return _st(_st(html)._h2())._with_(_st(_st(self._model())._error())._messageText());
  329. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  330. $ctx1.sendIdx["with:"]=1;
  331. return self}, function($ctx1) {$ctx1.fill(self,"renderHeadOn:",{html:html},globals.HLDebugger)})},
  332. args: ["html"],
  333. source: "renderHeadOn: html\x0a\x09html div \x0a\x09\x09class: 'head'; \x0a\x09\x09with: [ html h2 with: self model error messageText ]",
  334. messageSends: ["class:", "div", "with:", "h2", "messageText", "error", "model"],
  335. referencedClasses: []
  336. }),
  337. globals.HLDebugger);
  338. smalltalk.addMethod(
  339. smalltalk.method({
  340. selector: "stackListWidget",
  341. protocol: 'widgets',
  342. fn: function (){
  343. var self=this;
  344. function $HLStackListWidget(){return globals.HLStackListWidget||(typeof HLStackListWidget=="undefined"?nil:HLStackListWidget)}
  345. return smalltalk.withContext(function($ctx1) {
  346. var $2,$3,$4,$1;
  347. $2=self["@stackListWidget"];
  348. if(($receiver = $2) == nil || $receiver == null){
  349. $3=_st($HLStackListWidget())._on_(self._model());
  350. _st($3)._next_(self._codeWidget());
  351. $4=_st($3)._yourself();
  352. self["@stackListWidget"]=$4;
  353. $1=self["@stackListWidget"];
  354. } else {
  355. $1=$2;
  356. };
  357. return $1;
  358. }, function($ctx1) {$ctx1.fill(self,"stackListWidget",{},globals.HLDebugger)})},
  359. args: [],
  360. source: "stackListWidget\x0a\x09^ stackListWidget ifNil: [ \x0a\x09\x09stackListWidget := (HLStackListWidget on: self model)\x0a\x09\x09\x09next: self codeWidget;\x0a\x09\x09\x09yourself ]",
  361. messageSends: ["ifNil:", "next:", "on:", "model", "codeWidget", "yourself"],
  362. referencedClasses: ["HLStackListWidget"]
  363. }),
  364. globals.HLDebugger);
  365. smalltalk.addMethod(
  366. smalltalk.method({
  367. selector: "unregister",
  368. protocol: 'actions',
  369. fn: function (){
  370. var self=this;
  371. return smalltalk.withContext(function($ctx1) {
  372. globals.HLDebugger.superclass.fn.prototype._unregister.apply(_st(self), []);
  373. $ctx1.sendIdx["unregister"]=1;
  374. _st(self._inspectorWidget())._unregister();
  375. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},globals.HLDebugger)})},
  376. args: [],
  377. source: "unregister\x0a\x09super unregister.\x0a\x09self inspectorWidget unregister",
  378. messageSends: ["unregister", "inspectorWidget"],
  379. referencedClasses: []
  380. }),
  381. globals.HLDebugger);
  382. smalltalk.addMethod(
  383. smalltalk.method({
  384. selector: "on:",
  385. protocol: 'instance creation',
  386. fn: function (anError){
  387. var self=this;
  388. return smalltalk.withContext(function($ctx1) {
  389. var $2,$3,$1;
  390. $2=self._new();
  391. _st($2)._initializeFromError_(anError);
  392. $3=_st($2)._yourself();
  393. $1=$3;
  394. return $1;
  395. }, function($ctx1) {$ctx1.fill(self,"on:",{anError:anError},globals.HLDebugger.klass)})},
  396. args: ["anError"],
  397. source: "on: anError\x0a\x09^ self new\x0a\x09\x09initializeFromError: anError;\x0a\x09\x09yourself",
  398. messageSends: ["initializeFromError:", "new", "yourself"],
  399. referencedClasses: []
  400. }),
  401. globals.HLDebugger.klass);
  402. smalltalk.addMethod(
  403. smalltalk.method({
  404. selector: "tabClass",
  405. protocol: 'accessing',
  406. fn: function (){
  407. var self=this;
  408. return "debugger";
  409. },
  410. args: [],
  411. source: "tabClass\x0a\x09^ 'debugger'",
  412. messageSends: [],
  413. referencedClasses: []
  414. }),
  415. globals.HLDebugger.klass);
  416. smalltalk.addMethod(
  417. smalltalk.method({
  418. selector: "tabLabel",
  419. protocol: 'accessing',
  420. fn: function (){
  421. var self=this;
  422. return "Debugger";
  423. },
  424. args: [],
  425. source: "tabLabel\x0a\x09^ 'Debugger'",
  426. messageSends: [],
  427. referencedClasses: []
  428. }),
  429. globals.HLDebugger.klass);
  430. smalltalk.addClass('HLDebuggerCodeModel', globals.HLCodeModel, ['debuggerModel'], 'Helios-Debugger');
  431. smalltalk.addMethod(
  432. smalltalk.method({
  433. selector: "debuggerModel",
  434. protocol: 'accessing',
  435. fn: function (){
  436. var self=this;
  437. var $1;
  438. $1=self["@debuggerModel"];
  439. return $1;
  440. },
  441. args: [],
  442. source: "debuggerModel\x0a\x09^ debuggerModel",
  443. messageSends: [],
  444. referencedClasses: []
  445. }),
  446. globals.HLDebuggerCodeModel);
  447. smalltalk.addMethod(
  448. smalltalk.method({
  449. selector: "debuggerModel:",
  450. protocol: 'accessing',
  451. fn: function (anObject){
  452. var self=this;
  453. self["@debuggerModel"]=anObject;
  454. return self},
  455. args: ["anObject"],
  456. source: "debuggerModel: anObject\x0a\x09debuggerModel := anObject",
  457. messageSends: [],
  458. referencedClasses: []
  459. }),
  460. globals.HLDebuggerCodeModel);
  461. smalltalk.addMethod(
  462. smalltalk.method({
  463. selector: "doIt:",
  464. protocol: 'actions',
  465. fn: function (aString){
  466. var self=this;
  467. function $ErrorHandler(){return globals.ErrorHandler||(typeof ErrorHandler=="undefined"?nil:ErrorHandler)}
  468. return smalltalk.withContext(function($ctx1) {
  469. var $1;
  470. $1=_st((function(){
  471. return smalltalk.withContext(function($ctx2) {
  472. return _st(self._debuggerModel())._evaluate_(aString);
  473. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}))._tryCatch_((function(e){
  474. return smalltalk.withContext(function($ctx2) {
  475. _st($ErrorHandler())._handleError_(e);
  476. return nil;
  477. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1,2)})}));
  478. return $1;
  479. }, function($ctx1) {$ctx1.fill(self,"doIt:",{aString:aString},globals.HLDebuggerCodeModel)})},
  480. args: ["aString"],
  481. source: "doIt: aString\x0a\x09^ [ self debuggerModel evaluate: aString ]\x0a\x09\x09tryCatch: [ :e | \x0a\x09\x09\x09ErrorHandler handleError: e.\x0a\x09\x09\x09nil ]",
  482. messageSends: ["tryCatch:", "evaluate:", "debuggerModel", "handleError:"],
  483. referencedClasses: ["ErrorHandler"]
  484. }),
  485. globals.HLDebuggerCodeModel);
  486. smalltalk.addClass('HLDebuggerCodeWidget', globals.HLBrowserCodeWidget, [], 'Helios-Debugger');
  487. smalltalk.addMethod(
  488. smalltalk.method({
  489. selector: "addStopAt:",
  490. protocol: 'actions',
  491. fn: function (anInteger){
  492. var self=this;
  493. return smalltalk.withContext(function($ctx1) {
  494. _st(self["@editor"])._setGutterMarker_gutter_value_(anInteger,"stops",_st(_st("<div class=\x22stop\x22></stop>"._asJQuery())._toArray())._first());
  495. return self}, function($ctx1) {$ctx1.fill(self,"addStopAt:",{anInteger:anInteger},globals.HLDebuggerCodeWidget)})},
  496. args: ["anInteger"],
  497. source: "addStopAt: anInteger\x0a\x09editor\x0a\x09\x09setGutterMarker: anInteger\x0a\x09\x09gutter: 'stops'\x0a\x09\x09value: '<div class=\x22stop\x22></stop>' asJQuery toArray first",
  498. messageSends: ["setGutterMarker:gutter:value:", "first", "toArray", "asJQuery"],
  499. referencedClasses: []
  500. }),
  501. globals.HLDebuggerCodeWidget);
  502. smalltalk.addMethod(
  503. smalltalk.method({
  504. selector: "clearHighlight",
  505. protocol: 'actions',
  506. fn: function (){
  507. var self=this;
  508. return smalltalk.withContext(function($ctx1) {
  509. _st(self._editor())._clearGutter_("stops");
  510. return self}, function($ctx1) {$ctx1.fill(self,"clearHighlight",{},globals.HLDebuggerCodeWidget)})},
  511. args: [],
  512. source: "clearHighlight\x0a\x09self editor clearGutter: 'stops'",
  513. messageSends: ["clearGutter:", "editor"],
  514. referencedClasses: []
  515. }),
  516. globals.HLDebuggerCodeWidget);
  517. smalltalk.addMethod(
  518. smalltalk.method({
  519. selector: "contents:",
  520. protocol: 'accessing',
  521. fn: function (aString){
  522. var self=this;
  523. return smalltalk.withContext(function($ctx1) {
  524. self._clearHighlight();
  525. globals.HLDebuggerCodeWidget.superclass.fn.prototype._contents_.apply(_st(self), [aString]);
  526. return self}, function($ctx1) {$ctx1.fill(self,"contents:",{aString:aString},globals.HLDebuggerCodeWidget)})},
  527. args: ["aString"],
  528. source: "contents: aString\x0a\x09self clearHighlight.\x0a\x09super contents: aString",
  529. messageSends: ["clearHighlight", "contents:"],
  530. referencedClasses: []
  531. }),
  532. globals.HLDebuggerCodeWidget);
  533. smalltalk.addMethod(
  534. smalltalk.method({
  535. selector: "editorOptions",
  536. protocol: 'accessing',
  537. fn: function (){
  538. var self=this;
  539. return smalltalk.withContext(function($ctx1) {
  540. var $2,$3,$1;
  541. $2=globals.HLDebuggerCodeWidget.superclass.fn.prototype._editorOptions.apply(_st(self), []);
  542. _st($2)._at_put_("gutters",["CodeMirror-linenumbers", "stops"]);
  543. $3=_st($2)._yourself();
  544. $1=$3;
  545. return $1;
  546. }, function($ctx1) {$ctx1.fill(self,"editorOptions",{},globals.HLDebuggerCodeWidget)})},
  547. args: [],
  548. source: "editorOptions\x0a\x09^ super editorOptions\x0a\x09\x09at: 'gutters' put: #('CodeMirror-linenumbers' 'stops');\x0a\x09\x09yourself",
  549. messageSends: ["at:put:", "editorOptions", "yourself"],
  550. referencedClasses: []
  551. }),
  552. globals.HLDebuggerCodeWidget);
  553. smalltalk.addMethod(
  554. smalltalk.method({
  555. selector: "highlight",
  556. protocol: 'actions',
  557. fn: function (){
  558. var self=this;
  559. return smalltalk.withContext(function($ctx1) {
  560. self._highlightNode_(_st(self._browserModel())._nextNode());
  561. return self}, function($ctx1) {$ctx1.fill(self,"highlight",{},globals.HLDebuggerCodeWidget)})},
  562. args: [],
  563. source: "highlight\x0a\x09self highlightNode: self browserModel nextNode",
  564. messageSends: ["highlightNode:", "nextNode", "browserModel"],
  565. referencedClasses: []
  566. }),
  567. globals.HLDebuggerCodeWidget);
  568. smalltalk.addMethod(
  569. smalltalk.method({
  570. selector: "highlightNode:",
  571. protocol: 'actions',
  572. fn: function (aNode){
  573. var self=this;
  574. var token;
  575. return smalltalk.withContext(function($ctx1) {
  576. var $4,$3,$2,$1,$5,$9,$8,$7,$11,$10,$6,$15,$14,$13,$12;
  577. if(($receiver = aNode) == nil || $receiver == null){
  578. aNode;
  579. } else {
  580. self._clearHighlight();
  581. $4=_st(aNode)._positionStart();
  582. $ctx1.sendIdx["positionStart"]=1;
  583. $3=_st($4)._x();
  584. $ctx1.sendIdx["x"]=1;
  585. $2=_st($3).__minus((1));
  586. $ctx1.sendIdx["-"]=1;
  587. $1=self._addStopAt_($2);
  588. $1;
  589. $5=self._editor();
  590. $9=_st(aNode)._positionStart();
  591. $ctx1.sendIdx["positionStart"]=2;
  592. $8=_st($9)._x();
  593. $ctx1.sendIdx["x"]=2;
  594. $7=_st($8).__minus((1));
  595. $ctx1.sendIdx["-"]=2;
  596. $11=_st(_st(aNode)._positionStart())._y();
  597. $ctx1.sendIdx["y"]=1;
  598. $10=_st($11).__minus((1));
  599. $ctx1.sendIdx["-"]=3;
  600. $6=globals.HashedCollection._newFromPairs_(["line",$7,"ch",$10]);
  601. $15=_st(aNode)._positionEnd();
  602. $ctx1.sendIdx["positionEnd"]=1;
  603. $14=_st($15)._x();
  604. $13=_st($14).__minus((1));
  605. $12=globals.HashedCollection._newFromPairs_(["line",$13,"ch",_st(_st(aNode)._positionEnd())._y()]);
  606. _st($5)._setSelection_to_($6,$12);
  607. };
  608. return self}, function($ctx1) {$ctx1.fill(self,"highlightNode:",{aNode:aNode,token:token},globals.HLDebuggerCodeWidget)})},
  609. args: ["aNode"],
  610. source: "highlightNode: aNode\x0a\x09| token |\x0a\x09\x0a\x09aNode ifNotNil: [\x0a\x09\x09self\x0a\x09\x09\x09clearHighlight;\x0a\x09\x09\x09addStopAt: aNode positionStart x - 1.\x0a\x0a\x09\x09self editor \x0a\x09\x09\x09setSelection: #{ 'line' -> (aNode positionStart x - 1). 'ch' -> (aNode positionStart y - 1) }\x0a\x09\x09\x09to: #{ 'line' -> (aNode positionEnd x - 1). 'ch' -> (aNode positionEnd y) } ]",
  611. messageSends: ["ifNotNil:", "clearHighlight", "addStopAt:", "-", "x", "positionStart", "setSelection:to:", "editor", "y", "positionEnd"],
  612. referencedClasses: []
  613. }),
  614. globals.HLDebuggerCodeWidget);
  615. smalltalk.addMethod(
  616. smalltalk.method({
  617. selector: "observeBrowserModel",
  618. protocol: 'actions',
  619. fn: function (){
  620. var self=this;
  621. function $HLDebuggerContextSelected(){return globals.HLDebuggerContextSelected||(typeof HLDebuggerContextSelected=="undefined"?nil:HLDebuggerContextSelected)}
  622. function $HLDebuggerStepped(){return globals.HLDebuggerStepped||(typeof HLDebuggerStepped=="undefined"?nil:HLDebuggerStepped)}
  623. function $HLDebuggerWhere(){return globals.HLDebuggerWhere||(typeof HLDebuggerWhere=="undefined"?nil:HLDebuggerWhere)}
  624. return smalltalk.withContext(function($ctx1) {
  625. var $2,$1,$4,$3;
  626. globals.HLDebuggerCodeWidget.superclass.fn.prototype._observeBrowserModel.apply(_st(self), []);
  627. $2=self._browserModel();
  628. $ctx1.sendIdx["browserModel"]=1;
  629. $1=_st($2)._announcer();
  630. $ctx1.sendIdx["announcer"]=1;
  631. _st($1)._on_send_to_($HLDebuggerContextSelected(),"onContextSelected",self);
  632. $ctx1.sendIdx["on:send:to:"]=1;
  633. $4=self._browserModel();
  634. $ctx1.sendIdx["browserModel"]=2;
  635. $3=_st($4)._announcer();
  636. $ctx1.sendIdx["announcer"]=2;
  637. _st($3)._on_send_to_($HLDebuggerStepped(),"onContextSelected",self);
  638. $ctx1.sendIdx["on:send:to:"]=2;
  639. _st(_st(self._browserModel())._announcer())._on_send_to_($HLDebuggerWhere(),"onContextSelected",self);
  640. return self}, function($ctx1) {$ctx1.fill(self,"observeBrowserModel",{},globals.HLDebuggerCodeWidget)})},
  641. args: [],
  642. source: "observeBrowserModel\x0a\x09super observeBrowserModel.\x0a\x09\x0a\x09self browserModel announcer \x0a\x09\x09on: HLDebuggerContextSelected\x0a\x09\x09send: #onContextSelected\x0a\x09\x09to: self.\x0a\x09\x0a\x09self browserModel announcer \x0a\x09\x09on: HLDebuggerStepped\x0a\x09\x09send: #onContextSelected\x0a\x09\x09to: self.\x0a\x09\x0a\x09self browserModel announcer \x0a\x09\x09on: HLDebuggerWhere\x0a\x09\x09send: #onContextSelected\x0a\x09\x09to: self",
  643. messageSends: ["observeBrowserModel", "on:send:to:", "announcer", "browserModel"],
  644. referencedClasses: ["HLDebuggerContextSelected", "HLDebuggerStepped", "HLDebuggerWhere"]
  645. }),
  646. globals.HLDebuggerCodeWidget);
  647. smalltalk.addMethod(
  648. smalltalk.method({
  649. selector: "onContextSelected",
  650. protocol: 'reactions',
  651. fn: function (){
  652. var self=this;
  653. return smalltalk.withContext(function($ctx1) {
  654. self._highlight();
  655. return self}, function($ctx1) {$ctx1.fill(self,"onContextSelected",{},globals.HLDebuggerCodeWidget)})},
  656. args: [],
  657. source: "onContextSelected\x0a\x09self highlight",
  658. messageSends: ["highlight"],
  659. referencedClasses: []
  660. }),
  661. globals.HLDebuggerCodeWidget);
  662. smalltalk.addClass('HLDebuggerModel', globals.HLToolModel, ['rootContext', 'currentContext', 'contexts', 'error'], 'Helios-Debugger');
  663. globals.HLDebuggerModel.comment="I am a model for debugging Amber code in Helios.\x0a\x0aMy instances hold a reference to an `AIContext` instance, built from a `MethodContext`. The context should be the root of the context stack.";
  664. smalltalk.addMethod(
  665. smalltalk.method({
  666. selector: "contexts",
  667. protocol: 'accessing',
  668. fn: function (){
  669. var self=this;
  670. var $1;
  671. $1=self["@contexts"];
  672. return $1;
  673. },
  674. args: [],
  675. source: "contexts\x0a\x09^ contexts",
  676. messageSends: [],
  677. referencedClasses: []
  678. }),
  679. globals.HLDebuggerModel);
  680. smalltalk.addMethod(
  681. smalltalk.method({
  682. selector: "currentContext",
  683. protocol: 'accessing',
  684. fn: function (){
  685. var self=this;
  686. return smalltalk.withContext(function($ctx1) {
  687. var $1,$2;
  688. $1=self["@currentContext"];
  689. if(($receiver = $1) == nil || $receiver == null){
  690. self._currentContext_(self._rootContext());
  691. } else {
  692. $1;
  693. };
  694. $2=self["@currentContext"];
  695. return $2;
  696. }, function($ctx1) {$ctx1.fill(self,"currentContext",{},globals.HLDebuggerModel)})},
  697. args: [],
  698. source: "currentContext\x0a\x09currentContext ifNil: [ self currentContext: self rootContext ].\x0a\x09^ currentContext",
  699. messageSends: ["ifNil:", "currentContext:", "rootContext"],
  700. referencedClasses: []
  701. }),
  702. globals.HLDebuggerModel);
  703. smalltalk.addMethod(
  704. smalltalk.method({
  705. selector: "currentContext:",
  706. protocol: 'accessing',
  707. fn: function (aContext){
  708. var self=this;
  709. function $HLDebuggerContextSelected(){return globals.HLDebuggerContextSelected||(typeof HLDebuggerContextSelected=="undefined"?nil:HLDebuggerContextSelected)}
  710. return smalltalk.withContext(function($ctx1) {
  711. var $1,$2;
  712. self._withChangesDo_((function(){
  713. return smalltalk.withContext(function($ctx2) {
  714. self._selectedMethod_(_st(aContext)._method());
  715. self["@currentContext"]=aContext;
  716. self["@currentContext"];
  717. $1=_st($HLDebuggerContextSelected())._new();
  718. _st($1)._context_(aContext);
  719. $2=_st($1)._yourself();
  720. return _st(self._announcer())._announce_($2);
  721. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  722. return self}, function($ctx1) {$ctx1.fill(self,"currentContext:",{aContext:aContext},globals.HLDebuggerModel)})},
  723. args: ["aContext"],
  724. source: "currentContext: aContext\x0a\x09self withChangesDo: [ \x0a\x09\x09self selectedMethod: aContext method.\x0a\x09\x09currentContext := aContext.\x0a\x09\x09self announcer announce: (HLDebuggerContextSelected new\x0a\x09\x09\x09context: aContext;\x0a\x09\x09\x09yourself) ]",
  725. messageSends: ["withChangesDo:", "selectedMethod:", "method", "announce:", "announcer", "context:", "new", "yourself"],
  726. referencedClasses: ["HLDebuggerContextSelected"]
  727. }),
  728. globals.HLDebuggerModel);
  729. smalltalk.addMethod(
  730. smalltalk.method({
  731. selector: "error",
  732. protocol: 'accessing',
  733. fn: function (){
  734. var self=this;
  735. var $1;
  736. $1=self["@error"];
  737. return $1;
  738. },
  739. args: [],
  740. source: "error\x0a\x09^ error",
  741. messageSends: [],
  742. referencedClasses: []
  743. }),
  744. globals.HLDebuggerModel);
  745. smalltalk.addMethod(
  746. smalltalk.method({
  747. selector: "error:",
  748. protocol: 'accessing',
  749. fn: function (anError){
  750. var self=this;
  751. self["@error"]=anError;
  752. return self},
  753. args: ["anError"],
  754. source: "error: anError\x0a\x09error := anError",
  755. messageSends: [],
  756. referencedClasses: []
  757. }),
  758. globals.HLDebuggerModel);
  759. smalltalk.addMethod(
  760. smalltalk.method({
  761. selector: "evaluate:",
  762. protocol: 'evaluating',
  763. fn: function (aString){
  764. var self=this;
  765. return smalltalk.withContext(function($ctx1) {
  766. var $1;
  767. $1=_st(self._environment())._interpret_inContext_(aString,self._currentContext());
  768. return $1;
  769. }, function($ctx1) {$ctx1.fill(self,"evaluate:",{aString:aString},globals.HLDebuggerModel)})},
  770. args: ["aString"],
  771. source: "evaluate: aString\x0a\x09^ self environment \x0a\x09\x09interpret: aString \x0a\x09\x09inContext: self currentContext",
  772. messageSends: ["interpret:inContext:", "environment", "currentContext"],
  773. referencedClasses: []
  774. }),
  775. globals.HLDebuggerModel);
  776. smalltalk.addMethod(
  777. smalltalk.method({
  778. selector: "flushInnerContexts",
  779. protocol: 'private',
  780. fn: function (){
  781. var self=this;
  782. return smalltalk.withContext(function($ctx1) {
  783. var $1;
  784. $1=self._currentContext();
  785. $ctx1.sendIdx["currentContext"]=1;
  786. _st($1)._innerContext_(nil);
  787. self["@rootContext"]=self._currentContext();
  788. self._initializeContexts();
  789. return self}, function($ctx1) {$ctx1.fill(self,"flushInnerContexts",{},globals.HLDebuggerModel)})},
  790. args: [],
  791. source: "flushInnerContexts\x0a\x09\x22When stepping, the inner contexts are not relevent anymore,\x0a\x09and can be flushed\x22\x0a\x09\x0a\x09self currentContext innerContext: nil.\x0a\x09rootContext := self currentContext.\x0a\x09self initializeContexts",
  792. messageSends: ["innerContext:", "currentContext", "initializeContexts"],
  793. referencedClasses: []
  794. }),
  795. globals.HLDebuggerModel);
  796. smalltalk.addMethod(
  797. smalltalk.method({
  798. selector: "initializeContexts",
  799. protocol: 'initialization',
  800. fn: function (){
  801. var self=this;
  802. var context;
  803. function $OrderedCollection(){return globals.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  804. return smalltalk.withContext(function($ctx1) {
  805. self["@contexts"]=_st($OrderedCollection())._new();
  806. context=self._rootContext();
  807. _st((function(){
  808. return smalltalk.withContext(function($ctx2) {
  809. return _st(context)._notNil();
  810. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}))._whileTrue_((function(){
  811. return smalltalk.withContext(function($ctx2) {
  812. _st(self["@contexts"])._add_(context);
  813. context=_st(context)._outerContext();
  814. return context;
  815. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)})}));
  816. return self}, function($ctx1) {$ctx1.fill(self,"initializeContexts",{context:context},globals.HLDebuggerModel)})},
  817. args: [],
  818. source: "initializeContexts\x0a\x09\x22Flatten the context stack into an OrderedCollection\x22\x0a\x09\x0a\x09| context |\x0a\x09\x0a\x09contexts := OrderedCollection new.\x0a\x09context := self rootContext.\x0a\x09\x0a\x09[ context notNil ] whileTrue: [\x0a\x09\x09contexts add: context.\x0a\x09\x09context := context outerContext ]",
  819. messageSends: ["new", "rootContext", "whileTrue:", "notNil", "add:", "outerContext"],
  820. referencedClasses: ["OrderedCollection"]
  821. }),
  822. globals.HLDebuggerModel);
  823. smalltalk.addMethod(
  824. smalltalk.method({
  825. selector: "initializeFromContext:",
  826. protocol: 'initialization',
  827. fn: function (aMethodContext){
  828. var self=this;
  829. function $AIContext(){return globals.AIContext||(typeof AIContext=="undefined"?nil:AIContext)}
  830. return smalltalk.withContext(function($ctx1) {
  831. self["@rootContext"]=_st($AIContext())._fromMethodContext_(aMethodContext);
  832. self._initializeContexts();
  833. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromContext:",{aMethodContext:aMethodContext},globals.HLDebuggerModel)})},
  834. args: ["aMethodContext"],
  835. source: "initializeFromContext: aMethodContext\x0a\x09rootContext := (AIContext fromMethodContext: aMethodContext).\x0a\x09self initializeContexts",
  836. messageSends: ["fromMethodContext:", "initializeContexts"],
  837. referencedClasses: ["AIContext"]
  838. }),
  839. globals.HLDebuggerModel);
  840. smalltalk.addMethod(
  841. smalltalk.method({
  842. selector: "initializeFromError:",
  843. protocol: 'initialization',
  844. fn: function (anError){
  845. var self=this;
  846. function $AIContext(){return globals.AIContext||(typeof AIContext=="undefined"?nil:AIContext)}
  847. return smalltalk.withContext(function($ctx1) {
  848. self["@error"]=anError;
  849. self["@rootContext"]=_st($AIContext())._fromMethodContext_(_st(self["@error"])._context());
  850. self._initializeContexts();
  851. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromError:",{anError:anError},globals.HLDebuggerModel)})},
  852. args: ["anError"],
  853. source: "initializeFromError: anError\x0a\x09error := anError.\x0a\x09rootContext := (AIContext fromMethodContext: error context).\x0a\x09self initializeContexts",
  854. messageSends: ["fromMethodContext:", "context", "initializeContexts"],
  855. referencedClasses: ["AIContext"]
  856. }),
  857. globals.HLDebuggerModel);
  858. smalltalk.addMethod(
  859. smalltalk.method({
  860. selector: "interpreter",
  861. protocol: 'accessing',
  862. fn: function (){
  863. var self=this;
  864. return smalltalk.withContext(function($ctx1) {
  865. var $1;
  866. $1=_st(self._currentContext())._interpreter();
  867. return $1;
  868. }, function($ctx1) {$ctx1.fill(self,"interpreter",{},globals.HLDebuggerModel)})},
  869. args: [],
  870. source: "interpreter\x0a\x09^ self currentContext interpreter",
  871. messageSends: ["interpreter", "currentContext"],
  872. referencedClasses: []
  873. }),
  874. globals.HLDebuggerModel);
  875. smalltalk.addMethod(
  876. smalltalk.method({
  877. selector: "nextNode",
  878. protocol: 'accessing',
  879. fn: function (){
  880. var self=this;
  881. return smalltalk.withContext(function($ctx1) {
  882. var $1;
  883. $1=_st(self._interpreter())._node();
  884. return $1;
  885. }, function($ctx1) {$ctx1.fill(self,"nextNode",{},globals.HLDebuggerModel)})},
  886. args: [],
  887. source: "nextNode\x0a\x09^ self interpreter node",
  888. messageSends: ["node", "interpreter"],
  889. referencedClasses: []
  890. }),
  891. globals.HLDebuggerModel);
  892. smalltalk.addMethod(
  893. smalltalk.method({
  894. selector: "restart",
  895. protocol: 'actions',
  896. fn: function (){
  897. var self=this;
  898. function $HLDebuggerStepped(){return globals.HLDebuggerStepped||(typeof HLDebuggerStepped=="undefined"?nil:HLDebuggerStepped)}
  899. return smalltalk.withContext(function($ctx1) {
  900. var $1,$2;
  901. _st(self._interpreter())._restart();
  902. self._flushInnerContexts();
  903. $1=_st($HLDebuggerStepped())._new();
  904. _st($1)._context_(self._currentContext());
  905. $2=_st($1)._yourself();
  906. _st(self._announcer())._announce_($2);
  907. return self}, function($ctx1) {$ctx1.fill(self,"restart",{},globals.HLDebuggerModel)})},
  908. args: [],
  909. source: "restart\x0a\x09self interpreter restart.\x0a\x09self flushInnerContexts.\x0a\x09\x0a\x09self announcer announce: (HLDebuggerStepped new\x0a\x09\x09context: self currentContext;\x0a\x09\x09yourself)",
  910. messageSends: ["restart", "interpreter", "flushInnerContexts", "announce:", "announcer", "context:", "new", "currentContext", "yourself"],
  911. referencedClasses: ["HLDebuggerStepped"]
  912. }),
  913. globals.HLDebuggerModel);
  914. smalltalk.addMethod(
  915. smalltalk.method({
  916. selector: "rootContext",
  917. protocol: 'accessing',
  918. fn: function (){
  919. var self=this;
  920. var $1;
  921. $1=self["@rootContext"];
  922. return $1;
  923. },
  924. args: [],
  925. source: "rootContext\x0a\x09^ rootContext",
  926. messageSends: [],
  927. referencedClasses: []
  928. }),
  929. globals.HLDebuggerModel);
  930. smalltalk.addMethod(
  931. smalltalk.method({
  932. selector: "skip",
  933. protocol: 'actions',
  934. fn: function (){
  935. var self=this;
  936. function $HLDebuggerStepped(){return globals.HLDebuggerStepped||(typeof HLDebuggerStepped=="undefined"?nil:HLDebuggerStepped)}
  937. return smalltalk.withContext(function($ctx1) {
  938. var $1,$2;
  939. _st(self._interpreter())._skip();
  940. self._flushInnerContexts();
  941. $1=_st($HLDebuggerStepped())._new();
  942. _st($1)._context_(self._currentContext());
  943. $2=_st($1)._yourself();
  944. _st(self._announcer())._announce_($2);
  945. return self}, function($ctx1) {$ctx1.fill(self,"skip",{},globals.HLDebuggerModel)})},
  946. args: [],
  947. source: "skip\x0a\x09self interpreter skip.\x0a\x09self flushInnerContexts.\x0a\x09\x0a\x09self announcer announce: (HLDebuggerStepped new\x0a\x09\x09context: self currentContext;\x0a\x09\x09yourself)",
  948. messageSends: ["skip", "interpreter", "flushInnerContexts", "announce:", "announcer", "context:", "new", "currentContext", "yourself"],
  949. referencedClasses: ["HLDebuggerStepped"]
  950. }),
  951. globals.HLDebuggerModel);
  952. smalltalk.addMethod(
  953. smalltalk.method({
  954. selector: "stepOver",
  955. protocol: 'actions',
  956. fn: function (){
  957. var self=this;
  958. function $HLDebuggerStepped(){return globals.HLDebuggerStepped||(typeof HLDebuggerStepped=="undefined"?nil:HLDebuggerStepped)}
  959. return smalltalk.withContext(function($ctx1) {
  960. var $1,$2;
  961. _st(self._interpreter())._stepOver();
  962. self._flushInnerContexts();
  963. $1=_st($HLDebuggerStepped())._new();
  964. _st($1)._context_(self._currentContext());
  965. $2=_st($1)._yourself();
  966. _st(self._announcer())._announce_($2);
  967. return self}, function($ctx1) {$ctx1.fill(self,"stepOver",{},globals.HLDebuggerModel)})},
  968. args: [],
  969. source: "stepOver\x0a\x09self interpreter stepOver.\x0a\x09self flushInnerContexts.\x0a\x09\x0a\x09self announcer announce: (HLDebuggerStepped new\x0a\x09\x09context: self currentContext;\x0a\x09\x09yourself)",
  970. messageSends: ["stepOver", "interpreter", "flushInnerContexts", "announce:", "announcer", "context:", "new", "currentContext", "yourself"],
  971. referencedClasses: ["HLDebuggerStepped"]
  972. }),
  973. globals.HLDebuggerModel);
  974. smalltalk.addMethod(
  975. smalltalk.method({
  976. selector: "where",
  977. protocol: 'actions',
  978. fn: function (){
  979. var self=this;
  980. function $HLDebuggerWhere(){return globals.HLDebuggerWhere||(typeof HLDebuggerWhere=="undefined"?nil:HLDebuggerWhere)}
  981. return smalltalk.withContext(function($ctx1) {
  982. _st(self._announcer())._announce_(_st($HLDebuggerWhere())._new());
  983. return self}, function($ctx1) {$ctx1.fill(self,"where",{},globals.HLDebuggerModel)})},
  984. args: [],
  985. source: "where\x0a\x09self announcer announce: HLDebuggerWhere new",
  986. messageSends: ["announce:", "announcer", "new"],
  987. referencedClasses: ["HLDebuggerWhere"]
  988. }),
  989. globals.HLDebuggerModel);
  990. smalltalk.addMethod(
  991. smalltalk.method({
  992. selector: "on:",
  993. protocol: 'instance creation',
  994. fn: function (anError){
  995. var self=this;
  996. return smalltalk.withContext(function($ctx1) {
  997. var $2,$3,$1;
  998. $2=self._new();
  999. _st($2)._initializeFromError_(anError);
  1000. $3=_st($2)._yourself();
  1001. $1=$3;
  1002. return $1;
  1003. }, function($ctx1) {$ctx1.fill(self,"on:",{anError:anError},globals.HLDebuggerModel.klass)})},
  1004. args: ["anError"],
  1005. source: "on: anError\x0a\x09^ self new\x0a\x09\x09initializeFromError: anError;\x0a\x09\x09yourself",
  1006. messageSends: ["initializeFromError:", "new", "yourself"],
  1007. referencedClasses: []
  1008. }),
  1009. globals.HLDebuggerModel.klass);
  1010. smalltalk.addClass('HLErrorHandler', globals.Object, [], 'Helios-Debugger');
  1011. smalltalk.addMethod(
  1012. smalltalk.method({
  1013. selector: "confirmDebugError:",
  1014. protocol: 'error handling',
  1015. fn: function (anError){
  1016. var self=this;
  1017. function $HLConfirmationWidget(){return globals.HLConfirmationWidget||(typeof HLConfirmationWidget=="undefined"?nil:HLConfirmationWidget)}
  1018. return smalltalk.withContext(function($ctx1) {
  1019. var $1,$2;
  1020. $1=_st($HLConfirmationWidget())._new();
  1021. _st($1)._confirmationString_(_st(anError)._messageText());
  1022. _st($1)._actionBlock_((function(){
  1023. return smalltalk.withContext(function($ctx2) {
  1024. return self._debugError_(anError);
  1025. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  1026. _st($1)._cancelButtonLabel_("Abandon");
  1027. _st($1)._confirmButtonLabel_("Debug");
  1028. $2=_st($1)._show();
  1029. return self}, function($ctx1) {$ctx1.fill(self,"confirmDebugError:",{anError:anError},globals.HLErrorHandler)})},
  1030. args: ["anError"],
  1031. source: "confirmDebugError: anError\x0a\x09HLConfirmationWidget new\x0a\x09\x09confirmationString: anError messageText;\x0a\x09\x09actionBlock: [ self debugError: anError ];\x0a\x09\x09cancelButtonLabel: 'Abandon';\x0a\x09\x09confirmButtonLabel: 'Debug';\x0a\x09\x09show",
  1032. messageSends: ["confirmationString:", "new", "messageText", "actionBlock:", "debugError:", "cancelButtonLabel:", "confirmButtonLabel:", "show"],
  1033. referencedClasses: ["HLConfirmationWidget"]
  1034. }),
  1035. globals.HLErrorHandler);
  1036. smalltalk.addMethod(
  1037. smalltalk.method({
  1038. selector: "debugError:",
  1039. protocol: 'error handling',
  1040. fn: function (anError){
  1041. var self=this;
  1042. function $HLDebugger(){return globals.HLDebugger||(typeof HLDebugger=="undefined"?nil:HLDebugger)}
  1043. function $Error(){return globals.Error||(typeof Error=="undefined"?nil:Error)}
  1044. function $ConsoleErrorHandler(){return globals.ConsoleErrorHandler||(typeof ConsoleErrorHandler=="undefined"?nil:ConsoleErrorHandler)}
  1045. return smalltalk.withContext(function($ctx1) {
  1046. _st((function(){
  1047. return smalltalk.withContext(function($ctx2) {
  1048. return _st(_st($HLDebugger())._on_(anError))._openAsTab();
  1049. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}))._on_do_($Error(),(function(error){
  1050. return smalltalk.withContext(function($ctx2) {
  1051. return _st(_st($ConsoleErrorHandler())._new())._handleError_(error);
  1052. }, function($ctx2) {$ctx2.fillBlock({error:error},$ctx1,2)})}));
  1053. return self}, function($ctx1) {$ctx1.fill(self,"debugError:",{anError:anError},globals.HLErrorHandler)})},
  1054. args: ["anError"],
  1055. source: "debugError: anError\x0a\x0a\x09[ \x0a\x09\x09(HLDebugger on: anError) openAsTab \x0a\x09] \x0a\x09\x09on: Error \x0a\x09\x09do: [ :error | ConsoleErrorHandler new handleError: error ]",
  1056. messageSends: ["on:do:", "openAsTab", "on:", "handleError:", "new"],
  1057. referencedClasses: ["HLDebugger", "Error", "ConsoleErrorHandler"]
  1058. }),
  1059. globals.HLErrorHandler);
  1060. smalltalk.addMethod(
  1061. smalltalk.method({
  1062. selector: "handleError:",
  1063. protocol: 'error handling',
  1064. fn: function (anError){
  1065. var self=this;
  1066. return smalltalk.withContext(function($ctx1) {
  1067. self._confirmDebugError_(anError);
  1068. return self}, function($ctx1) {$ctx1.fill(self,"handleError:",{anError:anError},globals.HLErrorHandler)})},
  1069. args: ["anError"],
  1070. source: "handleError: anError\x0a\x09self confirmDebugError: anError",
  1071. messageSends: ["confirmDebugError:"],
  1072. referencedClasses: []
  1073. }),
  1074. globals.HLErrorHandler);
  1075. smalltalk.addMethod(
  1076. smalltalk.method({
  1077. selector: "onErrorHandled",
  1078. protocol: 'error handling',
  1079. fn: function (){
  1080. var self=this;
  1081. function $HLProgressWidget(){return globals.HLProgressWidget||(typeof HLProgressWidget=="undefined"?nil:HLProgressWidget)}
  1082. return smalltalk.withContext(function($ctx1) {
  1083. var $1,$2;
  1084. $1=_st($HLProgressWidget())._default();
  1085. _st($1)._flush();
  1086. $2=_st($1)._remove();
  1087. return self}, function($ctx1) {$ctx1.fill(self,"onErrorHandled",{},globals.HLErrorHandler)})},
  1088. args: [],
  1089. source: "onErrorHandled\x0a\x09\x22when an error is handled, we need to make sure that\x0a\x09any progress bar widget gets removed. Because HLProgressBarWidget is asynchronous,\x0a\x09it has to be done here.\x22\x0a\x09\x0a\x09HLProgressWidget default \x0a\x09\x09flush; \x0a\x09\x09remove",
  1090. messageSends: ["flush", "default", "remove"],
  1091. referencedClasses: ["HLProgressWidget"]
  1092. }),
  1093. globals.HLErrorHandler);
  1094. smalltalk.addClass('HLStackListWidget', globals.HLToolListWidget, [], 'Helios-Debugger');
  1095. smalltalk.addMethod(
  1096. smalltalk.method({
  1097. selector: "items",
  1098. protocol: 'accessing',
  1099. fn: function (){
  1100. var self=this;
  1101. return smalltalk.withContext(function($ctx1) {
  1102. var $2,$1;
  1103. $2=self["@items"];
  1104. if(($receiver = $2) == nil || $receiver == null){
  1105. self["@items"]=_st(self._model())._contexts();
  1106. $1=self["@items"];
  1107. } else {
  1108. $1=$2;
  1109. };
  1110. return $1;
  1111. }, function($ctx1) {$ctx1.fill(self,"items",{},globals.HLStackListWidget)})},
  1112. args: [],
  1113. source: "items\x0a\x09^ items ifNil: [ items := self model contexts ]",
  1114. messageSends: ["ifNil:", "contexts", "model"],
  1115. referencedClasses: []
  1116. }),
  1117. globals.HLStackListWidget);
  1118. smalltalk.addMethod(
  1119. smalltalk.method({
  1120. selector: "label",
  1121. protocol: 'accessing',
  1122. fn: function (){
  1123. var self=this;
  1124. return "Call stack";
  1125. },
  1126. args: [],
  1127. source: "label\x0a\x09^ 'Call stack'",
  1128. messageSends: [],
  1129. referencedClasses: []
  1130. }),
  1131. globals.HLStackListWidget);
  1132. smalltalk.addMethod(
  1133. smalltalk.method({
  1134. selector: "observeModel",
  1135. protocol: 'actions',
  1136. fn: function (){
  1137. var self=this;
  1138. function $HLDebuggerStepped(){return globals.HLDebuggerStepped||(typeof HLDebuggerStepped=="undefined"?nil:HLDebuggerStepped)}
  1139. return smalltalk.withContext(function($ctx1) {
  1140. globals.HLStackListWidget.superclass.fn.prototype._observeModel.apply(_st(self), []);
  1141. _st(_st(self._model())._announcer())._on_send_to_($HLDebuggerStepped(),"onDebuggerStepped:",self);
  1142. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},globals.HLStackListWidget)})},
  1143. args: [],
  1144. source: "observeModel\x0a\x09super observeModel.\x0a\x09\x0a\x09self model announcer \x0a\x09\x09on: HLDebuggerStepped\x0a\x09\x09send: #onDebuggerStepped:\x0a\x09\x09to: self",
  1145. messageSends: ["observeModel", "on:send:to:", "announcer", "model"],
  1146. referencedClasses: ["HLDebuggerStepped"]
  1147. }),
  1148. globals.HLStackListWidget);
  1149. smalltalk.addMethod(
  1150. smalltalk.method({
  1151. selector: "onDebuggerStepped:",
  1152. protocol: 'reactions',
  1153. fn: function (anAnnouncement){
  1154. var self=this;
  1155. return smalltalk.withContext(function($ctx1) {
  1156. self["@items"]=nil;
  1157. self._refresh();
  1158. return self}, function($ctx1) {$ctx1.fill(self,"onDebuggerStepped:",{anAnnouncement:anAnnouncement},globals.HLStackListWidget)})},
  1159. args: ["anAnnouncement"],
  1160. source: "onDebuggerStepped: anAnnouncement\x0a\x09items := nil.\x0a\x09self refresh",
  1161. messageSends: ["refresh"],
  1162. referencedClasses: []
  1163. }),
  1164. globals.HLStackListWidget);
  1165. smalltalk.addMethod(
  1166. smalltalk.method({
  1167. selector: "renderButtonsOn:",
  1168. protocol: 'rendering',
  1169. fn: function (html){
  1170. var self=this;
  1171. return smalltalk.withContext(function($ctx1) {
  1172. var $1,$3,$4,$5,$6,$7,$8,$9,$10,$2;
  1173. $1=_st(html)._div();
  1174. _st($1)._class_("debugger_bar");
  1175. $ctx1.sendIdx["class:"]=1;
  1176. $2=_st($1)._with_((function(){
  1177. return smalltalk.withContext(function($ctx2) {
  1178. $3=_st(html)._button();
  1179. $ctx2.sendIdx["button"]=1;
  1180. _st($3)._class_("btn restart");
  1181. $ctx2.sendIdx["class:"]=2;
  1182. _st($3)._with_("Restart");
  1183. $ctx2.sendIdx["with:"]=2;
  1184. $4=_st($3)._onClick_((function(){
  1185. return smalltalk.withContext(function($ctx3) {
  1186. return self._restart();
  1187. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)})}));
  1188. $ctx2.sendIdx["onClick:"]=1;
  1189. $4;
  1190. $5=_st(html)._button();
  1191. $ctx2.sendIdx["button"]=2;
  1192. _st($5)._class_("btn where");
  1193. $ctx2.sendIdx["class:"]=3;
  1194. _st($5)._with_("Where");
  1195. $ctx2.sendIdx["with:"]=3;
  1196. $6=_st($5)._onClick_((function(){
  1197. return smalltalk.withContext(function($ctx3) {
  1198. return self._where();
  1199. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,3)})}));
  1200. $ctx2.sendIdx["onClick:"]=2;
  1201. $6;
  1202. $7=_st(html)._button();
  1203. $ctx2.sendIdx["button"]=3;
  1204. _st($7)._class_("btn stepOver");
  1205. $ctx2.sendIdx["class:"]=4;
  1206. _st($7)._with_("Step over");
  1207. $ctx2.sendIdx["with:"]=4;
  1208. $8=_st($7)._onClick_((function(){
  1209. return smalltalk.withContext(function($ctx3) {
  1210. return self._stepOver();
  1211. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,4)})}));
  1212. $ctx2.sendIdx["onClick:"]=3;
  1213. $8;
  1214. $9=_st(html)._button();
  1215. _st($9)._class_("btn skip");
  1216. _st($9)._with_("Skip");
  1217. $10=_st($9)._onClick_((function(){
  1218. return smalltalk.withContext(function($ctx3) {
  1219. return self._skip();
  1220. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,5)})}));
  1221. return $10;
  1222. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  1223. $ctx1.sendIdx["with:"]=1;
  1224. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},globals.HLStackListWidget)})},
  1225. args: ["html"],
  1226. source: "renderButtonsOn: html\x0a\x09html div \x0a\x09\x09class: 'debugger_bar'; \x0a\x09\x09with: [\x0a\x09\x09\x09html button \x0a\x09\x09\x09\x09class: 'btn restart';\x0a\x09\x09\x09\x09with: 'Restart';\x0a\x09\x09\x09\x09onClick: [ self restart ].\x0a\x09\x09\x09html button \x0a\x09\x09\x09\x09class: 'btn where';\x0a\x09\x09\x09\x09with: 'Where';\x0a\x09\x09\x09\x09onClick: [ self where ].\x0a\x09\x09\x09html button \x0a\x09\x09\x09\x09class: 'btn stepOver';\x0a\x09\x09\x09\x09with: 'Step over';\x0a\x09\x09\x09\x09onClick: [ self stepOver ].\x0a\x09\x09\x09html button \x0a\x09\x09\x09\x09class: 'btn skip';\x0a\x09\x09\x09\x09with: 'Skip';\x0a\x09\x09\x09\x09onClick: [ self skip ] ]",
  1227. messageSends: ["class:", "div", "with:", "button", "onClick:", "restart", "where", "stepOver", "skip"],
  1228. referencedClasses: []
  1229. }),
  1230. globals.HLStackListWidget);
  1231. smalltalk.addMethod(
  1232. smalltalk.method({
  1233. selector: "restart",
  1234. protocol: 'actions',
  1235. fn: function (){
  1236. var self=this;
  1237. return smalltalk.withContext(function($ctx1) {
  1238. _st(self._model())._restart();
  1239. return self}, function($ctx1) {$ctx1.fill(self,"restart",{},globals.HLStackListWidget)})},
  1240. args: [],
  1241. source: "restart\x0a\x09self model restart",
  1242. messageSends: ["restart", "model"],
  1243. referencedClasses: []
  1244. }),
  1245. globals.HLStackListWidget);
  1246. smalltalk.addMethod(
  1247. smalltalk.method({
  1248. selector: "selectItem:",
  1249. protocol: 'actions',
  1250. fn: function (aContext){
  1251. var self=this;
  1252. return smalltalk.withContext(function($ctx1) {
  1253. _st(self._model())._currentContext_(aContext);
  1254. globals.HLStackListWidget.superclass.fn.prototype._selectItem_.apply(_st(self), [aContext]);
  1255. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aContext:aContext},globals.HLStackListWidget)})},
  1256. args: ["aContext"],
  1257. source: "selectItem: aContext\x0a \x09self model currentContext: aContext.\x0a\x09super selectItem: aContext",
  1258. messageSends: ["currentContext:", "model", "selectItem:"],
  1259. referencedClasses: []
  1260. }),
  1261. globals.HLStackListWidget);
  1262. smalltalk.addMethod(
  1263. smalltalk.method({
  1264. selector: "skip",
  1265. protocol: 'actions',
  1266. fn: function (){
  1267. var self=this;
  1268. return smalltalk.withContext(function($ctx1) {
  1269. _st(self._model())._skip();
  1270. return self}, function($ctx1) {$ctx1.fill(self,"skip",{},globals.HLStackListWidget)})},
  1271. args: [],
  1272. source: "skip\x0a\x09self model skip",
  1273. messageSends: ["skip", "model"],
  1274. referencedClasses: []
  1275. }),
  1276. globals.HLStackListWidget);
  1277. smalltalk.addMethod(
  1278. smalltalk.method({
  1279. selector: "stepOver",
  1280. protocol: 'actions',
  1281. fn: function (){
  1282. var self=this;
  1283. return smalltalk.withContext(function($ctx1) {
  1284. _st(self._model())._stepOver();
  1285. return self}, function($ctx1) {$ctx1.fill(self,"stepOver",{},globals.HLStackListWidget)})},
  1286. args: [],
  1287. source: "stepOver\x0a\x09self model stepOver",
  1288. messageSends: ["stepOver", "model"],
  1289. referencedClasses: []
  1290. }),
  1291. globals.HLStackListWidget);
  1292. smalltalk.addMethod(
  1293. smalltalk.method({
  1294. selector: "where",
  1295. protocol: 'actions',
  1296. fn: function (){
  1297. var self=this;
  1298. return smalltalk.withContext(function($ctx1) {
  1299. _st(self._model())._where();
  1300. return self}, function($ctx1) {$ctx1.fill(self,"where",{},globals.HLStackListWidget)})},
  1301. args: [],
  1302. source: "where\x0a\x09self model where",
  1303. messageSends: ["where", "model"],
  1304. referencedClasses: []
  1305. }),
  1306. globals.HLStackListWidget);
  1307. });