Skip to content

Commit

Permalink
Merge pull request #41 from moosetechnology/40-unable-to-load-FamixFo…
Browse files Browse the repository at this point in the history
…rtran-anymore--

40 unable to load famix fortran anymore
  • Loading branch information
NicolasAnquetil authored Apr 23, 2024
2 parents e7f7e79 + d8e706d commit 2ef9ad2
Show file tree
Hide file tree
Showing 53 changed files with 459 additions and 154 deletions.
18 changes: 18 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03Comment.class.st
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"
## Relations
======================
### Parents
| Relation | Origin | Opposite | Type | Comment |
|---|
| `commentedEntity` | `FamixTComment` | `comments` | `FamixTWithComments` | Source code commented by the comment|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `content` | `String` | nil | Content of the comment as a String|
"
Class {
#name : #FamixF03Comment,
#superclass : #FamixF03SourcedEntity,
Expand Down
12 changes: 12 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03DerivedType.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ contains
end type
```
## Relations
======================
### Children
| Relation | Origin | Opposite | Type | Comment |
|---|
| `attributes` | `FamixTWithAttributes` | `parentType` | `FamixTAttribute` | List of attributes declared by this type.|
| `methods` | `FamixTWithMethods` | `parentType` | `FamixTMethod` | Methods declared by this type.|
"
Class {
#name : #FamixF03DerivedType,
Expand Down
7 changes: 7 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03Entity.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,10 @@ FamixF03Entity >> isMethod [
<generated>
^ false
]

{ #category : #testing }
FamixF03Entity >> isQueryable [

<generated>
^ false
]
29 changes: 29 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03Inheritance.class.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
"
I an inheritance association
## Relations
======================
### Association source
| Relation | Origin | Opposite | Type | Comment |
|---|
| `subclass` | `FamixTInheritance` | `superInheritances` | `FamixTWithInheritances` | Subclass linked to in this relationship. from-side of the association|
### Association target
| Relation | Origin | Opposite | Type | Comment |
|---|
| `superclass` | `FamixTInheritance` | `subInheritances` | `FamixTWithInheritances` | Superclass linked to in this relationship. to-side of the association|
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `next` | `FamixTAssociation` | `previous` | `FamixTAssociation` | Next association in an ordered collection of associations. Currently not supported by the Moose importer|
| `previous` | `FamixTAssociation` | `next` | `FamixTAssociation` | Previous association in an ordered collection of associations. Currently not supported by the Moose importer|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
"
Class {
#name : #FamixF03Inheritance,
Expand Down
44 changes: 44 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03Method.class.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
"
I am a type-bound-procedure in a user-defined-type
## Relations
======================
### Parents
| Relation | Origin | Opposite | Type | Comment |
|---|
| `parentType` | `FamixTMethod` | `methods` | `FamixTWithMethods` | Type declaring the method. It provides the implementation for belongsTo.|
### Children
| Relation | Origin | Opposite | Type | Comment |
|---|
| `implicitVariables` | `FamixTWithImplicitVariables` | `parentBehaviouralEntity` | `FamixTImplicitVariable` | Implicit variables used locally by this behaviour.|
| `localVariables` | `FamixTWithLocalVariables` | `parentBehaviouralEntity` | `FamixTLocalVariable` | Variables locally defined by this behaviour.|
| `parameters` | `FamixTWithParameters` | `parentBehaviouralEntity` | `FamixTParameter` | List of formal parameters declared by this behaviour.|
### Outgoing dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
| `accesses` | `FamixTWithAccesses` | `accessor` | `FamixTAccess` | Accesses to variables made by this behaviour.|
| `outgoingInvocations` | `FamixTWithInvocations` | `sender` | `FamixTInvocation` | Outgoing invocations sent by this behaviour.|
| `outgoingReferences` | `FamixTWithReferences` | `referencer` | `FamixTReference` | References from this entity to other entities.|
### Incoming dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
| `incomingInvocations` | `FamixTInvocable` | `candidates` | `FamixTInvocation` | Incoming invocations from other behaviours computed by the candidate operator.|
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `declaredType` | `FamixTTypedEntity` | `typedEntities` | `FamixTType` | Type of the entity, if any|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
| `name` | `String` | nil | Basic name of the entity, not full reference.|
| `signature` | `String` | nil | Signature of the message being sent|
"
Class {
#name : #FamixF03Method,
Expand Down
16 changes: 16 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03Module.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ contains
end module my_mod
```
## Relations
======================
### Children
| Relation | Origin | Opposite | Type | Comment |
|---|
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any. #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.|
### Incoming dependencies
| Relation | Origin | Opposite | Type | Comment |
|---|
| `users` | `FamixF03Module` | `used` | `FamixF03Use` | All users of this module|
"
Class {
#name : #FamixF03Module,
Expand Down
9 changes: 9 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03NamedEntity.class.st
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
"
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `name` | `String` | nil | Basic name of the entity, not full reference.|
"
Class {
#name : #FamixF03NamedEntity,
#superclass : #FamixF03Entity,
Expand Down
12 changes: 12 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03SourceAnchor.class.st
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
"
## Relations
======================
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `element` | `FamixTSourceAnchor` | `sourceAnchor` | `FamixTSourceEntity` | Enable the accessibility to the famix entity that this class is a source pointer for|
"
Class {
#name : #FamixF03SourceAnchor,
#superclass : #FamixF03Entity,
Expand Down
12 changes: 12 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03SourceLanguage.class.st
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
"
## Relations
======================
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `sourcedEntities` | `FamixTSourceLanguage` | `declaredSourceLanguage` | `FamixTWithSourceLanguages` | References to the entities saying explicitly that are written in this language.|
"
Class {
#name : #FamixF03SourceLanguage,
#superclass : #FamixF03Entity,
Expand Down
18 changes: 18 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03SourceTextAnchor.class.st
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"
## Relations
======================
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `element` | `FamixTSourceAnchor` | `sourceAnchor` | `FamixTSourceEntity` | Enable the accessibility to the famix entity that this class is a source pointer for|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `source` | `String` | nil | Actual source code of the source entity|
"
Class {
#name : #FamixF03SourceTextAnchor,
#superclass : #FamixF03SourceAnchor,
Expand Down
18 changes: 18 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03SourcedEntity.class.st
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"
## Relations
======================
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
"
Class {
#name : #FamixF03SourcedEntity,
#superclass : #FamixF03Entity,
Expand Down
9 changes: 2 additions & 7 deletions src/Famix-Fortran03-Entities/FamixF03TEntityCreator.trait.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"
This trait is used by Famix models.
It provides an API for creating entities and adding them to the model.
"
Trait {
#name : #FamixF03TEntityCreator,
Expand Down Expand Up @@ -72,13 +74,6 @@ FamixF03TEntityCreator >> newSourceTextAnchor [
^ self add: FamixF03SourceTextAnchor new
]

{ #category : #'entity creation' }
FamixF03TEntityCreator >> newUnknownSourceLanguage [

<generated>
^ self add: FamixF03UnknownSourceLanguage new
]

{ #category : #'entity creation' }
FamixF03TEntityCreator >> newUse [

Expand Down
8 changes: 8 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03THasIntent.trait.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
"
Dummy parameter can express his intent amongs: in, out, inout
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `intent` | `String` | nil | intent of the entity (work only for dummy argument)|
"
Trait {
#name : #FamixF03THasIntent,
Expand Down

This file was deleted.

29 changes: 29 additions & 0 deletions src/Famix-Fortran03-Entities/FamixF03Use.class.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
"
Thanks to me, you can import a procedures, variables, constants,... defined in a module. Im an association between a program unit and a module
## Relations
======================
### Association source
| Relation | Origin | Opposite | Type | Comment |
|---|
| `usedBy` | `FamixF03Use` | `uses` | `FamixF77ProgramUnit` | used by this program unit|
### Association target
| Relation | Origin | Opposite | Type | Comment |
|---|
| `used` | `FamixF03Use` | `users` | `FamixF03Module` | Module used|
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `next` | `FamixTAssociation` | `previous` | `FamixTAssociation` | Next association in an ordered collection of associations. Currently not supported by the Moose importer|
| `previous` | `FamixTAssociation` | `next` | `FamixTAssociation` | Previous association in an ordered collection of associations. Currently not supported by the Moose importer|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
"
Class {
#name : #FamixF03Use,
Expand Down
4 changes: 4 additions & 0 deletions src/Famix-Fortran77-Entities/FamixF77Access.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ an access of a variable
### Association source
| Relation | Origin | Opposite | Type | Comment |
|---|
| `accessor` | `FamixTAccess` | `accesses` | `FamixTWithAccesses` | Behavioural entity making the access to the variable. from-side of the association|
### Association target
| Relation | Origin | Opposite | Type | Comment |
|---|
| `variable` | `FamixTAccess` | `incomingAccesses` | `FamixTAccessible` | Variable accessed. to-side of the association|
### Other
| Relation | Origin | Opposite | Type | Comment |
|---|
| `next` | `FamixTAssociation` | `previous` | `FamixTAssociation` | Next association in an ordered collection of associations. Currently not supported by the Moose importer|
| `previous` | `FamixTAssociation` | `next` | `FamixTAssociation` | Previous association in an ordered collection of associations. Currently not supported by the Moose importer|
| `sourceAnchor` | `FamixTSourceEntity` | `element` | `FamixTSourceAnchor` | SourceAnchor entity linking to the original source code for this entity|
Expand All @@ -23,6 +26,7 @@ an access of a variable
======================
| Name | Type | Default value | Comment |
|---|
| `isStub` | `Boolean` | false | Flag true if the entity attributes are incomplete, either because the entity is missing or not imported.|
| `isWrite` | `Boolean` | false | Write access|
Expand Down
4 changes: 3 additions & 1 deletion src/Famix-Fortran77-Entities/FamixF77Comment.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ a fortran comment
## Relations
======================
### Other
### Parents
| Relation | Origin | Opposite | Type | Comment |
|---|
| `commentedEntity` | `FamixTComment` | `comments` | `FamixTWithComments` | Source code commented by the comment|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `content` | `String` | nil | Content of the comment as a String|
| `isEsope` | `Boolean` | false | It is esope comment ?|
Expand Down
7 changes: 7 additions & 0 deletions src/Famix-Fortran77-Entities/FamixF77Entity.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ FamixF77Entity >> isLocalVariable [
^ false
]

{ #category : #testing }
FamixF77Entity >> isQueryable [

<generated>
^ false
]

{ #category : #testing }
FamixF77Entity >> isStructuralEntity [

Expand Down
Loading

0 comments on commit 2ef9ad2

Please sign in to comment.