89 lines
1.6 KiB
Plaintext
89 lines
1.6 KiB
Plaintext
/**
|
|
* @param n - A number.
|
|
* @param [n] - A number.
|
|
* @param [n=1+2] - A number.
|
|
* @param {number} n - A number.
|
|
* @param {{[x: string]: {start: number, end?: number}}} map
|
|
* @param {any} foo.bar
|
|
*/
|
|
|
|
----------------------------------------------------
|
|
|
|
[
|
|
"/**\r\n * ",
|
|
["keyword", "@param"],
|
|
["parameter", ["n"]],
|
|
" - A number.\r\n * ",
|
|
["keyword", "@param"],
|
|
["optional-parameter", [
|
|
["punctuation", "["],
|
|
["parameter", ["n"]],
|
|
["punctuation", "]"]
|
|
]],
|
|
" - A number.\r\n * ",
|
|
["keyword", "@param"],
|
|
["optional-parameter", [
|
|
["punctuation", "["],
|
|
["parameter", ["n"]],
|
|
["punctuation", "="],
|
|
["code", [
|
|
["number", "1"],
|
|
["operator", "+"],
|
|
["number", "2"]
|
|
]],
|
|
["punctuation", "]"]
|
|
]],
|
|
" - A number.\r\n * ",
|
|
["keyword", "@param"],
|
|
["class-name", [
|
|
["punctuation", "{"],
|
|
"number",
|
|
["punctuation", "}"]
|
|
]],
|
|
["parameter", ["n"]],
|
|
" - A number.\r\n * ",
|
|
["keyword", "@param"],
|
|
["class-name", [
|
|
["punctuation", "{"],
|
|
["punctuation", "{"],
|
|
["punctuation", "["],
|
|
"x",
|
|
["operator", ":"],
|
|
" string",
|
|
["punctuation", "]"],
|
|
["operator", ":"],
|
|
["punctuation", "{"],
|
|
"start",
|
|
["operator", ":"],
|
|
" number",
|
|
["punctuation", ","],
|
|
" end",
|
|
["operator", "?"],
|
|
["operator", ":"],
|
|
" number",
|
|
["punctuation", "}"],
|
|
["punctuation", "}"],
|
|
["punctuation", "}"]
|
|
]],
|
|
["parameter", ["map"]],
|
|
|
|
"\r\n * ",
|
|
["keyword", "@param"],
|
|
["class-name", [
|
|
["punctuation", "{"],
|
|
"any",
|
|
["punctuation", "}"]
|
|
]],
|
|
["parameter", [
|
|
"foo",
|
|
["punctuation", "."],
|
|
"bar"
|
|
]],
|
|
|
|
"\r\n */"
|
|
]
|
|
|
|
----------------------------------------------------
|
|
|
|
Checks for parameters.
|