Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ Iterate over each mapping between an original source/line/column and a
generated line/column in this source map.

- `callback`: The function that is called with each mapping. Mappings have the
form `{ source, generatedLine, generatedColumn, originalLine, originalColumn, name }`
form `{ source, generatedLine, generatedColumn, originalLine, originalColumn, name }`.

- `context`: Optional. If specified, this object will be the value of `this`
every time that `callback` is called.
Expand Down Expand Up @@ -665,9 +665,9 @@ var node = new SourceNode(1, 2, "a.cpp", [

Creates a SourceNode from generated code and a SourceMapConsumer.

- `code`: The generated code
- `code`: The generated code.

- `sourceMapConsumer` The SourceMap for the generated code
- `sourceMapConsumer` The SourceMap for the generated code.

- `relativePath` The optional path that relative sources in `sourceMapConsumer`
should be relative to.
Expand Down Expand Up @@ -711,9 +711,9 @@ node.prepend("/** Build Id: f783haef86324gf **/\n\n");
Set the source content for a source file. This will be added to the
`SourceMap` in the `sourcesContent` field.

- `sourceFile`: The filename of the source file
- `sourceFile`: The filename of the source file.

- `sourceContent`: The content of the source file
- `sourceContent`: The content of the source file.

```js
node.setSourceContent(
Expand Down