Quellcode durchsuchen

CharacterArray => String

Herby Vojčík vor 5 Jahren
Ursprung
Commit
0c412fa793
2 geänderte Dateien mit 27 neuen und 29 gelöschten Zeilen
  1. 23 23
      src/Silk.js
  2. 4 6
      src/Silk.st

+ 23 - 23
src/Silk.js

@@ -223,29 +223,6 @@ messageSends: ["value:"]
 }),
 $globals.BlockClosure);
 
-$core.addMethod(
-$core.method({
-selector: "asSilk",
-protocol: "*Silk",
-fn: function (){
-var self=this,$self=this;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-return $core.withContext(function($ctx1) {
-//>>excludeEnd("ctx");
-return $recv($globals.Silk)._at_($self._asString());
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"asSilk",{},$globals.CharacterArray)});
-//>>excludeEnd("ctx");
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: [],
-source: "asSilk\x0a\x09^ Silk at: self asString",
-referencedClasses: ["Silk"],
-//>>excludeEnd("ide");
-messageSends: ["at:", "asString"]
-}),
-$globals.CharacterArray);
-
 $core.addMethod(
 $core.method({
 selector: "inSilk",
@@ -334,6 +311,29 @@ messageSends: []
 }),
 $globals.Object);
 
+$core.addMethod(
+$core.method({
+selector: "asSilk",
+protocol: "*Silk",
+fn: function (){
+var self=this,$self=this;
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
+return $core.withContext(function($ctx1) {
+//>>excludeEnd("ctx");
+return $recv($globals.Silk)._at_($self._asString());
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
+}, function($ctx1) {$ctx1.fill(self,"asSilk",{},$globals.CharacterArray)});
+//>>excludeEnd("ctx");
+},
+//>>excludeStart("ide", pragmas.excludeIdeData);
+args: [],
+source: "asSilk\x0a\x09^ Silk at: self asString",
+referencedClasses: ["Silk"],
+//>>excludeEnd("ide");
+messageSends: ["at:", "asString"]
+}),
+$globals.String);
+
 $core.addMethod(
 $core.method({
 selector: "attrPut:on:",

+ 4 - 6
src/Silk.st

@@ -111,12 +111,6 @@ renderOnSilk: aSilk
 	self value: aSilk
 ! !
 
-!CharacterArray methodsFor: '*Silk'!
-
-asSilk
-	^ Silk at: self asString
-! !
-
 !JSObjectProxy methodsFor: '*Silk'!
 
 inSilk
@@ -139,6 +133,10 @@ renderOnSilk: aSilk
 
 !String methodsFor: '*Silk'!
 
+asSilk
+	^ Silk at: self asString
+!
+
 attrPut: anObject on: aSilk
 	aSilk attrAt: self put: anObject
 ! !