Skip to content

Commit

Permalink
Update source_map.cr
Browse files Browse the repository at this point in the history
  • Loading branch information
confact committed Sep 11, 2023
1 parent 68e8e49 commit a3549bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sourcemap_parser/source_map.cr
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module SourceMap
end

# Retrieve a mapping for a specific line in the generated code and with source_path
def mapping_with_source_path_for(generated_line : Int32, source_path : String) : Mapping?
def mapping_with_source_path_for(generated_line : Int32, generated_column : Int32) : Mapping?
parsed_mappings.find do |mapping|
next if mapping.source_path.blank?
mapping.generated_line == generated_line && mapping.generated_column == generated_column
Expand Down

0 comments on commit a3549bc

Please sign in to comment.