added: #getCollectedComments
authorClaus Gittinger <cg@exept.de>
Wed, 05 Oct 2011 10:09:45 +0200
changeset 2742 1da09935db64
parent 2741 cdf6aa380b3e
child 2743 3d6ae861426a
added: #getCollectedComments
Scanner.st
--- a/Scanner.st	Wed Oct 05 09:24:11 2011 +0200
+++ b/Scanner.st	Wed Oct 05 10:09:45 2011 +0200
@@ -713,6 +713,18 @@
     exitBlock := aBlock
 !
 
+getCollectedComments
+    "retrieve the so far collected comments, reset comment collection"
+
+    |comments|
+
+    (comments := currentComments) isEmptyOrNil ifTrue:[^ nil].
+    currentComments := nil.
+    ^ comments
+
+    "Created: / 05-10-2011 / 10:09:01 / cg"
+!
+
 inArrayLiteral:aBoolean
     inArrayLiteral := aBoolean
 !
@@ -3343,11 +3355,11 @@
 !Scanner class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.270 2011-10-05 07:24:11 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.271 2011-10-05 08:09:45 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.270 2011-10-05 07:24:11 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.271 2011-10-05 08:09:45 cg Exp $'
 ! !
 
 Scanner initialize!