Skip to content

Commit 6315827

Browse files
committed
Manage position and keyword separators
1 parent 9c6d320 commit 6315827

File tree

4 files changed

+402
-0
lines changed

4 files changed

+402
-0
lines changed

src/FAST-Python-Model-Generator/FASTPythonMetamodelGenerator.class.st

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,8 @@ FASTPythonMetamodelGenerator >> defineHierarchy [
447447
keywordArgument --|> expression.
448448
keywordArgument --|> tNamedEntity.
449449

450+
keywordSeparator --|> tVariableEntity. "I'm not fan because they cannot be in assignation but that will do for now."
451+
450452
lambda --|> expression.
451453
lambda --|> tWithParameters.
452454
lambda --|> tDecoratorExpression.
@@ -488,6 +490,8 @@ FASTPythonMetamodelGenerator >> defineHierarchy [
488490

489491
passStatement --|> statement.
490492

493+
positionalSeparator --|> tVariableEntity. "I'm not fan because they cannot be in assignation but that will do for now."
494+
491495
printStatement --|> statement.
492496

493497
raiseStatement --|> statement.

src/FAST-Python-Model/FASTPyKeywordSeparator.class.st

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
1+
"
2+
## Relations
3+
======================
4+
5+
### Parents
6+
| Relation | Origin | Opposite | Type | Comment |
7+
|---|
8+
| `invokedIn` | `FASTTNamedEntity` | `invoked` | `FASTTInvocation` | Optional invocation where this name is used|
9+
| `parameterOwner` | `FASTTVariableEntity` | `parameters` | `FASTTWithParameters` | parameterOwner|
10+
| `parentAssignmentExpression` | `FASTTVariableEntity` | `variable` | `FASTTAssignment` | Optional assignment to the variable|
11+
12+
13+
## Properties
14+
======================
15+
16+
| Name | Type | Default value | Comment |
17+
|---|
18+
| `endPos` | `Number` | nil | |
19+
| `name` | `String` | nil | |
20+
| `startPos` | `Number` | nil | |
21+
22+
"
123
Class {
224
#name : 'FASTPyKeywordSeparator',
325
#superclass : 'FASTPyEntity',
26+
#traits : 'FASTTVariableEntity',
27+
#classTraits : 'FASTTVariableEntity classTrait',
428
#category : 'FAST-Python-Model-Entities',
529
#package : 'FAST-Python-Model',
630
#tag : 'Entities'

src/FAST-Python-Model/FASTPyPositionalSeparator.class.st

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
1+
"
2+
## Relations
3+
======================
4+
5+
### Parents
6+
| Relation | Origin | Opposite | Type | Comment |
7+
|---|
8+
| `invokedIn` | `FASTTNamedEntity` | `invoked` | `FASTTInvocation` | Optional invocation where this name is used|
9+
| `parameterOwner` | `FASTTVariableEntity` | `parameters` | `FASTTWithParameters` | parameterOwner|
10+
| `parentAssignmentExpression` | `FASTTVariableEntity` | `variable` | `FASTTAssignment` | Optional assignment to the variable|
11+
12+
13+
## Properties
14+
======================
15+
16+
| Name | Type | Default value | Comment |
17+
|---|
18+
| `endPos` | `Number` | nil | |
19+
| `name` | `String` | nil | |
20+
| `startPos` | `Number` | nil | |
21+
22+
"
123
Class {
224
#name : 'FASTPyPositionalSeparator',
325
#superclass : 'FASTPyEntity',
26+
#traits : 'FASTTVariableEntity',
27+
#classTraits : 'FASTTVariableEntity classTrait',
428
#category : 'FAST-Python-Model-Entities',
529
#package : 'FAST-Python-Model',
630
#tag : 'Entities'

0 commit comments

Comments
 (0)