author | Claus Gittinger <cg@exept.de> |
Sat, 31 Aug 2013 13:30:27 +0200 | |
changeset 3309 | cea9c487db04 |
parent 2881 | ae13393d1096 |
child 3333 | fb37a7b53ed6 |
permissions | -rw-r--r-- |
0 | 1 |
" |
4 | 2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
104 | 3 |
All Rights Reserved |
0 | 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 |
" |
|
1080 | 12 |
"{ Package: 'stx:libcomp' }" |
13 |
||
0 | 14 |
MessageNode subclass:#UnaryNode |
261 | 15 |
instanceVariableNames:'' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Compiler-Support' |
|
0 | 19 |
! |
20 |
||
20 | 21 |
!UnaryNode class methodsFor:'documentation'! |
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
104 | 26 |
All Rights Reserved |
20 | 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 |
node for parse-trees, representing unary messages |
|
261 | 40 |
This is a helper class for the compiler. |
263 | 41 |
|
42 |
[author:] |
|
43 |
Claus Gittinger |
|
20 | 44 |
" |
45 |
! ! |
|
0 | 46 |
|
47 |
!UnaryNode class methodsFor:'instance creation'! |
|
48 |
||
49 |
receiver:r selector:s |
|
11 | 50 |
"return a new UnaryNode for sending selector s to receiver r. |
51 |
Fold constants." |
|
52 |
||
991
16411f243a75
compile-time-eval Smalltalk #isSmalltalkXXX messages.
Claus Gittinger <cg@exept.de>
parents:
904
diff
changeset
|
53 |
^ self receiver:r selector:s fold:true |
0 | 54 |
! |
55 |
||
15 | 56 |
receiver:r selector:selectorString fold:folding |
57 |
"return a new UnaryNode for sending selector selectorString to receiver r. |
|
11 | 58 |
If folding is true, fold constant expressions." |
59 |
||
212
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
60 |
|result recVal selector canFold globalName| |
0 | 61 |
|
62 |
" |
|
63 |
The constant folding code can usually not optimize things - this may change |
|
64 |
when some kind of constant declaration is added to smalltalk. |
|
65 |
" |
|
212
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
66 |
|
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
67 |
canFold := false. |
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
68 |
|
993
902eec8d132b
oops - folding argument is not always a symbol.
Claus Gittinger <cg@exept.de>
parents:
991
diff
changeset
|
69 |
(folding notNil and:[folding ~~ false]) ifTrue:[ |
625 | 70 |
selector := selectorString asSymbolIfInterned. |
71 |
selector notNil ifTrue:[ |
|
72 |
"/ |
|
73 |
"/ do constant folding ... |
|
2111 | 74 |
"/ evaluate at compile time: |
75 |
"/ Character tab |
|
76 |
"/ Character cr |
|
77 |
"/ ... |
|
78 |
"/ Float pi |
|
79 |
"/ Float e |
|
80 |
"/ ... |
|
81 |
"/ String cr |
|
82 |
"/ String crlf |
|
83 |
"/ ... |
|
84 |
"/ #(...) asFloatArray |
|
85 |
||
625 | 86 |
r isGlobal ifTrue:[ |
87 |
globalName := r name. |
|
88 |
recVal := r evaluate. |
|
212
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
89 |
|
625 | 90 |
(globalName = 'Character') ifTrue:[ |
2001 | 91 |
( #( tab cr lf return space backspace esc ) includes:selector) |
625 | 92 |
ifTrue:[ |
93 |
canFold := true |
|
94 |
] |
|
95 |
]. |
|
96 |
(globalName = 'Float') ifTrue:[ |
|
2001 | 97 |
( #( pi e NaN unity zero ) includes:selector) |
625 | 98 |
ifTrue:[ |
99 |
(recVal respondsTo:selector) ifTrue:[ |
|
100 |
canFold := true |
|
101 |
] |
|
102 |
] |
|
103 |
]. |
|
2001 | 104 |
(globalName = 'String') ifTrue:[ |
105 |
( #( cr crlf lf ) includes:selector) |
|
106 |
ifTrue:[ |
|
107 |
(recVal respondsTo:selector) ifTrue:[ |
|
108 |
canFold := true |
|
109 |
] |
|
110 |
] |
|
111 |
]. |
|
112 |
||
1144 | 113 |
"/ no, this 'optimization' is not good - |
114 |
"/ if bytecode is transported to another machine. |
|
115 |
"/ However, the JIT compiler compensates for this ;-) |
|
116 |
"/ (globalName = 'Smalltalk') ifTrue:[ |
|
117 |
"/ ( #( isSmalltalkX isVisualWorks isSqueak |
|
118 |
"/ isSmalltalkMT isDolphinSmalltalk isVisualAge |
|
119 |
"/ isSmalltalkV) includes:selector) |
|
120 |
"/ ifTrue:[ |
|
121 |
"/ (recVal respondsTo:selector) ifTrue:[ |
|
122 |
"/ canFold := true |
|
123 |
"/ ] |
|
124 |
"/ ] |
|
125 |
"/ ]. |
|
126 |
||
625 | 127 |
"/ no, this 'optimization' is not good - |
128 |
"/ if bytecode is transported to another machine. |
|
129 |
"/ However, the JIT compiler compensates for this ;-) |
|
130 |
"/ (globalName = 'SmallInteger') ifTrue:[ |
|
131 |
"/ ( #( minVal maxVal ) includes:selector) |
|
132 |
"/ ifTrue:[ |
|
133 |
"/ (recVal respondsTo:selector) ifTrue:[ |
|
134 |
"/ canFold := true |
|
135 |
"/ ] |
|
136 |
"/ ] |
|
137 |
"/ ] |
|
138 |
]. |
|
212
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
139 |
|
625 | 140 |
r isConstant ifTrue:[ |
141 |
"check if we can do it ..." |
|
142 |
recVal := r evaluate. |
|
143 |
||
144 |
" |
|
145 |
we could do much more here - but then, we need a dependency from |
|
146 |
the folded selectors method to the method we generate code for ... |
|
147 |
limit optimizations to those that will never change |
|
148 |
(or, if you change them, it will crash badly anyway ...) |
|
149 |
" |
|
150 |
recVal respondsToArithmetic ifTrue:[ |
|
151 |
(#( negated abs asPoint degreesToRadians radiansToDegrees |
|
152 |
exp ln log sqrt reciprocal |
|
153 |
arcCos arcSin arcTan sin cos tan) includes:selector) |
|
154 |
ifTrue:[ |
|
155 |
canFold := true |
|
156 |
] |
|
157 |
]. |
|
158 |
recVal isCharacter ifTrue:[ |
|
1093 | 159 |
(#( asciiValue asInteger digitValue asString) includes:selector) |
625 | 160 |
ifTrue:[ |
161 |
canFold := true |
|
162 |
] |
|
163 |
]. |
|
164 |
recVal isString ifTrue:[ |
|
165 |
(selector == #withCRs) ifTrue:[ |
|
993
902eec8d132b
oops - folding argument is not always a symbol.
Claus Gittinger <cg@exept.de>
parents:
991
diff
changeset
|
166 |
canFold := folding isSymbol |
902eec8d132b
oops - folding argument is not always a symbol.
Claus Gittinger <cg@exept.de>
parents:
991
diff
changeset
|
167 |
and:[(folding >= #level2) or:[folding == #full]] |
803 | 168 |
]. |
169 |
(selector == #size) ifTrue:[ |
|
993
902eec8d132b
oops - folding argument is not always a symbol.
Claus Gittinger <cg@exept.de>
parents:
991
diff
changeset
|
170 |
canFold := folding isSymbol |
902eec8d132b
oops - folding argument is not always a symbol.
Claus Gittinger <cg@exept.de>
parents:
991
diff
changeset
|
171 |
and:[(folding >= #level1) or:[folding == #full]] |
1093 | 172 |
]. |
173 |
(selector == #asSymbol) ifTrue:[ |
|
174 |
canFold := folding isSymbol |
|
175 |
and:[(folding >= #level1) or:[folding == #full]] |
|
176 |
]. |
|
625 | 177 |
]. |
178 |
(recVal isMemberOf:Array) ifTrue:[ |
|
179 |
(#(asFloatArray asDoubleArray) includes:selector) ifTrue:[ |
|
993
902eec8d132b
oops - folding argument is not always a symbol.
Claus Gittinger <cg@exept.de>
parents:
991
diff
changeset
|
180 |
canFold := folding isSymbol |
902eec8d132b
oops - folding argument is not always a symbol.
Claus Gittinger <cg@exept.de>
parents:
991
diff
changeset
|
181 |
and:[(folding >= #level2) or:[folding == #full]] |
625 | 182 |
] |
183 |
] |
|
184 |
] |
|
185 |
]. |
|
212
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
186 |
|
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
187 |
canFold ifTrue:[ |
625 | 188 |
(recVal respondsTo:selector) ifTrue:[ |
212
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
189 |
SignalSet anySignal "Number domainErrorSignal" handle:[:ex | |
625 | 190 |
"in case of an error, abort fold and return original" |
191 |
ex return |
|
212
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
192 |
] do:[ |
625 | 193 |
result := recVal perform:selector. |
194 |
^ ConstantNode type:(ConstantNode typeOfConstant:result) value:result |
|
195 |
]. |
|
212
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
196 |
"when we reach here, something went wrong (something like 0.0 log)" |
1533 | 197 |
^ ParseErrorNode errorString:'error occured while evaluating constant expression' |
625 | 198 |
]. |
212
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
199 |
]. |
0 | 200 |
]. |
212
ff39051e219f
more constant folding options
Claus Gittinger <cg@exept.de>
parents:
148
diff
changeset
|
201 |
|
15 | 202 |
^ (self basicNew) receiver:r selector:selectorString args:nil lineno:0 |
625 | 203 |
|
2001 | 204 |
"Modified: / 05-03-2007 / 15:11:26 / cg" |
0 | 205 |
! ! |
206 |
||
207 |
!UnaryNode methodsFor:'checks'! |
|
208 |
||
2094 | 209 |
plausibilityCheckIn:aParser |
0 | 210 |
"check for funny selector - careful to do string compare instead |
211 |
of symbol identity compare: I dont want to introduce these as symbols |
|
212 |
into the system (would make the '... is nowhere implemented' warning |
|
3309 | 213 |
go away. |
214 |
TODO: rewite to use lint/lint rules and apply them before accepting" |
|
0 | 215 |
|
1502
de3c4e208b9f
Avoid 'is not a symbol in globalKnown' debug messages from librun
Stefan Vogel <sv@exept.de>
parents:
1500
diff
changeset
|
216 |
|selectorSymbol| |
de3c4e208b9f
Avoid 'is not a symbol in globalKnown' debug messages from librun
Stefan Vogel <sv@exept.de>
parents:
1500
diff
changeset
|
217 |
|
2881
ae13393d1096
- plausibilityCheckIn:aParser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2866
diff
changeset
|
218 |
"JV@2012-07-06: Do not check if receiver is Java package, |
ae13393d1096
- plausibilityCheckIn:aParser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2866
diff
changeset
|
219 |
otherwise it reports false-positives when working with Java code" |
ae13393d1096
- plausibilityCheckIn:aParser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2866
diff
changeset
|
220 |
receiver isJavaPackageReference ifTrue:[ ^ nil ]. |
ae13393d1096
- plausibilityCheckIn:aParser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2866
diff
changeset
|
221 |
|
1502
de3c4e208b9f
Avoid 'is not a symbol in globalKnown' debug messages from librun
Stefan Vogel <sv@exept.de>
parents:
1500
diff
changeset
|
222 |
selectorSymbol := selector asSymbolIfInterned. |
de3c4e208b9f
Avoid 'is not a symbol in globalKnown' debug messages from librun
Stefan Vogel <sv@exept.de>
parents:
1500
diff
changeset
|
223 |
selectorSymbol notNil ifTrue:[ |
de3c4e208b9f
Avoid 'is not a symbol in globalKnown' debug messages from librun
Stefan Vogel <sv@exept.de>
parents:
1500
diff
changeset
|
224 |
((selectorSymbol == #self) or:[ |
de3c4e208b9f
Avoid 'is not a symbol in globalKnown' debug messages from librun
Stefan Vogel <sv@exept.de>
parents:
1500
diff
changeset
|
225 |
(selectorSymbol == #super) or:[ |
de3c4e208b9f
Avoid 'is not a symbol in globalKnown' debug messages from librun
Stefan Vogel <sv@exept.de>
parents:
1500
diff
changeset
|
226 |
(selectorSymbol == #thisContext) or:[ |
de3c4e208b9f
Avoid 'is not a symbol in globalKnown' debug messages from librun
Stefan Vogel <sv@exept.de>
parents:
1500
diff
changeset
|
227 |
(selectorSymbol == #nil) or:[ |
de3c4e208b9f
Avoid 'is not a symbol in globalKnown' debug messages from librun
Stefan Vogel <sv@exept.de>
parents:
1500
diff
changeset
|
228 |
(selectorSymbol == #true) or:[ |
2227
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
229 |
(selectorSymbol == #false)]]]]]) |
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
230 |
ifTrue:[ |
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
231 |
(aParser alreadyWarnedUnimplementedSelectors includes:selectorSymbol) ifFalse:[ |
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
232 |
aParser alreadyWarnedUnimplementedSelectors add:selectorSymbol. |
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
233 |
^ 'funny selector: ',selectorSymbol allBold,'; possible missing ''.'' or keyword-colon.' |
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
234 |
]. |
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
235 |
]. |
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
236 |
|
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
237 |
(Smalltalk includesKey:selectorSymbol) ifTrue:[ |
2094 | 238 |
(aParser alreadyWarnedUnimplementedSelectors includes:selectorSymbol) ifFalse:[ |
239 |
aParser alreadyWarnedUnimplementedSelectors add:selectorSymbol. |
|
240 |
^ 'funny selector: ',selectorSymbol allBold,' (known as global); possible missing ''.'' or keyword-colon.' |
|
241 |
]. |
|
1502
de3c4e208b9f
Avoid 'is not a symbol in globalKnown' debug messages from librun
Stefan Vogel <sv@exept.de>
parents:
1500
diff
changeset
|
242 |
]. |
0 | 243 |
]. |
17 | 244 |
|
904 | 245 |
" |
246 |
more to come |
|
247 |
... |
|
248 |
" |
|
249 |
||
2094 | 250 |
^ super plausibilityCheckIn:aParser |
1777 | 251 |
|
252 |
"Modified: / 16-07-2006 / 16:16:25 / cg" |
|
2881
ae13393d1096
- plausibilityCheckIn:aParser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2866
diff
changeset
|
253 |
"Modified: / 06-07-2012 / 10:46:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
0 | 254 |
! ! |
255 |
||
256 |
!UnaryNode methodsFor:'code generation'! |
|
257 |
||
104 | 258 |
codeOn:aStream inBlock:b for:aCompiler |
11 | 259 |
"append bytecode for the receiver to aStream." |
260 |
||
626 | 261 |
|rSel notSelector| |
262 |
||
11 | 263 |
" |
264 |
optimize |
|
626 | 265 |
(a == b) not -> (a ~~ b) |
266 |
(a ~~ b) not -> (a == b) |
|
0 | 267 |
" |
268 |
(selector == #not) ifTrue:[ |
|
626 | 269 |
(receiver class == BinaryNode) ifTrue:[ |
270 |
((rSel := receiver selector) == #==) ifTrue:[ |
|
271 |
notSelector := #~~ |
|
272 |
] ifFalse:[ |
|
273 |
(rSel == #~~) ifTrue:[ |
|
274 |
notSelector := #== |
|
275 |
] |
|
276 |
]. |
|
277 |
notSelector notNil ifTrue:[ |
|
1465
2b2eea66362a
ensure literals of optimized messages are in lit-array
Claus Gittinger <cg@exept.de>
parents:
1387
diff
changeset
|
278 |
aCompiler addLiteral:selector; addLiteral:rSel. |
2b2eea66362a
ensure literals of optimized messages are in lit-array
Claus Gittinger <cg@exept.de>
parents:
1387
diff
changeset
|
279 |
|
1998 | 280 |
(BinaryNode |
281 |
receiver:(receiver receiver) |
|
282 |
selector:notSelector |
|
283 |
arg:(receiver arg)) |
|
284 |
codeOn:aStream |
|
285 |
inBlock:b |
|
286 |
for:aCompiler. |
|
626 | 287 |
^ self |
288 |
] |
|
289 |
] |
|
0 | 290 |
]. |
291 |
||
104 | 292 |
^ super codeOn:aStream inBlock:b for:aCompiler |
626 | 293 |
|
2001 | 294 |
"Modified: / 05-03-2007 / 15:11:35 / cg" |
0 | 295 |
! ! |
296 |
||
1035 | 297 |
!UnaryNode methodsFor:'evaluation'! |
140 | 298 |
|
1384 | 299 |
evaluateIn:anEnvironment |
140 | 300 |
"evaluate the expression represented by the receiver" |
301 |
||
2036
989b8836fc32
do #class inline to avoid #perform:
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
302 |
|r| |
989b8836fc32
do #class inline to avoid #perform:
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
303 |
|
1500
3c4cb012b24b
Lazy conversion of selector strings to symbols.
Stefan Vogel <sv@exept.de>
parents:
1465
diff
changeset
|
304 |
selector := selector asSymbol. |
140 | 305 |
receiver isSuper ifTrue:[ |
1384 | 306 |
^ super evaluateIn:anEnvironment |
140 | 307 |
]. |
2036
989b8836fc32
do #class inline to avoid #perform:
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
308 |
r := receiver evaluateIn:anEnvironment. |
989b8836fc32
do #class inline to avoid #perform:
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
309 |
selector == #class ifTrue:[ |
989b8836fc32
do #class inline to avoid #perform:
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
310 |
^ r class. |
989b8836fc32
do #class inline to avoid #perform:
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
311 |
]. |
989b8836fc32
do #class inline to avoid #perform:
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
312 |
^ r perform:selector |
989b8836fc32
do #class inline to avoid #perform:
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
313 |
|
989b8836fc32
do #class inline to avoid #perform:
Claus Gittinger <cg@exept.de>
parents:
2001
diff
changeset
|
314 |
"Modified: / 04-06-2007 / 17:46:31 / cg" |
140 | 315 |
! ! |
316 |
||
1080 | 317 |
!UnaryNode methodsFor:'printing & storing'! |
0 | 318 |
|
1589 | 319 |
printOn:aStream indent:i |
11 | 320 |
"prettyprint the expression represented by the receiver" |
1589 | 321 |
|
322 |
receiver printOn:aStream indent:i parenthized:(receiver precedence < self precedence). |
|
0 | 323 |
aStream space. |
324 |
selector printString printOn:aStream. |
|
1589 | 325 |
|
326 |
"Modified: / 20-04-2005 / 14:36:26 / cg" |
|
0 | 327 |
! ! |
140 | 328 |
|
329 |
!UnaryNode methodsFor:'queries'! |
|
330 |
||
2322 | 331 |
precedence |
332 |
^ 100 |
|
333 |
||
334 |
"Created: / 20-04-2005 / 14:10:34 / cg" |
|
335 |
! ! |
|
336 |
||
337 |
!UnaryNode methodsFor:'testing'! |
|
338 |
||
2863 | 339 |
isJavaPackageReference |
340 |
"Return true, given node is JAVA class reference in form: |
|
341 |
JAVA package1 package2 |
|
342 |
" |
|
343 |
||
344 |
^receiver isJavaPackageReference |
|
345 |
and:[selector first isLowercase |
|
2866
21be09ac87b1
changed: #isJavaPackageReference
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2863
diff
changeset
|
346 |
and:[selector isUnarySelector]] |
2863 | 347 |
|
348 |
"Created: / 19-04-2012 / 09:52:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
349 |
! |
|
350 |
||
140 | 351 |
isUnaryMessage |
352 |
"return true, if this node is one for a unary message" |
|
626 | 353 |
|
140 | 354 |
^ true |
626 | 355 |
|
356 |
"Modified: 23.10.1997 / 02:05:18 / cg" |
|
140 | 357 |
! ! |
358 |
||
2597 | 359 |
!UnaryNode methodsFor:'visiting'! |
360 |
||
361 |
acceptVisitor:aVisitor |
|
362 |
"Double dispatch back to the visitor, passing my type encoded in |
|
363 |
the selector (visitor pattern)" |
|
364 |
||
365 |
"stub code automatically generated - please change if required" |
|
366 |
||
367 |
^ aVisitor visitUnaryNode:self |
|
368 |
! ! |
|
369 |
||
148 | 370 |
!UnaryNode class methodsFor:'documentation'! |
371 |
||
372 |
version |
|
3309 | 373 |
^ '$Header: /cvs/stx/stx/libcomp/UnaryNode.st,v 1.59 2013-08-31 11:30:27 cg Exp $' |
2227
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
374 |
! |
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
375 |
|
5b45a572dc15
changed: #plausibilityCheckIn:
Claus Gittinger <cg@exept.de>
parents:
2111
diff
changeset
|
376 |
version_CVS |
3309 | 377 |
^ '$Header: /cvs/stx/stx/libcomp/UnaryNode.st,v 1.59 2013-08-31 11:30:27 cg Exp $' |
148 | 378 |
! ! |
3309 | 379 |