|
@@ -1455,6 +1455,90 @@ $globals.BlockNode);
|
|
|
|
|
|
|
|
|
|
|
|
+$core.addClass('CascadeNode', $globals.Node, ['receiver'], 'Compiler-AST');
|
|
|
+
|
|
|
+$globals.CascadeNode.comment="I represent an cascade node.";
|
|
|
+
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "accept:",
|
|
|
+protocol: 'visiting',
|
|
|
+fn: function (aVisitor){
|
|
|
+var self=this;
|
|
|
+
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+
|
|
|
+return $recv(aVisitor)._visitCascadeNode_(self);
|
|
|
+
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},$globals.CascadeNode)});
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: ["aVisitor"],
|
|
|
+source: "accept: aVisitor\x0a\x09^ aVisitor visitCascadeNode: self",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: ["visitCascadeNode:"]
|
|
|
+}),
|
|
|
+$globals.CascadeNode);
|
|
|
+
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "isCascadeNode",
|
|
|
+protocol: 'testing',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+return true;
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: [],
|
|
|
+source: "isCascadeNode\x0a\x09^ true",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.CascadeNode);
|
|
|
+
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "receiver",
|
|
|
+protocol: 'accessing',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+return self["@receiver"];
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: [],
|
|
|
+source: "receiver\x0a\x09^ receiver",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.CascadeNode);
|
|
|
+
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "receiver:",
|
|
|
+protocol: 'accessing',
|
|
|
+fn: function (anObject){
|
|
|
+var self=this;
|
|
|
+self["@receiver"]=anObject;
|
|
|
+return self;
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: ["anObject"],
|
|
|
+source: "receiver: anObject\x0a\x09receiver := anObject",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.CascadeNode);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
$core.addClass('DynamicArrayNode', $globals.Node, [], 'Compiler-AST');
|
|
|
|
|
|
$globals.DynamicArrayNode.comment="I represent an dynamic array node.";
|
|
@@ -1923,7 +2007,7 @@ $globals.MethodNode);
|
|
|
|
|
|
$core.addClass('QuasiSendNode', $globals.Node, ['receiver'], 'Compiler-AST');
|
|
|
|
|
|
-$globals.QuasiSendNode.comment="I am a node that has a receiver.\x0a\x0aMy subclasses are `SendNode`, `CascadeNode` and `BranchSendNode`.";
|
|
|
+$globals.QuasiSendNode.comment="I am a node that has a receiver\x0aand with building API `#valueForReceiver:`.\x0a\x0aMy subclasses are `SendNode` and `BranchSendNode`.";
|
|
|
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
@@ -2049,80 +2133,6 @@ $globals.BranchSendNode);
|
|
|
|
|
|
|
|
|
|
|
|
-$core.addClass('CascadeNode', $globals.QuasiSendNode, [], 'Compiler-AST');
|
|
|
-
|
|
|
-$globals.CascadeNode.comment="I represent an cascade node.";
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "accept:",
|
|
|
-protocol: 'visiting',
|
|
|
-fn: function (aVisitor){
|
|
|
-var self=this;
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-return $recv(aVisitor)._visitCascadeNode_(self);
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"accept:",{aVisitor:aVisitor},$globals.CascadeNode)});
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: ["aVisitor"],
|
|
|
-source: "accept: aVisitor\x0a\x09^ aVisitor visitCascadeNode: self",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: ["visitCascadeNode:"]
|
|
|
-}),
|
|
|
-$globals.CascadeNode);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "isCascadeNode",
|
|
|
-protocol: 'testing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return true;
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: [],
|
|
|
-source: "isCascadeNode\x0a\x09^ true",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: []
|
|
|
-}),
|
|
|
-$globals.CascadeNode);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "valueForReceiver:",
|
|
|
-protocol: 'building',
|
|
|
-fn: function (anObject){
|
|
|
-var self=this;
|
|
|
-var nds;
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-nds=self._nodes();
|
|
|
-$recv(nds)._at_put_((1),$recv($recv(nds)._first())._valueForReceiver_(anObject));
|
|
|
-self._nodes_(nds);
|
|
|
-return self;
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"valueForReceiver:",{anObject:anObject,nds:nds},$globals.CascadeNode)});
|
|
|
-
|
|
|
-},
|
|
|
-
|
|
|
-args: ["anObject"],
|
|
|
-source: "valueForReceiver: anObject\x0a\x09| nds |\x0a\x09nds := self nodes.\x0a\x09nds at: 1 put: (nds first valueForReceiver: anObject).\x0a\x09self nodes: nds.\x0a\x09^ self",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-messageSends: ["nodes", "at:put:", "valueForReceiver:", "first", "nodes:"]
|
|
|
-}),
|
|
|
-$globals.CascadeNode);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
$core.addClass('SendNode', $globals.QuasiSendNode, ['selector', 'arguments', 'index'], 'Compiler-AST');
|
|
|
|
|
|
$globals.SendNode.comment="I represent an message send node.";
|