Skip to content

Update extensions of classes that got renamed #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/Sindarin/ASTAssignmentNode.extension.st

This file was deleted.

7 changes: 0 additions & 7 deletions src/Sindarin/ASTMessageNode.extension.st

This file was deleted.

7 changes: 0 additions & 7 deletions src/Sindarin/ASTReturnNode.extension.st

This file was deleted.

7 changes: 7 additions & 0 deletions src/Sindarin/OCAssignmentNode.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Extension { #name : 'OCAssignmentNode' }

{ #category : '*Sindarin' }
OCAssignmentNode >> skipWithDebugger: aSindarinDebugger [

aSindarinDebugger skipAssignmentNodeCompletely
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Extension { #name : 'ASTBlockNode' }
Extension { #name : 'OCBlockNode' }

{ #category : '*Sindarin' }
ASTBlockNode >> executedNodesAfter: aNode [
OCBlockNode >> executedNodesAfter: aNode [

"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"

Expand All @@ -14,13 +14,13 @@ ASTBlockNode >> executedNodesAfter: aNode [
]

{ #category : '*Sindarin' }
ASTBlockNode >> firstPCOfStatement: aStatementNode [
OCBlockNode >> firstPCOfStatement: aStatementNode [

^ self bcToASTCache firstRecursiveBcOffsetForStatementNode: aStatementNode
]

{ #category : '*Sindarin' }
ASTBlockNode >> nextExecutedNodeAfter: aNode [
OCBlockNode >> nextExecutedNodeAfter: aNode [

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

Expand All @@ -32,7 +32,7 @@ ASTBlockNode >> nextExecutedNodeAfter: aNode [
]

{ #category : '*Sindarin' }
ASTBlockNode >> parentOfIdenticalSubtree: subtree [
OCBlockNode >> parentOfIdenticalSubtree: subtree [

^ self allChildren reversed
detect: [ :e | e == subtree ]
Expand All @@ -41,7 +41,7 @@ ASTBlockNode >> parentOfIdenticalSubtree: subtree [
]

{ #category : '*Sindarin' }
ASTBlockNode >> skipWithDebugger: aSindarinDebugger [
OCBlockNode >> skipWithDebugger: aSindarinDebugger [

aSindarinDebugger skipBlockNode
]
7 changes: 7 additions & 0 deletions src/Sindarin/OCMessageNode.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Extension { #name : 'OCMessageNode' }

{ #category : '*Sindarin' }
OCMessageNode >> skipWithDebugger: aSindarinDebugger [

aSindarinDebugger skipMessageNode
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Extension { #name : 'ASTMethodNode' }
Extension { #name : 'OCMethodNode' }

{ #category : '*Sindarin' }
ASTMethodNode >> executedNodesAfter: aNode [
OCMethodNode >> executedNodesAfter: aNode [

"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"

Expand All @@ -14,13 +14,13 @@ ASTMethodNode >> executedNodesAfter: aNode [
]

{ #category : '*Sindarin' }
ASTMethodNode >> firstPCOfStatement: aStatementNode [
OCMethodNode >> firstPCOfStatement: aStatementNode [

^ self bcToASTCache firstRecursiveBcOffsetForStatementNode: aStatementNode
]

{ #category : '*Sindarin' }
ASTMethodNode >> nextExecutedNodeAfter: aNode [
OCMethodNode >> nextExecutedNodeAfter: aNode [

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

Expand All @@ -32,7 +32,7 @@ ASTMethodNode >> nextExecutedNodeAfter: aNode [
]

{ #category : '*Sindarin' }
ASTMethodNode >> parentOfIdenticalSubtree: subtree [
OCMethodNode >> parentOfIdenticalSubtree: subtree [

^ self allChildren reversed
detect: [ :e | e == subtree ]
Expand All @@ -41,7 +41,7 @@ ASTMethodNode >> parentOfIdenticalSubtree: subtree [
]

{ #category : '*Sindarin' }
ASTMethodNode >> statementNodeContaining: aNode [
OCMethodNode >> statementNodeContaining: aNode [

| statementNode parentOfStatementNode |
statementNode := aNode.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Extension { #name : 'ASTProgramNode' }
Extension { #name : 'OCProgramNode' }

{ #category : '*Sindarin' }
ASTProgramNode >> allChildrenPostOrder [
OCProgramNode >> allChildrenPostOrder [

| children |
children := OrderedCollection new.
Expand All @@ -12,7 +12,7 @@ ASTProgramNode >> allChildrenPostOrder [
]

{ #category : '*Sindarin' }
ASTProgramNode >> skipWithDebugger: aSindarinDebugger [
OCProgramNode >> skipWithDebugger: aSindarinDebugger [

aSindarinDebugger step
]
7 changes: 7 additions & 0 deletions src/Sindarin/OCReturnNode.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Extension { #name : 'OCReturnNode' }

{ #category : '*Sindarin' }
OCReturnNode >> skipWithDebugger: aSindarinDebugger [

aSindarinDebugger skipReturnNode
]
2 changes: 1 addition & 1 deletion src/Sindarin/RBBlockDefinitionSearchingVisitor.class.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Class {
#name : 'RBBlockDefinitionSearchingVisitor',
#superclass : 'ASTProgramNodeVisitor',
#superclass : 'OCProgramNodeVisitor',
#instVars : [
'blockToSearch',
'isBlockFound'
Expand Down
Loading