Skip to content

Commit

Permalink
fixed parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Nov 5, 2024
1 parent 7cbf0de commit a8ff140
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/org/rascalmpl/library/analysis/diff/edits/TextEdits.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ TextEdit delete(loc range)

@synopsis{Inserting before a given range.}
TextEdit insertBefore(loc range, str insertion, str separator=" ")
= range.begin?
= (range.begin?)
? replace(range.top(range.offset, 0, range.begin, range.begin), "<insertion><separator>")
: replace(range.top(range.offset, 0), "<insertion><separator>");

@synopsis{Inserting after a given range.}
TextEdit insertAfter(loc range, str insertion, str separator=" ")
= range.end?
? replace(range.top(range.offset + range.length, 0, range.end, range.end), "<separator><insertion>");
= (range.end?)
? replace(range.top(range.offset + range.length, 0, range.end, range.end), "<separator><insertion>")
: replace(range.top(range.offset + range.length, 0), "<separator><insertion>");

2 changes: 0 additions & 2 deletions src/org/rascalmpl/semantics/dynamic/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
import org.rascalmpl.interpreter.result.Result;
import org.rascalmpl.interpreter.result.ResultFactory;
import org.rascalmpl.interpreter.utils.Names;
import org.rascalmpl.uri.URIUtil;

import io.usethesource.vallang.IConstructor;
import io.usethesource.vallang.ISourceLocation;
import io.usethesource.vallang.IValue;
Expand Down

0 comments on commit a8ff140

Please sign in to comment.