|
Class: JavaScriptSourceFileWriter
Object
|
+--AbstractSourceFileWriter
|
+--JavaScriptSourceFileWriter
- Package:
- stx:libjavascript
- Category:
- Languages-JavaScript-Framework
- Version:
- rev:
1.15
date: 2018/08/28 12:19:12
- user: cg
- file: JavaScriptSourceFileWriter.st directory: libjavascript
- module: stx stc-classLibrary: libjavascript
utilities - source code
-
methodTemplate
-
-
versionMethodTemplateForCVS
-
careful to avoid expansion by cvs here!
fileout
-
fileOut: aClass on: outStreamArg withTimeStamp: stampIt withInitialize: initIt withDefinition: withDefinition methodFilter: methodFilter encoder: encoderOrNil
-
file out my definition and all methods onto aStream.
If stampIt is true, a timeStamp comment is prepended.
If initIt is true, and the class implements a class-initialize method,
append a corresponding doIt expression for initialization.
The order by which the fileOut is done is used to put the version string at the end.
Thus, if the version string is expanded (by CVS), the characterPositions of methods should not move.
todo: code duplication with SmalltalkChunkSourceFileWriter - please refactor
-
fileOutAllDefinitionsOf: aClass on: aStream
-
append expressions on aStream, which defines myself and all of my private classes.
-
fileOutCategory: aCategory of: aClass except: skippedMethods only: savedMethods methodFilter: methodFilter on: aStream
-
file out all methods belonging to aCategory, aString onto aStream.
If skippedMethods is nonNil, those are not saved.
If savedMethods is nonNil, only those are saved.
If both are nil, all are saved. See version-method handling in
fileOut for what this is needed.
source writing
-
fileOutAllMethodsOf: aClass on: aStream methodFilter: methodFilter
-
-
fileOutCategory: aCategory of: aClass methodFilter: methodFilter on: aStream
-
file out all methods belonging to aCategory, aString onto aStream
-
fileOutCommentEndOn: aStream
-
Writes a comment end mark on aStream.
-
fileOutCommentLine: aString on: aStream
-
Writes a single line of comment on a comment to a stream.
-
fileOutCommentStartOn: aStream
-
Writes a comment start mark on aStream.
|