|
@@ -1164,7 +1164,7 @@ var penultimate;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-penultimate=$self._atLyst_ifAbsent_($recv(aCollection)._allButLast(),aBlock);
|
|
|
+penultimate=$self._atAxes_ifAbsent_($recv(aCollection)._allButLast(),aBlock);
|
|
|
return $recv($recv(aCollection)._last())._asAxisIn_ifAbsent_put_(penultimate,aBlock,value);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"atAxes:ifAbsent:put:",{aCollection:aCollection,aBlock:aBlock,value:value,penultimate:penultimate},$globals.Object)});
|
|
@@ -1172,10 +1172,10 @@ return $recv($recv(aCollection)._last())._asAxisIn_ifAbsent_put_(penultimate,aBl
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["aCollection", "aBlock", "value"],
|
|
|
-source: "atAxes: aCollection ifAbsent: aBlock put: value\x0a\x09| penultimate |\x0a\x09penultimate := self atLyst: aCollection allButLast ifAbsent: aBlock.\x0a\x09^ aCollection last asAxisIn: penultimate ifAbsent: aBlock put: value",
|
|
|
+source: "atAxes: aCollection ifAbsent: aBlock put: value\x0a\x09| penultimate |\x0a\x09penultimate := self atAxes: aCollection allButLast ifAbsent: aBlock.\x0a\x09^ aCollection last asAxisIn: penultimate ifAbsent: aBlock put: value",
|
|
|
referencedClasses: [],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["atLyst:ifAbsent:", "allButLast", "asAxisIn:ifAbsent:put:", "last"]
|
|
|
+messageSends: ["atAxes:ifAbsent:", "allButLast", "asAxisIn:ifAbsent:put:", "last"]
|
|
|
}),
|
|
|
$globals.Object);
|
|
|
|
|
@@ -1191,7 +1191,7 @@ return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
var $early={};
|
|
|
try {
|
|
|
-value=$self._atLyst_ifAbsent_(aCollection,(function(){
|
|
|
+value=$self._atAxes_ifAbsent_(aCollection,(function(){
|
|
|
throw $early=[self];
|
|
|
|
|
|
}));
|
|
@@ -1204,10 +1204,10 @@ catch(e) {if(e===$early)return e[0]; throw e}
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["aCollection", "aBlock"],
|
|
|
-source: "axes: aCollection consume: aBlock\x0a\x09| value |\x0a\x09value := self atLyst: aCollection ifAbsent: [ ^self ].\x0a\x09^ aBlock value: value",
|
|
|
+source: "axes: aCollection consume: aBlock\x0a\x09| value |\x0a\x09value := self atAxes: aCollection ifAbsent: [ ^self ].\x0a\x09^ aBlock value: value",
|
|
|
referencedClasses: [],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["atLyst:ifAbsent:", "value:"]
|
|
|
+messageSends: ["atAxes:ifAbsent:", "value:"]
|
|
|
}),
|
|
|
$globals.Object);
|
|
|
|
|
@@ -1225,12 +1225,12 @@ var $1,$receiver;
|
|
|
var $early={};
|
|
|
try {
|
|
|
$recv(aCollection)._last();
|
|
|
-value=$self._atLyst_ifAbsent_(aCollection,(function(){
|
|
|
+value=$self._atAxes_ifAbsent_(aCollection,(function(){
|
|
|
throw $early=[self];
|
|
|
|
|
|
}));
|
|
|
value=$recv(aBlock)._value_(value);
|
|
|
-value=$self._atLyst_ifAbsent_put_(aCollection,(function(){
|
|
|
+value=$self._atAxes_ifAbsent_put_(aCollection,(function(){
|
|
|
throw $early=[self];
|
|
|
|
|
|
}),value);
|
|
@@ -1251,10 +1251,10 @@ catch(e) {if(e===$early)return e[0]; throw e}
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["aCollection", "aBlock"],
|
|
|
-source: "axes: aCollection transform: aBlock\x0a\x09| value |\x0a\x09aCollection last. \x22raise if empty\x22\x0a\x09value := self atLyst: aCollection ifAbsent: [ ^self ].\x0a\x09value := aBlock value: value.\x0a\x09value := self atLyst: aCollection ifAbsent: [ ^self ] put: value.\x0a\x09self registeredAxon ifNotNil: [:axon | axon changed: aCollection]",
|
|
|
+source: "axes: aCollection transform: aBlock\x0a\x09| value |\x0a\x09aCollection last. \x22raise if empty\x22\x0a\x09value := self atAxes: aCollection ifAbsent: [ ^self ].\x0a\x09value := aBlock value: value.\x0a\x09value := self atAxes: aCollection ifAbsent: [ ^self ] put: value.\x0a\x09self registeredAxon ifNotNil: [:axon | axon changed: aCollection]",
|
|
|
referencedClasses: [],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["last", "atLyst:ifAbsent:", "value:", "atLyst:ifAbsent:put:", "ifNotNil:", "registeredAxon", "changed:"]
|
|
|
+messageSends: ["last", "atAxes:ifAbsent:", "value:", "atAxes:ifAbsent:put:", "ifNotNil:", "registeredAxon", "changed:"]
|
|
|
}),
|
|
|
$globals.Object);
|
|
|
|