1
0

Compiler-AST.deploy.js 34 KB

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