Home
last modified time | relevance | path

Searched refs:contextualType (Results 1 – 19 of 19) sorted by relevance

/third_party/typescript/src/services/
DsignatureHelp.ts305 const { contextualType, argumentIndex, argumentCount, argumentsSpan } = info; constant
308 const nonNullableContextualType = contextualType.getNonNullableType();
317 …interface ContextualSignatureLocationInfo { readonly contextualType: Type; readonly argumentIndex:… property
329 …const contextualType = isMethodDeclaration(parent) ? checker.getContextualTypeForObjectLiteralElem… constant
330 … return contextualType && { contextualType, argumentIndex, argumentCount, argumentsSpan };
333 const contextualType = checker.getContextualType(highestBinary); constant
336 …return contextualType && { contextualType, argumentIndex, argumentCount, argumentsSpan: createText…
Dcompletions.ts800 …function getRecommendedCompletion(previousToken: Node, contextualType: Type, checker: TypeChecker)…
802 …return firstDefined(contextualType && (contextualType.isUnion() ? contextualType.types : [contextu…
1159 …const contextualType = previousToken && getContextualType(previousToken, position, sourceFile, typ… constant
1160 …const literals = mapDefined(contextualType && (contextualType.isUnion() ? contextualType.types : [
1162 …ecommendedCompletion = previousToken && contextualType && getRecommendedCompletion(previousToken,
2850 …export function getPropertiesForObjectExpression(contextualType: Type, completionsType: Type | und…
2851 const hasCompletionsType = completionsType && completionsType !== contextualType;
2853 ? checker.getUnionType([contextualType, completionsType!])
2854 : contextualType;
DgoToDefinition.ts105 const contextualType = element && typeChecker.getContextualType(element.parent); constant
106 if (contextualType) {
107 …n flatMap(getPropertySymbolsFromContextualType(element, typeChecker, contextualType, /*unionSymbol…
Dservices.ts2702 const contextualType = checker.getContextualType(object.parent); constant
2703 …const properties = contextualType && getPropertySymbolsFromContextualType(object, checker, context…
2713 …extualType(node: ObjectLiteralElementWithName, checker: TypeChecker, contextualType: Type, unionSy…
2716 if (!contextualType.isUnion()) {
2717 const symbol = contextualType.getProperty(name);
2721 …const discriminatedPropertySymbols = mapDefined(contextualType.types, t => (isObjectLiteralExpress…
2722 …pertySymbols.length === 0 || discriminatedPropertySymbols.length === contextualType.types.length))…
2723 const symbol = contextualType.getProperty(name);
2728 return mapDefined(contextualType.types, t => t.getProperty(name));
DstringCompletions.ts260 const contextualType = checker.getContextualType(objectLiteralExpression); constant
261 if (!contextualType) return undefined;
265 contextualType,
274 hasIndexSignature: hasIndexSignature(contextualType)
DfindAllReferences.ts2061 … const contextualType = checker.getContextualType(containingObjectLiteralElement.parent); constant
2062 const res = contextualType && firstDefined(
2063 …tySymbolsFromContextualType(containingObjectLiteralElement, checker, contextualType, /*unionSymbol…
Dutilities.ts794 const contextualType = checker.getContextualType(node); constant
795 if (contextualType) {
796 return contextualType;
/third_party/typescript/src/services/codefixes/
DfixAddMissingMember.ts282 const contextualType = checker.getContextualType(token.parent as Expression); constant
283 …typeNode = contextualType ? checker.typeToTypeNode(contextualType, /*enclosingDeclaration*/ undefi…
Dhelpers.ts266 const contextualType = isJs ? undefined : checker.getContextualType(call); constant
283 const type = isJs || contextualType === undefined
285 : checker.typeToTypeNode(contextualType, contextNode, /*flags*/ undefined, tracker);
/third_party/typescript/src/compiler/
Dchecker.ts8683 …const contextualType = isBindingPattern(element.name) ? getTypeFromBindingPattern(element.name, /*…
8684 …y(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, contextualType)));
11091 …function isTypeInvalidDueToUnionDiscriminant(contextualType: Type, obj: ObjectLiteralExpression | …
11096 … const expected = name === undefined ? undefined : getTypeOfPropertyOfType(contextualType, name);
16252 next.contextualType = sourcePropType;
16257 next.contextualType = undefined;
16492 const oldContext = node.contextualType;
16493 node.contextualType = target;
16496 node.contextualType = oldContext;
16503 node.contextualType = oldContext;
[all …]
Dtypes.ts871 …/* @internal */ contextualType?: Type; // Used to temporarily assign a contextual t… property
4245 …/* @internal */ isTypeInvalidDueToUnionDiscriminant(contextualType: Type, obj: ObjectLiteralExpres…
/third_party/typescript/src/services/refactors/
DconvertParamsToDestructuredObject.ts223 …const contextualType = checker.getContextualTypeForObjectLiteralElement(<ObjectLiteralElementLike>… constant
224 const symbol = contextualType?.getSymbol();
DextractSymbol.ts878 const contextualType = checker.getContextualType(node); constant
879 …returnType = checker.typeToTypeNode(contextualType!, scope, NodeBuilderFlags.NoTruncation); // TOD…
1640 const contextualType = checker.getContextualType(targetRange.range)!; // TODO: GH#18217 constant
1641 recordTypeParameterUsages(contextualType);
/third_party/typescript/lib/
DtypescriptServices.js51784 …var contextualType = ts.isBindingPattern(element.name) ? getTypeFromBindingPattern(element.name, /…
51785 …y(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, contextualType)));
54049 function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) { argument
54054 … var expected = name === undefined ? undefined : getTypeOfPropertyOfType(contextualType, name);
58780 next.contextualType = sourcePropType;
58785 next.contextualType = undefined;
59026 var oldContext = node.contextualType;
59027 node.contextualType = target;
59030 node.contextualType = oldContext;
59037 node.contextualType = oldContext;
[all …]
Dtsserverlibrary.js51784 …var contextualType = ts.isBindingPattern(element.name) ? getTypeFromBindingPattern(element.name, /…
51785 …y(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, contextualType)));
54049 function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) { argument
54054 … var expected = name === undefined ? undefined : getTypeOfPropertyOfType(contextualType, name);
58780 next.contextualType = sourcePropType;
58785 next.contextualType = undefined;
59026 var oldContext = node.contextualType;
59027 node.contextualType = target;
59030 node.contextualType = oldContext;
59037 node.contextualType = oldContext;
[all …]
Dtsserver.js51590 …var contextualType = ts.isBindingPattern(element.name) ? getTypeFromBindingPattern(element.name, /…
51591 …y(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, contextualType)));
53855 function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) { argument
53860 … var expected = name === undefined ? undefined : getTypeOfPropertyOfType(contextualType, name);
58586 next.contextualType = sourcePropType;
58591 next.contextualType = undefined;
58832 var oldContext = node.contextualType;
58833 node.contextualType = target;
58836 node.contextualType = oldContext;
58843 node.contextualType = oldContext;
[all …]
Dtypescript.js51784 …var contextualType = ts.isBindingPattern(element.name) ? getTypeFromBindingPattern(element.name, /…
51785 …y(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, contextualType)));
54049 function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) { argument
54054 … var expected = name === undefined ? undefined : getTypeOfPropertyOfType(contextualType, name);
58780 next.contextualType = sourcePropType;
58785 next.contextualType = undefined;
59026 var oldContext = node.contextualType;
59027 node.contextualType = target;
59030 node.contextualType = oldContext;
59037 node.contextualType = oldContext;
[all …]
Dtsc.js42465 …var contextualType = ts.isBindingPattern(element.name) ? getTypeFromBindingPattern(element.name, t…
42466 …y(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, contextualType)));
44441 function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) { argument
44446 … var expected = name === undefined ? undefined : getTypeOfPropertyOfType(contextualType, name);
48665 next.contextualType = sourcePropType;
48670 next.contextualType = undefined;
48894 var oldContext = node.contextualType;
48895 node.contextualType = target;
48898 node.contextualType = oldContext;
48905 node.contextualType = oldContext;
[all …]
DtypingsInstaller.js51579 …var contextualType = ts.isBindingPattern(element.name) ? getTypeFromBindingPattern(element.name, /…
51580 …y(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, contextualType)));
53844 function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) { argument
53849 … var expected = name === undefined ? undefined : getTypeOfPropertyOfType(contextualType, name);
58575 next.contextualType = sourcePropType;
58580 next.contextualType = undefined;
58821 var oldContext = node.contextualType;
58822 node.contextualType = target;
58825 node.contextualType = oldContext;
58832 node.contextualType = oldContext;
[all …]