/third_party/typescript/src/testRunner/unittests/ |
D | typeParameterIsPossiblyReferenced.ts | 29 const typeParameter = checker.getTypeAtLocation(typeParameterDecl)! as ts.TypeParameter; constant 30 … const isReferenced = checker.isTypeParameterPossiblyReferenced(typeParameter, typeQueryNode);
|
/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 | 659 …function createSignatureHelpParameterForTypeParameter(typeParameter: TypeParameter, checker: TypeC… 661 …const param = checker.typeParameterToDeclaration(typeParameter, enclosingDeclaration, signatureHel… 664 …return { name: typeParameter.symbol.name, documentation: typeParameter.symbol.getDocumentationComm…
|
D | utilities.ts | 1035 return parent.typeParameter.name;
|
/third_party/typescript/src/compiler/ |
D | symbolWalker.ts | 11 getConstraintOfTypeParameter: (typeParameter: TypeParameter) => Type | undefined, 114 visitType(type.typeParameter);
|
D | checker.ts | 2233 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 …]
|
D | types.ts | 2063 readonly typeParameter: TypeParameterDeclaration; 2091 readonly typeParameter: TypeParameterDeclaration; 6076 typeParameter?: TypeParameter; 6386 … typeParameter: 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…
|
D | visitorPublic.ts | 656 nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)); 704 nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration),
|
D | parser.ts | 300 return visitNode(cbNode, node.typeParameter); 319 visitNode(cbNode, node.typeParameter) || 4064 const typeParameter = parseMappedTypeParameter(); 4078 …return finishNode(factory.createMappedTypeNode(readonlyToken, typeParameter, nameType, questionTok…
|
D | emitter.ts | 2359 emit(node.typeParameter); 2408 pipelineEmit(EmitHint.MappedTypeParameter, node.typeParameter);
|
/third_party/typescript/src/services/refactors/ |
D | extractType.ts | 238 forEach(typeParameters, typeParameter => { 239 const constraint = getEffectiveConstraintOfTypeParameter(typeParameter); 240 …st parameter = factory.createTypeParameterDeclaration(/*modifiers*/ undefined, typeParameter.name);
|
D | extractSymbol.ts | 1704 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/ |
D | inferFromUsage.ts | 1049 …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));
|
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 | parenthesizerRules.ts | 560 …if (isInferTypeNode(type)) return !!type.typeParameter.constraint && hasJSDocPostfixQuestion(type.…
|
D | nodeFactory.ts | 2092 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/ |
D | tsc.js | 17875 … 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 …]
|
D | typingsInstaller.js | 22472 … 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 …]
|
D | typescript.d.ts | 1006 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…
|
D | typescriptServices.d.ts | 1006 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…
|
D | tsserverlibrary.d.ts | 1006 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/ |
D | typescript.d.ts | 1006 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…
|
D | tsserverlibrary.d.ts | 1006 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/ |
D | fourslashImpl.ts | 2640 tokenTypes[ts.classifier.v2020.TokenType.typeParameter] = "typeParameter";
|