Skip to content

Commit

Permalink
fix bad source locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Evanczuk committed May 30, 2023
1 parent 03d3b17 commit 4cd25f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/packs/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ fn references_to_cache_entry(
namespace_path: r.module_nesting.to_owned(),
relative_path: relative_path.to_owned(),
source_location: SourceLocation {
line: r.location.start_col,
column: r.location.end_col,
line: r.location.start_row,
column: r.location.start_col,
},
}
})
Expand Down Expand Up @@ -136,7 +136,7 @@ mod tests {
constant_name: String::from("Bar"),
namespace_path: vec![String::from("Foo")],
relative_path: String::from("packs/foo/app/services/foo.rb"),
source_location: SourceLocation { line: 5, column: 8 },
source_location: SourceLocation { line: 3, column: 5 },
}],
};

Expand Down

0 comments on commit 4cd25f9

Please sign in to comment.