2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/declFileCallSignatures_0.ts ===
|
|
|
|
|
|
|
|
export interface ICallSignature {
|
2015-04-13 23:01:57 +02:00
|
|
|
>ICallSignature : ICallSignature, Symbol(ICallSignature, Decl(declFileCallSignatures_0.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
/** This comment should appear for foo*/
|
|
|
|
(): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICallSignatureWithParameters {
|
2015-04-13 23:01:57 +02:00
|
|
|
>ICallSignatureWithParameters : ICallSignatureWithParameters, Symbol(ICallSignatureWithParameters, Decl(declFileCallSignatures_0.ts, 4, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
/** This is comment for function signature*/
|
|
|
|
(/** this is comment about a*/a: string,
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : string, Symbol(a, Decl(declFileCallSignatures_0.ts, 8, 5))
|
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(declFileCallSignatures_0.ts, 8, 44))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICallSignatureWithRestParameters {
|
2015-04-13 23:01:57 +02:00
|
|
|
>ICallSignatureWithRestParameters : ICallSignatureWithRestParameters, Symbol(ICallSignatureWithRestParameters, Decl(declFileCallSignatures_0.ts, 11, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
(a: string, ...rests: string[]): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : string, Symbol(a, Decl(declFileCallSignatures_0.ts, 14, 5))
|
|
|
|
>rests : string[], Symbol(rests, Decl(declFileCallSignatures_0.ts, 14, 15))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICallSignatureWithOverloads {
|
2015-04-13 23:01:57 +02:00
|
|
|
>ICallSignatureWithOverloads : ICallSignatureWithOverloads, Symbol(ICallSignatureWithOverloads, Decl(declFileCallSignatures_0.ts, 15, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
(a: string): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : string, Symbol(a, Decl(declFileCallSignatures_0.ts, 18, 5))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
(a: number): number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : number, Symbol(a, Decl(declFileCallSignatures_0.ts, 19, 5))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICallSignatureWithTypeParameters<T> {
|
2015-04-13 23:01:57 +02:00
|
|
|
>ICallSignatureWithTypeParameters : ICallSignatureWithTypeParameters<T>, Symbol(ICallSignatureWithTypeParameters, Decl(declFileCallSignatures_0.ts, 20, 1))
|
|
|
|
>T : T, Symbol(T, Decl(declFileCallSignatures_0.ts, 22, 50))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
/** This comment should appear for foo*/
|
|
|
|
(a: T): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : T, Symbol(a, Decl(declFileCallSignatures_0.ts, 24, 5))
|
|
|
|
>T : T, Symbol(T, Decl(declFileCallSignatures_0.ts, 22, 50))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICallSignatureWithOwnTypeParametes {
|
2015-04-13 23:01:57 +02:00
|
|
|
>ICallSignatureWithOwnTypeParametes : ICallSignatureWithOwnTypeParametes, Symbol(ICallSignatureWithOwnTypeParametes, Decl(declFileCallSignatures_0.ts, 25, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
<T extends ICallSignature>(a: T): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>T : T, Symbol(T, Decl(declFileCallSignatures_0.ts, 28, 5))
|
|
|
|
>ICallSignature : ICallSignature, Symbol(ICallSignature, Decl(declFileCallSignatures_0.ts, 0, 0))
|
|
|
|
>a : T, Symbol(a, Decl(declFileCallSignatures_0.ts, 28, 31))
|
|
|
|
>T : T, Symbol(T, Decl(declFileCallSignatures_0.ts, 28, 5))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/compiler/declFileCallSignatures_1.ts ===
|
|
|
|
interface IGlobalCallSignature {
|
2015-04-13 23:01:57 +02:00
|
|
|
>IGlobalCallSignature : IGlobalCallSignature, Symbol(IGlobalCallSignature, Decl(declFileCallSignatures_1.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
/** This comment should appear for foo*/
|
|
|
|
(): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IGlobalCallSignatureWithParameters {
|
2015-04-13 23:01:57 +02:00
|
|
|
>IGlobalCallSignatureWithParameters : IGlobalCallSignatureWithParameters, Symbol(IGlobalCallSignatureWithParameters, Decl(declFileCallSignatures_1.ts, 3, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
/** This is comment for function signature*/
|
|
|
|
(/** this is comment about a*/a: string,
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : string, Symbol(a, Decl(declFileCallSignatures_1.ts, 7, 5))
|
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(declFileCallSignatures_1.ts, 7, 44))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IGlobalCallSignatureWithRestParameters {
|
2015-04-13 23:01:57 +02:00
|
|
|
>IGlobalCallSignatureWithRestParameters : IGlobalCallSignatureWithRestParameters, Symbol(IGlobalCallSignatureWithRestParameters, Decl(declFileCallSignatures_1.ts, 10, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
(a: string, ...rests: string[]): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : string, Symbol(a, Decl(declFileCallSignatures_1.ts, 14, 5))
|
|
|
|
>rests : string[], Symbol(rests, Decl(declFileCallSignatures_1.ts, 14, 15))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IGlobalCallSignatureWithOverloads {
|
2015-04-13 23:01:57 +02:00
|
|
|
>IGlobalCallSignatureWithOverloads : IGlobalCallSignatureWithOverloads, Symbol(IGlobalCallSignatureWithOverloads, Decl(declFileCallSignatures_1.ts, 16, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
(a: string): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : string, Symbol(a, Decl(declFileCallSignatures_1.ts, 19, 5))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
(a: number): number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : number, Symbol(a, Decl(declFileCallSignatures_1.ts, 20, 5))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IGlobalCallSignatureWithTypeParameters<T> {
|
2015-04-13 23:01:57 +02:00
|
|
|
>IGlobalCallSignatureWithTypeParameters : IGlobalCallSignatureWithTypeParameters<T>, Symbol(IGlobalCallSignatureWithTypeParameters, Decl(declFileCallSignatures_1.ts, 21, 1))
|
|
|
|
>T : T, Symbol(T, Decl(declFileCallSignatures_1.ts, 23, 49))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
/** This comment should appear for foo*/
|
|
|
|
(a: T): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : T, Symbol(a, Decl(declFileCallSignatures_1.ts, 25, 5))
|
|
|
|
>T : T, Symbol(T, Decl(declFileCallSignatures_1.ts, 23, 49))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IGlobalCallSignatureWithOwnTypeParametes {
|
2015-04-13 23:01:57 +02:00
|
|
|
>IGlobalCallSignatureWithOwnTypeParametes : IGlobalCallSignatureWithOwnTypeParametes, Symbol(IGlobalCallSignatureWithOwnTypeParametes, Decl(declFileCallSignatures_1.ts, 26, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
<T extends IGlobalCallSignature>(a: T): string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>T : T, Symbol(T, Decl(declFileCallSignatures_1.ts, 29, 5))
|
|
|
|
>IGlobalCallSignature : IGlobalCallSignature, Symbol(IGlobalCallSignature, Decl(declFileCallSignatures_1.ts, 0, 0))
|
|
|
|
>a : T, Symbol(a, Decl(declFileCallSignatures_1.ts, 29, 37))
|
|
|
|
>T : T, Symbol(T, Decl(declFileCallSignatures_1.ts, 29, 5))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|