The Trunk: Tools-mt.973.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Tools-mt.973.mcz

commits-2
Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.973.mcz

==================== Summary ====================

Name: Tools-mt.973
Author: mt
Time: 9 June 2020, 4:18:39.208147 pm
UUID: 18cfc395-b058-ad40-b1f1-c9e12f27da62
Ancestors: Tools-mt.972

Fixes access to "stack top" in inspector for context variables (i.e. the one in the debugger), which is used in field-list menu actions such as 'inspect' or 'explore'.

=============== Diff against Tools-mt.972 ===============

Item was added:
+ ----- Method: ContextVariablesInspector>>selectionOrObject (in category 'selection - convenience') -----
+ selectionOrObject
+ "Special treatment for #stackTop. See #fieldStackTop."
+
+ ^ self selectedField
+ ifNil: [super selectionOrObject]
+ ifNotNil: [:field |
+ field key = #stackTop
+ ifTrue: [
+ self object actualStackSize > 0
+ ifTrue: [self object top]
+ ifFalse: [self error: 'There is nothing on stack top.']]
+ ifFalse: [super selectionOrObject]]
+ !