forked from pharo-project/pharo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge NewTools v0.4.2.2 with debugger fixes
- Loading branch information
1 parent
f7efe56
commit 1362e56
Showing
17 changed files
with
130 additions
and
84 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
" | ||
I am a variable node for representing a temporary variable stored in a Context object that has a name attached. | ||
This includes local variables and method parameters. | ||
" | ||
Class { | ||
#name : #StInspectorTempNode, | ||
#superclass : #StInspectorNode, | ||
#instVars : [ | ||
'tempVariable' | ||
], | ||
#category : #'NewTools-Inspector-Model' | ||
} | ||
|
||
{ #category : #accessing } | ||
StInspectorTempNode >> key [ | ||
^ tempVariable name | ||
] | ||
|
||
{ #category : #accessing } | ||
StInspectorTempNode >> rawValue [ | ||
"Answer the object value of this object variable (slot, indexed attribute, computed value)." | ||
|
||
^ [ tempVariable readInContext: self hostObject ] | ||
on: SubscriptOutOfBounds | ||
do: [ :err | 'cannot read ' , tempVariable name ] | ||
] | ||
|
||
{ #category : #accessing } | ||
StInspectorTempNode >> tempVariable: anObject [ | ||
tempVariable := anObject | ||
] |
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
28 changes: 26 additions & 2 deletions
28
src/NewTools-Sindarin-Tools/StSindarinContextInteractionModel.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 |
---|---|---|
@@ -1,10 +1,34 @@ | ||
Class { | ||
#name : #StSindarinContextInteractionModel, | ||
#superclass : #StDebuggerContextInteractionModel, | ||
#superclass : #SpCodeScriptingInteractionModel, | ||
#instVars : [ | ||
'context' | ||
], | ||
#category : #'NewTools-Sindarin-Tools' | ||
} | ||
|
||
{ #category : #binding } | ||
StSindarinContextInteractionModel >> bindingOf: aString [ | ||
^ self bindings at: aString ifAbsent: [ super bindingOf: aString ] | ||
^ self bindings at: aString ifAbsent: [ | ||
(context receiver class hasSlotNamed: aString) | ||
ifTrue: [ context receiver class slotNamed: aString ] | ||
ifFalse: [ context temporaryVariableNamed: aString ] ] | ||
] | ||
|
||
{ #category : #accessing } | ||
StSindarinContextInteractionModel >> context [ | ||
^ context | ||
] | ||
|
||
{ #category : #accessing } | ||
StSindarinContextInteractionModel >> context: anObject [ | ||
context := anObject | ||
] | ||
|
||
{ #category : #binding } | ||
StSindarinContextInteractionModel >> hasBindingOf: aString [ | ||
self bindings at: aString ifAbsent: [ | ||
^ (context receiver class hasSlotNamed: aString) or: [ | ||
(context temporaryVariableNamed: aString) notNil ] ]. | ||
^ true | ||
] |
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