1
0

Helios-References.js 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124
  1. define("amber_core/Helios-References", ["amber_vm/smalltalk", "amber_vm/nil", "amber_vm/_st", "amber_core/Kernel-Objects", "amber_core/Helios-Core"], function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Helios-References');
  3. smalltalk.packages["Helios-References"].transport = {"type":"amd","amdNamespace":"amber_core"};
  4. smalltalk.addClass('HLMethodReference', smalltalk.Object, ['selector', 'methodClass'], 'Helios-References');
  5. smalltalk.addMethod(
  6. smalltalk.method({
  7. selector: "initializeFromMethod:",
  8. category: 'initialization',
  9. fn: function (aCompiledMethod){
  10. var self=this;
  11. return smalltalk.withContext(function($ctx1) {
  12. var $1;
  13. self._selector_(_st(aCompiledMethod)._selector());
  14. $1=self._methodClass_(_st(aCompiledMethod)._methodClass());
  15. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromMethod:",{aCompiledMethod:aCompiledMethod},smalltalk.HLMethodReference)})},
  16. args: ["aCompiledMethod"],
  17. source: "initializeFromMethod: aCompiledMethod\x0a\x09self\x0a\x09\x09selector: aCompiledMethod selector;\x0a\x09\x09methodClass: aCompiledMethod methodClass",
  18. messageSends: ["selector:", "selector", "methodClass:", "methodClass"],
  19. referencedClasses: []
  20. }),
  21. smalltalk.HLMethodReference);
  22. smalltalk.addMethod(
  23. smalltalk.method({
  24. selector: "method",
  25. category: 'accessing',
  26. fn: function (){
  27. var self=this;
  28. return smalltalk.withContext(function($ctx1) {
  29. var $1;
  30. $1=_st(self._methodClass())._methodAt_(self._selector());
  31. return $1;
  32. }, function($ctx1) {$ctx1.fill(self,"method",{},smalltalk.HLMethodReference)})},
  33. args: [],
  34. source: "method\x0a\x09^ self methodClass methodAt: self selector",
  35. messageSends: ["methodAt:", "methodClass", "selector"],
  36. referencedClasses: []
  37. }),
  38. smalltalk.HLMethodReference);
  39. smalltalk.addMethod(
  40. smalltalk.method({
  41. selector: "methodClass",
  42. category: 'accessing',
  43. fn: function (){
  44. var self=this;
  45. return smalltalk.withContext(function($ctx1) {
  46. var $1;
  47. $1=self["@methodClass"];
  48. return $1;
  49. }, function($ctx1) {$ctx1.fill(self,"methodClass",{},smalltalk.HLMethodReference)})},
  50. args: [],
  51. source: "methodClass\x0a\x09^ methodClass",
  52. messageSends: [],
  53. referencedClasses: []
  54. }),
  55. smalltalk.HLMethodReference);
  56. smalltalk.addMethod(
  57. smalltalk.method({
  58. selector: "methodClass:",
  59. category: 'accessing',
  60. fn: function (aClass){
  61. var self=this;
  62. return smalltalk.withContext(function($ctx1) {
  63. self["@methodClass"]=aClass;
  64. return self}, function($ctx1) {$ctx1.fill(self,"methodClass:",{aClass:aClass},smalltalk.HLMethodReference)})},
  65. args: ["aClass"],
  66. source: "methodClass: aClass\x0a\x09methodClass := aClass",
  67. messageSends: [],
  68. referencedClasses: []
  69. }),
  70. smalltalk.HLMethodReference);
  71. smalltalk.addMethod(
  72. smalltalk.method({
  73. selector: "selector",
  74. category: 'accessing',
  75. fn: function (){
  76. var self=this;
  77. return smalltalk.withContext(function($ctx1) {
  78. var $1;
  79. $1=self["@selector"];
  80. return $1;
  81. }, function($ctx1) {$ctx1.fill(self,"selector",{},smalltalk.HLMethodReference)})},
  82. args: [],
  83. source: "selector\x0a\x09^ selector",
  84. messageSends: [],
  85. referencedClasses: []
  86. }),
  87. smalltalk.HLMethodReference);
  88. smalltalk.addMethod(
  89. smalltalk.method({
  90. selector: "selector:",
  91. category: 'accessing',
  92. fn: function (aString){
  93. var self=this;
  94. return smalltalk.withContext(function($ctx1) {
  95. self["@selector"]=aString;
  96. return self}, function($ctx1) {$ctx1.fill(self,"selector:",{aString:aString},smalltalk.HLMethodReference)})},
  97. args: ["aString"],
  98. source: "selector: aString\x0a\x09selector := aString",
  99. messageSends: [],
  100. referencedClasses: []
  101. }),
  102. smalltalk.HLMethodReference);
  103. smalltalk.addMethod(
  104. smalltalk.method({
  105. selector: "source",
  106. category: 'accessing',
  107. fn: function (){
  108. var self=this;
  109. return smalltalk.withContext(function($ctx1) {
  110. var $1;
  111. $1=_st(self._method())._source();
  112. return $1;
  113. }, function($ctx1) {$ctx1.fill(self,"source",{},smalltalk.HLMethodReference)})},
  114. args: [],
  115. source: "source\x0a\x09^ self method source",
  116. messageSends: ["source", "method"],
  117. referencedClasses: []
  118. }),
  119. smalltalk.HLMethodReference);
  120. smalltalk.addMethod(
  121. smalltalk.method({
  122. selector: "on:",
  123. category: 'instance creation',
  124. fn: function (aCompiledMethod){
  125. var self=this;
  126. return smalltalk.withContext(function($ctx1) {
  127. var $2,$3,$1;
  128. $2=self._new();
  129. _st($2)._initializeFromMethod_(aCompiledMethod);
  130. $3=_st($2)._yourself();
  131. $1=$3;
  132. return $1;
  133. }, function($ctx1) {$ctx1.fill(self,"on:",{aCompiledMethod:aCompiledMethod},smalltalk.HLMethodReference.klass)})},
  134. args: ["aCompiledMethod"],
  135. source: "on: aCompiledMethod\x0a\x09^ self new\x0a\x09\x09initializeFromMethod: aCompiledMethod;\x0a\x09\x09yourself",
  136. messageSends: ["initializeFromMethod:", "new", "yourself"],
  137. referencedClasses: []
  138. }),
  139. smalltalk.HLMethodReference.klass);
  140. smalltalk.addClass('HLReferences', smalltalk.HLWidget, ['model', 'sendersListWidget', 'implementorsListWidget', 'classReferencesListWidget', 'regexpListWidget', 'sourceCodeWidget'], 'Helios-References');
  141. smalltalk.addMethod(
  142. smalltalk.method({
  143. selector: "classReferencesListWidget",
  144. category: 'accessing',
  145. fn: function (){
  146. var self=this;
  147. function $HLClassReferencesListWidget(){return smalltalk.HLClassReferencesListWidget||(typeof HLClassReferencesListWidget=="undefined"?nil:HLClassReferencesListWidget)}
  148. return smalltalk.withContext(function($ctx1) {
  149. var $1;
  150. if(($receiver = self["@classReferencesListWidget"]) == nil || $receiver == null){
  151. self["@classReferencesListWidget"]=_st($HLClassReferencesListWidget())._on_(self._model());
  152. self["@classReferencesListWidget"];
  153. $1=_st(self["@classReferencesListWidget"])._next_(self._regexpListWidget());
  154. } else {
  155. $1=self["@classReferencesListWidget"];
  156. };
  157. return $1;
  158. }, function($ctx1) {$ctx1.fill(self,"classReferencesListWidget",{},smalltalk.HLReferences)})},
  159. args: [],
  160. source: "classReferencesListWidget\x0a\x09^ classReferencesListWidget ifNil: [\x0a \x09classReferencesListWidget := HLClassReferencesListWidget on: self model.\x0a\x09\x09classReferencesListWidget next: self regexpListWidget ]",
  161. messageSends: ["ifNil:", "on:", "model", "next:", "regexpListWidget"],
  162. referencedClasses: ["HLClassReferencesListWidget"]
  163. }),
  164. smalltalk.HLReferences);
  165. smalltalk.addMethod(
  166. smalltalk.method({
  167. selector: "implementorsListWidget",
  168. category: 'accessing',
  169. fn: function (){
  170. var self=this;
  171. function $HLImplementorsListWidget(){return smalltalk.HLImplementorsListWidget||(typeof HLImplementorsListWidget=="undefined"?nil:HLImplementorsListWidget)}
  172. return smalltalk.withContext(function($ctx1) {
  173. var $1;
  174. if(($receiver = self["@implementorsListWidget"]) == nil || $receiver == null){
  175. self["@implementorsListWidget"]=_st($HLImplementorsListWidget())._on_(self._model());
  176. self["@implementorsListWidget"];
  177. $1=_st(self["@implementorsListWidget"])._next_(self._classReferencesListWidget());
  178. } else {
  179. $1=self["@implementorsListWidget"];
  180. };
  181. return $1;
  182. }, function($ctx1) {$ctx1.fill(self,"implementorsListWidget",{},smalltalk.HLReferences)})},
  183. args: [],
  184. source: "implementorsListWidget\x0a\x09^ implementorsListWidget ifNil: [\x0a \x09implementorsListWidget := HLImplementorsListWidget on: self model.\x0a\x09\x09implementorsListWidget next: self classReferencesListWidget ]",
  185. messageSends: ["ifNil:", "on:", "model", "next:", "classReferencesListWidget"],
  186. referencedClasses: ["HLImplementorsListWidget"]
  187. }),
  188. smalltalk.HLReferences);
  189. smalltalk.addMethod(
  190. smalltalk.method({
  191. selector: "model",
  192. category: 'accessing',
  193. fn: function (){
  194. var self=this;
  195. function $HLReferencesModel(){return smalltalk.HLReferencesModel||(typeof HLReferencesModel=="undefined"?nil:HLReferencesModel)}
  196. return smalltalk.withContext(function($ctx1) {
  197. var $2,$3,$1;
  198. if(($receiver = self["@model"]) == nil || $receiver == null){
  199. $2=_st($HLReferencesModel())._new();
  200. _st($2)._environment_(_st(self._manager())._environment());
  201. $3=_st($2)._yourself();
  202. self["@model"]=$3;
  203. $1=self["@model"];
  204. } else {
  205. $1=self["@model"];
  206. };
  207. return $1;
  208. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLReferences)})},
  209. args: [],
  210. source: "model\x0a\x09^ model ifNil: [\x0a\x09\x09model := (HLReferencesModel new\x0a\x09\x09\x09environment: self manager environment;\x0a\x09\x09\x09yourself) ]",
  211. messageSends: ["ifNil:", "environment:", "new", "environment", "manager", "yourself"],
  212. referencedClasses: ["HLReferencesModel"]
  213. }),
  214. smalltalk.HLReferences);
  215. smalltalk.addMethod(
  216. smalltalk.method({
  217. selector: "model:",
  218. category: 'accessing',
  219. fn: function (aModel){
  220. var self=this;
  221. return smalltalk.withContext(function($ctx1) {
  222. self["@model"]=aModel;
  223. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLReferences)})},
  224. args: ["aModel"],
  225. source: "model: aModel\x0a\x09model := aModel",
  226. messageSends: [],
  227. referencedClasses: []
  228. }),
  229. smalltalk.HLReferences);
  230. smalltalk.addMethod(
  231. smalltalk.method({
  232. selector: "regexpListWidget",
  233. category: 'accessing',
  234. fn: function (){
  235. var self=this;
  236. function $HLRegexpListWidget(){return smalltalk.HLRegexpListWidget||(typeof HLRegexpListWidget=="undefined"?nil:HLRegexpListWidget)}
  237. return smalltalk.withContext(function($ctx1) {
  238. var $1;
  239. if(($receiver = self["@regexpListWidget"]) == nil || $receiver == null){
  240. self["@regexpListWidget"]=_st($HLRegexpListWidget())._on_(self._model());
  241. self["@regexpListWidget"];
  242. $1=_st(self["@regexpListWidget"])._next_(self._sourceCodeWidget());
  243. } else {
  244. $1=self["@regexpListWidget"];
  245. };
  246. return $1;
  247. }, function($ctx1) {$ctx1.fill(self,"regexpListWidget",{},smalltalk.HLReferences)})},
  248. args: [],
  249. source: "regexpListWidget\x0a\x09^ regexpListWidget ifNil: [\x0a \x09regexpListWidget := HLRegexpListWidget on: self model.\x0a\x09\x09regexpListWidget next: self sourceCodeWidget ]",
  250. messageSends: ["ifNil:", "on:", "model", "next:", "sourceCodeWidget"],
  251. referencedClasses: ["HLRegexpListWidget"]
  252. }),
  253. smalltalk.HLReferences);
  254. smalltalk.addMethod(
  255. smalltalk.method({
  256. selector: "registerBindingsOn:",
  257. category: 'actions',
  258. fn: function (aBindingGroup){
  259. var self=this;
  260. function $HLToolCommand(){return smalltalk.HLToolCommand||(typeof HLToolCommand=="undefined"?nil:HLToolCommand)}
  261. return smalltalk.withContext(function($ctx1) {
  262. _st($HLToolCommand())._registerConcreteClassesOn_for_(aBindingGroup,self._model());
  263. return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup},smalltalk.HLReferences)})},
  264. args: ["aBindingGroup"],
  265. source: "registerBindingsOn: aBindingGroup\x0a\x09HLToolCommand \x0a\x09\x09registerConcreteClassesOn: aBindingGroup \x0a\x09\x09for: self model",
  266. messageSends: ["registerConcreteClassesOn:for:", "model"],
  267. referencedClasses: ["HLToolCommand"]
  268. }),
  269. smalltalk.HLReferences);
  270. smalltalk.addMethod(
  271. smalltalk.method({
  272. selector: "renderContentOn:",
  273. category: 'rendering',
  274. fn: function (html){
  275. var self=this;
  276. function $HLContainer(){return smalltalk.HLContainer||(typeof HLContainer=="undefined"?nil:HLContainer)}
  277. function $HLHorizontalSplitter(){return smalltalk.HLHorizontalSplitter||(typeof HLHorizontalSplitter=="undefined"?nil:HLHorizontalSplitter)}
  278. function $HLVerticalSplitter(){return smalltalk.HLVerticalSplitter||(typeof HLVerticalSplitter=="undefined"?nil:HLVerticalSplitter)}
  279. return smalltalk.withContext(function($ctx1) {
  280. var $5,$4,$6,$3,$2,$1,$7;
  281. $5=self._sendersListWidget();
  282. $ctx1.sendIdx["sendersListWidget"]=1;
  283. $4=_st($HLVerticalSplitter())._with_with_($5,self._implementorsListWidget());
  284. $ctx1.sendIdx["with:with:"]=3;
  285. $6=_st($HLVerticalSplitter())._with_with_(self._classReferencesListWidget(),self._regexpListWidget());
  286. $3=_st($HLVerticalSplitter())._with_with_($4,$6);
  287. $ctx1.sendIdx["with:with:"]=2;
  288. $2=_st($HLHorizontalSplitter())._with_with_($3,self._sourceCodeWidget());
  289. $ctx1.sendIdx["with:with:"]=1;
  290. $1=_st($HLContainer())._with_($2);
  291. _st(html)._with_($1);
  292. $ctx1.sendIdx["with:"]=1;
  293. $7=self._sendersListWidget();
  294. _st($7)._focus();
  295. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLReferences)})},
  296. args: ["html"],
  297. source: "renderContentOn: html\x0a\x09html with: (HLContainer with: (HLHorizontalSplitter \x0a \x09with: (HLVerticalSplitter\x0a \x09with: (HLVerticalSplitter\x0a \x09with: self sendersListWidget\x0a with: self implementorsListWidget)\x0a with: (HLVerticalSplitter\x0a \x09with: self classReferencesListWidget\x0a with: self regexpListWidget)) \x0a with: self sourceCodeWidget)).\x0a\x09\x0a\x09self sendersListWidget focus",
  298. messageSends: ["with:", "with:with:", "sendersListWidget", "implementorsListWidget", "classReferencesListWidget", "regexpListWidget", "sourceCodeWidget", "focus"],
  299. referencedClasses: ["HLContainer", "HLHorizontalSplitter", "HLVerticalSplitter"]
  300. }),
  301. smalltalk.HLReferences);
  302. smalltalk.addMethod(
  303. smalltalk.method({
  304. selector: "search:",
  305. category: 'actions',
  306. fn: function (aString){
  307. var self=this;
  308. return smalltalk.withContext(function($ctx1) {
  309. _st(self._model())._search_(aString);
  310. return self}, function($ctx1) {$ctx1.fill(self,"search:",{aString:aString},smalltalk.HLReferences)})},
  311. args: ["aString"],
  312. source: "search: aString\x0a\x09self model search: aString",
  313. messageSends: ["search:", "model"],
  314. referencedClasses: []
  315. }),
  316. smalltalk.HLReferences);
  317. smalltalk.addMethod(
  318. smalltalk.method({
  319. selector: "sendersListWidget",
  320. category: 'accessing',
  321. fn: function (){
  322. var self=this;
  323. function $HLSendersListWidget(){return smalltalk.HLSendersListWidget||(typeof HLSendersListWidget=="undefined"?nil:HLSendersListWidget)}
  324. return smalltalk.withContext(function($ctx1) {
  325. var $1;
  326. if(($receiver = self["@sendersListWidget"]) == nil || $receiver == null){
  327. self["@sendersListWidget"]=_st($HLSendersListWidget())._on_(self._model());
  328. self["@sendersListWidget"];
  329. $1=_st(self["@sendersListWidget"])._next_(self._implementorsListWidget());
  330. } else {
  331. $1=self["@sendersListWidget"];
  332. };
  333. return $1;
  334. }, function($ctx1) {$ctx1.fill(self,"sendersListWidget",{},smalltalk.HLReferences)})},
  335. args: [],
  336. source: "sendersListWidget\x0a\x09^ sendersListWidget ifNil: [\x0a \x09sendersListWidget := HLSendersListWidget on: self model.\x0a\x09\x09sendersListWidget next: self implementorsListWidget ]",
  337. messageSends: ["ifNil:", "on:", "model", "next:", "implementorsListWidget"],
  338. referencedClasses: ["HLSendersListWidget"]
  339. }),
  340. smalltalk.HLReferences);
  341. smalltalk.addMethod(
  342. smalltalk.method({
  343. selector: "sourceCodeWidget",
  344. category: 'accessing',
  345. fn: function (){
  346. var self=this;
  347. function $HLBrowserCodeWidget(){return smalltalk.HLBrowserCodeWidget||(typeof HLBrowserCodeWidget=="undefined"?nil:HLBrowserCodeWidget)}
  348. return smalltalk.withContext(function($ctx1) {
  349. var $2,$3,$1;
  350. if(($receiver = self["@sourceCodeWidget"]) == nil || $receiver == null){
  351. $2=_st($HLBrowserCodeWidget())._new();
  352. _st($2)._browserModel_(self._model());
  353. $3=_st($2)._yourself();
  354. self["@sourceCodeWidget"]=$3;
  355. $1=self["@sourceCodeWidget"];
  356. } else {
  357. $1=self["@sourceCodeWidget"];
  358. };
  359. return $1;
  360. }, function($ctx1) {$ctx1.fill(self,"sourceCodeWidget",{},smalltalk.HLReferences)})},
  361. args: [],
  362. source: "sourceCodeWidget\x0a\x09^ sourceCodeWidget ifNil: [\x0a \x09sourceCodeWidget := HLBrowserCodeWidget new\x0a\x09\x09\x09browserModel: self model;\x0a\x09\x09\x09yourself ]",
  363. messageSends: ["ifNil:", "browserModel:", "new", "model", "yourself"],
  364. referencedClasses: ["HLBrowserCodeWidget"]
  365. }),
  366. smalltalk.HLReferences);
  367. smalltalk.addMethod(
  368. smalltalk.method({
  369. selector: "canBeOpenAsTab",
  370. category: 'testing',
  371. fn: function (){
  372. var self=this;
  373. return smalltalk.withContext(function($ctx1) {
  374. return false;
  375. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLReferences.klass)})},
  376. args: [],
  377. source: "canBeOpenAsTab\x0a\x09^ false",
  378. messageSends: [],
  379. referencedClasses: []
  380. }),
  381. smalltalk.HLReferences.klass);
  382. smalltalk.addMethod(
  383. smalltalk.method({
  384. selector: "tabClass",
  385. category: 'accessing',
  386. fn: function (){
  387. var self=this;
  388. return smalltalk.withContext(function($ctx1) {
  389. return "references";
  390. }, function($ctx1) {$ctx1.fill(self,"tabClass",{},smalltalk.HLReferences.klass)})},
  391. args: [],
  392. source: "tabClass\x0a\x09^ 'references'",
  393. messageSends: [],
  394. referencedClasses: []
  395. }),
  396. smalltalk.HLReferences.klass);
  397. smalltalk.addMethod(
  398. smalltalk.method({
  399. selector: "tabLabel",
  400. category: 'accessing',
  401. fn: function (){
  402. var self=this;
  403. return smalltalk.withContext(function($ctx1) {
  404. return "References";
  405. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLReferences.klass)})},
  406. args: [],
  407. source: "tabLabel\x0a\x09^ 'References'",
  408. messageSends: [],
  409. referencedClasses: []
  410. }),
  411. smalltalk.HLReferences.klass);
  412. smalltalk.addMethod(
  413. smalltalk.method({
  414. selector: "tabPriority",
  415. category: 'accessing',
  416. fn: function (){
  417. var self=this;
  418. return smalltalk.withContext(function($ctx1) {
  419. return (100);
  420. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLReferences.klass)})},
  421. args: [],
  422. source: "tabPriority\x0a\x09^ 100",
  423. messageSends: [],
  424. referencedClasses: []
  425. }),
  426. smalltalk.HLReferences.klass);
  427. smalltalk.addClass('HLReferencesListWidget', smalltalk.HLToolListWidget, [], 'Helios-References');
  428. smalltalk.addMethod(
  429. smalltalk.method({
  430. selector: "activateListItem:",
  431. category: 'actions',
  432. fn: function (anItem){
  433. var self=this;
  434. return smalltalk.withContext(function($ctx1) {
  435. _st(self._model())._withChangesDo_((function(){
  436. return smalltalk.withContext(function($ctx2) {
  437. return smalltalk.HLReferencesListWidget.superclass.fn.prototype._activateListItem_.apply(_st(self), [anItem]);
  438. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  439. return self}, function($ctx1) {$ctx1.fill(self,"activateListItem:",{anItem:anItem},smalltalk.HLReferencesListWidget)})},
  440. args: ["anItem"],
  441. source: "activateListItem: anItem\x0a\x09self model withChangesDo: [ super activateListItem: anItem ]",
  442. messageSends: ["withChangesDo:", "model", "activateListItem:"],
  443. referencedClasses: []
  444. }),
  445. smalltalk.HLReferencesListWidget);
  446. smalltalk.addMethod(
  447. smalltalk.method({
  448. selector: "commandCategory",
  449. category: 'accessing',
  450. fn: function (){
  451. var self=this;
  452. return smalltalk.withContext(function($ctx1) {
  453. return "Methods";
  454. }, function($ctx1) {$ctx1.fill(self,"commandCategory",{},smalltalk.HLReferencesListWidget)})},
  455. args: [],
  456. source: "commandCategory\x0a\x09^ 'Methods'",
  457. messageSends: [],
  458. referencedClasses: []
  459. }),
  460. smalltalk.HLReferencesListWidget);
  461. smalltalk.addMethod(
  462. smalltalk.method({
  463. selector: "label",
  464. category: 'accessing',
  465. fn: function (){
  466. var self=this;
  467. return smalltalk.withContext(function($ctx1) {
  468. return "List";
  469. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLReferencesListWidget)})},
  470. args: [],
  471. source: "label\x0a\x09^ 'List'",
  472. messageSends: [],
  473. referencedClasses: []
  474. }),
  475. smalltalk.HLReferencesListWidget);
  476. smalltalk.addMethod(
  477. smalltalk.method({
  478. selector: "observeModel",
  479. category: 'actions',
  480. fn: function (){
  481. var self=this;
  482. function $HLSearchReferences(){return smalltalk.HLSearchReferences||(typeof HLSearchReferences=="undefined"?nil:HLSearchReferences)}
  483. function $HLMethodSelected(){return smalltalk.HLMethodSelected||(typeof HLMethodSelected=="undefined"?nil:HLMethodSelected)}
  484. return smalltalk.withContext(function($ctx1) {
  485. var $1,$2;
  486. $1=_st(self._model())._announcer();
  487. _st($1)._on_do_($HLSearchReferences(),(function(ann){
  488. return smalltalk.withContext(function($ctx2) {
  489. return self._onSearchReferences_(_st(ann)._searchString());
  490. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1,1)})}));
  491. $ctx1.sendIdx["on:do:"]=1;
  492. $2=_st($1)._on_do_($HLMethodSelected(),(function(ann){
  493. return smalltalk.withContext(function($ctx2) {
  494. return self._onMethodSelected_(_st(ann)._item());
  495. }, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1,2)})}));
  496. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLReferencesListWidget)})},
  497. args: [],
  498. source: "observeModel\x0a\x09self model announcer\x0a\x09\x09on: HLSearchReferences\x0a\x09\x09do: [ :ann | self onSearchReferences: ann searchString ];\x0a\x09\x09on: HLMethodSelected\x0a\x09\x09do: [ :ann | self onMethodSelected: ann item ]",
  499. messageSends: ["on:do:", "announcer", "model", "onSearchReferences:", "searchString", "onMethodSelected:", "item"],
  500. referencedClasses: ["HLSearchReferences", "HLMethodSelected"]
  501. }),
  502. smalltalk.HLReferencesListWidget);
  503. smalltalk.addMethod(
  504. smalltalk.method({
  505. selector: "onMethodSelected:",
  506. category: 'reactions',
  507. fn: function (aMethod){
  508. var self=this;
  509. return smalltalk.withContext(function($ctx1) {
  510. var $1,$2,$4,$3;
  511. var $early={};
  512. try {
  513. if(($receiver = aMethod) == nil || $receiver == null){
  514. return self;
  515. } else {
  516. aMethod;
  517. };
  518. _st(self._items())._detect_ifNone_((function(each){
  519. return smalltalk.withContext(function($ctx2) {
  520. $1=_st(aMethod)._selector();
  521. $ctx2.sendIdx["selector"]=1;
  522. return _st(each).__eq($1);
  523. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,2)})}),(function(){
  524. return smalltalk.withContext(function($ctx2) {
  525. throw $early=[self];
  526. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,3)})}));
  527. $2=_st(aMethod)._selector();
  528. $ctx1.sendIdx["selector"]=2;
  529. self._selectedItem_($2);
  530. $4=_st(aMethod)._selector();
  531. $3=self._activateItem_($4);
  532. return self}
  533. catch(e) {if(e===$early)return e[0]; throw e}
  534. }, function($ctx1) {$ctx1.fill(self,"onMethodSelected:",{aMethod:aMethod},smalltalk.HLReferencesListWidget)})},
  535. args: ["aMethod"],
  536. source: "onMethodSelected: aMethod\x0a\x09aMethod ifNil: [ ^ self ].\x0a\x09self items detect: [ :each | each = aMethod selector ] ifNone: [ ^ self ].\x0a\x09\x0a\x09self \x0a\x09\x09selectedItem: aMethod selector;\x0a\x09\x09activateItem: aMethod selector",
  537. messageSends: ["ifNil:", "detect:ifNone:", "items", "=", "selector", "selectedItem:", "activateItem:"],
  538. referencedClasses: []
  539. }),
  540. smalltalk.HLReferencesListWidget);
  541. smalltalk.addMethod(
  542. smalltalk.method({
  543. selector: "onSearchReferences:",
  544. category: 'reactions',
  545. fn: function (aString){
  546. var self=this;
  547. return smalltalk.withContext(function($ctx1) {
  548. self._subclassResponsibility();
  549. return self}, function($ctx1) {$ctx1.fill(self,"onSearchReferences:",{aString:aString},smalltalk.HLReferencesListWidget)})},
  550. args: ["aString"],
  551. source: "onSearchReferences: aString\x0a\x09self subclassResponsibility",
  552. messageSends: ["subclassResponsibility"],
  553. referencedClasses: []
  554. }),
  555. smalltalk.HLReferencesListWidget);
  556. smalltalk.addMethod(
  557. smalltalk.method({
  558. selector: "renderItemLabel:on:",
  559. category: 'rendering',
  560. fn: function (aMethod,html){
  561. var self=this;
  562. return smalltalk.withContext(function($ctx1) {
  563. var $2,$1;
  564. $2=_st(_st(_st(aMethod)._methodClass())._name()).__comma(" >> #");
  565. $1=_st($2).__comma(_st(aMethod)._selector());
  566. $ctx1.sendIdx[","]=1;
  567. _st(html)._with_($1);
  568. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{aMethod:aMethod,html:html},smalltalk.HLReferencesListWidget)})},
  569. args: ["aMethod", "html"],
  570. source: "renderItemLabel: aMethod on: html\x0a\x09html with: aMethod methodClass name, ' >> #', aMethod selector",
  571. messageSends: ["with:", ",", "name", "methodClass", "selector"],
  572. referencedClasses: []
  573. }),
  574. smalltalk.HLReferencesListWidget);
  575. smalltalk.addMethod(
  576. smalltalk.method({
  577. selector: "selectItem:",
  578. category: 'actions',
  579. fn: function (aMethod){
  580. var self=this;
  581. return smalltalk.withContext(function($ctx1) {
  582. _st(self._model())._selectedMethod_(aMethod);
  583. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{aMethod:aMethod},smalltalk.HLReferencesListWidget)})},
  584. args: ["aMethod"],
  585. source: "selectItem: aMethod\x0a\x09self model selectedMethod: aMethod",
  586. messageSends: ["selectedMethod:", "model"],
  587. referencedClasses: []
  588. }),
  589. smalltalk.HLReferencesListWidget);
  590. smalltalk.addMethod(
  591. smalltalk.method({
  592. selector: "on:",
  593. category: 'instance creation',
  594. fn: function (aModel){
  595. var self=this;
  596. return smalltalk.withContext(function($ctx1) {
  597. var $2,$3,$1;
  598. $2=self._new();
  599. _st($2)._model_(aModel);
  600. $3=_st($2)._yourself();
  601. $1=$3;
  602. return $1;
  603. }, function($ctx1) {$ctx1.fill(self,"on:",{aModel:aModel},smalltalk.HLReferencesListWidget.klass)})},
  604. args: ["aModel"],
  605. source: "on: aModel\x0a\x09^ self new \x0a\x09\x09model: aModel; \x0a\x09\x09yourself",
  606. messageSends: ["model:", "new", "yourself"],
  607. referencedClasses: []
  608. }),
  609. smalltalk.HLReferencesListWidget.klass);
  610. smalltalk.addClass('HLClassReferencesListWidget', smalltalk.HLReferencesListWidget, [], 'Helios-References');
  611. smalltalk.addMethod(
  612. smalltalk.method({
  613. selector: "label",
  614. category: 'accessing',
  615. fn: function (){
  616. var self=this;
  617. return smalltalk.withContext(function($ctx1) {
  618. return "Class references";
  619. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLClassReferencesListWidget)})},
  620. args: [],
  621. source: "label\x0a\x09^ 'Class references'",
  622. messageSends: [],
  623. referencedClasses: []
  624. }),
  625. smalltalk.HLClassReferencesListWidget);
  626. smalltalk.addMethod(
  627. smalltalk.method({
  628. selector: "onSearchReferences:",
  629. category: 'reactions',
  630. fn: function (aString){
  631. var self=this;
  632. return smalltalk.withContext(function($ctx1) {
  633. self._selectItem_(nil);
  634. self._items_(_st(self._model())._classReferencesOf_(aString));
  635. self._refresh();
  636. return self}, function($ctx1) {$ctx1.fill(self,"onSearchReferences:",{aString:aString},smalltalk.HLClassReferencesListWidget)})},
  637. args: ["aString"],
  638. source: "onSearchReferences: aString\x0a\x09self selectItem: nil.\x0a\x09self items: (self model classReferencesOf: aString).\x0a\x09self refresh",
  639. messageSends: ["selectItem:", "items:", "classReferencesOf:", "model", "refresh"],
  640. referencedClasses: []
  641. }),
  642. smalltalk.HLClassReferencesListWidget);
  643. smalltalk.addClass('HLImplementorsListWidget', smalltalk.HLReferencesListWidget, [], 'Helios-References');
  644. smalltalk.addMethod(
  645. smalltalk.method({
  646. selector: "label",
  647. category: 'accessing',
  648. fn: function (){
  649. var self=this;
  650. return smalltalk.withContext(function($ctx1) {
  651. return "Implementors";
  652. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLImplementorsListWidget)})},
  653. args: [],
  654. source: "label\x0a\x09^ 'Implementors'",
  655. messageSends: [],
  656. referencedClasses: []
  657. }),
  658. smalltalk.HLImplementorsListWidget);
  659. smalltalk.addMethod(
  660. smalltalk.method({
  661. selector: "onSearchReferences:",
  662. category: 'reactions',
  663. fn: function (aString){
  664. var self=this;
  665. return smalltalk.withContext(function($ctx1) {
  666. self._selectItem_(nil);
  667. self._items_(_st(self._model())._implementorsOf_(aString));
  668. self._refresh();
  669. return self}, function($ctx1) {$ctx1.fill(self,"onSearchReferences:",{aString:aString},smalltalk.HLImplementorsListWidget)})},
  670. args: ["aString"],
  671. source: "onSearchReferences: aString\x0a\x09self selectItem: nil.\x0a\x09self items: (self model implementorsOf: aString).\x0a\x09self refresh",
  672. messageSends: ["selectItem:", "items:", "implementorsOf:", "model", "refresh"],
  673. referencedClasses: []
  674. }),
  675. smalltalk.HLImplementorsListWidget);
  676. smalltalk.addClass('HLRegexpListWidget', smalltalk.HLReferencesListWidget, [], 'Helios-References');
  677. smalltalk.addMethod(
  678. smalltalk.method({
  679. selector: "label",
  680. category: 'accessing',
  681. fn: function (){
  682. var self=this;
  683. return smalltalk.withContext(function($ctx1) {
  684. return "Source search";
  685. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLRegexpListWidget)})},
  686. args: [],
  687. source: "label\x0a\x09^ 'Source search'",
  688. messageSends: [],
  689. referencedClasses: []
  690. }),
  691. smalltalk.HLRegexpListWidget);
  692. smalltalk.addMethod(
  693. smalltalk.method({
  694. selector: "onSearchReferences:",
  695. category: 'reactions',
  696. fn: function (aString){
  697. var self=this;
  698. return smalltalk.withContext(function($ctx1) {
  699. self._selectItem_(nil);
  700. self._items_(_st(self._model())._regexpReferencesOf_(aString));
  701. self._refresh();
  702. return self}, function($ctx1) {$ctx1.fill(self,"onSearchReferences:",{aString:aString},smalltalk.HLRegexpListWidget)})},
  703. args: ["aString"],
  704. source: "onSearchReferences: aString\x0a\x09self selectItem: nil.\x0a\x09self items: (self model regexpReferencesOf: aString).\x0a\x09self refresh",
  705. messageSends: ["selectItem:", "items:", "regexpReferencesOf:", "model", "refresh"],
  706. referencedClasses: []
  707. }),
  708. smalltalk.HLRegexpListWidget);
  709. smalltalk.addClass('HLSendersListWidget', smalltalk.HLReferencesListWidget, [], 'Helios-References');
  710. smalltalk.addMethod(
  711. smalltalk.method({
  712. selector: "label",
  713. category: 'accessing',
  714. fn: function (){
  715. var self=this;
  716. return smalltalk.withContext(function($ctx1) {
  717. return "Senders";
  718. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLSendersListWidget)})},
  719. args: [],
  720. source: "label\x0a\x09^ 'Senders'",
  721. messageSends: [],
  722. referencedClasses: []
  723. }),
  724. smalltalk.HLSendersListWidget);
  725. smalltalk.addMethod(
  726. smalltalk.method({
  727. selector: "onSearchReferences:",
  728. category: 'reactions',
  729. fn: function (aString){
  730. var self=this;
  731. return smalltalk.withContext(function($ctx1) {
  732. self._selectItem_(nil);
  733. self._items_(_st(self._model())._sendersOf_(aString));
  734. self._refresh();
  735. return self}, function($ctx1) {$ctx1.fill(self,"onSearchReferences:",{aString:aString},smalltalk.HLSendersListWidget)})},
  736. args: ["aString"],
  737. source: "onSearchReferences: aString\x0a\x09self selectItem: nil.\x0a\x09self items: (self model sendersOf: aString).\x0a\x09self refresh",
  738. messageSends: ["selectItem:", "items:", "sendersOf:", "model", "refresh"],
  739. referencedClasses: []
  740. }),
  741. smalltalk.HLSendersListWidget);
  742. smalltalk.addClass('HLReferencesModel', smalltalk.HLToolModel, ['methodsCache', 'classesAndMetaclassesCache'], 'Helios-References');
  743. smalltalk.addMethod(
  744. smalltalk.method({
  745. selector: "allMethods",
  746. category: 'accessing',
  747. fn: function (){
  748. var self=this;
  749. return smalltalk.withContext(function($ctx1) {
  750. var $1;
  751. $1=self._methodsCache();
  752. return $1;
  753. }, function($ctx1) {$ctx1.fill(self,"allMethods",{},smalltalk.HLReferencesModel)})},
  754. args: [],
  755. source: "allMethods\x0a\x09^ self methodsCache",
  756. messageSends: ["methodsCache"],
  757. referencedClasses: []
  758. }),
  759. smalltalk.HLReferencesModel);
  760. smalltalk.addMethod(
  761. smalltalk.method({
  762. selector: "allSelectors",
  763. category: 'accessing',
  764. fn: function (){
  765. var self=this;
  766. return smalltalk.withContext(function($ctx1) {
  767. var $1;
  768. $1=_st(_st(self._allMethods())._collect_((function(each){
  769. return smalltalk.withContext(function($ctx2) {
  770. return _st(each)._selector();
  771. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})})))._asSet();
  772. return $1;
  773. }, function($ctx1) {$ctx1.fill(self,"allSelectors",{},smalltalk.HLReferencesModel)})},
  774. args: [],
  775. source: "allSelectors\x0a\x09^ (self allMethods \x0a\x09\x09collect: [ :each | each selector ])\x0a\x09\x09asSet",
  776. messageSends: ["asSet", "collect:", "allMethods", "selector"],
  777. referencedClasses: []
  778. }),
  779. smalltalk.HLReferencesModel);
  780. smalltalk.addMethod(
  781. smalltalk.method({
  782. selector: "classReferencesOf:",
  783. category: 'accessing',
  784. fn: function (aString){
  785. var self=this;
  786. var references;
  787. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  788. return smalltalk.withContext(function($ctx1) {
  789. var $1;
  790. references=_st($OrderedCollection())._new();
  791. _st(self._classesAndMetaclasses())._do_((function(each){
  792. return smalltalk.withContext(function($ctx2) {
  793. return _st(_st(_st(each)._methodDictionary())._values())._do_((function(method){
  794. return smalltalk.withContext(function($ctx3) {
  795. if(smalltalk.assert(_st(_st(method)._referencedClasses())._includes_(aString))){
  796. return _st(references)._add_(method);
  797. };
  798. }, function($ctx3) {$ctx3.fillBlock({method:method},$ctx2,2)})}));
  799. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})}));
  800. $ctx1.sendIdx["do:"]=1;
  801. $1=references;
  802. return $1;
  803. }, function($ctx1) {$ctx1.fill(self,"classReferencesOf:",{aString:aString,references:references},smalltalk.HLReferencesModel)})},
  804. args: ["aString"],
  805. source: "classReferencesOf: aString\x0a\x09\x22Answer all methods referencing the class named aString\x22\x0a\x09\x0a\x09| references |\x0a\x09\x0a\x09references := OrderedCollection new.\x0a\x09\x0a\x09self classesAndMetaclasses do: [ :each |\x0a\x09\x09each methodDictionary values do: [ :method |\x0a\x09\x09\x09(method referencedClasses includes: aString) ifTrue: [\x0a\x09\x09\x09\x09references add: method ] ] ].\x0a\x09\x09\x09\x09\x0a\x09^ references",
  806. messageSends: ["new", "do:", "classesAndMetaclasses", "values", "methodDictionary", "ifTrue:", "includes:", "referencedClasses", "add:"],
  807. referencedClasses: ["OrderedCollection"]
  808. }),
  809. smalltalk.HLReferencesModel);
  810. smalltalk.addMethod(
  811. smalltalk.method({
  812. selector: "classesAndMetaclasses",
  813. category: 'accessing',
  814. fn: function (){
  815. var self=this;
  816. return smalltalk.withContext(function($ctx1) {
  817. var $1;
  818. $1=self._classesAndMetaclassesCache();
  819. return $1;
  820. }, function($ctx1) {$ctx1.fill(self,"classesAndMetaclasses",{},smalltalk.HLReferencesModel)})},
  821. args: [],
  822. source: "classesAndMetaclasses\x0a\x09^ self classesAndMetaclassesCache",
  823. messageSends: ["classesAndMetaclassesCache"],
  824. referencedClasses: []
  825. }),
  826. smalltalk.HLReferencesModel);
  827. smalltalk.addMethod(
  828. smalltalk.method({
  829. selector: "classesAndMetaclassesCache",
  830. category: 'cache',
  831. fn: function (){
  832. var self=this;
  833. return smalltalk.withContext(function($ctx1) {
  834. var $1;
  835. if(($receiver = self["@classesAndMetaclassesCache"]) == nil || $receiver == null){
  836. self._updateClassesAndMetaclassesCache();
  837. } else {
  838. self["@classesAndMetaclassesCache"];
  839. };
  840. $1=self["@classesAndMetaclassesCache"];
  841. return $1;
  842. }, function($ctx1) {$ctx1.fill(self,"classesAndMetaclassesCache",{},smalltalk.HLReferencesModel)})},
  843. args: [],
  844. source: "classesAndMetaclassesCache\x0a\x09classesAndMetaclassesCache ifNil: [ self updateClassesAndMetaclassesCache ].\x0a\x09\x0a\x09^ classesAndMetaclassesCache",
  845. messageSends: ["ifNil:", "updateClassesAndMetaclassesCache"],
  846. referencedClasses: []
  847. }),
  848. smalltalk.HLReferencesModel);
  849. smalltalk.addMethod(
  850. smalltalk.method({
  851. selector: "implementorsOf:",
  852. category: 'accessing',
  853. fn: function (aString){
  854. var self=this;
  855. return smalltalk.withContext(function($ctx1) {
  856. var $1;
  857. $1=_st(_st(self._allMethods())._select_((function(each){
  858. return smalltalk.withContext(function($ctx2) {
  859. return _st(_st(each)._selector()).__eq(aString);
  860. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})})))._collect_((function(each){
  861. return smalltalk.withContext(function($ctx2) {
  862. return self._methodReferenceOn_(each);
  863. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,2)})}));
  864. return $1;
  865. }, function($ctx1) {$ctx1.fill(self,"implementorsOf:",{aString:aString},smalltalk.HLReferencesModel)})},
  866. args: ["aString"],
  867. source: "implementorsOf: aString\x0a\x09^ (self allMethods select: [ :each |\x0a\x09\x09each selector = aString ])\x0a\x09\x09\x09collect: [ :each | self methodReferenceOn: each ]",
  868. messageSends: ["collect:", "select:", "allMethods", "=", "selector", "methodReferenceOn:"],
  869. referencedClasses: []
  870. }),
  871. smalltalk.HLReferencesModel);
  872. smalltalk.addMethod(
  873. smalltalk.method({
  874. selector: "isReferencesModel",
  875. category: 'testing',
  876. fn: function (){
  877. var self=this;
  878. return smalltalk.withContext(function($ctx1) {
  879. return true;
  880. }, function($ctx1) {$ctx1.fill(self,"isReferencesModel",{},smalltalk.HLReferencesModel)})},
  881. args: [],
  882. source: "isReferencesModel\x0a\x09^ true",
  883. messageSends: [],
  884. referencedClasses: []
  885. }),
  886. smalltalk.HLReferencesModel);
  887. smalltalk.addMethod(
  888. smalltalk.method({
  889. selector: "methodReferenceOn:",
  890. category: 'accessing',
  891. fn: function (aCompiledMethod){
  892. var self=this;
  893. function $HLMethodReference(){return smalltalk.HLMethodReference||(typeof HLMethodReference=="undefined"?nil:HLMethodReference)}
  894. return smalltalk.withContext(function($ctx1) {
  895. var $1;
  896. $1=_st($HLMethodReference())._on_(aCompiledMethod);
  897. return $1;
  898. }, function($ctx1) {$ctx1.fill(self,"methodReferenceOn:",{aCompiledMethod:aCompiledMethod},smalltalk.HLReferencesModel)})},
  899. args: ["aCompiledMethod"],
  900. source: "methodReferenceOn: aCompiledMethod\x0a\x09^ HLMethodReference on: aCompiledMethod",
  901. messageSends: ["on:"],
  902. referencedClasses: ["HLMethodReference"]
  903. }),
  904. smalltalk.HLReferencesModel);
  905. smalltalk.addMethod(
  906. smalltalk.method({
  907. selector: "methodsCache",
  908. category: 'cache',
  909. fn: function (){
  910. var self=this;
  911. return smalltalk.withContext(function($ctx1) {
  912. var $1;
  913. if(($receiver = self["@methodsCache"]) == nil || $receiver == null){
  914. self._updateMethodsCache();
  915. } else {
  916. self["@methodsCache"];
  917. };
  918. $1=self["@methodsCache"];
  919. return $1;
  920. }, function($ctx1) {$ctx1.fill(self,"methodsCache",{},smalltalk.HLReferencesModel)})},
  921. args: [],
  922. source: "methodsCache\x0a\x09methodsCache ifNil: [ self updateMethodsCache ].\x0a\x09\x0a\x09^ methodsCache",
  923. messageSends: ["ifNil:", "updateMethodsCache"],
  924. referencedClasses: []
  925. }),
  926. smalltalk.HLReferencesModel);
  927. smalltalk.addMethod(
  928. smalltalk.method({
  929. selector: "regexpReferencesOf:",
  930. category: 'accessing',
  931. fn: function (aString){
  932. var self=this;
  933. return smalltalk.withContext(function($ctx1) {
  934. var $1;
  935. $1=_st(_st(self._allMethods())._select_((function(each){
  936. return smalltalk.withContext(function($ctx2) {
  937. return _st(_st(each)._source())._match_(aString);
  938. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})})))._collect_((function(each){
  939. return smalltalk.withContext(function($ctx2) {
  940. return self._methodReferenceOn_(each);
  941. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,2)})}));
  942. return $1;
  943. }, function($ctx1) {$ctx1.fill(self,"regexpReferencesOf:",{aString:aString},smalltalk.HLReferencesModel)})},
  944. args: ["aString"],
  945. source: "regexpReferencesOf: aString\x0a\x09^ (self allMethods select: [ :each |\x0a\x09\x09each source match: aString ])\x0a\x09\x09\x09collect: [ :each | self methodReferenceOn: each ]",
  946. messageSends: ["collect:", "select:", "allMethods", "match:", "source", "methodReferenceOn:"],
  947. referencedClasses: []
  948. }),
  949. smalltalk.HLReferencesModel);
  950. smalltalk.addMethod(
  951. smalltalk.method({
  952. selector: "search:",
  953. category: 'actions',
  954. fn: function (aString){
  955. var self=this;
  956. function $HLSearchReferences(){return smalltalk.HLSearchReferences||(typeof HLSearchReferences=="undefined"?nil:HLSearchReferences)}
  957. return smalltalk.withContext(function($ctx1) {
  958. var $1,$2;
  959. self._updateCaches();
  960. $1=_st($HLSearchReferences())._new();
  961. _st($1)._searchString_(aString);
  962. $2=_st($1)._yourself();
  963. _st(self._announcer())._announce_($2);
  964. return self}, function($ctx1) {$ctx1.fill(self,"search:",{aString:aString},smalltalk.HLReferencesModel)})},
  965. args: ["aString"],
  966. source: "search: aString\x0a\x09self updateCaches.\x0a\x09\x0a\x09self announcer announce: (HLSearchReferences new\x0a\x09\x09searchString: aString;\x0a\x09\x09yourself)",
  967. messageSends: ["updateCaches", "announce:", "announcer", "searchString:", "new", "yourself"],
  968. referencedClasses: ["HLSearchReferences"]
  969. }),
  970. smalltalk.HLReferencesModel);
  971. smalltalk.addMethod(
  972. smalltalk.method({
  973. selector: "sendersOf:",
  974. category: 'accessing',
  975. fn: function (aString){
  976. var self=this;
  977. return smalltalk.withContext(function($ctx1) {
  978. var $1;
  979. $1=_st(_st(self._allMethods())._select_((function(each){
  980. return smalltalk.withContext(function($ctx2) {
  981. return _st(_st(each)._messageSends())._includes_(aString);
  982. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})})))._collect_((function(each){
  983. return smalltalk.withContext(function($ctx2) {
  984. return self._methodReferenceOn_(each);
  985. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,2)})}));
  986. return $1;
  987. }, function($ctx1) {$ctx1.fill(self,"sendersOf:",{aString:aString},smalltalk.HLReferencesModel)})},
  988. args: ["aString"],
  989. source: "sendersOf: aString\x0a\x09^ (self allMethods select: [ :each |\x0a\x09\x09each messageSends includes: aString ])\x0a\x09\x09\x09collect: [ :each | self methodReferenceOn: each ]",
  990. messageSends: ["collect:", "select:", "allMethods", "includes:", "messageSends", "methodReferenceOn:"],
  991. referencedClasses: []
  992. }),
  993. smalltalk.HLReferencesModel);
  994. smalltalk.addMethod(
  995. smalltalk.method({
  996. selector: "updateCaches",
  997. category: 'cache',
  998. fn: function (){
  999. var self=this;
  1000. return smalltalk.withContext(function($ctx1) {
  1001. var $1;
  1002. self._updateClassesAndMetaclassesCache();
  1003. $1=self._updateMethodsCache();
  1004. return self}, function($ctx1) {$ctx1.fill(self,"updateCaches",{},smalltalk.HLReferencesModel)})},
  1005. args: [],
  1006. source: "updateCaches\x0a\x09self \x0a\x09\x09updateClassesAndMetaclassesCache;\x0a\x09\x09updateMethodsCache",
  1007. messageSends: ["updateClassesAndMetaclassesCache", "updateMethodsCache"],
  1008. referencedClasses: []
  1009. }),
  1010. smalltalk.HLReferencesModel);
  1011. smalltalk.addMethod(
  1012. smalltalk.method({
  1013. selector: "updateClassesAndMetaclassesCache",
  1014. category: 'cache',
  1015. fn: function (){
  1016. var self=this;
  1017. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  1018. return smalltalk.withContext(function($ctx1) {
  1019. var $1;
  1020. self["@classesAndMetaclassesCache"]=_st(_st(self._environment())._classes())._inject_into_(_st($OrderedCollection())._new(),(function(acc,each){
  1021. return smalltalk.withContext(function($ctx2) {
  1022. _st(acc)._add_(each);
  1023. $ctx2.sendIdx["add:"]=1;
  1024. _st(acc)._add_(_st(each)._class());
  1025. $1=_st(acc)._yourself();
  1026. return $1;
  1027. }, function($ctx2) {$ctx2.fillBlock({acc:acc,each:each},$ctx1,1)})}));
  1028. return self}, function($ctx1) {$ctx1.fill(self,"updateClassesAndMetaclassesCache",{},smalltalk.HLReferencesModel)})},
  1029. args: [],
  1030. source: "updateClassesAndMetaclassesCache\x0a\x09classesAndMetaclassesCache := self environment classes \x0a\x09\x09inject: OrderedCollection new \x0a\x09\x09into: [ :acc :each |\x0a\x09\x09\x09acc \x0a\x09\x09\x09\x09add: each; \x0a\x09\x09\x09\x09add: each class;\x0a\x09\x09\x09\x09yourself ]",
  1031. messageSends: ["inject:into:", "classes", "environment", "new", "add:", "class", "yourself"],
  1032. referencedClasses: ["OrderedCollection"]
  1033. }),
  1034. smalltalk.HLReferencesModel);
  1035. smalltalk.addMethod(
  1036. smalltalk.method({
  1037. selector: "updateMethodsCache",
  1038. category: 'cache',
  1039. fn: function (){
  1040. var self=this;
  1041. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  1042. return smalltalk.withContext(function($ctx1) {
  1043. self["@methodsCache"]=_st(self._classesAndMetaclasses())._inject_into_(_st($OrderedCollection())._new(),(function(acc,each){
  1044. return smalltalk.withContext(function($ctx2) {
  1045. return _st(acc).__comma(_st(each)._methods());
  1046. }, function($ctx2) {$ctx2.fillBlock({acc:acc,each:each},$ctx1,1)})}));
  1047. return self}, function($ctx1) {$ctx1.fill(self,"updateMethodsCache",{},smalltalk.HLReferencesModel)})},
  1048. args: [],
  1049. source: "updateMethodsCache\x0a\x09methodsCache := self classesAndMetaclasses\x0a\x09\x09inject: OrderedCollection new\x0a\x09\x09into: [ :acc :each |\x0a\x09\x09\x09acc, each methods ]",
  1050. messageSends: ["inject:into:", "classesAndMetaclasses", "new", ",", "methods"],
  1051. referencedClasses: ["OrderedCollection"]
  1052. }),
  1053. smalltalk.HLReferencesModel);
  1054. });