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

Function isDeclarationNameOrImportPropertyName

test/fixtures/snapshot/typescript.js:89271–89279  ·  view source on GitHub ↗

Like 'isDeclarationName', but returns true for LHS of `import { x as y }` or `export { x as y }`.

(name)

Source from the content-addressed store, hash-verified

89269 }
89270 /** Like 'isDeclarationName', but returns true for LHS of `import { x as y }` or `export { x as y }`. */
89271 function isDeclarationNameOrImportPropertyName(name) {
89272 switch (name.parent.kind) {
89273 case 270 /* SyntaxKind.ImportSpecifier */:
89274 case 275 /* SyntaxKind.ExportSpecifier */:
89275 return ts.isIdentifier(name);
89276 default:
89277 return ts.isDeclarationName(name);
89278 }
89279 }
89280 var JsxNames;
89281 (function (JsxNames) {
89282 JsxNames.JSX = "JSX";

Callers 2

getSymbolAtLocationFunction · 0.85
getTypeOfNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…