Compiler-AST.deploy.js 38 KB

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