-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from moosetechnology/functionTypedeclaration
Function typedeclaration
- Loading branch information
Showing
22 changed files
with
455 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/FAST-Fortran-Entities/FASTFortranFunctionTypeDeclarationStatement.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
" | ||
I represent a return type declaration statement | ||
## Relations | ||
====================== | ||
### Parents | ||
| Relation | Origin | Opposite | Type | Comment | | ||
|---| | ||
| `invokedIn` | `FASTTNamedEntity` | `invoked` | `FASTTInvocation` | Optional invocation where this name is used| | ||
### Children | ||
| Relation | Origin | Opposite | Type | Comment | | ||
|---| | ||
| `declaredType` | `FASTFortranTDeclaredType` | `parentDeclaration` | `FASTFortranType` | type| | ||
## Properties | ||
====================== | ||
| Name | Type | Default value | Comment | | ||
|---| | ||
| `endPos` | `Number` | nil | | | ||
| `name` | `String` | nil | | | ||
| `startPos` | `Number` | nil | | | ||
" | ||
Class { | ||
#name : 'FASTFortranFunctionTypeDeclarationStatement', | ||
#superclass : 'FASTFortranAbstractStatement', | ||
#traits : 'FASTFortranTDeclaredType + FASTTNamedEntity', | ||
#classTraits : 'FASTFortranTDeclaredType classTrait + FASTTNamedEntity classTrait', | ||
#category : 'FAST-Fortran-Entities-Entities', | ||
#package : 'FAST-Fortran-Entities', | ||
#tag : 'Entities' | ||
} | ||
|
||
{ #category : 'meta' } | ||
FASTFortranFunctionTypeDeclarationStatement class >> annotation [ | ||
|
||
<FMClass: #FunctionTypeDeclarationStatement super: #FASTFortranAbstractStatement> | ||
<package: #'FAST-Fortran-Entities'> | ||
<generated> | ||
^ self | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/FAST-Fortran-Entities/FASTFortranTDeclaredType.trait.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
" | ||
I am the declared type of a function or variable | ||
## Relations | ||
====================== | ||
### Children | ||
| Relation | Origin | Opposite | Type | Comment | | ||
|---| | ||
| `declaredType` | `FASTFortranTDeclaredType` | `parentDeclaration` | `FASTFortranType` | type| | ||
" | ||
Trait { | ||
#name : 'FASTFortranTDeclaredType', | ||
#instVars : [ | ||
'#declaredType => FMOne type: #FASTFortranType opposite: #parentDeclaration' | ||
], | ||
#category : 'FAST-Fortran-Entities-Traits', | ||
#package : 'FAST-Fortran-Entities', | ||
#tag : 'Traits' | ||
} | ||
|
||
{ #category : 'meta' } | ||
FASTFortranTDeclaredType classSide >> annotation [ | ||
|
||
<FMClass: #TDeclaredType super: #Object> | ||
<package: #'FAST-Fortran-Entities'> | ||
<generated> | ||
^ self | ||
] | ||
|
||
{ #category : 'accessing' } | ||
FASTFortranTDeclaredType >> declaredType [ | ||
"Relation named: #declaredType type: #FASTFortranType opposite: #parentDeclaration" | ||
|
||
<generated> | ||
<FMComment: 'type'> | ||
^ declaredType | ||
] | ||
|
||
{ #category : 'accessing' } | ||
FASTFortranTDeclaredType >> declaredType: anObject [ | ||
|
||
<generated> | ||
declaredType := anObject | ||
] | ||
|
||
{ #category : 'navigation' } | ||
FASTFortranTDeclaredType >> declaredTypeGroup [ | ||
<generated> | ||
<navigation: 'DeclaredType'> | ||
^ MooseSpecializedGroup with: self declaredType | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.