File tree 4 files changed +13
-13
lines changed
4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ const parsers = {
108
108
/**
109
109
* Tokenizes the given code.
110
110
* @param {string } code The code to tokenize.
111
- * @param {ParserOptions } options Options defining how to tokenize.
111
+ * @param {ParserOptions } [ options] Options defining how to tokenize.
112
112
* @returns {EsprimaToken[] } An array of tokens.
113
113
* @throws {SyntaxError } If the input code is invalid.
114
114
* @private
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const ESPRIMA_FINISH_NODE = Symbol("espree's esprimaFinishNode");
18
18
* @property {number|undefined } start Start column of a comment.
19
19
* @property {number|undefined } end End column of the comment.
20
20
* @property {Range|undefined } range The [start, end] range of a comment.
21
- * @property {acorn.Position } startLoc End location of the comment.
21
+ * @property {acorn.Position } startLoc Start location of the comment.
22
22
* @property {acorn.Position } endLoc End location of the comment.
23
23
*/
24
24
Original file line number Diff line number Diff line change 16
16
17
17
/**
18
18
* @typedef {Object } EcmaFeatures
19
- * @property {boolean } jsx
20
- * @property {boolean } globalReturn
21
- * @property {boolean } impliedStrict
19
+ * @property {boolean } [ jsx]
20
+ * @property {boolean } [ globalReturn]
21
+ * @property {boolean } [ impliedStrict]
22
22
*/
23
23
24
24
/**
Original file line number Diff line number Diff line change @@ -87,14 +87,14 @@ function normalizeSourceType(sourceType = "script") {
87
87
88
88
/**
89
89
* @typedef {Object } ParserOptions
90
- * @property {boolean } range Whether to include the range information for each node.
91
- * @property {boolean } loc Whether to include the location information for every node.
92
- * @property {boolean } comments Whether to include an array of all comments
93
- * @property {boolean } tokens Whether to include an array of all tokens
94
- * @property {number|"latest" } ecmaVersion The ECMAScript version to use (between 3 and 13, or 2015 and 2022, or "latest").
95
- * @property {boolean } allowReserved Only allowed when `ecmaVersion` is set to 3.
96
- * @property {"script"|"module"|"commonjs" } sourceType The kind of the source string being parsed.
97
- * @property {EcmaFeatures } ecmaFeatures The additional features to enable.
90
+ * @property {boolean } [ range] Whether to include the range information for each node.
91
+ * @property {boolean } [ loc] Whether to include the location information for every node.
92
+ * @property {boolean } [comment] Whether to include an array of all comments
93
+ * @property {boolean } [ tokens] Whether to include an array of all tokens
94
+ * @property {number|"latest" } [ ecmaVersion] The ECMAScript version to use (between 3 and 13, or 2015 and 2022, or "latest").
95
+ * @property {boolean } [ allowReserved] Only allowed when `ecmaVersion` is set to 3.
96
+ * @property {"script"|"module"|"commonjs" } [ sourceType] The kind of the source string being parsed.
97
+ * @property {EcmaFeatures } [ ecmaFeatures] The additional features to enable.
98
98
*/
99
99
100
100
/**
You can’t perform that action at this time.
0 commit comments