Home
last modified time | relevance | path

Searched refs:valueDeclaration (Results 1 – 25 of 43) sorted by relevance

12

/third_party/typescript_eslint/packages/eslint-plugin/src/rules/
Dunbound-method.ts106 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/
DfixPropertyOverrideAccessor.ts46 if (!baseProp || !baseProp.valueDeclaration) return [];
48 startPosition = baseProp.valueDeclaration.pos;
49 endPosition = baseProp.valueDeclaration.end;
50 file = getSourceFileOfNode(baseProp.valueDeclaration);
DfixClassIncorrectlyImplementsInterface.ts37 …return !symbol.valueDeclaration || !(getEffectiveModifierFlags(symbol.valueDeclaration) & Modifier…
DconvertFunctionToEs6Class.ts24 const ctorDeclaration = ctorSymbol.valueDeclaration;
51 changes.delete(sourceFile, member.valueDeclaration.parent);
120 … const memberDeclaration = symbol.valueDeclaration as AccessExpression | ObjectLiteralExpression;
DconvertConstToLet.ts22 return symbol.valueDeclaration.parent.parent as VariableStatement;
DinferFromUsage.ts141 …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);
DfixAddVoidToPromise.ts30 const decl = symbol?.valueDeclaration;
DfixSpelling.ts89 const valDecl = suggestedSymbol.valueDeclaration;
/third_party/typescript/src/services/
DgoToDefinition.ts69 … const shorthandSymbol = typeChecker.getShorthandAssignmentValueSymbol(symbol.valueDeclaration);
177valueDeclaration && type.symbol && isVariableDeclaration(symbol.valueDeclaration) && symbol.valueD…
262 …ions, d => d !== declarationNode && (!isAssignmentDeclaration(d) || d === symbol.valueDeclaration))
DcallHierarchy.ts171 …if (symbol && symbol.valueDeclaration && isFunctionLikeDeclaration(symbol.valueDeclaration) && sym…
172 return symbol.valueDeclaration;
264 if (symbol.valueDeclaration) {
266 location = symbol.valueDeclaration;
DfindAllReferences.ts268 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 …]
Dclassifier2020.ts105 const decl = symbol.valueDeclaration;
165 let decl = symbol.valueDeclaration || symbol.declarations && symbol.declarations[0];
Dcompletions.ts1396 …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…
DsymbolDisplay.ts52 … else if (symbol.valueDeclaration && isVarConst(symbol.valueDeclaration as VariableDeclaration)) {
195 …rent) || isTaggedTemplateExpression(location.parent)) && isFunctionLike(symbol.valueDeclaration)) {
DimportTracker.ts360 const searchSourceFile = searchModuleSymbol.valueDeclaration;
583 const decl = importedSymbol.valueDeclaration;
/third_party/typescript/src/compiler/
Dchecker.ts1196 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 …]
Dbinder.ts2594 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;
DmoduleSpecifiers.ts105 …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/
DextractType.ts171 …ainsSkipTrivia(statement, symbol.valueDeclaration, file) && !rangeContainsSkipTrivia(selection, sy…
/third_party/typescript/src/compiler/transformers/module/
Dsystem.ts1864 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/
Dtsc.js8840 … 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 …]
DtypingsInstaller.js11875 … 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 …]
Dtsserverlibrary.js12080 … 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 …]
Dtypescript.js12080 … 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 …]
Dtsserver.js11886 … 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 …]

12