Skip to content

Commit 2b46060

Browse files
authored
Merge pull request #736 from moosetechnology/make-comments-child-of-commented-entities
Make comments children of commented entities
2 parents 83038d2 + 1a2fed3 commit 2b46060

File tree

46 files changed

+133
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+133
-62
lines changed

src/Famix-Java-Entities/FamixJavaAnnotationType.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
| Relation | Origin | Opposite | Type | Comment |
1313
|---|
1414
| `attributes` | `FamixTWithAttributes` | `parentType` | `FamixTAttribute` | List of attributes declared by this type.|
15+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1516
1617
### Outgoing dependencies
1718
| Relation | Origin | Opposite | Type | Comment |
@@ -27,7 +28,6 @@
2728
### Other
2829
| Relation | Origin | Opposite | Type | Comment |
2930
|---|
30-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
3131
| `instances` | `FamixTAnnotationType` | `annotationType` | `FamixTTypedAnnotationInstance` | Annotations of this type|
3232
3333

src/Famix-Java-Entities/FamixJavaAnnotationTypeAttribute.class.st

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
|---|
88
| `parentType` | `FamixTAttribute` | `attributes` | `FamixTWithAttributes` | Type declaring the attribute. belongsTo implementation|
99
10+
### Children
11+
| Relation | Origin | Opposite | Type | Comment |
12+
|---|
13+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
14+
1015
### Incoming dependencies
1116
| Relation | Origin | Opposite | Type | Comment |
1217
|---|
@@ -17,7 +22,6 @@
1722
|---|
1823
| `annotationAttributeInstances` | `FamixTAnnotationTypeAttribute` | `annotationTypeAttribute` | `FamixTTypedAnnotationInstanceAttribute` | A collection of AnnotationInstanceAttribute which hold the usages of this attribute in actual AnnotationInstances|
1924
| `annotationTypeAttribute` | `FamixTTypedAnnotationInstanceAttribute` | `annotationAttributeInstances` | `FamixTAnnotationTypeAttribute` | This corresponds to the type of the attribute in an AnnotationInstance|
20-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
2125
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
2226
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
2327

src/Famix-Java-Entities/FamixJavaAttribute.class.st

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
|---|
88
| `parentType` | `FamixTAttribute` | `attributes` | `FamixTWithAttributes` | Type declaring the attribute. belongsTo implementation|
99
10+
### Children
11+
| Relation | Origin | Opposite | Type | Comment |
12+
|---|
13+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
14+
1015
### Incoming dependencies
1116
| Relation | Origin | Opposite | Type | Comment |
1217
|---|
@@ -15,7 +20,6 @@
1520
### Other
1621
| Relation | Origin | Opposite | Type | Comment |
1722
|---|
18-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1923
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
2024
| `receivingInvocations` | `FamixTInvocationsReceiver` | `receiver` | `FamixTInvocation` | List of invocations performed on this entity (considered as the receiver)|
2125
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|

src/Famix-Java-Entities/FamixJavaClass.class.st

+6-5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
| Relation | Origin | Opposite | Type | Comment |
1313
|---|
1414
| `attributes` | `FamixTWithAttributes` | `parentType` | `FamixTAttribute` | List of attributes declared by this type.|
15+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1516
| `methods` | `FamixTWithMethods` | `parentType` | `FamixTMethod` | Methods declared by this type.|
1617
1718
### Outgoing dependencies
@@ -31,7 +32,6 @@
3132
### Other
3233
| Relation | Origin | Opposite | Type | Comment |
3334
|---|
34-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
3535
| `receivingInvocations` | `FamixTInvocationsReceiver` | `receiver` | `FamixTInvocation` | List of invocations performed on this entity (considered as the receiver)|
3636
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
3737
| `typedEntities` | `FamixTType` | `declaredType` | `FamixTTypedEntity` | Entities that have this type as declaredType|
@@ -176,11 +176,12 @@ FamixJavaClass >> methodsWithoutSutbsAndConstructors [
176176
{ #category : #accessing }
177177
FamixJavaClass >> numberOfComments [
178178
"Overrides to include method comments in the numberOfComments of the class"
179-
^ self
180-
lookUpPropertyNamed: #numberOfComments
181-
computedAs: [ self children asArray
182-
inject: self comments size into: [ :sum :child | child numberOfComments + sum ] ]
183179

180+
^ self lookUpPropertyNamed: #numberOfComments computedAs: [
181+
self children asArray inject: self comments size into: [ :sum :child |
182+
(child class includesTrait: FamixTWithComments)
183+
ifTrue: [ child numberOfComments + sum ]
184+
ifFalse: [ sum ] ] ]
184185
]
185186

186187
{ #category : #'Famix-Extensions' }

src/Famix-Java-Entities/FamixJavaComment.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Relations
33
======================
44
5-
### Other
5+
### Parents
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
88
| `commentedEntity` | `FamixTComment` | `comments` | `FamixTWithComments` | Source code commented by the comment|

src/Famix-Java-Entities/FamixJavaEnum.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
| Relation | Origin | Opposite | Type | Comment |
1212
|---|
1313
| `attributes` | `FamixTWithAttributes` | `parentType` | `FamixTAttribute` | List of attributes declared by this type.|
14+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1415
| `enumValues` | `FamixTWithEnumValues` | `parentEnum` | `FamixTEnumValue` | |
1516
| `methods` | `FamixTWithMethods` | `parentType` | `FamixTMethod` | Methods declared by this type.|
1617
@@ -30,7 +31,6 @@
3031
### Other
3132
| Relation | Origin | Opposite | Type | Comment |
3233
|---|
33-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
3434
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
3535
| `typedEntities` | `FamixTType` | `declaredType` | `FamixTTypedEntity` | Entities that have this type as declaredType|
3636

src/Famix-Java-Entities/FamixJavaEnumValue.class.st

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
|---|
88
| `parentEnum` | `FamixTEnumValue` | `enumValues` | `FamixTWithEnumValues` | The Enum declaring this value. It offers the implementation of belongsTo|
99
10+
### Children
11+
| Relation | Origin | Opposite | Type | Comment |
12+
|---|
13+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
14+
1015
### Incoming dependencies
1116
| Relation | Origin | Opposite | Type | Comment |
1217
|---|
@@ -15,7 +20,6 @@
1520
### Other
1621
| Relation | Origin | Opposite | Type | Comment |
1722
|---|
18-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1923
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
2024
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
2125

src/Famix-Java-Entities/FamixJavaException.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
| Relation | Origin | Opposite | Type | Comment |
1212
|---|
1313
| `attributes` | `FamixTWithAttributes` | `parentType` | `FamixTAttribute` | List of attributes declared by this type.|
14+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1415
| `methods` | `FamixTWithMethods` | `parentType` | `FamixTMethod` | Methods declared by this type.|
1516
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
1617
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
@@ -32,7 +33,6 @@
3233
|---|
3334
| `annotationInstances` | `FamixTWithAnnotationInstances` | `annotatedEntity` | `FamixTAnnotationInstance` | This property corresponds to the set of annotations associated to the entity|
3435
| `catchingEntities` | `FamixTThrowable` | `caughtExceptions` | `FamixTWithExceptions` | |
35-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
3636
| `declaringEntities` | `FamixTThrowable` | `declaredExceptions` | `FamixTWithExceptions` | |
3737
| `receivingInvocations` | `FamixTInvocationsReceiver` | `receiver` | `FamixTInvocation` | List of invocations performed on this entity (considered as the receiver)|
3838
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|

src/Famix-Java-Entities/FamixJavaInterface.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
| Relation | Origin | Opposite | Type | Comment |
1212
|---|
1313
| `attributes` | `FamixTWithAttributes` | `parentType` | `FamixTAttribute` | List of attributes declared by this type.|
14+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1415
| `methods` | `FamixTWithMethods` | `parentType` | `FamixTMethod` | Methods declared by this type.|
1516
1617
### Outgoing dependencies
@@ -29,7 +30,6 @@
2930
### Other
3031
| Relation | Origin | Opposite | Type | Comment |
3132
|---|
32-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
3333
| `receivingInvocations` | `FamixTInvocationsReceiver` | `receiver` | `FamixTInvocation` | List of invocations performed on this entity (considered as the receiver)|
3434
3535

src/Famix-Java-Entities/FamixJavaLocalVariable.class.st

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
|---|
88
| `parentBehaviouralEntity` | `FamixTLocalVariable` | `localVariables` | `FamixTWithLocalVariables` | Behavioural entity declaring this local variable. belongsTo implementation|
99
10+
### Children
11+
| Relation | Origin | Opposite | Type | Comment |
12+
|---|
13+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
14+
1015
### Incoming dependencies
1116
| Relation | Origin | Opposite | Type | Comment |
1217
|---|
@@ -15,7 +20,6 @@
1520
### Other
1621
| Relation | Origin | Opposite | Type | Comment |
1722
|---|
18-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1923
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
2024
| `receivingInvocations` | `FamixTInvocationsReceiver` | `receiver` | `FamixTInvocation` | List of invocations performed on this entity (considered as the receiver)|
2125
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|

src/Famix-Java-Entities/FamixJavaMethod.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
### Children
1111
| Relation | Origin | Opposite | Type | Comment |
1212
|---|
13+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1314
| `implicitVariables` | `FamixTWithImplicitVariables` | `parentBehaviouralEntity` | `FamixTImplicitVariable` | Implicit variables used locally by this behaviour.|
1415
| `localVariables` | `FamixTWithLocalVariables` | `parentBehaviouralEntity` | `FamixTLocalVariable` | Variables locally defined by this behaviour.|
1516
| `parameters` | `FamixTWithParameters` | `parentBehaviouralEntity` | `FamixTParameter` | List of formal parameters declared by this behaviour.|
@@ -31,7 +32,6 @@
3132
| Relation | Origin | Opposite | Type | Comment |
3233
|---|
3334
| `caughtExceptions` | `FamixTWithExceptions` | `catchingEntities` | `FamixTThrowable` | The exceptions caught by the method|
34-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
3535
| `declaredExceptions` | `FamixTWithExceptions` | `declaringEntities` | `FamixTThrowable` | The exceptions declared by the method|
3636
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
3737
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|

src/Famix-Java-Entities/FamixJavaPackage.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
| Relation | Origin | Opposite | Type | Comment |
1212
|---|
1313
| `childEntities` | `FamixTPackage` | `parentPackage` | `FamixTPackageable` | |
14+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1415
1516
### Incoming dependencies
1617
| Relation | Origin | Opposite | Type | Comment |
@@ -20,7 +21,6 @@
2021
### Other
2122
| Relation | Origin | Opposite | Type | Comment |
2223
|---|
23-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
2424
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
2525
2626

src/Famix-Java-Entities/FamixJavaParameter.class.st

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
|---|
88
| `parentBehaviouralEntity` | `FamixTParameter` | `parameters` | `FamixTWithParameters` | Behavioural entity containing this parameter. belongsTo implementation|
99
10+
### Children
11+
| Relation | Origin | Opposite | Type | Comment |
12+
|---|
13+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
14+
1015
### Incoming dependencies
1116
| Relation | Origin | Opposite | Type | Comment |
1217
|---|
@@ -15,7 +20,6 @@
1520
### Other
1621
| Relation | Origin | Opposite | Type | Comment |
1722
|---|
18-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1923
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
2024
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
2125

src/Famix-MetamodelBuilder-Core/FmxPackageAddition.class.st

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ FmxPackageAddition class >> named: aName [
3333

3434
{ #category : #accessing }
3535
FmxPackageAddition >> apply [
36-
self packageOrganizer createPackageNamed: self packageName
36+
37+
self packageOrganizer ensurePackage: self packageName
3738
]
3839

3940
{ #category : #accessing }

src/Famix-MetamodelGeneration/FamixGenerator.class.st

+4-1
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,8 @@ FamixGenerator >> defineHierarchy [
987987
tClassWithVisibility --|> tHasVisibility.
988988

989989
tClassGroup --|> tTypeGroup.
990+
991+
tComment --|> #TEntityMetaLevelDependency.
990992

991993
tCompilationUnit --|> tFile.
992994

@@ -1251,7 +1253,8 @@ FamixGenerator >> defineRelations [
12511253
comment: 'The exceptions caught by the method').
12521254

12531255
((tComment property: #commentedEntity)
1254-
comment: 'Source code commented by the comment')
1256+
comment: 'Source code commented by the comment';
1257+
container)
12551258
*-
12561259
((tWithComments property: #comments)
12571260
comment: 'List of comments for the entity').

src/Famix-PharoSmalltalk-Entities/FamixStClass.class.st

+6-5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
| Relation | Origin | Opposite | Type | Comment |
1313
|---|
1414
| `attributes` | `FamixTWithAttributes` | `parentType` | `FamixTAttribute` | List of attributes declared by this type.|
15+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1516
| `methods` | `FamixTWithMethods` | `parentType` | `FamixTMethod` | Methods declared by this type.|
1617
1718
### Outgoing dependencies
@@ -28,7 +29,6 @@
2829
### Other
2930
| Relation | Origin | Opposite | Type | Comment |
3031
|---|
31-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
3232
| `receivingInvocations` | `FamixTInvocationsReceiver` | `receiver` | `FamixTInvocation` | List of invocations performed on this entity (considered as the receiver)|
3333
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
3434
| `typedEntities` | `FamixTType` | `declaredType` | `FamixTTypedEntity` | Entities that have this type as declaredType|
@@ -176,11 +176,12 @@ FamixStClass >> methodsWithoutSutbsAndConstructors [
176176
{ #category : #accessing }
177177
FamixStClass >> numberOfComments [
178178
"Overrides to include method comments in the numberOfComments of the class"
179-
^ self
180-
lookUpPropertyNamed: #numberOfComments
181-
computedAs: [ self methods asArray
182-
inject: self comments size into: [ :sum :child | child numberOfComments + sum ] ]
183179

180+
^ self lookUpPropertyNamed: #numberOfComments computedAs: [
181+
self children asArray inject: self comments size into: [ :sum :child |
182+
(child class includesTrait: FamixTWithComments)
183+
ifTrue: [ child numberOfComments + sum ]
184+
ifFalse: [ sum ] ] ]
184185
]
185186

186187
{ #category : #metrics }

src/Famix-PharoSmalltalk-Entities/FamixStComment.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Relations
33
======================
44
5-
### Other
5+
### Parents
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
88
| `commentedEntity` | `FamixTComment` | `comments` | `FamixTWithComments` | Source code commented by the comment|

src/Famix-PharoSmalltalk-Entities/FamixStMethod.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
### Children
1212
| Relation | Origin | Opposite | Type | Comment |
1313
|---|
14+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1415
| `definedAnnotationTypes` | `FamixTWithAnnotationTypes` | `annotationTypesContainer` | `FamixTAnnotationType` | The container in which the AnnotationTypes may be declared|
1516
| `implicitVariables` | `FamixTWithImplicitVariables` | `parentBehaviouralEntity` | `FamixTImplicitVariable` | Implicit variables used locally by this behaviour.|
1617
| `localVariables` | `FamixTWithLocalVariables` | `parentBehaviouralEntity` | `FamixTLocalVariable` | Variables locally defined by this behaviour.|
@@ -32,7 +33,6 @@
3233
| Relation | Origin | Opposite | Type | Comment |
3334
|---|
3435
| `annotationInstances` | `FamixTWithAnnotationInstances` | `annotatedEntity` | `FamixTAnnotationInstance` | This property corresponds to the set of annotations associated to the entity|
35-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
3636
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
3737
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
3838

src/Famix-Test1-Entities/FamixTest1Class.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This a comment for the Class entity
1414
| Relation | Origin | Opposite | Type | Comment |
1515
|---|
1616
| `attributes` | `FamixTWithAttributes` | `parentType` | `FamixTAttribute` | List of attributes declared by this type.|
17+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1718
| `methods` | `FamixTWithMethods` | `parentType` | `FamixTMethod` | Methods declared by this type.|
1819
1920
### Outgoing dependencies
@@ -30,7 +31,6 @@ This a comment for the Class entity
3031
### Other
3132
| Relation | Origin | Opposite | Type | Comment |
3233
|---|
33-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
3434
| `declaredSourceLanguage` | `FamixTWithSourceLanguages` | `sourcedEntities` | `FamixTSourceLanguage` | The declared SourceLanguage for the source code of this entity|
3535
| `receivingInvocations` | `FamixTInvocationsReceiver` | `receiver` | `FamixTInvocation` | List of invocations performed on this entity (considered as the receiver)|
3636
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|

src/Famix-Test1-Entities/FamixTest1Comment.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Relations
33
======================
44
5-
### Other
5+
### Parents
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
88
| `commentedEntity` | `FamixTComment` | `comments` | `FamixTWithComments` | Source code commented by the comment|

src/Famix-Test1-Entities/FamixTest1Method.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
### Children
1111
| Relation | Origin | Opposite | Type | Comment |
1212
|---|
13+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1314
| `implicitVariables` | `FamixTWithImplicitVariables` | `parentBehaviouralEntity` | `FamixTImplicitVariable` | Implicit variables used locally by this behaviour.|
1415
| `localVariables` | `FamixTWithLocalVariables` | `parentBehaviouralEntity` | `FamixTLocalVariable` | Variables locally defined by this behaviour.|
1516
| `parameters` | `FamixTWithParameters` | `parentBehaviouralEntity` | `FamixTParameter` | List of formal parameters declared by this behaviour.|
@@ -29,7 +30,6 @@
2930
### Other
3031
| Relation | Origin | Opposite | Type | Comment |
3132
|---|
32-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
3333
| `declaredSourceLanguage` | `FamixTWithSourceLanguages` | `sourcedEntities` | `FamixTSourceLanguage` | The declared SourceLanguage for the source code of this entity|
3434
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
3535
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|

0 commit comments

Comments
 (0)