Skip to content
Snippets Groups Projects

Fixed compilation error

Merged Miklos Magyari requested to merge compilefix into main
1 file
+ 11
10
Compare changes
  • Side-by-side
  • Inline
@@ -31,9 +31,11 @@ import org.eclipse.titan.lsp.common.product.Configuration;
import org.eclipse.titan.lsp.core.LoadBalancingUtilities;
import org.eclipse.titan.lsp.core.Project;
import org.eclipse.titan.lsp.parsers.Status.FutureStatus;
import org.eclipse.titan.lsp.parsers.ttcn3parser.TTCN3Analyzer;
import org.eclipse.titan.lsp.parsers.ttcn3parser.TTCN3ReparseUpdater;
import org.eclipse.titan.lsp.TitanLanguageServer;
import org.eclipse.titan.lsp.AST.Module;
import org.eclipse.titan.lsp.AST.TTCN3.definitions.TTCN3Module;
/**
* This is project level root of all parsing related activities. Every data that
@@ -343,7 +345,7 @@ public final class ProjectSourceParser {
public CompletableFuture<FutureStatus> reportOutdating(final Path outdatedPath) {
final CompletableFuture<FutureStatus> future = CompletableFuture.supplyAsync(() -> {
syntacticAnalyzer.reportOutdating(outdatedPath);
semanticAnalyzer.reportSemanticOutdating(outdatedPath.toFile());
semanticAnalyzer.reportSemanticOutdating(outdatedPath);
return FutureStatus.OK_STATUS;
});
@@ -388,7 +390,7 @@ public final class ProjectSourceParser {
* */
public CompletableFuture<FutureStatus> reportOutdating(final List<File> outdatedFiles) {
final CompletableFuture<FutureStatus> future = CompletableFuture.supplyAsync(() -> {
for (File file : outdatedFiles) {
for (final File file : outdatedFiles) {
syntacticAnalyzer.reportOutdating(file.toPath());
}
@@ -410,10 +412,10 @@ public final class ProjectSourceParser {
*
* @return the WorkspaceJob in which the operation is running
* */
public CompletableFuture<FutureStatus> reportSemanticOutdating(final List<File> outdatedFiles) {
public CompletableFuture<FutureStatus> reportSemanticOutdating(final List<Path> outdatedFiles) {
final CompletableFuture<FutureStatus> future = CompletableFuture.supplyAsync(() -> {
for (File file : outdatedFiles) {
for (File outdatedFile : outdatedFiles) {
for (final Path file : outdatedFiles) {
for (final Path outdatedFile : outdatedFiles) {
semanticAnalyzer.reportSemanticOutdating(outdatedFile);
}
}
@@ -475,19 +477,18 @@ public final class ProjectSourceParser {
*
* @return the WorkspaceJob in which the operation is running
* */
public CompletableFuture<FutureStatus> updateSyntax(final File file, final TTCN3ReparseUpdater reparser) {
public CompletableFuture<FutureStatus> updateSyntax(final Path file, final TTCN3ReparseUpdater reparser) {
final CompletableFuture<FutureStatus> future = CompletableFuture.supplyAsync(() -> {
final double parserStart = System.nanoTime();
syntacticAnalyzer.updateSyntax(file, reparser);
if (Configuration.INSTANCE.getBoolean(Configuration.DISPLAY_DEBUG_INFORMATION, false)) {
//TITANDebugConsole.println("Refreshing the syntax took " + (System.nanoTime() - parserStart) * (1e-9) + " secs");
TITANDebugConsole.println("Refreshing the syntax took " + (System.nanoTime() - parserStart) * (1e-9) + " secs");
}
// FIXME
//final TTCN3Module actualModule = (TTCN3Module)GlobalParser.getProjectSourceParser(file.getProject()).containedModule(file);
//TTCN3Analyzer.md5_parser(file, reparser.getCode(), actualModule);
final TTCN3Module actualModule = (TTCN3Module)GlobalParser.getProjectSourceParser(Project.INSTANCE).containedModule(file);
TTCN3Analyzer.md5_parser(file, reparser.getCode(), actualModule);
return FutureStatus.OK_STATUS;
});
Loading