mirror of
https://github.com/gren-lang/compiler.git
synced 2024-10-04 04:27:42 +03:00
Merge pull request #256 from gren-lang/bugfix-include-last-line-of-sourcemaps
Make sure to include last line of source mappings.
This commit is contained in:
commit
fae84eb807
@ -86,7 +86,7 @@ mappingMapUpdater toInsert maybeVal =
|
|||||||
|
|
||||||
parseMappingsHelp :: Word16 -> Word16 -> Map Word16 [JS.Mapping] -> Mappings -> Mappings
|
parseMappingsHelp :: Word16 -> Word16 -> Map Word16 [JS.Mapping] -> Mappings -> Mappings
|
||||||
parseMappingsHelp currentLine lastLine mappingMap acc =
|
parseMappingsHelp currentLine lastLine mappingMap acc =
|
||||||
if currentLine >= lastLine
|
if currentLine > lastLine
|
||||||
then acc
|
then acc
|
||||||
else case Map.lookup currentLine mappingMap of
|
else case Map.lookup currentLine mappingMap of
|
||||||
Nothing ->
|
Nothing ->
|
||||||
|
Loading…
Reference in New Issue
Block a user