Skip to content

Commit

Permalink
wip through filters
Browse files Browse the repository at this point in the history
Closes #73
  • Loading branch information
LinqLover committed Apr 29, 2022
1 parent 1f570bf commit a2fe4f0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*TraceDebugger-Core-testing
tdbIsOrHasSender: aContext

^ (self tdbIdentical: aContext) or: [self hasSender: aContext tdbproxyYourself]
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"tdbFullStack" : "ct 2/8/2022 19:26",
"tdbHandlerContexts" : "ct 3/19/2022 20:36",
"tdbHasHome:" : "ct 11/30/2021 22:52",
"tdbIsOrHasSender:" : "ct 3/23/2022 22:20",
"tdbIsSignalContext" : "ct 3/21/2022 16:34",
"tdbIsUnhandledSignalContext" : "ct 3/21/2022 16:34",
"tdbLivingHomeSuchThat:" : "ct 3/13/2022 01:13",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
private
streamChildrenForFilter: filter aboveHome: startContext on: aStream

self children do: [:child |
(((child contextAtTime: child minTimeIndex) home in: [:childHome | startContext tdbIsOrHasSender: childHome])
and: [filter value: child originalContext])
ifTrue: [aStream nextPut: child]
ifFalse:
[child
streamChildrenForFilter: filter
aboveHome: startContext
on: aStream]].
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ streamChildrenForFilter: filter on: aStream
self children do: [:child |
(filter value: child originalContext)
ifTrue: [aStream nextPut: child]
ifFalse: [child streamChildrenForFilter: filter on: aStream]].
ifFalse:
[child
streamChildrenForFilter: filter
aboveHome: self originalContext home
on: aStream]].
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"printOn:" : "ct 12/1/2021 23:08",
"spaceUsed" : "ct 3/15/2022 22:01",
"streamAllContextsOn:satisfying:" : "ct 3/14/2022 19:04",
"streamChildrenForFilter:on:" : "ct 2/19/2022 16:48",
"streamChildrenForFilter:aboveHome:on:" : "ct 3/23/2022 22:28",
"streamChildrenForFilter:on:" : "ct 3/23/2022 22:26",
"traceAtTime:" : "ct 11/30/2021 20:26",
"traceAtTime:ifAbsent:" : "ct 1/26/2022 14:34",
"tracingSimulatorClass" : "ct 1/7/2022 19:58",
Expand Down

0 comments on commit a2fe4f0

Please sign in to comment.