-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/cached..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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
private | ||
cached: aBlock | ||
|
||
^ caches at: aBlock method ifAbsentPut: aBlock |
11 changes: 11 additions & 0 deletions
11
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/changed..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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
updating | ||
changed: aspect | ||
|
||
super changed: aspect. | ||
|
||
caches keys do: [:key | | ||
((self pragmaAspectDependencies at: key selector) includes: aspect) ifTrue: | ||
[caches removeKey: key]]. | ||
|
||
(self dependentAspectsOn: aspect) | ||
do: [:dependentAspect | self changedDependent: dependentAspect]. |
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
8 changes: 5 additions & 3 deletions
8
packages/SwaLintBrowser.package/SwaLintBrowser.class/instance/resultsForTestSelection.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,6 +1,8 @@ | ||
accessing | ||
resultsForTestSelection | ||
<uses: #(selectedTestNode displayedResults)> | ||
|
||
self hasTestNodeSelected ifFalse: [^ self displayedResults]. | ||
|
||
^ self resultsForTestNode: self selectedTestNode | ||
^ self cached: | ||
[self hasTestNodeSelected | ||
ifFalse: [self displayedResults] | ||
ifTrue: [self resultsForTestNode: self selectedTestNode]] |
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