-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Importing Class attributes and Method localVariables
- Loading branch information
anquetil
committed
May 13, 2024
1 parent
1c74f22
commit b3a0eb0
Showing
5 changed files
with
72 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Extension { #name : #FamixPythonClass } | ||
|
||
{ #category : #'*MoosePy' } | ||
FamixPythonClass >> createLocalVariable: aString [ | ||
^mooseModel newAttribute | ||
name: aString ; | ||
parentType: self ; | ||
yourself | ||
] | ||
|
||
{ #category : #'*MoosePy' } | ||
FamixPythonClass >> dictLocalVariables [ | ||
^self attributeAt: #dictLocalVariables ifAbsentPut: [ Dictionary new ] | ||
] |
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,14 @@ | ||
Extension { #name : #FamixPythonMethod } | ||
|
||
{ #category : #'*MoosePy' } | ||
FamixPythonMethod >> createLocalVariable: aString [ | ||
^mooseModel newLocalVariable | ||
name: aString ; | ||
parentBehaviouralEntity: self ; | ||
yourself | ||
] | ||
|
||
{ #category : #'*MoosePy' } | ||
FamixPythonMethod >> dictLocalVariables [ | ||
^self attributeAt: #dictLocalVariables ifAbsentPut: [ Dictionary new ] | ||
] |
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