compiler/TUnionTypeNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 25 Aug 2015 19:02:43 +0100
changeset 1 18b4a3b98e96
child 2 2a3e47c13905
permissions -rw-r--r--
Creates subpackage jv:tea/compiler

"{ Package: 'jv:tea/compiler' }"

"{ NameSpace: Smalltalk }"

TTypeNode subclass:#TUnionTypeNode
	instanceVariableNames:'types'
	classVariableNames:''
	poolDictionaries:''
	category:'Languages-Tea-AST'
!

!TUnionTypeNode class methodsFor:'instance creation'!

new
    "return an initialized instance"

    ^ self basicNew initialize.
! !

!TUnionTypeNode methodsFor:'accessing'!

start
    ^ types first start

    "Created: / 21-08-2015 / 21:08:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

stop
    ^ types last stop

    "Created: / 21-08-2015 / 21:08:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

types
    ^ types
!

types:something
    types := something.
! !

!TUnionTypeNode methodsFor:'visitor'!

acceptVisitor: aProgramNodeVisitor 
    ^ aProgramNodeVisitor acceptUnionTypeNode: self

    "Created: / 21-08-2015 / 22:15:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !