-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #27: add dynamic inst vars to Seaside inspector
- Loading branch information
1 parent
b15e219
commit da304b2
Showing
9 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
17 changes: 9 additions & 8 deletions
17
...ry/Seaside-GemStone-Tools-Production.package/Object.extension/instance/inspectorFields.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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
*seaside-gemStone-tools-production | ||
inspectorFields | ||
| members | | ||
members := Array new writeStream. | ||
self class allInstVarNames withIndexDo: [ :each :index | | ||
members nextPut: each -> (self instVarAt: index) ]. | ||
self class isVariable ifTrue: [ | ||
1 to: self size do: [ :index | | ||
members nextPut: index -> (self at: index) ] ]. | ||
^ members contents | ||
| members | | ||
members := Array new writeStream. | ||
self class allInstVarNames | ||
withIndexDo: [ :each :index | members nextPut: each -> (self instVarAt: index) ]. | ||
self dynamicInstanceVariables | ||
withIndexDo: [ :each :index | members nextPut: ('*' , each) -> (self dynamicInstVarAt: each) ]. | ||
self class isVariable | ||
ifTrue: [ 1 to: self size do: [ :index | members nextPut: index -> (self at: index) ] ]. | ||
^ members contents |
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
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
2 changes: 1 addition & 1 deletion
2
repository/Seaside-GemStone-Tools-Production.package/monticello.meta/version
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