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

Function isEffectiveModuleDeclaration

test/fixtures/snapshot/typescript.js:15000–15002  ·  view source on GitHub ↗

* An effective module (namespace) declaration is either * 1. An actual declaration: namespace X { ... } * 2. A Javascript declaration, which is: * An identifier in a nested property access expression: Y in `X.Y.Z = { ... }`

(node)

Source from the content-addressed store, hash-verified

14998 * An identifier in a nested property access expression: Y in `X.Y.Z = { ... }`
14999 */
15000 function isEffectiveModuleDeclaration(node) {
15001 return ts.isModuleDeclaration(node) || ts.isIdentifier(node);
15002 }
15003 ts.isEffectiveModuleDeclaration = isEffectiveModuleDeclaration;
15004 /** Given a symbol for a module, checks that it is a shorthand ambient module. */
15005 function isShorthandAmbientModuleSymbol(moduleSymbol) {

Callers 1

setValueDeclarationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected