Cface__CFunctionTypeNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 17 Sep 2015 07:36:40 +0100
changeset 49 307d55f736ec
parent 43 9327987437ae
permissions -rw-r--r--
LLVM bindings: allow to specify path to llvm-config ..by setting LLVM_CONFIG variable when generating definitions for LLVM bindings. Example: make LVM_CONFIG=~/Projects/LLVM/sources1/build/Debug+Asserts/bin/llvm-config

"{ Package: 'jv:cface' }"

"{ NameSpace: Cface }"

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


!CFunctionTypeNode methodsFor:'* As yet uncategorized *'!

ffiPointerTypeSymbol

    ^#pointer

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

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

version_SVN
    ^ '$Id$'
! !