Home
last modified time | relevance | path

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

12

/third_party/typescript_eslint/packages/scope-manager/src/referencer/
DTypeVisitor.ts129 const typeParameter = node.typeParameter; constant
161 typeParameter.name,
162 new TypeDefinition(typeParameter.name, typeParameter),
/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;
9258 …Parameters, getDeclaredTypeOfTypeParameter(getSymbolOfNode((<MappedTypeNode>node).typeParameter)));
10809 const typeParameter = getTypeParameterFromMappedType(type);
10834 …= nameType ? instantiateType(nameType, appendTypeMapping(type.mapper, typeParameter, keyType)) : k…
10872 …t propType = instantiateType(templateType, appendTypeMapping(type.mapper, typeParameter, keyType));
10911 return type.typeParameter ||
10912 …(type.typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfNode(type.declaration.typeParamete…
10934 return getEffectiveConstraintOfTypeParameter(type.declaration.typeParameter);
11105 function getConstraintOfTypeParameter(typeParameter: TypeParameter): Type | undefined {
[all …]
/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…
/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_eslint/packages/scope-manager/tests/types/
Dvariable-definition.test.ts83 n => n.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_eslint/packages/eslint-plugin/src/rules/
Dindent.ts370 node.typeParameter,
379 key: node.typeParameter as any,
Dnaming-convention.ts55 typeParameter = 1 << 12, enumerator
77 Selectors.typeParameter,
750 const validator = validators.typeParameter;
Dno-unused-vars.ts120 context.markVariableAsUsed(node.typeParameter.name.name);
/third_party/typescript_eslint/packages/typescript-estree/tests/snapshots/typescript/types/
Dconditional-infer-nested.src.ts.shot110 "typeParameter": Object {
218 "typeParameter": Object {
355 "typeParameter": Object {
Dconditional-infer-simple.src.ts.shot161 "typeParameter": Object {
273 "typeParameter": Object {
Dmapped-untypped.src.ts.shot59 "typeParameter": Object {
Dmapped.src.ts.shot76 "typeParameter": Object {
Dmapped-readonly.src.ts.shot78 "typeParameter": Object {
Dmapped-readonly-minus.src.ts.shot78 "typeParameter": Object {
Dmapped-readonly-plus.src.ts.shot78 "typeParameter": Object {
Dconditional-infer.src.ts.shot110 "typeParameter": Object {
Dmapped-named-type.src.ts.shot181 "typeParameter": Object {
/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/
Dnaming-convention.md232 - `typeParameter` - matches any generic type parameter declaration.
249 - `typeLike` - matches the same as `class`, `interface`, `typeAlias`, `enum`, `typeParameter`.
338 "selector": "typeParameter",
/third_party/typescript_eslint/packages/typescript-estree/src/
Dconvert.ts375 params: typeParameters.map(typeParameter =>
376 this.convertType(typeParameter),
2274 typeParameter: this.convertType(node.typeParameter),
2638 typeParameter: this.convertType(node.typeParameter),
/third_party/typescript_eslint/packages/eslint-plugin/tests/rules/
Dnaming-convention.test.ts615 selector: 'typeParameter',

12