1
|
1 |
"{ Package: 'cvut:fel/cface' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Cface }"
|
|
4 |
|
|
5 |
CTypeNode subclass:#CArrayNode
|
|
6 |
instanceVariableNames:'type size'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Cface-C AST'
|
|
10 |
!
|
|
11 |
|
|
12 |
!CArrayNode class methodsFor:'documentation'!
|
|
13 |
|
|
14 |
history
|
|
15 |
|
|
16 |
"Created: / 25-10-2007 / 16:50:37 / haja"
|
|
17 |
"Created: #id / 25-10-2007 / 16:50:42 / haja"
|
|
18 |
"Created: #id: / 25-10-2007 / 16:50:42 / haja"
|
|
19 |
"Created: #size / 25-10-2007 / 16:50:42 / haja"
|
|
20 |
"Created: #size: / 25-10-2007 / 16:50:42 / haja"
|
|
21 |
"Created: #id:size: / 25-10-2007 / 16:53:04 / haja"
|
|
22 |
"Deleted: #acceptVisitor: / 02-11-2007 / 10:39:35 / haja"
|
|
23 |
"Created: #acceptVisitor: / 02-11-2007 / 10:39:47 / haja"
|
|
24 |
"Created: #buildTypeCheckFor:on: / 19-12-2007 / 15:55:50 / haja"
|
|
25 |
"Created: #buildObjectCreationOn: / 19-12-2007 / 16:40:09 / haja"
|
|
26 |
"Created: #buildValueExtractionFor:on: / 19-12-2007 / 17:30:51 / haja"
|
|
27 |
"Created: #buildObjectCreationFor:on: / 19-12-2007 / 17:39:17 / haja"
|
|
28 |
"Deleted: #buildObjectCreationOn: / 19-12-2007 / 17:39:20 / haja"
|
|
29 |
"Created: #buildTypeDescriptionOn: / 20-12-2007 / 12:13:36 / haja"
|
|
30 |
! !
|
|
31 |
|
16
|
32 |
!CArrayNode methodsFor:'accessing'!
|
|
33 |
|
|
34 |
cByteSize
|
|
35 |
"superclass Cface::CTypeNode says that I am responsible to implement this method"
|
|
36 |
|
|
37 |
^ self shouldImplement
|
|
38 |
!
|
|
39 |
|
|
40 |
ffiTypeSymbol
|
|
41 |
"superclass Cface::CTypeNode says that I am responsible to implement this method"
|
|
42 |
|
|
43 |
^ self shouldImplement
|
|
44 |
!
|
|
45 |
|
|
46 |
size
|
|
47 |
^ size
|
|
48 |
!
|
|
49 |
|
|
50 |
size:anInteger
|
|
51 |
size := anInteger.
|
|
52 |
!
|
|
53 |
|
|
54 |
type
|
|
55 |
^ type
|
|
56 |
!
|
|
57 |
|
|
58 |
type:aCTypeNode
|
|
59 |
type := aCTypeNode.
|
|
60 |
! !
|
|
61 |
|
|
62 |
!CArrayNode methodsFor:'visiting'!
|
|
63 |
|
|
64 |
acceptVisitor:aVisitor
|
|
65 |
"Double dispatch back to the visitor, passing my type encoded in
|
|
66 |
the selector (visitor pattern)"
|
|
67 |
|
|
68 |
"stub code automatically generated - please change if required"
|
|
69 |
|
|
70 |
^ aVisitor visitCArrayNode:self
|
|
71 |
! !
|
|
72 |
|
1
|
73 |
!CArrayNode class methodsFor:'documentation'!
|
|
74 |
|
14
|
75 |
version_SVN
|
|
76 |
^ '$Id$'
|
1
|
77 |
! !
|