Compiler-AST.deploy.js 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  386. smalltalk.BlockNode);
  387. smalltalk.addClass('CascadeNode', smalltalk.Node, ['receiver'], 'Compiler-AST');
  388. smalltalk.addMethod(
  389. "_accept_",
  390. smalltalk.method({
  391. selector: "accept:",
  392. fn: function (aVisitor){
  393. var self=this;
  394. return smalltalk.withContext(function($ctx1) { var $1;
  395. $1=_st(aVisitor)._visitCascadeNode_(self);
  396. return $1;
  397. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.CascadeNode)})}
  398. }),
  399. smalltalk.CascadeNode);
  400. smalltalk.addMethod(
  401. "_receiver",
  402. smalltalk.method({
  403. selector: "receiver",
  404. fn: function (){
  405. var self=this;
  406. return smalltalk.withContext(function($ctx1) { var $1;
  407. $1=self["@receiver"];
  408. return $1;
  409. }, function($ctx1) {$ctx1.fill(self,"receiver",{}, smalltalk.CascadeNode)})}
  410. }),
  411. smalltalk.CascadeNode);
  412. smalltalk.addMethod(
  413. "_receiver_",
  414. smalltalk.method({
  415. selector: "receiver:",
  416. fn: function (aNode){
  417. var self=this;
  418. return smalltalk.withContext(function($ctx1) { self["@receiver"]=aNode;
  419. return self}, function($ctx1) {$ctx1.fill(self,"receiver:",{aNode:aNode}, smalltalk.CascadeNode)})}
  420. }),
  421. smalltalk.CascadeNode);
  422. smalltalk.addClass('DynamicArrayNode', smalltalk.Node, [], 'Compiler-AST');
  423. smalltalk.addMethod(
  424. "_accept_",
  425. smalltalk.method({
  426. selector: "accept:",
  427. fn: function (aVisitor){
  428. var self=this;
  429. return smalltalk.withContext(function($ctx1) { var $1;
  430. $1=_st(aVisitor)._visitDynamicArrayNode_(self);
  431. return $1;
  432. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.DynamicArrayNode)})}
  433. }),
  434. smalltalk.DynamicArrayNode);
  435. smalltalk.addClass('DynamicDictionaryNode', smalltalk.Node, [], 'Compiler-AST');
  436. smalltalk.addMethod(
  437. "_accept_",
  438. smalltalk.method({
  439. selector: "accept:",
  440. fn: function (aVisitor){
  441. var self=this;
  442. return smalltalk.withContext(function($ctx1) { var $1;
  443. $1=_st(aVisitor)._visitDynamicDictionaryNode_(self);
  444. return $1;
  445. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.DynamicDictionaryNode)})}
  446. }),
  447. smalltalk.DynamicDictionaryNode);
  448. smalltalk.addClass('JSStatementNode', smalltalk.Node, ['source'], 'Compiler-AST');
  449. smalltalk.addMethod(
  450. "_accept_",
  451. smalltalk.method({
  452. selector: "accept:",
  453. fn: function (aVisitor){
  454. var self=this;
  455. return smalltalk.withContext(function($ctx1) { var $1;
  456. $1=_st(aVisitor)._visitJSStatementNode_(self);
  457. return $1;
  458. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.JSStatementNode)})}
  459. }),
  460. smalltalk.JSStatementNode);
  461. smalltalk.addMethod(
  462. "_source",
  463. smalltalk.method({
  464. selector: "source",
  465. fn: function (){
  466. var self=this;
  467. return smalltalk.withContext(function($ctx1) { var $2,$1;
  468. $2=self["@source"];
  469. if(($receiver = $2) == nil || $receiver == undefined){
  470. $1="";
  471. } else {
  472. $1=$2;
  473. };
  474. return $1;
  475. }, function($ctx1) {$ctx1.fill(self,"source",{}, smalltalk.JSStatementNode)})}
  476. }),
  477. smalltalk.JSStatementNode);
  478. smalltalk.addMethod(
  479. "_source_",
  480. smalltalk.method({
  481. selector: "source:",
  482. fn: function (aString){
  483. var self=this;
  484. return smalltalk.withContext(function($ctx1) { self["@source"]=aString;
  485. return self}, function($ctx1) {$ctx1.fill(self,"source:",{aString:aString}, smalltalk.JSStatementNode)})}
  486. }),
  487. smalltalk.JSStatementNode);
  488. smalltalk.addClass('MethodNode', smalltalk.Node, ['selector', 'arguments', 'source', 'scope', 'classReferences', 'messageSends', 'superSends'], 'Compiler-AST');
  489. smalltalk.addMethod(
  490. "_accept_",
  491. smalltalk.method({
  492. selector: "accept:",
  493. fn: function (aVisitor){
  494. var self=this;
  495. return smalltalk.withContext(function($ctx1) { var $1;
  496. $1=_st(aVisitor)._visitMethodNode_(self);
  497. return $1;
  498. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.MethodNode)})}
  499. }),
  500. smalltalk.MethodNode);
  501. smalltalk.addMethod(
  502. "_arguments",
  503. smalltalk.method({
  504. selector: "arguments",
  505. fn: function (){
  506. var self=this;
  507. return smalltalk.withContext(function($ctx1) { var $2,$1;
  508. $2=self["@arguments"];
  509. if(($receiver = $2) == nil || $receiver == undefined){
  510. $1=[];
  511. } else {
  512. $1=$2;
  513. };
  514. return $1;
  515. }, function($ctx1) {$ctx1.fill(self,"arguments",{}, smalltalk.MethodNode)})}
  516. }),
  517. smalltalk.MethodNode);
  518. smalltalk.addMethod(
  519. "_arguments_",
  520. smalltalk.method({
  521. selector: "arguments:",
  522. fn: function (aCollection){
  523. var self=this;
  524. return smalltalk.withContext(function($ctx1) { self["@arguments"]=aCollection;
  525. return self}, function($ctx1) {$ctx1.fill(self,"arguments:",{aCollection:aCollection}, smalltalk.MethodNode)})}
  526. }),
  527. smalltalk.MethodNode);
  528. smalltalk.addMethod(
  529. "_classReferences",
  530. smalltalk.method({
  531. selector: "classReferences",
  532. fn: function (){
  533. var self=this;
  534. return smalltalk.withContext(function($ctx1) { var $1;
  535. $1=self["@classReferences"];
  536. return $1;
  537. }, function($ctx1) {$ctx1.fill(self,"classReferences",{}, smalltalk.MethodNode)})}
  538. }),
  539. smalltalk.MethodNode);
  540. smalltalk.addMethod(
  541. "_classReferences_",
  542. smalltalk.method({
  543. selector: "classReferences:",
  544. fn: function (aCollection){
  545. var self=this;
  546. return smalltalk.withContext(function($ctx1) { self["@classReferences"]=aCollection;
  547. return self}, function($ctx1) {$ctx1.fill(self,"classReferences:",{aCollection:aCollection}, smalltalk.MethodNode)})}
  548. }),
  549. smalltalk.MethodNode);
  550. smalltalk.addMethod(
  551. "_messageSends",
  552. smalltalk.method({
  553. selector: "messageSends",
  554. fn: function (){
  555. var self=this;
  556. return smalltalk.withContext(function($ctx1) { var $1;
  557. $1=self["@messageSends"];
  558. return $1;
  559. }, function($ctx1) {$ctx1.fill(self,"messageSends",{}, smalltalk.MethodNode)})}
  560. }),
  561. smalltalk.MethodNode);
  562. smalltalk.addMethod(
  563. "_messageSends_",
  564. smalltalk.method({
  565. selector: "messageSends:",
  566. fn: function (aCollection){
  567. var self=this;
  568. return smalltalk.withContext(function($ctx1) { self["@messageSends"]=aCollection;
  569. return self}, function($ctx1) {$ctx1.fill(self,"messageSends:",{aCollection:aCollection}, smalltalk.MethodNode)})}
  570. }),
  571. smalltalk.MethodNode);
  572. smalltalk.addMethod(
  573. "_scope",
  574. smalltalk.method({
  575. selector: "scope",
  576. fn: function (){
  577. var self=this;
  578. return smalltalk.withContext(function($ctx1) { var $1;
  579. $1=self["@scope"];
  580. return $1;
  581. }, function($ctx1) {$ctx1.fill(self,"scope",{}, smalltalk.MethodNode)})}
  582. }),
  583. smalltalk.MethodNode);
  584. smalltalk.addMethod(
  585. "_scope_",
  586. smalltalk.method({
  587. selector: "scope:",
  588. fn: function (aMethodScope){
  589. var self=this;
  590. return smalltalk.withContext(function($ctx1) { self["@scope"]=aMethodScope;
  591. return self}, function($ctx1) {$ctx1.fill(self,"scope:",{aMethodScope:aMethodScope}, smalltalk.MethodNode)})}
  592. }),
  593. smalltalk.MethodNode);
  594. smalltalk.addMethod(
  595. "_selector",
  596. smalltalk.method({
  597. selector: "selector",
  598. fn: function (){
  599. var self=this;
  600. return smalltalk.withContext(function($ctx1) { var $1;
  601. $1=self["@selector"];
  602. return $1;
  603. }, function($ctx1) {$ctx1.fill(self,"selector",{}, smalltalk.MethodNode)})}
  604. }),
  605. smalltalk.MethodNode);
  606. smalltalk.addMethod(
  607. "_selector_",
  608. smalltalk.method({
  609. selector: "selector:",
  610. fn: function (aString){
  611. var self=this;
  612. return smalltalk.withContext(function($ctx1) { self["@selector"]=aString;
  613. return self}, function($ctx1) {$ctx1.fill(self,"selector:",{aString:aString}, smalltalk.MethodNode)})}
  614. }),
  615. smalltalk.MethodNode);
  616. smalltalk.addMethod(
  617. "_source",
  618. smalltalk.method({
  619. selector: "source",
  620. fn: function (){
  621. var self=this;
  622. return smalltalk.withContext(function($ctx1) { var $1;
  623. $1=self["@source"];
  624. return $1;
  625. }, function($ctx1) {$ctx1.fill(self,"source",{}, smalltalk.MethodNode)})}
  626. }),
  627. smalltalk.MethodNode);
  628. smalltalk.addMethod(
  629. "_source_",
  630. smalltalk.method({
  631. selector: "source:",
  632. fn: function (aString){
  633. var self=this;
  634. return smalltalk.withContext(function($ctx1) { self["@source"]=aString;
  635. return self}, function($ctx1) {$ctx1.fill(self,"source:",{aString:aString}, smalltalk.MethodNode)})}
  636. }),
  637. smalltalk.MethodNode);
  638. smalltalk.addMethod(
  639. "_superSends",
  640. smalltalk.method({
  641. selector: "superSends",
  642. fn: function (){
  643. var self=this;
  644. return smalltalk.withContext(function($ctx1) { var $1;
  645. $1=self["@superSends"];
  646. return $1;
  647. }, function($ctx1) {$ctx1.fill(self,"superSends",{}, smalltalk.MethodNode)})}
  648. }),
  649. smalltalk.MethodNode);
  650. smalltalk.addMethod(
  651. "_superSends_",
  652. smalltalk.method({
  653. selector: "superSends:",
  654. fn: function (aCollection){
  655. var self=this;
  656. return smalltalk.withContext(function($ctx1) { self["@superSends"]=aCollection;
  657. return self}, function($ctx1) {$ctx1.fill(self,"superSends:",{aCollection:aCollection}, smalltalk.MethodNode)})}
  658. }),
  659. smalltalk.MethodNode);
  660. smalltalk.addClass('ReturnNode', smalltalk.Node, ['scope'], 'Compiler-AST');
  661. smalltalk.addMethod(
  662. "_accept_",
  663. smalltalk.method({
  664. selector: "accept:",
  665. fn: function (aVisitor){
  666. var self=this;
  667. return smalltalk.withContext(function($ctx1) { var $1;
  668. $1=_st(aVisitor)._visitReturnNode_(self);
  669. return $1;
  670. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.ReturnNode)})}
  671. }),
  672. smalltalk.ReturnNode);
  673. smalltalk.addMethod(
  674. "_isReturnNode",
  675. smalltalk.method({
  676. selector: "isReturnNode",
  677. fn: function (){
  678. var self=this;
  679. return smalltalk.withContext(function($ctx1) { return true;
  680. }, function($ctx1) {$ctx1.fill(self,"isReturnNode",{}, smalltalk.ReturnNode)})}
  681. }),
  682. smalltalk.ReturnNode);
  683. smalltalk.addMethod(
  684. "_nonLocalReturn",
  685. smalltalk.method({
  686. selector: "nonLocalReturn",
  687. fn: function (){
  688. var self=this;
  689. return smalltalk.withContext(function($ctx1) { var $1;
  690. $1=_st(_st(_st(self)._scope())._isMethodScope())._not();
  691. return $1;
  692. }, function($ctx1) {$ctx1.fill(self,"nonLocalReturn",{}, smalltalk.ReturnNode)})}
  693. }),
  694. smalltalk.ReturnNode);
  695. smalltalk.addMethod(
  696. "_scope",
  697. smalltalk.method({
  698. selector: "scope",
  699. fn: function (){
  700. var self=this;
  701. return smalltalk.withContext(function($ctx1) { var $1;
  702. $1=self["@scope"];
  703. return $1;
  704. }, function($ctx1) {$ctx1.fill(self,"scope",{}, smalltalk.ReturnNode)})}
  705. }),
  706. smalltalk.ReturnNode);
  707. smalltalk.addMethod(
  708. "_scope_",
  709. smalltalk.method({
  710. selector: "scope:",
  711. fn: function (aLexicalScope){
  712. var self=this;
  713. return smalltalk.withContext(function($ctx1) { self["@scope"]=aLexicalScope;
  714. return self}, function($ctx1) {$ctx1.fill(self,"scope:",{aLexicalScope:aLexicalScope}, smalltalk.ReturnNode)})}
  715. }),
  716. smalltalk.ReturnNode);
  717. smalltalk.addClass('SendNode', smalltalk.Node, ['selector', 'arguments', 'receiver', 'superSend', 'index'], 'Compiler-AST');
  718. smalltalk.addMethod(
  719. "_accept_",
  720. smalltalk.method({
  721. selector: "accept:",
  722. fn: function (aVisitor){
  723. var self=this;
  724. return smalltalk.withContext(function($ctx1) { var $1;
  725. $1=_st(aVisitor)._visitSendNode_(self);
  726. return $1;
  727. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.SendNode)})}
  728. }),
  729. smalltalk.SendNode);
  730. smalltalk.addMethod(
  731. "_arguments",
  732. smalltalk.method({
  733. selector: "arguments",
  734. fn: function (){
  735. var self=this;
  736. return smalltalk.withContext(function($ctx1) { var $2,$1;
  737. $2=self["@arguments"];
  738. if(($receiver = $2) == nil || $receiver == undefined){
  739. self["@arguments"]=[];
  740. $1=self["@arguments"];
  741. } else {
  742. $1=$2;
  743. };
  744. return $1;
  745. }, function($ctx1) {$ctx1.fill(self,"arguments",{}, smalltalk.SendNode)})}
  746. }),
  747. smalltalk.SendNode);
  748. smalltalk.addMethod(
  749. "_arguments_",
  750. smalltalk.method({
  751. selector: "arguments:",
  752. fn: function (aCollection){
  753. var self=this;
  754. return smalltalk.withContext(function($ctx1) { self["@arguments"]=aCollection;
  755. return self}, function($ctx1) {$ctx1.fill(self,"arguments:",{aCollection:aCollection}, smalltalk.SendNode)})}
  756. }),
  757. smalltalk.SendNode);
  758. smalltalk.addMethod(
  759. "_cascadeNodeWithMessages_",
  760. smalltalk.method({
  761. selector: "cascadeNodeWithMessages:",
  762. fn: function (aCollection){
  763. var self=this;
  764. var first;
  765. return smalltalk.withContext(function($ctx1) { var $1,$2,$4,$5,$3;
  766. $1=_st((smalltalk.SendNode || SendNode))._new();
  767. _st($1)._selector_(_st(self)._selector());
  768. _st($1)._arguments_(_st(self)._arguments());
  769. $2=_st($1)._yourself();
  770. first=$2;
  771. $4=_st((smalltalk.CascadeNode || CascadeNode))._new();
  772. _st($4)._receiver_(_st(self)._receiver());
  773. _st($4)._nodes_(_st(_st((smalltalk.Array || Array))._with_(first)).__comma(aCollection));
  774. $5=_st($4)._yourself();
  775. $3=$5;
  776. return $3;
  777. }, function($ctx1) {$ctx1.fill(self,"cascadeNodeWithMessages:",{aCollection:aCollection,first:first}, smalltalk.SendNode)})}
  778. }),
  779. smalltalk.SendNode);
  780. smalltalk.addMethod(
  781. "_index",
  782. smalltalk.method({
  783. selector: "index",
  784. fn: function (){
  785. var self=this;
  786. return smalltalk.withContext(function($ctx1) { var $1;
  787. $1=self["@index"];
  788. return $1;
  789. }, function($ctx1) {$ctx1.fill(self,"index",{}, smalltalk.SendNode)})}
  790. }),
  791. smalltalk.SendNode);
  792. smalltalk.addMethod(
  793. "_index_",
  794. smalltalk.method({
  795. selector: "index:",
  796. fn: function (anInteger){
  797. var self=this;
  798. return smalltalk.withContext(function($ctx1) { self["@index"]=anInteger;
  799. return self}, function($ctx1) {$ctx1.fill(self,"index:",{anInteger:anInteger}, smalltalk.SendNode)})}
  800. }),
  801. smalltalk.SendNode);
  802. smalltalk.addMethod(
  803. "_isSendNode",
  804. smalltalk.method({
  805. selector: "isSendNode",
  806. fn: function (){
  807. var self=this;
  808. return smalltalk.withContext(function($ctx1) { return true;
  809. }, function($ctx1) {$ctx1.fill(self,"isSendNode",{}, smalltalk.SendNode)})}
  810. }),
  811. smalltalk.SendNode);
  812. smalltalk.addMethod(
  813. "_nodes",
  814. smalltalk.method({
  815. selector: "nodes",
  816. fn: function (){
  817. var self=this;
  818. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  819. $2=_st((smalltalk.Array || Array))._withAll_(_st(self)._arguments());
  820. _st($2)._add_(_st(self)._receiver());
  821. $3=_st($2)._yourself();
  822. $1=$3;
  823. return $1;
  824. }, function($ctx1) {$ctx1.fill(self,"nodes",{}, smalltalk.SendNode)})}
  825. }),
  826. smalltalk.SendNode);
  827. smalltalk.addMethod(
  828. "_receiver",
  829. smalltalk.method({
  830. selector: "receiver",
  831. fn: function (){
  832. var self=this;
  833. return smalltalk.withContext(function($ctx1) { var $1;
  834. $1=self["@receiver"];
  835. return $1;
  836. }, function($ctx1) {$ctx1.fill(self,"receiver",{}, smalltalk.SendNode)})}
  837. }),
  838. smalltalk.SendNode);
  839. smalltalk.addMethod(
  840. "_receiver_",
  841. smalltalk.method({
  842. selector: "receiver:",
  843. fn: function (aNode){
  844. var self=this;
  845. return smalltalk.withContext(function($ctx1) { self["@receiver"]=aNode;
  846. return self}, function($ctx1) {$ctx1.fill(self,"receiver:",{aNode:aNode}, smalltalk.SendNode)})}
  847. }),
  848. smalltalk.SendNode);
  849. smalltalk.addMethod(
  850. "_selector",
  851. smalltalk.method({
  852. selector: "selector",
  853. fn: function (){
  854. var self=this;
  855. return smalltalk.withContext(function($ctx1) { var $1;
  856. $1=self["@selector"];
  857. return $1;
  858. }, function($ctx1) {$ctx1.fill(self,"selector",{}, smalltalk.SendNode)})}
  859. }),
  860. smalltalk.SendNode);
  861. smalltalk.addMethod(
  862. "_selector_",
  863. smalltalk.method({
  864. selector: "selector:",
  865. fn: function (aString){
  866. var self=this;
  867. return smalltalk.withContext(function($ctx1) { self["@selector"]=aString;
  868. return self}, function($ctx1) {$ctx1.fill(self,"selector:",{aString:aString}, smalltalk.SendNode)})}
  869. }),
  870. smalltalk.SendNode);
  871. smalltalk.addMethod(
  872. "_superSend",
  873. smalltalk.method({
  874. selector: "superSend",
  875. fn: function (){
  876. var self=this;
  877. return smalltalk.withContext(function($ctx1) { var $2,$1;
  878. $2=self["@superSend"];
  879. if(($receiver = $2) == nil || $receiver == undefined){
  880. $1=false;
  881. } else {
  882. $1=$2;
  883. };
  884. return $1;
  885. }, function($ctx1) {$ctx1.fill(self,"superSend",{}, smalltalk.SendNode)})}
  886. }),
  887. smalltalk.SendNode);
  888. smalltalk.addMethod(
  889. "_superSend_",
  890. smalltalk.method({
  891. selector: "superSend:",
  892. fn: function (aBoolean){
  893. var self=this;
  894. return smalltalk.withContext(function($ctx1) { self["@superSend"]=aBoolean;
  895. return self}, function($ctx1) {$ctx1.fill(self,"superSend:",{aBoolean:aBoolean}, smalltalk.SendNode)})}
  896. }),
  897. smalltalk.SendNode);
  898. smalltalk.addMethod(
  899. "_valueForReceiver_",
  900. smalltalk.method({
  901. selector: "valueForReceiver:",
  902. fn: function (anObject){
  903. var self=this;
  904. return smalltalk.withContext(function($ctx1) { var $2,$3,$5,$4,$6,$1;
  905. $2=_st((smalltalk.SendNode || SendNode))._new();
  906. $3=$2;
  907. $5=_st(self)._receiver();
  908. if(($receiver = $5) == nil || $receiver == undefined){
  909. $4=anObject;
  910. } else {
  911. $4=_st(_st(self)._receiver())._valueForReceiver_(anObject);
  912. };
  913. _st($3)._receiver_($4);
  914. _st($2)._selector_(_st(self)._selector());
  915. _st($2)._arguments_(_st(self)._arguments());
  916. $6=_st($2)._yourself();
  917. $1=$6;
  918. return $1;
  919. }, function($ctx1) {$ctx1.fill(self,"valueForReceiver:",{anObject:anObject}, smalltalk.SendNode)})}
  920. }),
  921. smalltalk.SendNode);
  922. smalltalk.addClass('SequenceNode', smalltalk.Node, ['temps', 'scope'], 'Compiler-AST');
  923. smalltalk.addMethod(
  924. "_accept_",
  925. smalltalk.method({
  926. selector: "accept:",
  927. fn: function (aVisitor){
  928. var self=this;
  929. return smalltalk.withContext(function($ctx1) { var $1;
  930. $1=_st(aVisitor)._visitSequenceNode_(self);
  931. return $1;
  932. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.SequenceNode)})}
  933. }),
  934. smalltalk.SequenceNode);
  935. smalltalk.addMethod(
  936. "_asBlockSequenceNode",
  937. smalltalk.method({
  938. selector: "asBlockSequenceNode",
  939. fn: function (){
  940. var self=this;
  941. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  942. $2=_st((smalltalk.BlockSequenceNode || BlockSequenceNode))._new();
  943. _st($2)._nodes_(_st(self)._nodes());
  944. _st($2)._temps_(_st(self)._temps());
  945. $3=_st($2)._yourself();
  946. $1=$3;
  947. return $1;
  948. }, function($ctx1) {$ctx1.fill(self,"asBlockSequenceNode",{}, smalltalk.SequenceNode)})}
  949. }),
  950. smalltalk.SequenceNode);
  951. smalltalk.addMethod(
  952. "_scope",
  953. smalltalk.method({
  954. selector: "scope",
  955. fn: function (){
  956. var self=this;
  957. return smalltalk.withContext(function($ctx1) { var $1;
  958. $1=self["@scope"];
  959. return $1;
  960. }, function($ctx1) {$ctx1.fill(self,"scope",{}, smalltalk.SequenceNode)})}
  961. }),
  962. smalltalk.SequenceNode);
  963. smalltalk.addMethod(
  964. "_scope_",
  965. smalltalk.method({
  966. selector: "scope:",
  967. fn: function (aLexicalScope){
  968. var self=this;
  969. return smalltalk.withContext(function($ctx1) { self["@scope"]=aLexicalScope;
  970. return self}, function($ctx1) {$ctx1.fill(self,"scope:",{aLexicalScope:aLexicalScope}, smalltalk.SequenceNode)})}
  971. }),
  972. smalltalk.SequenceNode);
  973. smalltalk.addMethod(
  974. "_temps",
  975. smalltalk.method({
  976. selector: "temps",
  977. fn: function (){
  978. var self=this;
  979. return smalltalk.withContext(function($ctx1) { var $2,$1;
  980. $2=self["@temps"];
  981. if(($receiver = $2) == nil || $receiver == undefined){
  982. $1=[];
  983. } else {
  984. $1=$2;
  985. };
  986. return $1;
  987. }, function($ctx1) {$ctx1.fill(self,"temps",{}, smalltalk.SequenceNode)})}
  988. }),
  989. smalltalk.SequenceNode);
  990. smalltalk.addMethod(
  991. "_temps_",
  992. smalltalk.method({
  993. selector: "temps:",
  994. fn: function (aCollection){
  995. var self=this;
  996. return smalltalk.withContext(function($ctx1) { self["@temps"]=aCollection;
  997. return self}, function($ctx1) {$ctx1.fill(self,"temps:",{aCollection:aCollection}, smalltalk.SequenceNode)})}
  998. }),
  999. smalltalk.SequenceNode);
  1000. smalltalk.addClass('BlockSequenceNode', smalltalk.SequenceNode, [], 'Compiler-AST');
  1001. smalltalk.addMethod(
  1002. "_accept_",
  1003. smalltalk.method({
  1004. selector: "accept:",
  1005. fn: function (aVisitor){
  1006. var self=this;
  1007. return smalltalk.withContext(function($ctx1) { var $1;
  1008. $1=_st(aVisitor)._visitBlockSequenceNode_(self);
  1009. return $1;
  1010. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.BlockSequenceNode)})}
  1011. }),
  1012. smalltalk.BlockSequenceNode);
  1013. smalltalk.addMethod(
  1014. "_isBlockSequenceNode",
  1015. smalltalk.method({
  1016. selector: "isBlockSequenceNode",
  1017. fn: function (){
  1018. var self=this;
  1019. return smalltalk.withContext(function($ctx1) { return true;
  1020. }, function($ctx1) {$ctx1.fill(self,"isBlockSequenceNode",{}, smalltalk.BlockSequenceNode)})}
  1021. }),
  1022. smalltalk.BlockSequenceNode);
  1023. smalltalk.addClass('ValueNode', smalltalk.Node, ['value'], 'Compiler-AST');
  1024. smalltalk.addMethod(
  1025. "_accept_",
  1026. smalltalk.method({
  1027. selector: "accept:",
  1028. fn: function (aVisitor){
  1029. var self=this;
  1030. return smalltalk.withContext(function($ctx1) { var $1;
  1031. $1=_st(aVisitor)._visitValueNode_(self);
  1032. return $1;
  1033. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.ValueNode)})}
  1034. }),
  1035. smalltalk.ValueNode);
  1036. smalltalk.addMethod(
  1037. "_isImmutable",
  1038. smalltalk.method({
  1039. selector: "isImmutable",
  1040. fn: function (){
  1041. var self=this;
  1042. return smalltalk.withContext(function($ctx1) { return true;
  1043. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{}, smalltalk.ValueNode)})}
  1044. }),
  1045. smalltalk.ValueNode);
  1046. smalltalk.addMethod(
  1047. "_isValueNode",
  1048. smalltalk.method({
  1049. selector: "isValueNode",
  1050. fn: function (){
  1051. var self=this;
  1052. return smalltalk.withContext(function($ctx1) { return true;
  1053. }, function($ctx1) {$ctx1.fill(self,"isValueNode",{}, smalltalk.ValueNode)})}
  1054. }),
  1055. smalltalk.ValueNode);
  1056. smalltalk.addMethod(
  1057. "_value",
  1058. smalltalk.method({
  1059. selector: "value",
  1060. fn: function (){
  1061. var self=this;
  1062. return smalltalk.withContext(function($ctx1) { var $1;
  1063. $1=self["@value"];
  1064. return $1;
  1065. }, function($ctx1) {$ctx1.fill(self,"value",{}, smalltalk.ValueNode)})}
  1066. }),
  1067. smalltalk.ValueNode);
  1068. smalltalk.addMethod(
  1069. "_value_",
  1070. smalltalk.method({
  1071. selector: "value:",
  1072. fn: function (anObject){
  1073. var self=this;
  1074. return smalltalk.withContext(function($ctx1) { self["@value"]=anObject;
  1075. return self}, function($ctx1) {$ctx1.fill(self,"value:",{anObject:anObject}, smalltalk.ValueNode)})}
  1076. }),
  1077. smalltalk.ValueNode);
  1078. smalltalk.addClass('VariableNode', smalltalk.ValueNode, ['assigned', 'binding'], 'Compiler-AST');
  1079. smalltalk.addMethod(
  1080. "_accept_",
  1081. smalltalk.method({
  1082. selector: "accept:",
  1083. fn: function (aVisitor){
  1084. var self=this;
  1085. return smalltalk.withContext(function($ctx1) { var $1;
  1086. $1=_st(aVisitor)._visitVariableNode_(self);
  1087. return $1;
  1088. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.VariableNode)})}
  1089. }),
  1090. smalltalk.VariableNode);
  1091. smalltalk.addMethod(
  1092. "_alias",
  1093. smalltalk.method({
  1094. selector: "alias",
  1095. fn: function (){
  1096. var self=this;
  1097. return smalltalk.withContext(function($ctx1) { var $1;
  1098. $1=_st(_st(self)._binding())._alias();
  1099. return $1;
  1100. }, function($ctx1) {$ctx1.fill(self,"alias",{}, smalltalk.VariableNode)})}
  1101. }),
  1102. smalltalk.VariableNode);
  1103. smalltalk.addMethod(
  1104. "_assigned",
  1105. smalltalk.method({
  1106. selector: "assigned",
  1107. fn: function (){
  1108. var self=this;
  1109. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1110. $2=self["@assigned"];
  1111. if(($receiver = $2) == nil || $receiver == undefined){
  1112. $1=false;
  1113. } else {
  1114. $1=$2;
  1115. };
  1116. return $1;
  1117. }, function($ctx1) {$ctx1.fill(self,"assigned",{}, smalltalk.VariableNode)})}
  1118. }),
  1119. smalltalk.VariableNode);
  1120. smalltalk.addMethod(
  1121. "_assigned_",
  1122. smalltalk.method({
  1123. selector: "assigned:",
  1124. fn: function (aBoolean){
  1125. var self=this;
  1126. return smalltalk.withContext(function($ctx1) { self["@assigned"]=aBoolean;
  1127. return self}, function($ctx1) {$ctx1.fill(self,"assigned:",{aBoolean:aBoolean}, smalltalk.VariableNode)})}
  1128. }),
  1129. smalltalk.VariableNode);
  1130. smalltalk.addMethod(
  1131. "_beAssigned",
  1132. smalltalk.method({
  1133. selector: "beAssigned",
  1134. fn: function (){
  1135. var self=this;
  1136. return smalltalk.withContext(function($ctx1) { _st(_st(self)._binding())._validateAssignment();
  1137. self["@assigned"]=true;
  1138. return self}, function($ctx1) {$ctx1.fill(self,"beAssigned",{}, smalltalk.VariableNode)})}
  1139. }),
  1140. smalltalk.VariableNode);
  1141. smalltalk.addMethod(
  1142. "_binding",
  1143. smalltalk.method({
  1144. selector: "binding",
  1145. fn: function (){
  1146. var self=this;
  1147. return smalltalk.withContext(function($ctx1) { var $1;
  1148. $1=self["@binding"];
  1149. return $1;
  1150. }, function($ctx1) {$ctx1.fill(self,"binding",{}, smalltalk.VariableNode)})}
  1151. }),
  1152. smalltalk.VariableNode);
  1153. smalltalk.addMethod(
  1154. "_binding_",
  1155. smalltalk.method({
  1156. selector: "binding:",
  1157. fn: function (aScopeVar){
  1158. var self=this;
  1159. return smalltalk.withContext(function($ctx1) { self["@binding"]=aScopeVar;
  1160. return self}, function($ctx1) {$ctx1.fill(self,"binding:",{aScopeVar:aScopeVar}, smalltalk.VariableNode)})}
  1161. }),
  1162. smalltalk.VariableNode);
  1163. smalltalk.addMethod(
  1164. "_isImmutable",
  1165. smalltalk.method({
  1166. selector: "isImmutable",
  1167. fn: function (){
  1168. var self=this;
  1169. return smalltalk.withContext(function($ctx1) { return false;
  1170. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{}, smalltalk.VariableNode)})}
  1171. }),
  1172. smalltalk.VariableNode);
  1173. smalltalk.addClass('ClassReferenceNode', smalltalk.VariableNode, [], 'Compiler-AST');
  1174. smalltalk.addMethod(
  1175. "_accept_",
  1176. smalltalk.method({
  1177. selector: "accept:",
  1178. fn: function (aVisitor){
  1179. var self=this;
  1180. return smalltalk.withContext(function($ctx1) { var $1;
  1181. $1=_st(aVisitor)._visitClassReferenceNode_(self);
  1182. return $1;
  1183. }, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor}, smalltalk.ClassReferenceNode)})}
  1184. }),
  1185. smalltalk.ClassReferenceNode);
  1186. smalltalk.addMethod(
  1187. "_isNode",
  1188. smalltalk.method({
  1189. selector: "isNode",
  1190. fn: function (){
  1191. var self=this;
  1192. return smalltalk.withContext(function($ctx1) { return false;
  1193. }, function($ctx1) {$ctx1.fill(self,"isNode",{}, smalltalk.Object)})}
  1194. }),
  1195. smalltalk.Object);