Commit 91ee299
authored
PR-2107 follow-up: avoid sharing AST nodes (eclipse-jdt#4127)
PR 2107 copies a reference to an AST node (local declaration) which
implies that the same node will be visited twice for all phases.
Let's play safe and move instead of copy in order to maintain that AST
is indeed a tree :)1 parent 3a87bcb commit 91ee299
File tree
1 file changed
+1
-0
lines changed- org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete
1 file changed
+1
-0
lines changedorg.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
| 700 | + | |
700 | 701 | | |
701 | 702 | | |
702 | 703 | | |
| |||
0 commit comments