Home
last modified time | relevance | path

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

12

/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.ts656 …function createSignatureHelpParameterForTypeParameter(typeParameter: TypeParameter, checker: TypeC…
658 …const param = checker.typeParameterToDeclaration(typeParameter, enclosingDeclaration, signatureHel…
661 …return { name: typeParameter.symbol.name, documentation: typeParameter.symbol.getDocumentationComm…
Dutilities.ts1029 return parent.typeParameter.name;
/third_party/typescript/src/compiler/
DsymbolWalker.ts12 getConstraintOfTypeParameter: (typeParameter: TypeParameter) => Type | undefined,
115 visitType(type.typeParameter);
Dchecker.ts2047 const parameterName = (<InferTypeNode>location).typeParameter.name;
2049 result = (<InferTypeNode>location).typeParameter.symbol;
9280 …Parameters, getDeclaredTypeOfTypeParameter(getSymbolOfNode((<MappedTypeNode>node).typeParameter)));
10831 const typeParameter = getTypeParameterFromMappedType(type);
10856 …= nameType ? instantiateType(nameType, appendTypeMapping(type.mapper, typeParameter, keyType)) : k…
10894 …t propType = instantiateType(templateType, appendTypeMapping(type.mapper, typeParameter, keyType));
10933 return type.typeParameter ||
10934 …(type.typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfNode(type.declaration.typeParamete…
10956 return getEffectiveConstraintOfTypeParameter(type.declaration.typeParameter);
11127 function getConstraintOfTypeParameter(typeParameter: TypeParameter): Type | undefined {
[all …]
Dtypes.ts1625 readonly typeParameter: TypeParameterDeclaration;
1653 readonly typeParameter: TypeParameterDeclaration;
5364 typeParameter?: TypeParameter;
5652typeParameter: TypeParameter; // Type parameter for which inferences are being made
7022 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
7023 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
7033 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
7034 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
DvisitorPublic.ts534 … nodeVisitor((<InferTypeNode>node).typeParameter, visitor, isTypeParameterDeclaration));
568 … nodeVisitor((<MappedTypeNode>node).typeParameter, visitor, isTypeParameterDeclaration),
Dparser.ts199 return visitNode(cbNode, (<InferTypeNode>node).typeParameter);
212 visitNode(cbNode, (<MappedTypeNode>node).typeParameter) ||
3465 const typeParameter = parseMappedTypeParameter();
3478 …return finishNode(factory.createMappedTypeNode(readonlyToken, typeParameter, nameType, questionTok…
Demitter.ts2222 emit(node.typeParameter);
2267 pipelineEmit(EmitHint.MappedTypeParameter, node.typeParameter);
/third_party/typescript/src/services/refactors/
DextractType.ts229 forEach(typeParameters, typeParameter => {
230 const constraint = getEffectiveConstraintOfTypeParameter(typeParameter);
231 const parameter = factory.createTypeParameterDeclaration(typeParameter.name);
DextractSymbol.ts1651 seenTypeParameterUsages.forEach((typeParameter, id) => {
1652 usagesPerScope[i].typeParameterUsages.set(id, typeParameter);
1661 … const typeParameter = checker.getTypeAtLocation(typeParameterDecl) as TypeParameter; constant
1662 if (allTypeParameterUsages.has(typeParameter.id.toString())) {
1663 seenTypeParameterUsages.set(typeParameter.id.toString(), typeParameter);
/third_party/typescript/src/services/codefixes/
DinferFromUsage.ts1069 …function inferTypeParameters(genericType: Type, usageType: Type, typeParameter: Type): readonly Ty…
1070 if (genericType === typeParameter) {
1074 …ericType as UnionOrIntersectionType).types, t => inferTypeParameters(t, usageType, typeParameter));
1084 … types.push(...inferTypeParameters(genericArgs[i], usageArgs[i], typeParameter));
1093 return inferFromSignatures(genericSigs[0], usageSigs[0], typeParameter);
1098 … function inferFromSignatures(genericSig: Signature, usageSig: Signature, typeParameter: Type) {
1113 types.push(...inferTypeParameters(genericParamType, targetType, typeParameter));
1117 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/
DnodeFactory.ts1939 function createInferTypeNode(typeParameter: TypeParameterDeclaration) {
1941 node.typeParameter = typeParameter;
1947 function updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration) {
1948 return node.typeParameter !== typeParameter
1949 ? update(createInferTypeNode(typeParameter), node)
2047 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
2050 node.typeParameter = typeParameter;
2059 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
2061 || node.typeParameter !== typeParameter
2065 … ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type), node)
/third_party/typescript/lib/
Dtypescript.d.ts937 readonly typeParameter: TypeParameterDeclaration; property
956 readonly typeParameter: TypeParameterDeclaration; property
3296 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
3297 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
3307 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
3308 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
6640 const createInferTypeNode: (typeParameter: TypeParameterDeclaration) => InferTypeNode;
6642 …const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => Infer…
6660 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
6662 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
DtypescriptServices.d.ts937 readonly typeParameter: TypeParameterDeclaration; property
956 readonly typeParameter: TypeParameterDeclaration; property
3296 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
3297 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
3307 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
3308 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
6640 const createInferTypeNode: (typeParameter: TypeParameterDeclaration) => InferTypeNode;
6642 …const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => Infer…
6660 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
6662 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
Dtsc.js17532 function createInferTypeNode(typeParameter) { argument
17534 node.typeParameter = typeParameter;
17538 function updateInferTypeNode(node, typeParameter) { argument
17539 return node.typeParameter !== typeParameter
17540 ? update(createInferTypeNode(typeParameter), node)
17616 function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type) { argument
17619 node.typeParameter = typeParameter;
17626 … function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type) { argument
17628 || node.typeParameter !== typeParameter
17632 … ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type), node)
[all …]
DtypingsInstaller.js21986 function createInferTypeNode(typeParameter) { argument
21988 node.typeParameter = typeParameter;
21993 function updateInferTypeNode(node, typeParameter) { argument
21994 return node.typeParameter !== typeParameter
21995 ? update(createInferTypeNode(typeParameter), node)
22083 function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type) { argument
22086 node.typeParameter = typeParameter;
22094 … function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type) { argument
22096 || node.typeParameter !== typeParameter
22100 … ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type), node)
[all …]
DtypescriptServices.js22191 function createInferTypeNode(typeParameter) { argument
22193 node.typeParameter = typeParameter;
22198 function updateInferTypeNode(node, typeParameter) { argument
22199 return node.typeParameter !== typeParameter
22200 ? update(createInferTypeNode(typeParameter), node)
22288 function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type) { argument
22291 node.typeParameter = typeParameter;
22299 … function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type) { argument
22301 || node.typeParameter !== typeParameter
22305 … ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type), node)
[all …]
Dtsserverlibrary.js22191 function createInferTypeNode(typeParameter) { argument
22193 node.typeParameter = typeParameter;
22198 function updateInferTypeNode(node, typeParameter) { argument
22199 return node.typeParameter !== typeParameter
22200 ? update(createInferTypeNode(typeParameter), node)
22288 function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type) { argument
22291 node.typeParameter = typeParameter;
22299 … function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type) { argument
22301 || node.typeParameter !== typeParameter
22305 … ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type), node)
[all …]
Dtsserver.js21997 function createInferTypeNode(typeParameter) { argument
21999 node.typeParameter = typeParameter;
22004 function updateInferTypeNode(node, typeParameter) { argument
22005 return node.typeParameter !== typeParameter
22006 ? update(createInferTypeNode(typeParameter), node)
22094 function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type) { argument
22097 node.typeParameter = typeParameter;
22105 … function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type) { argument
22107 || node.typeParameter !== typeParameter
22111 … ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type), node)
[all …]
Dtypescript.js22191 function createInferTypeNode(typeParameter) { argument
22193 node.typeParameter = typeParameter;
22198 function updateInferTypeNode(node, typeParameter) { argument
22199 return node.typeParameter !== typeParameter
22200 ? update(createInferTypeNode(typeParameter), node)
22288 function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type) { argument
22291 node.typeParameter = typeParameter;
22299 … function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type) { argument
22301 || node.typeParameter !== typeParameter
22305 … ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type), node)
[all …]
Dtsserverlibrary.d.ts937 readonly typeParameter: TypeParameterDeclaration; property
956 readonly typeParameter: TypeParameterDeclaration; property
3296 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
3297 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
3307 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
3308 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
10385 const createInferTypeNode: (typeParameter: TypeParameterDeclaration) => InferTypeNode;
10387 …const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => Infer…
10405 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
10407 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
/third_party/typescript/tests/baselines/reference/api/
Dtypescript.d.ts948 readonly typeParameter: TypeParameterDeclaration; property
967 readonly typeParameter: TypeParameterDeclaration; property
3412 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
3413 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
3423 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
3424 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
6887 const createInferTypeNode: (typeParameter: TypeParameterDeclaration) => InferTypeNode;
6889 …const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => Infer…
6907 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
6909 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
Dtsserverlibrary.d.ts948 readonly typeParameter: TypeParameterDeclaration; property
967 readonly typeParameter: TypeParameterDeclaration; property
3412 createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
3413 … updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
3423 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
3424 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
10670 const createInferTypeNode: (typeParameter: TypeParameterDeclaration) => InferTypeNode;
10672 …const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => Infer…
10690 …(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…
10692 … readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameter…

12