Skip to content

Commit

Permalink
Hoist originalLine and originalColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Sep 13, 2024
1 parent 1f092a1 commit 7e29eb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source-map.bs
Original file line number Diff line number Diff line change
Expand Up @@ -409,15 +409,15 @@ sources=] <dfn for="decode source map mappings">|sources|</dfn>, run the followi
1. Let |decodedMappings| be a new empty [=list=].
1. Let |groups| be the result of [=strictly split|strictly splitting=] |mappings| on `;`.
1. Let |generatedLine| be 0.
1. Let |originalLine| be 0.
1. Let |originalColumn| be 0.
1. Let |sourceIndex| be 0.
1. Let |nameIndex| be 0.
1. While |generatedLine| is less than |groups|'s [=list/size=]:
1. If |groups|[|generatedLine|] is not the empty string, then:
1. Let |segments| be the result of [=strictly split|strictly splitting=]
|groups|[|generatedLine|] on `,`.
1. Let |generatedColumn| be 0.
1. Let |originalLine| be 0.
1. Let |originalColumn| be 0.
1. [=For each=] |segment| in |segments|:
1. Let |position| be a [=position variable=] for |segment|, initially pointing at
|segment|'s start.
Expand Down

0 comments on commit 7e29eb6

Please sign in to comment.