Skip to content

Commit

Permalink
fuir: Use sourceRange(), not pos() when missing abstract implemen…
Browse files Browse the repository at this point in the history
…tation

This is a preparatory patch for PR#3775. Since after #3775, only data form
modules is used and the position of an Expr is lost, only the source range is
left, the test output would change.
  • Loading branch information
fridis committed Sep 17, 2024
1 parent 665fab8 commit 721fb51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/flang/fuir/FUIR.java
Original file line number Diff line number Diff line change
Expand Up @@ -2085,7 +2085,7 @@ public SourcePosition sitePos(int s)
if (s != NO_SITE)
{
var e = getExpr(s);
result = (e instanceof Expr expr) ? expr.pos() :
result = (e instanceof Expr expr) ? expr.sourceRange() :
(e instanceof Clazz z) ? z._type.declarationPos() /* implicit assignment to argument field */
: null;
}
Expand Down

0 comments on commit 721fb51

Please sign in to comment.