Commit a30fd0d
Improve extends/implements completion
- precalculate extends or implements info
- When there is no prefix, suggest types declared in the same class,
eg. suggest `MyInterface` in the following snippet
```java
public class MyClass implements | {
}
interface MyInterface {}
```
- Better recovery of bindings for classes with incomplete extends or
implements sections
- previously the binding key was always `*`, which caused many that
relied on the binding key to break
- Use ExtendsOrImplements info filtering in more places
Signed-off-by: David Thompson <[email protected]>1 parent 3dd1f9e commit a30fd0d
File tree
3 files changed
+210
-67
lines changed- org.eclipse.jdt.core.javac/src/org/eclipse/jdt
- core/dom
- internal
- codeassist
- javac/dom
3 files changed
+210
-67
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
709 | 711 | | |
710 | 712 | | |
711 | 713 | | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
712 | 717 | | |
713 | 718 | | |
714 | 719 | | |
| |||
0 commit comments