-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFASTPyAssignment.class.st
More file actions
98 lines (76 loc) · 2.39 KB
/
FASTPyAssignment.class.st
File metadata and controls
98 lines (76 loc) · 2.39 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
"
I represent an assignment in Python (not to confuse with an augmented assignment or a wlrus assignment). My left value is the expression used to get the variable to assign. It can be typed optionally. My right side if the expression to store. It can be optional because I also represent a typed variable declaration.
## Relations
======================
### Parents
| Relation | Origin | Opposite | Type | Comment |
|---|
| `parentAssignmentLeft` | `FASTPyTAssignable` | `left` | `FASTPyAssignment` | |
### Children
| Relation | Origin | Opposite | Type | Comment |
|---|
| `left` | `FASTPyAssignment` | `parentAssignmentLeft` | `FASTPyTAssignable` | |
| `right` | `FASTPyAssignment` | `parentAssignmentRight` | `FASTPyExpression` | |
| `type` | `FASTPyAssignment` | `parentAssignment` | `FASTPyType` | |
"
Class {
#name : 'FASTPyAssignment',
#superclass : 'FASTPyExpression',
#traits : 'FASTPyTAssignable',
#classTraits : 'FASTPyTAssignable classTrait',
#instVars : [
'#left => FMOne type: #FASTPyTAssignable opposite: #parentAssignmentLeft',
'#right => FMOne type: #FASTPyExpression opposite: #parentAssignmentRight',
'#type => FMOne type: #FASTPyType opposite: #parentAssignment'
],
#category : 'FAST-Python-Model-Entities',
#package : 'FAST-Python-Model',
#tag : 'Entities'
}
{ #category : 'meta' }
FASTPyAssignment class >> annotation [
<FMClass: #Assignment super: #FASTPyExpression>
<package: #'FAST-Python-Model'>
<generated>
^ self
]
{ #category : 'testing' }
FASTPyAssignment >> isDeclaration [
<FMProperty>
<derived>
<comment: 'An assignment is a simple declaration if it has no right expression.'>
^ self right isNil
]
{ #category : 'accessing' }
FASTPyAssignment >> left [
"Relation named: #left type: #FASTPyTAssignable opposite: #parentAssignmentLeft"
<generated>
^ left
]
{ #category : 'accessing' }
FASTPyAssignment >> left: anObject [
<generated>
left := anObject
]
{ #category : 'accessing' }
FASTPyAssignment >> right [
"Relation named: #right type: #FASTPyExpression opposite: #parentAssignmentRight"
<generated>
^ right
]
{ #category : 'accessing' }
FASTPyAssignment >> right: anObject [
<generated>
right := anObject
]
{ #category : 'accessing' }
FASTPyAssignment >> type [
"Relation named: #type type: #FASTPyType opposite: #parentAssignment"
<generated>
^ type
]
{ #category : 'accessing' }
FASTPyAssignment >> type: anObject [
<generated>
type := anObject
]