-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start to manage stubs for accesses or references
- Loading branch information
Showing
8 changed files
with
191 additions
and
4 deletions.
There are no files selected for viewing
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
78 changes: 78 additions & 0 deletions
78
src/Famix-Python-Entities/FamixPythonUnknowAccessOrReference.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,78 @@ | ||
" | ||
## Relations | ||
====================== | ||
### Association source | ||
| Relation | Origin | Opposite | Type | Comment | | ||
|---| | ||
| `accessorOrReferencer` | `FamixPythonUnknowAccessOrReference` | `unknowAccessOrReference` | `FamixPythonContainerEntity` | | | ||
### Association target | ||
| Relation | Origin | Opposite | Type | Comment | | ||
|---| | ||
| `unknownEntity` | `FamixPythonUnknowAccessOrReference` | `accessesOrReferences` | `FamixPythonUnknownAccessedOrReferencedEntity` | | | ||
### Other | ||
| Relation | Origin | Opposite | Type | Comment | | ||
|---| | ||
| `next` | `FamixTAssociation` | `previous` | `FamixTAssociation` | Next association in an ordered collection of associations. Currently not supported by the Moose importer| | ||
| `previous` | `FamixTAssociation` | `next` | `FamixTAssociation` | Previous association in an ordered collection of associations. Currently not supported by the Moose importer| | ||
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity| | ||
" | ||
Class { | ||
#name : 'FamixPythonUnknowAccessOrReference', | ||
#superclass : 'FamixPythonEntity', | ||
#traits : 'FamixTAssociation', | ||
#classTraits : 'FamixTAssociation classTrait', | ||
#instVars : [ | ||
'#accessorOrReferencer => FMOne type: #FamixPythonContainerEntity opposite: #unknowAccessesOrReferences', | ||
'#unknownEntity => FMOne type: #FamixPythonUnknownAccessedOrReferencedEntity opposite: #accessesOrReferences' | ||
], | ||
#category : 'Famix-Python-Entities-Entities', | ||
#package : 'Famix-Python-Entities', | ||
#tag : 'Entities' | ||
} | ||
|
||
{ #category : 'meta' } | ||
FamixPythonUnknowAccessOrReference class >> annotation [ | ||
|
||
<FMClass: #UnknowAccessOrReference super: #FamixPythonEntity> | ||
<package: #'Famix-Python-Entities'> | ||
<generated> | ||
^ self | ||
] | ||
|
||
{ #category : 'accessing' } | ||
FamixPythonUnknowAccessOrReference >> accessorOrReferencer [ | ||
"Relation named: #accessorOrReferencer type: #FamixPythonContainerEntity opposite: #unknowAccessOrReference" | ||
|
||
<generated> | ||
<source> | ||
^ accessorOrReferencer | ||
] | ||
|
||
{ #category : 'accessing' } | ||
FamixPythonUnknowAccessOrReference >> accessorOrReferencer: anObject [ | ||
|
||
<generated> | ||
accessorOrReferencer := anObject | ||
] | ||
|
||
{ #category : 'accessing' } | ||
FamixPythonUnknowAccessOrReference >> unknownEntity [ | ||
"Relation named: #unknownEntity type: #FamixPythonUnknownAccessedOrReferencedEntity opposite: #accessesOrReferences" | ||
|
||
<generated> | ||
<target> | ||
^ unknownEntity | ||
] | ||
|
||
{ #category : 'accessing' } | ||
FamixPythonUnknowAccessOrReference >> unknownEntity: anObject [ | ||
|
||
<generated> | ||
unknownEntity := 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
10 changes: 10 additions & 0 deletions
10
src/Famix-Python-Importer/FamixPythonUnknownAccessedOrReferencedEntity.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Extension { #name : 'FamixPythonUnknownAccessedOrReferencedEntity' } | ||
|
||
{ #category : '*Famix-Python-Importer' } | ||
FamixPythonUnknownAccessedOrReferencedEntity >> createAccessOrReferenceFrom: anEntity node: aNode [ | ||
|
||
^ anEntity mooseModel newUnknowAccessOrReference | ||
unknownEntity: self; | ||
accessorOrReferencer: anEntity; | ||
yourself | ||
] |