class: ClassDefinitionChange
authorClaus Gittinger <cg@exept.de>
Mon, 20 Apr 2015 00:28:16 +0200
changeset 3855 ea6eae92e1ab
parent 3848 2768cbd5b7f1
child 3856 f75fb195e35a
class: ClassDefinitionChange changed: #definitionStringInNamespace: #definitionStringWithoutNamespace #superClassName changed to return nil from superclassName, if there is no superclass. (used to return string with 'nil'.
ClassDefinitionChange.st
--- a/ClassDefinitionChange.st	Thu Apr 16 11:35:34 2015 +0200
+++ b/ClassDefinitionChange.st	Mon Apr 20 00:28:16 2015 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1993 by Claus Gittinger
 	      All Rights Reserved
@@ -306,11 +308,13 @@
     "Modified: / 10-08-2012 / 11:53:54 / cg"
 !
 
-superClassName 
+superClassName
+    "returns nil, if no superclass"
+
     |nm|
 
     nm := superClassName.
-    nm isNil ifTrue:[^ 'nil'].
+    nm isNil ifTrue:[^ nil " 'nil' "].
     "/ convert VW namespace syntax
     (nm includes:$.) ifTrue:[
         ^ nm copyReplaceAll:$. withAll:'::'.
@@ -493,7 +497,7 @@
           ].
     ].
 
-    superClassNameUsed := self superClassName.
+    superClassNameUsed := (self superClassName) ? 'nil'.
     "Strip of namespace"
     nsOrNil notNil ifTrue:[
         (superClassNameUsed startsWith: nsOrNil) ifTrue:[
@@ -589,7 +593,7 @@
           ].
     ].
 
-    superClassNameUsed := self superClassName.
+    superClassNameUsed := self superClassName ? 'nil'.
     classNameUsed := self classNameWithoutNamespace.
 
     ^ String streamContents:[:stream |
@@ -897,11 +901,11 @@
 !ClassDefinitionChange class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic3/ClassDefinitionChange.st,v 1.96 2015-03-24 18:01:04 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic3/ClassDefinitionChange.st,v 1.97 2015-04-19 22:28:16 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic3/ClassDefinitionChange.st,v 1.96 2015-03-24 18:01:04 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic3/ClassDefinitionChange.st,v 1.97 2015-04-19 22:28:16 cg Exp $'
 !
 
 version_HG
@@ -910,6 +914,6 @@
 !
 
 version_SVN
-    ^ '$Id: ClassDefinitionChange.st,v 1.96 2015-03-24 18:01:04 cg Exp $'
+    ^ '$Id: ClassDefinitionChange.st,v 1.97 2015-04-19 22:28:16 cg Exp $'
 ! !