2014-07-13 01:04:16 +02:00
|
|
|
//// [detachedCommentAtStartOfFunctionBody1.ts]
|
|
|
|
class TestFile {
|
|
|
|
foo(message: string): () => string {
|
|
|
|
/// <summary>Test summary</summary>
|
|
|
|
/// <param name="message" type="String" />
|
|
|
|
/// <returns type="Function" />
|
|
|
|
return () => message + this.name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [detachedCommentAtStartOfFunctionBody1.js]
|
|
|
|
var TestFile = (function () {
|
|
|
|
function TestFile() {
|
|
|
|
}
|
|
|
|
TestFile.prototype.foo = function (message) {
|
|
|
|
var _this = this;
|
2014-08-16 00:16:17 +02:00
|
|
|
/// <summary>Test summary</summary>
|
|
|
|
/// <param name="message" type="String" />
|
|
|
|
/// <returns type="Function" />
|
2014-07-13 01:04:16 +02:00
|
|
|
return function () { return message + _this.name; };
|
|
|
|
};
|
|
|
|
return TestFile;
|
|
|
|
})();
|