Skip to content

Commit 7491b5e

Browse files
author
Max Schaefer
committed
JavaScript: Add a comment.
1 parent f726125 commit 7491b5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

javascript/extractor/src/com/semmle/jcorn/Parser.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,6 +1699,12 @@ protected ParenthesisedExpressions parseParenthesisedExpressions(DestructuringEr
16991699
return parenExprs;
17001700
}
17011701

1702+
/**
1703+
* Parse an expression that forms part of a comma-separated list of expressions between parentheses, adding
1704+
* it to `parenExprs`.
1705+
*
1706+
* @return true if more expressions may follow this one, false if it must be the last one
1707+
*/
17021708
protected boolean parseParenthesisedExpression(DestructuringErrors refDestructuringErrors,
17031709
boolean allowTrailingComma, ParenthesisedExpressions parenExprs, boolean first) {
17041710
if (allowTrailingComma && this.afterTrailingComma(TokenType.parenR, true)) {

0 commit comments

Comments
 (0)