-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closure
entity with bound variable association
- Loading branch information
1 parent
0b82586
commit cad0de6
Showing
7 changed files
with
170 additions
and
45 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/Famix-Value-Entities-Extensions/FamixValueUnknownType.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
src/Famix-Value-Entities/FamixValueOfClosureVariable.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
" | ||
A variable binding in a lexical closure. | ||
## Relations | ||
====================== | ||
### Other | ||
| Relation | Origin | Opposite | Type | Comment | | ||
|---| | ||
| `closure` | `FamixValueOfClosureVariable` | `variables` | `FamixValueOfClosure` | | | ||
| `value` | `FamixValueOfClosureVariable` | `variableInClosures` | `FamixValueOfType` | | | ||
## Properties | ||
====================== | ||
| Name | Type | Default value | Comment | | ||
|---| | ||
| `name` | `String` | nil | Name of the variable bound to the closure.| | ||
" | ||
Class { | ||
#name : #FamixValueOfClosureVariable, | ||
#superclass : #FamixValueEntity, | ||
#instVars : [ | ||
'#name => FMProperty', | ||
'#closure => FMOne type: #FamixValueOfClosure opposite: #variables', | ||
'#value => FMOne type: #FamixValueOfType opposite: #variableInClosures' | ||
], | ||
#category : #'Famix-Value-Entities-Entities' | ||
} | ||
|
||
{ #category : #meta } | ||
FamixValueOfClosureVariable class >> annotation [ | ||
|
||
<FMClass: #OfClosureVariable super: #FamixValueEntity> | ||
<package: #'Famix-Value-Entities'> | ||
<generated> | ||
^ self | ||
] | ||
|
||
{ #category : #accessing } | ||
FamixValueOfClosureVariable >> closure [ | ||
"Relation named: #closure type: #FamixValueOfClosure opposite: #variables" | ||
|
||
<generated> | ||
^ closure | ||
] | ||
|
||
{ #category : #accessing } | ||
FamixValueOfClosureVariable >> closure: anObject [ | ||
|
||
<generated> | ||
closure := anObject | ||
] | ||
|
||
{ #category : #accessing } | ||
FamixValueOfClosureVariable >> name [ | ||
|
||
<FMProperty: #name type: #String> | ||
<generated> | ||
<FMComment: 'Name of the variable bound to the closure.'> | ||
^ name | ||
] | ||
|
||
{ #category : #accessing } | ||
FamixValueOfClosureVariable >> name: anObject [ | ||
<generated> | ||
name := anObject | ||
] | ||
|
||
{ #category : #accessing } | ||
FamixValueOfClosureVariable >> value [ | ||
"Relation named: #value type: #FamixValueOfType opposite: #variableInClosures" | ||
|
||
<generated> | ||
^ value | ||
] | ||
|
||
{ #category : #accessing } | ||
FamixValueOfClosureVariable >> value: anObject [ | ||
|
||
<generated> | ||
value := anObject | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters