mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
115 lines
3.5 KiB
Plaintext
115 lines
3.5 KiB
Plaintext
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsClassMethod.ts] ////
|
|
|
|
=== jsDeclarationsClassMethod.js ===
|
|
function C1() {
|
|
>C1 : Symbol(C1, Decl(jsDeclarationsClassMethod.js, 0, 0))
|
|
|
|
/**
|
|
* A comment prop
|
|
* @param {number} x
|
|
* @param {number} y
|
|
* @returns {number}
|
|
*/
|
|
this.prop = function (x, y) {
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 7, 26))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 7, 28))
|
|
|
|
return x + y;
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 7, 26))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 7, 28))
|
|
}
|
|
}
|
|
|
|
/**
|
|
* A comment method
|
|
* @param {number} x
|
|
* @param {number} y
|
|
* @returns {number}
|
|
*/
|
|
C1.prototype.method = function (x, y) {
|
|
>C1.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --))
|
|
>C1 : Symbol(C1, Decl(jsDeclarationsClassMethod.js, 0, 0))
|
|
>prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --))
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 18, 32))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 18, 34))
|
|
|
|
return x + y;
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 18, 32))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 18, 34))
|
|
}
|
|
|
|
/**
|
|
* A comment staticProp
|
|
* @param {number} x
|
|
* @param {number} y
|
|
* @returns {number}
|
|
*/
|
|
C1.staticProp = function (x, y) {
|
|
>C1.staticProp : Symbol(C1.staticProp, Decl(jsDeclarationsClassMethod.js, 20, 1))
|
|
>C1 : Symbol(C1, Decl(jsDeclarationsClassMethod.js, 0, 0))
|
|
>staticProp : Symbol(C1.staticProp, Decl(jsDeclarationsClassMethod.js, 20, 1))
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 28, 26))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 28, 28))
|
|
|
|
return x + y;
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 28, 26))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 28, 28))
|
|
}
|
|
|
|
class C2 {
|
|
>C2 : Symbol(C2, Decl(jsDeclarationsClassMethod.js, 30, 1))
|
|
|
|
/**
|
|
* A comment method1
|
|
* @param {number} x
|
|
* @param {number} y
|
|
* @returns {number}
|
|
*/
|
|
method1(x, y) {
|
|
>method1 : Symbol(C2.method1, Decl(jsDeclarationsClassMethod.js, 32, 10))
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 39, 12))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 39, 14))
|
|
|
|
return x + y;
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 39, 12))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 39, 14))
|
|
}
|
|
}
|
|
|
|
/**
|
|
* A comment method2
|
|
* @param {number} x
|
|
* @param {number} y
|
|
* @returns {number}
|
|
*/
|
|
C2.prototype.method2 = function (x, y) {
|
|
>C2.prototype : Symbol(C2.prototype)
|
|
>C2 : Symbol(C2, Decl(jsDeclarationsClassMethod.js, 30, 1))
|
|
>prototype : Symbol(C2.prototype)
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 50, 33))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 50, 35))
|
|
|
|
return x + y;
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 50, 33))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 50, 35))
|
|
}
|
|
|
|
/**
|
|
* A comment staticProp
|
|
* @param {number} x
|
|
* @param {number} y
|
|
* @returns {number}
|
|
*/
|
|
C2.staticProp = function (x, y) {
|
|
>C2.staticProp : Symbol(C2.staticProp, Decl(jsDeclarationsClassMethod.js, 52, 1))
|
|
>C2 : Symbol(C2, Decl(jsDeclarationsClassMethod.js, 30, 1))
|
|
>staticProp : Symbol(C2.staticProp, Decl(jsDeclarationsClassMethod.js, 52, 1))
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 60, 26))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 60, 28))
|
|
|
|
return x + y;
|
|
>x : Symbol(x, Decl(jsDeclarationsClassMethod.js, 60, 26))
|
|
>y : Symbol(y, Decl(jsDeclarationsClassMethod.js, 60, 28))
|
|
}
|
|
|