Cface__CFunctionTypeNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 10 Jul 2008 07:31:14 +0000
changeset 5 c110eef5b9ef
parent 1 b6c0180314d1
child 14 1f730d82496e
permissions -rw-r--r--
- externalization of libraryName (now supports unix & win32 simultaneously) - basi support for accessing structure fields

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

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 $'
! !