Compiler-AST.deploy.js 38 KB

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