Skip to content

Commit

Permalink
Finish to use new reference infra
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Dec 20, 2024
1 parent 7c0be16 commit 2dc06c9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 137 deletions.
24 changes: 0 additions & 24 deletions src/Famix-Python-Entities/FamixPythonContainerEntity.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
### Outgoing dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
| `outgoingFunctionReferences` | `FamixPythonContainerEntity` | `referencer` | `FamixPythonFunctionReference` | |
| `outgoingImports` | `FamixTWithImports` | `importingEntity` | `FamixTImport` | |
| `unknowAccessesOrReferences` | `FamixPythonContainerEntity` | `accessorOrReferencer` | `FamixPythonUnknowAccessOrReference` | |
Expand All @@ -23,7 +22,6 @@ Class {
#traits : 'FamixTWithClasses + FamixTWithImports',
#classTraits : 'FamixTWithClasses classTrait + FamixTWithImports classTrait',
#instVars : [
'#outgoingFunctionReferences => FMMany type: #FamixPythonFunctionReference opposite: #referencer',
'#unknowAccessesOrReferences => FMMany type: #FamixPythonUnknowAccessOrReference opposite: #accessorOrReferencer'
],
#category : 'Famix-Python-Entities-Entities',
Expand All @@ -48,34 +46,12 @@ FamixPythonContainerEntity class >> isAbstract [
^ self == FamixPythonContainerEntity
]

{ #category : 'adding' }
FamixPythonContainerEntity >> addOutgoingFunctionReference: anObject [
<generated>
^ self outgoingFunctionReferences add: anObject
]

{ #category : 'adding' }
FamixPythonContainerEntity >> addUnknowAccessesOrReference: anObject [
<generated>
^ self unknowAccessesOrReferences add: anObject
]

{ #category : 'accessing' }
FamixPythonContainerEntity >> outgoingFunctionReferences [
"Relation named: #outgoingFunctionReferences type: #FamixPythonFunctionReference opposite: #referencer"

<generated>
<derived>
^ outgoingFunctionReferences
]

{ #category : 'accessing' }
FamixPythonContainerEntity >> outgoingFunctionReferences: anObject [

<generated>
outgoingFunctionReferences value: anObject
]

{ #category : 'accessing' }
FamixPythonContainerEntity >> unknowAccessesOrReferences [
"Relation named: #unknowAccessesOrReferences type: #FamixPythonUnknowAccessOrReference opposite: #accessorOrReferencer"
Expand Down
31 changes: 3 additions & 28 deletions src/Famix-Python-Entities/FamixPythonFunction.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
### Incoming dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
| `incomingFunctionReferences` | `FamixPythonFunction` | `referredFunction` | `FamixPythonFunctionReference` | |
| `incomingImports` | `FamixTImportable` | `importedEntity` | `FamixTImport` | List of imports of this entity|
| `incomingInvocations` | `FamixTInvocable` | `candidates` | `FamixTInvocation` | Incoming invocations from other behaviours computed by the candidate operator.|
| `incomingReferences` | `FamixTReferenceable` | `referredType` | `FamixTReference` | References to this entity by other entities.|
### Other
| Relation | Origin | Opposite | Type | Comment |
Expand All @@ -54,11 +54,8 @@
Class {
#name : 'FamixPythonFunction',
#superclass : 'FamixPythonContainerEntity',
#traits : 'FamixTFunction + FamixTImportable + FamixTShadowable + FamixTShadower + FamixTWithAnnotationInstances + FamixTWithComments + FamixTWithFunctions + FamixTWithImplicitVariables + FamixTWithInvocations + FamixTWithLambdas',
#classTraits : 'FamixTFunction classTrait + FamixTImportable classTrait + FamixTShadowable classTrait + FamixTShadower classTrait + FamixTWithAnnotationInstances classTrait + FamixTWithComments classTrait + FamixTWithFunctions classTrait + FamixTWithImplicitVariables classTrait + FamixTWithInvocations classTrait + FamixTWithLambdas classTrait',
#instVars : [
'#incomingFunctionReferences => FMMany type: #FamixPythonFunctionReference opposite: #referredFunction'
],
#traits : 'FamixTFunction + FamixTImportable + FamixTReferenceable + FamixTShadowable + FamixTShadower + FamixTWithAnnotationInstances + FamixTWithComments + FamixTWithFunctions + FamixTWithImplicitVariables + FamixTWithInvocations + FamixTWithLambdas',
#classTraits : 'FamixTFunction classTrait + FamixTImportable classTrait + FamixTReferenceable classTrait + FamixTShadowable classTrait + FamixTShadower classTrait + FamixTWithAnnotationInstances classTrait + FamixTWithComments classTrait + FamixTWithFunctions classTrait + FamixTWithImplicitVariables classTrait + FamixTWithInvocations classTrait + FamixTWithLambdas classTrait',
#category : 'Famix-Python-Entities-Entities',
#package : 'Famix-Python-Entities',
#tag : 'Entities'
Expand All @@ -72,25 +69,3 @@ FamixPythonFunction class >> annotation [
<generated>
^ self
]

{ #category : 'adding' }
FamixPythonFunction >> addIncomingFunctionReference: anObject [
<generated>
^ self incomingFunctionReferences add: anObject
]

{ #category : 'accessing' }
FamixPythonFunction >> incomingFunctionReferences [
"Relation named: #incomingFunctionReferences type: #FamixPythonFunctionReference opposite: #referredFunction"

<generated>
<derived>
^ incomingFunctionReferences
]

{ #category : 'accessing' }
FamixPythonFunction >> incomingFunctionReferences: anObject [

<generated>
incomingFunctionReferences value: anObject
]
78 changes: 0 additions & 78 deletions src/Famix-Python-Entities/FamixPythonFunctionReference.class.st

This file was deleted.

7 changes: 0 additions & 7 deletions src/Famix-Python-Entities/FamixPythonTEntityCreator.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,6 @@ FamixPythonTEntityCreator >> newFunctionNamed: aName [
^ self add: (FamixPythonFunction named: aName)
]

{ #category : 'entity creation' }
FamixPythonTEntityCreator >> newFunctionReference [

<generated>
^ self add: FamixPythonFunctionReference new
]

{ #category : 'entity creation' }
FamixPythonTEntityCreator >> newGlobalVariable [

Expand Down

0 comments on commit 2dc06c9

Please sign in to comment.