MCPcopy Index your code
hub / github.com/nodejs/node / isValueAliasDeclaration

Function isValueAliasDeclaration

test/fixtures/snapshot/typescript.js:86907–86927  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

86905 return false;
86906 }
86907 function isValueAliasDeclaration(node) {
86908 switch (node.kind) {
86909 case 265 /* SyntaxKind.ImportEqualsDeclaration */:
86910 return isAliasResolvedToValue(getSymbolOfNode(node));
86911 case 267 /* SyntaxKind.ImportClause */:
86912 case 268 /* SyntaxKind.NamespaceImport */:
86913 case 270 /* SyntaxKind.ImportSpecifier */:
86914 case 275 /* SyntaxKind.ExportSpecifier */:
86915 var symbol = getSymbolOfNode(node);
86916 return !!symbol && isAliasResolvedToValue(symbol) && !getTypeOnlyAliasDeclaration(symbol);
86917 case 272 /* SyntaxKind.ExportDeclaration */:
86918 var exportClause = node.exportClause;
86919 return !!exportClause && (ts.isNamespaceExport(exportClause) ||
86920 ts.some(exportClause.elements, isValueAliasDeclaration));
86921 case 271 /* SyntaxKind.ExportAssignment */:
86922 return node.expression && node.expression.kind === 79 /* SyntaxKind.Identifier */ ?
86923 isAliasResolvedToValue(getSymbolOfNode(node)) :
86924 true;
86925 }
86926 return false;
86927 }
86928 function isTopLevelValueImportEqualsWithEntityName(nodeIn) {
86929 var node = ts.getParseTreeNode(nodeIn, ts.isImportEqualsDeclaration);
86930 if (node === undefined || node.parent.kind !== 305 /* SyntaxKind.SourceFile */ || !ts.isInternalModuleImportEqualsDeclaration(node)) {

Callers 1

createResolverFunction · 0.85

Calls 4

isAliasResolvedToValueFunction · 0.85
getSymbolOfNodeFunction · 0.85
someMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…