Helios-References.js 41 KB

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