MCPcopy Create free account
hub / github.com/nodejs/node / isPrivateWithinAmbient

Function isPrivateWithinAmbient

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

Source from the content-addressed store, hash-verified

80896 getTypeFromTypeNode(node);
80897 }
80898 function isPrivateWithinAmbient(node) {
80899 return (ts.hasEffectiveModifier(node, 8 /* ModifierFlags.Private */) || ts.isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 16777216 /* NodeFlags.Ambient */);
80900 }
80901 function getEffectiveDeclarationFlags(n, flagsToCheck) {
80902 var flags = ts.getCombinedModifierFlags(n);
80903 // children of classes (even ambient classes) should not be marked as ambient or export

Calls

no outgoing calls

Tested by

no test coverage detected