mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Merge pull request #2895 from max-schaefer/js/improve-param-qldoc
Approved by asgerf
This commit is contained in:
@@ -680,7 +680,7 @@ class Parameterized extends @parameterized, Documentable {
|
||||
}
|
||||
|
||||
/**
|
||||
* A parameter declaration.
|
||||
* A parameter declaration in a function or catch clause.
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
@@ -688,6 +688,9 @@ class Parameterized extends @parameterized, Documentable {
|
||||
* function f(x, { y: z }, ...rest) { // `x`, `{ y: z }` and `rest` are parameter declarations
|
||||
* var [ a, b ] = rest;
|
||||
* var c;
|
||||
* try {
|
||||
* x.m();
|
||||
* } catch(e) {} // `e` is a parameter declaration
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user