Skip to content

Commit

Permalink
Make FamixTFileSystemEntity a TNamedEntity.
Browse files Browse the repository at this point in the history
  • Loading branch information
ClotildeToullec committed Feb 28, 2025
1 parent 4a38a1c commit 9d42c5f
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Famix-MetamodelGeneration/FamixGenerator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,7 @@ FamixGenerator >> defineHierarchy [

tException --|> tClass.

tFileSystemEntity --|> tNamedEntity.
tFile --|> tFileSystemEntity.

tFileInclude --|> tAssociation.
Expand Down
6 changes: 6 additions & 0 deletions src/Famix-Test1-Entities/FamixTest1File.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
| `entities` | `FamixTFile` | `containerFiles` | `FamixTWithFiles` | List of entities defined in the file|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `name` | `String` | nil | Basic name of the entity, not full reference.|
"
Class {
Expand Down
6 changes: 6 additions & 0 deletions src/Famix-Test1-Entities/FamixTest1Folder.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
| `childrenFileSystemEntities` | `FamixTFolder` | `parentFolder` | `FamixTFileSystemEntity` | List of entities contained in this folder.|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `name` | `String` | nil | Basic name of the entity, not full reference.|
"
Class {
Expand Down
14 changes: 14 additions & 0 deletions src/Famix-Test1-Entities/FamixTest1TEntityCreator.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,27 @@ FamixTest1TEntityCreator >> newFileAnchor [
^ self add: FamixTest1FileAnchor new
]

{ #category : #'entity creation' }
FamixTest1TEntityCreator >> newFileNamed: aName [

<generated>
^ self add: (FamixTest1File named: aName)
]

{ #category : #'entity creation' }
FamixTest1TEntityCreator >> newFolder [

<generated>
^ self add: FamixTest1Folder new
]

{ #category : #'entity creation' }
FamixTest1TEntityCreator >> newFolderNamed: aName [

<generated>
^ self add: (FamixTest1Folder named: aName)
]

{ #category : #'entity creation' }
FamixTest1TEntityCreator >> newIndexedFileAnchor [

Expand Down
6 changes: 6 additions & 0 deletions src/Famix-Traits/FamixTCompilationUnit.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ I represent a compilation unit file. Typically a .c or .cpp file
| `entities` | `FamixTFile` | `containerFiles` | `FamixTWithFiles` | List of entities defined in the file|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `name` | `String` | nil | Basic name of the entity, not full reference.|
"
Trait {
Expand Down
6 changes: 6 additions & 0 deletions src/Famix-Traits/FamixTFile.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ It represents a file in the file system.
| `entities` | `FamixTFile` | `containerFiles` | `FamixTWithFiles` | List of entities defined in the file|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `name` | `String` | nil | Basic name of the entity, not full reference.|
"
Trait {
Expand Down
8 changes: 8 additions & 0 deletions src/Famix-Traits/FamixTFileSystemEntity.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@
| `parentFolder` | `FamixTFileSystemEntity` | `childrenFileSystemEntities` | `FamixTFolder` | Folder entity containing this file.|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `name` | `String` | nil | Basic name of the entity, not full reference.|
"
Trait {
#name : #FamixTFileSystemEntity,
#instVars : [
'#parentFolder => FMOne type: #FamixTFolder opposite: #childrenFileSystemEntities'
],
#traits : 'FamixTNamedEntity',
#classTraits : 'FamixTNamedEntity classTrait',
#category : #'Famix-Traits-File'
}

Expand Down
6 changes: 6 additions & 0 deletions src/Famix-Traits/FamixTFolder.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ It represents a folder in the file system. It can contain other files or folders
| `childrenFileSystemEntities` | `FamixTFolder` | `parentFolder` | `FamixTFileSystemEntity` | List of entities contained in this folder.|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `name` | `String` | nil | Basic name of the entity, not full reference.|
"
Trait {
Expand Down
6 changes: 6 additions & 0 deletions src/Famix-Traits/FamixTHeader.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ I represent a header file. Typically a .h or .hpp
| `entities` | `FamixTFile` | `containerFiles` | `FamixTWithFiles` | List of entities defined in the file|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `name` | `String` | nil | Basic name of the entity, not full reference.|
"
Trait {
Expand Down

0 comments on commit 9d42c5f

Please sign in to comment.