* The immediate `DebugElement` children. Walk the tree by descending through `children`.
()
| 303 | * The immediate `DebugElement` children. Walk the tree by descending through `children`. |
| 304 | */ |
| 305 | get children(): DebugElement[] { |
| 306 | const nativeElement = this.nativeElement; |
| 307 | if (!nativeElement) return []; |
| 308 | const childNodes = nativeElement.children; |
| 309 | const children: DebugElement[] = []; |
| 310 | for (let i = 0; i < childNodes.length; i++) { |
| 311 | const element = childNodes[i]; |
| 312 | children.push(getDebugNode(element) as DebugElement); |
| 313 | } |
| 314 | return children; |
| 315 | } |
| 316 | |
| 317 | /** |
| 318 | * @returns the first `DebugElement` that matches the predicate at any depth in the subtree. |
nothing calls this directly
no test coverage detected