Skip to content

Commit c31f95c

Browse files
authored
Merge pull request #98 from jecisc/extensions
Update classes of extensions
2 parents b791f66 + 3b62add commit c31f95c

10 files changed

+37
-37
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Extension { #name : 'ASTAssignmentNode' }
2+
3+
{ #category : '*Sindarin' }
4+
ASTAssignmentNode >> skipWithDebugger: aSindarinDebugger [
5+
6+
aSindarinDebugger skipAssignmentNodeCompletely
7+
]

src/Sindarin/RBBlockNode.extension.st renamed to src/Sindarin/ASTBlockNode.extension.st

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Extension { #name : 'RBBlockNode' }
1+
Extension { #name : 'ASTBlockNode' }
22

33
{ #category : '*Sindarin' }
4-
RBBlockNode >> executedNodesAfter: aNode [
4+
ASTBlockNode >> executedNodesAfter: aNode [
55

66
"Gives all nodes that are executed after aNode. Assuming that aNode is a recursive child, then all nodes executed after it are all nodes after it in allChildrenPostOrder"
77

@@ -14,13 +14,13 @@ RBBlockNode >> executedNodesAfter: aNode [
1414
]
1515

1616
{ #category : '*Sindarin' }
17-
RBBlockNode >> firstPCOfStatement: aStatementNode [
17+
ASTBlockNode >> firstPCOfStatement: aStatementNode [
1818

1919
^ self bcToASTCache firstRecursiveBcOffsetForStatementNode: aStatementNode
2020
]
2121

2222
{ #category : '*Sindarin' }
23-
RBBlockNode >> nextExecutedNodeAfter: aNode [
23+
ASTBlockNode >> nextExecutedNodeAfter: aNode [
2424

2525
"Find first node that is after aNode that has an associated pc in method node all children (post-order)"
2626

@@ -32,7 +32,7 @@ RBBlockNode >> nextExecutedNodeAfter: aNode [
3232
]
3333

3434
{ #category : '*Sindarin' }
35-
RBBlockNode >> parentOfIdenticalSubtree: subtree [
35+
ASTBlockNode >> parentOfIdenticalSubtree: subtree [
3636

3737
^ self allChildren reversed
3838
detect: [ :e | e == subtree ]
@@ -41,7 +41,7 @@ RBBlockNode >> parentOfIdenticalSubtree: subtree [
4141
]
4242

4343
{ #category : '*Sindarin' }
44-
RBBlockNode >> skipWithDebugger: aSindarinDebugger [
44+
ASTBlockNode >> skipWithDebugger: aSindarinDebugger [
4545

4646
aSindarinDebugger skipBlockNode
4747
]
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Extension { #name : 'ASTMessageNode' }
2+
3+
{ #category : '*Sindarin' }
4+
ASTMessageNode >> skipWithDebugger: aSindarinDebugger [
5+
6+
aSindarinDebugger skipMessageNode
7+
]

src/Sindarin/RBMethodNode.extension.st renamed to src/Sindarin/ASTMethodNode.extension.st

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Extension { #name : 'RBMethodNode' }
1+
Extension { #name : 'ASTMethodNode' }
22

33
{ #category : '*Sindarin' }
4-
RBMethodNode >> executedNodesAfter: aNode [
4+
ASTMethodNode >> executedNodesAfter: aNode [
55

66
"Gives all nodes that are executed after aNode. Assuming that aNode is a recursive child, then all nodes executed after it are all nodes after it in allChildrenPostOrder"
77

@@ -14,13 +14,13 @@ RBMethodNode >> executedNodesAfter: aNode [
1414
]
1515

1616
{ #category : '*Sindarin' }
17-
RBMethodNode >> firstPCOfStatement: aStatementNode [
17+
ASTMethodNode >> firstPCOfStatement: aStatementNode [
1818

1919
^ self bcToASTCache firstRecursiveBcOffsetForStatementNode: aStatementNode
2020
]
2121

2222
{ #category : '*Sindarin' }
23-
RBMethodNode >> nextExecutedNodeAfter: aNode [
23+
ASTMethodNode >> nextExecutedNodeAfter: aNode [
2424

2525
"Find first node that is after aNode that has an associated pc in method node all children (post-order)"
2626

@@ -32,7 +32,7 @@ RBMethodNode >> nextExecutedNodeAfter: aNode [
3232
]
3333

3434
{ #category : '*Sindarin' }
35-
RBMethodNode >> parentOfIdenticalSubtree: subtree [
35+
ASTMethodNode >> parentOfIdenticalSubtree: subtree [
3636

3737
^ self allChildren reversed
3838
detect: [ :e | e == subtree ]
@@ -41,7 +41,7 @@ RBMethodNode >> parentOfIdenticalSubtree: subtree [
4141
]
4242

4343
{ #category : '*Sindarin' }
44-
RBMethodNode >> statementNodeContaining: aNode [
44+
ASTMethodNode >> statementNodeContaining: aNode [
4545

4646
| statementNode parentOfStatementNode |
4747
statementNode := aNode.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Extension { #name : 'RBProgramNode' }
1+
Extension { #name : 'ASTProgramNode' }
22

33
{ #category : '*Sindarin' }
4-
RBProgramNode >> allChildrenPostOrder [
4+
ASTProgramNode >> allChildrenPostOrder [
55

66
| children |
77
children := OrderedCollection new.
@@ -12,7 +12,7 @@ RBProgramNode >> allChildrenPostOrder [
1212
]
1313

1414
{ #category : '*Sindarin' }
15-
RBProgramNode >> skipWithDebugger: aSindarinDebugger [
15+
ASTProgramNode >> skipWithDebugger: aSindarinDebugger [
1616

1717
aSindarinDebugger step
1818
]
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Extension { #name : 'ASTReturnNode' }
2+
3+
{ #category : '*Sindarin' }
4+
ASTReturnNode >> skipWithDebugger: aSindarinDebugger [
5+
6+
aSindarinDebugger skipReturnNode
7+
]

src/Sindarin/RBAssignmentNode.extension.st

-7
This file was deleted.

src/Sindarin/RBBlockDefinitionSearchingVisitor.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Class {
22
#name : 'RBBlockDefinitionSearchingVisitor',
3-
#superclass : 'RBProgramNodeVisitor',
3+
#superclass : 'ASTProgramNodeVisitor',
44
#instVars : [
55
'blockToSearch',
66
'isBlockFound'

src/Sindarin/RBMessageNode.extension.st

-7
This file was deleted.

src/Sindarin/RBReturnNode.extension.st

-7
This file was deleted.

0 commit comments

Comments
 (0)