| 1121 | } |
| 1122 | |
| 1123 | export interface Disconnectable { |
| 1124 | _$parent?: Disconnectable; |
| 1125 | _$disconnectableChildren?: Set<Disconnectable>; |
| 1126 | // Rather than hold connection state on instances, Disconnectables recursively |
| 1127 | // fetch the connection state from the RootPart they are connected in via |
| 1128 | // getters up the Disconnectable tree via _$parent references. This pushes the |
| 1129 | // cost of tracking the isConnected state to `AsyncDirectives`, and avoids |
| 1130 | // needing to pass all Disconnectables (parts, template instances, and |
| 1131 | // directives) their connection state each time it changes, which would be |
| 1132 | // costly for trees that have no AsyncDirectives. |
| 1133 | _$isConnected: boolean; |
| 1134 | } |
| 1135 | |
| 1136 | function resolveDirective( |
| 1137 | part: ChildPart | AttributePart | ElementPart, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…