-
Notifications
You must be signed in to change notification settings - Fork 65
/
CAbstractDeclaratorNode.class.st
60 lines (46 loc) · 1.26 KB
/
CAbstractDeclaratorNode.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
52
53
54
55
56
57
58
59
60
Class {
#name : #CAbstractDeclaratorNode,
#superclass : #CGLRAbstractNode,
#instVars : [
'declarator'
],
#category : #'CAST-Nodes'
}
{ #category : #generated }
CAbstractDeclaratorNode class >> declarator: aDeclarator [
^ self new
declarator: aDeclarator;
yourself
]
{ #category : #'instance creation' }
CAbstractDeclaratorNode class >> identifier: aString [
^ self declarator: (CIdentifierNode name: aString)
]
{ #category : #comparing }
CAbstractDeclaratorNode >> = anObject [
"Answer whether the receiver and anObject represent the same object."
self == anObject ifTrue: [ ^ true ].
self class = anObject class ifFalse: [ ^ false ].
^ declarator = anObject declarator1
]
{ #category : #generated }
CAbstractDeclaratorNode >> declarator [
^ declarator
]
{ #category : #accessing }
CAbstractDeclaratorNode >> declarator1 [
^ declarator
]
{ #category : #generated }
CAbstractDeclaratorNode >> declarator: aCGLRAbstractNode [
self declarator notNil
ifTrue: [ self declarator parent: nil ].
declarator := aCGLRAbstractNode.
self declarator notNil
ifTrue: [ self declarator parent: self ]
]
{ #category : #comparing }
CAbstractDeclaratorNode >> hash [
"Answer an integer value that is related to the identity of the receiver."
^ declarator hash
]