[Pkg-javascript-commits] [node-acorn-jsx] 265/484: Fix docs about `sourceFile`/`directSourceFile`.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit 11dc953bc67195d978d59d106b48f8c0606c5bc0
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Sun Aug 3 10:03:24 2014 +0300

    Fix docs about `sourceFile`/`directSourceFile`.
---
 README.md | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index b7d2e23..3b42027 100644
--- a/README.md
+++ b/README.md
@@ -107,13 +107,14 @@ object referring to that same position.
   parse tree.
 
 - **sourceFile**: When the `locations` option is `true`, you can pass
-  this option to add a `sourceFile` attribute in every node’s `loc`
+  this option to add a `source` attribute in every node’s `loc`
   object. Note that the contents of this option are not examined or
   processed in any way; you are free to use whatever format you
   choose.
 
-- **directSourceFile**: Like `sourceFile`, but the property will be
-  added directly to the nodes, rather than to a `loc` object.
+- **directSourceFile**: Like `sourceFile`, but `sourceFile` property
+  will be added directly to the nodes, rather than `source` in a
+  `loc` object.
 
 [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list