"
COPYRIGHT (c) 1994 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
"
SelfNode subclass:#SuperNode
instanceVariableNames:'class isHere'
classVariableNames:''
poolDictionaries:''
category:'System-Compiler-Support'
!
!SuperNode class methodsFor:'documentation'!
copyright
"
COPYRIGHT (c) 1994 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
"
!
documentation
"
node for parse-trees, representing super
This is a helper class for the compiler.
[author:]
Claus Gittinger
"
! !
!SuperNode class methodsFor:'instance creation'!
value:val inClass:cls
^ (self basicNew) value:val inClass:cls here:false
!
value:val inClass:cls here:isHere
^ (self basicNew) value:val inClass:cls here:isHere
! !
!SuperNode methodsFor:'accessing'!
definingClass
^ class
!
value:val inClass:cls here:h
type := #Super.
value := val.
class := cls.
isHere := h
! !
!SuperNode methodsFor:'printing'!
printOn:aStream indent:i
isHere ifTrue:[
aStream nextPutAll:'here'
] ifFalse:[
aStream nextPutAll:'super'
]
! !
!SuperNode methodsFor:'queries'!
isHere
^ isHere
!
isSuper
"return true, if this is a super-node"
^ true
! !
!SuperNode class methodsFor:'documentation'!
version
^ '$Header: /cvs/stx/stx/libcomp/SuperNode.st,v 1.11 1996-04-25 17:09:01 cg Exp $'
! !