-
Notifications
You must be signed in to change notification settings - Fork 71
/
CCallNode.class.st
69 lines (56 loc) · 1.38 KB
/
CCallNode.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
61
62
63
64
65
66
67
68
69
Class {
#name : #CCallNode,
#superclass : #CExpressionNode,
#instVars : [
'arguments',
'identifier'
],
#category : #'CAST-Nodes'
}
{ #category : #'instance creation' }
CCallNode class >> identifier: anIndentifier [
^ self identifier: anIndentifier arguments: #()
]
{ #category : #'instance creation' }
CCallNode class >> identifier: anIndentifier arguments: anOrderdList [
^ self new
identifier: anIndentifier;
arguments: anOrderdList;
yourself
]
{ #category : #generated }
CCallNode >> acceptVisitor: anAbstractVisitor [
^ anAbstractVisitor visitCall: self
]
{ #category : #generated }
CCallNode >> arguments [
^ arguments
]
{ #category : #generated }
CCallNode >> arguments: anOrderedCollection [
self assertListOfExpressions: anOrderedCollection.
self setParents: self arguments to: nil.
arguments := anOrderedCollection.
self setParents: self arguments to: self
]
{ #category : #generated }
CCallNode >> identifier [
^ identifier
]
{ #category : #generated }
CCallNode >> identifier: aCGLRAbstractNode [
self identifier notNil
ifTrue: [ self identifier parent: nil ].
identifier := aCGLRAbstractNode.
self identifier notNil
ifTrue: [ self identifier parent: self ]
]
{ #category : #'generated-initialize-release' }
CCallNode >> initialize [
super initialize.
arguments := OrderedCollection new: 2.
]
{ #category : #testing }
CCallNode >> isFunctionCall [
^ true
]