-
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
38 changed files
with
137 additions
and
37 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/Babylonian-Core.package/BPAnnotation.class/instance/removeFromMethod..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
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
2 changes: 1 addition & 1 deletion
2
packages/Babylonian-Core.package/BPClassNameToInstanceProbes.class/instance/addProbe..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,4 +1,4 @@ | ||
as yet unclassified | ||
actions | ||
addProbe: aProbe | ||
|
||
nameToProbesDict at: aProbe assignedClassName | ||
|
2 changes: 1 addition & 1 deletion
2
packages/Babylonian-Core.package/BPClassNameToInstanceProbes.class/instance/at..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,4 +1,4 @@ | ||
as yet unclassified | ||
accessing | ||
at: aClassName | ||
|
||
^ nameToProbesDict at: aClassName |
2 changes: 1 addition & 1 deletion
2
packages/Babylonian-Core.package/BPClassNameToInstanceProbes.class/instance/removeProbe..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,4 +1,4 @@ | ||
as yet unclassified | ||
actions | ||
removeProbe: aProbe | ||
|
||
nameToProbesDict at: aProbe assignedClassName | ||
|
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
1 change: 1 addition & 0 deletions
1
...ages/Babylonian-Core.package/BPInstanceVariableProbe.class/instance/assignedClassName..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,3 +1,4 @@ | ||
accessing | ||
assignedClassName: aString | ||
|
||
assignedClassName := aString |
1 change: 1 addition & 0 deletions
1
packages/Babylonian-Core.package/BPInstanceVariableProbe.class/instance/assignedClassName.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,3 +1,4 @@ | ||
accessing | ||
assignedClassName | ||
|
||
^ assignedClassName |
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
1 change: 1 addition & 0 deletions
1
...Babylonian-Core.package/BPInstanceVariableProbe.class/instance/instrumentationCallFor..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
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
12 changes: 0 additions & 12 deletions
12
.../Babylonian-Core.package/Object.extension/instance/bpTraceVariable.forProbe.inContext..st
This file was deleted.
Oops, something went wrong.
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
2 changes: 2 additions & 0 deletions
2
...nian-Tests.package/BPBrowserTest.class/instance/testCorrectIntervalForInstanceVariable.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,2 @@ | ||
as yet unclassified | ||
testCorrectIntervalForInstanceVariable |
5 changes: 5 additions & 0 deletions
5
...est.class/instance/testDeterminesCorrectIntervalForExistingVariableAndPerfectSelection.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,5 @@ | ||
as yet unclassified | ||
testDeterminesCorrectIntervalForExistingVariableAndPerfectSelection | ||
|
||
browser selectClassNamed: #BPTestExamplesClass. | ||
self assert: (69 to: 71) equals: (browser determineIntervalToAnnotateFor: (BPInstanceVariableProbe new variableName: 'foo') in: (69 to: 71)) |
5 changes: 5 additions & 0 deletions
5
...class/instance/testDeterminesCorrectIntervalForExistingVariableIgnoresSpaceInSelection.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,5 @@ | ||
as yet unclassified | ||
testDeterminesCorrectIntervalForExistingVariableIgnoresSpaceInSelection | ||
|
||
browser selectClassNamed: #BPTestExamplesClass. | ||
self assert: (69 to: 71) equals: (browser determineIntervalToAnnotateFor: (BPInstanceVariableProbe new variableName: 'foo') in: (68 to: 71)) |
5 changes: 5 additions & 0 deletions
5
...rowserTest.class/instance/testDeterminesNoIntervalForExistingVariableButWrongSelection.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,5 @@ | ||
as yet unclassified | ||
testDeterminesNoIntervalForExistingVariableButWrongSelection | ||
|
||
browser selectClassNamed: #BPTestExamplesClass. | ||
self assert: nil equals: (browser determineIntervalToAnnotateFor: (BPInstanceVariableProbe new variableName: 'foo') in: (66 to: 71)) |
2 changes: 2 additions & 0 deletions
2
....package/BPBrowserTest.class/instance/testExtractsCorrectInstanceVariableProbeInterval.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,2 @@ | ||
as yet unclassified | ||
testExtractsCorrectInstanceVariableProbeInterval |
2 changes: 2 additions & 0 deletions
2
...Tests.package/BPBrowserTest.class/instance/testHasCorrectInstanceVariableProbeInterval.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,2 @@ | ||
as yet unclassified | ||
testHasCorrectInstanceVariableProbeInterval |
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
5 changes: 5 additions & 0 deletions
5
...ian-Tests.package/BPCompilerTest.class/instance/testExtractVariableAssignmentIntervals.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,5 @@ | ||
tests | ||
testExtractVariableAssignmentIntervals | ||
|
||
self assert: {76@83 . 139@146} | ||
equals: ((BPTestExamplesClass >> #methodSettingInstanceVars) bpExtractVariableAssignmentRangesNamed: 'foo') |
13 changes: 13 additions & 0 deletions
13
...ckage/BPCompilerTest.class/instance/testRewritingLeftHandOfDoubleNestedAssignmentProbe.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,13 @@ | ||
tests | ||
testRewritingLeftHandOfDoubleNestedAssignmentProbe | ||
|
||
self | ||
assertCompilerRewrites: | ||
'method | ||
| variable | | ||
"<bpProbe id: 2>""<bpProbe id: 1>"variable := 2 raisedTo: 3"</bpProbe>""</bpProbe>".' | ||
to: | ||
'method | ||
<layer: #bpInstrumented> | ||
| variable | | ||
(self bpTraceAssignmentOf: [(self bpTraceAssignmentOf: [variable := 2 raisedTo: 3] before: {''variable'' . variable} forProbe: 1 inContext: thisContext)] before: {} forProbe: 2 inContext: thisContext).' |
13 changes: 13 additions & 0 deletions
13
...ckage/BPCompilerTest.class/instance/testRewritingLeftHandOfTripleNestedAssignmentProbe.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,13 @@ | ||
tests | ||
testRewritingLeftHandOfTripleNestedAssignmentProbe | ||
|
||
self | ||
assertCompilerRewrites: | ||
'method | ||
| variable | | ||
"<bpProbe id: 3>""<bpProbe id: 2>""<bpProbe id: 1>"variable := 2 raisedTo: 3"</bpProbe>""</bpProbe>""</bpProbe>".' | ||
to: | ||
'method | ||
<layer: #bpInstrumented> | ||
| variable | | ||
(self bpTraceAssignmentOf: [(self bpTraceAssignmentOf: [(self bpTraceAssignmentOf: [variable := 2 raisedTo: 3] before: {''variable'' . variable} forProbe: 1 inContext: thisContext)] before: {} forProbe: 2 inContext: thisContext)] before: {} forProbe: 3 inContext: thisContext).' |
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
17 changes: 17 additions & 0 deletions
17
...ian-Tests.package/BPSmalltalkGrammarTest.class/instance/testNestedAnnotatedAssignments.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,17 @@ | ||
tests | ||
testNestedAnnotatedAssignments | ||
|
||
startRule := #Statement. | ||
|
||
self | ||
shouldParse: '"<bpProbe id: 2>""<bpProbe id: 1>"variable := 2"</bpProbe>""</bpProbe>"'; | ||
shouldParse: 'variable := "<bpProbe id: 2>""<bpProbe id: 1>"2"</bpProbe>""</bpProbe>"'. | ||
|
||
self | ||
shouldParse: '"<bpProbe id: 2>""<bpProbe id: 1>"variable := 2"</bpProbe>""</bpProbe>"' | ||
to: #(Statement | ||
(AnnotatedStatement | ||
(expressionAnnotationStart '"<bpProbe id: 2>"') | ||
(Statement | ||
(AnnotatedStatement '"<bpProbe id: 1>"variable := 2"</bpProbe>"')) | ||
(expressionAnnotationEnd '"</bpProbe>"'))). |
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
3 changes: 3 additions & 0 deletions
3
packages/Babylonian-Tests.package/BPTestExamplesClass.class/instance/foo..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,3 @@ | ||
accessing | ||
foo: anObject | ||
foo := anObject |
3 changes: 3 additions & 0 deletions
3
packages/Babylonian-Tests.package/BPTestExamplesClass.class/instance/foo.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,3 @@ | ||
accessing | ||
foo | ||
^ foo |
3 changes: 3 additions & 0 deletions
3
packages/Babylonian-Tests.package/BPTestExamplesClass.class/instance/foo2..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,3 @@ | ||
accessing | ||
foo2: anObject | ||
foo2 := anObject |
3 changes: 3 additions & 0 deletions
3
packages/Babylonian-Tests.package/BPTestExamplesClass.class/instance/foo2.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,3 @@ | ||
accessing | ||
foo2 | ||
^ foo2 |
17 changes: 17 additions & 0 deletions
17
.../Babylonian-Tests.package/BPTestExamplesClass.class/instance/methodSettingInstanceVars.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,17 @@ | ||
example methods | ||
methodSettingInstanceVars | ||
|
||
'hello world'. | ||
self foo; | ||
foo2. | ||
foo2 := 1. | ||
foo := 2. | ||
self foo2: 3. | ||
self foo: 4. | ||
[ |var| | ||
var := 5. | ||
foo := 6. | ||
[ |foo foo2| | ||
foo := 7. | ||
foo2 := 8.]] | ||
|
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
6 changes: 3 additions & 3 deletions
6
.../instance/applyInstanceVariableIn.for..st → ...ass/instance/applyInstanceProbeIn.for..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
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