Helios-Debugger.js 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391
  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=self._try_catch_((function(){
  471. return smalltalk.withContext(function($ctx2) {
  472. return _st(self._debuggerModel())._evaluate_(aString);
  473. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}),(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 \x0a\x09\x09try: [ self debuggerModel evaluate: aString ]\x0a\x09\x09catch: [ :e | \x0a\x09\x09\x09ErrorHandler handleError: e.\x0a\x09\x09\x09nil ]",
  482. messageSends: ["try:catch:", "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. var $1,$2;
  849. self["@error"]=anError;
  850. _st(console)._log_(self["@error"]);
  851. $ctx1.sendIdx["log:"]=1;
  852. $1=console;
  853. $2=_st(self["@error"])._context();
  854. $ctx1.sendIdx["context"]=1;
  855. _st($1)._log_($2);
  856. self["@rootContext"]=_st($AIContext())._fromMethodContext_(_st(self["@error"])._context());
  857. self._initializeContexts();
  858. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromError:",{anError:anError},globals.HLDebuggerModel)})},
  859. args: ["anError"],
  860. source: "initializeFromError: anError\x0a\x09error := anError.\x0a\x09console log: error.\x0a\x09console log: error context.\x0a\x09rootContext := (AIContext fromMethodContext: error context).\x0a\x09self initializeContexts",
  861. messageSends: ["log:", "context", "fromMethodContext:", "initializeContexts"],
  862. referencedClasses: ["AIContext"]
  863. }),
  864. globals.HLDebuggerModel);
  865. smalltalk.addMethod(
  866. smalltalk.method({
  867. selector: "interpreter",
  868. protocol: 'accessing',
  869. fn: function (){
  870. var self=this;
  871. return smalltalk.withContext(function($ctx1) {
  872. var $1;
  873. $1=_st(self._currentContext())._interpreter();
  874. return $1;
  875. }, function($ctx1) {$ctx1.fill(self,"interpreter",{},globals.HLDebuggerModel)})},
  876. args: [],
  877. source: "interpreter\x0a\x09^ self currentContext interpreter",
  878. messageSends: ["interpreter", "currentContext"],
  879. referencedClasses: []
  880. }),
  881. globals.HLDebuggerModel);
  882. smalltalk.addMethod(
  883. smalltalk.method({
  884. selector: "nextNode",
  885. protocol: 'accessing',
  886. fn: function (){
  887. var self=this;
  888. return smalltalk.withContext(function($ctx1) {
  889. var $1;
  890. $1=_st(self._interpreter())._node();
  891. return $1;
  892. }, function($ctx1) {$ctx1.fill(self,"nextNode",{},globals.HLDebuggerModel)})},
  893. args: [],
  894. source: "nextNode\x0a\x09^ self interpreter node",
  895. messageSends: ["node", "interpreter"],
  896. referencedClasses: []
  897. }),
  898. globals.HLDebuggerModel);
  899. smalltalk.addMethod(
  900. smalltalk.method({
  901. selector: "restart",
  902. protocol: 'actions',
  903. fn: function (){
  904. var self=this;
  905. function $HLDebuggerStepped(){return globals.HLDebuggerStepped||(typeof HLDebuggerStepped=="undefined"?nil:HLDebuggerStepped)}
  906. return smalltalk.withContext(function($ctx1) {
  907. var $1,$2;
  908. _st(self._interpreter())._restart();
  909. self._flushInnerContexts();
  910. $1=_st($HLDebuggerStepped())._new();
  911. _st($1)._context_(self._currentContext());
  912. $2=_st($1)._yourself();
  913. _st(self._announcer())._announce_($2);
  914. return self}, function($ctx1) {$ctx1.fill(self,"restart",{},globals.HLDebuggerModel)})},
  915. args: [],
  916. 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)",
  917. messageSends: ["restart", "interpreter", "flushInnerContexts", "announce:", "announcer", "context:", "new", "currentContext", "yourself"],
  918. referencedClasses: ["HLDebuggerStepped"]
  919. }),
  920. globals.HLDebuggerModel);
  921. smalltalk.addMethod(
  922. smalltalk.method({
  923. selector: "rootContext",
  924. protocol: 'accessing',
  925. fn: function (){
  926. var self=this;
  927. var $1;
  928. $1=self["@rootContext"];
  929. return $1;
  930. },
  931. args: [],
  932. source: "rootContext\x0a\x09^ rootContext",
  933. messageSends: [],
  934. referencedClasses: []
  935. }),
  936. globals.HLDebuggerModel);
  937. smalltalk.addMethod(
  938. smalltalk.method({
  939. selector: "skip",
  940. protocol: 'actions',
  941. fn: function (){
  942. var self=this;
  943. function $HLDebuggerStepped(){return globals.HLDebuggerStepped||(typeof HLDebuggerStepped=="undefined"?nil:HLDebuggerStepped)}
  944. return smalltalk.withContext(function($ctx1) {
  945. var $1,$2;
  946. _st(self._interpreter())._skip();
  947. self._flushInnerContexts();
  948. $1=_st($HLDebuggerStepped())._new();
  949. _st($1)._context_(self._currentContext());
  950. $2=_st($1)._yourself();
  951. _st(self._announcer())._announce_($2);
  952. return self}, function($ctx1) {$ctx1.fill(self,"skip",{},globals.HLDebuggerModel)})},
  953. args: [],
  954. 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)",
  955. messageSends: ["skip", "interpreter", "flushInnerContexts", "announce:", "announcer", "context:", "new", "currentContext", "yourself"],
  956. referencedClasses: ["HLDebuggerStepped"]
  957. }),
  958. globals.HLDebuggerModel);
  959. smalltalk.addMethod(
  960. smalltalk.method({
  961. selector: "stepOver",
  962. protocol: 'actions',
  963. fn: function (){
  964. var self=this;
  965. function $HLDebuggerStepped(){return globals.HLDebuggerStepped||(typeof HLDebuggerStepped=="undefined"?nil:HLDebuggerStepped)}
  966. return smalltalk.withContext(function($ctx1) {
  967. var $1,$2;
  968. _st(self._interpreter())._stepOver();
  969. self._flushInnerContexts();
  970. $1=_st($HLDebuggerStepped())._new();
  971. _st($1)._context_(self._currentContext());
  972. $2=_st($1)._yourself();
  973. _st(self._announcer())._announce_($2);
  974. return self}, function($ctx1) {$ctx1.fill(self,"stepOver",{},globals.HLDebuggerModel)})},
  975. args: [],
  976. 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)",
  977. messageSends: ["stepOver", "interpreter", "flushInnerContexts", "announce:", "announcer", "context:", "new", "currentContext", "yourself"],
  978. referencedClasses: ["HLDebuggerStepped"]
  979. }),
  980. globals.HLDebuggerModel);
  981. smalltalk.addMethod(
  982. smalltalk.method({
  983. selector: "where",
  984. protocol: 'actions',
  985. fn: function (){
  986. var self=this;
  987. function $HLDebuggerWhere(){return globals.HLDebuggerWhere||(typeof HLDebuggerWhere=="undefined"?nil:HLDebuggerWhere)}
  988. return smalltalk.withContext(function($ctx1) {
  989. _st(self._announcer())._announce_(_st($HLDebuggerWhere())._new());
  990. return self}, function($ctx1) {$ctx1.fill(self,"where",{},globals.HLDebuggerModel)})},
  991. args: [],
  992. source: "where\x0a\x09self announcer announce: HLDebuggerWhere new",
  993. messageSends: ["announce:", "announcer", "new"],
  994. referencedClasses: ["HLDebuggerWhere"]
  995. }),
  996. globals.HLDebuggerModel);
  997. smalltalk.addMethod(
  998. smalltalk.method({
  999. selector: "on:",
  1000. protocol: 'instance creation',
  1001. fn: function (anError){
  1002. var self=this;
  1003. return smalltalk.withContext(function($ctx1) {
  1004. var $2,$3,$1;
  1005. $2=self._new();
  1006. _st($2)._initializeFromError_(anError);
  1007. $3=_st($2)._yourself();
  1008. $1=$3;
  1009. return $1;
  1010. }, function($ctx1) {$ctx1.fill(self,"on:",{anError:anError},globals.HLDebuggerModel.klass)})},
  1011. args: ["anError"],
  1012. source: "on: anError\x0a\x09^ self new\x0a\x09\x09initializeFromError: anError;\x0a\x09\x09yourself",
  1013. messageSends: ["initializeFromError:", "new", "yourself"],
  1014. referencedClasses: []
  1015. }),
  1016. globals.HLDebuggerModel.klass);
  1017. smalltalk.addClass('HLErrorHandler', globals.Object, [], 'Helios-Debugger');
  1018. smalltalk.addMethod(
  1019. smalltalk.method({
  1020. selector: "confirmDebugError:",
  1021. protocol: 'error handling',
  1022. fn: function (anError){
  1023. var self=this;
  1024. function $HLConfirmationWidget(){return globals.HLConfirmationWidget||(typeof HLConfirmationWidget=="undefined"?nil:HLConfirmationWidget)}
  1025. return smalltalk.withContext(function($ctx1) {
  1026. var $1,$2;
  1027. $1=_st($HLConfirmationWidget())._new();
  1028. _st($1)._confirmationString_(_st(anError)._messageText());
  1029. _st($1)._actionBlock_((function(){
  1030. return smalltalk.withContext(function($ctx2) {
  1031. return self._debugError_(anError);
  1032. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  1033. _st($1)._cancelButtonLabel_("Abandon");
  1034. _st($1)._confirmButtonLabel_("Debug");
  1035. $2=_st($1)._show();
  1036. return self}, function($ctx1) {$ctx1.fill(self,"confirmDebugError:",{anError:anError},globals.HLErrorHandler)})},
  1037. args: ["anError"],
  1038. 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",
  1039. messageSends: ["confirmationString:", "new", "messageText", "actionBlock:", "debugError:", "cancelButtonLabel:", "confirmButtonLabel:", "show"],
  1040. referencedClasses: ["HLConfirmationWidget"]
  1041. }),
  1042. globals.HLErrorHandler);
  1043. smalltalk.addMethod(
  1044. smalltalk.method({
  1045. selector: "debugError:",
  1046. protocol: 'error handling',
  1047. fn: function (anError){
  1048. var self=this;
  1049. function $HLDebugger(){return globals.HLDebugger||(typeof HLDebugger=="undefined"?nil:HLDebugger)}
  1050. function $Error(){return globals.Error||(typeof Error=="undefined"?nil:Error)}
  1051. function $ConsoleErrorHandler(){return globals.ConsoleErrorHandler||(typeof ConsoleErrorHandler=="undefined"?nil:ConsoleErrorHandler)}
  1052. return smalltalk.withContext(function($ctx1) {
  1053. _st((function(){
  1054. return smalltalk.withContext(function($ctx2) {
  1055. return _st(_st($HLDebugger())._on_(anError))._openAsTab();
  1056. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}))._on_do_($Error(),(function(error){
  1057. return smalltalk.withContext(function($ctx2) {
  1058. return _st(_st($ConsoleErrorHandler())._new())._handleError_(error);
  1059. }, function($ctx2) {$ctx2.fillBlock({error:error},$ctx1,2)})}));
  1060. return self}, function($ctx1) {$ctx1.fill(self,"debugError:",{anError:anError},globals.HLErrorHandler)})},
  1061. args: ["anError"],
  1062. 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 ]",
  1063. messageSends: ["on:do:", "openAsTab", "on:", "handleError:", "new"],
  1064. referencedClasses: ["HLDebugger", "Error", "ConsoleErrorHandler"]
  1065. }),
  1066. globals.HLErrorHandler);
  1067. smalltalk.addMethod(
  1068. smalltalk.method({
  1069. selector: "handleError:",
  1070. protocol: 'error handling',
  1071. fn: function (anError){
  1072. var self=this;
  1073. return smalltalk.withContext(function($ctx1) {
  1074. self._confirmDebugError_(anError);
  1075. return self}, function($ctx1) {$ctx1.fill(self,"handleError:",{anError:anError},globals.HLErrorHandler)})},
  1076. args: ["anError"],
  1077. source: "handleError: anError\x0a\x09self confirmDebugError: anError",
  1078. messageSends: ["confirmDebugError:"],
  1079. referencedClasses: []
  1080. }),
  1081. globals.HLErrorHandler);
  1082. smalltalk.addMethod(
  1083. smalltalk.method({
  1084. selector: "onErrorHandled",
  1085. protocol: 'error handling',
  1086. fn: function (){
  1087. var self=this;
  1088. function $HLProgressWidget(){return globals.HLProgressWidget||(typeof HLProgressWidget=="undefined"?nil:HLProgressWidget)}
  1089. return smalltalk.withContext(function($ctx1) {
  1090. var $1,$2;
  1091. $1=_st($HLProgressWidget())._default();
  1092. _st($1)._flush();
  1093. $2=_st($1)._remove();
  1094. return self}, function($ctx1) {$ctx1.fill(self,"onErrorHandled",{},globals.HLErrorHandler)})},
  1095. args: [],
  1096. 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",
  1097. messageSends: ["flush", "default", "remove"],
  1098. referencedClasses: ["HLProgressWidget"]
  1099. }),
  1100. globals.HLErrorHandler);
  1101. smalltalk.addClass('HLStackListWidget', globals.HLToolListWidget, [], 'Helios-Debugger');
  1102. smalltalk.addMethod(
  1103. smalltalk.method({
  1104. selector: "items",
  1105. protocol: 'accessing',
  1106. fn: function (){
  1107. var self=this;
  1108. return smalltalk.withContext(function($ctx1) {
  1109. var $2,$1;
  1110. $2=self["@items"];
  1111. if(($receiver = $2) == nil || $receiver == null){
  1112. self["@items"]=_st(self._model())._contexts();
  1113. $1=self["@items"];
  1114. } else {
  1115. $1=$2;
  1116. };
  1117. return $1;
  1118. }, function($ctx1) {$ctx1.fill(self,"items",{},globals.HLStackListWidget)})},
  1119. args: [],
  1120. source: "items\x0a\x09^ items ifNil: [ items := self model contexts ]",
  1121. messageSends: ["ifNil:", "contexts", "model"],
  1122. referencedClasses: []
  1123. }),
  1124. globals.HLStackListWidget);
  1125. smalltalk.addMethod(
  1126. smalltalk.method({
  1127. selector: "label",
  1128. protocol: 'accessing',
  1129. fn: function (){
  1130. var self=this;
  1131. return "Call stack";
  1132. },
  1133. args: [],
  1134. source: "label\x0a\x09^ 'Call stack'",
  1135. messageSends: [],
  1136. referencedClasses: []
  1137. }),
  1138. globals.HLStackListWidget);
  1139. smalltalk.addMethod(
  1140. smalltalk.method({
  1141. selector: "observeModel",
  1142. protocol: 'actions',
  1143. fn: function (){
  1144. var self=this;
  1145. function $HLDebuggerStepped(){return globals.HLDebuggerStepped||(typeof HLDebuggerStepped=="undefined"?nil:HLDebuggerStepped)}
  1146. return smalltalk.withContext(function($ctx1) {
  1147. globals.HLStackListWidget.superclass.fn.prototype._observeModel.apply(_st(self), []);
  1148. _st(_st(self._model())._announcer())._on_send_to_($HLDebuggerStepped(),"onDebuggerStepped:",self);
  1149. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},globals.HLStackListWidget)})},
  1150. args: [],
  1151. source: "observeModel\x0a\x09super observeModel.\x0a\x09\x0a\x09self model announcer \x0a\x09\x09on: HLDebuggerStepped\x0a\x09\x09send: #onDebuggerStepped:\x0a\x09\x09to: self",
  1152. messageSends: ["observeModel", "on:send:to:", "announcer", "model"],
  1153. referencedClasses: ["HLDebuggerStepped"]
  1154. }),
  1155. globals.HLStackListWidget);
  1156. smalltalk.addMethod(
  1157. smalltalk.method({
  1158. selector: "onDebuggerStepped:",
  1159. protocol: 'reactions',
  1160. fn: function (anAnnouncement){
  1161. var self=this;
  1162. return smalltalk.withContext(function($ctx1) {
  1163. self["@items"]=nil;
  1164. self._refresh();
  1165. return self}, function($ctx1) {$ctx1.fill(self,"onDebuggerStepped:",{anAnnouncement:anAnnouncement},globals.HLStackListWidget)})},
  1166. args: ["anAnnouncement"],
  1167. source: "onDebuggerStepped: anAnnouncement\x0a\x09items := nil.\x0a\x09self refresh",
  1168. messageSends: ["refresh"],
  1169. referencedClasses: []
  1170. }),
  1171. globals.HLStackListWidget);
  1172. smalltalk.addMethod(
  1173. smalltalk.method({
  1174. selector: "renderButtonsOn:",
  1175. protocol: 'rendering',
  1176. fn: function (html){
  1177. var self=this;
  1178. return smalltalk.withContext(function($ctx1) {
  1179. var $1,$3,$4,$5,$6,$7,$8,$9,$10,$2;
  1180. $1=_st(html)._div();
  1181. _st($1)._class_("debugger_bar");
  1182. $ctx1.sendIdx["class:"]=1;
  1183. $2=_st($1)._with_((function(){
  1184. return smalltalk.withContext(function($ctx2) {
  1185. $3=_st(html)._button();
  1186. $ctx2.sendIdx["button"]=1;
  1187. _st($3)._class_("btn restart");
  1188. $ctx2.sendIdx["class:"]=2;
  1189. _st($3)._with_("Restart");
  1190. $ctx2.sendIdx["with:"]=2;
  1191. $4=_st($3)._onClick_((function(){
  1192. return smalltalk.withContext(function($ctx3) {
  1193. return self._restart();
  1194. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)})}));
  1195. $ctx2.sendIdx["onClick:"]=1;
  1196. $4;
  1197. $5=_st(html)._button();
  1198. $ctx2.sendIdx["button"]=2;
  1199. _st($5)._class_("btn where");
  1200. $ctx2.sendIdx["class:"]=3;
  1201. _st($5)._with_("Where");
  1202. $ctx2.sendIdx["with:"]=3;
  1203. $6=_st($5)._onClick_((function(){
  1204. return smalltalk.withContext(function($ctx3) {
  1205. return self._where();
  1206. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,3)})}));
  1207. $ctx2.sendIdx["onClick:"]=2;
  1208. $6;
  1209. $7=_st(html)._button();
  1210. $ctx2.sendIdx["button"]=3;
  1211. _st($7)._class_("btn stepOver");
  1212. $ctx2.sendIdx["class:"]=4;
  1213. _st($7)._with_("Step over");
  1214. $ctx2.sendIdx["with:"]=4;
  1215. $8=_st($7)._onClick_((function(){
  1216. return smalltalk.withContext(function($ctx3) {
  1217. return self._stepOver();
  1218. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,4)})}));
  1219. $ctx2.sendIdx["onClick:"]=3;
  1220. $8;
  1221. $9=_st(html)._button();
  1222. _st($9)._class_("btn skip");
  1223. _st($9)._with_("Skip");
  1224. $10=_st($9)._onClick_((function(){
  1225. return smalltalk.withContext(function($ctx3) {
  1226. return self._skip();
  1227. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,5)})}));
  1228. return $10;
  1229. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  1230. $ctx1.sendIdx["with:"]=1;
  1231. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},globals.HLStackListWidget)})},
  1232. args: ["html"],
  1233. 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 ] ]",
  1234. messageSends: ["class:", "div", "with:", "button", "onClick:", "restart", "where", "stepOver", "skip"],
  1235. referencedClasses: []
  1236. }),
  1237. globals.HLStackListWidget);
  1238. smalltalk.addMethod(
  1239. smalltalk.method({
  1240. selector: "restart",
  1241. protocol: 'actions',
  1242. fn: function (){
  1243. var self=this;
  1244. return smalltalk.withContext(function($ctx1) {
  1245. _st(self._model())._restart();
  1246. return self}, function($ctx1) {$ctx1.fill(self,"restart",{},globals.HLStackListWidget)})},
  1247. args: [],
  1248. source: "restart\x0a\x09self model restart",
  1249. messageSends: ["restart", "model"],
  1250. referencedClasses: []
  1251. }),
  1252. globals.HLStackListWidget);
  1253. smalltalk.addMethod(
  1254. smalltalk.method({
  1255. selector: "selectItem:",
  1256. protocol: 'actions',
  1257. fn: function (aContext){
  1258. var self=this;
  1259. return smalltalk.withContext(function($ctx1) {
  1260. _st(self._model())._currentContext_(aContext);
  1261. globals.HLStackListWidget.superclass.fn.prototype._selectItem_.apply(_st(self), [aContext]);
  1262. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aContext:aContext},globals.HLStackListWidget)})},
  1263. args: ["aContext"],
  1264. source: "selectItem: aContext\x0a \x09self model currentContext: aContext.\x0a\x09super selectItem: aContext",
  1265. messageSends: ["currentContext:", "model", "selectItem:"],
  1266. referencedClasses: []
  1267. }),
  1268. globals.HLStackListWidget);
  1269. smalltalk.addMethod(
  1270. smalltalk.method({
  1271. selector: "skip",
  1272. protocol: 'actions',
  1273. fn: function (){
  1274. var self=this;
  1275. return smalltalk.withContext(function($ctx1) {
  1276. _st(self._model())._skip();
  1277. return self}, function($ctx1) {$ctx1.fill(self,"skip",{},globals.HLStackListWidget)})},
  1278. args: [],
  1279. source: "skip\x0a\x09self model skip",
  1280. messageSends: ["skip", "model"],
  1281. referencedClasses: []
  1282. }),
  1283. globals.HLStackListWidget);
  1284. smalltalk.addMethod(
  1285. smalltalk.method({
  1286. selector: "stepOver",
  1287. protocol: 'actions',
  1288. fn: function (){
  1289. var self=this;
  1290. return smalltalk.withContext(function($ctx1) {
  1291. _st(self._model())._stepOver();
  1292. return self}, function($ctx1) {$ctx1.fill(self,"stepOver",{},globals.HLStackListWidget)})},
  1293. args: [],
  1294. source: "stepOver\x0a\x09self model stepOver",
  1295. messageSends: ["stepOver", "model"],
  1296. referencedClasses: []
  1297. }),
  1298. globals.HLStackListWidget);
  1299. smalltalk.addMethod(
  1300. smalltalk.method({
  1301. selector: "where",
  1302. protocol: 'actions',
  1303. fn: function (){
  1304. var self=this;
  1305. return smalltalk.withContext(function($ctx1) {
  1306. _st(self._model())._where();
  1307. return self}, function($ctx1) {$ctx1.fill(self,"where",{},globals.HLStackListWidget)})},
  1308. args: [],
  1309. source: "where\x0a\x09self model where",
  1310. messageSends: ["where", "model"],
  1311. referencedClasses: []
  1312. }),
  1313. globals.HLStackListWidget);
  1314. });