author | Claus Gittinger <cg@exept.de> |
Tue, 27 Jan 2015 16:17:03 +0100 | |
changeset 3713 | 714678c218e8 |
parent 3706 | 25c5f07034a2 |
child 3715 | addab0fe940d |
permissions | -rw-r--r-- |
3698 | 1 |
" |
3706
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
2 |
COPYRIGHT (c) 2015 by eXept Software AG |
3698 | 3 |
All Rights Reserved |
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
"{ Package: 'stx:libbasic3' }" |
|
13 |
||
14 |
"{ NameSpace: Smalltalk }" |
|
15 |
||
16 |
SmalltalkChunkFileSourceWriter subclass:#VSEChunkFileSourceWriter |
|
17 |
instanceVariableNames:'' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
20 |
category:'Kernel-Classes-Support' |
|
21 |
! |
|
22 |
||
23 |
Object subclass:#VSESourceRewriter |
|
24 |
instanceVariableNames:'source method methodClass' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
privateIn:VSEChunkFileSourceWriter |
|
28 |
! |
|
29 |
||
30 |
!VSEChunkFileSourceWriter class methodsFor:'documentation'! |
|
31 |
||
32 |
copyright |
|
33 |
" |
|
3706
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
34 |
COPYRIGHT (c) 2015 by eXept Software AG |
3698 | 35 |
All Rights Reserved |
36 |
||
37 |
This software is furnished under a license and may be used |
|
38 |
only in accordance with the terms of that license and with the |
|
39 |
inclusion of the above copyright notice. This software may not |
|
40 |
be provided or otherwise made available to, or used by, any |
|
41 |
other person. No title to or ownership of the software is |
|
42 |
hereby transferred. |
|
43 |
" |
|
44 |
! |
|
45 |
||
46 |
documentation |
|
47 |
" |
|
48 |
fileout in a format which can be read by visualAge. |
|
49 |
For transporting software. |
|
50 |
" |
|
51 |
! |
|
52 |
||
53 |
examples |
|
54 |
" |
|
55 |
[exBegin] |
|
56 |
|s| |
|
57 |
||
58 |
s := 'test.st' asFilename writeStream. |
|
59 |
[ |
|
3706
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
60 |
VSEChunkFileSourceWriter new |
3698 | 61 |
fileOut:OrderedCollection on:s |
62 |
] ensure:[ |
|
63 |
s close |
|
64 |
] |
|
65 |
[exEnd] |
|
66 |
||
67 |
[exBegin] |
|
68 |
|s| |
|
69 |
||
70 |
s := '' writeStream. |
|
71 |
[ |
|
3706
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
72 |
VSEChunkFileSourceWriter new |
3698 | 73 |
fileOut:OrderedCollection on:s |
74 |
] ensure:[ |
|
75 |
s close |
|
76 |
]. |
|
77 |
s contents |
|
78 |
[exEnd] |
|
79 |
" |
|
80 |
! ! |
|
81 |
||
3706
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
82 |
!VSEChunkFileSourceWriter class methodsFor:'class access'! |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
83 |
|
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
84 |
vseSourceRewriter |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
85 |
^ VSESourceRewriter |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
86 |
! ! |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
87 |
|
3713 | 88 |
!VSEChunkFileSourceWriter class methodsFor:'utilities'! |
89 |
||
90 |
fileOutPackage:packageID on:aStream |
|
91 |
|classesToFileout| |
|
92 |
||
93 |
aStream lineEndCRLF. |
|
94 |
||
95 |
classesToFileout := Smalltalk allClassesInPackage:packageID. |
|
96 |
classesToFileout topologicalSort:[:a :b | b isSubclassOf:a]. |
|
97 |
||
98 |
AbstractSourceFileWriter methodSourceRewriteQuery handle:[:rewriteQuery | |
|
99 |
|method source| |
|
100 |
||
101 |
method := rewriteQuery method. |
|
102 |
source := rewriteQuery source. |
|
103 |
source := VSEChunkFileSourceWriter vseSourceRewriter rewriteMethod:method. |
|
104 |
rewriteQuery proceedWith:source. |
|
105 |
] do:[ |
|
106 |
classesToFileout do:[:eachClass | |
|
107 |
eachClass fileOutOn:aStream. |
|
108 |
]. |
|
109 |
||
110 |
"/ fileout extensions |
|
111 |
Smalltalk allClassesDo:[:eachClass | |
|
112 |
(classesToFileout includes:eachClass) ifFalse:[ |
|
113 |
eachClass instAndClassSelectorsAndMethodsDo:[:sel :mthd | |
|
114 |
|mPckg| |
|
115 |
||
116 |
mPckg := mthd package. |
|
117 |
(mPckg = packageID and:[mPckg ~= eachClass package]) ifTrue:[ |
|
118 |
eachClass |
|
119 |
fileOutCategory:mthd category |
|
120 |
methodFilter:[:m | m == mthd] |
|
121 |
on:aStream. |
|
122 |
aStream cr. |
|
123 |
] |
|
124 |
] |
|
125 |
]. |
|
126 |
]. |
|
127 |
]. |
|
128 |
! ! |
|
129 |
||
3698 | 130 |
!VSEChunkFileSourceWriter methodsFor:'source writing'! |
131 |
||
132 |
fileOutCategory:aCategory of:aClass except:skippedMethods only:savedMethods methodFilter:methodFilter on:aStream |
|
133 |
"file out all methods belonging to aCategory, aString onto aStream. |
|
134 |
If skippedMethods is nonNil, those are not saved. |
|
135 |
If savedMethods is nonNil, only those are saved. |
|
136 |
If both are nil, all are saved. See version-method handling in |
|
137 |
fileOut for what this is needed." |
|
138 |
||
139 |
|sortedSelectors first prevPrivacy privacy interestingMethods| |
|
140 |
||
141 |
interestingMethods := OrderedCollection new. |
|
142 |
aClass methodsDo:[:aMethod | |
|
143 |
|wanted| |
|
144 |
||
145 |
(methodsAlreadySaved includes:aMethod) ifFalse:[ |
|
146 |
(aCategory = aMethod category) ifTrue:[ |
|
147 |
(methodFilter isNil or:[methodFilter value:aMethod]) ifTrue:[ |
|
148 |
skippedMethods notNil ifTrue:[ |
|
149 |
wanted := (skippedMethods includesIdentical:aMethod) not |
|
150 |
] ifFalse:[ |
|
151 |
wanted := savedMethods isNil or:[ savedMethods includesIdentical:aMethod ]. |
|
152 |
]. |
|
153 |
wanted ifTrue:[ |
|
154 |
aMethod selector isSymbol ifTrue:[ |
|
155 |
interestingMethods add:aMethod |
|
156 |
] ifFalse:[ |
|
157 |
Transcript showCR:'skipping non-symbol method ', aMethod selector printString. |
|
158 |
]. |
|
159 |
]. |
|
160 |
] |
|
161 |
] |
|
162 |
] |
|
163 |
]. |
|
164 |
interestingMethods notEmpty ifTrue:[ |
|
165 |
first := true. |
|
166 |
prevPrivacy := nil. |
|
167 |
||
168 |
"/ |
|
169 |
"/ sort by selector |
|
170 |
"/ |
|
171 |
sortedSelectors := interestingMethods collect:[:m | aClass selectorAtMethod:m]. |
|
172 |
sortedSelectors sortWith:interestingMethods. |
|
173 |
||
174 |
interestingMethods do:[:eachMethod | |
|
175 |
privacy := eachMethod privacy. |
|
176 |
||
177 |
first ifFalse:[ |
|
178 |
privacy ~~ prevPrivacy ifTrue:[ |
|
179 |
first := true. |
|
180 |
aStream space. |
|
181 |
aStream nextPutChunkSeparator. |
|
182 |
]. |
|
183 |
aStream cr; cr |
|
184 |
]. |
|
185 |
||
186 |
first ifTrue:[ |
|
187 |
aStream nextPutChunkSeparator. |
|
188 |
aClass printClassNameOn:aStream. |
|
189 |
privacy ~~ #public ifTrue:[ |
|
190 |
aStream nextPutAll:' privateMethods'. |
|
191 |
] ifFalse:[ |
|
192 |
aStream nextPutAll:' publicMethods'. |
|
193 |
]. |
|
194 |
aStream nextPutChunkSeparator; cr; cr. |
|
195 |
first := false. |
|
196 |
]. |
|
197 |
self fileOutMethod:eachMethod on:aStream. |
|
198 |
methodsAlreadySaved add:eachMethod. |
|
199 |
||
200 |
prevPrivacy := privacy. |
|
201 |
]. |
|
202 |
aStream space. |
|
203 |
aStream nextPutChunkSeparator. |
|
204 |
aStream cr |
|
205 |
]. |
|
206 |
aStream cr |
|
207 |
! |
|
208 |
||
209 |
fileOutDefinitionOf:aClass on:aStream |
|
210 |
"append an expression on aStream, which defines myself." |
|
211 |
||
212 |
|s owner ns superclass nm| |
|
213 |
||
214 |
owner := aClass owningClass. |
|
215 |
ns := aClass topNameSpace. |
|
216 |
||
217 |
"take care of nil-superclass" |
|
218 |
superclass := aClass superclass. |
|
219 |
superclass isNil ifTrue:[ |
|
220 |
s := 'nil' |
|
221 |
] ifFalse:[ |
|
222 |
s := superclass nameWithNameSpacePrefix. |
|
223 |
]. |
|
224 |
||
225 |
aStream nextPutAll:s. "/ superclass |
|
226 |
aStream space. |
|
227 |
aClass basicFileOutInstvarTypeKeywordOn:aStream. |
|
228 |
||
229 |
nm := aClass nameWithoutPrefix. |
|
230 |
aStream nextPut:$#. |
|
231 |
aStream nextPutAll:nm. |
|
232 |
||
233 |
aStream crtab. |
|
234 |
aStream nextPutAll:'instanceVariableNames:'''. |
|
235 |
aClass printInstVarNamesOn:aStream indent:16. |
|
236 |
aStream nextPutAll:''''. |
|
237 |
||
238 |
aStream crtab. |
|
239 |
aStream nextPutAll:'classVariableNames:'''. |
|
240 |
aClass printClassVarNamesOn:aStream indent:16. |
|
241 |
aStream nextPutAll:''''. |
|
242 |
||
243 |
aStream crtab. |
|
244 |
aStream nextPutAll:'poolDictionaries:'''. |
|
245 |
aClass printSharedPoolNamesOn:aStream indent:16. |
|
246 |
aStream nextPutAll:''''. |
|
247 |
||
248 |
aStream cr. |
|
249 |
! ! |
|
250 |
||
251 |
!VSEChunkFileSourceWriter::VSESourceRewriter class methodsFor:'translation'! |
|
252 |
||
253 |
rewriteMethod:method |
|
254 |
^ self new rewriteMethod:method |
|
255 |
! ! |
|
256 |
||
257 |
!VSEChunkFileSourceWriter::VSESourceRewriter methodsFor:'accessing'! |
|
258 |
||
259 |
method |
|
260 |
^ method |
|
261 |
! |
|
262 |
||
263 |
method:something |
|
264 |
method := something. |
|
265 |
! |
|
266 |
||
267 |
methodClass |
|
268 |
^ methodClass |
|
269 |
! |
|
270 |
||
271 |
methodClass:something |
|
272 |
methodClass := something. |
|
273 |
! |
|
274 |
||
275 |
source |
|
276 |
^ source |
|
277 |
! |
|
278 |
||
279 |
source:something |
|
280 |
source := something. |
|
281 |
! ! |
|
282 |
||
283 |
!VSEChunkFileSourceWriter::VSESourceRewriter methodsFor:'translation'! |
|
284 |
||
285 |
doRewrite |
|
3706
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
286 |
self rewriteEOLComments. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
287 |
self rewriteGlobalsWithNamespace. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
288 |
^ source. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
289 |
! |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
290 |
|
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
291 |
rewriteEOLComments |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
292 |
|tree parser eolComments| |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
293 |
|
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
294 |
parser := Parser new. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
295 |
parser saveComments:true. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
296 |
parser parseMethod:source in:methodClass ignoreErrors:true ignoreWarnings:true. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
297 |
|
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
298 |
tree := parser tree. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
299 |
eolComments := parser comments select:[:each | each isEndOfLineComment]. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
300 |
"/ start with the last (so I don't have to update the positions) |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
301 |
eolComments sort:[:a :b | a position < b position]. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
302 |
eolComments reverseDo:[:each | |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
303 |
source := (source copyTo:(each endPosition)),'"',(source copyFrom:(each endPosition + 1)) |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
304 |
]. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
305 |
! |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
306 |
|
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
307 |
rewriteGlobalsWithNamespace |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
308 |
|tree parser namesToRewrite| |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
309 |
|
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
310 |
namesToRewrite := OrderedCollection new. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
311 |
|
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
312 |
parser := Parser new. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
313 |
parser saveComments:true. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
314 |
parser parseMethod:source in:methodClass ignoreErrors:true ignoreWarnings:true. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
315 |
parser tree isNil ifTrue:[ ^ self ]. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
316 |
|
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
317 |
parser tree variableNodesDo:[:each | |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
318 |
|nameInSource| |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
319 |
|
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
320 |
each isGlobalVariable ifTrue:[ |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
321 |
(each name includes:$:) ifTrue:[ |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
322 |
nameInSource := source copyFrom:each startPosition to:each endPosition. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
323 |
(nameInSource includes:$:) ifTrue:[ |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
324 |
namesToRewrite add:each. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
325 |
]. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
326 |
]. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
327 |
]. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
328 |
]. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
329 |
|
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
330 |
"/ start with the last (so I don't have to update the positions) |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
331 |
namesToRewrite sort:[:a :b | a position < b position]. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
332 |
namesToRewrite reverseDo:[:each | |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
333 |
|idx nameInSource ns nm| |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
334 |
|
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
335 |
nameInSource := source copyFrom:each startPosition to:each endPosition. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
336 |
idx := nameInSource indexOf:$:. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
337 |
ns := nameInSource copyTo:idx-1. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
338 |
idx := nameInSource indexOf:$: startingAt:idx+1. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
339 |
nm := nameInSource copyFrom:idx+1. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
340 |
(ns = methodClass nameSpace name) ifFalse:[ |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
341 |
Transcript show:'reference to other namespace'. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
342 |
] ifTrue:[ |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
343 |
source := (source copyTo:(each startPosition-1)),nm,(source copyFrom:(each endPosition + 1)) |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
344 |
]. |
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
345 |
]. |
3698 | 346 |
! |
347 |
||
348 |
rewriteMethod:methodArg |
|
349 |
method := methodArg. |
|
350 |
source := method source. |
|
351 |
methodClass := method mclass. |
|
352 |
||
3706
25c5f07034a2
class: VSEChunkFileSourceWriter
Claus Gittinger <cg@exept.de>
parents:
3698
diff
changeset
|
353 |
^ self doRewrite. |
3698 | 354 |
! ! |
355 |
||
356 |
!VSEChunkFileSourceWriter class methodsFor:'documentation'! |
|
357 |
||
358 |
version |
|
3713 | 359 |
^ '$Header: /cvs/stx/stx/libbasic3/VSEChunkFileSourceWriter.st,v 1.3 2015-01-27 15:17:03 cg Exp $' |
3698 | 360 |
! |
361 |
||
362 |
version_CVS |
|
3713 | 363 |
^ '$Header: /cvs/stx/stx/libbasic3/VSEChunkFileSourceWriter.st,v 1.3 2015-01-27 15:17:03 cg Exp $' |
3698 | 364 |
! ! |
365 |