* Gets the exported name of a declaration for use in expressions. * * An exported name will *always* be prefixed with an module or namespace export modifier like * "exports." if the name points to an exported symbol. * * @param ns The namespace identifier
(ns, node, allowComments, allowSourceMaps)
| 26984 | * @param allowSourceMaps A value indicating whether source maps may be emitted for the name. |
| 26985 | */ |
| 26986 | function getExternalModuleOrNamespaceExportName(ns, node, allowComments, allowSourceMaps) { |
| 26987 | if (ns && ts.hasSyntacticModifier(node, 1 /* ModifierFlags.Export */)) { |
| 26988 | return getNamespaceMemberName(ns, getName(node), allowComments, allowSourceMaps); |
| 26989 | } |
| 26990 | return getExportName(node, allowComments, allowSourceMaps); |
| 26991 | } |
| 26992 | /** |
| 26993 | * Copies any necessary standard and custom prologue-directives into target array. |
| 26994 | * @param source origin statements array |
nothing calls this directly
no test coverage detected