class: VSEFileSourceWriter
authorClaus Gittinger <cg@exept.de>
Wed, 28 Jan 2015 19:08:38 +0100
changeset 3730 d3151b9f69a0
parent 3729 9ae2b648ebc8
child 3731 3c1c1ddf02e2
class: VSEFileSourceWriter changed: #rewrittenClassNameOf: category of: #rewrittenClassNameOf:
VSEFileSourceWriter.st
--- a/VSEFileSourceWriter.st	Wed Jan 28 19:08:20 2015 +0100
+++ b/VSEFileSourceWriter.st	Wed Jan 28 19:08:38 2015 +0100
@@ -91,19 +91,6 @@
     ^ VSESourceRewriter
 ! !
 
-!VSEFileSourceWriter methodsFor:'source writing'!
-
-rewrittenClassNameOf:aClass
-    |nm idx|
-
-    nm := aClass name.
-    ((nm includesString:'::') or:[aClass nameSpace notNil]) ifTrue:[
-        idx := nm indexOfSubCollection:'::'.
-        ^ (nm copyTo:idx-1) , VSESourceRewriter nameSpaceSeparatorReplacement , (nm copyFrom:idx+2)
-    ].
-    ^ nm    
-! !
-
 !VSEFileSourceWriter methodsFor:'utilities'!
 
 ensureNoUnicodeInClass:aClass
@@ -142,6 +129,17 @@
         ]
     ].
     ^ methodsToFileOut
+!
+
+rewrittenClassNameOf:aClass
+    |nm idx|
+
+    nm := aClass name.
+    (nm includesString:'::') ifTrue:[
+        idx := nm indexOfSubCollection:'::'.
+        ^ (nm copyTo:idx-1) , VSESourceRewriter nameSpaceSeparatorReplacement , (nm copyFrom:idx+2)
+    ].
+    ^ nm    
 ! !
 
 !VSEFileSourceWriter::VSESourceRewriter class methodsFor:'defaults'!
@@ -392,10 +390,10 @@
 !VSEFileSourceWriter class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic3/VSEFileSourceWriter.st,v 1.4 2015-01-28 17:01:15 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic3/VSEFileSourceWriter.st,v 1.5 2015-01-28 18:08:38 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic3/VSEFileSourceWriter.st,v 1.4 2015-01-28 17:01:15 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic3/VSEFileSourceWriter.st,v 1.5 2015-01-28 18:08:38 cg Exp $'
 ! !