2434
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2010 by Claus Gittinger
|
|
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:libcomp' }"
|
|
13 |
|
|
14 |
CompilationErrorHandler subclass:#TextCollectingCompilationErrorHandler
|
2444
|
15 |
instanceVariableNames:'lines'
|
2434
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'System-Compiler'
|
|
19 |
!
|
|
20 |
|
|
21 |
!TextCollectingCompilationErrorHandler class methodsFor:'documentation'!
|
|
22 |
|
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 2010 by Claus Gittinger
|
|
26 |
All Rights Reserved
|
|
27 |
|
|
28 |
This software is furnished under a license and may be used
|
|
29 |
only in accordance with the terms of that license and with the
|
|
30 |
inclusion of the above copyright notice. This software may not
|
|
31 |
be provided or otherwise made available to, or used by, any
|
|
32 |
other person. No title to or ownership of the software is
|
|
33 |
hereby transferred.
|
|
34 |
"
|
|
35 |
!
|
|
36 |
|
|
37 |
documentation
|
|
38 |
"
|
|
39 |
collects messages - for check before checking in
|
|
40 |
"
|
|
41 |
! !
|
|
42 |
|
|
43 |
!TextCollectingCompilationErrorHandler methodsFor:'error handling'!
|
|
44 |
|
|
45 |
error:aMessage position:position to:endPos from:aCompiler
|
2444
|
46 |
(lines includes:aMessage) ifTrue:[^ self ].
|
|
47 |
lines add:aMessage.
|
2434
|
48 |
myStream nextPutLine:(aMessage allBold colorizeAllWith:Color red darkened).
|
|
49 |
|
|
50 |
"Created: / 02-11-2010 / 12:52:23 / cg"
|
|
51 |
!
|
|
52 |
|
|
53 |
warning:aMessage position:position to:endPos from:aCompiler
|
2444
|
54 |
(lines includes:aMessage) ifTrue:[^ self ].
|
|
55 |
lines add:aMessage.
|
2434
|
56 |
myStream nextPutLine:aMessage.
|
|
57 |
|
|
58 |
"Created: / 02-11-2010 / 12:51:30 / cg"
|
|
59 |
! !
|
|
60 |
|
2444
|
61 |
!TextCollectingCompilationErrorHandler methodsFor:'initialization'!
|
|
62 |
|
|
63 |
initialize
|
|
64 |
lines := OrderedCollection new.
|
|
65 |
|
|
66 |
"Created: / 02-11-2010 / 13:00:55 / cg"
|
|
67 |
! !
|
|
68 |
|
2434
|
69 |
!TextCollectingCompilationErrorHandler class methodsFor:'documentation'!
|
|
70 |
|
|
71 |
version_CVS
|
2444
|
72 |
^ '$Header: /cvs/stx/stx/libcomp/TextCollectingCompilationErrorHandler.st,v 1.2 2010-11-02 12:01:10 cg Exp $'
|
2434
|
73 |
! !
|