Skip to content
Merged
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
2 changes: 0 additions & 2 deletions src/Famix-Java-Entities/FamixJavaTBound.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ FamixJavaTBound >> lowerBoundedWildcards [
<ignoreForCoverage>
<generated>
<FMComment: 'Wildcards lower bounded by this bound.'>
<derived>
^ lowerBoundedWildcards
]

Expand All @@ -75,7 +74,6 @@ FamixJavaTBound >> upperBoundedWildcards [
<ignoreForCoverage>
<generated>
<FMComment: 'Wildcards upper bounded by this bound.'>
<derived>
^ upperBoundedWildcards
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ FmxMBRelationAccessorsGenerationStrategy >> generateGetterCodeFor: aRelation [
tab;
nextPutAll: '<container>';
cr ].
aRelation isDerived ifTrue: [
s
tab;
nextPutAll: '<derived>';
cr ].
aRelation isSource ifTrue: [
s
tab;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ FmxMBRelationSideTrait >> manyToMany: relationOrBehavior [
ownSide := self asRelationNamed: relationOrBehavior pluralPropertyName.
oppositeSide := relationOrBehavior asRelationNamed: self pluralPropertyName.
ownSide many.
ownSide derived.
oppositeSide many.
ownSide oppositeSide: oppositeSide.

Expand All @@ -118,7 +117,6 @@ FmxMBRelationSideTrait >> manyToOne: relationOrBehavior [
ownSide := self asRelationNamed: relationOrBehavior singularPropertyName.
oppositeSide := relationOrBehavior asRelationNamed: self pluralPropertyName.
oppositeSide many.
oppositeSide derived.
ownSide oppositeSide: oppositeSide.

self isRemote ifTrue: [ ownSide makeRemote ].
Expand All @@ -142,7 +140,6 @@ FmxMBRelationSideTrait >> oneToMany: relationOrBehavior [
ownSide := self asRelationNamed: relationOrBehavior pluralPropertyName.
oppositeSide := relationOrBehavior asRelationNamed: self singularPropertyName.
ownSide many.
ownSide derived.
ownSide oppositeSide: oppositeSide.

self isRemote ifTrue: [ ownSide makeRemote ].
Expand All @@ -157,7 +154,6 @@ FmxMBRelationSideTrait >> oneToOne: relationOrBehavior [
| ownSide oppositeSide |
ownSide := self asRelationNamed: relationOrBehavior propertyName.
oppositeSide := relationOrBehavior asRelationNamed: self propertyName.
oppositeSide derived.
ownSide oppositeSide: oppositeSide.

self isRemote ifTrue: [ ownSide makeRemote ].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ FmxTraitsTestGenerateAccessorBTraitB >> relationToA [
"Relation named: #relationToA type: #FmxTraitsTestGenerateAccessorATraitA opposite: #relationToB"

<generated>
<derived>
<FMProperty: #relationToA type: #FmxTraitsTestGenerateAccessorATraitA opposite: #relationToB>
^ self attributeAt: #relationToA ifAbsent: [ nil ]
]
Expand Down
18 changes: 18 additions & 0 deletions src/Famix-Test1-Tests/FamixClassTest.class.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
Class {
#name : 'FamixClassTest',
#superclass : 'FamixTest1SimpleModelTest',
#instVars : [
'a2'
],
#category : 'Famix-Test1-Tests',
#package : 'Famix-Test1-Tests'
}

{ #category : 'running' }
FamixClassTest >> setUp [

super setUp.
a2 := FamixTest1Attribute named: 'attribute2' model: model.
c1 addAttribute: a2
]

{ #category : 'tests' }
FamixClassTest >> testAttributesOrder [
"Regression test. Before exporting and importing entities was switching the order of the many side of one-many relations."

self assert: (c1 attributes collect: #name) equals: #( 'attribute1' 'attribute2' ) asOrderedCollection
]

{ #category : 'tests' }
FamixClassTest >> testComments [

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Test4-Entities/FamixTest4Computer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ FamixTest4Computer >> classroom [
<ignoreForCoverage>
<generated>
<container>
<derived>
^ classroom
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Test4-Entities/FamixTest4Person.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ FamixTest4Person >> books [

<ignoreForCoverage>
<generated>
<derived>
^ books
]

Expand Down
4 changes: 0 additions & 4 deletions src/Famix-Test4-Entities/FamixTest4School.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ FamixTest4School >> principal [

<ignoreForCoverage>
<generated>
<derived>
^ principal
]

Expand All @@ -84,7 +83,6 @@ FamixTest4School >> rooms [

<ignoreForCoverage>
<generated>
<derived>
^ rooms
]

Expand All @@ -102,7 +100,6 @@ FamixTest4School >> students [

<ignoreForCoverage>
<generated>
<derived>
^ students
]

Expand All @@ -120,7 +117,6 @@ FamixTest4School >> teachers [

<ignoreForCoverage>
<generated>
<derived>
^ teachers
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Test4-Entities/FamixTest4Student.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ FamixTest4Student >> teachers [

<ignoreForCoverage>
<generated>
<derived>
^ teachers
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Test8-Entities/FamixTest8TBiotope.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ FamixTest8TBiotope >> incomingResidences [

<ignoreForCoverage>
<generated>
<derived>
^ incomingResidences
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Test8-Entities/FamixTest8TInfectable.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ FamixTest8TInfectable >> outgoingInfections [

<ignoreForCoverage>
<generated>
<derived>
^ outgoingInfections
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Test8-Entities/FamixTest8TInfectious.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ FamixTest8TInfectious >> incomingInfections [

<ignoreForCoverage>
<generated>
<derived>
^ incomingInfections
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Test8-Entities/FamixTest8TResident.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ FamixTest8TResident >> outgoingResidences [

<ignoreForCoverage>
<generated>
<derived>
^ outgoingResidences
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ FamixTestComposed1CustomEntity1 >> customEntity1 [
<ignoreForCoverage>
<generated>
<container>
<derived>
<FMProperty: #customEntity1 type: #FamixTestComposedCustomEntity1 opposite: #customEntity1>
<package: #'Famix-TestComposedMetamodel-Entities'>
^ self attributeAt: #customEntity1 ifAbsent: [ nil ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ FamixTestComposed1CustomEntity2 >> c22s [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #c22s type: #FamixTestComposed2CustomEntity2 opposite: #c12>
<multivalued>
<package: #'Famix-TestComposedMetamodel-Entities'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ FamixTestComposed1CustomEntity3 >> customEntities3 [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #customEntities3 type: #FamixTestComposedCustomEntity3 opposite: #customEntity3>
<multivalued>
<package: #'Famix-TestComposedMetamodel-Entities'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ FamixTestComposed1CustomEntity4 >> c24s [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #c24s type: #FamixTestComposed2CustomEntity4 opposite: #c14s>
<multivalued>
<package: #'Famix-TestComposedMetamodel-Entities'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ FamixTestComposed1CustomEntity5 >> associations [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #associations type: #FamixTestComposedAssociation opposite: #c15>
<multivalued>
<package: #'Famix-TestComposedMetamodel-Entities'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ FamixTestComposed1Method >> standardEntity [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #standardEntity type: #FamixTestComposedStandardEntity opposite: #method>
<package: #'Famix-TestComposedMetamodel-Entities'>
^ self attributeAt: #standardEntity ifAbsent: [ nil ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ FamixTestComposed2CustomEntity1 >> c1 [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #c1 type: #FamixTestComposedCustomEntity1 opposite: #c21>
<package: #'Famix-TestComposedMetamodel-Entities'>
^ self attributeAt: #c1 ifAbsent: [ nil ]
Expand All @@ -18,7 +17,6 @@ FamixTestComposed2CustomEntity1 >> c11 [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #c11 type: #FamixTestComposed1CustomEntity1 opposite: #c21>
<package: #'Famix-TestComposedMetamodel-Entities'>
^ self attributeAt: #c11 ifAbsent: [ nil ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ FamixTestComposed2CustomEntity3 >> c13s [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #c13s type: #FamixTestComposed1CustomEntity3 opposite: #c23>
<multivalued>
<package: #'Famix-TestComposedMetamodel-Entities'>
Expand All @@ -29,7 +28,6 @@ FamixTestComposed2CustomEntity3 >> c3s [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #c3s type: #FamixTestComposedCustomEntity3 opposite: #c23>
<multivalued>
<package: #'Famix-TestComposedMetamodel-Entities'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ FamixTestComposed2CustomEntity5 >> associations [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #associations type: #FamixTestComposedAssociation opposite: #c25>
<multivalued>
<package: #'Famix-TestComposedMetamodel-Entities'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ FamixTestComposedCustomEntity2 >> c22s [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #c22s type: #FamixTestComposed2CustomEntity2 opposite: #c2>
<multivalued>
^ self attributeAt: #c22s ifAbsentPut: [ FMMultivalueLink on: self opposite: #c2: ]
Expand All @@ -70,7 +69,6 @@ FamixTestComposedCustomEntity2 >> customEntities2 [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #customEntities2 type: #FamixTestComposed1CustomEntity2 opposite: #customEntity2>
<multivalued>
^ self attributeAt: #customEntities2 ifAbsentPut: [ FMMultivalueLink on: self opposite: #customEntity2: ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ FamixTestComposedCustomEntity4 >> c24s [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #c24s type: #FamixTestComposed2CustomEntity4 opposite: #c4s>
<multivalued>
^ self attributeAt: #c24s ifAbsentPut: [ FMMultiMultivalueLink on: self opposite: #c4s ]
Expand All @@ -70,7 +69,6 @@ FamixTestComposedCustomEntity4 >> customEntities4 [

<ignoreForCoverage>
<generated>
<derived>
<FMProperty: #customEntities4 type: #FamixTestComposed1CustomEntity4 opposite: #customEntities4>
<multivalued>
^ self attributeAt: #customEntities4 ifAbsentPut: [ FMMultiMultivalueLink on: self opposite: #customEntities4 ]
Expand Down
1 change: 0 additions & 1 deletion src/Famix-Traits/FamixTAccess.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ FamixTAccess >> candidates [
<ignoreForCoverage>
<generated>
<FMComment: 'Variables that cas be the accessed variable. to-side of the association. Most of the time it will be only one variable, but some languages might have candidates such as Python.'>
<derived>
<target>
^ candidates
]
Expand Down
1 change: 0 additions & 1 deletion src/Famix-Traits/FamixTAnnotationInstance.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ FamixTAnnotationInstance >> attributes [
<ignoreForCoverage>
<generated>
<FMComment: 'This corresponds to the actual values of the attributes in an AnnotationInstance'>
<derived>
^ attributes
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Traits/FamixTAnnotationType.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ FamixTAnnotationType >> instances [
<ignoreForCoverage>
<generated>
<FMComment: 'Annotations of this type'>
<derived>
^ instances
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Traits/FamixTAnnotationTypeAttribute.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ FamixTAnnotationTypeAttribute >> annotationAttributeInstances [
<ignoreForCoverage>
<generated>
<FMComment: 'A collection of AnnotationInstanceAttribute which hold the usages of this attribute in actual AnnotationInstances'>
<derived>
^ annotationAttributeInstances
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Traits/FamixTAssociation.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ FamixTAssociation >> next [
<ignoreForCoverage>
<generated>
<FMComment: 'Next association in an ordered collection of associations. Currently not supported by the Moose importer'>
<derived>
^ next
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Traits/FamixTCanImplement.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ FamixTCanImplement >> interfaceImplementations [
<ignoreForCoverage>
<generated>
<FMComment: 'Implementation relationships'>
<derived>
^ interfaceImplementations
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Traits/FamixTEntityTyping.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ FamixTEntityTyping >> typedEntity [
<ignoreForCoverage>
<generated>
<FMComment: 'Entity deckaring the type.'>
<derived>
<source>
^ typedEntity
]
Expand Down
1 change: 0 additions & 1 deletion src/Famix-Traits/FamixTFile.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ FamixTFile >> entities [
<ignoreForCoverage>
<generated>
<FMComment: 'List of entities defined in the file'>
<derived>
^ entities
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Traits/FamixTFolder.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ FamixTFolder >> childrenFileSystemEntities [
<ignoreForCoverage>
<generated>
<FMComment: 'List of entities contained in this folder.'>
<derived>
^ childrenFileSystemEntities
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Traits/FamixTImplementable.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ FamixTImplementable >> implementations [
<ignoreForCoverage>
<generated>
<FMComment: 'Implementation relationships.'>
<derived>
^ implementations
]

Expand Down
1 change: 0 additions & 1 deletion src/Famix-Traits/FamixTImportable.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ FamixTImportable >> incomingImports [
<ignoreForCoverage>
<generated>
<FMComment: 'List of imports of this entity'>
<derived>
^ incomingImports
]

Expand Down
Loading
Loading