Skip to content

Commit

Permalink
fix: update parameter names in JSDocs.
Browse files Browse the repository at this point in the history
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Co-authored-by: Bryan Mishkin <698306+bmish@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 12, 2022
1 parent 030c505 commit 4b4b41b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion espree.js
Expand Up @@ -108,7 +108,7 @@ const parsers = {
/**
* Tokenizes the given code.
* @param {string} code The code to tokenize.
* @param {ParserOptions} options Options defining how to tokenize.
* @param {ParserOptions} [options] Options defining how to tokenize.
* @returns {EsprimaToken[]} An array of tokens.
* @throws {SyntaxError} If the input code is invalid.
* @private
Expand Down
2 changes: 1 addition & 1 deletion lib/espree.js
Expand Up @@ -18,7 +18,7 @@ const ESPRIMA_FINISH_NODE = Symbol("espree's esprimaFinishNode");
* @property {number|undefined} start Start column of a comment.
* @property {number|undefined} end End column of the comment.
* @property {Range|undefined} range The [start, end] range of a comment.
* @property {acorn.Position} startLoc End location of the comment.
* @property {acorn.Position} startLoc Start location of the comment.
* @property {acorn.Position} endLoc End location of the comment.
*/

Expand Down
6 changes: 3 additions & 3 deletions lib/features.js
Expand Up @@ -16,9 +16,9 @@

/**
* @typedef {Object} EcmaFeatures
* @property {boolean} jsx
* @property {boolean} globalReturn
* @property {boolean} impliedStrict
* @property {boolean} [jsx]
* @property {boolean} [globalReturn]
* @property {boolean} [impliedStrict]
*/

/**
Expand Down
16 changes: 8 additions & 8 deletions lib/options.js
Expand Up @@ -87,14 +87,14 @@ function normalizeSourceType(sourceType = "script") {

/**
* @typedef {Object} ParserOptions
* @property {boolean} range Whether to include the range information for each node.
* @property {boolean} loc Whether to include the location information for every node.
* @property {boolean} comments Whether to include an array of all comments
* @property {boolean} tokens Whether to include an array of all tokens
* @property {number|"latest"} ecmaVersion The ECMAScript version to use (between 3 and 13, or 2015 and 2022, or "latest").
* @property {boolean} allowReserved Only allowed when `ecmaVersion` is set to 3.
* @property {"script"|"module"|"commonjs"} sourceType The kind of the source string being parsed.
* @property {EcmaFeatures} ecmaFeatures The additional features to enable.
* @property {boolean} [range] Whether to include the range information for each node.
* @property {boolean} [loc] Whether to include the location information for every node.
* @property {boolean} [comment] Whether to include an array of all comments
* @property {boolean} [tokens] Whether to include an array of all tokens
* @property {number|"latest"} [ecmaVersion] The ECMAScript version to use (between 3 and 13, or 2015 and 2022, or "latest").
* @property {boolean} [allowReserved] Only allowed when `ecmaVersion` is set to 3.
* @property {"script"|"module"|"commonjs"} [sourceType] The kind of the source string being parsed.
* @property {EcmaFeatures} [ecmaFeatures] The additional features to enable.
*/

/**
Expand Down

0 comments on commit 4b4b41b

Please sign in to comment.