mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
29 lines
357 B
JavaScript
29 lines
357 B
JavaScript
/**
|
|
* NOT OK: Parameter y is not documented.
|
|
*
|
|
* @param x The first operand.
|
|
*/
|
|
function f(x, y) {
|
|
return x+y;
|
|
}
|
|
|
|
/**
|
|
* OK: Neither parameter is documented.
|
|
*/
|
|
function g(x, y) {
|
|
return x+y;
|
|
}
|
|
|
|
// NOT OK
|
|
/**
|
|
* @param {int} x
|
|
* @param {float} y
|
|
*/
|
|
var o = {
|
|
/**
|
|
* @param {String} x first argument.
|
|
*/
|
|
f : function(x, y) {
|
|
}
|
|
};
|