(nativeNode: any)
| 722 | * @publicApi |
| 723 | */ |
| 724 | export function getDebugNode(nativeNode: any): DebugNode | null { |
| 725 | if (nativeNode instanceof Node) { |
| 726 | if (!nativeNode.hasOwnProperty(NG_DEBUG_PROPERTY)) { |
| 727 | (nativeNode as any)[NG_DEBUG_PROPERTY] = |
| 728 | nativeNode.nodeType == Node.ELEMENT_NODE |
| 729 | ? new DebugElement(nativeNode as Element) |
| 730 | : new DebugNode(nativeNode); |
| 731 | } |
| 732 | return (nativeNode as any)[NG_DEBUG_PROPERTY]; |
| 733 | } |
| 734 | return null; |
| 735 | } |
| 736 | |
| 737 | export function getAllDebugNodes(): DebugNode[] { |
| 738 | return Array.from(_nativeNodeToDebugNode.values()); |
no outgoing calls
no test coverage detected
searching dependent graphs…