From 93b493bffefa284c886dfe82ab855f561ccc893d Mon Sep 17 00:00:00 2001 From: Rob Stryker Date: Tue, 11 Jun 2024 16:52:15 -0400 Subject: [PATCH] Adjust to API change Signed-off-by: Rob Stryker --- .../jdt/internal/javac/dom/JavacCompilationUnitResolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacCompilationUnitResolver.java b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacCompilationUnitResolver.java index ce83db4ae4d..7c66dc47a9a 100644 --- a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacCompilationUnitResolver.java +++ b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacCompilationUnitResolver.java @@ -61,7 +61,6 @@ import org.eclipse.jdt.core.dom.JavacEnhancementPackagePrivateUtility.InternalNameEnvironmentWithProgress; import org.eclipse.jdt.core.dom.Javadoc; import org.eclipse.jdt.core.dom.MethodDeclaration; -import org.eclipse.jdt.core.dom.NodeSearcher; import org.eclipse.jdt.core.dom.RecordDeclaration; import org.eclipse.jdt.core.dom.SingleVariableDeclaration; import org.eclipse.jdt.core.dom.TypeDeclaration; @@ -366,8 +365,9 @@ private void resolveBindings(CompilationUnit unit, String[] bindingKeys, ASTRequ @Override public CompilationUnit toCompilationUnit(org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit, boolean initialNeedsToResolveBinding, IJavaProject project, List classpaths, - NodeSearcher nodeSearcher, int apiLevel, Map compilerOptions, + int focalPosition, int apiLevel, Map compilerOptions, WorkingCopyOwner workingCopyOwner, WorkingCopyOwner typeRootWorkingCopyOwner, int flags, IProgressMonitor monitor) { + // TODO currently only parse CompilationUnit res = parse(new org.eclipse.jdt.internal.compiler.env.ICompilationUnit[] { sourceUnit}, apiLevel, compilerOptions, flags, project, monitor).get(sourceUnit);