Compiler-AST.js 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257
  1. (function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Compiler-AST');
  3. smalltalk.addClass('Node', smalltalk.Object, ['parent', 'position', 'nodes', 'shouldBeInlined', 'shouldBeAliased'], 'Compiler-AST');
  4. smalltalk.Node.comment="I am the abstract root class of the abstract syntax tree.\x0a\x0aConcrete classes should implement `#accept:` to allow visiting.\x0a\x0a`position` holds a point containing line and column number of the symbol location in the original source file.";
  5. smalltalk.addMethod(
  6. smalltalk.method({
  7. selector: "accept:",
  8. category: 'visiting',
  9. fn: function (aVisitor){
  10. var self=this;
  11. return smalltalk.withContext(function($ctx1) {
  12. var $1;
  13. $1=_st(aVisitor)._visitNode_(self);
  14. return $1;
  15. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.Node)})},
  16. args: ["aVisitor"],
  17. source: "accept: aVisitor\x0a\x09^ aVisitor visitNode: self",
  18. messageSends: ["visitNode:"],
  19. referencedClasses: []
  20. }),
  21. smalltalk.Node);
  22. smalltalk.addMethod(
  23. smalltalk.method({
  24. selector: "addNode:",
  25. category: 'accessing',
  26. fn: function (aNode){
  27. var self=this;
  28. return smalltalk.withContext(function($ctx1) {
  29. _st(self._nodes())._add_(aNode);
  30. _st(aNode)._parent_(self);
  31. return self}, function($ctx1) {$ctx1.fill(self,"addNode:",{aNode:aNode},smalltalk.Node)})},
  32. args: ["aNode"],
  33. source: "addNode: aNode\x0a\x09self nodes add: aNode.\x0a\x09aNode parent: self",
  34. messageSends: ["add:", "nodes", "parent:"],
  35. referencedClasses: []
  36. }),
  37. smalltalk.Node);
  38. smalltalk.addMethod(
  39. smalltalk.method({
  40. selector: "isAssignmentNode",
  41. category: 'testing',
  42. fn: function (){
  43. var self=this;
  44. return smalltalk.withContext(function($ctx1) {
  45. return false;
  46. }, function($ctx1) {$ctx1.fill(self,"isAssignmentNode",{},smalltalk.Node)})},
  47. args: [],
  48. source: "isAssignmentNode\x0a\x09^ false",
  49. messageSends: [],
  50. referencedClasses: []
  51. }),
  52. smalltalk.Node);
  53. smalltalk.addMethod(
  54. smalltalk.method({
  55. selector: "isBlockNode",
  56. category: 'testing',
  57. fn: function (){
  58. var self=this;
  59. return smalltalk.withContext(function($ctx1) {
  60. return false;
  61. }, function($ctx1) {$ctx1.fill(self,"isBlockNode",{},smalltalk.Node)})},
  62. args: [],
  63. source: "isBlockNode\x0a\x09^false",
  64. messageSends: [],
  65. referencedClasses: []
  66. }),
  67. smalltalk.Node);
  68. smalltalk.addMethod(
  69. smalltalk.method({
  70. selector: "isBlockSequenceNode",
  71. category: 'testing',
  72. fn: function (){
  73. var self=this;
  74. return smalltalk.withContext(function($ctx1) {
  75. return false;
  76. }, function($ctx1) {$ctx1.fill(self,"isBlockSequenceNode",{},smalltalk.Node)})},
  77. args: [],
  78. source: "isBlockSequenceNode\x0a\x09^false",
  79. messageSends: [],
  80. referencedClasses: []
  81. }),
  82. smalltalk.Node);
  83. smalltalk.addMethod(
  84. smalltalk.method({
  85. selector: "isCascadeNode",
  86. category: 'testing',
  87. fn: function (){
  88. var self=this;
  89. return smalltalk.withContext(function($ctx1) {
  90. return false;
  91. }, function($ctx1) {$ctx1.fill(self,"isCascadeNode",{},smalltalk.Node)})},
  92. args: [],
  93. source: "isCascadeNode\x0a\x09^ false",
  94. messageSends: [],
  95. referencedClasses: []
  96. }),
  97. smalltalk.Node);
  98. smalltalk.addMethod(
  99. smalltalk.method({
  100. selector: "isImmutable",
  101. category: 'testing',
  102. fn: function (){
  103. var self=this;
  104. return smalltalk.withContext(function($ctx1) {
  105. return false;
  106. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.Node)})},
  107. args: [],
  108. source: "isImmutable\x0a\x09^false",
  109. messageSends: [],
  110. referencedClasses: []
  111. }),
  112. smalltalk.Node);
  113. smalltalk.addMethod(
  114. smalltalk.method({
  115. selector: "isJSStatementNode",
  116. category: 'testing',
  117. fn: function (){
  118. var self=this;
  119. return smalltalk.withContext(function($ctx1) {
  120. return false;
  121. }, function($ctx1) {$ctx1.fill(self,"isJSStatementNode",{},smalltalk.Node)})},
  122. args: [],
  123. source: "isJSStatementNode\x0a\x09^ false",
  124. messageSends: [],
  125. referencedClasses: []
  126. }),
  127. smalltalk.Node);
  128. smalltalk.addMethod(
  129. smalltalk.method({
  130. selector: "isLastChild",
  131. category: 'testing',
  132. fn: function (){
  133. var self=this;
  134. return smalltalk.withContext(function($ctx1) {
  135. var $1;
  136. $1=_st(_st(_st(self._parent())._nodes())._last()).__eq(self);
  137. return $1;
  138. }, function($ctx1) {$ctx1.fill(self,"isLastChild",{},smalltalk.Node)})},
  139. args: [],
  140. source: "isLastChild\x0a\x09^ self parent nodes last = self",
  141. messageSends: ["=", "last", "nodes", "parent"],
  142. referencedClasses: []
  143. }),
  144. smalltalk.Node);
  145. smalltalk.addMethod(
  146. smalltalk.method({
  147. selector: "isNode",
  148. category: 'testing',
  149. fn: function (){
  150. var self=this;
  151. return smalltalk.withContext(function($ctx1) {
  152. return true;
  153. }, function($ctx1) {$ctx1.fill(self,"isNode",{},smalltalk.Node)})},
  154. args: [],
  155. source: "isNode\x0a\x09^ true",
  156. messageSends: [],
  157. referencedClasses: []
  158. }),
  159. smalltalk.Node);
  160. smalltalk.addMethod(
  161. smalltalk.method({
  162. selector: "isReturnNode",
  163. category: 'testing',
  164. fn: function (){
  165. var self=this;
  166. return smalltalk.withContext(function($ctx1) {
  167. return false;
  168. }, function($ctx1) {$ctx1.fill(self,"isReturnNode",{},smalltalk.Node)})},
  169. args: [],
  170. source: "isReturnNode\x0a\x09^false",
  171. messageSends: [],
  172. referencedClasses: []
  173. }),
  174. smalltalk.Node);
  175. smalltalk.addMethod(
  176. smalltalk.method({
  177. selector: "isSendNode",
  178. category: 'testing',
  179. fn: function (){
  180. var self=this;
  181. return smalltalk.withContext(function($ctx1) {
  182. return false;
  183. }, function($ctx1) {$ctx1.fill(self,"isSendNode",{},smalltalk.Node)})},
  184. args: [],
  185. source: "isSendNode\x0a\x09^false",
  186. messageSends: [],
  187. referencedClasses: []
  188. }),
  189. smalltalk.Node);
  190. smalltalk.addMethod(
  191. smalltalk.method({
  192. selector: "isValueNode",
  193. category: 'testing',
  194. fn: function (){
  195. var self=this;
  196. return smalltalk.withContext(function($ctx1) {
  197. return false;
  198. }, function($ctx1) {$ctx1.fill(self,"isValueNode",{},smalltalk.Node)})},
  199. args: [],
  200. source: "isValueNode\x0a\x09^false",
  201. messageSends: [],
  202. referencedClasses: []
  203. }),
  204. smalltalk.Node);
  205. smalltalk.addMethod(
  206. smalltalk.method({
  207. selector: "nextChild",
  208. category: 'accessing',
  209. fn: function (){
  210. var self=this;
  211. return smalltalk.withContext(function($ctx1) {
  212. var $2,$1;
  213. $2=_st(self._nodes())._isEmpty();
  214. if(smalltalk.assert($2)){
  215. $1=self;
  216. } else {
  217. $1=_st(_st(self._nodes())._first())._nextChild();
  218. };
  219. return $1;
  220. }, function($ctx1) {$ctx1.fill(self,"nextChild",{},smalltalk.Node)})},
  221. args: [],
  222. source: "nextChild\x0a\x09\x22Answer the next node after aNode.\x0a\x09Recurse into the possible children of the receiver to answer the next node to be evaluated\x22\x0a\x09\x0a\x09^ self nodes isEmpty\x0a\x09\x09ifTrue: [ self ]\x0a\x09\x09ifFalse: [ self nodes first nextChild ]",
  223. messageSends: ["ifTrue:ifFalse:", "isEmpty", "nodes", "nextChild", "first"],
  224. referencedClasses: []
  225. }),
  226. smalltalk.Node);
  227. smalltalk.addMethod(
  228. smalltalk.method({
  229. selector: "nextNode",
  230. category: 'accessing',
  231. fn: function (){
  232. var self=this;
  233. return smalltalk.withContext(function($ctx1) {
  234. var $2,$1;
  235. $2=self._parent();
  236. if(($receiver = $2) == nil || $receiver == undefined){
  237. $1=$2;
  238. } else {
  239. var node;
  240. node=$receiver;
  241. $1=_st(node)._nextNode_(self);
  242. };
  243. return $1;
  244. }, function($ctx1) {$ctx1.fill(self,"nextNode",{},smalltalk.Node)})},
  245. args: [],
  246. source: "nextNode\x0a\x09^ self parent ifNotNil: [ :node |\x0a\x09\x09node nextNode: self ]",
  247. messageSends: ["ifNotNil:", "parent", "nextNode:"],
  248. referencedClasses: []
  249. }),
  250. smalltalk.Node);
  251. smalltalk.addMethod(
  252. smalltalk.method({
  253. selector: "nextNode:",
  254. category: 'accessing',
  255. fn: function (aNode){
  256. var self=this;
  257. var next;
  258. return smalltalk.withContext(function($ctx1) {
  259. var $1,$2;
  260. var $early={};
  261. try {
  262. next=_st(self._nodes())._at_ifAbsent_(_st(_st(self._nodes())._indexOf_(aNode)).__plus((1)),(function(){
  263. return smalltalk.withContext(function($ctx2) {
  264. $1=self;
  265. throw $early=[$1];
  266. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  267. $2=_st(next)._nextChild();
  268. return $2;
  269. }
  270. catch(e) {if(e===$early)return e[0]; throw e}
  271. }, function($ctx1) {$ctx1.fill(self,"nextNode:",{aNode:aNode,next:next},smalltalk.Node)})},
  272. args: ["aNode"],
  273. source: "nextNode: aNode\x0a\x09\x22Answer the next node after aNode.\x0a\x09Recurse into the possible children of the next node to answer the next node to be evaluated\x22\x0a\x09\x0a\x09| next |\x0a\x09\x0a\x09next := self nodes \x0a\x09\x09at: (self nodes indexOf: aNode) + 1\x0a\x09\x09ifAbsent: [ ^ self ].\x0a\x09\x0a\x09^ next nextChild",
  274. messageSends: ["at:ifAbsent:", "nodes", "+", "indexOf:", "nextChild"],
  275. referencedClasses: []
  276. }),
  277. smalltalk.Node);
  278. smalltalk.addMethod(
  279. smalltalk.method({
  280. selector: "nodes",
  281. category: 'accessing',
  282. fn: function (){
  283. var self=this;
  284. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  285. return smalltalk.withContext(function($ctx1) {
  286. var $2,$1;
  287. $2=self["@nodes"];
  288. if(($receiver = $2) == nil || $receiver == undefined){
  289. self["@nodes"]=_st($Array())._new();
  290. $1=self["@nodes"];
  291. } else {
  292. $1=$2;
  293. };
  294. return $1;
  295. }, function($ctx1) {$ctx1.fill(self,"nodes",{},smalltalk.Node)})},
  296. args: [],
  297. source: "nodes\x0a\x09^nodes ifNil: [nodes := Array new]",
  298. messageSends: ["ifNil:", "new"],
  299. referencedClasses: ["Array"]
  300. }),
  301. smalltalk.Node);
  302. smalltalk.addMethod(
  303. smalltalk.method({
  304. selector: "nodes:",
  305. category: 'building',
  306. fn: function (aCollection){
  307. var self=this;
  308. return smalltalk.withContext(function($ctx1) {
  309. self["@nodes"]=aCollection;
  310. _st(aCollection)._do_((function(each){
  311. return smalltalk.withContext(function($ctx2) {
  312. return _st(each)._parent_(self);
  313. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})}));
  314. return self}, function($ctx1) {$ctx1.fill(self,"nodes:",{aCollection:aCollection},smalltalk.Node)})},
  315. args: ["aCollection"],
  316. source: "nodes: aCollection\x0a\x09nodes := aCollection.\x0a\x09aCollection do: [ :each | each parent: self ]",
  317. messageSends: ["do:", "parent:"],
  318. referencedClasses: []
  319. }),
  320. smalltalk.Node);
  321. smalltalk.addMethod(
  322. smalltalk.method({
  323. selector: "parent",
  324. category: 'accessing',
  325. fn: function (){
  326. var self=this;
  327. return smalltalk.withContext(function($ctx1) {
  328. var $1;
  329. $1=self["@parent"];
  330. return $1;
  331. }, function($ctx1) {$ctx1.fill(self,"parent",{},smalltalk.Node)})},
  332. args: [],
  333. source: "parent\x0a\x09^ parent",
  334. messageSends: [],
  335. referencedClasses: []
  336. }),
  337. smalltalk.Node);
  338. smalltalk.addMethod(
  339. smalltalk.method({
  340. selector: "parent:",
  341. category: 'accessing',
  342. fn: function (aNode){
  343. var self=this;
  344. return smalltalk.withContext(function($ctx1) {
  345. self["@parent"]=aNode;
  346. return self}, function($ctx1) {$ctx1.fill(self,"parent:",{aNode:aNode},smalltalk.Node)})},
  347. args: ["aNode"],
  348. source: "parent: aNode\x0a\x09parent := aNode",
  349. messageSends: [],
  350. referencedClasses: []
  351. }),
  352. smalltalk.Node);
  353. smalltalk.addMethod(
  354. smalltalk.method({
  355. selector: "position",
  356. category: 'accessing',
  357. fn: function (){
  358. var self=this;
  359. return smalltalk.withContext(function($ctx1) {
  360. var $2,$3,$1;
  361. $2=self["@position"];
  362. if(($receiver = $2) == nil || $receiver == undefined){
  363. $3=self._parent();
  364. if(($receiver = $3) == nil || $receiver == undefined){
  365. $1=$3;
  366. } else {
  367. var node;
  368. node=$receiver;
  369. $1=_st(node)._position();
  370. };
  371. } else {
  372. $1=$2;
  373. };
  374. return $1;
  375. }, function($ctx1) {$ctx1.fill(self,"position",{},smalltalk.Node)})},
  376. args: [],
  377. source: "position\x0a\x09\x22answer the line and column of the receiver in the source code\x22\x0a\x09\x0a\x09^ position ifNil: [ \x0a\x09\x09self parent ifNotNil: [ :node | node position ] ]",
  378. messageSends: ["ifNil:", "ifNotNil:", "parent", "position"],
  379. referencedClasses: []
  380. }),
  381. smalltalk.Node);
  382. smalltalk.addMethod(
  383. smalltalk.method({
  384. selector: "position:",
  385. category: 'building',
  386. fn: function (aPosition){
  387. var self=this;
  388. return smalltalk.withContext(function($ctx1) {
  389. self["@position"]=aPosition;
  390. return self}, function($ctx1) {$ctx1.fill(self,"position:",{aPosition:aPosition},smalltalk.Node)})},
  391. args: ["aPosition"],
  392. source: "position: aPosition\x0a\x09position := aPosition",
  393. messageSends: [],
  394. referencedClasses: []
  395. }),
  396. smalltalk.Node);
  397. smalltalk.addMethod(
  398. smalltalk.method({
  399. selector: "postCopy",
  400. category: 'copying',
  401. fn: function (){
  402. var self=this;
  403. return smalltalk.withContext(function($ctx1) {
  404. smalltalk.Node.superclass.fn.prototype._postCopy.apply(_st(self), []);
  405. _st(self._nodes())._do_((function(each){
  406. return smalltalk.withContext(function($ctx2) {
  407. return _st(each)._parent_(self);
  408. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})}));
  409. return self}, function($ctx1) {$ctx1.fill(self,"postCopy",{},smalltalk.Node)})},
  410. args: [],
  411. source: "postCopy\x0a\x09super postCopy.\x0a\x09self nodes do: [ :each | each parent: self ]",
  412. messageSends: ["postCopy", "do:", "nodes", "parent:"],
  413. referencedClasses: []
  414. }),
  415. smalltalk.Node);
  416. smalltalk.addMethod(
  417. smalltalk.method({
  418. selector: "shouldBeAliased",
  419. category: 'accessing',
  420. fn: function (){
  421. var self=this;
  422. return smalltalk.withContext(function($ctx1) {
  423. var $2,$1;
  424. $2=self["@shouldBeAliased"];
  425. if(($receiver = $2) == nil || $receiver == undefined){
  426. $1=false;
  427. } else {
  428. $1=$2;
  429. };
  430. return $1;
  431. }, function($ctx1) {$ctx1.fill(self,"shouldBeAliased",{},smalltalk.Node)})},
  432. args: [],
  433. source: "shouldBeAliased\x0a\x09^ shouldBeAliased ifNil: [ false ]",
  434. messageSends: ["ifNil:"],
  435. referencedClasses: []
  436. }),
  437. smalltalk.Node);
  438. smalltalk.addMethod(
  439. smalltalk.method({
  440. selector: "shouldBeAliased:",
  441. category: 'accessing',
  442. fn: function (aBoolean){
  443. var self=this;
  444. return smalltalk.withContext(function($ctx1) {
  445. self["@shouldBeAliased"]=aBoolean;
  446. return self}, function($ctx1) {$ctx1.fill(self,"shouldBeAliased:",{aBoolean:aBoolean},smalltalk.Node)})},
  447. args: ["aBoolean"],
  448. source: "shouldBeAliased: aBoolean\x0a\x09shouldBeAliased := aBoolean",
  449. messageSends: [],
  450. referencedClasses: []
  451. }),
  452. smalltalk.Node);
  453. smalltalk.addMethod(
  454. smalltalk.method({
  455. selector: "shouldBeInlined",
  456. category: 'accessing',
  457. fn: function (){
  458. var self=this;
  459. return smalltalk.withContext(function($ctx1) {
  460. var $2,$1;
  461. $2=self["@shouldBeInlined"];
  462. if(($receiver = $2) == nil || $receiver == undefined){
  463. $1=false;
  464. } else {
  465. $1=$2;
  466. };
  467. return $1;
  468. }, function($ctx1) {$ctx1.fill(self,"shouldBeInlined",{},smalltalk.Node)})},
  469. args: [],
  470. source: "shouldBeInlined\x0a\x09^ shouldBeInlined ifNil: [ false ]",
  471. messageSends: ["ifNil:"],
  472. referencedClasses: []
  473. }),
  474. smalltalk.Node);
  475. smalltalk.addMethod(
  476. smalltalk.method({
  477. selector: "shouldBeInlined:",
  478. category: 'accessing',
  479. fn: function (aBoolean){
  480. var self=this;
  481. return smalltalk.withContext(function($ctx1) {
  482. self["@shouldBeInlined"]=aBoolean;
  483. return self}, function($ctx1) {$ctx1.fill(self,"shouldBeInlined:",{aBoolean:aBoolean},smalltalk.Node)})},
  484. args: ["aBoolean"],
  485. source: "shouldBeInlined: aBoolean\x0a\x09shouldBeInlined := aBoolean",
  486. messageSends: [],
  487. referencedClasses: []
  488. }),
  489. smalltalk.Node);
  490. smalltalk.addMethod(
  491. smalltalk.method({
  492. selector: "stopOnStepping",
  493. category: 'testing',
  494. fn: function (){
  495. var self=this;
  496. return smalltalk.withContext(function($ctx1) {
  497. return false;
  498. }, function($ctx1) {$ctx1.fill(self,"stopOnStepping",{},smalltalk.Node)})},
  499. args: [],
  500. source: "stopOnStepping\x0a\x09^ false",
  501. messageSends: [],
  502. referencedClasses: []
  503. }),
  504. smalltalk.Node);
  505. smalltalk.addMethod(
  506. smalltalk.method({
  507. selector: "subtreeNeedsAliasing",
  508. category: 'testing',
  509. fn: function (){
  510. var self=this;
  511. return smalltalk.withContext(function($ctx1) {
  512. var $1;
  513. $1=_st(_st(self._shouldBeAliased())._or_((function(){
  514. return smalltalk.withContext(function($ctx2) {
  515. return self._shouldBeInlined();
  516. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})})))._or_((function(){
  517. return smalltalk.withContext(function($ctx2) {
  518. return _st(_st(self._nodes())._detect_ifNone_((function(each){
  519. return smalltalk.withContext(function($ctx3) {
  520. return _st(each)._subtreeNeedsAliasing();
  521. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2,3)})}),(function(){
  522. return smalltalk.withContext(function($ctx3) {
  523. return false;
  524. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,4)})}))).__tild_eq(false);
  525. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)})}));
  526. return $1;
  527. }, function($ctx1) {$ctx1.fill(self,"subtreeNeedsAliasing",{},smalltalk.Node)})},
  528. args: [],
  529. source: "subtreeNeedsAliasing\x0a\x09^(self shouldBeAliased or: [ self shouldBeInlined ]) or: [\x0a\x09\x09(self nodes detect: [ :each | each subtreeNeedsAliasing ] ifNone: [ false ]) ~= false ]",
  530. messageSends: ["or:", "shouldBeAliased", "shouldBeInlined", "~=", "detect:ifNone:", "nodes", "subtreeNeedsAliasing"],
  531. referencedClasses: []
  532. }),
  533. smalltalk.Node);
  534. smalltalk.addClass('AssignmentNode', smalltalk.Node, ['left', 'right'], 'Compiler-AST');
  535. smalltalk.AssignmentNode.comment="I represent an assignment node.";
  536. smalltalk.addMethod(
  537. smalltalk.method({
  538. selector: "accept:",
  539. category: 'visiting',
  540. fn: function (aVisitor){
  541. var self=this;
  542. return smalltalk.withContext(function($ctx1) {
  543. var $1;
  544. $1=_st(aVisitor)._visitAssignmentNode_(self);
  545. return $1;
  546. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.AssignmentNode)})},
  547. args: ["aVisitor"],
  548. source: "accept: aVisitor\x0a\x09^ aVisitor visitAssignmentNode: self",
  549. messageSends: ["visitAssignmentNode:"],
  550. referencedClasses: []
  551. }),
  552. smalltalk.AssignmentNode);
  553. smalltalk.addMethod(
  554. smalltalk.method({
  555. selector: "isAssignmentNode",
  556. category: 'testing',
  557. fn: function (){
  558. var self=this;
  559. return smalltalk.withContext(function($ctx1) {
  560. return true;
  561. }, function($ctx1) {$ctx1.fill(self,"isAssignmentNode",{},smalltalk.AssignmentNode)})},
  562. args: [],
  563. source: "isAssignmentNode\x0a\x09^ true",
  564. messageSends: [],
  565. referencedClasses: []
  566. }),
  567. smalltalk.AssignmentNode);
  568. smalltalk.addMethod(
  569. smalltalk.method({
  570. selector: "left",
  571. category: 'accessing',
  572. fn: function (){
  573. var self=this;
  574. return smalltalk.withContext(function($ctx1) {
  575. var $1;
  576. $1=self["@left"];
  577. return $1;
  578. }, function($ctx1) {$ctx1.fill(self,"left",{},smalltalk.AssignmentNode)})},
  579. args: [],
  580. source: "left\x0a\x09^left",
  581. messageSends: [],
  582. referencedClasses: []
  583. }),
  584. smalltalk.AssignmentNode);
  585. smalltalk.addMethod(
  586. smalltalk.method({
  587. selector: "left:",
  588. category: 'accessing',
  589. fn: function (aNode){
  590. var self=this;
  591. return smalltalk.withContext(function($ctx1) {
  592. self["@left"]=aNode;
  593. _st(aNode)._parent_(self);
  594. return self}, function($ctx1) {$ctx1.fill(self,"left:",{aNode:aNode},smalltalk.AssignmentNode)})},
  595. args: ["aNode"],
  596. source: "left: aNode\x0a\x09left := aNode.\x0a\x09aNode parent: self",
  597. messageSends: ["parent:"],
  598. referencedClasses: []
  599. }),
  600. smalltalk.AssignmentNode);
  601. smalltalk.addMethod(
  602. smalltalk.method({
  603. selector: "nodes",
  604. category: 'accessing',
  605. fn: function (){
  606. var self=this;
  607. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  608. return smalltalk.withContext(function($ctx1) {
  609. var $1;
  610. $1=_st($Array())._with_with_(self._left(),self._right());
  611. return $1;
  612. }, function($ctx1) {$ctx1.fill(self,"nodes",{},smalltalk.AssignmentNode)})},
  613. args: [],
  614. source: "nodes\x0a\x09^ Array with: self left with: self right",
  615. messageSends: ["with:with:", "left", "right"],
  616. referencedClasses: ["Array"]
  617. }),
  618. smalltalk.AssignmentNode);
  619. smalltalk.addMethod(
  620. smalltalk.method({
  621. selector: "right",
  622. category: 'accessing',
  623. fn: function (){
  624. var self=this;
  625. return smalltalk.withContext(function($ctx1) {
  626. var $1;
  627. $1=self["@right"];
  628. return $1;
  629. }, function($ctx1) {$ctx1.fill(self,"right",{},smalltalk.AssignmentNode)})},
  630. args: [],
  631. source: "right\x0a\x09^right",
  632. messageSends: [],
  633. referencedClasses: []
  634. }),
  635. smalltalk.AssignmentNode);
  636. smalltalk.addMethod(
  637. smalltalk.method({
  638. selector: "right:",
  639. category: 'accessing',
  640. fn: function (aNode){
  641. var self=this;
  642. return smalltalk.withContext(function($ctx1) {
  643. self["@right"]=aNode;
  644. _st(aNode)._parent_(self);
  645. return self}, function($ctx1) {$ctx1.fill(self,"right:",{aNode:aNode},smalltalk.AssignmentNode)})},
  646. args: ["aNode"],
  647. source: "right: aNode\x0a\x09right := aNode.\x0a\x09aNode parent: self",
  648. messageSends: ["parent:"],
  649. referencedClasses: []
  650. }),
  651. smalltalk.AssignmentNode);
  652. smalltalk.addClass('BlockNode', smalltalk.Node, ['parameters', 'scope'], 'Compiler-AST');
  653. smalltalk.BlockNode.comment="I represent an block closure node.";
  654. smalltalk.addMethod(
  655. smalltalk.method({
  656. selector: "accept:",
  657. category: 'visiting',
  658. fn: function (aVisitor){
  659. var self=this;
  660. return smalltalk.withContext(function($ctx1) {
  661. var $1;
  662. $1=_st(aVisitor)._visitBlockNode_(self);
  663. return $1;
  664. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.BlockNode)})},
  665. args: ["aVisitor"],
  666. source: "accept: aVisitor\x0a\x09^ aVisitor visitBlockNode: self",
  667. messageSends: ["visitBlockNode:"],
  668. referencedClasses: []
  669. }),
  670. smalltalk.BlockNode);
  671. smalltalk.addMethod(
  672. smalltalk.method({
  673. selector: "isBlockNode",
  674. category: 'testing',
  675. fn: function (){
  676. var self=this;
  677. return smalltalk.withContext(function($ctx1) {
  678. return true;
  679. }, function($ctx1) {$ctx1.fill(self,"isBlockNode",{},smalltalk.BlockNode)})},
  680. args: [],
  681. source: "isBlockNode\x0a\x09^true",
  682. messageSends: [],
  683. referencedClasses: []
  684. }),
  685. smalltalk.BlockNode);
  686. smalltalk.addMethod(
  687. smalltalk.method({
  688. selector: "nextChild",
  689. category: 'accessing',
  690. fn: function (){
  691. var self=this;
  692. return smalltalk.withContext(function($ctx1) {
  693. var $1;
  694. $1=self;
  695. return $1;
  696. }, function($ctx1) {$ctx1.fill(self,"nextChild",{},smalltalk.BlockNode)})},
  697. args: [],
  698. source: "nextChild\x0a\x09\x22Answer the receiver as we want to avoid eager evaluation\x22\x0a\x09\x0a\x09^ self",
  699. messageSends: [],
  700. referencedClasses: []
  701. }),
  702. smalltalk.BlockNode);
  703. smalltalk.addMethod(
  704. smalltalk.method({
  705. selector: "nextNode:",
  706. category: 'accessing',
  707. fn: function (aNode){
  708. var self=this;
  709. return smalltalk.withContext(function($ctx1) {
  710. var $1;
  711. $1=self;
  712. return $1;
  713. }, function($ctx1) {$ctx1.fill(self,"nextNode:",{aNode:aNode},smalltalk.BlockNode)})},
  714. args: ["aNode"],
  715. source: "nextNode: aNode\x0a\x09\x22Answer the receiver as we want to avoid eager evaluation\x22\x0a\x09\x0a\x09^ self",
  716. messageSends: [],
  717. referencedClasses: []
  718. }),
  719. smalltalk.BlockNode);
  720. smalltalk.addMethod(
  721. smalltalk.method({
  722. selector: "parameters",
  723. category: 'accessing',
  724. fn: function (){
  725. var self=this;
  726. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  727. return smalltalk.withContext(function($ctx1) {
  728. var $2,$1;
  729. $2=self["@parameters"];
  730. if(($receiver = $2) == nil || $receiver == undefined){
  731. self["@parameters"]=_st($Array())._new();
  732. $1=self["@parameters"];
  733. } else {
  734. $1=$2;
  735. };
  736. return $1;
  737. }, function($ctx1) {$ctx1.fill(self,"parameters",{},smalltalk.BlockNode)})},
  738. args: [],
  739. source: "parameters\x0a\x09^parameters ifNil: [parameters := Array new]",
  740. messageSends: ["ifNil:", "new"],
  741. referencedClasses: ["Array"]
  742. }),
  743. smalltalk.BlockNode);
  744. smalltalk.addMethod(
  745. smalltalk.method({
  746. selector: "parameters:",
  747. category: 'accessing',
  748. fn: function (aCollection){
  749. var self=this;
  750. return smalltalk.withContext(function($ctx1) {
  751. self["@parameters"]=aCollection;
  752. return self}, function($ctx1) {$ctx1.fill(self,"parameters:",{aCollection:aCollection},smalltalk.BlockNode)})},
  753. args: ["aCollection"],
  754. source: "parameters: aCollection\x0a\x09parameters := aCollection",
  755. messageSends: [],
  756. referencedClasses: []
  757. }),
  758. smalltalk.BlockNode);
  759. smalltalk.addMethod(
  760. smalltalk.method({
  761. selector: "scope",
  762. category: 'accessing',
  763. fn: function (){
  764. var self=this;
  765. return smalltalk.withContext(function($ctx1) {
  766. var $1;
  767. $1=self["@scope"];
  768. return $1;
  769. }, function($ctx1) {$ctx1.fill(self,"scope",{},smalltalk.BlockNode)})},
  770. args: [],
  771. source: "scope\x0a\x09^ scope",
  772. messageSends: [],
  773. referencedClasses: []
  774. }),
  775. smalltalk.BlockNode);
  776. smalltalk.addMethod(
  777. smalltalk.method({
  778. selector: "scope:",
  779. category: 'accessing',
  780. fn: function (aLexicalScope){
  781. var self=this;
  782. return smalltalk.withContext(function($ctx1) {
  783. self["@scope"]=aLexicalScope;
  784. return self}, function($ctx1) {$ctx1.fill(self,"scope:",{aLexicalScope:aLexicalScope},smalltalk.BlockNode)})},
  785. args: ["aLexicalScope"],
  786. source: "scope: aLexicalScope\x0a\x09scope := aLexicalScope",
  787. messageSends: [],
  788. referencedClasses: []
  789. }),
  790. smalltalk.BlockNode);
  791. smalltalk.addMethod(
  792. smalltalk.method({
  793. selector: "subtreeNeedsAliasing",
  794. category: 'testing',
  795. fn: function (){
  796. var self=this;
  797. return smalltalk.withContext(function($ctx1) {
  798. var $1;
  799. $1=_st(self._shouldBeAliased())._or_((function(){
  800. return smalltalk.withContext(function($ctx2) {
  801. return self._shouldBeInlined();
  802. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  803. return $1;
  804. }, function($ctx1) {$ctx1.fill(self,"subtreeNeedsAliasing",{},smalltalk.BlockNode)})},
  805. args: [],
  806. source: "subtreeNeedsAliasing\x0a\x09^ self shouldBeAliased or: [ self shouldBeInlined ]",
  807. messageSends: ["or:", "shouldBeAliased", "shouldBeInlined"],
  808. referencedClasses: []
  809. }),
  810. smalltalk.BlockNode);
  811. smalltalk.addClass('CascadeNode', smalltalk.Node, ['receiver'], 'Compiler-AST');
  812. smalltalk.CascadeNode.comment="I represent an cascade node.";
  813. smalltalk.addMethod(
  814. smalltalk.method({
  815. selector: "accept:",
  816. category: 'visiting',
  817. fn: function (aVisitor){
  818. var self=this;
  819. return smalltalk.withContext(function($ctx1) {
  820. var $1;
  821. $1=_st(aVisitor)._visitCascadeNode_(self);
  822. return $1;
  823. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.CascadeNode)})},
  824. args: ["aVisitor"],
  825. source: "accept: aVisitor\x0a\x09^ aVisitor visitCascadeNode: self",
  826. messageSends: ["visitCascadeNode:"],
  827. referencedClasses: []
  828. }),
  829. smalltalk.CascadeNode);
  830. smalltalk.addMethod(
  831. smalltalk.method({
  832. selector: "isCascadeNode",
  833. category: 'testing',
  834. fn: function (){
  835. var self=this;
  836. return smalltalk.withContext(function($ctx1) {
  837. return true;
  838. }, function($ctx1) {$ctx1.fill(self,"isCascadeNode",{},smalltalk.CascadeNode)})},
  839. args: [],
  840. source: "isCascadeNode\x0a\x09^ true",
  841. messageSends: [],
  842. referencedClasses: []
  843. }),
  844. smalltalk.CascadeNode);
  845. smalltalk.addMethod(
  846. smalltalk.method({
  847. selector: "receiver",
  848. category: 'accessing',
  849. fn: function (){
  850. var self=this;
  851. return smalltalk.withContext(function($ctx1) {
  852. var $1;
  853. $1=self["@receiver"];
  854. return $1;
  855. }, function($ctx1) {$ctx1.fill(self,"receiver",{},smalltalk.CascadeNode)})},
  856. args: [],
  857. source: "receiver\x0a\x09^receiver",
  858. messageSends: [],
  859. referencedClasses: []
  860. }),
  861. smalltalk.CascadeNode);
  862. smalltalk.addMethod(
  863. smalltalk.method({
  864. selector: "receiver:",
  865. category: 'accessing',
  866. fn: function (aNode){
  867. var self=this;
  868. return smalltalk.withContext(function($ctx1) {
  869. self["@receiver"]=aNode;
  870. return self}, function($ctx1) {$ctx1.fill(self,"receiver:",{aNode:aNode},smalltalk.CascadeNode)})},
  871. args: ["aNode"],
  872. source: "receiver: aNode\x0a\x09receiver := aNode",
  873. messageSends: [],
  874. referencedClasses: []
  875. }),
  876. smalltalk.CascadeNode);
  877. smalltalk.addClass('DynamicArrayNode', smalltalk.Node, [], 'Compiler-AST');
  878. smalltalk.DynamicArrayNode.comment="I represent an dynamic array node.";
  879. smalltalk.addMethod(
  880. smalltalk.method({
  881. selector: "accept:",
  882. category: 'visiting',
  883. fn: function (aVisitor){
  884. var self=this;
  885. return smalltalk.withContext(function($ctx1) {
  886. var $1;
  887. $1=_st(aVisitor)._visitDynamicArrayNode_(self);
  888. return $1;
  889. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.DynamicArrayNode)})},
  890. args: ["aVisitor"],
  891. source: "accept: aVisitor\x0a\x09^ aVisitor visitDynamicArrayNode: self",
  892. messageSends: ["visitDynamicArrayNode:"],
  893. referencedClasses: []
  894. }),
  895. smalltalk.DynamicArrayNode);
  896. smalltalk.addClass('DynamicDictionaryNode', smalltalk.Node, [], 'Compiler-AST');
  897. smalltalk.DynamicDictionaryNode.comment="I represent an dynamic dictionary node.";
  898. smalltalk.addMethod(
  899. smalltalk.method({
  900. selector: "accept:",
  901. category: 'visiting',
  902. fn: function (aVisitor){
  903. var self=this;
  904. return smalltalk.withContext(function($ctx1) {
  905. var $1;
  906. $1=_st(aVisitor)._visitDynamicDictionaryNode_(self);
  907. return $1;
  908. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.DynamicDictionaryNode)})},
  909. args: ["aVisitor"],
  910. source: "accept: aVisitor\x0a\x09^ aVisitor visitDynamicDictionaryNode: self",
  911. messageSends: ["visitDynamicDictionaryNode:"],
  912. referencedClasses: []
  913. }),
  914. smalltalk.DynamicDictionaryNode);
  915. smalltalk.addClass('JSStatementNode', smalltalk.Node, ['source'], 'Compiler-AST');
  916. smalltalk.JSStatementNode.comment="I represent an JavaScript statement node.";
  917. smalltalk.addMethod(
  918. smalltalk.method({
  919. selector: "accept:",
  920. category: 'visiting',
  921. fn: function (aVisitor){
  922. var self=this;
  923. return smalltalk.withContext(function($ctx1) {
  924. var $1;
  925. $1=_st(aVisitor)._visitJSStatementNode_(self);
  926. return $1;
  927. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.JSStatementNode)})},
  928. args: ["aVisitor"],
  929. source: "accept: aVisitor\x0a\x09^ aVisitor visitJSStatementNode: self",
  930. messageSends: ["visitJSStatementNode:"],
  931. referencedClasses: []
  932. }),
  933. smalltalk.JSStatementNode);
  934. smalltalk.addMethod(
  935. smalltalk.method({
  936. selector: "isJSStatementNode",
  937. category: 'testing',
  938. fn: function (){
  939. var self=this;
  940. return smalltalk.withContext(function($ctx1) {
  941. return true;
  942. }, function($ctx1) {$ctx1.fill(self,"isJSStatementNode",{},smalltalk.JSStatementNode)})},
  943. args: [],
  944. source: "isJSStatementNode\x0a\x09^ true",
  945. messageSends: [],
  946. referencedClasses: []
  947. }),
  948. smalltalk.JSStatementNode);
  949. smalltalk.addMethod(
  950. smalltalk.method({
  951. selector: "source",
  952. category: 'accessing',
  953. fn: function (){
  954. var self=this;
  955. return smalltalk.withContext(function($ctx1) {
  956. var $2,$1;
  957. $2=self["@source"];
  958. if(($receiver = $2) == nil || $receiver == undefined){
  959. $1="";
  960. } else {
  961. $1=$2;
  962. };
  963. return $1;
  964. }, function($ctx1) {$ctx1.fill(self,"source",{},smalltalk.JSStatementNode)})},
  965. args: [],
  966. source: "source\x0a\x09^source ifNil: ['']",
  967. messageSends: ["ifNil:"],
  968. referencedClasses: []
  969. }),
  970. smalltalk.JSStatementNode);
  971. smalltalk.addMethod(
  972. smalltalk.method({
  973. selector: "source:",
  974. category: 'accessing',
  975. fn: function (aString){
  976. var self=this;
  977. return smalltalk.withContext(function($ctx1) {
  978. self["@source"]=aString;
  979. return self}, function($ctx1) {$ctx1.fill(self,"source:",{aString:aString},smalltalk.JSStatementNode)})},
  980. args: ["aString"],
  981. source: "source: aString\x0a\x09source := aString",
  982. messageSends: [],
  983. referencedClasses: []
  984. }),
  985. smalltalk.JSStatementNode);
  986. smalltalk.addClass('MethodNode', smalltalk.Node, ['selector', 'arguments', 'source', 'scope', 'classReferences', 'messageSends', 'superSends'], 'Compiler-AST');
  987. smalltalk.MethodNode.comment="I represent an method node.\x0a\x0aA method node must be the root and only method node of a valid AST.";
  988. smalltalk.addMethod(
  989. smalltalk.method({
  990. selector: "accept:",
  991. category: 'visiting',
  992. fn: function (aVisitor){
  993. var self=this;
  994. return smalltalk.withContext(function($ctx1) {
  995. var $1;
  996. $1=_st(aVisitor)._visitMethodNode_(self);
  997. return $1;
  998. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.MethodNode)})},
  999. args: ["aVisitor"],
  1000. source: "accept: aVisitor\x0a\x09^ aVisitor visitMethodNode: self",
  1001. messageSends: ["visitMethodNode:"],
  1002. referencedClasses: []
  1003. }),
  1004. smalltalk.MethodNode);
  1005. smalltalk.addMethod(
  1006. smalltalk.method({
  1007. selector: "arguments",
  1008. category: 'accessing',
  1009. fn: function (){
  1010. var self=this;
  1011. return smalltalk.withContext(function($ctx1) {
  1012. var $2,$1;
  1013. $2=self["@arguments"];
  1014. if(($receiver = $2) == nil || $receiver == undefined){
  1015. $1=[];
  1016. } else {
  1017. $1=$2;
  1018. };
  1019. return $1;
  1020. }, function($ctx1) {$ctx1.fill(self,"arguments",{},smalltalk.MethodNode)})},
  1021. args: [],
  1022. source: "arguments\x0a\x09^arguments ifNil: [#()]",
  1023. messageSends: ["ifNil:"],
  1024. referencedClasses: []
  1025. }),
  1026. smalltalk.MethodNode);
  1027. smalltalk.addMethod(
  1028. smalltalk.method({
  1029. selector: "arguments:",
  1030. category: 'accessing',
  1031. fn: function (aCollection){
  1032. var self=this;
  1033. return smalltalk.withContext(function($ctx1) {
  1034. self["@arguments"]=aCollection;
  1035. return self}, function($ctx1) {$ctx1.fill(self,"arguments:",{aCollection:aCollection},smalltalk.MethodNode)})},
  1036. args: ["aCollection"],
  1037. source: "arguments: aCollection\x0a\x09arguments := aCollection",
  1038. messageSends: [],
  1039. referencedClasses: []
  1040. }),
  1041. smalltalk.MethodNode);
  1042. smalltalk.addMethod(
  1043. smalltalk.method({
  1044. selector: "classReferences",
  1045. category: 'accessing',
  1046. fn: function (){
  1047. var self=this;
  1048. return smalltalk.withContext(function($ctx1) {
  1049. var $1;
  1050. $1=self["@classReferences"];
  1051. return $1;
  1052. }, function($ctx1) {$ctx1.fill(self,"classReferences",{},smalltalk.MethodNode)})},
  1053. args: [],
  1054. source: "classReferences\x0a\x09^ classReferences",
  1055. messageSends: [],
  1056. referencedClasses: []
  1057. }),
  1058. smalltalk.MethodNode);
  1059. smalltalk.addMethod(
  1060. smalltalk.method({
  1061. selector: "classReferences:",
  1062. category: 'accessing',
  1063. fn: function (aCollection){
  1064. var self=this;
  1065. return smalltalk.withContext(function($ctx1) {
  1066. self["@classReferences"]=aCollection;
  1067. return self}, function($ctx1) {$ctx1.fill(self,"classReferences:",{aCollection:aCollection},smalltalk.MethodNode)})},
  1068. args: ["aCollection"],
  1069. source: "classReferences: aCollection\x0a\x09classReferences := aCollection",
  1070. messageSends: [],
  1071. referencedClasses: []
  1072. }),
  1073. smalltalk.MethodNode);
  1074. smalltalk.addMethod(
  1075. smalltalk.method({
  1076. selector: "extent",
  1077. category: 'accessing',
  1078. fn: function (){
  1079. var self=this;
  1080. return smalltalk.withContext(function($ctx1) {
  1081. var $1;
  1082. $1=_st(_st(_st(self._source())._lines())._size()).__at(_st(_st(_st(_st(self._source())._lines())._last())._size()).__plus((1)));
  1083. return $1;
  1084. }, function($ctx1) {$ctx1.fill(self,"extent",{},smalltalk.MethodNode)})},
  1085. args: [],
  1086. source: "extent\x0a\x09^ self source lines size @ (self source lines last size + 1)",
  1087. messageSends: ["@", "size", "lines", "source", "+", "last"],
  1088. referencedClasses: []
  1089. }),
  1090. smalltalk.MethodNode);
  1091. smalltalk.addMethod(
  1092. smalltalk.method({
  1093. selector: "messageSends",
  1094. category: 'accessing',
  1095. fn: function (){
  1096. var self=this;
  1097. return smalltalk.withContext(function($ctx1) {
  1098. var $1;
  1099. $1=self["@messageSends"];
  1100. return $1;
  1101. }, function($ctx1) {$ctx1.fill(self,"messageSends",{},smalltalk.MethodNode)})},
  1102. args: [],
  1103. source: "messageSends\x0a\x09^ messageSends",
  1104. messageSends: [],
  1105. referencedClasses: []
  1106. }),
  1107. smalltalk.MethodNode);
  1108. smalltalk.addMethod(
  1109. smalltalk.method({
  1110. selector: "messageSends:",
  1111. category: 'accessing',
  1112. fn: function (aCollection){
  1113. var self=this;
  1114. return smalltalk.withContext(function($ctx1) {
  1115. self["@messageSends"]=aCollection;
  1116. return self}, function($ctx1) {$ctx1.fill(self,"messageSends:",{aCollection:aCollection},smalltalk.MethodNode)})},
  1117. args: ["aCollection"],
  1118. source: "messageSends: aCollection\x0a\x09messageSends := aCollection",
  1119. messageSends: [],
  1120. referencedClasses: []
  1121. }),
  1122. smalltalk.MethodNode);
  1123. smalltalk.addMethod(
  1124. smalltalk.method({
  1125. selector: "scope",
  1126. category: 'accessing',
  1127. fn: function (){
  1128. var self=this;
  1129. return smalltalk.withContext(function($ctx1) {
  1130. var $1;
  1131. $1=self["@scope"];
  1132. return $1;
  1133. }, function($ctx1) {$ctx1.fill(self,"scope",{},smalltalk.MethodNode)})},
  1134. args: [],
  1135. source: "scope\x0a\x09^ scope",
  1136. messageSends: [],
  1137. referencedClasses: []
  1138. }),
  1139. smalltalk.MethodNode);
  1140. smalltalk.addMethod(
  1141. smalltalk.method({
  1142. selector: "scope:",
  1143. category: 'accessing',
  1144. fn: function (aMethodScope){
  1145. var self=this;
  1146. return smalltalk.withContext(function($ctx1) {
  1147. self["@scope"]=aMethodScope;
  1148. return self}, function($ctx1) {$ctx1.fill(self,"scope:",{aMethodScope:aMethodScope},smalltalk.MethodNode)})},
  1149. args: ["aMethodScope"],
  1150. source: "scope: aMethodScope\x0a\x09scope := aMethodScope",
  1151. messageSends: [],
  1152. referencedClasses: []
  1153. }),
  1154. smalltalk.MethodNode);
  1155. smalltalk.addMethod(
  1156. smalltalk.method({
  1157. selector: "selector",
  1158. category: 'accessing',
  1159. fn: function (){
  1160. var self=this;
  1161. return smalltalk.withContext(function($ctx1) {
  1162. var $1;
  1163. $1=self["@selector"];
  1164. return $1;
  1165. }, function($ctx1) {$ctx1.fill(self,"selector",{},smalltalk.MethodNode)})},
  1166. args: [],
  1167. source: "selector\x0a\x09^selector",
  1168. messageSends: [],
  1169. referencedClasses: []
  1170. }),
  1171. smalltalk.MethodNode);
  1172. smalltalk.addMethod(
  1173. smalltalk.method({
  1174. selector: "selector:",
  1175. category: 'accessing',
  1176. fn: function (aString){
  1177. var self=this;
  1178. return smalltalk.withContext(function($ctx1) {
  1179. self["@selector"]=aString;
  1180. return self}, function($ctx1) {$ctx1.fill(self,"selector:",{aString:aString},smalltalk.MethodNode)})},
  1181. args: ["aString"],
  1182. source: "selector: aString\x0a\x09selector := aString",
  1183. messageSends: [],
  1184. referencedClasses: []
  1185. }),
  1186. smalltalk.MethodNode);
  1187. smalltalk.addMethod(
  1188. smalltalk.method({
  1189. selector: "source",
  1190. category: 'accessing',
  1191. fn: function (){
  1192. var self=this;
  1193. return smalltalk.withContext(function($ctx1) {
  1194. var $1;
  1195. $1=self["@source"];
  1196. return $1;
  1197. }, function($ctx1) {$ctx1.fill(self,"source",{},smalltalk.MethodNode)})},
  1198. args: [],
  1199. source: "source\x0a\x09^source",
  1200. messageSends: [],
  1201. referencedClasses: []
  1202. }),
  1203. smalltalk.MethodNode);
  1204. smalltalk.addMethod(
  1205. smalltalk.method({
  1206. selector: "source:",
  1207. category: 'accessing',
  1208. fn: function (aString){
  1209. var self=this;
  1210. return smalltalk.withContext(function($ctx1) {
  1211. self["@source"]=aString;
  1212. return self}, function($ctx1) {$ctx1.fill(self,"source:",{aString:aString},smalltalk.MethodNode)})},
  1213. args: ["aString"],
  1214. source: "source: aString\x0a\x09source := aString",
  1215. messageSends: [],
  1216. referencedClasses: []
  1217. }),
  1218. smalltalk.MethodNode);
  1219. smalltalk.addMethod(
  1220. smalltalk.method({
  1221. selector: "superSends",
  1222. category: 'accessing',
  1223. fn: function (){
  1224. var self=this;
  1225. return smalltalk.withContext(function($ctx1) {
  1226. var $1;
  1227. $1=self["@superSends"];
  1228. return $1;
  1229. }, function($ctx1) {$ctx1.fill(self,"superSends",{},smalltalk.MethodNode)})},
  1230. args: [],
  1231. source: "superSends\x0a\x09^ superSends",
  1232. messageSends: [],
  1233. referencedClasses: []
  1234. }),
  1235. smalltalk.MethodNode);
  1236. smalltalk.addMethod(
  1237. smalltalk.method({
  1238. selector: "superSends:",
  1239. category: 'accessing',
  1240. fn: function (aCollection){
  1241. var self=this;
  1242. return smalltalk.withContext(function($ctx1) {
  1243. self["@superSends"]=aCollection;
  1244. return self}, function($ctx1) {$ctx1.fill(self,"superSends:",{aCollection:aCollection},smalltalk.MethodNode)})},
  1245. args: ["aCollection"],
  1246. source: "superSends: aCollection\x0a\x09superSends := aCollection",
  1247. messageSends: [],
  1248. referencedClasses: []
  1249. }),
  1250. smalltalk.MethodNode);
  1251. smalltalk.addClass('ReturnNode', smalltalk.Node, ['scope'], 'Compiler-AST');
  1252. smalltalk.ReturnNode.comment="I represent an return node. At the AST level, there is not difference between a local return or non-local return.";
  1253. smalltalk.addMethod(
  1254. smalltalk.method({
  1255. selector: "accept:",
  1256. category: 'visiting',
  1257. fn: function (aVisitor){
  1258. var self=this;
  1259. return smalltalk.withContext(function($ctx1) {
  1260. var $1;
  1261. $1=_st(aVisitor)._visitReturnNode_(self);
  1262. return $1;
  1263. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.ReturnNode)})},
  1264. args: ["aVisitor"],
  1265. source: "accept: aVisitor\x0a\x09^ aVisitor visitReturnNode: self",
  1266. messageSends: ["visitReturnNode:"],
  1267. referencedClasses: []
  1268. }),
  1269. smalltalk.ReturnNode);
  1270. smalltalk.addMethod(
  1271. smalltalk.method({
  1272. selector: "isReturnNode",
  1273. category: 'testing',
  1274. fn: function (){
  1275. var self=this;
  1276. return smalltalk.withContext(function($ctx1) {
  1277. return true;
  1278. }, function($ctx1) {$ctx1.fill(self,"isReturnNode",{},smalltalk.ReturnNode)})},
  1279. args: [],
  1280. source: "isReturnNode\x0a\x09^ true",
  1281. messageSends: [],
  1282. referencedClasses: []
  1283. }),
  1284. smalltalk.ReturnNode);
  1285. smalltalk.addMethod(
  1286. smalltalk.method({
  1287. selector: "nonLocalReturn",
  1288. category: 'testing',
  1289. fn: function (){
  1290. var self=this;
  1291. return smalltalk.withContext(function($ctx1) {
  1292. var $1;
  1293. $1=_st(_st(self._scope())._isMethodScope())._not();
  1294. return $1;
  1295. }, function($ctx1) {$ctx1.fill(self,"nonLocalReturn",{},smalltalk.ReturnNode)})},
  1296. args: [],
  1297. source: "nonLocalReturn\x0a\x09^ self scope isMethodScope not",
  1298. messageSends: ["not", "isMethodScope", "scope"],
  1299. referencedClasses: []
  1300. }),
  1301. smalltalk.ReturnNode);
  1302. smalltalk.addMethod(
  1303. smalltalk.method({
  1304. selector: "scope",
  1305. category: 'accessing',
  1306. fn: function (){
  1307. var self=this;
  1308. return smalltalk.withContext(function($ctx1) {
  1309. var $1;
  1310. $1=self["@scope"];
  1311. return $1;
  1312. }, function($ctx1) {$ctx1.fill(self,"scope",{},smalltalk.ReturnNode)})},
  1313. args: [],
  1314. source: "scope\x0a\x09^ scope",
  1315. messageSends: [],
  1316. referencedClasses: []
  1317. }),
  1318. smalltalk.ReturnNode);
  1319. smalltalk.addMethod(
  1320. smalltalk.method({
  1321. selector: "scope:",
  1322. category: 'accessing',
  1323. fn: function (aLexicalScope){
  1324. var self=this;
  1325. return smalltalk.withContext(function($ctx1) {
  1326. self["@scope"]=aLexicalScope;
  1327. return self}, function($ctx1) {$ctx1.fill(self,"scope:",{aLexicalScope:aLexicalScope},smalltalk.ReturnNode)})},
  1328. args: ["aLexicalScope"],
  1329. source: "scope: aLexicalScope\x0a\x09scope := aLexicalScope",
  1330. messageSends: [],
  1331. referencedClasses: []
  1332. }),
  1333. smalltalk.ReturnNode);
  1334. smalltalk.addClass('SendNode', smalltalk.Node, ['selector', 'arguments', 'receiver', 'superSend', 'index'], 'Compiler-AST');
  1335. smalltalk.SendNode.comment="I represent an message send node.";
  1336. smalltalk.addMethod(
  1337. smalltalk.method({
  1338. selector: "accept:",
  1339. category: 'visiting',
  1340. fn: function (aVisitor){
  1341. var self=this;
  1342. return smalltalk.withContext(function($ctx1) {
  1343. var $1;
  1344. $1=_st(aVisitor)._visitSendNode_(self);
  1345. return $1;
  1346. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.SendNode)})},
  1347. args: ["aVisitor"],
  1348. source: "accept: aVisitor\x0a\x09^ aVisitor visitSendNode: self",
  1349. messageSends: ["visitSendNode:"],
  1350. referencedClasses: []
  1351. }),
  1352. smalltalk.SendNode);
  1353. smalltalk.addMethod(
  1354. smalltalk.method({
  1355. selector: "arguments",
  1356. category: 'accessing',
  1357. fn: function (){
  1358. var self=this;
  1359. return smalltalk.withContext(function($ctx1) {
  1360. var $2,$1;
  1361. $2=self["@arguments"];
  1362. if(($receiver = $2) == nil || $receiver == undefined){
  1363. self["@arguments"]=[];
  1364. $1=self["@arguments"];
  1365. } else {
  1366. $1=$2;
  1367. };
  1368. return $1;
  1369. }, function($ctx1) {$ctx1.fill(self,"arguments",{},smalltalk.SendNode)})},
  1370. args: [],
  1371. source: "arguments\x0a\x09^arguments ifNil: [arguments := #()]",
  1372. messageSends: ["ifNil:"],
  1373. referencedClasses: []
  1374. }),
  1375. smalltalk.SendNode);
  1376. smalltalk.addMethod(
  1377. smalltalk.method({
  1378. selector: "arguments:",
  1379. category: 'accessing',
  1380. fn: function (aCollection){
  1381. var self=this;
  1382. return smalltalk.withContext(function($ctx1) {
  1383. self["@arguments"]=aCollection;
  1384. _st(aCollection)._do_((function(each){
  1385. return smalltalk.withContext(function($ctx2) {
  1386. return _st(each)._parent_(self);
  1387. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})}));
  1388. return self}, function($ctx1) {$ctx1.fill(self,"arguments:",{aCollection:aCollection},smalltalk.SendNode)})},
  1389. args: ["aCollection"],
  1390. source: "arguments: aCollection\x0a\x09arguments := aCollection.\x0a\x09aCollection do: [ :each | each parent: self ]",
  1391. messageSends: ["do:", "parent:"],
  1392. referencedClasses: []
  1393. }),
  1394. smalltalk.SendNode);
  1395. smalltalk.addMethod(
  1396. smalltalk.method({
  1397. selector: "cascadeNodeWithMessages:",
  1398. category: 'accessing',
  1399. fn: function (aCollection){
  1400. var self=this;
  1401. var first;
  1402. function $SendNode(){return smalltalk.SendNode||(typeof SendNode=="undefined"?nil:SendNode)}
  1403. function $CascadeNode(){return smalltalk.CascadeNode||(typeof CascadeNode=="undefined"?nil:CascadeNode)}
  1404. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  1405. return smalltalk.withContext(function($ctx1) {
  1406. var $1,$2,$4,$5,$3;
  1407. $1=_st($SendNode())._new();
  1408. _st($1)._selector_(self._selector());
  1409. _st($1)._arguments_(self._arguments());
  1410. $2=_st($1)._yourself();
  1411. first=$2;
  1412. $4=_st($CascadeNode())._new();
  1413. _st($4)._receiver_(self._receiver());
  1414. _st($4)._nodes_(_st(_st($Array())._with_(first)).__comma(aCollection));
  1415. $5=_st($4)._yourself();
  1416. $3=$5;
  1417. return $3;
  1418. }, function($ctx1) {$ctx1.fill(self,"cascadeNodeWithMessages:",{aCollection:aCollection,first:first},smalltalk.SendNode)})},
  1419. args: ["aCollection"],
  1420. source: "cascadeNodeWithMessages: aCollection\x0a\x09| first |\x0a\x09first := SendNode new\x0a\x09\x09selector: self selector;\x0a\x09\x09arguments: self arguments;\x0a\x09\x09yourself.\x0a\x09^CascadeNode new\x0a\x09\x09receiver: self receiver;\x0a\x09\x09nodes: (Array with: first), aCollection;\x0a\x09\x09yourself",
  1421. messageSends: ["selector:", "new", "selector", "arguments:", "arguments", "yourself", "receiver:", "receiver", "nodes:", ",", "with:"],
  1422. referencedClasses: ["SendNode", "CascadeNode", "Array"]
  1423. }),
  1424. smalltalk.SendNode);
  1425. smalltalk.addMethod(
  1426. smalltalk.method({
  1427. selector: "index",
  1428. category: 'accessing',
  1429. fn: function (){
  1430. var self=this;
  1431. return smalltalk.withContext(function($ctx1) {
  1432. var $1;
  1433. $1=self["@index"];
  1434. return $1;
  1435. }, function($ctx1) {$ctx1.fill(self,"index",{},smalltalk.SendNode)})},
  1436. args: [],
  1437. source: "index\x0a\x09^ index",
  1438. messageSends: [],
  1439. referencedClasses: []
  1440. }),
  1441. smalltalk.SendNode);
  1442. smalltalk.addMethod(
  1443. smalltalk.method({
  1444. selector: "index:",
  1445. category: 'accessing',
  1446. fn: function (anInteger){
  1447. var self=this;
  1448. return smalltalk.withContext(function($ctx1) {
  1449. self["@index"]=anInteger;
  1450. return self}, function($ctx1) {$ctx1.fill(self,"index:",{anInteger:anInteger},smalltalk.SendNode)})},
  1451. args: ["anInteger"],
  1452. source: "index: anInteger\x0a\x09index := anInteger",
  1453. messageSends: [],
  1454. referencedClasses: []
  1455. }),
  1456. smalltalk.SendNode);
  1457. smalltalk.addMethod(
  1458. smalltalk.method({
  1459. selector: "isCascadeSendNode",
  1460. category: 'testing',
  1461. fn: function (){
  1462. var self=this;
  1463. return smalltalk.withContext(function($ctx1) {
  1464. var $1;
  1465. $1=_st(self._parent())._isCascadeNode();
  1466. return $1;
  1467. }, function($ctx1) {$ctx1.fill(self,"isCascadeSendNode",{},smalltalk.SendNode)})},
  1468. args: [],
  1469. source: "isCascadeSendNode\x0a\x09^ self parent isCascadeNode",
  1470. messageSends: ["isCascadeNode", "parent"],
  1471. referencedClasses: []
  1472. }),
  1473. smalltalk.SendNode);
  1474. smalltalk.addMethod(
  1475. smalltalk.method({
  1476. selector: "isSendNode",
  1477. category: 'testing',
  1478. fn: function (){
  1479. var self=this;
  1480. return smalltalk.withContext(function($ctx1) {
  1481. return true;
  1482. }, function($ctx1) {$ctx1.fill(self,"isSendNode",{},smalltalk.SendNode)})},
  1483. args: [],
  1484. source: "isSendNode\x0a\x09^ true",
  1485. messageSends: [],
  1486. referencedClasses: []
  1487. }),
  1488. smalltalk.SendNode);
  1489. smalltalk.addMethod(
  1490. smalltalk.method({
  1491. selector: "nodes",
  1492. category: 'accessing',
  1493. fn: function (){
  1494. var self=this;
  1495. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  1496. return smalltalk.withContext(function($ctx1) {
  1497. var $1,$2,$4,$5,$3;
  1498. $1=self._receiver();
  1499. if(($receiver = $1) == nil || $receiver == undefined){
  1500. $2=_st(self._arguments())._copy();
  1501. return $2;
  1502. } else {
  1503. $1;
  1504. };
  1505. $4=_st($Array())._with_(self._receiver());
  1506. _st($4)._addAll_(self._arguments());
  1507. $5=_st($4)._yourself();
  1508. $3=$5;
  1509. return $3;
  1510. }, function($ctx1) {$ctx1.fill(self,"nodes",{},smalltalk.SendNode)})},
  1511. args: [],
  1512. source: "nodes\x0a\x09self receiver ifNil: [ ^ self arguments copy ].\x0a\x09\x0a\x09^ (Array with: self receiver)\x0a\x09\x09addAll: self arguments;\x0a\x09\x09yourself",
  1513. messageSends: ["ifNil:", "receiver", "copy", "arguments", "addAll:", "with:", "yourself"],
  1514. referencedClasses: ["Array"]
  1515. }),
  1516. smalltalk.SendNode);
  1517. smalltalk.addMethod(
  1518. smalltalk.method({
  1519. selector: "receiver",
  1520. category: 'accessing',
  1521. fn: function (){
  1522. var self=this;
  1523. return smalltalk.withContext(function($ctx1) {
  1524. var $1;
  1525. $1=self["@receiver"];
  1526. return $1;
  1527. }, function($ctx1) {$ctx1.fill(self,"receiver",{},smalltalk.SendNode)})},
  1528. args: [],
  1529. source: "receiver\x0a\x09^receiver",
  1530. messageSends: [],
  1531. referencedClasses: []
  1532. }),
  1533. smalltalk.SendNode);
  1534. smalltalk.addMethod(
  1535. smalltalk.method({
  1536. selector: "receiver:",
  1537. category: 'accessing',
  1538. fn: function (aNode){
  1539. var self=this;
  1540. return smalltalk.withContext(function($ctx1) {
  1541. var $1;
  1542. self["@receiver"]=aNode;
  1543. $1=_st(aNode)._isNode();
  1544. if(smalltalk.assert($1)){
  1545. _st(aNode)._parent_(self);
  1546. };
  1547. return self}, function($ctx1) {$ctx1.fill(self,"receiver:",{aNode:aNode},smalltalk.SendNode)})},
  1548. args: ["aNode"],
  1549. source: "receiver: aNode\x0a\x09receiver := aNode.\x0a\x09aNode isNode ifTrue: [\x0a\x09\x09aNode parent: self ]",
  1550. messageSends: ["ifTrue:", "isNode", "parent:"],
  1551. referencedClasses: []
  1552. }),
  1553. smalltalk.SendNode);
  1554. smalltalk.addMethod(
  1555. smalltalk.method({
  1556. selector: "selector",
  1557. category: 'accessing',
  1558. fn: function (){
  1559. var self=this;
  1560. return smalltalk.withContext(function($ctx1) {
  1561. var $1;
  1562. $1=self["@selector"];
  1563. return $1;
  1564. }, function($ctx1) {$ctx1.fill(self,"selector",{},smalltalk.SendNode)})},
  1565. args: [],
  1566. source: "selector\x0a\x09^selector",
  1567. messageSends: [],
  1568. referencedClasses: []
  1569. }),
  1570. smalltalk.SendNode);
  1571. smalltalk.addMethod(
  1572. smalltalk.method({
  1573. selector: "selector:",
  1574. category: 'accessing',
  1575. fn: function (aString){
  1576. var self=this;
  1577. return smalltalk.withContext(function($ctx1) {
  1578. self["@selector"]=aString;
  1579. return self}, function($ctx1) {$ctx1.fill(self,"selector:",{aString:aString},smalltalk.SendNode)})},
  1580. args: ["aString"],
  1581. source: "selector: aString\x0a\x09selector := aString",
  1582. messageSends: [],
  1583. referencedClasses: []
  1584. }),
  1585. smalltalk.SendNode);
  1586. smalltalk.addMethod(
  1587. smalltalk.method({
  1588. selector: "stopOnStepping",
  1589. category: 'testing',
  1590. fn: function (){
  1591. var self=this;
  1592. return smalltalk.withContext(function($ctx1) {
  1593. return true;
  1594. }, function($ctx1) {$ctx1.fill(self,"stopOnStepping",{},smalltalk.SendNode)})},
  1595. args: [],
  1596. source: "stopOnStepping\x0a\x09^ true",
  1597. messageSends: [],
  1598. referencedClasses: []
  1599. }),
  1600. smalltalk.SendNode);
  1601. smalltalk.addMethod(
  1602. smalltalk.method({
  1603. selector: "superSend",
  1604. category: 'accessing',
  1605. fn: function (){
  1606. var self=this;
  1607. return smalltalk.withContext(function($ctx1) {
  1608. var $2,$1;
  1609. $2=self["@superSend"];
  1610. if(($receiver = $2) == nil || $receiver == undefined){
  1611. $1=false;
  1612. } else {
  1613. $1=$2;
  1614. };
  1615. return $1;
  1616. }, function($ctx1) {$ctx1.fill(self,"superSend",{},smalltalk.SendNode)})},
  1617. args: [],
  1618. source: "superSend\x0a\x09^ superSend ifNil: [ false ]",
  1619. messageSends: ["ifNil:"],
  1620. referencedClasses: []
  1621. }),
  1622. smalltalk.SendNode);
  1623. smalltalk.addMethod(
  1624. smalltalk.method({
  1625. selector: "superSend:",
  1626. category: 'accessing',
  1627. fn: function (aBoolean){
  1628. var self=this;
  1629. return smalltalk.withContext(function($ctx1) {
  1630. self["@superSend"]=aBoolean;
  1631. return self}, function($ctx1) {$ctx1.fill(self,"superSend:",{aBoolean:aBoolean},smalltalk.SendNode)})},
  1632. args: ["aBoolean"],
  1633. source: "superSend: aBoolean\x0a\x09superSend := aBoolean",
  1634. messageSends: [],
  1635. referencedClasses: []
  1636. }),
  1637. smalltalk.SendNode);
  1638. smalltalk.addMethod(
  1639. smalltalk.method({
  1640. selector: "valueForReceiver:",
  1641. category: 'accessing',
  1642. fn: function (anObject){
  1643. var self=this;
  1644. function $SendNode(){return smalltalk.SendNode||(typeof SendNode=="undefined"?nil:SendNode)}
  1645. return smalltalk.withContext(function($ctx1) {
  1646. var $2,$3,$5,$4,$6,$1;
  1647. $2=_st($SendNode())._new();
  1648. _st($2)._position_(self._position());
  1649. $3=$2;
  1650. $5=self._receiver();
  1651. if(($receiver = $5) == nil || $receiver == undefined){
  1652. $4=anObject;
  1653. } else {
  1654. $4=_st(self._receiver())._valueForReceiver_(anObject);
  1655. };
  1656. _st($3)._receiver_($4);
  1657. _st($2)._selector_(self._selector());
  1658. _st($2)._arguments_(self._arguments());
  1659. $6=_st($2)._yourself();
  1660. $1=$6;
  1661. return $1;
  1662. }, function($ctx1) {$ctx1.fill(self,"valueForReceiver:",{anObject:anObject},smalltalk.SendNode)})},
  1663. args: ["anObject"],
  1664. source: "valueForReceiver: anObject\x0a\x09^SendNode new\x0a\x09\x09position: self position;\x0a\x09\x09receiver: (self receiver\x0a\x09\x09ifNil: [anObject]\x0a\x09\x09ifNotNil: [self receiver valueForReceiver: anObject]);\x0a\x09\x09selector: self selector;\x0a\x09\x09arguments: self arguments;\x0a\x09\x09yourself",
  1665. messageSends: ["position:", "new", "position", "receiver:", "ifNil:ifNotNil:", "receiver", "valueForReceiver:", "selector:", "selector", "arguments:", "arguments", "yourself"],
  1666. referencedClasses: ["SendNode"]
  1667. }),
  1668. smalltalk.SendNode);
  1669. smalltalk.addClass('SequenceNode', smalltalk.Node, ['temps', 'scope'], 'Compiler-AST');
  1670. smalltalk.SequenceNode.comment="I represent an sequence node. A sequence represent a set of instructions inside the same scope (the method scope or a block scope).";
  1671. smalltalk.addMethod(
  1672. smalltalk.method({
  1673. selector: "accept:",
  1674. category: 'visiting',
  1675. fn: function (aVisitor){
  1676. var self=this;
  1677. return smalltalk.withContext(function($ctx1) {
  1678. var $1;
  1679. $1=_st(aVisitor)._visitSequenceNode_(self);
  1680. return $1;
  1681. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.SequenceNode)})},
  1682. args: ["aVisitor"],
  1683. source: "accept: aVisitor\x0a\x09^ aVisitor visitSequenceNode: self",
  1684. messageSends: ["visitSequenceNode:"],
  1685. referencedClasses: []
  1686. }),
  1687. smalltalk.SequenceNode);
  1688. smalltalk.addMethod(
  1689. smalltalk.method({
  1690. selector: "asBlockSequenceNode",
  1691. category: 'testing',
  1692. fn: function (){
  1693. var self=this;
  1694. function $BlockSequenceNode(){return smalltalk.BlockSequenceNode||(typeof BlockSequenceNode=="undefined"?nil:BlockSequenceNode)}
  1695. return smalltalk.withContext(function($ctx1) {
  1696. var $2,$3,$1;
  1697. $2=_st($BlockSequenceNode())._new();
  1698. _st($2)._position_(self._position());
  1699. _st($2)._nodes_(self._nodes());
  1700. _st($2)._temps_(self._temps());
  1701. $3=_st($2)._yourself();
  1702. $1=$3;
  1703. return $1;
  1704. }, function($ctx1) {$ctx1.fill(self,"asBlockSequenceNode",{},smalltalk.SequenceNode)})},
  1705. args: [],
  1706. source: "asBlockSequenceNode\x0a\x09^BlockSequenceNode new\x0a\x09\x09position: self position;\x0a\x09\x09nodes: self nodes;\x0a\x09\x09temps: self temps;\x0a\x09\x09yourself",
  1707. messageSends: ["position:", "new", "position", "nodes:", "nodes", "temps:", "temps", "yourself"],
  1708. referencedClasses: ["BlockSequenceNode"]
  1709. }),
  1710. smalltalk.SequenceNode);
  1711. smalltalk.addMethod(
  1712. smalltalk.method({
  1713. selector: "scope",
  1714. category: 'accessing',
  1715. fn: function (){
  1716. var self=this;
  1717. return smalltalk.withContext(function($ctx1) {
  1718. var $1;
  1719. $1=self["@scope"];
  1720. return $1;
  1721. }, function($ctx1) {$ctx1.fill(self,"scope",{},smalltalk.SequenceNode)})},
  1722. args: [],
  1723. source: "scope\x0a\x09^ scope",
  1724. messageSends: [],
  1725. referencedClasses: []
  1726. }),
  1727. smalltalk.SequenceNode);
  1728. smalltalk.addMethod(
  1729. smalltalk.method({
  1730. selector: "scope:",
  1731. category: 'accessing',
  1732. fn: function (aLexicalScope){
  1733. var self=this;
  1734. return smalltalk.withContext(function($ctx1) {
  1735. self["@scope"]=aLexicalScope;
  1736. return self}, function($ctx1) {$ctx1.fill(self,"scope:",{aLexicalScope:aLexicalScope},smalltalk.SequenceNode)})},
  1737. args: ["aLexicalScope"],
  1738. source: "scope: aLexicalScope\x0a\x09scope := aLexicalScope",
  1739. messageSends: [],
  1740. referencedClasses: []
  1741. }),
  1742. smalltalk.SequenceNode);
  1743. smalltalk.addMethod(
  1744. smalltalk.method({
  1745. selector: "temps",
  1746. category: 'accessing',
  1747. fn: function (){
  1748. var self=this;
  1749. return smalltalk.withContext(function($ctx1) {
  1750. var $2,$1;
  1751. $2=self["@temps"];
  1752. if(($receiver = $2) == nil || $receiver == undefined){
  1753. $1=[];
  1754. } else {
  1755. $1=$2;
  1756. };
  1757. return $1;
  1758. }, function($ctx1) {$ctx1.fill(self,"temps",{},smalltalk.SequenceNode)})},
  1759. args: [],
  1760. source: "temps\x0a\x09^temps ifNil: [#()]",
  1761. messageSends: ["ifNil:"],
  1762. referencedClasses: []
  1763. }),
  1764. smalltalk.SequenceNode);
  1765. smalltalk.addMethod(
  1766. smalltalk.method({
  1767. selector: "temps:",
  1768. category: 'accessing',
  1769. fn: function (aCollection){
  1770. var self=this;
  1771. return smalltalk.withContext(function($ctx1) {
  1772. self["@temps"]=aCollection;
  1773. return self}, function($ctx1) {$ctx1.fill(self,"temps:",{aCollection:aCollection},smalltalk.SequenceNode)})},
  1774. args: ["aCollection"],
  1775. source: "temps: aCollection\x0a\x09temps := aCollection",
  1776. messageSends: [],
  1777. referencedClasses: []
  1778. }),
  1779. smalltalk.SequenceNode);
  1780. smalltalk.addClass('BlockSequenceNode', smalltalk.SequenceNode, [], 'Compiler-AST');
  1781. smalltalk.BlockSequenceNode.comment="I represent an special sequence node for block scopes.";
  1782. smalltalk.addMethod(
  1783. smalltalk.method({
  1784. selector: "accept:",
  1785. category: 'visiting',
  1786. fn: function (aVisitor){
  1787. var self=this;
  1788. return smalltalk.withContext(function($ctx1) {
  1789. var $1;
  1790. $1=_st(aVisitor)._visitBlockSequenceNode_(self);
  1791. return $1;
  1792. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.BlockSequenceNode)})},
  1793. args: ["aVisitor"],
  1794. source: "accept: aVisitor\x0a\x09^ aVisitor visitBlockSequenceNode: self",
  1795. messageSends: ["visitBlockSequenceNode:"],
  1796. referencedClasses: []
  1797. }),
  1798. smalltalk.BlockSequenceNode);
  1799. smalltalk.addMethod(
  1800. smalltalk.method({
  1801. selector: "isBlockSequenceNode",
  1802. category: 'testing',
  1803. fn: function (){
  1804. var self=this;
  1805. return smalltalk.withContext(function($ctx1) {
  1806. return true;
  1807. }, function($ctx1) {$ctx1.fill(self,"isBlockSequenceNode",{},smalltalk.BlockSequenceNode)})},
  1808. args: [],
  1809. source: "isBlockSequenceNode\x0a\x09^true",
  1810. messageSends: [],
  1811. referencedClasses: []
  1812. }),
  1813. smalltalk.BlockSequenceNode);
  1814. smalltalk.addClass('ValueNode', smalltalk.Node, ['value'], 'Compiler-AST');
  1815. smalltalk.ValueNode.comment="I represent a value node.";
  1816. smalltalk.addMethod(
  1817. smalltalk.method({
  1818. selector: "accept:",
  1819. category: 'visiting',
  1820. fn: function (aVisitor){
  1821. var self=this;
  1822. return smalltalk.withContext(function($ctx1) {
  1823. var $1;
  1824. $1=_st(aVisitor)._visitValueNode_(self);
  1825. return $1;
  1826. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.ValueNode)})},
  1827. args: ["aVisitor"],
  1828. source: "accept: aVisitor\x0a\x09^ aVisitor visitValueNode: self",
  1829. messageSends: ["visitValueNode:"],
  1830. referencedClasses: []
  1831. }),
  1832. smalltalk.ValueNode);
  1833. smalltalk.addMethod(
  1834. smalltalk.method({
  1835. selector: "isImmutable",
  1836. category: 'testing',
  1837. fn: function (){
  1838. var self=this;
  1839. return smalltalk.withContext(function($ctx1) {
  1840. var $1;
  1841. $1=_st(self._value())._isImmutable();
  1842. return $1;
  1843. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.ValueNode)})},
  1844. args: [],
  1845. source: "isImmutable\x0a\x09^ self value isImmutable",
  1846. messageSends: ["isImmutable", "value"],
  1847. referencedClasses: []
  1848. }),
  1849. smalltalk.ValueNode);
  1850. smalltalk.addMethod(
  1851. smalltalk.method({
  1852. selector: "isValueNode",
  1853. category: 'testing',
  1854. fn: function (){
  1855. var self=this;
  1856. return smalltalk.withContext(function($ctx1) {
  1857. return true;
  1858. }, function($ctx1) {$ctx1.fill(self,"isValueNode",{},smalltalk.ValueNode)})},
  1859. args: [],
  1860. source: "isValueNode\x0a\x09^true",
  1861. messageSends: [],
  1862. referencedClasses: []
  1863. }),
  1864. smalltalk.ValueNode);
  1865. smalltalk.addMethod(
  1866. smalltalk.method({
  1867. selector: "value",
  1868. category: 'accessing',
  1869. fn: function (){
  1870. var self=this;
  1871. return smalltalk.withContext(function($ctx1) {
  1872. var $1;
  1873. $1=self["@value"];
  1874. return $1;
  1875. }, function($ctx1) {$ctx1.fill(self,"value",{},smalltalk.ValueNode)})},
  1876. args: [],
  1877. source: "value\x0a\x09^value",
  1878. messageSends: [],
  1879. referencedClasses: []
  1880. }),
  1881. smalltalk.ValueNode);
  1882. smalltalk.addMethod(
  1883. smalltalk.method({
  1884. selector: "value:",
  1885. category: 'accessing',
  1886. fn: function (anObject){
  1887. var self=this;
  1888. return smalltalk.withContext(function($ctx1) {
  1889. self["@value"]=anObject;
  1890. return self}, function($ctx1) {$ctx1.fill(self,"value:",{anObject:anObject},smalltalk.ValueNode)})},
  1891. args: ["anObject"],
  1892. source: "value: anObject\x0a\x09value := anObject",
  1893. messageSends: [],
  1894. referencedClasses: []
  1895. }),
  1896. smalltalk.ValueNode);
  1897. smalltalk.addMethod(
  1898. smalltalk.method({
  1899. selector: "xxxDoIt",
  1900. category: 'xxxDoIt',
  1901. fn: function (){
  1902. var self=this;
  1903. return smalltalk.withContext(function($ctx1) {
  1904. var $1;
  1905. $1=_st((function(){
  1906. return smalltalk.withContext(function($ctx2) {
  1907. return self._stack();
  1908. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}))._value();
  1909. return $1;
  1910. }, function($ctx1) {$ctx1.fill(self,"xxxDoIt",{},smalltalk.ValueNode)})},
  1911. args: [],
  1912. source: "xxxDoIt ^[self stack] value",
  1913. messageSends: ["value", "stack"],
  1914. referencedClasses: []
  1915. }),
  1916. smalltalk.ValueNode);
  1917. smalltalk.addClass('VariableNode', smalltalk.ValueNode, ['assigned', 'binding'], 'Compiler-AST');
  1918. smalltalk.VariableNode.comment="I represent an variable node.";
  1919. smalltalk.addMethod(
  1920. smalltalk.method({
  1921. selector: "accept:",
  1922. category: 'visiting',
  1923. fn: function (aVisitor){
  1924. var self=this;
  1925. return smalltalk.withContext(function($ctx1) {
  1926. var $1;
  1927. $1=_st(aVisitor)._visitVariableNode_(self);
  1928. return $1;
  1929. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.VariableNode)})},
  1930. args: ["aVisitor"],
  1931. source: "accept: aVisitor\x0a\x09^ aVisitor visitVariableNode: self",
  1932. messageSends: ["visitVariableNode:"],
  1933. referencedClasses: []
  1934. }),
  1935. smalltalk.VariableNode);
  1936. smalltalk.addMethod(
  1937. smalltalk.method({
  1938. selector: "alias",
  1939. category: 'accessing',
  1940. fn: function (){
  1941. var self=this;
  1942. return smalltalk.withContext(function($ctx1) {
  1943. var $1;
  1944. $1=_st(self._binding())._alias();
  1945. return $1;
  1946. }, function($ctx1) {$ctx1.fill(self,"alias",{},smalltalk.VariableNode)})},
  1947. args: [],
  1948. source: "alias\x0a\x09^ self binding alias",
  1949. messageSends: ["alias", "binding"],
  1950. referencedClasses: []
  1951. }),
  1952. smalltalk.VariableNode);
  1953. smalltalk.addMethod(
  1954. smalltalk.method({
  1955. selector: "assigned",
  1956. category: 'accessing',
  1957. fn: function (){
  1958. var self=this;
  1959. return smalltalk.withContext(function($ctx1) {
  1960. var $2,$1;
  1961. $2=self["@assigned"];
  1962. if(($receiver = $2) == nil || $receiver == undefined){
  1963. $1=false;
  1964. } else {
  1965. $1=$2;
  1966. };
  1967. return $1;
  1968. }, function($ctx1) {$ctx1.fill(self,"assigned",{},smalltalk.VariableNode)})},
  1969. args: [],
  1970. source: "assigned\x0a\x09^assigned ifNil: [false]",
  1971. messageSends: ["ifNil:"],
  1972. referencedClasses: []
  1973. }),
  1974. smalltalk.VariableNode);
  1975. smalltalk.addMethod(
  1976. smalltalk.method({
  1977. selector: "assigned:",
  1978. category: 'accessing',
  1979. fn: function (aBoolean){
  1980. var self=this;
  1981. return smalltalk.withContext(function($ctx1) {
  1982. self["@assigned"]=aBoolean;
  1983. return self}, function($ctx1) {$ctx1.fill(self,"assigned:",{aBoolean:aBoolean},smalltalk.VariableNode)})},
  1984. args: ["aBoolean"],
  1985. source: "assigned: aBoolean\x0a\x09assigned := aBoolean",
  1986. messageSends: [],
  1987. referencedClasses: []
  1988. }),
  1989. smalltalk.VariableNode);
  1990. smalltalk.addMethod(
  1991. smalltalk.method({
  1992. selector: "beAssigned",
  1993. category: 'accessing',
  1994. fn: function (){
  1995. var self=this;
  1996. return smalltalk.withContext(function($ctx1) {
  1997. _st(self._binding())._validateAssignment();
  1998. self["@assigned"]=true;
  1999. return self}, function($ctx1) {$ctx1.fill(self,"beAssigned",{},smalltalk.VariableNode)})},
  2000. args: [],
  2001. source: "beAssigned\x0a\x09self binding validateAssignment.\x0a\x09assigned := true",
  2002. messageSends: ["validateAssignment", "binding"],
  2003. referencedClasses: []
  2004. }),
  2005. smalltalk.VariableNode);
  2006. smalltalk.addMethod(
  2007. smalltalk.method({
  2008. selector: "binding",
  2009. category: 'accessing',
  2010. fn: function (){
  2011. var self=this;
  2012. return smalltalk.withContext(function($ctx1) {
  2013. var $1;
  2014. $1=self["@binding"];
  2015. return $1;
  2016. }, function($ctx1) {$ctx1.fill(self,"binding",{},smalltalk.VariableNode)})},
  2017. args: [],
  2018. source: "binding\x0a\x09^ binding",
  2019. messageSends: [],
  2020. referencedClasses: []
  2021. }),
  2022. smalltalk.VariableNode);
  2023. smalltalk.addMethod(
  2024. smalltalk.method({
  2025. selector: "binding:",
  2026. category: 'accessing',
  2027. fn: function (aScopeVar){
  2028. var self=this;
  2029. return smalltalk.withContext(function($ctx1) {
  2030. self["@binding"]=aScopeVar;
  2031. return self}, function($ctx1) {$ctx1.fill(self,"binding:",{aScopeVar:aScopeVar},smalltalk.VariableNode)})},
  2032. args: ["aScopeVar"],
  2033. source: "binding: aScopeVar\x0a\x09binding := aScopeVar",
  2034. messageSends: [],
  2035. referencedClasses: []
  2036. }),
  2037. smalltalk.VariableNode);
  2038. smalltalk.addMethod(
  2039. smalltalk.method({
  2040. selector: "isImmutable",
  2041. category: 'testing',
  2042. fn: function (){
  2043. var self=this;
  2044. return smalltalk.withContext(function($ctx1) {
  2045. return false;
  2046. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.VariableNode)})},
  2047. args: [],
  2048. source: "isImmutable\x0a\x09^false",
  2049. messageSends: [],
  2050. referencedClasses: []
  2051. }),
  2052. smalltalk.VariableNode);
  2053. smalltalk.addClass('ClassReferenceNode', smalltalk.VariableNode, [], 'Compiler-AST');
  2054. smalltalk.ClassReferenceNode.comment="I represent an class reference node.";
  2055. smalltalk.addMethod(
  2056. smalltalk.method({
  2057. selector: "accept:",
  2058. category: 'visiting',
  2059. fn: function (aVisitor){
  2060. var self=this;
  2061. return smalltalk.withContext(function($ctx1) {
  2062. var $1;
  2063. $1=_st(aVisitor)._visitClassReferenceNode_(self);
  2064. return $1;
  2065. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.ClassReferenceNode)})},
  2066. args: ["aVisitor"],
  2067. source: "accept: aVisitor\x0a\x09^ aVisitor visitClassReferenceNode: self",
  2068. messageSends: ["visitClassReferenceNode:"],
  2069. referencedClasses: []
  2070. }),
  2071. smalltalk.ClassReferenceNode);
  2072. smalltalk.addMethod(
  2073. smalltalk.method({
  2074. selector: "isNode",
  2075. category: '*Compiler-AST',
  2076. fn: function (){
  2077. var self=this;
  2078. return smalltalk.withContext(function($ctx1) {
  2079. return false;
  2080. }, function($ctx1) {$ctx1.fill(self,"isNode",{},smalltalk.Object)})},
  2081. args: [],
  2082. source: "isNode\x0a\x09^ false",
  2083. messageSends: [],
  2084. referencedClasses: []
  2085. }),
  2086. smalltalk.Object);
  2087. smalltalk.addMethod(
  2088. smalltalk.method({
  2089. selector: "ast",
  2090. category: '*Compiler-AST',
  2091. fn: function (){
  2092. var self=this;
  2093. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  2094. return smalltalk.withContext(function($ctx1) {
  2095. var $1;
  2096. _st(self._source())._ifEmpty_((function(){
  2097. return smalltalk.withContext(function($ctx2) {
  2098. return self._error_("Method source is empty");
  2099. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  2100. $1=_st(_st($Smalltalk())._current())._parse_(self._source());
  2101. return $1;
  2102. }, function($ctx1) {$ctx1.fill(self,"ast",{},smalltalk.CompiledMethod)})},
  2103. args: [],
  2104. source: "ast\x0a\x09self source ifEmpty: [ self error: 'Method source is empty' ].\x0a\x09\x0a\x09^ Smalltalk current parse: self source",
  2105. messageSends: ["ifEmpty:", "source", "error:", "parse:", "current"],
  2106. referencedClasses: ["Smalltalk"]
  2107. }),
  2108. smalltalk.CompiledMethod);
  2109. })(global_smalltalk,global_nil,global__st);