-
Notifications
You must be signed in to change notification settings - Fork 65
/
CArrayDeclaratorNode.class.st
51 lines (40 loc) · 1.09 KB
/
CArrayDeclaratorNode.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Class {
#name : #CArrayDeclaratorNode,
#superclass : #CAbstractDeclaratorNode,
#instVars : [
'size'
],
#category : #'CAST-Nodes'
}
{ #category : #comparing }
CArrayDeclaratorNode >> = anObject [
"Answer whether the receiver and anObject represent the same object."
self == anObject ifTrue: [ ^ true ].
self class = anObject class ifFalse: [ ^ false ].
^ size = anObject size and: [ declarator = anObject declarator ]
]
{ #category : #generated }
CArrayDeclaratorNode >> acceptVisitor: anAbstractVisitor [
^ anAbstractVisitor visitArrayDeclarator: self
]
{ #category : #comparing }
CArrayDeclaratorNode >> hash [
"Answer an integer value that is related to the identity of the receiver."
^ size hash bitXor: declarator hash
]
{ #category : #testing }
CArrayDeclaratorNode >> isArrayDeclarator [
^ true
]
{ #category : #generated }
CArrayDeclaratorNode >> size [
^ size
]
{ #category : #generated }
CArrayDeclaratorNode >> size: aCGLRAbstractNode [
self size notNil
ifTrue: [ self size parent: nil ].
size := aCGLRAbstractNode.
self size notNil
ifTrue: [ self size parent: self ]
]