Skip to content

Conversation

@sokra
Copy link
Contributor

@sokra sokra commented Mar 20, 2013

This pull request is based on #46 and #47.

It added a method SourceMapGenerator.applySourceMap.

It allows to merge a SourceMap for a source file into a SourceMapGenerator.

This is step 2 for composing SourceMaps.

@sokra sokra mentioned this pull request Mar 20, 2013
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: please add @param documentation comments.

@fitzgen
Copy link
Contributor

fitzgen commented Mar 20, 2013

We also need tests and documentation for applySourceMap before I can merge this in.

sokra added 2 commits March 21, 2013 10:20
I incorrectly assumed that mappings automatically end with new lines in the generated source.
@sokra
Copy link
Contributor Author

sokra commented Mar 21, 2013

rebased, documenation and test

Also found a bug in my previous commit...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: s/Than/Then/ :)

Also, while we're at it, these two sentences can be combined into one sentence: "Check if it can be mapped by the source map, then update the mapping."

@fitzgen fitzgen merged commit 541c785 into mozilla:master Mar 22, 2013
@fitzgen
Copy link
Contributor

fitzgen commented Mar 22, 2013

Ok so I just had a total brain fart (it's been a long day) and merged, pushed, and published this code. Luckily the only changes I requested are largely aesthetic, would you please submit them as a new pull request?

Thank you very much!

@sokra sokra mentioned this pull request Mar 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants