1
0

Compiler-AST.deploy.js 38 KB

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