mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
809 B
Plaintext
30 lines
809 B
Plaintext
//// [tests/cases/compiler/emitEndOfFileJSDocComments2.ts] ////
|
|
|
|
=== emitEndOfFileJSDocComments2.js ===
|
|
/** @typedef {number} A */
|
|
|
|
/**
|
|
* JSDoc comment for function
|
|
* @param {string} param - A string parameter
|
|
* @returns {number} The length of the string
|
|
*/
|
|
function test(param) {
|
|
>test : Symbol(test, Decl(emitEndOfFileJSDocComments2.js, 0, 0))
|
|
>param : Symbol(param, Decl(emitEndOfFileJSDocComments2.js, 7, 14))
|
|
|
|
// Comment inside function
|
|
return param.length;
|
|
>param.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
>param : Symbol(param, Decl(emitEndOfFileJSDocComments2.js, 7, 14))
|
|
>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
|
|
|
|
/** @typedef {number} B2 */
|
|
}
|
|
|
|
// Single line comment
|
|
/** @typedef {number} C */
|
|
/**
|
|
* Multiple line comment
|
|
*/
|
|
|