Helios-References.js 40 KB

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