Helios-References.js 41 KB

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