#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Tue, 28 Aug 2018 11:59:43 +0200
changeset 4347 175456d3ba24
parent 4346 6604af2f1554
child 4348 e010c061d520
#REFACTORING by cg class: AbstractSourceCodeManager class changed: #compileVersionMethod:of:for:
AbstractSourceCodeManager.st
--- a/AbstractSourceCodeManager.st	Mon Aug 20 10:11:25 2018 +0200
+++ b/AbstractSourceCodeManager.st	Tue Aug 28 11:59:43 2018 +0200
@@ -1209,18 +1209,15 @@
 
 compileVersionMethod:methodName of:aClass for:newRevisionString
 
-    |cls mthd code|
+    |cls language mthd code|
 
     cls := aClass theMetaclass.
-
-    self assert: cls programmingLanguage isSmalltalk.
-
-    code :=
-methodName , '
-    ^ ''' , newRevisionString , '''
-'.
-
-    mthd := Compiler 
+    language := cls programmingLanguage.
+    "/ self assert: language isSmalltalk.
+
+    code := language methodSourceForVersionMethodCVS:newRevisionString.
+
+    mthd := language compilerClass 
                 compile:code  
                 forClass:cls
                 inCategory:#documentation
@@ -1232,6 +1229,8 @@
     mthd notNil ifTrue:[
         mthd setPackage:aClass package
     ]
+
+    "Modified: / 28-08-2018 / 11:56:45 / Claus Gittinger"
 !
 
 containerFromSourceInfo:info