Skip to content

Commit

Permalink
Using CompilationUnitResolver ext.pt in javac plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed Jun 10, 2024
1 parent fb3c5f2 commit 75b6d67
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
12 changes: 12 additions & 0 deletions org.eclipse.jdt.core.javac/fragment.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<fragment>
<extension
point="org.eclipse.jdt.core.compilationUnitResolver">
<resolver
class="org.eclipse.jdt.core.dom.JavacCompilationUnitResolver"
id="org.eclipse.jdt.core.javac.JavacCompilationUnitResolver">
</resolver>
</extension>

</fragment>
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@
* Allows to create and resolve DOM ASTs using Javac
* @implNote Cannot move to another package because parent class is package visible only
*/
class JavacCompilationUnitResolver implements ICompilationUnitResolver {
public class JavacCompilationUnitResolver implements ICompilationUnitResolver {
public JavacCompilationUnitResolver() {
// 0-arg constructor
}

private interface GenericRequestor {
public void acceptBinding(String bindingKey, IBinding binding);
}
Expand Down

0 comments on commit 75b6d67

Please sign in to comment.