File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,6 @@ extension RawSyntax : Identifiable {}
54
54
/// instance of the deserializer must be used for all subsequent
55
55
/// deserializations.
56
56
public final class SyntaxTreeDeserializer {
57
- // FIXME: This lookup table just accumulates nodes, we should invalidate nodes
58
- // that are no longer used at some point and remove them from the table
59
-
60
57
/// Syntax nodes that have already been parsed and are able to be reused if
61
58
/// they were omitted in an incremental syntax tree transfer
62
59
private var nodeLookupTable : WeakLookupTable < RawSyntax > = . init( )
@@ -65,7 +62,7 @@ public final class SyntaxTreeDeserializer {
65
62
/// `nodeLookupTable`. Because `nodeLookupTable` only holds a weak reference
66
63
/// to the RawSyntax nodes, all retired `RawSyntax` nodes will be deallocated
67
64
/// once we set a new tree. The weak references in `nodeLookupTable` will then
68
- /// become `nil` but will also never be accessed again .
65
+ /// become `nil` and the slot will be reused to refer another node .
69
66
private var nodeLookupTree : RawSyntax ? = nil
70
67
71
68
/// The IDs of the nodes that were reused as part of incremental syntax
You can’t perform that action at this time.
0 commit comments