Cface__CCharNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 06 Jul 2015 07:52:34 +0100
changeset 37 1ad7fb72801a
parent 32 d7464405cbda
permissions -rw-r--r--
Generate comment in FFI callouts Specifying the name and types of parameters and the return type.

"{ Package: 'jv:cface' }"

"{ NameSpace: Cface }"

CBuiltinNode subclass:#CCharNode
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Cface-C AST'
!


!CCharNode methodsFor:'accessing'!

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

    ^ self shouldImplement
!

cName
    "superclass Cface::CBuiltinNode says that I am responsible to implement this method"

    ^ 'char'

    "Modified: / 06-07-2015 / 07:31:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

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

    ^ #char

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

smalltalkName
    "superclass Cface::CBuiltinNode says that I am responsible to implement this method"

    ^ self shouldImplement
!

stxStructFieldGetterSelector
    ^ #byteAt:

    "Created: / 30-05-2012 / 21:36:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!CCharNode 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 visitCCharNode:self
! !

!CCharNode class methodsFor:'documentation'!

version_SVN
    ^ '$Id$'
! !