Skip to content

Commit

Permalink
Merge pull request #2037 from usethesource/parser-origin-bug
Browse files Browse the repository at this point in the history
Parser origin location was not forwarded properly
  • Loading branch information
PieterOlivier authored Nov 13, 2024
2 parents 7de3427 + 5cc0b90 commit 42cf801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/rascalmpl/values/RascalFunctionValueFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ private IString printSymbol(IConstructor symbol) {
}

protected IValue parse(String methodName, ISet filters, ISourceLocation input, ISourceLocation origin, boolean allowAmbiguity, boolean hasSideEffects) {
if (origin == null) {
origin = input;
if (origin != null && !origin.equals(input)) {
throw new IllegalArgumentException("input and origin should be equal: <input> != <origin>");
}

try {
Expand Down

0 comments on commit 42cf801

Please sign in to comment.