Compiler-AST.deploy.js 37 KB

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