Searched refs:contextual (Results 1 – 25 of 214) sorted by relevance
123456789
12 declare function contextual(...s: string[]): string13 >contextual : Symbol(contextual, Decl(contextualSigInstantiationRestParams.ts, 0, 54))16 var sig: typeof contextual = toInstantiate;18 >contextual : Symbol(contextual, Decl(contextualSigInstantiationRestParams.ts, 0, 54))
50 >extend1({ init() { this // this: IndexedWithThis because of contextual typing. //…52 >{ init() { this // this: IndexedWithThis because of contextual typing. // this.mi…57 this // this: IndexedWithThis because of contextual typing.86 …s because of contextual typing this.mine }, mine: 13, foo() { this // this:…88 …s because of contextual typing this.mine }, mine: 13, foo() { this // this:…93 this // this: IndexedWithoutThis because of contextual typing109 this // this: IndexedWithoutThis because of contextual typing
7 declare function contextual(...s: string[]): string8 >contextual : (...s: string[]) => string11 var sig: typeof contextual = toInstantiate;13 >contextual : (...s: string[]) => string
3 // the type of the property with the numeric name N in the contextual type, if any, or otherwi…4 // the numeric index type of the contextual type, if any.8 var array1 = [true, 2, 3]; // Contextual type by the numeric index type of the contextual type21 …pression at index N is contextually typed by the numeric index type of the contextual type, if any.
3 // the type of the property with the numeric name N in the contextual type, if any, or otherwi…4 // the numeric index type of the contextual type, if any.12 var array1 = [true, 2, 3]; // Contextual type by the numeric index type of the contextual type44 …pression at index N is contextually typed by the numeric index type of the contextual type, if any.
3 // is contextually typed (section 4.19) by a type T and a contextual signature S can be extracted f…10 // A contextual signature S is extracted from a function type T as follows:54 // A contextual signature S is extracted from a function type T as follows:126 // A contextual signature S is extracted from a function type T as follows:127 // Otherwise, no contextual signature can be extracted from T and S is undefined.166 }; // Per spec, no contextual signature can be extracted in this case. (Otherwise…167 b7 = (j, m) => { }; // Per spec, no contextual signature can be extracted in this case. (Otherwise…193 } // Per spec, no contextual signature can be extracted in this case.
3 declare function contextual(...s: string[]): string5 var sig: typeof contextual = toInstantiate;
29 this // this: IndexedWithThis because of contextual typing.41 this // this: IndexedWithoutThis because of contextual typing46 this // this: IndexedWithoutThis because of contextual typing
14 const contextual: Foo = { variable26 var contextual = { variable
6 … // the type of the property with a matching name in the contextual type, if any, or otherwise7 …// for a numerically named property, the numeric index type of the contextual type, if any, o…8 // the string index type of the contextual type, if any.
3 // is contextually typed (section 4.19) by a type T and a contextual signature S can be extracted f…10 // A contextual signature S is extracted from a function type T as follows:51 // A contextual signature S is extracted from a function type T as follows:107 // A contextual signature S is extracted from a function type T as follows:108 // Otherwise, no contextual signature can be extracted from T and S is undefined.137 }; // Per spec, no contextual signature can be extracted in this case. (Otherwise…138 b7 = (j, m) => { }; // Per spec, no contextual signature can be extracted in this case. (Otherwise…167 } // Per spec, no contextual signature can be extracted in this case.
13 …// the type of the property with the numeric name N in the contextual type, if any, or otherw…14 // the numeric index type of the contextual type, if any.16 var array1 = [true, 2, 3]; // Contextual type by the numeric index type of the contextual type31 …pression at index N is contextually typed by the numeric index type of the contextual type, if any.
40 const contextual: Foo = {41 >contextual : Symbol(contextual, Decl(thisTypeInAccessorsNegative.ts, 12, 5))
3 // the type of the property with a matching name in the contextual type, if any, or otherwise4 // for a numerically named property, the numeric index type of the contextual type, if any, or…5 // the string index type of the contextual type, if any.
38 const contextual: Foo = {39 >contextual : Foo
3 // In the absence of a contextual type, the type of an array literal is C[], where C is the13 // though there is a "contextual type" present. This is the intention, even though the spec
2 // A contextual signature S is extracted from a function type T as follows:8 // Otherwise, no contextual signature can be extracted from T and S is undefined.
53 ]); // Legal because of the contextual type IAnimal provided by the parameter67 ]); // Legal because of the contextual type IAnimal provided by the parameter
2 // checking subtype relations for function types as it relates to contextual signature instantiation133 …a2: <T, U>(x: T) => U[]; // error, contextual signature instantiation doesn't relate return types …139 … a2: (x: T) => U[]; // error, no contextual signature instantiation since I2.a2 is not generic165 …ived>(...x: T[]) => T; // valid, parameter covariance works even after contextual signature instan…171 … valid, even though x is a Base, parameter covariance works even after contextual signature instan…
2 // checking subtype relations for function types as it relates to contextual signature instantiation109 …a2: new <T, U>(x: T) => U[]; // error, contextual signature instantiation doesn't relate return ty…115 … a2: new (x: T) => U[]; // error, no contextual signature instantiation since I2.a2 is not generic141 …ived>(...x: T[]) => T; // valid, parameter covariance works even after contextual signature instan…147 … valid, even though x is a Base, parameter covariance works even after contextual signature instan…
2 declare function contextual(...s: string[]): string4 var sig: typeof contextual = toInstantiate;
81 int contextual = record.getCodePoint(); in buildArabicContextualForms() local86 initClassTable.addMapping(isolated, contextual); in buildArabicContextualForms()90 mediClassTable.addMapping(isolated, contextual); in buildArabicContextualForms()94 finaClassTable.addMapping(isolated, contextual); in buildArabicContextualForms()98 isolClassTable.addMapping(isolated, contextual); in buildArabicContextualForms()