/third_party/typescript/tests/cases/fourslash/ |
H A D | quickInfoCommentsFunctionDeclaration.ts | 3 /////** This comment should appear for foo*/ 13 ////fooWithParam/*8*/eters("a",10);
|
H A D | quickInfoContextualTyping.ts | 11 //// foo: IFoo;
15 //// /*1*/foo: (i: number, s: string) => number = function(/*2*/i) {
21 //// export var /*4*/foo: (i: number, s: string) => number = function(/*5*/i) {
43 //// /*28*/foo: <IFoo>({})
53 //// /*35*/foo: (i: number, s: string) => string;
55 //// this.foo = function(/*36*/i, /*37*/s) {
62 //// export var /*38*/foo: (i: number, s: string) => string;
63 //// foo = function(/*39*/i, /*40*/s) {
127 //// /*64*/foo: <IFoo>({})
163 //// /*94*/foo [all...] |
H A D | quickInfoDisplayPartsConst.ts | 4 ////function foo() {
|
H A D | quickInfoDisplayPartsEnum4.ts | 3 ////const enum Foo {
7 ////Foo[/*1*/"\t"]
8 ////Foo[/*2*/"\u007f"]
|
H A D | quickInfoDisplayPartsFunction.ts | 3 ////function /*1*/foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) {
5 ////function /*2*/foowithoverload(a: string): string;
6 ////function /*3*/foowithoverload(a: number): number;
7 ////function /*4*/foowithoverload(a: any): any {
10 ////function /*5*/foowith3overload(a: string): string;
11 ////function /*6*/foowith3overload(a: number): number;
12 ////function /*7*/foowith3overload(a: boolean): boolean;
13 ////function /*8*/foowith3overload(a: any): any {
16 /////*9*/foo("hello");
17 /////*10*/foowithoverload("hell [all...] |
H A D | quickInfoDisplayPartsFunctionExpression.ts | 3 ////var /*1*/x = function /*2*/foo() {
4 //// /*3*/foo();
8 ////(function /*5*/foo1() {
9 //// /*6*/foo1();
|
H A D | quickInfoDisplayPartsIife.ts | 3 ////var iife = (function foo/*1*/(x, y) { return x })(12); 5 verify.quickInfoAt('1', '(local function) foo(x: number, y?: undefined): number');
|
H A D | quickInfoDisplayPartsLet.ts | 4 ////function foo() {
|
H A D | quickInfoDisplayPartsLocalFunction.ts | 4 //// function /*2*/foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) {
6 //// function /*3*/foowithoverload(a: string): string;
7 //// function /*4*/foowithoverload(a: number): number;
8 //// function /*5*/foowithoverload(a: any): any {
11 //// function /*6*/foowith3overload(a: string): string;
12 //// function /*7*/foowith3overload(a: number): number;
13 //// function /*8*/foowith3overload(a: boolean): boolean;
14 //// function /*9*/foowith3overload(a: any): any {
17 //// /*10*/foo("hello");
18 //// /*11*/foowithoverload("hell [all...] |
H A D | quickInfoDisplayPartsParameters.ts | 4 //// function /*1*/foo(/*2*/param: string, /*3*/optionalParam?: string, /*4*/paramWithInitializer = "hello", .../*5*/restParam: string[]) {
|
H A D | quickInfoDisplayPartsTypeParameterInFunction.ts | 4 ////function /*1*/foo</*2*/U>(/*3*/a: /*4*/U) {
7 /////*6*/foo("Hello");
8 ////function /*7*/foo2</*8*/U extends string>(/*9*/a: /*10*/U) {
11 /////*12*/foo2("hello");
|
H A D | quickInfoDisplayPartsVar.ts | 4 ////function foo() {
|
H A D | quickInfoExportAssignmentOfGenericInterface.ts | 4 ////interface Foo<T> {
7 ////export = Foo;
|
H A D | quickInfoExtendArray.ts | 3 ////interface Foo<T> extends Array<T> { }
4 ////var x: Foo<string>;
7 ////interface Foo2 extends Array<string> { }
8 ////var x2: Foo2;
|
H A D | quickInfoForArgumentsPropertyNameInJsMode1.ts | 6 ////const foo = { 11 //// foo.f1({ x, arguments: [] });
|
H A D | quickInfoForContextuallyTypedIife.ts | 9 ////((a/*9*/, b/*10*/, c/*11*/) => [a/*12*/,b/*13*/,c/*14*/])("foo", 101, false);
|
H A D | quickInfoForContextuallyTypedParameters.ts | 3 ////declare function foo1<T>(obj: T, settings: (row: T) => { value: string, func?: Function }): void; 5 ////foo1(new Error(), 8 //// func: x => 'foo' 12 ////declare function foo2<T>(settings: (row: T) => { value: string, func?: Function }, obj: T): void; 14 ////foo2(o/*2*/ => ({ 16 //// func: x => 'foo' 21 ////declare function foof<T extends { name: string }, U extends keyof T>(settings: (row: T) => { value: T[U], func?: Function }, obj: T, key: U): U; 24 //// return foof/*3*/(o => ({ value: o.name, func: x => 'foo' }), x, "name"); 27 ////foof/* [all...] |
H A D | quickInfoForDerivedGenericTypeWithConstructor.ts | 4 //// foo() { }
|
H A D | quickInfoForGenericConstraints1.ts | 3 ////function foo4<T extends Date>(te/**/st: T): T;
4 ////function foo4<T extends Date>(test: any): any { return null; }
|
H A D | quickInfoForGenericPrototypeMember.ts | 4 //// foo(x: T) { }
|
H A D | quickInfoForGenericTaggedTemplateExpression.ts | 7 ////declare function foo<T>(strings: TemplateStringsArray, ...values: T[]): void; 9 /////*1*/foo<number>``; 10 /////*2*/foo<string | number>``; 11 /////*3*/foo<{ a: number }>``; 12 /////*4*/foo<T1>``; 13 /////*5*/foo<T2>``; 14 /////*6*/foo<T3>``; 15 /////*7*/foo``; 17 verify.quickInfoAt("1", "function foo<number>(strings: TemplateStringsArray, ...values: number[]): void"); 18 verify.quickInfoAt("2", "function foo<strin [all...] |
H A D | quickInfoForIndexerResultWithConstraint.ts | 3 ////function foo<T>(x: T) {
9 //// var /*1*/r2 = foo(b); // just shows T
|
H A D | quickInfoForJSDocUnknownTag.ts | 6 //// * foo() 15 //// foo()
|
H A D | quickInfoForNamedTupleMember.ts | 3 ////type foo = [/**/x: string];
|
H A D | quickInfoForObjectBindingElementName01.ts | 8 ////var foo: I;
9 ////var { /**/property1 } = foo;
|