TypeScript/tests/baselines/reference/commentsOnObjectLiteral2.js
Sheetal Nandi e0faa65d4b Merge pull request #455 from Microsoft/formatComment
Align the multiline comments in the generated outputs by retaining its position relative to the first line in the comment
2014-08-18 13:26:18 -07:00

26 lines
642 B
TypeScript

//// [commentsOnObjectLiteral2.ts]
var Person = makeClass(
{
/**
This is just another way to define a constructor.
@constructs
@param {string} name The name of the person.
*/
initialize: function(name) {
this.name = name;
} /* trailing comment 1*/,
}
);
//// [commentsOnObjectLiteral2.js]
var Person = makeClass({
/**
This is just another way to define a constructor.
@constructs
@param {string} name The name of the person.
*/
initialize: function (name) {
this.name = name;
} /* trailing comment 1*/
});