Skip to content

Commit 6b7db54

Browse files
committed
Delegates graphical probe value representation to the objects themselves, records identity hash to allow for consistent representation of identity in probes
1 parent e82ba85 commit 6b7db54

32 files changed

+117
-42
lines changed

packages/Babylonian-Core.package/BPTrace.class/instance/newTracedAssignmentValue.previousValues.expression.stackFrom..st

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ newTracedAssignmentValue: aValue previousValues: variableAndValuesTuples express
33

44
^ BPTraceAssignmentValue
55
value: aValue bpSnapshot
6+
identityHash: aValue identityHash
67
previousValues: variableAndValuesTuples
78
stack: (self stackFrom: aContext)

packages/Babylonian-Core.package/BPTrace.class/instance/newTracedValue.expression.stackFrom..st

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ newTracedValue: aValue expression: expressionSource stackFrom: aContext
33

44
^ BPTraceValue
55
value: aValue bpSnapshot
6+
identityHash: aValue identityHash
67
stack: (self stackFrom: aContext)

packages/Babylonian-Core.package/BPTrace.class/methodProperties.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"includesValuesForProbeId:" : "pre 7/24/2019 11:30",
1616
"initialize" : "pre 9/25/2020 17:05",
1717
"mementoFor:" : "pre 9/28/2020 10:29",
18-
"newTracedAssignmentValue:previousValues:expression:stackFrom:" : "pre 9/25/2020 17:07",
19-
"newTracedValue:expression:stackFrom:" : "pre 9/25/2020 17:07",
18+
"newTracedAssignmentValue:previousValues:expression:stackFrom:" : "pre 10/12/2020 17:58",
19+
"newTracedValue:expression:stackFrom:" : "pre 10/12/2020 17:57",
2020
"probes" : "pre 5/8/2019 16:44",
2121
"recordedException" : "pre 7/25/2019 12:28",
2222
"recordedException:" : "pre 7/25/2019 12:29",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
instance creation
2+
value: anObject identityHash: identityHash previousValues: variableAndValuesTuples stack: arrayOfContexts
3+
4+
^ (self value: anObject identityHash: identityHash stack: arrayOfContexts)
5+
previousValues: variableAndValuesTuples;
6+
yourself

packages/Babylonian-Core.package/BPTraceAssignmentValue.class/class/value.previousValues.stack..st

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/Babylonian-Core.package/BPTraceAssignmentValue.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"class" : {
3-
"value:previousValues:stack:" : "pre 7/6/2020 18:23" },
3+
"value:identityHash:previousValues:stack:" : "pre 10/12/2020 17:58" },
44
"instance" : {
55
"assignedVariableNames" : "pre 7/6/2020 18:41",
66
"initialize" : "pre 7/6/2020 18:23",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
instance creation
2+
value: aValue identityHash: tracedValueIdentityHash stack: aCollection
3+
4+
^ self new
5+
tracedValue: aValue;
6+
tracedValueIdentityHash: tracedValueIdentityHash;
7+
stack: aCollection;
8+
yourself

packages/Babylonian-Core.package/BPTraceValue.class/class/value.stack..st

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
accessing
2+
tracedValueIdentityHash: anObject
3+
4+
tracedValueIdentityHash := anObject.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
accessing
2+
tracedValueIdentityHash
3+
4+
^ tracedValueIdentityHash

0 commit comments

Comments
 (0)