Prechádzať zdrojové kódy

nextPutJSObject: in Kernel-Infrastructure

Herbert Vojčík 7 rokov pred
rodič
commit
ae3c49244d

+ 0 - 24
src/Kernel-Collections.js

@@ -8985,30 +8985,6 @@ messageSends: ["do:", "nextPut:"]
 }),
 }),
 $globals.ProtoStream);
 $globals.ProtoStream);
 
 
-$core.addMethod(
-$core.method({
-selector: "nextPutJSObject:",
-protocol: "writing",
-fn: function (aJSObject){
-var self=this;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-return $core.withContext(function($ctx1) {
-//>>excludeEnd("ctx");
-self._nextPut_(aJSObject);
-return self;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"nextPutJSObject:",{aJSObject:aJSObject},$globals.ProtoStream)});
-//>>excludeEnd("ctx");
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: ["aJSObject"],
-source: "nextPutJSObject: aJSObject\x0a\x09self nextPut: aJSObject",
-referencedClasses: [],
-//>>excludeEnd("ide");
-messageSends: ["nextPut:"]
-}),
-$globals.ProtoStream);
-
 $core.addMethod(
 $core.addMethod(
 $core.method({
 $core.method({
 selector: "nextPutString:",
 selector: "nextPutString:",

+ 0 - 4
src/Kernel-Collections.st

@@ -2181,10 +2181,6 @@ nextPutAll: aCollection
 		self nextPut: each ]
 		self nextPut: each ]
 !
 !
 
 
-nextPutJSObject: aJSObject
-	self nextPut: aJSObject
-!
-
 nextPutString: aString
 nextPutString: aString
 	self nextPut: aString
 	self nextPut: aString
 !
 !

+ 24 - 0
src/Kernel-Infrastructure.js

@@ -3494,6 +3494,30 @@ messageSends: ["shouldNotImplement"]
 }),
 }),
 $globals.SmalltalkImage.klass);
 $globals.SmalltalkImage.klass);
 
 
+$core.addMethod(
+$core.method({
+selector: "nextPutJSObject:",
+protocol: "*Kernel-Infrastructure",
+fn: function (aJSObject){
+var self=this;
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
+return $core.withContext(function($ctx1) {
+//>>excludeEnd("ctx");
+self._nextPut_(aJSObject);
+return self;
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
+}, function($ctx1) {$ctx1.fill(self,"nextPutJSObject:",{aJSObject:aJSObject},$globals.ProtoStream)});
+//>>excludeEnd("ctx");
+},
+//>>excludeStart("ide", pragmas.excludeIdeData);
+args: ["aJSObject"],
+source: "nextPutJSObject: aJSObject\x0a\x09self nextPut: aJSObject",
+referencedClasses: [],
+//>>excludeEnd("ide");
+messageSends: ["nextPut:"]
+}),
+$globals.ProtoStream);
+
 $core.addMethod(
 $core.addMethod(
 $core.method({
 $core.method({
 selector: "asJavaScriptPropertyName",
 selector: "asJavaScriptPropertyName",

+ 6 - 0
src/Kernel-Infrastructure.st

@@ -944,6 +944,12 @@ new
 	self shouldNotImplement
 	self shouldNotImplement
 ! !
 ! !
 
 
+!ProtoStream methodsFor: '*Kernel-Infrastructure'!
+
+nextPutJSObject: aJSObject
+	self nextPut: aJSObject
+! !
+
 !String methodsFor: '*Kernel-Infrastructure'!
 !String methodsFor: '*Kernel-Infrastructure'!
 
 
 asJavaScriptPropertyName
 asJavaScriptPropertyName