SqueakCommentReader.st
author Claus Gittinger <cg@exept.de>
Tue, 02 Apr 2019 14:11:50 +0200
changeset 24038 917ed6428d22
parent 19639 a6130485ba3f
permissions -rw-r--r--
#REFACTORING by cg class: CharacterArray comment/format in: #bindWith:with: #bindWith:with:with: #bindWith:with:with:with: #bindWith:with:with:with:with: #bindWith:with:with:with:with:with: #bindWith:with:with:with:with:with:with: #bindWith:with:with:with:with:with:with:with: #bindWith:with:with:with:with:with:with:with:with: #expandMacrosWith: #expandMacrosWith:with: #expandMacrosWith:with:with: changed: #bindWith: #expandMacrosWith:with:with:with:

"{ Package: 'stx:libbasic' }"

"{ NameSpace: Smalltalk }"

Object subclass:#SqueakCommentReader
	instanceVariableNames:'myClass'
	classVariableNames:''
	poolDictionaries:''
	category:'Kernel-Support'
!

!SqueakCommentReader class methodsFor:'documentation'!

documentation
"
    a helper class for fileIn of squeak source code with commentStamp chunks.
    This reader reads the next chunk as a string comment

    [author:]
        Claus Gittinger
"
! !

!SqueakCommentReader methodsFor:'private'!

class:aClass stamp:stampString priorVersion:priorVersion
    myClass := aClass.
! !

!SqueakCommentReader methodsFor:'reading'!

fileInFrom:aStream notifying:requestor passChunk:passChunk single:oneChunkOnly
    "read a single comment chunk"

    |chunk|

    chunk := aStream nextChunk.
    myClass comment:chunk.
!

fileInFrom:aStream notifying:requestor passChunk:passChunk single:oneChunkOnly silent:beSilent
    "read a single comment chunk"

    |chunk|

    chunk := aStream nextChunk.
    myClass comment:chunk.
! !

!SqueakCommentReader class methodsFor:'documentation'!

version
    ^ '$Header$'
!

version_CVS
    ^ '$Header$'
! !