diff options
Diffstat (limited to 'node_modules/source-map/README.md')
| -rw-r--r-- | node_modules/source-map/README.md | 41 |
1 files changed, 14 insertions, 27 deletions
diff --git a/node_modules/source-map/README.md b/node_modules/source-map/README.md index fea4beb1..32813394 100644 --- a/node_modules/source-map/README.md +++ b/node_modules/source-map/README.md @@ -248,13 +248,9 @@ Returns the original source, line, and column information for the generated source's line and column positions provided. The only argument is an object with the following properties: -* `line`: The line number in the generated source. Line numbers in - this library are 1-based (note that the underlying source map - specification uses 0-based line numbers -- this library handles the - translation). +* `line`: The line number in the generated source. -* `column`: The column number in the generated source. Column numbers - in this library are 0-based. +* `column`: The column number in the generated source. * `bias`: Either `SourceMapConsumer.GREATEST_LOWER_BOUND` or `SourceMapConsumer.LEAST_UPPER_BOUND`. Specifies whether to return the closest @@ -268,10 +264,10 @@ and an object is returned with the following properties: available. * `line`: The line number in the original source, or null if this information is - not available. The line number is 1-based. + not available. * `column`: The column number in the original source, or null if this - information is not available. The column number is 0-based. + information is not available. * `name`: The original identifier, or null if this information is not available. @@ -297,19 +293,15 @@ the following properties: * `source`: The filename of the original source. -* `line`: The line number in the original source. The line number is - 1-based. +* `line`: The line number in the original source. -* `column`: The column number in the original source. The column - number is 0-based. +* `column`: The column number in the original source. and an object is returned with the following properties: -* `line`: The line number in the generated source, or null. The line - number is 1-based. +* `line`: The line number in the generated source, or null. -* `column`: The column number in the generated source, or null. The - column number is 0-based. +* `column`: The column number in the generated source, or null. ```js consumer.generatedPositionFor({ source: "example.js", line: 2, column: 10 }) @@ -330,19 +322,15 @@ The only argument is an object with the following properties: * `source`: The filename of the original source. -* `line`: The line number in the original source. The line number is - 1-based. +* `line`: The line number in the original source. -* `column`: Optional. The column number in the original source. The - column number is 0-based. +* `column`: Optional. The column number in the original source. and an array of objects is returned, each with the following properties: -* `line`: The line number in the generated source, or null. The line - number is 1-based. +* `line`: The line number in the generated source, or null. -* `column`: The column number in the generated source, or null. The - column number is 0-based. +* `column`: The column number in the generated source, or null. ```js consumer.allGeneratedpositionsfor({ line: 2, source: "foo.coffee" }) @@ -546,11 +534,10 @@ use before outputting the generated JS and source map. #### new SourceNode([line, column, source[, chunk[, name]]]) * `line`: The original line number associated with this source node, or null if - it isn't associated with an original line. The line number is 1-based. + it isn't associated with an original line. * `column`: The original column number associated with this source node, or null - if it isn't associated with an original column. The column number - is 0-based. + if it isn't associated with an original column. * `source`: The original source's filename; null if no filename is provided. |
