|
@@ -24,12 +24,13 @@ var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$receiver;
|
|
|
-$1=$recv(anError)._context();
|
|
|
+var $1;
|
|
|
+$1=[$recv(anError)._context()
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["context"]=1;
|
|
|
+,$ctx1.sendIdx["context"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+][0];
|
|
|
+if($1 == null || $1.a$nil){
|
|
|
$1;
|
|
|
} else {
|
|
|
$self._logErrorContext_($recv(anError)._context());
|
|
@@ -82,12 +83,13 @@ var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$receiver;
|
|
|
-$1=$recv(aContext)._home();
|
|
|
+var $1;
|
|
|
+$1=[$recv(aContext)._home()
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["home"]=1;
|
|
|
+,$ctx1.sendIdx["home"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+][0];
|
|
|
+if($1 == null || $1.a$nil){
|
|
|
$1;
|
|
|
} else {
|
|
|
$self._logContext_($recv(aContext)._home());
|
|
@@ -140,15 +142,16 @@ var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$receiver;
|
|
|
-if(($receiver = aContext) == null || $receiver.a$nil){
|
|
|
+var $1;
|
|
|
+if(aContext == null || aContext.a$nil){
|
|
|
aContext;
|
|
|
} else {
|
|
|
-$1=$recv(aContext)._home();
|
|
|
+$1=[$recv(aContext)._home()
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["home"]=1;
|
|
|
+,$ctx1.sendIdx["home"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+][0];
|
|
|
+if($1 == null || $1.a$nil){
|
|
|
$1;
|
|
|
} else {
|
|
|
$self._logContext_($recv(aContext)._home());
|
|
@@ -317,23 +320,19 @@ var newInstVars;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$2,$3,$4,$5;
|
|
|
newInstVars=$recv($recv(aClass)._instanceVariableNames())._copyWith_(aString);
|
|
|
-$1=$recv(aClass)._isMetaclass();
|
|
|
-if($core.assert($1)){
|
|
|
-$2=$self._classBuilder();
|
|
|
+if($core.assert($recv(aClass)._isMetaclass())){
|
|
|
+$recv([$self._classBuilder()
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["classBuilder"]=1;
|
|
|
+,$ctx1.sendIdx["classBuilder"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv($2)._class_slots_(aClass,newInstVars);
|
|
|
+][0])._class_slots_(aClass,newInstVars);
|
|
|
} else {
|
|
|
-$3=$self._classBuilder();
|
|
|
-$4=$recv(aClass)._superclass();
|
|
|
-$5=$recv(aClass)._name();
|
|
|
+$recv($self._classBuilder())._addSubclassOf_named_instanceVariableNames_package_($recv(aClass)._superclass(),[$recv(aClass)._name()
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["name"]=1;
|
|
|
+,$ctx1.sendIdx["name"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv($3)._addSubclassOf_named_instanceVariableNames_package_($4,$5,newInstVars,$recv($recv(aClass)._package())._name());
|
|
|
+][0],newInstVars,$recv($recv(aClass)._package())._name());
|
|
|
}
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -444,13 +443,14 @@ var protocols;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$receiver;
|
|
|
+var $1;
|
|
|
protocols=$recv(aClass)._protocols();
|
|
|
-$1=$recv(aClass)._superclass();
|
|
|
+$1=[$recv(aClass)._superclass()
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["superclass"]=1;
|
|
|
+,$ctx1.sendIdx["superclass"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+][0];
|
|
|
+if($1 == null || $1.a$nil){
|
|
|
$1;
|
|
|
} else {
|
|
|
$recv(protocols)._addAll_($self._availableProtocolsFor_($recv(aClass)._superclass()));
|
|
@@ -501,9 +501,9 @@ var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$receiver;
|
|
|
+var $1;
|
|
|
$1=$recv($recv($globals.Smalltalk)._globals())._at_($recv(aString)._asSymbol());
|
|
|
-if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+if($1 == null || $1.a$nil){
|
|
|
return $self._error_("Invalid class name");
|
|
|
} else {
|
|
|
return $1;
|
|
@@ -664,16 +664,16 @@ var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$2,$receiver;
|
|
|
+var $1;
|
|
|
$1=$recv($recv($globals.Smalltalk)._globals())._at_(aClassName);
|
|
|
-if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+if($1 == null || $1.a$nil){
|
|
|
$1;
|
|
|
} else {
|
|
|
-$2=$recv("A class named ".__comma(aClassName)).__comma(" already exists");
|
|
|
+$self._error_([$recv("A class named ".__comma(aClassName)).__comma(" already exists")
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx[","]=1;
|
|
|
+,$ctx1.sendIdx[","]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$self._error_($2);
|
|
|
+][0]);
|
|
|
}
|
|
|
$recv($recv($globals.ClassBuilder)._new())._copyClass_named_(aClass,aClassName);
|
|
|
return self;
|
|
@@ -735,17 +735,17 @@ selector: "evaluate:on:do:",
|
|
|
protocol: "error handling",
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["aBlock", "anErrorClass", "exceptionBlock"],
|
|
|
-source: "evaluate: aBlock on: anErrorClass do: exceptionBlock\x0a\x09\x22Evaluate a block and catch exceptions happening on the environment stack\x22\x0a\x09\x0a\x09^ Smalltalk do: aBlock on: (self classNamed: anErrorClass name) do: exceptionBlock",
|
|
|
-referencedClasses: ["Smalltalk"],
|
|
|
+source: "evaluate: aBlock on: anErrorClass do: exceptionBlock\x0a\x09\x22Evaluate a block and catch exceptions happening on the environment stack\x22\x0a\x09\x0a\x09^ aBlock on: (self classNamed: anErrorClass name) do: exceptionBlock",
|
|
|
+referencedClasses: [],
|
|
|
//>>excludeEnd("ide");
|
|
|
pragmas: [],
|
|
|
-messageSends: ["do:on:do:", "classNamed:", "name"]
|
|
|
+messageSends: ["on:do:", "classNamed:", "name"]
|
|
|
}, function ($methodClass){ return function (aBlock,anErrorClass,exceptionBlock){
|
|
|
var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return $recv($globals.Smalltalk)._do_on_do_(aBlock,$self._classNamed_($recv(anErrorClass)._name()),exceptionBlock);
|
|
|
+return $recv(aBlock)._on_do_($self._classNamed_($recv(anErrorClass)._name()),exceptionBlock);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"evaluate:on:do:",{aBlock:aBlock,anErrorClass:anErrorClass,exceptionBlock:exceptionBlock})});
|
|
|
//>>excludeEnd("ctx");
|
|
@@ -793,16 +793,15 @@ var package_;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$2,$receiver;
|
|
|
+var $1;
|
|
|
package_=$recv($globals.Package)._named_(aPackageName);
|
|
|
$1=package_;
|
|
|
-if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+if($1 == null || $1.a$nil){
|
|
|
$self._error_("Invalid package name");
|
|
|
} else {
|
|
|
$1;
|
|
|
}
|
|
|
-$2=$recv(package_).__eq_eq($recv(aClass)._package());
|
|
|
-if($core.assert($2)){
|
|
|
+if($core.assert($recv(package_).__eq_eq($recv(aClass)._package()))){
|
|
|
return self;
|
|
|
}
|
|
|
$recv(aClass)._package_(package_);
|
|
@@ -831,23 +830,19 @@ var destinationClass;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $2,$3,$1,$5,$4;
|
|
|
destinationClass=$self._classNamed_(aClassName);
|
|
|
-$2=destinationClass;
|
|
|
-$3=$recv(aMethod)._origin();
|
|
|
+if($core.assert($recv(destinationClass).__eq_eq([$recv(aMethod)._origin()
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["origin"]=1;
|
|
|
+,$ctx1.sendIdx["origin"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$1=$recv($2).__eq_eq($3);
|
|
|
-if($core.assert($1)){
|
|
|
+][0]))){
|
|
|
return self;
|
|
|
}
|
|
|
-$5=$recv(aMethod)._origin();
|
|
|
+if($core.assert($recv([$recv(aMethod)._origin()
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["origin"]=2;
|
|
|
+,$ctx1.sendIdx["origin"]=2
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$4=$recv($5)._isMetaclass();
|
|
|
-if($core.assert($4)){
|
|
|
+][0])._isMetaclass())){
|
|
|
destinationClass=$recv(destinationClass)._theMetaClass();
|
|
|
destinationClass;
|
|
|
}
|
|
@@ -1124,16 +1119,16 @@ var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$2,$receiver;
|
|
|
+var $1;
|
|
|
$1=$recv($recv($globals.Smalltalk)._globals())._at_(aClassName);
|
|
|
-if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+if($1 == null || $1.a$nil){
|
|
|
$1;
|
|
|
} else {
|
|
|
-$2=$recv("A class named ".__comma(aClassName)).__comma(" already exists");
|
|
|
+$self._error_([$recv("A class named ".__comma(aClassName)).__comma(" already exists")
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx[","]=1;
|
|
|
+,$ctx1.sendIdx[","]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$self._error_($2);
|
|
|
+][0]);
|
|
|
}
|
|
|
$recv($recv($globals.ClassBuilder)._new())._renameClass_to_(aClass,aClassName);
|
|
|
return self;
|
|
@@ -1386,9 +1381,9 @@ var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$receiver;
|
|
|
+var $1;
|
|
|
$1=$self._current();
|
|
|
-if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+if($1 == null || $1.a$nil){
|
|
|
$self._register_(anObject);
|
|
|
} else {
|
|
|
$1;
|
|
@@ -1423,10 +1418,10 @@ var smalltalkError;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$receiver;
|
|
|
+var $1;
|
|
|
smalltalkError=$recv($globals.Smalltalk)._asSmalltalkException_(anError);
|
|
|
$1=$recv(smalltalkError)._context();
|
|
|
-if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+if($1 == null || $1.a$nil){
|
|
|
$recv(smalltalkError)._context_($core.getThisContext());
|
|
|
} else {
|
|
|
$1;
|
|
@@ -1455,9 +1450,7 @@ var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1;
|
|
|
-$1=$recv(anError)._wasHandled();
|
|
|
-if(!$core.assert($1)){
|
|
|
+if(!$core.assert($recv(anError)._wasHandled())){
|
|
|
$recv($self._current())._handleError_(anError);
|
|
|
$recv(anError)._beHandled();
|
|
|
}
|
|
@@ -1959,36 +1952,37 @@ selector: "inspectOn:",
|
|
|
protocol: "*Platform-Services",
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["anInspector"],
|
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#keys' put: self keys.\x0a\x09self keysAndValuesDo: [ :key :value |\x0a\x09\x09variables at: key put: value ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
-referencedClasses: ["Dictionary"],
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Array streamContents: [ :stream |\x0a\x09\x09stream\x0a\x09\x09\x09nextPut: '#self' -> self;\x0a\x09\x09\x09nextPut: '#keys' -> self keys;\x0a\x09\x09\x09nextPutAll: self associations ].\x0a\x09anInspector\x0a\x09\x09setLabel: self shortenedPrintString;\x0a\x09\x09setVariables: variables",
|
|
|
+referencedClasses: ["Array"],
|
|
|
//>>excludeEnd("ide");
|
|
|
pragmas: [],
|
|
|
-messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"]
|
|
|
+messageSends: ["streamContents:", "nextPut:", "->", "keys", "nextPutAll:", "associations", "setLabel:", "shortenedPrintString", "setVariables:"]
|
|
|
}, function ($methodClass){ return function (anInspector){
|
|
|
var self=this,$self=this;
|
|
|
var variables;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-variables=$recv($globals.Dictionary)._new();
|
|
|
-$recv(variables)._at_put_("#self",self);
|
|
|
+variables=$recv($globals.Array)._streamContents_((function(stream){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=1;
|
|
|
+return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#keys",$self._keys());
|
|
|
+[$recv(stream)._nextPut_(["#self".__minus_gt(self)
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=2;
|
|
|
+,$ctx2.sendIdx["->"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$self._keysAndValuesDo_((function(key,value){
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-return $core.withContext(function($ctx2) {
|
|
|
+,$ctx2.sendIdx["nextPut:"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return $recv(variables)._at_put_(key,value);
|
|
|
+][0];
|
|
|
+$recv(stream)._nextPut_("#keys".__minus_gt($self._keys()));
|
|
|
+return $recv(stream)._nextPutAll_($self._associations());
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({key:key,value:value},$ctx1,1)});
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}));
|
|
|
-$recv(anInspector)._setLabel_($self._printString());
|
|
|
+$recv(anInspector)._setLabel_($self._shortenedPrintString());
|
|
|
$recv(anInspector)._setVariables_(variables);
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -2003,32 +1997,48 @@ selector: "inspectOn:",
|
|
|
protocol: "*Platform-Services",
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["anInspector"],
|
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09self withIndexDo: [ :each :i |\x0a\x09\x09variables at: i put: each ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
-referencedClasses: ["Dictionary"],
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Array streamContents: [ :stream |\x0a\x09\x09| i |\x0a\x09\x09stream nextPut: '#self' -> self.\x0a\x09\x09i := 1.\x0a\x09\x09self do: [ :each |\x0a\x09\x09\x09stream nextPut: i -> each.\x0a\x09\x09\x09i := i + 1 ] ].\x0a\x09anInspector\x0a\x09\x09setLabel: self shortenedPrintString;\x0a\x09\x09setVariables: variables",
|
|
|
+referencedClasses: ["Array"],
|
|
|
//>>excludeEnd("ide");
|
|
|
pragmas: [],
|
|
|
-messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"]
|
|
|
+messageSends: ["streamContents:", "nextPut:", "->", "do:", "+", "setLabel:", "shortenedPrintString", "setVariables:"]
|
|
|
}, function ($methodClass){ return function (anInspector){
|
|
|
var self=this,$self=this;
|
|
|
var variables;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-variables=$recv($globals.Dictionary)._new();
|
|
|
-$recv(variables)._at_put_("#self",self);
|
|
|
+variables=$recv($globals.Array)._streamContents_((function(stream){
|
|
|
+var i;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=1;
|
|
|
+return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$self._withIndexDo_((function(each,i){
|
|
|
+[$recv(stream)._nextPut_(["#self".__minus_gt(self)
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-return $core.withContext(function($ctx2) {
|
|
|
+,$ctx2.sendIdx["->"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return $recv(variables)._at_put_(i,each);
|
|
|
+][0])
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+,$ctx2.sendIdx["nextPut:"]=1
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+][0];
|
|
|
+i=(1);
|
|
|
+return $self._do_((function(each){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({each:each,i:i},$ctx1,1)});
|
|
|
+return $core.withContext(function($ctx3) {
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+$recv(stream)._nextPut_($recv(i).__minus_gt(each));
|
|
|
+i=$recv(i).__plus((1));
|
|
|
+return i;
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2,2)});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}));
|
|
|
-$recv(anInspector)._setLabel_($self._printString());
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({stream:stream,i:i},$ctx1,1)});
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+}));
|
|
|
+$recv(anInspector)._setLabel_($self._shortenedPrintString());
|
|
|
$recv(anInspector)._setVariables_(variables);
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -2043,47 +2053,89 @@ selector: "inspectOn:",
|
|
|
protocol: "*Platform-Services",
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["anInspector"],
|
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#year' put: self year.\x0a\x09variables at: '#month' put: self month.\x0a\x09variables at: '#day' put: self day.\x0a\x09variables at: '#hours' put: self hours.\x0a\x09variables at: '#minutes' put: self minutes.\x0a\x09variables at: '#seconds' put: self seconds.\x0a\x09variables at: '#milliseconds' put: self milliseconds.\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
-referencedClasses: ["Dictionary"],
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Array streamContents: [ :stream |\x0a\x09\x09stream\x0a\x09\x09\x09nextPut: '#self' -> self;\x0a\x09\x09\x09nextPut: '#year' -> self year;\x0a\x09\x09\x09nextPut: '#month' -> self month;\x0a\x09\x09\x09nextPut: '#day' -> self day;\x0a\x09\x09\x09nextPut: '#hours' -> self hours;\x0a\x09\x09\x09nextPut: '#minutes' -> self minutes;\x0a\x09\x09\x09nextPut: '#seconds' -> self seconds;\x0a\x09\x09\x09nextPut: '#milliseconds' -> self milliseconds ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
+referencedClasses: ["Array"],
|
|
|
//>>excludeEnd("ide");
|
|
|
pragmas: [],
|
|
|
-messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"]
|
|
|
+messageSends: ["streamContents:", "nextPut:", "->", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"]
|
|
|
}, function ($methodClass){ return function (anInspector){
|
|
|
var self=this,$self=this;
|
|
|
var variables;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-variables=$recv($globals.Dictionary)._new();
|
|
|
-$recv(variables)._at_put_("#self",self);
|
|
|
+variables=$recv($globals.Array)._streamContents_((function(stream){
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+return $core.withContext(function($ctx2) {
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+[$recv(stream)._nextPut_(["#self".__minus_gt(self)
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+,$ctx2.sendIdx["->"]=1
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=1;
|
|
|
+,$ctx2.sendIdx["nextPut:"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#year",$self._year());
|
|
|
+][0];
|
|
|
+[$recv(stream)._nextPut_(["#year".__minus_gt($self._year())
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=2;
|
|
|
+,$ctx2.sendIdx["->"]=2
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#month",$self._month());
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=3;
|
|
|
+,$ctx2.sendIdx["nextPut:"]=2
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#day",$self._day());
|
|
|
+][0];
|
|
|
+[$recv(stream)._nextPut_(["#month".__minus_gt($self._month())
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=4;
|
|
|
+,$ctx2.sendIdx["->"]=3
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#hours",$self._hours());
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=5;
|
|
|
+,$ctx2.sendIdx["nextPut:"]=3
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#minutes",$self._minutes());
|
|
|
+][0];
|
|
|
+[$recv(stream)._nextPut_(["#day".__minus_gt($self._day())
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=6;
|
|
|
+,$ctx2.sendIdx["->"]=4
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#seconds",$self._seconds());
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=7;
|
|
|
+,$ctx2.sendIdx["nextPut:"]=4
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#milliseconds",$self._milliseconds());
|
|
|
+][0];
|
|
|
+[$recv(stream)._nextPut_(["#hours".__minus_gt($self._hours())
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+,$ctx2.sendIdx["->"]=5
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+][0])
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+,$ctx2.sendIdx["nextPut:"]=5
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+][0];
|
|
|
+[$recv(stream)._nextPut_(["#minutes".__minus_gt($self._minutes())
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+,$ctx2.sendIdx["->"]=6
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+][0])
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+,$ctx2.sendIdx["nextPut:"]=6
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+][0];
|
|
|
+[$recv(stream)._nextPut_(["#seconds".__minus_gt($self._seconds())
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+,$ctx2.sendIdx["->"]=7
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+][0])
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+,$ctx2.sendIdx["nextPut:"]=7
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+][0];
|
|
|
+return $recv(stream)._nextPut_("#milliseconds".__minus_gt($self._milliseconds()));
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1,1)});
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+}));
|
|
|
$recv(anInspector)._setLabel_($self._printString());
|
|
|
$recv(anInspector)._setVariables_(variables);
|
|
|
return self;
|
|
@@ -2099,21 +2151,28 @@ selector: "inspectOn:",
|
|
|
protocol: "*Platform-Services",
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["anInspector"],
|
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self jsObject.\x0a\x09anInspector setLabel: self printString.\x0a\x09JSObjectProxy addObjectVariablesTo: variables ofProxy: self.\x0a\x09anInspector setVariables: variables",
|
|
|
-referencedClasses: ["Dictionary", "JSObjectProxy"],
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Array streamContents: [ :stream |\x0a\x09\x09stream\x0a\x09\x09\x09nextPut: '#self' -> self jsObject;\x0a\x09\x09\x09nextPutAll: (JSObjectProxy associationsOfProxy: self) ].\x0a\x09anInspector setLabel: self printString.\x0a\x09anInspector setVariables: variables",
|
|
|
+referencedClasses: ["Array", "JSObjectProxy"],
|
|
|
//>>excludeEnd("ide");
|
|
|
pragmas: [],
|
|
|
-messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "addObjectVariablesTo:ofProxy:", "setVariables:"]
|
|
|
+messageSends: ["streamContents:", "nextPut:", "->", "jsObject", "nextPutAll:", "associationsOfProxy:", "setLabel:", "printString", "setVariables:"]
|
|
|
}, function ($methodClass){ return function (anInspector){
|
|
|
var self=this,$self=this;
|
|
|
var variables;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-variables=$recv($globals.Dictionary)._new();
|
|
|
-$recv(variables)._at_put_("#self",$self._jsObject());
|
|
|
+variables=$recv($globals.Array)._streamContents_((function(stream){
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+return $core.withContext(function($ctx2) {
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+$recv(stream)._nextPut_("#self".__minus_gt($self._jsObject()));
|
|
|
+return $recv(stream)._nextPutAll_($recv($globals.JSObjectProxy)._associationsOfProxy_(self));
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1,1)});
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+}));
|
|
|
$recv(anInspector)._setLabel_($self._printString());
|
|
|
-$recv($globals.JSObjectProxy)._addObjectVariablesTo_ofProxy_(variables,self);
|
|
|
$recv(anInspector)._setVariables_(variables);
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -2128,29 +2187,41 @@ selector: "inspectOn:",
|
|
|
protocol: "*Platform-Services",
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["anInspector"],
|
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09self class allInstanceVariableNames do: [ :each |\x0a\x09\x09variables at: each put: (self instVarAt: each) ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
-referencedClasses: ["Dictionary"],
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Array streamContents: [ :stream |\x0a\x09\x09stream nextPut: '#self' -> self.\x0a\x09\x09self class allInstanceVariableNames do: [ :each |\x0a\x09\x09\x09stream nextPut: each -> (self instVarNamed: each) ] ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
+referencedClasses: ["Array"],
|
|
|
//>>excludeEnd("ide");
|
|
|
pragmas: [],
|
|
|
-messageSends: ["new", "at:put:", "do:", "allInstanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"]
|
|
|
+messageSends: ["streamContents:", "nextPut:", "->", "do:", "allInstanceVariableNames", "class", "instVarNamed:", "setLabel:", "printString", "setVariables:"]
|
|
|
}, function ($methodClass){ return function (anInspector){
|
|
|
var self=this,$self=this;
|
|
|
var variables;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-variables=$recv($globals.Dictionary)._new();
|
|
|
-$recv(variables)._at_put_("#self",self);
|
|
|
+variables=$recv($globals.Array)._streamContents_((function(stream){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=1;
|
|
|
+return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv($recv($self._class())._allInstanceVariableNames())._do_((function(each){
|
|
|
+[$recv(stream)._nextPut_(["#self".__minus_gt(self)
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-return $core.withContext(function($ctx2) {
|
|
|
+,$ctx2.sendIdx["->"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return $recv(variables)._at_put_(each,$self._instVarAt_(each));
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
|
|
|
+,$ctx2.sendIdx["nextPut:"]=1
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+][0];
|
|
|
+return $recv($recv($self._class())._allInstanceVariableNames())._do_((function(each){
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+return $core.withContext(function($ctx3) {
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+return $recv(stream)._nextPut_($recv(each).__minus_gt($self._instVarNamed_(each)));
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2,2)});
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+}));
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}));
|
|
|
$recv(anInspector)._setLabel_($self._printString());
|
|
@@ -2192,42 +2263,51 @@ selector: "inspectOn:",
|
|
|
protocol: "*Platform-Services",
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["anInspector"],
|
|
|
-source: "inspectOn: anInspector\x0a\x09| variables i |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09i := 1.\x0a\x09self do: [ :each |\x0a\x09\x09variables at: i put: each.\x0a\x09\x09i := i + 1 ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
-referencedClasses: ["Dictionary"],
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Array streamContents: [ :stream |\x0a\x09\x09stream nextPut: '#self' -> self.\x0a\x09\x09self withIndexDo: [ :each :i |\x0a\x09\x09\x09stream nextPut: i -> each ] ].\x0a\x09anInspector\x0a\x09\x09setLabel: self shortenedPrintString;\x0a\x09\x09setVariables: variables",
|
|
|
+referencedClasses: ["Array"],
|
|
|
//>>excludeEnd("ide");
|
|
|
pragmas: [],
|
|
|
-messageSends: ["new", "at:put:", "do:", "+", "setLabel:", "printString", "setVariables:"]
|
|
|
+messageSends: ["streamContents:", "nextPut:", "->", "withIndexDo:", "setLabel:", "shortenedPrintString", "setVariables:"]
|
|
|
}, function ($methodClass){ return function (anInspector){
|
|
|
var self=this,$self=this;
|
|
|
-var variables,i;
|
|
|
+var variables;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-variables=$recv($globals.Dictionary)._new();
|
|
|
-$recv(variables)._at_put_("#self",self);
|
|
|
+variables=$recv($globals.Array)._streamContents_((function(stream){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=1;
|
|
|
+return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-i=(1);
|
|
|
-$self._do_((function(each){
|
|
|
+[$recv(stream)._nextPut_(["#self".__minus_gt(self)
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-return $core.withContext(function($ctx2) {
|
|
|
+,$ctx2.sendIdx["->"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_(i,each);
|
|
|
-i=$recv(i).__plus((1));
|
|
|
-return i;
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
|
|
|
+,$ctx2.sendIdx["nextPut:"]=1
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+][0];
|
|
|
+return $self._withIndexDo_((function(each,i){
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+return $core.withContext(function($ctx3) {
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+return $recv(stream)._nextPut_($recv(i).__minus_gt(each));
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx3) {$ctx3.fillBlock({each:each,i:i},$ctx2,2)});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}));
|
|
|
-$recv(anInspector)._setLabel_($self._printString());
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1,1)});
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+}));
|
|
|
+$recv(anInspector)._setLabel_($self._shortenedPrintString());
|
|
|
$recv(anInspector)._setVariables_(variables);
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables,i:i})});
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables})});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}; }),
|
|
|
-$globals.Set);
|
|
|
+$globals.SequenceableCollection);
|
|
|
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
@@ -2235,97 +2315,77 @@ selector: "inspectOn:",
|
|
|
protocol: "*Platform-Services",
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["anInspector"],
|
|
|
-source: "inspectOn: anInspector\x0a\x09| label |\x0a\x09super inspectOn: anInspector.\x0a\x09self printString size > 30\x0a\x09\x09ifTrue: [ label := (self printString copyFrom: 1 to: 30), '...''' ]\x0a\x09\x09ifFalse: [ label := self printString ].\x0a\x09anInspector setLabel: label",
|
|
|
-referencedClasses: [],
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Array streamContents: [ :stream |\x0a\x09\x09stream\x0a\x09\x09\x09nextPut: '#self' -> self;\x0a\x09\x09\x09nextPut: '#home' -> self home;\x0a\x09\x09\x09nextPut: '#receiver' -> self receiver;\x0a\x09\x09\x09nextPut: '#selector' -> self selector;\x0a\x09\x09\x09nextPut: '#locals' -> self locals.\x0a\x09self class instanceVariableNames do: [ :each |\x0a\x09\x09stream nextPut: each -> (self instVarNamed: each) ] ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
+referencedClasses: ["Array"],
|
|
|
//>>excludeEnd("ide");
|
|
|
pragmas: [],
|
|
|
-messageSends: ["inspectOn:", "ifTrue:ifFalse:", ">", "size", "printString", ",", "copyFrom:to:", "setLabel:"]
|
|
|
+messageSends: ["streamContents:", "nextPut:", "->", "home", "receiver", "selector", "locals", "do:", "instanceVariableNames", "class", "instVarNamed:", "setLabel:", "printString", "setVariables:"]
|
|
|
}, function ($methodClass){ return function (anInspector){
|
|
|
var self=this,$self=this;
|
|
|
-var label;
|
|
|
+var variables;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $3,$2,$1,$5,$4;
|
|
|
-(
|
|
|
+variables=$recv($globals.Array)._streamContents_((function(stream){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.supercall = true,
|
|
|
+return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-($methodClass.superclass||$boot.nilAsClass).fn.prototype._inspectOn_.call($self,anInspector));
|
|
|
+[$recv(stream)._nextPut_(["#self".__minus_gt(self)
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.supercall = false;
|
|
|
-//>>excludeEnd("ctx");;
|
|
|
-$3=$self._printString();
|
|
|
+,$ctx2.sendIdx["->"]=1
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["printString"]=1;
|
|
|
+,$ctx2.sendIdx["nextPut:"]=1
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$2=$recv($3)._size();
|
|
|
-$1=$recv($2).__gt((30));
|
|
|
-if($core.assert($1)){
|
|
|
-$5=$self._printString();
|
|
|
+][0];
|
|
|
+[$recv(stream)._nextPut_(["#home".__minus_gt($self._home())
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["printString"]=2;
|
|
|
+,$ctx2.sendIdx["->"]=2
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$4=$recv($5)._copyFrom_to_((1),(30));
|
|
|
-label=$recv($4).__comma("...'");
|
|
|
-label;
|
|
|
-} else {
|
|
|
-label=$self._printString();
|
|
|
-label;
|
|
|
-}
|
|
|
-$recv(anInspector)._setLabel_(label);
|
|
|
-return self;
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,label:label})});
|
|
|
+,$ctx2.sendIdx["nextPut:"]=2
|
|
|
//>>excludeEnd("ctx");
|
|
|
-}; }),
|
|
|
-$globals.String);
|
|
|
-
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "inspectOn:",
|
|
|
-protocol: "*Platform-Services",
|
|
|
-//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
-args: ["anInspector"],
|
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#home' put: self home.\x0a\x09variables at: '#receiver' put: self receiver.\x0a\x09variables at: '#selector' put: self selector.\x0a\x09variables at: '#locals' put: self locals.\x0a\x09self class instanceVariableNames do: [ :each |\x0a\x09\x09variables at: each put: (self instVarAt: each) ].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
-referencedClasses: ["Dictionary"],
|
|
|
-//>>excludeEnd("ide");
|
|
|
-pragmas: [],
|
|
|
-messageSends: ["new", "at:put:", "home", "receiver", "selector", "locals", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"]
|
|
|
-}, function ($methodClass){ return function (anInspector){
|
|
|
-var self=this,$self=this;
|
|
|
-var variables;
|
|
|
+][0];
|
|
|
+[$recv(stream)._nextPut_(["#receiver".__minus_gt($self._receiver())
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
+,$ctx2.sendIdx["->"]=3
|
|
|
//>>excludeEnd("ctx");
|
|
|
-variables=$recv($globals.Dictionary)._new();
|
|
|
-$recv(variables)._at_put_("#self",self);
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=1;
|
|
|
+,$ctx2.sendIdx["nextPut:"]=3
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#home",$self._home());
|
|
|
+][0];
|
|
|
+[$recv(stream)._nextPut_(["#selector".__minus_gt($self._selector())
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=2;
|
|
|
+,$ctx2.sendIdx["->"]=4
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#receiver",$self._receiver());
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=3;
|
|
|
+,$ctx2.sendIdx["nextPut:"]=4
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#selector",$self._selector());
|
|
|
+][0];
|
|
|
+[$recv(stream)._nextPut_(["#locals".__minus_gt($self._locals())
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=4;
|
|
|
+,$ctx2.sendIdx["->"]=5
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(variables)._at_put_("#locals",$self._locals());
|
|
|
+][0])
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["at:put:"]=5;
|
|
|
+,$ctx2.sendIdx["nextPut:"]=5
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv($recv($self._class())._instanceVariableNames())._do_((function(each){
|
|
|
+][0];
|
|
|
+return $recv($recv($self._class())._instanceVariableNames())._do_((function(each){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-return $core.withContext(function($ctx2) {
|
|
|
+return $core.withContext(function($ctx3) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return $recv(variables)._at_put_(each,$self._instVarAt_(each));
|
|
|
+return $recv(stream)._nextPut_($recv(each).__minus_gt($self._instVarNamed_(each)));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
|
|
|
+}, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2,2)});
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+}));
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1,1)});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}));
|
|
|
$recv(anInspector)._setLabel_($self._printString());
|