Home
last modified time | relevance | path

Searched refs:typeParameter (Results 1 – 24 of 24) sorted by relevance

/third_party/typescript/src/testRunner/unittests/
DtypeParameterIsPossiblyReferenced.ts29 const typeParameter = checker.getTypeAtLocation(typeParameterDecl)! as ts.TypeParameter; constant
30 … const isReferenced = checker.isTypeParameterPossiblyReferenced(typeParameter, typeQueryNode);
/third_party/typescript/src/services/
Dclassifier2020.ts10 …class, enum, interface, namespace, typeParameter, type, parameter, variable, enumMember, property,… enumerator
163 return TokenType.typeParameter;
248 [SyntaxKind.TypeParameter, TokenType.typeParameter],
DsignatureHelp.ts659 …function createSignatureHelpParameterForTypeParameter(typeParameter: TypeParameter, checker: TypeC…
661 …const param = checker.typeParameterToDeclaration(typeParameter, enclosingDeclaration, signatureHel…
664 …return { name: typeParameter.symbol.name, documentation: typeParameter.symbol.getDocumentationComm…
Dutilities.ts1035 return parent.typeParameter.name;
/third_party/typescript/src/compiler/
DsymbolWalker.ts11 getConstraintOfTypeParameter: (typeParameter: TypeParameter) => Type | undefined,
114 visitType(type.typeParameter);
Dchecker.ts2233 const parameterName = (location as InferTypeNode).typeParameter.name;
2235 result = (location as InferTypeNode).typeParameter.symbol;
5555 …pe(getConstraintOfTypeParameter(getTypeFromTypeNode((type.declaration.typeParameter.constraint! as…
10373 …rameters, getDeclaredTypeOfTypeParameter(getSymbolOfNode((node as MappedTypeNode).typeParameter)));
12011 const typeParameter = getTypeParameterFromMappedType(type); constant
12028 …= nameType ? instantiateType(nameType, appendTypeMapping(type.mapper, typeParameter, keyType)) : k…
12071 …t propType = instantiateType(templateType, appendTypeMapping(type.mapper, typeParameter, keyType));
12104 return type.typeParameter ||
12105 …(type.typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfNode(type.declaration.typeParamete…
12127 return getEffectiveConstraintOfTypeParameter(type.declaration.typeParameter);
[all …]
Dtypes.ts2063 readonly typeParameter: TypeParameterDeclaration;
2091 readonly typeParameter: TypeParameterDeclaration;
6076 typeParameter?: TypeParameter;
6386typeParameter: TypeParameter; // Type parameter for which inferences are being made
7978 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
7979 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
7989 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
7990 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
DvisitorPublic.ts656 nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration));
704 nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration),
Dparser.ts300 return visitNode(cbNode, node.typeParameter);
319 visitNode(cbNode, node.typeParameter) ||
4064 const typeParameter = parseMappedTypeParameter();
4078 …return finishNode(factory.createMappedTypeNode(readonlyToken, typeParameter, nameType, questionTok…
Demitter.ts2359 emit(node.typeParameter);
2408 pipelineEmit(EmitHint.MappedTypeParameter, node.typeParameter);
/third_party/typescript/src/services/refactors/
DextractType.ts238 forEach(typeParameters, typeParameter => {
239 const constraint = getEffectiveConstraintOfTypeParameter(typeParameter);
240 …st parameter = factory.createTypeParameterDeclaration(/*modifiers*/ undefined, typeParameter.name);
DextractSymbol.ts1704 seenTypeParameterUsages.forEach((typeParameter, id) => {
1705 usagesPerScope[i].typeParameterUsages.set(id, typeParameter);
1714 … const typeParameter = checker.getTypeAtLocation(typeParameterDecl) as TypeParameter; constant
1715 if (allTypeParameterUsages.has(typeParameter.id.toString())) {
1716 seenTypeParameterUsages.set(typeParameter.id.toString(), typeParameter);
/third_party/typescript/src/services/codefixes/
DinferFromUsage.ts1049 …function inferTypeParameters(genericType: Type, usageType: Type, typeParameter: Type): readonly Ty…
1050 if (genericType === typeParameter) {
1054 …ericType as UnionOrIntersectionType).types, t => inferTypeParameters(t, usageType, typeParameter));
1064 … types.push(...inferTypeParameters(genericArgs[i], usageArgs[i], typeParameter));
1073 return inferFromSignatures(genericSigs[0], usageSigs[0], typeParameter);
1078 … function inferFromSignatures(genericSig: Signature, usageSig: Signature, typeParameter: Type) {
1094 types.push(...inferTypeParameters(genericParamType, targetType, typeParameter));
1098 types.push(...inferTypeParameters(genericReturn, usageReturn, typeParameter));
DfixUnusedIdentifier.ts73 const name = cast(token.parent, isInferTypeNode).typeParameter.name.text;
192 token = cast(token.parent, isInferTypeNode).typeParameter.name;
/third_party/typescript/src/compiler/factory/
DparenthesizerRules.ts560 …if (isInferTypeNode(type)) return !!type.typeParameter.constraint && hasJSDocPostfixQuestion(type.
DnodeFactory.ts2092 function createInferTypeNode(typeParameter: TypeParameterDeclaration) {
2094 node.typeParameter = typeParameter;
2100 function updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration) {
2101 return node.typeParameter !== typeParameter
2102 ? update(createInferTypeNode(typeParameter), node)
2217 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
2220 node.typeParameter = typeParameter;
2230 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
2232 || node.typeParameter !== typeParameter
2237 …? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members…
/third_party/typescript/lib/
Dtsc.js17875 … return !!type.typeParameter.constraint && hasJSDocPostfixQuestion(type.typeParameter.constraint);
19475 function createInferTypeNode(typeParameter) { argument
19477 node.typeParameter = typeParameter;
19481 function updateInferTypeNode(node, typeParameter) { argument
19482 return node.typeParameter !== typeParameter
19483 ? update(createInferTypeNode(typeParameter), node)
19563 …function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members… argument
19566 node.typeParameter = typeParameter;
19574 …function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type, m… argument
19576 || node.typeParameter !== typeParameter
[all …]
DtypingsInstaller.js22472 … return !!type.typeParameter.constraint && hasJSDocPostfixQuestion(type.typeParameter.constraint);
24283 function createInferTypeNode(typeParameter) { argument
24285 node.typeParameter = typeParameter;
24290 function updateInferTypeNode(node, typeParameter) { argument
24291 return node.typeParameter !== typeParameter
24292 ? update(createInferTypeNode(typeParameter), node)
24384 …function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members… argument
24387 node.typeParameter = typeParameter;
24396 …function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type, m… argument
24398 || node.typeParameter !== typeParameter
[all …]
Dtypescript.d.ts1006 readonly typeParameter: TypeParameterDeclaration; property
1025 readonly typeParameter: TypeParameterDeclaration; property
3707 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
3708 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
3718 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
3719 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
7628 const createInferTypeNode: (typeParameter: TypeParameterDeclaration) => InferTypeNode;
7630 …const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => Infer…
7655 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
7657 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
DtypescriptServices.d.ts1006 readonly typeParameter: TypeParameterDeclaration; property
1025 readonly typeParameter: TypeParameterDeclaration; property
3707 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
3708 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
3718 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
3719 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
7628 const createInferTypeNode: (typeParameter: TypeParameterDeclaration) => InferTypeNode;
7630 …const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => Infer…
7655 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
7657 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
Dtsserverlibrary.d.ts1006 readonly typeParameter: TypeParameterDeclaration; property
1025 readonly typeParameter: TypeParameterDeclaration; property
3707 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
3708 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
3718 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
3719 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
11567 const createInferTypeNode: (typeParameter: TypeParameterDeclaration) => InferTypeNode;
11569 …const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => Infer…
11594 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
11596 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
/third_party/typescript/tests/baselines/reference/api/
Dtypescript.d.ts1006 readonly typeParameter: TypeParameterDeclaration; property
1025 readonly typeParameter: TypeParameterDeclaration; property
3707 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
3708 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
3718 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
3719 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
7628 const createInferTypeNode: (typeParameter: TypeParameterDeclaration) => InferTypeNode;
7630 …const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => Infer…
7655 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
7657 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
Dtsserverlibrary.d.ts1006 readonly typeParameter: TypeParameterDeclaration; property
1025 readonly typeParameter: TypeParameterDeclaration; property
3707 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
3708 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
3718 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
3719 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
11567 const createInferTypeNode: (typeParameter: TypeParameterDeclaration) => InferTypeNode;
11569 …const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => Infer…
11594 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
11596 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
/third_party/typescript/src/harness/
DfourslashImpl.ts2640 tokenTypes[ts.classifier.v2020.TokenType.typeParameter] = "typeParameter";