Helios-Debugger.js 51 KB

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