/third_party/typescript_eslint/packages/eslint-plugin/src/rules/ |
D | unbound-method.ts | 106 const { valueDeclaration } = symbol; 107 if (!valueDeclaration) { 114 currentSourceFile !== valueDeclaration.getSourceFile() 238 const { valueDeclaration } = symbol; constant 239 if (!valueDeclaration) { 244 switch (valueDeclaration.kind) { 247 (valueDeclaration as ts.PropertyDeclaration).initializer?.kind === 255 valueDeclaration.modifiers,
|
/third_party/typescript/src/services/codefixes/ |
D | fixPropertyOverrideAccessor.ts | 46 if (!baseProp || !baseProp.valueDeclaration) return []; 48 startPosition = baseProp.valueDeclaration.pos; 49 endPosition = baseProp.valueDeclaration.end; 50 file = getSourceFileOfNode(baseProp.valueDeclaration);
|
D | fixClassIncorrectlyImplementsInterface.ts | 37 …return !symbol.valueDeclaration || !(getEffectiveModifierFlags(symbol.valueDeclaration) & Modifier…
|
D | convertFunctionToEs6Class.ts | 24 const ctorDeclaration = ctorSymbol.valueDeclaration; 51 changes.delete(sourceFile, member.valueDeclaration.parent); 120 … const memberDeclaration = symbol.valueDeclaration as AccessExpression | ObjectLiteralExpression;
|
D | convertConstToLet.ts | 22 return symbol.valueDeclaration.parent.parent as VariableStatement;
|
D | inferFromUsage.ts | 141 …if (symbol && symbol.valueDeclaration && isVariableDeclaration(symbol.valueDeclaration) && markSee… 142 …nnotateVariableDeclaration(changes, importAdder, sourceFile, symbol.valueDeclaration, program, hos… 144 return symbol.valueDeclaration; 953 props.add(p.name, checker.getTypeOfSymbolAtLocation(p, p.valueDeclaration)); 1107 … genericParamType = checker.getTypeOfSymbolAtLocation(genericParam, genericParam.valueDeclaration); 1112 …as SymbolLinks).type || checker.getTypeOfSymbolAtLocation(usageParam, usageParam.valueDeclaration);
|
D | fixAddVoidToPromise.ts | 30 const decl = symbol?.valueDeclaration;
|
D | fixSpelling.ts | 89 const valDecl = suggestedSymbol.valueDeclaration;
|
/third_party/typescript/src/services/ |
D | goToDefinition.ts | 69 … const shorthandSymbol = typeChecker.getShorthandAssignmentValueSymbol(symbol.valueDeclaration); 177 …valueDeclaration && type.symbol && isVariableDeclaration(symbol.valueDeclaration) && symbol.valueD… 262 …ions, d => d !== declarationNode && (!isAssignmentDeclaration(d) || d === symbol.valueDeclaration))
|
D | callHierarchy.ts | 171 …if (symbol && symbol.valueDeclaration && isFunctionLikeDeclaration(symbol.valueDeclaration) && sym… 172 return symbol.valueDeclaration; 264 if (symbol.valueDeclaration) { 266 location = symbol.valueDeclaration;
|
D | findAllReferences.ts | 268 return symbol.valueDeclaration && [nodeEntry(symbol.valueDeclaration)]; 801 Debug.assert(!!symbol.valueDeclaration); 1235 const { declarations, flags, parent, valueDeclaration } = symbol; constant 1236 …if (valueDeclaration && (valueDeclaration.kind === SyntaxKind.FunctionExpression || valueDeclarati… 1237 return valueDeclaration; 1617 …function getReferenceForShorthandProperty({ flags, valueDeclaration }: Symbol, search: Search, sta… 1618 … const shorthandValueSymbol = state.checker.getShorthandAssignmentValueSymbol(valueDeclaration)!; 1619 const name = valueDeclaration && getNameOfDeclaration(valueDeclaration); 1705 const decl = member.valueDeclaration; 2088 …if (symbol.valueDeclaration && isParameterPropertyDeclaration(symbol.valueDeclaration, symbol.valu… [all …]
|
D | classifier2020.ts | 105 const decl = symbol.valueDeclaration; 165 let decl = symbol.valueDeclaration || symbol.declarations && symbol.declarations[0];
|
D | completions.ts | 1396 …getEtsExtendDecoratorComponentNames(local.valueDeclaration?.decorators, compilerOptions).forEach((… 1421 … if (hasEtsStylesDecoratorNames(local.valueDeclaration?.decorators, compilerOptions)) { 1435 … if (hasEtsStylesDecoratorNames(member.valueDeclaration?.decorators, compilerOptions)) { 1628 if (variableDeclaration && symbol.valueDeclaration === variableDeclaration) { 2645 …!(propertySymbol.valueDeclaration && isPrivateIdentifierPropertyDeclaration(propertySymbol.valueDe… 2704 …anguageVariant.Standard) || symbol.valueDeclaration && isPrivateIdentifierPropertyDeclaration(symb… 3005 …!!(symbol.valueDeclaration && getEffectiveModifierFlags(symbol.valueDeclaration) & ModifierFlags.S…
|
D | symbolDisplay.ts | 52 … else if (symbol.valueDeclaration && isVarConst(symbol.valueDeclaration as VariableDeclaration)) { 195 …rent) || isTaggedTemplateExpression(location.parent)) && isFunctionLike(symbol.valueDeclaration)) {
|
D | importTracker.ts | 360 const searchSourceFile = searchModuleSymbol.valueDeclaration; 583 const decl = importedSymbol.valueDeclaration;
|
/third_party/typescript/src/compiler/ |
D | checker.ts | 1196 if (symbol.valueDeclaration) result.valueDeclaration = symbol.valueDeclaration; 1229 if (source.valueDeclaration) { 1230 setValueDeclaration(target, source.valueDeclaration); 1680 …n) && functionLocation.body && result.valueDeclaration.pos >= functionLocation.body.pos && result.… 1809 !!findAncestor(result.valueDeclaration, isParameter) 2101 …n && suggestion.valueDeclaration && isAmbientModule(suggestion.valueDeclaration) && isGlobalScopeA… 2108 if (suggestion.valueDeclaration) { 2111 …createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestionNa… 2182 …else if (candidate.valueDeclaration && candidate.valueDeclaration.pos > associatedDeclarationForCo… 2649 const exportAssignment = exportEqualsSymbol!.valueDeclaration; [all …]
|
D | binder.ts | 2594 if (isThisInitializedDeclaration(symbol?.valueDeclaration)) { 2954 if (constructorSymbol && constructorSymbol.valueDeclaration) { 2964 … addDeclarationToSymbol(constructorSymbol, constructorSymbol.valueDeclaration, SymbolFlags.Class); 3036 if (namespaceSymbol && namespaceSymbol.valueDeclaration) { 3038 … addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, SymbolFlags.Class); 3127 if (containerIsClass && namespaceSymbol && namespaceSymbol.valueDeclaration) { 3128 … addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, SymbolFlags.Class); 3205 const node = symbol.valueDeclaration; 3535 …if (!!symbol && !!symbol.valueDeclaration && isVariableDeclaration(symbol.valueDeclaration) && !!s… 3536 const init = symbol.valueDeclaration.initializer;
|
D | moduleSpecifiers.ts | 105 …const moduleSourceFile = getSourceFileOfNode(moduleSymbol.valueDeclaration || getNonAugmentationDe… 414 …Namespace.parent.parent.symbol.exports?.get("export=" as __String)?.valueDeclaration as ExportAssi…
|
/third_party/typescript/src/services/refactors/ |
D | extractType.ts | 171 …ainsSkipTrivia(statement, symbol.valueDeclaration, file) && !rangeContainsSkipTrivia(selection, sy…
|
/third_party/typescript/src/compiler/transformers/module/ |
D | system.ts | 1864 const valueDeclaration = resolver.getReferencedImportDeclaration(name) constant 1867 if (valueDeclaration) { 1870 … exportedNames = append(exportedNames, factory.getDeclarationName(valueDeclaration)); 1873 …nge(exportedNames, moduleInfo && moduleInfo.exportedBindings[getOriginalNodeId(valueDeclaration)]);
|
/third_party/typescript/lib/ |
D | tsc.js | 8840 … if (symbol.valueDeclaration && isPrivateIdentifierPropertyDeclaration(symbol.valueDeclaration)) { 8841 return idText(symbol.valueDeclaration.name); 10673 return isShorthandAmbientModule(moduleSymbol.valueDeclaration); 12126 var valueDeclaration = symbol.valueDeclaration; 12127 if (!valueDeclaration || 12128 !(node.flags & 8388608 && !(valueDeclaration.flags & 8388608)) && 12129 (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || 12130 … (valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration))) { 12131 symbol.valueDeclaration = node; 12136 if (!symbol || !symbol.valueDeclaration) { [all …]
|
D | typingsInstaller.js | 11875 … if (symbol.valueDeclaration && isPrivateIdentifierPropertyDeclaration(symbol.valueDeclaration)) { 11876 return idText(symbol.valueDeclaration.name); 14041 return isShorthandAmbientModule(moduleSymbol.valueDeclaration); 15643 var valueDeclaration = symbol.valueDeclaration; 15644 if (!valueDeclaration || 15645 … !(node.flags & 8388608 /* Ambient */ && !(valueDeclaration.flags & 8388608 /* Ambient */)) && 15646 (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || 15647 … (valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration))) { 15649 symbol.valueDeclaration = node; 15654 if (!symbol || !symbol.valueDeclaration) { [all …]
|
D | tsserverlibrary.js | 12080 … if (symbol.valueDeclaration && isPrivateIdentifierPropertyDeclaration(symbol.valueDeclaration)) { 12081 return idText(symbol.valueDeclaration.name); 14246 return isShorthandAmbientModule(moduleSymbol.valueDeclaration); 15848 var valueDeclaration = symbol.valueDeclaration; 15849 if (!valueDeclaration || 15850 … !(node.flags & 8388608 /* Ambient */ && !(valueDeclaration.flags & 8388608 /* Ambient */)) && 15851 (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || 15852 … (valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration))) { 15854 symbol.valueDeclaration = node; 15859 if (!symbol || !symbol.valueDeclaration) { [all …]
|
D | typescript.js | 12080 … if (symbol.valueDeclaration && isPrivateIdentifierPropertyDeclaration(symbol.valueDeclaration)) { 12081 return idText(symbol.valueDeclaration.name); 14246 return isShorthandAmbientModule(moduleSymbol.valueDeclaration); 15848 var valueDeclaration = symbol.valueDeclaration; 15849 if (!valueDeclaration || 15850 … !(node.flags & 8388608 /* Ambient */ && !(valueDeclaration.flags & 8388608 /* Ambient */)) && 15851 (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || 15852 … (valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration))) { 15854 symbol.valueDeclaration = node; 15859 if (!symbol || !symbol.valueDeclaration) { [all …]
|
D | tsserver.js | 11886 … if (symbol.valueDeclaration && isPrivateIdentifierPropertyDeclaration(symbol.valueDeclaration)) { 11887 return idText(symbol.valueDeclaration.name); 14052 return isShorthandAmbientModule(moduleSymbol.valueDeclaration); 15654 var valueDeclaration = symbol.valueDeclaration; 15655 if (!valueDeclaration || 15656 … !(node.flags & 8388608 /* Ambient */ && !(valueDeclaration.flags & 8388608 /* Ambient */)) && 15657 (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || 15658 … (valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration))) { 15660 symbol.valueDeclaration = node; 15665 if (!symbol || !symbol.valueDeclaration) { [all …]
|