Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving the link between Package and TWithClasses in FamixGenerator. R… #465

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/Famix-Java-Entities/FamixJavaPackage.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ FamixJavaPackage >> childrenOfMyKind [
^ self childEntities allWithSubTypesOf: self class
]

{ #category : #accessing }
FamixJavaPackage >> classes [
^ self cacheAt: #classes ifAbsentPut: [ self childEntities select: [ :child | child isClass ] ]
]

{ #category : #'Famix-Extensions-accessing' }
FamixJavaPackage >> containedEntities [
^ super containedEntities union: self childEntities
Expand Down
1 change: 1 addition & 0 deletions src/Famix-MetamodelGeneration/FamixGenerator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ FamixGenerator >> defineHierarchy [
tPackage --|> tNamedEntity.
tPackage --|> #TEntityMetaLevelDependency.
tPackage --|> tSourceEntity.
tPackage --|> tWithClasses.

tParameter --|> tStructuralEntity.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ FamixPharoSmalltalkGenerator >> defineHierarchy [
package --|> namedEntity.
package --|> #TPackage.
package --|> #TWithGlobalVariables.
package --|> #TWithClasses.
package --|> #TCohesionCouplingMetrics.

parameter --|> namedEntity.
Expand Down
4 changes: 2 additions & 2 deletions src/Famix-Traits/FamixTPackage.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Trait {
#instVars : [
'#childEntities => FMMany type: #FamixTPackageable opposite: #parentPackage'
],
#traits : 'FamixTNamedEntity + FamixTSourceEntity + TEntityMetaLevelDependency',
#classTraits : 'FamixTNamedEntity classTrait + FamixTSourceEntity classTrait + TEntityMetaLevelDependency classTrait',
#traits : 'FamixTNamedEntity + FamixTSourceEntity + FamixTWithClasses + TEntityMetaLevelDependency',
#classTraits : 'FamixTNamedEntity classTrait + FamixTSourceEntity classTrait + FamixTWithClasses classTrait + TEntityMetaLevelDependency classTrait',
#category : #'Famix-Traits-Package'
}

Expand Down