3065
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1989 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 |
"
|
3061
|
12 |
"{ Package: 'stx:libcomp' }"
|
|
13 |
|
4102
|
14 |
"{ NameSpace: Smalltalk }"
|
|
15 |
|
3061
|
16 |
Notification subclass:#ParseWarning
|
|
17 |
instanceVariableNames:'errorMessage startPosition endPosition lineNumber'
|
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'System-Compiler'
|
|
21 |
!
|
|
22 |
|
3065
|
23 |
!ParseWarning class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
copyright
|
|
26 |
"
|
|
27 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
|
28 |
All Rights Reserved
|
|
29 |
|
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
4311
|
37 |
!
|
|
38 |
|
|
39 |
documentation
|
|
40 |
"
|
|
41 |
Warnings generated by parsers (eg. the Smalltalk code parser).
|
|
42 |
In unhandled, a message is sent to the Transcript and the compilation proceeds.
|
|
43 |
|
|
44 |
[author:]
|
|
45 |
Claus Gittinger
|
|
46 |
|
|
47 |
[instance variables:]
|
|
48 |
|
|
49 |
[class variables:]
|
|
50 |
|
|
51 |
[see also:]
|
|
52 |
|
|
53 |
"
|
3065
|
54 |
! !
|
3061
|
55 |
|
|
56 |
!ParseWarning methodsFor:'accessing'!
|
|
57 |
|
|
58 |
endPosition
|
|
59 |
^ endPosition
|
|
60 |
!
|
|
61 |
|
|
62 |
endPosition:something
|
|
63 |
endPosition := something.
|
|
64 |
!
|
|
65 |
|
|
66 |
errorMessage
|
|
67 |
^ errorMessage
|
|
68 |
!
|
|
69 |
|
|
70 |
errorMessage:something
|
|
71 |
errorMessage := something.
|
|
72 |
!
|
|
73 |
|
|
74 |
lineNumber
|
|
75 |
^ lineNumber
|
|
76 |
!
|
|
77 |
|
|
78 |
lineNumber:something
|
|
79 |
lineNumber := something.
|
|
80 |
!
|
|
81 |
|
|
82 |
startPosition
|
|
83 |
^ startPosition
|
|
84 |
!
|
|
85 |
|
|
86 |
startPosition:something
|
|
87 |
startPosition := something.
|
4349
|
88 |
!
|
|
89 |
|
|
90 |
startPosition:startPositionArg endPosition:endPositionArg
|
|
91 |
startPosition := startPositionArg.
|
|
92 |
endPosition := endPositionArg.
|
3061
|
93 |
! !
|
|
94 |
|
4102
|
95 |
!ParseWarning methodsFor:'default action'!
|
|
96 |
|
|
97 |
defaultResumeValue
|
|
98 |
Logger warning:('Parser Warning: ',(self errorMessage ? self description)).
|
|
99 |
^ super defaultResumeValue
|
|
100 |
! !
|
|
101 |
|
3061
|
102 |
!ParseWarning class methodsFor:'documentation'!
|
|
103 |
|
|
104 |
version
|
4102
|
105 |
^ '$Header$'
|
3061
|
106 |
!
|
|
107 |
|
|
108 |
version_CVS
|
4102
|
109 |
^ '$Header$'
|
3061
|
110 |
! !
|
|
111 |
|