0
|
1 |
"
|
4
|
2 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
0
|
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 |
|
|
13 |
ParseNode subclass:#PrimaryNode
|
13
|
14 |
instanceVariableNames:'value'
|
0
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'System-Compiler-Support'
|
|
18 |
!
|
|
19 |
|
|
20 |
PrimaryNode comment:'
|
|
21 |
|
4
|
22 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
0
|
23 |
All Rights Reserved
|
|
24 |
|
19
|
25 |
$Header: /cvs/stx/stx/libcomp/PrimaryNode.st,v 1.6 1994-03-30 10:09:38 claus Exp $
|
0
|
26 |
written 88 by claus
|
|
27 |
'!
|
|
28 |
|
|
29 |
!PrimaryNode methodsFor:'accessing'!
|
|
30 |
|
|
31 |
value
|
|
32 |
^ value
|
|
33 |
! !
|
|
34 |
|
19
|
35 |
!PrimaryNode methodsFor:'queries'!
|
|
36 |
|
|
37 |
isPrimary
|
|
38 |
"return true, if this is a node for a primary (i.e. non-send)"
|
|
39 |
|
|
40 |
^ true
|
|
41 |
! !
|
|
42 |
|
0
|
43 |
!PrimaryNode methodsFor:'evaluating'!
|
|
44 |
|
|
45 |
evaluate
|
19
|
46 |
^ self subclassResponsibility
|
0
|
47 |
!
|
|
48 |
|
|
49 |
store:aValue
|
19
|
50 |
^ self subclassResponsibility
|
0
|
51 |
! !
|
|
52 |
|
|
53 |
!PrimaryNode methodsFor:'code generation'!
|
|
54 |
|
|
55 |
codeForSideEffectOn:aStream inBlock:b
|
|
56 |
"no code at all"
|
|
57 |
^ self
|
|
58 |
!
|
|
59 |
|
|
60 |
codeOn:aStream inBlock:codeBlock
|
19
|
61 |
^ self subclassResponsibility
|
0
|
62 |
!
|
|
63 |
|
|
64 |
codeStoreOn:aStream inBlock:codeBlock valueNeeded:valueNeeded
|
19
|
65 |
^ self subclassResponsibility
|
0
|
66 |
! !
|
|
67 |
|
|
68 |
!PrimaryNode methodsFor:'printing'!
|
|
69 |
|
7
|
70 |
displayString
|
19
|
71 |
^ self subclassResponsibility
|
7
|
72 |
!
|
|
73 |
|
0
|
74 |
printOn:aStream indent:i
|
19
|
75 |
^ self subclassResponsibility
|
0
|
76 |
! !
|