-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFASTPyConditionalExpression.class.st
More file actions
75 lines (59 loc) · 2.31 KB
/
FASTPyConditionalExpression.class.st
File metadata and controls
75 lines (59 loc) · 2.31 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
"
I represent a conditional expression such as `x if x > 2 else y`
## Relations
======================
### Parents
| Relation | Origin | Opposite | Type | Comment |
|---|
| `caller` | `FASTPyTCallable` | `callee` | `FASTPyCall` | The call entity calling me (if it's the case)|
| `parentClassDefinition` | `FASTPyTSuperclass` | `superclasses` | `FASTPyClassDefinition` | |
| `parentExecStatement` | `FASTPyTExecutable` | `code` | `FASTPyExecStatement` | |
### Children
| Relation | Origin | Opposite | Type | Comment |
|---|
| `condition` | `FASTTWithCondition` | `parentConditional` | `FASTTExpression` | The boolean condition tested|
| `elseExpression` | `FASTPyConditionalExpression` | `parentConditionalExpressionElse` | `FASTPyExpression` | |
| `thenExpression` | `FASTPyConditionalExpression` | `parentConditionalExpressionThen` | `FASTPyExpression` | |
"
Class {
#name : 'FASTPyConditionalExpression',
#superclass : 'FASTPyExpression',
#traits : 'FASTPyTCallable + FASTPyTExecutable + FASTPyTSuperclass + FASTTWithCondition',
#classTraits : 'FASTPyTCallable classTrait + FASTPyTExecutable classTrait + FASTPyTSuperclass classTrait + FASTTWithCondition classTrait',
#instVars : [
'#elseExpression => FMOne type: #FASTPyExpression opposite: #parentConditionalExpressionElse',
'#thenExpression => FMOne type: #FASTPyExpression opposite: #parentConditionalExpressionThen'
],
#category : 'FAST-Python-Model-Entities',
#package : 'FAST-Python-Model',
#tag : 'Entities'
}
{ #category : 'meta' }
FASTPyConditionalExpression class >> annotation [
<FMClass: #ConditionalExpression super: #FASTPyExpression>
<package: #'FAST-Python-Model'>
<generated>
^ self
]
{ #category : 'accessing' }
FASTPyConditionalExpression >> elseExpression [
"Relation named: #elseExpression type: #FASTPyExpression opposite: #parentConditionalExpressionElse"
<generated>
^ elseExpression
]
{ #category : 'accessing' }
FASTPyConditionalExpression >> elseExpression: anObject [
<generated>
elseExpression := anObject
]
{ #category : 'accessing' }
FASTPyConditionalExpression >> thenExpression [
"Relation named: #thenExpression type: #FASTPyExpression opposite: #parentConditionalExpressionThen"
<generated>
^ thenExpression
]
{ #category : 'accessing' }
FASTPyConditionalExpression >> thenExpression: anObject [
<generated>
thenExpression := anObject
]