Cface__CFunctionTypeNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 18 Jul 2011 15:31:42 +0000
changeset 17 509b9e5d52b2
parent 16 ffcbe7184a53
child 18 2f55519f3d0b
permissions -rw-r--r--
Fixes

"{ Package: 'cvut:fel/cface' }"

"{ NameSpace: Cface }"

CDerivedTypeNode subclass:#CFunctionTypeNode
	instanceVariableNames:'return arguments'
	classVariableNames:''
	poolDictionaries:''
	category:'Cface-C AST'
!


!CFunctionTypeNode methodsFor:'accessing'!

arguments
    ^ arguments

    "Created: / 17-02-2008 / 18:46:11 / janfrog"
!

arguments:something
    arguments := something.

    "Created: / 17-02-2008 / 18:46:11 / janfrog"
!

cByteSize

    ^CPointerNode new cByteSize

    "Created: / 09-07-2008 / 19:39:16 / Jan Vrany <vranyj1@fel.cvut.cz>"
!

ffiTypeSymbol
    "superclass Cface::CTypeNode says that I am responsible to implement this method"

    ^ #pointer

    "Modified: / 18-07-2011 / 16:16:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

return
    ^ return

    "Created: / 17-02-2008 / 18:44:11 / janfrog"
!

return:something
    return := something.

    "Created: / 17-02-2008 / 18:44:11 / janfrog"
! !

!CFunctionTypeNode methodsFor:'testing'!

isCFunctionTypeNode
    ^ true

    "Created: / 17-02-2008 / 21:52:13 / janfrog"
! !

!CFunctionTypeNode methodsFor:'visiting'!

acceptVisitor:aVisitor 
    "Double dispatch back to the visitor, passing my type encoded in
     the selector (visitor pattern)"

    "stub code automatically generated - please change if required"

    ^ aVisitor visitCFunctionTypeNode:self

    "Created: / 17-02-2008 / 18:44:19 / janfrog"
! !

!CFunctionTypeNode class methodsFor:'documentation'!

version
    ^ '$Header: /opt/data/cvs/cvut-fel/cface/Cface__CFunctionTypeNode.st,v 1.1 2008/02/26 15:56:42 vranyj1 Exp $'
!

version_SVN
    ^ '$Id$'
! !