TypeScript/tests/baselines/reference/declFileMethods.types

456 lines
24 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileMethods_0.ts ===
export class c1 {
2015-04-13 23:01:57 +02:00
>c1 : c1, Symbol(c1, Decl(declFileMethods_0.ts, 0, 0))
2014-08-15 23:33:16 +02:00
/** This comment should appear for foo*/
public foo() {
2015-04-13 23:01:57 +02:00
>foo : () => void, Symbol(foo, Decl(declFileMethods_0.ts, 1, 17))
2014-08-15 23:33:16 +02:00
}
/** This is comment for function signature*/
public fooWithParameters(/** this is comment about a*/a: string,
2015-04-13 23:01:57 +02:00
>fooWithParameters : (a: string, b: number) => void, Symbol(fooWithParameters, Decl(declFileMethods_0.ts, 4, 5))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 6, 29))
2014-08-15 23:33:16 +02:00
/** this is comment for b*/
b: number) {
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(declFileMethods_0.ts, 6, 68))
2014-08-15 23:33:16 +02:00
var d = a;
2015-04-13 23:01:57 +02:00
>d : string, Symbol(d, Decl(declFileMethods_0.ts, 9, 11))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 6, 29))
2014-08-15 23:33:16 +02:00
}
public fooWithRestParameters(a: string, ...rests: string[]) {
2015-04-13 23:01:57 +02:00
>fooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(fooWithRestParameters, Decl(declFileMethods_0.ts, 10, 5))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 11, 33))
>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 11, 43))
2014-08-15 23:33:16 +02:00
return a + rests.join("");
>a + rests.join("") : string
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 11, 33))
2014-08-15 23:33:16 +02:00
>rests.join("") : string
2015-04-13 23:01:57 +02:00
>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 11, 43))
>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
}
public fooWithOverloads(a: string): string;
2015-04-13 23:01:57 +02:00
>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_0.ts, 13, 5), Decl(declFileMethods_0.ts, 15, 47), Decl(declFileMethods_0.ts, 16, 47))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 15, 28))
2014-08-15 23:33:16 +02:00
public fooWithOverloads(a: number): number;
2015-04-13 23:01:57 +02:00
>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_0.ts, 13, 5), Decl(declFileMethods_0.ts, 15, 47), Decl(declFileMethods_0.ts, 16, 47))
>a : number, Symbol(a, Decl(declFileMethods_0.ts, 16, 28))
2014-08-15 23:33:16 +02:00
public fooWithOverloads(a: any): any {
2015-04-13 23:01:57 +02:00
>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_0.ts, 13, 5), Decl(declFileMethods_0.ts, 15, 47), Decl(declFileMethods_0.ts, 16, 47))
>a : any, Symbol(a, Decl(declFileMethods_0.ts, 17, 28))
2014-08-15 23:33:16 +02:00
return a;
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(declFileMethods_0.ts, 17, 28))
2014-08-15 23:33:16 +02:00
}
/** This comment should appear for privateFoo*/
private privateFoo() {
2015-04-13 23:01:57 +02:00
>privateFoo : () => void, Symbol(privateFoo, Decl(declFileMethods_0.ts, 19, 5))
2014-08-15 23:33:16 +02:00
}
/** This is comment for function signature*/
private privateFooWithParameters(/** this is comment about a*/a: string,
2015-04-13 23:01:57 +02:00
>privateFooWithParameters : (a: string, b: number) => void, Symbol(privateFooWithParameters, Decl(declFileMethods_0.ts, 24, 5))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 26, 37))
2014-08-15 23:33:16 +02:00
/** this is comment for b*/
b: number) {
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(declFileMethods_0.ts, 26, 76))
2014-08-15 23:33:16 +02:00
var d = a;
2015-04-13 23:01:57 +02:00
>d : string, Symbol(d, Decl(declFileMethods_0.ts, 29, 11))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 26, 37))
2014-08-15 23:33:16 +02:00
}
private privateFooWithRestParameters(a: string, ...rests: string[]) {
2015-04-13 23:01:57 +02:00
>privateFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(privateFooWithRestParameters, Decl(declFileMethods_0.ts, 30, 5))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 31, 41))
>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 31, 51))
2014-08-15 23:33:16 +02:00
return a + rests.join("");
>a + rests.join("") : string
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 31, 41))
2014-08-15 23:33:16 +02:00
>rests.join("") : string
2015-04-13 23:01:57 +02:00
>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 31, 51))
>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
}
private privateFooWithOverloads(a: string): string;
2015-04-13 23:01:57 +02:00
>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_0.ts, 33, 5), Decl(declFileMethods_0.ts, 34, 55), Decl(declFileMethods_0.ts, 35, 55))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 34, 36))
2014-08-15 23:33:16 +02:00
private privateFooWithOverloads(a: number): number;
2015-04-13 23:01:57 +02:00
>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_0.ts, 33, 5), Decl(declFileMethods_0.ts, 34, 55), Decl(declFileMethods_0.ts, 35, 55))
>a : number, Symbol(a, Decl(declFileMethods_0.ts, 35, 36))
2014-08-15 23:33:16 +02:00
private privateFooWithOverloads(a: any): any {
2015-04-13 23:01:57 +02:00
>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_0.ts, 33, 5), Decl(declFileMethods_0.ts, 34, 55), Decl(declFileMethods_0.ts, 35, 55))
>a : any, Symbol(a, Decl(declFileMethods_0.ts, 36, 36))
2014-08-15 23:33:16 +02:00
return a;
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(declFileMethods_0.ts, 36, 36))
2014-08-15 23:33:16 +02:00
}
/** This comment should appear for static foo*/
static staticFoo() {
2015-04-13 23:01:57 +02:00
>staticFoo : () => void, Symbol(c1.staticFoo, Decl(declFileMethods_0.ts, 38, 5))
2014-08-15 23:33:16 +02:00
}
/** This is comment for function signature*/
static staticFooWithParameters(/** this is comment about a*/a: string,
2015-04-13 23:01:57 +02:00
>staticFooWithParameters : (a: string, b: number) => void, Symbol(c1.staticFooWithParameters, Decl(declFileMethods_0.ts, 43, 5))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 45, 35))
2014-08-15 23:33:16 +02:00
/** this is comment for b*/
b: number) {
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(declFileMethods_0.ts, 45, 74))
2014-08-15 23:33:16 +02:00
var d = a;
2015-04-13 23:01:57 +02:00
>d : string, Symbol(d, Decl(declFileMethods_0.ts, 48, 11))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 45, 35))
2014-08-15 23:33:16 +02:00
}
static staticFooWithRestParameters(a: string, ...rests: string[]) {
2015-04-13 23:01:57 +02:00
>staticFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(c1.staticFooWithRestParameters, Decl(declFileMethods_0.ts, 49, 5))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 50, 39))
>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 50, 49))
2014-08-15 23:33:16 +02:00
return a + rests.join("");
>a + rests.join("") : string
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 50, 39))
2014-08-15 23:33:16 +02:00
>rests.join("") : string
2015-04-13 23:01:57 +02:00
>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 50, 49))
>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
}
static staticFooWithOverloads(a: string): string;
2015-04-13 23:01:57 +02:00
>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.staticFooWithOverloads, Decl(declFileMethods_0.ts, 52, 5), Decl(declFileMethods_0.ts, 53, 53), Decl(declFileMethods_0.ts, 54, 53))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 53, 34))
2014-08-15 23:33:16 +02:00
static staticFooWithOverloads(a: number): number;
2015-04-13 23:01:57 +02:00
>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.staticFooWithOverloads, Decl(declFileMethods_0.ts, 52, 5), Decl(declFileMethods_0.ts, 53, 53), Decl(declFileMethods_0.ts, 54, 53))
>a : number, Symbol(a, Decl(declFileMethods_0.ts, 54, 34))
2014-08-15 23:33:16 +02:00
static staticFooWithOverloads(a: any): any {
2015-04-13 23:01:57 +02:00
>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.staticFooWithOverloads, Decl(declFileMethods_0.ts, 52, 5), Decl(declFileMethods_0.ts, 53, 53), Decl(declFileMethods_0.ts, 54, 53))
>a : any, Symbol(a, Decl(declFileMethods_0.ts, 55, 34))
2014-08-15 23:33:16 +02:00
return a;
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(declFileMethods_0.ts, 55, 34))
2014-08-15 23:33:16 +02:00
}
/** This comment should appear for privateStaticFoo*/
private static privateStaticFoo() {
2015-04-13 23:01:57 +02:00
>privateStaticFoo : () => void, Symbol(c1.privateStaticFoo, Decl(declFileMethods_0.ts, 57, 5))
2014-08-15 23:33:16 +02:00
}
/** This is comment for function signature*/
private static privateStaticFooWithParameters(/** this is comment about a*/a: string,
2015-04-13 23:01:57 +02:00
>privateStaticFooWithParameters : (a: string, b: number) => void, Symbol(c1.privateStaticFooWithParameters, Decl(declFileMethods_0.ts, 62, 5))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 64, 50))
2014-08-15 23:33:16 +02:00
/** this is comment for b*/
b: number) {
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(declFileMethods_0.ts, 64, 89))
2014-08-15 23:33:16 +02:00
var d = a;
2015-04-13 23:01:57 +02:00
>d : string, Symbol(d, Decl(declFileMethods_0.ts, 67, 11))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 64, 50))
2014-08-15 23:33:16 +02:00
}
private static privateStaticFooWithRestParameters(a: string, ...rests: string[]) {
2015-04-13 23:01:57 +02:00
>privateStaticFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(c1.privateStaticFooWithRestParameters, Decl(declFileMethods_0.ts, 68, 5))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 69, 54))
>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 69, 64))
2014-08-15 23:33:16 +02:00
return a + rests.join("");
>a + rests.join("") : string
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 69, 54))
2014-08-15 23:33:16 +02:00
>rests.join("") : string
2015-04-13 23:01:57 +02:00
>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 69, 64))
>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
}
private static privateStaticFooWithOverloads(a: string): string;
2015-04-13 23:01:57 +02:00
>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.privateStaticFooWithOverloads, Decl(declFileMethods_0.ts, 71, 5), Decl(declFileMethods_0.ts, 72, 68), Decl(declFileMethods_0.ts, 73, 68))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 72, 49))
2014-08-15 23:33:16 +02:00
private static privateStaticFooWithOverloads(a: number): number;
2015-04-13 23:01:57 +02:00
>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.privateStaticFooWithOverloads, Decl(declFileMethods_0.ts, 71, 5), Decl(declFileMethods_0.ts, 72, 68), Decl(declFileMethods_0.ts, 73, 68))
>a : number, Symbol(a, Decl(declFileMethods_0.ts, 73, 49))
2014-08-15 23:33:16 +02:00
private static privateStaticFooWithOverloads(a: any): any {
2015-04-13 23:01:57 +02:00
>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.privateStaticFooWithOverloads, Decl(declFileMethods_0.ts, 71, 5), Decl(declFileMethods_0.ts, 72, 68), Decl(declFileMethods_0.ts, 73, 68))
>a : any, Symbol(a, Decl(declFileMethods_0.ts, 74, 49))
2014-08-15 23:33:16 +02:00
return a;
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(declFileMethods_0.ts, 74, 49))
2014-08-15 23:33:16 +02:00
}
}
export interface I1 {
2015-04-13 23:01:57 +02:00
>I1 : I1, Symbol(I1, Decl(declFileMethods_0.ts, 77, 1))
2014-08-15 23:33:16 +02:00
/** This comment should appear for foo*/
foo(): string;
2015-04-13 23:01:57 +02:00
>foo : () => string, Symbol(foo, Decl(declFileMethods_0.ts, 79, 21))
2014-08-15 23:33:16 +02:00
/** This is comment for function signature*/
fooWithParameters(/** this is comment about a*/a: string,
2015-04-13 23:01:57 +02:00
>fooWithParameters : (a: string, b: number) => void, Symbol(fooWithParameters, Decl(declFileMethods_0.ts, 81, 18))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 84, 22))
2014-08-15 23:33:16 +02:00
/** this is comment for b*/
b: number): void;
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(declFileMethods_0.ts, 84, 61))
2014-08-15 23:33:16 +02:00
fooWithRestParameters(a: string, ...rests: string[]): string;
2015-04-13 23:01:57 +02:00
>fooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(fooWithRestParameters, Decl(declFileMethods_0.ts, 86, 25))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 88, 26))
>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 88, 36))
2014-08-15 23:33:16 +02:00
fooWithOverloads(a: string): string;
2015-04-13 23:01:57 +02:00
>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_0.ts, 88, 65), Decl(declFileMethods_0.ts, 90, 40))
>a : string, Symbol(a, Decl(declFileMethods_0.ts, 90, 21))
2014-08-15 23:33:16 +02:00
fooWithOverloads(a: number): number;
2015-04-13 23:01:57 +02:00
>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_0.ts, 88, 65), Decl(declFileMethods_0.ts, 90, 40))
>a : number, Symbol(a, Decl(declFileMethods_0.ts, 91, 21))
2014-08-15 23:33:16 +02:00
}
=== tests/cases/compiler/declFileMethods_1.ts ===
class c2 {
2015-04-13 23:01:57 +02:00
>c2 : c2, Symbol(c2, Decl(declFileMethods_1.ts, 0, 0))
2014-08-15 23:33:16 +02:00
/** This comment should appear for foo*/
public foo() {
2015-04-13 23:01:57 +02:00
>foo : () => void, Symbol(foo, Decl(declFileMethods_1.ts, 0, 10))
2014-08-15 23:33:16 +02:00
}
/** This is comment for function signature*/
public fooWithParameters(/** this is comment about a*/a: string,
2015-04-13 23:01:57 +02:00
>fooWithParameters : (a: string, b: number) => void, Symbol(fooWithParameters, Decl(declFileMethods_1.ts, 3, 5))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 5, 29))
2014-08-15 23:33:16 +02:00
/** this is comment for b*/
b: number) {
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(declFileMethods_1.ts, 5, 68))
2014-08-15 23:33:16 +02:00
var d = a;
2015-04-13 23:01:57 +02:00
>d : string, Symbol(d, Decl(declFileMethods_1.ts, 8, 11))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 5, 29))
2014-08-15 23:33:16 +02:00
}
public fooWithRestParameters(a: string, ...rests: string[]) {
2015-04-13 23:01:57 +02:00
>fooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(fooWithRestParameters, Decl(declFileMethods_1.ts, 9, 5))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 10, 33))
>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 10, 43))
2014-08-15 23:33:16 +02:00
return a + rests.join("");
>a + rests.join("") : string
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 10, 33))
2014-08-15 23:33:16 +02:00
>rests.join("") : string
2015-04-13 23:01:57 +02:00
>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 10, 43))
>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
}
public fooWithOverloads(a: string): string;
2015-04-13 23:01:57 +02:00
>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_1.ts, 12, 5), Decl(declFileMethods_1.ts, 14, 47), Decl(declFileMethods_1.ts, 15, 47))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 14, 28))
2014-08-15 23:33:16 +02:00
public fooWithOverloads(a: number): number;
2015-04-13 23:01:57 +02:00
>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_1.ts, 12, 5), Decl(declFileMethods_1.ts, 14, 47), Decl(declFileMethods_1.ts, 15, 47))
>a : number, Symbol(a, Decl(declFileMethods_1.ts, 15, 28))
2014-08-15 23:33:16 +02:00
public fooWithOverloads(a: any): any {
2015-04-13 23:01:57 +02:00
>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_1.ts, 12, 5), Decl(declFileMethods_1.ts, 14, 47), Decl(declFileMethods_1.ts, 15, 47))
>a : any, Symbol(a, Decl(declFileMethods_1.ts, 16, 28))
2014-08-15 23:33:16 +02:00
return a;
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(declFileMethods_1.ts, 16, 28))
2014-08-15 23:33:16 +02:00
}
/** This comment should appear for privateFoo*/
private privateFoo() {
2015-04-13 23:01:57 +02:00
>privateFoo : () => void, Symbol(privateFoo, Decl(declFileMethods_1.ts, 18, 5))
2014-08-15 23:33:16 +02:00
}
/** This is comment for function signature*/
private privateFooWithParameters(/** this is comment about a*/a: string,
2015-04-13 23:01:57 +02:00
>privateFooWithParameters : (a: string, b: number) => void, Symbol(privateFooWithParameters, Decl(declFileMethods_1.ts, 23, 5))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 25, 37))
2014-08-15 23:33:16 +02:00
/** this is comment for b*/
b: number) {
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(declFileMethods_1.ts, 25, 76))
2014-08-15 23:33:16 +02:00
var d = a;
2015-04-13 23:01:57 +02:00
>d : string, Symbol(d, Decl(declFileMethods_1.ts, 28, 11))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 25, 37))
2014-08-15 23:33:16 +02:00
}
private privateFooWithRestParameters(a: string, ...rests: string[]) {
2015-04-13 23:01:57 +02:00
>privateFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(privateFooWithRestParameters, Decl(declFileMethods_1.ts, 29, 5))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 30, 41))
>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 30, 51))
2014-08-15 23:33:16 +02:00
return a + rests.join("");
>a + rests.join("") : string
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 30, 41))
2014-08-15 23:33:16 +02:00
>rests.join("") : string
2015-04-13 23:01:57 +02:00
>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 30, 51))
>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
}
private privateFooWithOverloads(a: string): string;
2015-04-13 23:01:57 +02:00
>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_1.ts, 32, 5), Decl(declFileMethods_1.ts, 33, 55), Decl(declFileMethods_1.ts, 34, 55))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 33, 36))
2014-08-15 23:33:16 +02:00
private privateFooWithOverloads(a: number): number;
2015-04-13 23:01:57 +02:00
>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_1.ts, 32, 5), Decl(declFileMethods_1.ts, 33, 55), Decl(declFileMethods_1.ts, 34, 55))
>a : number, Symbol(a, Decl(declFileMethods_1.ts, 34, 36))
2014-08-15 23:33:16 +02:00
private privateFooWithOverloads(a: any): any {
2015-04-13 23:01:57 +02:00
>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_1.ts, 32, 5), Decl(declFileMethods_1.ts, 33, 55), Decl(declFileMethods_1.ts, 34, 55))
>a : any, Symbol(a, Decl(declFileMethods_1.ts, 35, 36))
2014-08-15 23:33:16 +02:00
return a;
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(declFileMethods_1.ts, 35, 36))
2014-08-15 23:33:16 +02:00
}
/** This comment should appear for static foo*/
static staticFoo() {
2015-04-13 23:01:57 +02:00
>staticFoo : () => void, Symbol(c2.staticFoo, Decl(declFileMethods_1.ts, 37, 5))
2014-08-15 23:33:16 +02:00
}
/** This is comment for function signature*/
static staticFooWithParameters(/** this is comment about a*/a: string,
2015-04-13 23:01:57 +02:00
>staticFooWithParameters : (a: string, b: number) => void, Symbol(c2.staticFooWithParameters, Decl(declFileMethods_1.ts, 42, 5))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 44, 35))
2014-08-15 23:33:16 +02:00
/** this is comment for b*/
b: number) {
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(declFileMethods_1.ts, 44, 74))
2014-08-15 23:33:16 +02:00
var d = a;
2015-04-13 23:01:57 +02:00
>d : string, Symbol(d, Decl(declFileMethods_1.ts, 47, 11))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 44, 35))
2014-08-15 23:33:16 +02:00
}
static staticFooWithRestParameters(a: string, ...rests: string[]) {
2015-04-13 23:01:57 +02:00
>staticFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(c2.staticFooWithRestParameters, Decl(declFileMethods_1.ts, 48, 5))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 49, 39))
>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 49, 49))
2014-08-15 23:33:16 +02:00
return a + rests.join("");
>a + rests.join("") : string
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 49, 39))
2014-08-15 23:33:16 +02:00
>rests.join("") : string
2015-04-13 23:01:57 +02:00
>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 49, 49))
>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
}
static staticFooWithOverloads(a: string): string;
2015-04-13 23:01:57 +02:00
>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.staticFooWithOverloads, Decl(declFileMethods_1.ts, 51, 5), Decl(declFileMethods_1.ts, 52, 53), Decl(declFileMethods_1.ts, 53, 53))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 52, 34))
2014-08-15 23:33:16 +02:00
static staticFooWithOverloads(a: number): number;
2015-04-13 23:01:57 +02:00
>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.staticFooWithOverloads, Decl(declFileMethods_1.ts, 51, 5), Decl(declFileMethods_1.ts, 52, 53), Decl(declFileMethods_1.ts, 53, 53))
>a : number, Symbol(a, Decl(declFileMethods_1.ts, 53, 34))
2014-08-15 23:33:16 +02:00
static staticFooWithOverloads(a: any): any {
2015-04-13 23:01:57 +02:00
>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.staticFooWithOverloads, Decl(declFileMethods_1.ts, 51, 5), Decl(declFileMethods_1.ts, 52, 53), Decl(declFileMethods_1.ts, 53, 53))
>a : any, Symbol(a, Decl(declFileMethods_1.ts, 54, 34))
2014-08-15 23:33:16 +02:00
return a;
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(declFileMethods_1.ts, 54, 34))
2014-08-15 23:33:16 +02:00
}
/** This comment should appear for privateStaticFoo*/
private static privateStaticFoo() {
2015-04-13 23:01:57 +02:00
>privateStaticFoo : () => void, Symbol(c2.privateStaticFoo, Decl(declFileMethods_1.ts, 56, 5))
2014-08-15 23:33:16 +02:00
}
/** This is comment for function signature*/
private static privateStaticFooWithParameters(/** this is comment about a*/a: string,
2015-04-13 23:01:57 +02:00
>privateStaticFooWithParameters : (a: string, b: number) => void, Symbol(c2.privateStaticFooWithParameters, Decl(declFileMethods_1.ts, 61, 5))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 63, 50))
2014-08-15 23:33:16 +02:00
/** this is comment for b*/
b: number) {
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(declFileMethods_1.ts, 63, 89))
2014-08-15 23:33:16 +02:00
var d = a;
2015-04-13 23:01:57 +02:00
>d : string, Symbol(d, Decl(declFileMethods_1.ts, 66, 11))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 63, 50))
2014-08-15 23:33:16 +02:00
}
private static privateStaticFooWithRestParameters(a: string, ...rests: string[]) {
2015-04-13 23:01:57 +02:00
>privateStaticFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(c2.privateStaticFooWithRestParameters, Decl(declFileMethods_1.ts, 67, 5))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 68, 54))
>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 68, 64))
2014-08-15 23:33:16 +02:00
return a + rests.join("");
>a + rests.join("") : string
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 68, 54))
2014-08-15 23:33:16 +02:00
>rests.join("") : string
2015-04-13 23:01:57 +02:00
>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 68, 64))
>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31))
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
}
private static privateStaticFooWithOverloads(a: string): string;
2015-04-13 23:01:57 +02:00
>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.privateStaticFooWithOverloads, Decl(declFileMethods_1.ts, 70, 5), Decl(declFileMethods_1.ts, 71, 68), Decl(declFileMethods_1.ts, 72, 68))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 71, 49))
2014-08-15 23:33:16 +02:00
private static privateStaticFooWithOverloads(a: number): number;
2015-04-13 23:01:57 +02:00
>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.privateStaticFooWithOverloads, Decl(declFileMethods_1.ts, 70, 5), Decl(declFileMethods_1.ts, 71, 68), Decl(declFileMethods_1.ts, 72, 68))
>a : number, Symbol(a, Decl(declFileMethods_1.ts, 72, 49))
2014-08-15 23:33:16 +02:00
private static privateStaticFooWithOverloads(a: any): any {
2015-04-13 23:01:57 +02:00
>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.privateStaticFooWithOverloads, Decl(declFileMethods_1.ts, 70, 5), Decl(declFileMethods_1.ts, 71, 68), Decl(declFileMethods_1.ts, 72, 68))
>a : any, Symbol(a, Decl(declFileMethods_1.ts, 73, 49))
2014-08-15 23:33:16 +02:00
return a;
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(declFileMethods_1.ts, 73, 49))
2014-08-15 23:33:16 +02:00
}
}
interface I2 {
2015-04-13 23:01:57 +02:00
>I2 : I2, Symbol(I2, Decl(declFileMethods_1.ts, 76, 1))
2014-08-15 23:33:16 +02:00
/** This comment should appear for foo*/
foo(): string;
2015-04-13 23:01:57 +02:00
>foo : () => string, Symbol(foo, Decl(declFileMethods_1.ts, 78, 14))
2014-08-15 23:33:16 +02:00
/** This is comment for function signature*/
fooWithParameters(/** this is comment about a*/a: string,
2015-04-13 23:01:57 +02:00
>fooWithParameters : (a: string, b: number) => void, Symbol(fooWithParameters, Decl(declFileMethods_1.ts, 80, 18))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 83, 22))
2014-08-15 23:33:16 +02:00
/** this is comment for b*/
b: number): void;
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(declFileMethods_1.ts, 83, 61))
2014-08-15 23:33:16 +02:00
fooWithRestParameters(a: string, ...rests: string[]): string;
2015-04-13 23:01:57 +02:00
>fooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(fooWithRestParameters, Decl(declFileMethods_1.ts, 85, 25))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 87, 26))
>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 87, 36))
2014-08-15 23:33:16 +02:00
fooWithOverloads(a: string): string;
2015-04-13 23:01:57 +02:00
>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_1.ts, 87, 65), Decl(declFileMethods_1.ts, 89, 40))
>a : string, Symbol(a, Decl(declFileMethods_1.ts, 89, 21))
2014-08-15 23:33:16 +02:00
fooWithOverloads(a: number): number;
2015-04-13 23:01:57 +02:00
>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_1.ts, 87, 65), Decl(declFileMethods_1.ts, 89, 40))
>a : number, Symbol(a, Decl(declFileMethods_1.ts, 90, 21))
2014-08-15 23:33:16 +02:00
}