* Determines whether a declaration is the first declaration with * the same name emitted in the current scope.
(node)
| 93594 | * the same name emitted in the current scope. |
| 93595 | */ |
| 93596 | function isFirstEmittedDeclarationInScope(node) { |
| 93597 | if (currentScopeFirstDeclarationsOfName) { |
| 93598 | var name = declaredNameInScope(node); |
| 93599 | return currentScopeFirstDeclarationsOfName.get(name) === node; |
| 93600 | } |
| 93601 | return true; |
| 93602 | } |
| 93603 | function declaredNameInScope(node) { |
| 93604 | ts.Debug.assertNode(node.name, ts.isIdentifier); |
| 93605 | return node.name.escapedText; |
no test coverage detected