( creationBindings: Binding[] | null, updateBindings: Binding[] | null, )
| 514 | } |
| 515 | |
| 516 | function getRootTViewTemplate( |
| 517 | creationBindings: Binding[] | null, |
| 518 | updateBindings: Binding[] | null, |
| 519 | ): ComponentTemplate<unknown> | null { |
| 520 | if (!creationBindings && !updateBindings) { |
| 521 | return null; |
| 522 | } |
| 523 | |
| 524 | return (flags) => { |
| 525 | if (flags & RenderFlags.Create && creationBindings) { |
| 526 | for (const binding of creationBindings as BindingInternal[]) { |
| 527 | binding.create!(); |
| 528 | } |
| 529 | } |
| 530 | |
| 531 | if (flags & RenderFlags.Update && updateBindings) { |
| 532 | for (const binding of updateBindings as BindingInternal[]) { |
| 533 | binding.update!(); |
| 534 | } |
| 535 | } |
| 536 | }; |
| 537 | } |
| 538 | |
| 539 | function isInputBinding(binding: Binding): boolean { |
| 540 | const kind = (binding as BindingInternal)[BINDING].kind; |
no outgoing calls
no test coverage detected
searching dependent graphs…