Baselines update after comment formatting pull request (#455) was merged

This commit is contained in:
Sheetal Nandi 2014-08-18 13:44:18 -07:00
parent e0faa65d4b
commit ecaf4ad221
7 changed files with 76 additions and 38 deletions

View file

@ -64,7 +64,7 @@ var lambddaNoVarComment = function (a, b) { return a * b; };
lambdaFoo(10, 20);
lambddaNoVarComment(10, 20);
function blah(a /* multiline trailing comment
multiline */) {
multiline */) {
}
function blah2(a /* single line multiple trailing comments */ /* second */) {
}
@ -73,7 +73,45 @@ function blah3(a // trailing commen single line
}
lambdaFoo = function (a, b) { return a * b; }; // This is trailing comment
/*leading comment*/ (function () { return 0; }); // Needs to be wrapped in parens to be a valid expression (not declaration)
/*leading comment*/ (function () { return 0; }); //trailing comment
/** This comment should appear for foo*/
function foo() {
} /* trailing comment of function */
foo();
/** This is comment for function signature*/
function fooWithParameters(/** this is comment about a*/a: string,
/** this is comment for b*/
b: number) {
var d = a;
} // trailing comment of function
fooWithParameters("a", 10);
/** fooFunc
* comment
*/
var fooFunc = function FooFunctionValue(/** fooFunctionValue param */ b: string) {
return b;
}
/// lamdaFoo var comment
var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b;
var lambddaNoVarComment = /** this is lambda multiplication*/ (/**param a*/a: number, /**param b*/b: number) => a * b;
lambdaFoo(10, 20);
lambddaNoVarComment(10, 20);
function blah(a: string /* multiline trailing comment
multiline */) {
}
function blah2(a: string /* single line multiple trailing comments */ /* second */) {
}
function blah3(a: string // trailing commen single line
) {
}
lambdaFoo = (a, b) => a * b; // This is trailing comment
/*leading comment*/() => 0; // Needs to be wrapped in parens to be a valid expression (not declaration)
(function () { return 0; }); //trailing comment
//// [commentsFunction.d.ts]

View file

@ -12,8 +12,8 @@ var v = {
//// [commentsOnObjectLiteral4.js]
var v = {
/**
* @type {number}
*/
* @type {number}
*/
get bar() {
return this._bar;
}

View file

@ -55,9 +55,9 @@ foo(a); // shouldn't error
class C {
public e: E;
public e: E;
public m(): E { return this.e; } // shouldn't error
public m(): E { return this.e; } // shouldn't error
}