Skip to content

Commit

Permalink
Tiny typo
Browse files Browse the repository at this point in the history
Uses cases -> use cases

Close jquerygh-1911
  • Loading branch information
jordanstephens authored and ariya committed Jun 16, 2018
1 parent cc67021 commit 88010df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/syntactic-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Note that the tolerant mode is intended to deal with very few types of syntax er

## Node Location

By default, Esprima parser produces an [abstract syntax tree](https://en.wikipedia.org/wiki/Abstract_syntax_tree). For some uses cases, this abstract syntax tree is not sufficient. For instance, having the location information of each node is necessary in a few cases of static analysis, e.g. to give a meaningful feedback to the user.
By default, Esprima parser produces an [abstract syntax tree](https://en.wikipedia.org/wiki/Abstract_syntax_tree). For some use cases, this abstract syntax tree is not sufficient. For instance, having the location information of each node is necessary in a few cases of static analysis, e.g. to give a meaningful feedback to the user.

To have each node carries some additional properties indicating its location, the parser must be invoked by specifying the flags, `range` or `loc` or both of them, in the parsing configuration.

Expand Down

0 comments on commit 88010df

Please sign in to comment.