Skip to content
This repository was archived by the owner on Oct 18, 2022. It is now read-only.

Commit b45562a

Browse files
committed
fix: Use correct optional @param syntax
1 parent eb6cd5b commit b45562a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const BINARY_OPERATOR_PRECEDENCE = {
6060
* Parses an expression from a token stream.
6161
*
6262
* @param {TokenStream} tokenStream
63-
* @param {number?} minPrecedence Minimum precedence of operators to accept.
63+
* @param {number=} minPrecedence Minimum precedence of operators to accept.
6464
* Operators whose precedence is lower than this value are not be parsed.
6565
* @return {AstExpression}
6666
* @throws {D2FSyntaxError} If an expression is malformed.
@@ -320,7 +320,7 @@ function finishParsingReferenceCall(tokenStream, identifier, ref, dotCode1) {
320320
* Asserts that `token` is not an end-of-input token.
321321
*
322322
* @param {InstanceType<Token> | undefined} token
323-
* @param {string?} extraMessage String to append to the default error message
323+
* @param {string=} extraMessage String to append to the default error message
324324
* @return {asserts token}
325325
* @throws {D2FSyntaxError} If `token` is an end-of-input token
326326
*/
@@ -343,7 +343,7 @@ function assertIsNotEndOfInput(token, extraMessage = "") {
343343
* @param {InstanceType<Token> | undefined} token
344344
* @template {InstanceType<Token>} T
345345
* @param {Constructor<T>} tokenConstructor
346-
* @param {string?} extraMessage String to append to the default error message
346+
* @param {string=} extraMessage String to append to the default error message
347347
* @return {asserts token is T}
348348
* @throws {D2FSyntaxError} If `token` is an end-of-input token, or otherwise
349349
* not an instance of `tokenConstructor`

0 commit comments

Comments
 (0)