/third_party/typescript/src/services/ |
D | classifier2020.ts | 10 …class, enum, interface, namespace, typeParameter, type, parameter, variable, enumMember, property,… enumerator 163 return TokenType.typeParameter; 248 [SyntaxKind.TypeParameter, TokenType.typeParameter],
|
D | signatureHelp.ts | 656 …function createSignatureHelpParameterForTypeParameter(typeParameter: TypeParameter, checker: TypeC… 658 …const param = checker.typeParameterToDeclaration(typeParameter, enclosingDeclaration, signatureHel… 661 …return { name: typeParameter.symbol.name, documentation: typeParameter.symbol.getDocumentationComm…
|
D | utilities.ts | 1029 return parent.typeParameter.name;
|
/third_party/typescript/src/compiler/ |
D | symbolWalker.ts | 12 getConstraintOfTypeParameter: (typeParameter: TypeParameter) => Type | undefined, 115 visitType(type.typeParameter);
|
D | checker.ts | 2047 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 …]
|
D | types.ts | 1625 readonly typeParameter: TypeParameterDeclaration; 1653 readonly typeParameter: TypeParameterDeclaration; 5364 typeParameter?: TypeParameter; 5652 … typeParameter: 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…
|
D | visitorPublic.ts | 534 … nodeVisitor((<InferTypeNode>node).typeParameter, visitor, isTypeParameterDeclaration)); 568 … nodeVisitor((<MappedTypeNode>node).typeParameter, visitor, isTypeParameterDeclaration),
|
D | parser.ts | 199 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…
|
D | emitter.ts | 2222 emit(node.typeParameter); 2267 pipelineEmit(EmitHint.MappedTypeParameter, node.typeParameter);
|
/third_party/typescript/src/services/refactors/ |
D | extractType.ts | 229 forEach(typeParameters, typeParameter => { 230 const constraint = getEffectiveConstraintOfTypeParameter(typeParameter); 231 const parameter = factory.createTypeParameterDeclaration(typeParameter.name);
|
D | extractSymbol.ts | 1651 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/ |
D | inferFromUsage.ts | 1069 …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));
|
D | fixUnusedIdentifier.ts | 73 const name = cast(token.parent, isInferTypeNode).typeParameter.name.text; 192 token = cast(token.parent, isInferTypeNode).typeParameter.name;
|
/third_party/typescript/src/compiler/factory/ |
D | nodeFactory.ts | 1939 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/ |
D | typescript.d.ts | 937 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…
|
D | typescriptServices.d.ts | 937 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…
|
D | tsc.js | 17532 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 …]
|
D | typingsInstaller.js | 21986 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 …]
|
D | typescriptServices.js | 22191 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 …]
|
D | tsserverlibrary.js | 22191 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 …]
|
D | tsserver.js | 21997 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 …]
|
D | typescript.js | 22191 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 …]
|
D | tsserverlibrary.d.ts | 937 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/ |
D | typescript.d.ts | 948 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…
|
D | tsserverlibrary.d.ts | 948 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…
|