Skip to content

Commit 1c79472

Browse files
committed
Add TS python 0.25.0 support (I hope, I did not test it)
1 parent d632af1 commit 1c79472

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/FAST-Python-Tools/FASTPythonVisitor.class.st

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,17 @@ FASTPythonVisitor >> visitExpressionList: aTSNode [
524524
^ self visitTuple: aTSNode
525525
]
526526

527+
{ #category : 'visiting - skip' }
528+
FASTPythonVisitor >> visitExpressionStatement: aTSNode [
529+
"HERE FOR COMPATIBILITY!
530+
531+
Tree Sitter python changed its tree in this commit: https://github.com/tree-sitter/tree-sitter-python/commit/26855eabccb19c6abf499fbc5b8dc7cc9ab8bc64
532+
533+
I am here for compatibility with versions of TS python before this commit. I can be dropped in the future once nobody will use this older TS python version."
534+
535+
self rawVisitChildren: aTSNode
536+
]
537+
527538
{ #category : 'visiting' }
528539
FASTPythonVisitor >> visitFalse: aNode [
529540

0 commit comments

Comments
 (0)