Skip to content

Commit

Permalink
Merge pull request #70 from moosetechnology/issue-famix-784
Browse files Browse the repository at this point in the history
Regeneration of  metamodel for Famix Fortran
  • Loading branch information
uNouss authored Jun 28, 2024
2 parents 40f1aae + 1e73d80 commit 926ebd8
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
12 changes: 6 additions & 6 deletions src/Famix-Fortran03-Generator/FamixFortran03Generator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,30 @@ FamixFortran03Generator >> defineClasses [

attribute := self remoteEntity: #Attribute withPrefix: #FamixFortran.

derivedType := builder
derivedType := self
newClassNamed: #DerivedType
comment: self derivedTypeComment.

indexedFileAnchor := self
remoteEntity: #IndexedFileAnchor
withPrefix: #FamixF77.

inheritance := builder
inheritance := self
newClassNamed: #Inheritance
comment: 'I an inheritance association'.

method := builder
method := self
newClassNamed: #Method
comment:
'I am a type-bound-procedure in a user-defined-type'.

module := builder newClassNamed: #Module comment: self moduleComment.
module := self newClassNamed: #Module comment: self moduleComment.

parameter := self remoteEntity: #Parameter withPrefix: #FamixF77.

programUnit := self remoteEntity: #ProgramUnit withPrefix: #FamixF77.

use := builder
use := self
newClassNamed: #Use
comment:
'Thanks to me, you can import a procedures, variables, constants,... defined in a module. Im an association between a program unit and a module'.
Expand Down Expand Up @@ -135,7 +135,7 @@ FamixFortran03Generator >> defineTraits [

super defineTraits.

tHasIntent := builder
tHasIntent := self
newTraitNamed: #THasIntent
comment:
'Dummy parameter can express his intent amongs: in, out, inout'
Expand Down
50 changes: 25 additions & 25 deletions src/Famix-Fortran77-Generator/FamixFortran77Generator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -97,92 +97,92 @@ FamixFortran77Generator >> defineClasses [

super defineClasses.

access := builder
access := self
newClassNamed: #Access
comment: self accessEntityComment.

"character := builder newClassNamed: #Character comment: 'Im a character'.
"character := self newClassNamed: #Character comment: 'Im a character'.
complex := builder newClassNamed: #Complex comment: 'Im a complex'."
complex := self newClassNamed: #Complex comment: 'Im a complex'."

comment comment: self fCommentEntityComment.

externalDeclaration := builder
externalDeclaration := self
newClassNamed: #ExternalDeclaration
comment: self externalDeclarationComment.

implicit := builder newClassNamed: #Implicit comment: self implicitComment.
implicit := self newClassNamed: #Implicit comment: self implicitComment.

indexedFileAnchor := builder
indexedFileAnchor := self
newClassNamed: #IndexedFileAnchor
comment: self indexedFileAnchorComment.

intrinsicRoutine := builder
intrinsicRoutine := self
newClassNamed: #IntrinsicRoutine
comment: self intrinsicRoutineComment.

invocation := builder
invocation := self
newClassNamed: #Invocation
comment: self invocationEntityComment.

include := builder
include := self
newClassNamed: #Include
comment: self includeComment.
includedFile := builder
includedFile := self
newClassNamed: #IncludedFile
comment: 'includedFile'.

parameter := builder
parameter := self
newClassNamed: #Parameter
comment: self parameterEntityComment.

programFile := builder
programFile := self
newClassNamed: #ProgramFile
comment: self fileEntityComment.

programUnit := builder
programUnit := self
newAbstractClassNamed: #ProgramUnit
comment: self programUnitEntityComment.

puBlockdata := builder
puBlockdata := self
newClassNamed: #PUBlockdata
comment: self puBlockdataEntityComment.

puFunction := builder
puFunction := self
newClassNamed: #PUFunction
comment: self puFunctionEntityComment.

puMain := builder
puMain := self
newClassNamed: #PUMain
comment: self puMainEntityComment.

puProcedure := builder
puProcedure := self
newClassNamed: #PUProcedure
comment: self puProcedureEntityComment.

puSubroutine := builder
puSubroutine := self
newClassNamed: #PUSubroutine
comment: self puSubroutineEntityComment.

statementFunction := builder
statementFunction := self
newClassNamed: #StatementFunction
comment: self statementFunctionEntityComment.

type := builder newClassNamed: #Type comment: self typeComment.
type := self newClassNamed: #Type comment: self typeComment.

typeIntrinsic := builder
typeIntrinsic := self
newClassNamed: #TypeIntrinsic
comment: self typeIntrinsicComment.

typeUnknown := builder
typeUnknown := self
newClassNamed: #TypeUnknown
comment: self typeIntrinsicComment.

variable := builder
variable := self
newClassNamed: #Variable
comment: self variableEntityComment.

unknownVariable := builder
unknownVariable := self
newClassNamed: #UnknownVariable
comment: 'Variable used but not resolved'.

Expand Down Expand Up @@ -335,7 +335,7 @@ FamixFortran77Generator >> defineTraits [

super defineTraits.

tWithStatements := builder newTraitNamed: #TWithStatements
tWithStatements := self newTraitNamed: #TWithStatements
]

{ #category : #'class comment' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ FamixFortranUDTGenerator >> defineClasses [

super defineClasses.

userDefinedType := builder
userDefinedType := self
newAbstractClassNamed: #UserDefinedType
comment: ''.
attribute := builder
attribute := self
newClassNamed: #Attribute
comment: self commentAttribute.

Expand Down

0 comments on commit 926ebd8

Please sign in to comment.