Skip to content

Commit daf8104

Browse files
committed
Fix bug introduced in the TSFASTImporter
I forgot to nil out a variable :( My PR introducing the customizable importer will change the code with the error to have something cleaner by refying the context entries. The bug was already fixed without me knowing in my other branch :)
1 parent 1e89b81 commit daf8104

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TreeSitter-FAST-Utils/TSFASTImporter.class.st

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ TSFASTImporter >> originString: anObject [
9595
{ #category : 'accessing' }
9696
TSFASTImporter >> tsLanguage: anObject [
9797

98-
self deprecated: 'This is not used and can be removed.' t
98+
self deprecated: 'This is not used and can be removed.'
9999
]
100100

101101
{ #category : 'visiting' }
@@ -107,6 +107,7 @@ TSFASTImporter >> visitChildren: aTSNode in: fastEntity [
107107

108108
"When visiting the children of the children we might lose the current property so we save it."
109109
previousProperty := currentFMProperty.
110+
currentFMProperty := nil.
110111

111112
aTSNode collectFieldNameOfNamedChild keysAndValuesDo: [ :field :nodes |
112113
"If the field has the name of a property, we save this property so that my children can use it to set themselves in the right variable"

0 commit comments

Comments
 (0)