1
0

Compiler-AST.deploy.js 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453
  1. smalltalk.addPackage('Compiler-AST');
  2. smalltalk.addClass('Node', smalltalk.Object, ['position', 'nodes', 'shouldBeInlined', 'shouldBeAliased'], 'Compiler-AST');
  3. smalltalk.addMethod(
  4. "_accept_",
  5. smalltalk.method({
  6. selector: "accept:",
  7. fn: function (aVisitor){
  8. var self=this;
  9. return smalltalk.withContext(function($ctx1) {
  10. var $1;
  11. $1=_st(aVisitor)._visitNode_(self);
  12. return $1;
  13. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.Node)})},
  14. messageSends: ["visitNode:"]}),
  15. smalltalk.Node);
  16. smalltalk.addMethod(
  17. "_addNode_",
  18. smalltalk.method({
  19. selector: "addNode:",
  20. fn: function (aNode){
  21. var self=this;
  22. return smalltalk.withContext(function($ctx1) {
  23. _st(_st(self)._nodes())._add_(aNode);
  24. return self}, function($ctx1) {$ctx1.fill(self,"addNode:",{aNode:aNode},smalltalk.Node)})},
  25. messageSends: ["add:", "nodes"]}),
  26. smalltalk.Node);
  27. smalltalk.addMethod(
  28. "_isAssignmentNode",
  29. smalltalk.method({
  30. selector: "isAssignmentNode",
  31. fn: function (){
  32. var self=this;
  33. return smalltalk.withContext(function($ctx1) {
  34. return false;
  35. }, function($ctx1) {$ctx1.fill(self,"isAssignmentNode",{},smalltalk.Node)})},
  36. messageSends: []}),
  37. smalltalk.Node);
  38. smalltalk.addMethod(
  39. "_isBlockNode",
  40. smalltalk.method({
  41. selector: "isBlockNode",
  42. fn: function (){
  43. var self=this;
  44. return smalltalk.withContext(function($ctx1) {
  45. return false;
  46. }, function($ctx1) {$ctx1.fill(self,"isBlockNode",{},smalltalk.Node)})},
  47. messageSends: []}),
  48. smalltalk.Node);
  49. smalltalk.addMethod(
  50. "_isBlockSequenceNode",
  51. smalltalk.method({
  52. selector: "isBlockSequenceNode",
  53. fn: function (){
  54. var self=this;
  55. return smalltalk.withContext(function($ctx1) {
  56. return false;
  57. }, function($ctx1) {$ctx1.fill(self,"isBlockSequenceNode",{},smalltalk.Node)})},
  58. messageSends: []}),
  59. smalltalk.Node);
  60. smalltalk.addMethod(
  61. "_isImmutable",
  62. smalltalk.method({
  63. selector: "isImmutable",
  64. fn: function (){
  65. var self=this;
  66. return smalltalk.withContext(function($ctx1) {
  67. return false;
  68. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.Node)})},
  69. messageSends: []}),
  70. smalltalk.Node);
  71. smalltalk.addMethod(
  72. "_isNode",
  73. smalltalk.method({
  74. selector: "isNode",
  75. fn: function (){
  76. var self=this;
  77. return smalltalk.withContext(function($ctx1) {
  78. return true;
  79. }, function($ctx1) {$ctx1.fill(self,"isNode",{},smalltalk.Node)})},
  80. messageSends: []}),
  81. smalltalk.Node);
  82. smalltalk.addMethod(
  83. "_isReturnNode",
  84. smalltalk.method({
  85. selector: "isReturnNode",
  86. fn: function (){
  87. var self=this;
  88. return smalltalk.withContext(function($ctx1) {
  89. return false;
  90. }, function($ctx1) {$ctx1.fill(self,"isReturnNode",{},smalltalk.Node)})},
  91. messageSends: []}),
  92. smalltalk.Node);
  93. smalltalk.addMethod(
  94. "_isSendNode",
  95. smalltalk.method({
  96. selector: "isSendNode",
  97. fn: function (){
  98. var self=this;
  99. return smalltalk.withContext(function($ctx1) {
  100. return false;
  101. }, function($ctx1) {$ctx1.fill(self,"isSendNode",{},smalltalk.Node)})},
  102. messageSends: []}),
  103. smalltalk.Node);
  104. smalltalk.addMethod(
  105. "_isValueNode",
  106. smalltalk.method({
  107. selector: "isValueNode",
  108. fn: function (){
  109. var self=this;
  110. return smalltalk.withContext(function($ctx1) {
  111. return false;
  112. }, function($ctx1) {$ctx1.fill(self,"isValueNode",{},smalltalk.Node)})},
  113. messageSends: []}),
  114. smalltalk.Node);
  115. smalltalk.addMethod(
  116. "_nodes",
  117. smalltalk.method({
  118. selector: "nodes",
  119. fn: function (){
  120. var self=this;
  121. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  122. return smalltalk.withContext(function($ctx1) {
  123. var $2,$1;
  124. $2=self["@nodes"];
  125. if(($receiver = $2) == nil || $receiver == undefined){
  126. self["@nodes"]=_st($Array())._new();
  127. $1=self["@nodes"];
  128. } else {
  129. $1=$2;
  130. };
  131. return $1;
  132. }, function($ctx1) {$ctx1.fill(self,"nodes",{},smalltalk.Node)})},
  133. messageSends: ["ifNil:", "new"]}),
  134. smalltalk.Node);
  135. smalltalk.addMethod(
  136. "_nodes_",
  137. smalltalk.method({
  138. selector: "nodes:",
  139. fn: function (aCollection){
  140. var self=this;
  141. return smalltalk.withContext(function($ctx1) {
  142. self["@nodes"]=aCollection;
  143. return self}, function($ctx1) {$ctx1.fill(self,"nodes:",{aCollection:aCollection},smalltalk.Node)})},
  144. messageSends: []}),
  145. smalltalk.Node);
  146. smalltalk.addMethod(
  147. "_position",
  148. smalltalk.method({
  149. selector: "position",
  150. fn: function (){
  151. var self=this;
  152. return smalltalk.withContext(function($ctx1) {
  153. var $2,$1;
  154. $2=self["@position"];
  155. if(($receiver = $2) == nil || $receiver == undefined){
  156. self["@position"]=_st((0)).__at((0));
  157. $1=self["@position"];
  158. } else {
  159. $1=$2;
  160. };
  161. return $1;
  162. }, function($ctx1) {$ctx1.fill(self,"position",{},smalltalk.Node)})},
  163. messageSends: ["ifNil:", "@"]}),
  164. smalltalk.Node);
  165. smalltalk.addMethod(
  166. "_position_",
  167. smalltalk.method({
  168. selector: "position:",
  169. fn: function (aPosition){
  170. var self=this;
  171. return smalltalk.withContext(function($ctx1) {
  172. self["@position"]=aPosition;
  173. return self}, function($ctx1) {$ctx1.fill(self,"position:",{aPosition:aPosition},smalltalk.Node)})},
  174. messageSends: []}),
  175. smalltalk.Node);
  176. smalltalk.addMethod(
  177. "_shouldBeAliased",
  178. smalltalk.method({
  179. selector: "shouldBeAliased",
  180. fn: function (){
  181. var self=this;
  182. return smalltalk.withContext(function($ctx1) {
  183. var $2,$1;
  184. $2=self["@shouldBeAliased"];
  185. if(($receiver = $2) == nil || $receiver == undefined){
  186. $1=false;
  187. } else {
  188. $1=$2;
  189. };
  190. return $1;
  191. }, function($ctx1) {$ctx1.fill(self,"shouldBeAliased",{},smalltalk.Node)})},
  192. messageSends: ["ifNil:"]}),
  193. smalltalk.Node);
  194. smalltalk.addMethod(
  195. "_shouldBeAliased_",
  196. smalltalk.method({
  197. selector: "shouldBeAliased:",
  198. fn: function (aBoolean){
  199. var self=this;
  200. return smalltalk.withContext(function($ctx1) {
  201. self["@shouldBeAliased"]=aBoolean;
  202. return self}, function($ctx1) {$ctx1.fill(self,"shouldBeAliased:",{aBoolean:aBoolean},smalltalk.Node)})},
  203. messageSends: []}),
  204. smalltalk.Node);
  205. smalltalk.addMethod(
  206. "_shouldBeInlined",
  207. smalltalk.method({
  208. selector: "shouldBeInlined",
  209. fn: function (){
  210. var self=this;
  211. return smalltalk.withContext(function($ctx1) {
  212. var $2,$1;
  213. $2=self["@shouldBeInlined"];
  214. if(($receiver = $2) == nil || $receiver == undefined){
  215. $1=false;
  216. } else {
  217. $1=$2;
  218. };
  219. return $1;
  220. }, function($ctx1) {$ctx1.fill(self,"shouldBeInlined",{},smalltalk.Node)})},
  221. messageSends: ["ifNil:"]}),
  222. smalltalk.Node);
  223. smalltalk.addMethod(
  224. "_shouldBeInlined_",
  225. smalltalk.method({
  226. selector: "shouldBeInlined:",
  227. fn: function (aBoolean){
  228. var self=this;
  229. return smalltalk.withContext(function($ctx1) {
  230. self["@shouldBeInlined"]=aBoolean;
  231. return self}, function($ctx1) {$ctx1.fill(self,"shouldBeInlined:",{aBoolean:aBoolean},smalltalk.Node)})},
  232. messageSends: []}),
  233. smalltalk.Node);
  234. smalltalk.addMethod(
  235. "_subtreeNeedsAliasing",
  236. smalltalk.method({
  237. selector: "subtreeNeedsAliasing",
  238. fn: function (){
  239. var self=this;
  240. return smalltalk.withContext(function($ctx1) {
  241. var $1;
  242. $1=_st(_st(_st(self)._shouldBeAliased())._or_((function(){
  243. return smalltalk.withContext(function($ctx2) {
  244. return _st(self)._shouldBeInlined();
  245. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})))._or_((function(){
  246. return smalltalk.withContext(function($ctx2) {
  247. return _st(_st(_st(self)._nodes())._detect_ifNone_((function(each){
  248. return smalltalk.withContext(function($ctx3) {
  249. return _st(each)._subtreeNeedsAliasing();
  250. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}),(function(){
  251. return smalltalk.withContext(function($ctx3) {
  252. return false;
  253. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}))).__tild_eq(false);
  254. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  255. return $1;
  256. }, function($ctx1) {$ctx1.fill(self,"subtreeNeedsAliasing",{},smalltalk.Node)})},
  257. messageSends: ["or:", "~=", "detect:ifNone:", "subtreeNeedsAliasing", "nodes", "shouldBeInlined", "shouldBeAliased"]}),
  258. smalltalk.Node);
  259. smalltalk.addClass('AssignmentNode', smalltalk.Node, ['left', 'right'], 'Compiler-AST');
  260. smalltalk.addMethod(
  261. "_accept_",
  262. smalltalk.method({
  263. selector: "accept:",
  264. fn: function (aVisitor){
  265. var self=this;
  266. return smalltalk.withContext(function($ctx1) {
  267. var $1;
  268. $1=_st(aVisitor)._visitAssignmentNode_(self);
  269. return $1;
  270. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.AssignmentNode)})},
  271. messageSends: ["visitAssignmentNode:"]}),
  272. smalltalk.AssignmentNode);
  273. smalltalk.addMethod(
  274. "_isAssignmentNode",
  275. smalltalk.method({
  276. selector: "isAssignmentNode",
  277. fn: function (){
  278. var self=this;
  279. return smalltalk.withContext(function($ctx1) {
  280. return true;
  281. }, function($ctx1) {$ctx1.fill(self,"isAssignmentNode",{},smalltalk.AssignmentNode)})},
  282. messageSends: []}),
  283. smalltalk.AssignmentNode);
  284. smalltalk.addMethod(
  285. "_left",
  286. smalltalk.method({
  287. selector: "left",
  288. fn: function (){
  289. var self=this;
  290. return smalltalk.withContext(function($ctx1) {
  291. var $1;
  292. $1=self["@left"];
  293. return $1;
  294. }, function($ctx1) {$ctx1.fill(self,"left",{},smalltalk.AssignmentNode)})},
  295. messageSends: []}),
  296. smalltalk.AssignmentNode);
  297. smalltalk.addMethod(
  298. "_left_",
  299. smalltalk.method({
  300. selector: "left:",
  301. fn: function (aNode){
  302. var self=this;
  303. return smalltalk.withContext(function($ctx1) {
  304. self["@left"]=aNode;
  305. return self}, function($ctx1) {$ctx1.fill(self,"left:",{aNode:aNode},smalltalk.AssignmentNode)})},
  306. messageSends: []}),
  307. smalltalk.AssignmentNode);
  308. smalltalk.addMethod(
  309. "_nodes",
  310. smalltalk.method({
  311. selector: "nodes",
  312. fn: function (){
  313. var self=this;
  314. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  315. return smalltalk.withContext(function($ctx1) {
  316. var $1;
  317. $1=_st($Array())._with_with_(_st(self)._left(),_st(self)._right());
  318. return $1;
  319. }, function($ctx1) {$ctx1.fill(self,"nodes",{},smalltalk.AssignmentNode)})},
  320. messageSends: ["with:with:", "left", "right"]}),
  321. smalltalk.AssignmentNode);
  322. smalltalk.addMethod(
  323. "_right",
  324. smalltalk.method({
  325. selector: "right",
  326. fn: function (){
  327. var self=this;
  328. return smalltalk.withContext(function($ctx1) {
  329. var $1;
  330. $1=self["@right"];
  331. return $1;
  332. }, function($ctx1) {$ctx1.fill(self,"right",{},smalltalk.AssignmentNode)})},
  333. messageSends: []}),
  334. smalltalk.AssignmentNode);
  335. smalltalk.addMethod(
  336. "_right_",
  337. smalltalk.method({
  338. selector: "right:",
  339. fn: function (aNode){
  340. var self=this;
  341. return smalltalk.withContext(function($ctx1) {
  342. self["@right"]=aNode;
  343. return self}, function($ctx1) {$ctx1.fill(self,"right:",{aNode:aNode},smalltalk.AssignmentNode)})},
  344. messageSends: []}),
  345. smalltalk.AssignmentNode);
  346. smalltalk.addClass('BlockNode', smalltalk.Node, ['parameters', 'scope'], 'Compiler-AST');
  347. smalltalk.addMethod(
  348. "_accept_",
  349. smalltalk.method({
  350. selector: "accept:",
  351. fn: function (aVisitor){
  352. var self=this;
  353. return smalltalk.withContext(function($ctx1) {
  354. var $1;
  355. $1=_st(aVisitor)._visitBlockNode_(self);
  356. return $1;
  357. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.BlockNode)})},
  358. messageSends: ["visitBlockNode:"]}),
  359. smalltalk.BlockNode);
  360. smalltalk.addMethod(
  361. "_isBlockNode",
  362. smalltalk.method({
  363. selector: "isBlockNode",
  364. fn: function (){
  365. var self=this;
  366. return smalltalk.withContext(function($ctx1) {
  367. return true;
  368. }, function($ctx1) {$ctx1.fill(self,"isBlockNode",{},smalltalk.BlockNode)})},
  369. messageSends: []}),
  370. smalltalk.BlockNode);
  371. smalltalk.addMethod(
  372. "_parameters",
  373. smalltalk.method({
  374. selector: "parameters",
  375. fn: function (){
  376. var self=this;
  377. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  378. return smalltalk.withContext(function($ctx1) {
  379. var $2,$1;
  380. $2=self["@parameters"];
  381. if(($receiver = $2) == nil || $receiver == undefined){
  382. self["@parameters"]=_st($Array())._new();
  383. $1=self["@parameters"];
  384. } else {
  385. $1=$2;
  386. };
  387. return $1;
  388. }, function($ctx1) {$ctx1.fill(self,"parameters",{},smalltalk.BlockNode)})},
  389. messageSends: ["ifNil:", "new"]}),
  390. smalltalk.BlockNode);
  391. smalltalk.addMethod(
  392. "_parameters_",
  393. smalltalk.method({
  394. selector: "parameters:",
  395. fn: function (aCollection){
  396. var self=this;
  397. return smalltalk.withContext(function($ctx1) {
  398. self["@parameters"]=aCollection;
  399. return self}, function($ctx1) {$ctx1.fill(self,"parameters:",{aCollection:aCollection},smalltalk.BlockNode)})},
  400. messageSends: []}),
  401. smalltalk.BlockNode);
  402. smalltalk.addMethod(
  403. "_scope",
  404. smalltalk.method({
  405. selector: "scope",
  406. fn: function (){
  407. var self=this;
  408. return smalltalk.withContext(function($ctx1) {
  409. var $1;
  410. $1=self["@scope"];
  411. return $1;
  412. }, function($ctx1) {$ctx1.fill(self,"scope",{},smalltalk.BlockNode)})},
  413. messageSends: []}),
  414. smalltalk.BlockNode);
  415. smalltalk.addMethod(
  416. "_scope_",
  417. smalltalk.method({
  418. selector: "scope:",
  419. fn: function (aLexicalScope){
  420. var self=this;
  421. return smalltalk.withContext(function($ctx1) {
  422. self["@scope"]=aLexicalScope;
  423. return self}, function($ctx1) {$ctx1.fill(self,"scope:",{aLexicalScope:aLexicalScope},smalltalk.BlockNode)})},
  424. messageSends: []}),
  425. smalltalk.BlockNode);
  426. smalltalk.addMethod(
  427. "_subtreeNeedsAliasing",
  428. smalltalk.method({
  429. selector: "subtreeNeedsAliasing",
  430. fn: function (){
  431. var self=this;
  432. return smalltalk.withContext(function($ctx1) {
  433. var $1;
  434. $1=_st(_st(self)._shouldBeAliased())._or_((function(){
  435. return smalltalk.withContext(function($ctx2) {
  436. return _st(self)._shouldBeInlined();
  437. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  438. return $1;
  439. }, function($ctx1) {$ctx1.fill(self,"subtreeNeedsAliasing",{},smalltalk.BlockNode)})},
  440. messageSends: ["or:", "shouldBeInlined", "shouldBeAliased"]}),
  441. smalltalk.BlockNode);
  442. smalltalk.addClass('CascadeNode', smalltalk.Node, ['receiver'], 'Compiler-AST');
  443. smalltalk.addMethod(
  444. "_accept_",
  445. smalltalk.method({
  446. selector: "accept:",
  447. fn: function (aVisitor){
  448. var self=this;
  449. return smalltalk.withContext(function($ctx1) {
  450. var $1;
  451. $1=_st(aVisitor)._visitCascadeNode_(self);
  452. return $1;
  453. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.CascadeNode)})},
  454. messageSends: ["visitCascadeNode:"]}),
  455. smalltalk.CascadeNode);
  456. smalltalk.addMethod(
  457. "_receiver",
  458. smalltalk.method({
  459. selector: "receiver",
  460. fn: function (){
  461. var self=this;
  462. return smalltalk.withContext(function($ctx1) {
  463. var $1;
  464. $1=self["@receiver"];
  465. return $1;
  466. }, function($ctx1) {$ctx1.fill(self,"receiver",{},smalltalk.CascadeNode)})},
  467. messageSends: []}),
  468. smalltalk.CascadeNode);
  469. smalltalk.addMethod(
  470. "_receiver_",
  471. smalltalk.method({
  472. selector: "receiver:",
  473. fn: function (aNode){
  474. var self=this;
  475. return smalltalk.withContext(function($ctx1) {
  476. self["@receiver"]=aNode;
  477. return self}, function($ctx1) {$ctx1.fill(self,"receiver:",{aNode:aNode},smalltalk.CascadeNode)})},
  478. messageSends: []}),
  479. smalltalk.CascadeNode);
  480. smalltalk.addClass('DynamicArrayNode', smalltalk.Node, [], 'Compiler-AST');
  481. smalltalk.addMethod(
  482. "_accept_",
  483. smalltalk.method({
  484. selector: "accept:",
  485. fn: function (aVisitor){
  486. var self=this;
  487. return smalltalk.withContext(function($ctx1) {
  488. var $1;
  489. $1=_st(aVisitor)._visitDynamicArrayNode_(self);
  490. return $1;
  491. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.DynamicArrayNode)})},
  492. messageSends: ["visitDynamicArrayNode:"]}),
  493. smalltalk.DynamicArrayNode);
  494. smalltalk.addClass('DynamicDictionaryNode', smalltalk.Node, [], 'Compiler-AST');
  495. smalltalk.addMethod(
  496. "_accept_",
  497. smalltalk.method({
  498. selector: "accept:",
  499. fn: function (aVisitor){
  500. var self=this;
  501. return smalltalk.withContext(function($ctx1) {
  502. var $1;
  503. $1=_st(aVisitor)._visitDynamicDictionaryNode_(self);
  504. return $1;
  505. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.DynamicDictionaryNode)})},
  506. messageSends: ["visitDynamicDictionaryNode:"]}),
  507. smalltalk.DynamicDictionaryNode);
  508. smalltalk.addClass('JSStatementNode', smalltalk.Node, ['source'], 'Compiler-AST');
  509. smalltalk.addMethod(
  510. "_accept_",
  511. smalltalk.method({
  512. selector: "accept:",
  513. fn: function (aVisitor){
  514. var self=this;
  515. return smalltalk.withContext(function($ctx1) {
  516. var $1;
  517. $1=_st(aVisitor)._visitJSStatementNode_(self);
  518. return $1;
  519. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.JSStatementNode)})},
  520. messageSends: ["visitJSStatementNode:"]}),
  521. smalltalk.JSStatementNode);
  522. smalltalk.addMethod(
  523. "_source",
  524. smalltalk.method({
  525. selector: "source",
  526. fn: function (){
  527. var self=this;
  528. return smalltalk.withContext(function($ctx1) {
  529. var $2,$1;
  530. $2=self["@source"];
  531. if(($receiver = $2) == nil || $receiver == undefined){
  532. $1="";
  533. } else {
  534. $1=$2;
  535. };
  536. return $1;
  537. }, function($ctx1) {$ctx1.fill(self,"source",{},smalltalk.JSStatementNode)})},
  538. messageSends: ["ifNil:"]}),
  539. smalltalk.JSStatementNode);
  540. smalltalk.addMethod(
  541. "_source_",
  542. smalltalk.method({
  543. selector: "source:",
  544. fn: function (aString){
  545. var self=this;
  546. return smalltalk.withContext(function($ctx1) {
  547. self["@source"]=aString;
  548. return self}, function($ctx1) {$ctx1.fill(self,"source:",{aString:aString},smalltalk.JSStatementNode)})},
  549. messageSends: []}),
  550. smalltalk.JSStatementNode);
  551. smalltalk.addClass('MethodNode', smalltalk.Node, ['selector', 'arguments', 'source', 'scope', 'classReferences', 'messageSends', 'superSends'], 'Compiler-AST');
  552. smalltalk.addMethod(
  553. "_accept_",
  554. smalltalk.method({
  555. selector: "accept:",
  556. fn: function (aVisitor){
  557. var self=this;
  558. return smalltalk.withContext(function($ctx1) {
  559. var $1;
  560. $1=_st(aVisitor)._visitMethodNode_(self);
  561. return $1;
  562. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.MethodNode)})},
  563. messageSends: ["visitMethodNode:"]}),
  564. smalltalk.MethodNode);
  565. smalltalk.addMethod(
  566. "_arguments",
  567. smalltalk.method({
  568. selector: "arguments",
  569. fn: function (){
  570. var self=this;
  571. return smalltalk.withContext(function($ctx1) {
  572. var $2,$1;
  573. $2=self["@arguments"];
  574. if(($receiver = $2) == nil || $receiver == undefined){
  575. $1=[];
  576. } else {
  577. $1=$2;
  578. };
  579. return $1;
  580. }, function($ctx1) {$ctx1.fill(self,"arguments",{},smalltalk.MethodNode)})},
  581. messageSends: ["ifNil:"]}),
  582. smalltalk.MethodNode);
  583. smalltalk.addMethod(
  584. "_arguments_",
  585. smalltalk.method({
  586. selector: "arguments:",
  587. fn: function (aCollection){
  588. var self=this;
  589. return smalltalk.withContext(function($ctx1) {
  590. self["@arguments"]=aCollection;
  591. return self}, function($ctx1) {$ctx1.fill(self,"arguments:",{aCollection:aCollection},smalltalk.MethodNode)})},
  592. messageSends: []}),
  593. smalltalk.MethodNode);
  594. smalltalk.addMethod(
  595. "_classReferences",
  596. smalltalk.method({
  597. selector: "classReferences",
  598. fn: function (){
  599. var self=this;
  600. return smalltalk.withContext(function($ctx1) {
  601. var $1;
  602. $1=self["@classReferences"];
  603. return $1;
  604. }, function($ctx1) {$ctx1.fill(self,"classReferences",{},smalltalk.MethodNode)})},
  605. messageSends: []}),
  606. smalltalk.MethodNode);
  607. smalltalk.addMethod(
  608. "_classReferences_",
  609. smalltalk.method({
  610. selector: "classReferences:",
  611. fn: function (aCollection){
  612. var self=this;
  613. return smalltalk.withContext(function($ctx1) {
  614. self["@classReferences"]=aCollection;
  615. return self}, function($ctx1) {$ctx1.fill(self,"classReferences:",{aCollection:aCollection},smalltalk.MethodNode)})},
  616. messageSends: []}),
  617. smalltalk.MethodNode);
  618. smalltalk.addMethod(
  619. "_messageSends",
  620. smalltalk.method({
  621. selector: "messageSends",
  622. fn: function (){
  623. var self=this;
  624. return smalltalk.withContext(function($ctx1) {
  625. var $1;
  626. $1=self["@messageSends"];
  627. return $1;
  628. }, function($ctx1) {$ctx1.fill(self,"messageSends",{},smalltalk.MethodNode)})},
  629. messageSends: []}),
  630. smalltalk.MethodNode);
  631. smalltalk.addMethod(
  632. "_messageSends_",
  633. smalltalk.method({
  634. selector: "messageSends:",
  635. fn: function (aCollection){
  636. var self=this;
  637. return smalltalk.withContext(function($ctx1) {
  638. self["@messageSends"]=aCollection;
  639. return self}, function($ctx1) {$ctx1.fill(self,"messageSends:",{aCollection:aCollection},smalltalk.MethodNode)})},
  640. messageSends: []}),
  641. smalltalk.MethodNode);
  642. smalltalk.addMethod(
  643. "_scope",
  644. smalltalk.method({
  645. selector: "scope",
  646. fn: function (){
  647. var self=this;
  648. return smalltalk.withContext(function($ctx1) {
  649. var $1;
  650. $1=self["@scope"];
  651. return $1;
  652. }, function($ctx1) {$ctx1.fill(self,"scope",{},smalltalk.MethodNode)})},
  653. messageSends: []}),
  654. smalltalk.MethodNode);
  655. smalltalk.addMethod(
  656. "_scope_",
  657. smalltalk.method({
  658. selector: "scope:",
  659. fn: function (aMethodScope){
  660. var self=this;
  661. return smalltalk.withContext(function($ctx1) {
  662. self["@scope"]=aMethodScope;
  663. return self}, function($ctx1) {$ctx1.fill(self,"scope:",{aMethodScope:aMethodScope},smalltalk.MethodNode)})},
  664. messageSends: []}),
  665. smalltalk.MethodNode);
  666. smalltalk.addMethod(
  667. "_selector",
  668. smalltalk.method({
  669. selector: "selector",
  670. fn: function (){
  671. var self=this;
  672. return smalltalk.withContext(function($ctx1) {
  673. var $1;
  674. $1=self["@selector"];
  675. return $1;
  676. }, function($ctx1) {$ctx1.fill(self,"selector",{},smalltalk.MethodNode)})},
  677. messageSends: []}),
  678. smalltalk.MethodNode);
  679. smalltalk.addMethod(
  680. "_selector_",
  681. smalltalk.method({
  682. selector: "selector:",
  683. fn: function (aString){
  684. var self=this;
  685. return smalltalk.withContext(function($ctx1) {
  686. self["@selector"]=aString;
  687. return self}, function($ctx1) {$ctx1.fill(self,"selector:",{aString:aString},smalltalk.MethodNode)})},
  688. messageSends: []}),
  689. smalltalk.MethodNode);
  690. smalltalk.addMethod(
  691. "_source",
  692. smalltalk.method({
  693. selector: "source",
  694. fn: function (){
  695. var self=this;
  696. return smalltalk.withContext(function($ctx1) {
  697. var $1;
  698. $1=self["@source"];
  699. return $1;
  700. }, function($ctx1) {$ctx1.fill(self,"source",{},smalltalk.MethodNode)})},
  701. messageSends: []}),
  702. smalltalk.MethodNode);
  703. smalltalk.addMethod(
  704. "_source_",
  705. smalltalk.method({
  706. selector: "source:",
  707. fn: function (aString){
  708. var self=this;
  709. return smalltalk.withContext(function($ctx1) {
  710. self["@source"]=aString;
  711. return self}, function($ctx1) {$ctx1.fill(self,"source:",{aString:aString},smalltalk.MethodNode)})},
  712. messageSends: []}),
  713. smalltalk.MethodNode);
  714. smalltalk.addMethod(
  715. "_superSends",
  716. smalltalk.method({
  717. selector: "superSends",
  718. fn: function (){
  719. var self=this;
  720. return smalltalk.withContext(function($ctx1) {
  721. var $1;
  722. $1=self["@superSends"];
  723. return $1;
  724. }, function($ctx1) {$ctx1.fill(self,"superSends",{},smalltalk.MethodNode)})},
  725. messageSends: []}),
  726. smalltalk.MethodNode);
  727. smalltalk.addMethod(
  728. "_superSends_",
  729. smalltalk.method({
  730. selector: "superSends:",
  731. fn: function (aCollection){
  732. var self=this;
  733. return smalltalk.withContext(function($ctx1) {
  734. self["@superSends"]=aCollection;
  735. return self}, function($ctx1) {$ctx1.fill(self,"superSends:",{aCollection:aCollection},smalltalk.MethodNode)})},
  736. messageSends: []}),
  737. smalltalk.MethodNode);
  738. smalltalk.addClass('ReturnNode', smalltalk.Node, ['scope'], 'Compiler-AST');
  739. smalltalk.addMethod(
  740. "_accept_",
  741. smalltalk.method({
  742. selector: "accept:",
  743. fn: function (aVisitor){
  744. var self=this;
  745. return smalltalk.withContext(function($ctx1) {
  746. var $1;
  747. $1=_st(aVisitor)._visitReturnNode_(self);
  748. return $1;
  749. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.ReturnNode)})},
  750. messageSends: ["visitReturnNode:"]}),
  751. smalltalk.ReturnNode);
  752. smalltalk.addMethod(
  753. "_isReturnNode",
  754. smalltalk.method({
  755. selector: "isReturnNode",
  756. fn: function (){
  757. var self=this;
  758. return smalltalk.withContext(function($ctx1) {
  759. return true;
  760. }, function($ctx1) {$ctx1.fill(self,"isReturnNode",{},smalltalk.ReturnNode)})},
  761. messageSends: []}),
  762. smalltalk.ReturnNode);
  763. smalltalk.addMethod(
  764. "_nonLocalReturn",
  765. smalltalk.method({
  766. selector: "nonLocalReturn",
  767. fn: function (){
  768. var self=this;
  769. return smalltalk.withContext(function($ctx1) {
  770. var $1;
  771. $1=_st(_st(_st(self)._scope())._isMethodScope())._not();
  772. return $1;
  773. }, function($ctx1) {$ctx1.fill(self,"nonLocalReturn",{},smalltalk.ReturnNode)})},
  774. messageSends: ["not", "isMethodScope", "scope"]}),
  775. smalltalk.ReturnNode);
  776. smalltalk.addMethod(
  777. "_scope",
  778. smalltalk.method({
  779. selector: "scope",
  780. fn: function (){
  781. var self=this;
  782. return smalltalk.withContext(function($ctx1) {
  783. var $1;
  784. $1=self["@scope"];
  785. return $1;
  786. }, function($ctx1) {$ctx1.fill(self,"scope",{},smalltalk.ReturnNode)})},
  787. messageSends: []}),
  788. smalltalk.ReturnNode);
  789. smalltalk.addMethod(
  790. "_scope_",
  791. smalltalk.method({
  792. selector: "scope:",
  793. fn: function (aLexicalScope){
  794. var self=this;
  795. return smalltalk.withContext(function($ctx1) {
  796. self["@scope"]=aLexicalScope;
  797. return self}, function($ctx1) {$ctx1.fill(self,"scope:",{aLexicalScope:aLexicalScope},smalltalk.ReturnNode)})},
  798. messageSends: []}),
  799. smalltalk.ReturnNode);
  800. smalltalk.addClass('SendNode', smalltalk.Node, ['selector', 'arguments', 'receiver', 'superSend', 'index'], 'Compiler-AST');
  801. smalltalk.addMethod(
  802. "_accept_",
  803. smalltalk.method({
  804. selector: "accept:",
  805. fn: function (aVisitor){
  806. var self=this;
  807. return smalltalk.withContext(function($ctx1) {
  808. var $1;
  809. $1=_st(aVisitor)._visitSendNode_(self);
  810. return $1;
  811. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.SendNode)})},
  812. messageSends: ["visitSendNode:"]}),
  813. smalltalk.SendNode);
  814. smalltalk.addMethod(
  815. "_arguments",
  816. smalltalk.method({
  817. selector: "arguments",
  818. fn: function (){
  819. var self=this;
  820. return smalltalk.withContext(function($ctx1) {
  821. var $2,$1;
  822. $2=self["@arguments"];
  823. if(($receiver = $2) == nil || $receiver == undefined){
  824. self["@arguments"]=[];
  825. $1=self["@arguments"];
  826. } else {
  827. $1=$2;
  828. };
  829. return $1;
  830. }, function($ctx1) {$ctx1.fill(self,"arguments",{},smalltalk.SendNode)})},
  831. messageSends: ["ifNil:"]}),
  832. smalltalk.SendNode);
  833. smalltalk.addMethod(
  834. "_arguments_",
  835. smalltalk.method({
  836. selector: "arguments:",
  837. fn: function (aCollection){
  838. var self=this;
  839. return smalltalk.withContext(function($ctx1) {
  840. self["@arguments"]=aCollection;
  841. return self}, function($ctx1) {$ctx1.fill(self,"arguments:",{aCollection:aCollection},smalltalk.SendNode)})},
  842. messageSends: []}),
  843. smalltalk.SendNode);
  844. smalltalk.addMethod(
  845. "_cascadeNodeWithMessages_",
  846. smalltalk.method({
  847. selector: "cascadeNodeWithMessages:",
  848. fn: function (aCollection){
  849. var self=this;
  850. var first;
  851. function $SendNode(){return smalltalk.SendNode||(typeof SendNode=="undefined"?nil:SendNode)}
  852. function $CascadeNode(){return smalltalk.CascadeNode||(typeof CascadeNode=="undefined"?nil:CascadeNode)}
  853. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  854. return smalltalk.withContext(function($ctx1) {
  855. var $1,$2,$4,$5,$3;
  856. $1=_st($SendNode())._new();
  857. _st($1)._selector_(_st(self)._selector());
  858. _st($1)._arguments_(_st(self)._arguments());
  859. $2=_st($1)._yourself();
  860. first=$2;
  861. $4=_st($CascadeNode())._new();
  862. _st($4)._receiver_(_st(self)._receiver());
  863. _st($4)._nodes_(_st(_st($Array())._with_(first)).__comma(aCollection));
  864. $5=_st($4)._yourself();
  865. $3=$5;
  866. return $3;
  867. }, function($ctx1) {$ctx1.fill(self,"cascadeNodeWithMessages:",{aCollection:aCollection,first:first},smalltalk.SendNode)})},
  868. messageSends: ["selector:", "selector", "new", "arguments:", "arguments", "yourself", "receiver:", "receiver", "nodes:", ",", "with:"]}),
  869. smalltalk.SendNode);
  870. smalltalk.addMethod(
  871. "_index",
  872. smalltalk.method({
  873. selector: "index",
  874. fn: function (){
  875. var self=this;
  876. return smalltalk.withContext(function($ctx1) {
  877. var $1;
  878. $1=self["@index"];
  879. return $1;
  880. }, function($ctx1) {$ctx1.fill(self,"index",{},smalltalk.SendNode)})},
  881. messageSends: []}),
  882. smalltalk.SendNode);
  883. smalltalk.addMethod(
  884. "_index_",
  885. smalltalk.method({
  886. selector: "index:",
  887. fn: function (anInteger){
  888. var self=this;
  889. return smalltalk.withContext(function($ctx1) {
  890. self["@index"]=anInteger;
  891. return self}, function($ctx1) {$ctx1.fill(self,"index:",{anInteger:anInteger},smalltalk.SendNode)})},
  892. messageSends: []}),
  893. smalltalk.SendNode);
  894. smalltalk.addMethod(
  895. "_isSendNode",
  896. smalltalk.method({
  897. selector: "isSendNode",
  898. fn: function (){
  899. var self=this;
  900. return smalltalk.withContext(function($ctx1) {
  901. return true;
  902. }, function($ctx1) {$ctx1.fill(self,"isSendNode",{},smalltalk.SendNode)})},
  903. messageSends: []}),
  904. smalltalk.SendNode);
  905. smalltalk.addMethod(
  906. "_nodes",
  907. smalltalk.method({
  908. selector: "nodes",
  909. fn: function (){
  910. var self=this;
  911. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  912. return smalltalk.withContext(function($ctx1) {
  913. var $2,$3,$1;
  914. $2=_st($Array())._withAll_(_st(self)._arguments());
  915. _st($2)._add_(_st(self)._receiver());
  916. $3=_st($2)._yourself();
  917. $1=$3;
  918. return $1;
  919. }, function($ctx1) {$ctx1.fill(self,"nodes",{},smalltalk.SendNode)})},
  920. messageSends: ["add:", "receiver", "withAll:", "arguments", "yourself"]}),
  921. smalltalk.SendNode);
  922. smalltalk.addMethod(
  923. "_receiver",
  924. smalltalk.method({
  925. selector: "receiver",
  926. fn: function (){
  927. var self=this;
  928. return smalltalk.withContext(function($ctx1) {
  929. var $1;
  930. $1=self["@receiver"];
  931. return $1;
  932. }, function($ctx1) {$ctx1.fill(self,"receiver",{},smalltalk.SendNode)})},
  933. messageSends: []}),
  934. smalltalk.SendNode);
  935. smalltalk.addMethod(
  936. "_receiver_",
  937. smalltalk.method({
  938. selector: "receiver:",
  939. fn: function (aNode){
  940. var self=this;
  941. return smalltalk.withContext(function($ctx1) {
  942. self["@receiver"]=aNode;
  943. return self}, function($ctx1) {$ctx1.fill(self,"receiver:",{aNode:aNode},smalltalk.SendNode)})},
  944. messageSends: []}),
  945. smalltalk.SendNode);
  946. smalltalk.addMethod(
  947. "_selector",
  948. smalltalk.method({
  949. selector: "selector",
  950. fn: function (){
  951. var self=this;
  952. return smalltalk.withContext(function($ctx1) {
  953. var $1;
  954. $1=self["@selector"];
  955. return $1;
  956. }, function($ctx1) {$ctx1.fill(self,"selector",{},smalltalk.SendNode)})},
  957. messageSends: []}),
  958. smalltalk.SendNode);
  959. smalltalk.addMethod(
  960. "_selector_",
  961. smalltalk.method({
  962. selector: "selector:",
  963. fn: function (aString){
  964. var self=this;
  965. return smalltalk.withContext(function($ctx1) {
  966. self["@selector"]=aString;
  967. return self}, function($ctx1) {$ctx1.fill(self,"selector:",{aString:aString},smalltalk.SendNode)})},
  968. messageSends: []}),
  969. smalltalk.SendNode);
  970. smalltalk.addMethod(
  971. "_superSend",
  972. smalltalk.method({
  973. selector: "superSend",
  974. fn: function (){
  975. var self=this;
  976. return smalltalk.withContext(function($ctx1) {
  977. var $2,$1;
  978. $2=self["@superSend"];
  979. if(($receiver = $2) == nil || $receiver == undefined){
  980. $1=false;
  981. } else {
  982. $1=$2;
  983. };
  984. return $1;
  985. }, function($ctx1) {$ctx1.fill(self,"superSend",{},smalltalk.SendNode)})},
  986. messageSends: ["ifNil:"]}),
  987. smalltalk.SendNode);
  988. smalltalk.addMethod(
  989. "_superSend_",
  990. smalltalk.method({
  991. selector: "superSend:",
  992. fn: function (aBoolean){
  993. var self=this;
  994. return smalltalk.withContext(function($ctx1) {
  995. self["@superSend"]=aBoolean;
  996. return self}, function($ctx1) {$ctx1.fill(self,"superSend:",{aBoolean:aBoolean},smalltalk.SendNode)})},
  997. messageSends: []}),
  998. smalltalk.SendNode);
  999. smalltalk.addMethod(
  1000. "_valueForReceiver_",
  1001. smalltalk.method({
  1002. selector: "valueForReceiver:",
  1003. fn: function (anObject){
  1004. var self=this;
  1005. function $SendNode(){return smalltalk.SendNode||(typeof SendNode=="undefined"?nil:SendNode)}
  1006. return smalltalk.withContext(function($ctx1) {
  1007. var $2,$3,$5,$4,$6,$1;
  1008. $2=_st($SendNode())._new();
  1009. $3=$2;
  1010. $5=_st(self)._receiver();
  1011. if(($receiver = $5) == nil || $receiver == undefined){
  1012. $4=anObject;
  1013. } else {
  1014. $4=_st(_st(self)._receiver())._valueForReceiver_(anObject);
  1015. };
  1016. _st($3)._receiver_($4);
  1017. _st($2)._selector_(_st(self)._selector());
  1018. _st($2)._arguments_(_st(self)._arguments());
  1019. $6=_st($2)._yourself();
  1020. $1=$6;
  1021. return $1;
  1022. }, function($ctx1) {$ctx1.fill(self,"valueForReceiver:",{anObject:anObject},smalltalk.SendNode)})},
  1023. messageSends: ["receiver:", "ifNil:ifNotNil:", "valueForReceiver:", "receiver", "new", "selector:", "selector", "arguments:", "arguments", "yourself"]}),
  1024. smalltalk.SendNode);
  1025. smalltalk.addClass('SequenceNode', smalltalk.Node, ['temps', 'scope'], 'Compiler-AST');
  1026. smalltalk.addMethod(
  1027. "_accept_",
  1028. smalltalk.method({
  1029. selector: "accept:",
  1030. fn: function (aVisitor){
  1031. var self=this;
  1032. return smalltalk.withContext(function($ctx1) {
  1033. var $1;
  1034. $1=_st(aVisitor)._visitSequenceNode_(self);
  1035. return $1;
  1036. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.SequenceNode)})},
  1037. messageSends: ["visitSequenceNode:"]}),
  1038. smalltalk.SequenceNode);
  1039. smalltalk.addMethod(
  1040. "_asBlockSequenceNode",
  1041. smalltalk.method({
  1042. selector: "asBlockSequenceNode",
  1043. fn: function (){
  1044. var self=this;
  1045. function $BlockSequenceNode(){return smalltalk.BlockSequenceNode||(typeof BlockSequenceNode=="undefined"?nil:BlockSequenceNode)}
  1046. return smalltalk.withContext(function($ctx1) {
  1047. var $2,$3,$1;
  1048. $2=_st($BlockSequenceNode())._new();
  1049. _st($2)._nodes_(_st(self)._nodes());
  1050. _st($2)._temps_(_st(self)._temps());
  1051. $3=_st($2)._yourself();
  1052. $1=$3;
  1053. return $1;
  1054. }, function($ctx1) {$ctx1.fill(self,"asBlockSequenceNode",{},smalltalk.SequenceNode)})},
  1055. messageSends: ["nodes:", "nodes", "new", "temps:", "temps", "yourself"]}),
  1056. smalltalk.SequenceNode);
  1057. smalltalk.addMethod(
  1058. "_scope",
  1059. smalltalk.method({
  1060. selector: "scope",
  1061. fn: function (){
  1062. var self=this;
  1063. return smalltalk.withContext(function($ctx1) {
  1064. var $1;
  1065. $1=self["@scope"];
  1066. return $1;
  1067. }, function($ctx1) {$ctx1.fill(self,"scope",{},smalltalk.SequenceNode)})},
  1068. messageSends: []}),
  1069. smalltalk.SequenceNode);
  1070. smalltalk.addMethod(
  1071. "_scope_",
  1072. smalltalk.method({
  1073. selector: "scope:",
  1074. fn: function (aLexicalScope){
  1075. var self=this;
  1076. return smalltalk.withContext(function($ctx1) {
  1077. self["@scope"]=aLexicalScope;
  1078. return self}, function($ctx1) {$ctx1.fill(self,"scope:",{aLexicalScope:aLexicalScope},smalltalk.SequenceNode)})},
  1079. messageSends: []}),
  1080. smalltalk.SequenceNode);
  1081. smalltalk.addMethod(
  1082. "_temps",
  1083. smalltalk.method({
  1084. selector: "temps",
  1085. fn: function (){
  1086. var self=this;
  1087. return smalltalk.withContext(function($ctx1) {
  1088. var $2,$1;
  1089. $2=self["@temps"];
  1090. if(($receiver = $2) == nil || $receiver == undefined){
  1091. $1=[];
  1092. } else {
  1093. $1=$2;
  1094. };
  1095. return $1;
  1096. }, function($ctx1) {$ctx1.fill(self,"temps",{},smalltalk.SequenceNode)})},
  1097. messageSends: ["ifNil:"]}),
  1098. smalltalk.SequenceNode);
  1099. smalltalk.addMethod(
  1100. "_temps_",
  1101. smalltalk.method({
  1102. selector: "temps:",
  1103. fn: function (aCollection){
  1104. var self=this;
  1105. return smalltalk.withContext(function($ctx1) {
  1106. self["@temps"]=aCollection;
  1107. return self}, function($ctx1) {$ctx1.fill(self,"temps:",{aCollection:aCollection},smalltalk.SequenceNode)})},
  1108. messageSends: []}),
  1109. smalltalk.SequenceNode);
  1110. smalltalk.addClass('BlockSequenceNode', smalltalk.SequenceNode, [], 'Compiler-AST');
  1111. smalltalk.addMethod(
  1112. "_accept_",
  1113. smalltalk.method({
  1114. selector: "accept:",
  1115. fn: function (aVisitor){
  1116. var self=this;
  1117. return smalltalk.withContext(function($ctx1) {
  1118. var $1;
  1119. $1=_st(aVisitor)._visitBlockSequenceNode_(self);
  1120. return $1;
  1121. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.BlockSequenceNode)})},
  1122. messageSends: ["visitBlockSequenceNode:"]}),
  1123. smalltalk.BlockSequenceNode);
  1124. smalltalk.addMethod(
  1125. "_isBlockSequenceNode",
  1126. smalltalk.method({
  1127. selector: "isBlockSequenceNode",
  1128. fn: function (){
  1129. var self=this;
  1130. return smalltalk.withContext(function($ctx1) {
  1131. return true;
  1132. }, function($ctx1) {$ctx1.fill(self,"isBlockSequenceNode",{},smalltalk.BlockSequenceNode)})},
  1133. messageSends: []}),
  1134. smalltalk.BlockSequenceNode);
  1135. smalltalk.addClass('ValueNode', smalltalk.Node, ['value'], 'Compiler-AST');
  1136. smalltalk.addMethod(
  1137. "_accept_",
  1138. smalltalk.method({
  1139. selector: "accept:",
  1140. fn: function (aVisitor){
  1141. var self=this;
  1142. return smalltalk.withContext(function($ctx1) {
  1143. var $1;
  1144. $1=_st(aVisitor)._visitValueNode_(self);
  1145. return $1;
  1146. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.ValueNode)})},
  1147. messageSends: ["visitValueNode:"]}),
  1148. smalltalk.ValueNode);
  1149. smalltalk.addMethod(
  1150. "_isImmutable",
  1151. smalltalk.method({
  1152. selector: "isImmutable",
  1153. fn: function (){
  1154. var self=this;
  1155. return smalltalk.withContext(function($ctx1) {
  1156. var $1;
  1157. $1=_st(_st(self)._value())._isImmutable();
  1158. return $1;
  1159. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.ValueNode)})},
  1160. messageSends: ["isImmutable", "value"]}),
  1161. smalltalk.ValueNode);
  1162. smalltalk.addMethod(
  1163. "_isValueNode",
  1164. smalltalk.method({
  1165. selector: "isValueNode",
  1166. fn: function (){
  1167. var self=this;
  1168. return smalltalk.withContext(function($ctx1) {
  1169. return true;
  1170. }, function($ctx1) {$ctx1.fill(self,"isValueNode",{},smalltalk.ValueNode)})},
  1171. messageSends: []}),
  1172. smalltalk.ValueNode);
  1173. smalltalk.addMethod(
  1174. "_value",
  1175. smalltalk.method({
  1176. selector: "value",
  1177. fn: function (){
  1178. var self=this;
  1179. return smalltalk.withContext(function($ctx1) {
  1180. var $1;
  1181. $1=self["@value"];
  1182. return $1;
  1183. }, function($ctx1) {$ctx1.fill(self,"value",{},smalltalk.ValueNode)})},
  1184. messageSends: []}),
  1185. smalltalk.ValueNode);
  1186. smalltalk.addMethod(
  1187. "_value_",
  1188. smalltalk.method({
  1189. selector: "value:",
  1190. fn: function (anObject){
  1191. var self=this;
  1192. return smalltalk.withContext(function($ctx1) {
  1193. self["@value"]=anObject;
  1194. return self}, function($ctx1) {$ctx1.fill(self,"value:",{anObject:anObject},smalltalk.ValueNode)})},
  1195. messageSends: []}),
  1196. smalltalk.ValueNode);
  1197. smalltalk.addClass('VariableNode', smalltalk.ValueNode, ['assigned', 'binding'], 'Compiler-AST');
  1198. smalltalk.addMethod(
  1199. "_accept_",
  1200. smalltalk.method({
  1201. selector: "accept:",
  1202. fn: function (aVisitor){
  1203. var self=this;
  1204. return smalltalk.withContext(function($ctx1) {
  1205. var $1;
  1206. $1=_st(aVisitor)._visitVariableNode_(self);
  1207. return $1;
  1208. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.VariableNode)})},
  1209. messageSends: ["visitVariableNode:"]}),
  1210. smalltalk.VariableNode);
  1211. smalltalk.addMethod(
  1212. "_alias",
  1213. smalltalk.method({
  1214. selector: "alias",
  1215. fn: function (){
  1216. var self=this;
  1217. return smalltalk.withContext(function($ctx1) {
  1218. var $1;
  1219. $1=_st(_st(self)._binding())._alias();
  1220. return $1;
  1221. }, function($ctx1) {$ctx1.fill(self,"alias",{},smalltalk.VariableNode)})},
  1222. messageSends: ["alias", "binding"]}),
  1223. smalltalk.VariableNode);
  1224. smalltalk.addMethod(
  1225. "_assigned",
  1226. smalltalk.method({
  1227. selector: "assigned",
  1228. fn: function (){
  1229. var self=this;
  1230. return smalltalk.withContext(function($ctx1) {
  1231. var $2,$1;
  1232. $2=self["@assigned"];
  1233. if(($receiver = $2) == nil || $receiver == undefined){
  1234. $1=false;
  1235. } else {
  1236. $1=$2;
  1237. };
  1238. return $1;
  1239. }, function($ctx1) {$ctx1.fill(self,"assigned",{},smalltalk.VariableNode)})},
  1240. messageSends: ["ifNil:"]}),
  1241. smalltalk.VariableNode);
  1242. smalltalk.addMethod(
  1243. "_assigned_",
  1244. smalltalk.method({
  1245. selector: "assigned:",
  1246. fn: function (aBoolean){
  1247. var self=this;
  1248. return smalltalk.withContext(function($ctx1) {
  1249. self["@assigned"]=aBoolean;
  1250. return self}, function($ctx1) {$ctx1.fill(self,"assigned:",{aBoolean:aBoolean},smalltalk.VariableNode)})},
  1251. messageSends: []}),
  1252. smalltalk.VariableNode);
  1253. smalltalk.addMethod(
  1254. "_beAssigned",
  1255. smalltalk.method({
  1256. selector: "beAssigned",
  1257. fn: function (){
  1258. var self=this;
  1259. return smalltalk.withContext(function($ctx1) {
  1260. _st(_st(self)._binding())._validateAssignment();
  1261. self["@assigned"]=true;
  1262. return self}, function($ctx1) {$ctx1.fill(self,"beAssigned",{},smalltalk.VariableNode)})},
  1263. messageSends: ["validateAssignment", "binding"]}),
  1264. smalltalk.VariableNode);
  1265. smalltalk.addMethod(
  1266. "_binding",
  1267. smalltalk.method({
  1268. selector: "binding",
  1269. fn: function (){
  1270. var self=this;
  1271. return smalltalk.withContext(function($ctx1) {
  1272. var $1;
  1273. $1=self["@binding"];
  1274. return $1;
  1275. }, function($ctx1) {$ctx1.fill(self,"binding",{},smalltalk.VariableNode)})},
  1276. messageSends: []}),
  1277. smalltalk.VariableNode);
  1278. smalltalk.addMethod(
  1279. "_binding_",
  1280. smalltalk.method({
  1281. selector: "binding:",
  1282. fn: function (aScopeVar){
  1283. var self=this;
  1284. return smalltalk.withContext(function($ctx1) {
  1285. self["@binding"]=aScopeVar;
  1286. return self}, function($ctx1) {$ctx1.fill(self,"binding:",{aScopeVar:aScopeVar},smalltalk.VariableNode)})},
  1287. messageSends: []}),
  1288. smalltalk.VariableNode);
  1289. smalltalk.addMethod(
  1290. "_isImmutable",
  1291. smalltalk.method({
  1292. selector: "isImmutable",
  1293. fn: function (){
  1294. var self=this;
  1295. return smalltalk.withContext(function($ctx1) {
  1296. return false;
  1297. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.VariableNode)})},
  1298. messageSends: []}),
  1299. smalltalk.VariableNode);
  1300. smalltalk.addClass('ClassReferenceNode', smalltalk.VariableNode, [], 'Compiler-AST');
  1301. smalltalk.addMethod(
  1302. "_accept_",
  1303. smalltalk.method({
  1304. selector: "accept:",
  1305. fn: function (aVisitor){
  1306. var self=this;
  1307. return smalltalk.withContext(function($ctx1) {
  1308. var $1;
  1309. $1=_st(aVisitor)._visitClassReferenceNode_(self);
  1310. return $1;
  1311. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},smalltalk.ClassReferenceNode)})},
  1312. messageSends: ["visitClassReferenceNode:"]}),
  1313. smalltalk.ClassReferenceNode);
  1314. smalltalk.addMethod(
  1315. "_isNode",
  1316. smalltalk.method({
  1317. selector: "isNode",
  1318. fn: function (){
  1319. var self=this;
  1320. return smalltalk.withContext(function($ctx1) {
  1321. return false;
  1322. }, function($ctx1) {$ctx1.fill(self,"isNode",{},smalltalk.Object)})},
  1323. messageSends: []}),
  1324. smalltalk.Object);