From 7a39a77d2787ad6f7b02594500734e2949b084a9 Mon Sep 17 00:00:00 2001 From: "Jurgen J. Vinju" Date: Tue, 5 Nov 2024 16:17:22 +0100 Subject: [PATCH] added missing line/column information --- .../core/library/lang/rascalcore/check/CollectDeclaration.rsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/rascalmpl/core/library/lang/rascalcore/check/CollectDeclaration.rsc b/src/org/rascalmpl/core/library/lang/rascalcore/check/CollectDeclaration.rsc index 688c5e0f..05ade402 100644 --- a/src/org/rascalmpl/core/library/lang/rascalcore/check/CollectDeclaration.rsc +++ b/src/org/rascalmpl/core/library/lang/rascalcore/check/CollectDeclaration.rsc @@ -757,6 +757,6 @@ CodeAction removeJavaClass(FunctionDeclaration decl) = action( ); list[CodeAction] javaClassProposals(FunctionDeclaration decl) = [ - action(title="add missing ", edits=[changed(decl@\loc.top, [replace(decl.tags@\loc(decl.tags@\loc.offset, 0), "\n")])]) + action(title="add missing ", edits=[changed(decl@\loc.top, [replace(decl.tags@\loc(decl.tags@\loc.offset, 0, decl.tags@\loc.begin, decl.tags@\loc.begin), "\n")])]) | str a <- sort({"" | /t:(Tag) `@javaClass` := parseModule(decl@\loc.top)}) ]; \ No newline at end of file