* Gets a namespace-qualified name for use in expressions. * * @param ns The namespace identifier. * @param name The name. * @param allowComments A value indicating whether comments may be emitted for the name. * @param allowSourceMaps A value indicating w
(ns, name, allowComments, allowSourceMaps)
| 26961 | * @param allowSourceMaps A value indicating whether source maps may be emitted for the name. |
| 26962 | */ |
| 26963 | function getNamespaceMemberName(ns, name, allowComments, allowSourceMaps) { |
| 26964 | var qualifiedName = createPropertyAccessExpression(ns, ts.nodeIsSynthesized(name) ? name : cloneNode(name)); |
| 26965 | ts.setTextRange(qualifiedName, name); |
| 26966 | var emitFlags = 0; |
| 26967 | if (!allowSourceMaps) |
| 26968 | emitFlags |= 48 /* EmitFlags.NoSourceMap */; |
| 26969 | if (!allowComments) |
| 26970 | emitFlags |= 1536 /* EmitFlags.NoComments */; |
| 26971 | if (emitFlags) |
| 26972 | ts.setEmitFlags(qualifiedName, emitFlags); |
| 26973 | return qualifiedName; |
| 26974 | } |
| 26975 | /** |
| 26976 | * Gets the exported name of a declaration for use in expressions. |
| 26977 | * |
no test coverage detected