Compiler-AST.deploy.js 37 KB

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