Skip to content

Commit

Permalink
Merge pull request #68 from moosetechnology/61-PUComment-should-not-e…
Browse files Browse the repository at this point in the history
…xist

removed PUComment in generator + re-generated meta-model
  • Loading branch information
NicolasAnquetil authored Jun 20, 2024
2 parents 4486cd2 + 324d1ab commit 6eeb690
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 80 deletions.
14 changes: 0 additions & 14 deletions src/Famix-Fortran77-Entities/FamixF77ImportingContext.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,6 @@ FamixF77ImportingContext >> importPUBlockdata [
^ self importConcreteEntity: (self class fm3ClassNamed: #PUBlockdata)
]

{ #category : #importing }
FamixF77ImportingContext >> importPUComment [

<generated>
^ self importConcreteEntity: (self class fm3ClassNamed: #PUComment)
]

{ #category : #importing }
FamixF77ImportingContext >> importPUFunction [

Expand Down Expand Up @@ -260,13 +253,6 @@ FamixF77ImportingContext >> shouldImportPUBlockdata [
^ self shouldImport: #PUBlockdata
]

{ #category : #testing }
FamixF77ImportingContext >> shouldImportPUComment [

<generated>
^ self shouldImport: #PUComment
]

{ #category : #testing }
FamixF77ImportingContext >> shouldImportPUFunction [

Expand Down
43 changes: 0 additions & 43 deletions src/Famix-Fortran77-Entities/FamixF77PUComment.class.st

This file was deleted.

5 changes: 3 additions & 2 deletions src/Famix-Fortran77-Entities/FamixF77ProgramFile.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ a fortran file
### Children
| Relation | Origin | Opposite | Type | Comment |
|---|
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
| `programUnits` | `FamixF77ProgramFile` | `programFile` | `FamixF77ProgramUnit` | |
### Other
Expand All @@ -35,8 +36,8 @@ a fortran file
Class {
#name : #FamixF77ProgramFile,
#superclass : #FamixF77NamedEntity,
#traits : 'FamixTCompilationUnit + (FamixTSourceEntity - {#sourceText}) + TEntityMetaLevelDependency',
#classTraits : 'FamixTCompilationUnit classTrait + FamixTSourceEntity classTrait + TEntityMetaLevelDependency classTrait',
#traits : 'FamixTCompilationUnit + (FamixTSourceEntity - {#sourceText}) + FamixTWithComments + TEntityMetaLevelDependency',
#classTraits : 'FamixTCompilationUnit classTrait + FamixTSourceEntity classTrait + FamixTWithComments classTrait + TEntityMetaLevelDependency classTrait',
#instVars : [
'#filename => FMProperty',
'#programUnits => FMMany type: #FamixF77ProgramUnit opposite: #programFile',
Expand Down
7 changes: 0 additions & 7 deletions src/Famix-Fortran77-Entities/FamixF77TEntityCreator.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,6 @@ FamixF77TEntityCreator >> newPUBlockdata [
^ self add: FamixF77PUBlockdata new
]

{ #category : #'entity creation' }
FamixF77TEntityCreator >> newPUComment [

<generated>
^ self add: FamixF77PUComment new
]

{ #category : #'entity creation' }
FamixF77TEntityCreator >> newPUFunction [

Expand Down
15 changes: 1 addition & 14 deletions src/Famix-Fortran77-Generator/FamixFortran77Generator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Class {
'parameter',
'programUnit',
'puBlockdata',
'puComment',
'puFunction',
'puMain',
'puProcedure',
Expand Down Expand Up @@ -149,10 +148,6 @@ FamixFortran77Generator >> defineClasses [
newClassNamed: #PUBlockdata
comment: self puBlockdataEntityComment.

puComment := builder
newClassNamed: #PUComment
comment: self puCommentEntityComment.

puFunction := builder
newClassNamed: #PUFunction
comment: self puFunctionEntityComment.
Expand Down Expand Up @@ -222,6 +217,7 @@ FamixFortran77Generator >> defineHierarchy [

programFile --|> namedEntity.
programFile inheritsFromTrait: #TSourceEntity without: { #sourceText }.
programFile --|> #TWithComments.
programFile --|> #TCompilationUnit.
programFile --|> #TEntityMetaLevelDependency.

Expand All @@ -234,9 +230,6 @@ FamixFortran77Generator >> defineHierarchy [
puBlockdata --|> programUnit.
"puBlockdata --|> #TWithTypes."

puComment --|> programUnit.
puComment --|> #TComment.

puFunction --|> puProcedure.
puFunction --|> #TTypedEntity.

Expand Down Expand Up @@ -427,12 +420,6 @@ FamixFortran77Generator >> puBlockdataEntityComment [
^ 'a block data for common variable'
]

{ #category : #'class comment' }
FamixFortran77Generator >> puCommentEntityComment [

^ 'a comment belongs to fortran file'
]

{ #category : #'class comment' }
FamixFortran77Generator >> puFunctionEntityComment [

Expand Down

0 comments on commit 6eeb690

Please sign in to comment.