SuperNode.st
author claus
Mon, 22 Aug 1994 14:42:14 +0200
changeset 33 8985ec2f9e82
parent 20 f8dd8ba75205
child 49 02660b790c3e
permissions -rw-r--r--
*** empty log message ***

"
 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'
       classVariableNames:''
       poolDictionaries:''
       category:'System-Compiler-Support'
!

SuperNode comment:'
COPYRIGHT (c) 1994 by Claus Gittinger
             All Rights Reserved

$Header: /cvs/stx/stx/libcomp/SuperNode.st,v 1.3 1994-08-22 12:41:10 claus Exp $
'!

!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.
"
!

version
"
$Header: /cvs/stx/stx/libcomp/SuperNode.st,v 1.3 1994-08-22 12:41:10 claus Exp $
"
!

documentation
"
    node for parse-trees, representing super
"
! !

!SuperNode class methodsFor:'instance creation'!

value:val inClass:cls 
    ^ (self basicNew) value:val inClass:cls
! !

!SuperNode methodsFor:'accessing'!

value:val inClass:cls
    type := #Super.
    value := val.
    class := cls
!

definingClass
    ^ class
! !

!SuperNode methodsFor:'queries'!

isSuper
    "return true, if this is a super-node"

    ^ true
! !

!SuperNode methodsFor:'printing'!

printOn:aStream indent:i
    aStream nextPutAll:'super'
! !