Skip to content

Commit 4ebdd96

Browse files
committed
Fix: Replace inheritance call with decorator delegation
1 parent acb518f commit 4ebdd96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ch/usi/si/seart/treesitter/OffsetTreeCursor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public Node getDescendant(int startByte, int endByte) {
144144

145145
@Override
146146
public Node getDescendant(@NotNull Point startPoint, @NotNull Point endPoint) {
147-
return super.getDescendant(
147+
return node.getDescendant(
148148
startPoint.subtract(offset),
149149
endPoint.subtract(offset)
150150
);
@@ -182,7 +182,7 @@ public Node getNamedDescendant(int startByte, int endByte) {
182182

183183
@Override
184184
public Node getNamedDescendant(@NotNull Point startPoint, @NotNull Point endPoint) {
185-
return super.getNamedDescendant(
185+
return node.getNamedDescendant(
186186
startPoint.subtract(offset),
187187
endPoint.subtract(offset)
188188
);

0 commit comments

Comments
 (0)