Skip to content

Commit 0364f20

Browse files
committed
Generated entities
1 parent 39c1992 commit 0364f20

8 files changed

+38
-28
lines changed

src/Famix-TypeScript-Entities/FamixTypeScriptComment.class.st

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@
1414
| Name | Type | Default value | Comment |
1515
|---|
1616
| `content` | `String` | nil | Content of the comment as a String|
17+
| `isJSDoc` | `Boolean` | false | Comments can have the form of JSDoc.|
1718
1819
"
1920
Class {
2021
#name : #FamixTypeScriptComment,
2122
#superclass : #FamixTypeScriptSourcedEntity,
2223
#traits : 'FamixTComment',
2324
#classTraits : 'FamixTComment classTrait',
25+
#instVars : [
26+
'#isJSDoc => FMProperty defaultValue: false'
27+
],
2428
#category : #'Famix-TypeScript-Entities-Entities'
2529
}
2630

@@ -32,3 +36,18 @@ FamixTypeScriptComment class >> annotation [
3236
<generated>
3337
^ self
3438
]
39+
40+
{ #category : #accessing }
41+
FamixTypeScriptComment >> isJSDoc [
42+
43+
<FMProperty: #isJSDoc type: #Boolean defaultValue: false>
44+
<generated>
45+
<FMComment: 'Comments can have the form of JSDoc.'>
46+
^ isJSDoc ifNil: [ isJSDoc := false ]
47+
]
48+
49+
{ #category : #accessing }
50+
FamixTypeScriptComment >> isJSDoc: anObject [
51+
<generated>
52+
isJSDoc := anObject
53+
]

src/Famix-TypeScript-Entities/FamixTypeScriptEnum.class.st

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ I represent a Typescript enumerated type
1212
### Children
1313
| Relation | Origin | Opposite | Type | Comment |
1414
|---|
15-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1615
| `enumValues` | `FamixTWithEnumValues` | `parentEnum` | `FamixTEnumValue` | |
1716
1817
### Incoming dependencies
@@ -40,8 +39,8 @@ I represent a Typescript enumerated type
4039
Class {
4140
#name : #FamixTypeScriptEnum,
4241
#superclass : #FamixTypeScriptType,
43-
#traits : 'FamixTEnum + FamixTImportable + FamixTWithComments',
44-
#classTraits : 'FamixTEnum classTrait + FamixTImportable classTrait + FamixTWithComments classTrait',
42+
#traits : 'FamixTEnum + FamixTImportable',
43+
#classTraits : 'FamixTEnum classTrait + FamixTImportable classTrait',
4544
#category : #'Famix-TypeScript-Entities-Entities'
4645
}
4746

src/Famix-TypeScript-Entities/FamixTypeScriptEnumValue.class.st

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ I represent One value (constant) in a Typescript enumerated type
99
|---|
1010
| `parentEnum` | `FamixTEnumValue` | `enumValues` | `FamixTWithEnumValues` | The Enum declaring this value. It offers the implementation of belongsTo|
1111
12-
### Children
13-
| Relation | Origin | Opposite | Type | Comment |
14-
|---|
15-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
16-
1712
### Incoming dependencies
1813
| Relation | Origin | Opposite | Type | Comment |
1914
|---|
@@ -38,8 +33,8 @@ I represent One value (constant) in a Typescript enumerated type
3833
Class {
3934
#name : #FamixTypeScriptEnumValue,
4035
#superclass : #FamixTypeScriptStructuralEntity,
41-
#traits : 'FamixTEnumValue + FamixTWithComments',
42-
#classTraits : 'FamixTEnumValue classTrait + FamixTWithComments classTrait',
36+
#traits : 'FamixTEnumValue',
37+
#classTraits : 'FamixTEnumValue classTrait',
4338
#category : #'Famix-TypeScript-Entities-Entities'
4439
}
4540

src/Famix-TypeScript-Entities/FamixTypeScriptInterface.class.st

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ I represent a TypeScript interface.
88
| Relation | Origin | Opposite | Type | Comment |
99
|---|
1010
| `attributes` | `FamixTWithAttributes` | `parentType` | `FamixTAttribute` | List of attributes declared by this type.|
11-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1211
| `methods` | `FamixTWithMethods` | `parentType` | `FamixTMethod` | Methods declared by this type.|
1312
1413
### Outgoing dependencies
@@ -33,8 +32,8 @@ I represent a TypeScript interface.
3332
Class {
3433
#name : #FamixTypeScriptInterface,
3534
#superclass : #FamixTypeScriptType,
36-
#traits : 'FamixTImplementable + FamixTInvocationsReceiver + FamixTWithAttributes + FamixTWithComments + FamixTWithInheritances + FamixTWithMethods',
37-
#classTraits : 'FamixTImplementable classTrait + FamixTInvocationsReceiver classTrait + FamixTWithAttributes classTrait + FamixTWithComments classTrait + FamixTWithInheritances classTrait + FamixTWithMethods classTrait',
35+
#traits : 'FamixTImplementable + FamixTInvocationsReceiver + FamixTWithAttributes + FamixTWithInheritances + FamixTWithMethods',
36+
#classTraits : 'FamixTImplementable classTrait + FamixTInvocationsReceiver classTrait + FamixTWithAttributes classTrait + FamixTWithInheritances classTrait + FamixTWithMethods classTrait',
3837
#category : #'Famix-TypeScript-Entities-Entities'
3938
}
4039

src/Famix-TypeScript-Entities/FamixTypeScriptMethod.class.st

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ I represent a TypeScript method.
1212
### Children
1313
| Relation | Origin | Opposite | Type | Comment |
1414
|---|
15-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1615
| `implicitVariables` | `FamixTWithImplicitVariables` | `parentBehaviouralEntity` | `FamixTImplicitVariable` | Implicit variables used locally by this behaviour.|
1716
| `localVariables` | `FamixTWithLocalVariables` | `parentBehaviouralEntity` | `FamixTLocalVariable` | Variables locally defined by this behaviour.|
1817
| `parameters` | `FamixTWithParameters` | `parentBehaviouralEntity` | `FamixTParameter` | List of formal parameters declared by this behaviour.|
@@ -54,8 +53,8 @@ I represent a TypeScript method.
5453
Class {
5554
#name : #FamixTypeScriptMethod,
5655
#superclass : #FamixTypeScriptBehaviouralEntity,
57-
#traits : 'FamixTCanBeAbstract + FamixTCanBeClassSide + FamixTHasKind + FamixTHasVisibility + FamixTImportable + FamixTMethod + FamixTWithComments',
58-
#classTraits : 'FamixTCanBeAbstract classTrait + FamixTCanBeClassSide classTrait + FamixTHasKind classTrait + FamixTHasVisibility classTrait + FamixTImportable classTrait + FamixTMethod classTrait + FamixTWithComments classTrait',
56+
#traits : 'FamixTCanBeAbstract + FamixTCanBeClassSide + FamixTHasKind + FamixTHasVisibility + FamixTImportable + FamixTMethod',
57+
#classTraits : 'FamixTCanBeAbstract classTrait + FamixTCanBeClassSide classTrait + FamixTHasKind classTrait + FamixTHasVisibility classTrait + FamixTImportable classTrait + FamixTMethod classTrait',
5958
#category : #'Famix-TypeScript-Entities-Entities'
6059
}
6160

src/Famix-TypeScript-Entities/FamixTypeScriptModule.class.st

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
### Children
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
8-
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
98
| `localVariables` | `FamixTWithLocalVariables` | `parentBehaviouralEntity` | `FamixTLocalVariable` | Variables locally defined by this behaviour.|
109
1110
### Outgoing dependencies
@@ -24,8 +23,8 @@
2423
Class {
2524
#name : #FamixTypeScriptModule,
2625
#superclass : #FamixTypeScriptScriptEntity,
27-
#traits : 'FamixTImportable + FamixTWithComments + FamixTWithImports + FamixTWithLocalVariables',
28-
#classTraits : 'FamixTImportable classTrait + FamixTWithComments classTrait + FamixTWithImports classTrait + FamixTWithLocalVariables classTrait',
26+
#traits : 'FamixTImportable + FamixTWithImports + FamixTWithLocalVariables',
27+
#classTraits : 'FamixTImportable classTrait + FamixTWithImports classTrait + FamixTWithLocalVariables classTrait',
2928
#instVars : [
3029
'#isAmbient',
3130
'#isModule',

src/Famix-TypeScript-Entities/FamixTypeScriptParameter.class.st

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
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-
1510
### Incoming dependencies
1611
| Relation | Origin | Opposite | Type | Comment |
1712
|---|
@@ -36,8 +31,8 @@
3631
Class {
3732
#name : #FamixTypeScriptParameter,
3833
#superclass : #FamixTypeScriptStructuralEntity,
39-
#traits : 'FamixTParameter + FamixTWithComments',
40-
#classTraits : 'FamixTParameter classTrait + FamixTWithComments classTrait',
34+
#traits : 'FamixTParameter',
35+
#classTraits : 'FamixTParameter classTrait',
4136
#category : #'Famix-TypeScript-Entities-Entities'
4237
}
4338

src/Famix-TypeScript-Entities/FamixTypeScriptSourcedEntity.class.st

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
## Relations
33
======================
44
5+
### Children
6+
| Relation | Origin | Opposite | Type | Comment |
7+
|---|
8+
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
9+
510
### Other
611
| Relation | Origin | Opposite | Type | Comment |
712
|---|
@@ -19,8 +24,8 @@
1924
Class {
2025
#name : #FamixTypeScriptSourcedEntity,
2126
#superclass : #FamixTypeScriptEntity,
22-
#traits : 'FamixTSourceEntity',
23-
#classTraits : 'FamixTSourceEntity classTrait',
27+
#traits : 'FamixTSourceEntity + FamixTWithComments',
28+
#classTraits : 'FamixTSourceEntity classTrait + FamixTWithComments classTrait',
2429
#category : #'Famix-TypeScript-Entities-Entities'
2530
}
2631

0 commit comments

Comments
 (0)