Skip to content

Commit

Permalink
Fix #28: move dump extensions to the Tools package
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Darbord committed Oct 25, 2023
1 parent 64ada7c commit 0fefa0f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/FAST-Core-Model-Extension/FASTTEntity.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ FASTTEntity >> display [
truncateWithElipsisTo: 50 ])
]

{ #category : #'*FAST-Core-Model-Extension' }
FASTTEntity >> dump [

"Generate an expression that recreates the receiver"

^ FASTDumpVisitor visit: self
]

{ #category : #'*FAST-Core-Model-Extension' }
FASTTEntity >> inspectionFAST [

Expand All @@ -53,16 +45,6 @@ FASTTEntity >> inspectionFAST [
beResizable
]

{ #category : #'*FAST-Core-Model-Extension' }
FASTTEntity >> inspectionFASTDump [

<inspectorPresentationOrder: 550 title: 'FASTDump'>
^ SpCodePresenter new
text: (RBParser parseExpression: self dump) formattedCode;
beForScripting;
yourself
]

{ #category : #'*FAST-Core-Model-Extension' }
FASTTEntity >> inspectionFASTSourceCode [

Expand Down
18 changes: 18 additions & 0 deletions src/FAST-Core-Tools/FASTTEntity.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ FASTTEntity >> addLocalUse: aFASTNode [
add: aFASTNode
]

{ #category : #'*FAST-Core-Tools' }
FASTTEntity >> dump [

"Generate an expression that recreates the receiver"

^ FASTDumpVisitor visit: self
]

{ #category : #'*FAST-Core-Tools' }
FASTTEntity >> inspectionFASTDump [

<inspectorPresentationOrder: 550 title: 'FASTDump'>
^ SpCodePresenter new
text: (RBParser parseExpression: self dump) formattedCode;
beForScripting;
yourself
]

{ #category : #'*FAST-Core-Tools' }
FASTTEntity >> localDeclaration [
^self
Expand Down

0 comments on commit 0fefa0f

Please sign in to comment.