refactor(ivy): treate LView as the primary global state (#27282)
- rename `LViewData` to `LView` (to be consistent with `TView`) - Remove `getRenderer`, `getRendererFactory`, `getTview`, `getCurrentQueries`, PR Close #27282
This commit is contained in:
@ -59,7 +59,7 @@ export function defineComponent<T>(componentDefinition: {
|
||||
/**
|
||||
* The number of nodes, local refs, and pipes in this component template.
|
||||
*
|
||||
* Used to calculate the length of this component's LViewData array, so we
|
||||
* Used to calculate the length of this component's LView array, so we
|
||||
* can pre-fill the array and set the binding start index.
|
||||
*/
|
||||
// TODO(kara): remove queries from this count
|
||||
@ -68,7 +68,7 @@ export function defineComponent<T>(componentDefinition: {
|
||||
/**
|
||||
* The number of bindings in this component template (including pure fn bindings).
|
||||
*
|
||||
* Used to calculate the length of this component's LViewData array, so we
|
||||
* Used to calculate the length of this component's LView array, so we
|
||||
* can pre-fill the array and set the host binding start index.
|
||||
*/
|
||||
vars: number;
|
||||
@ -76,7 +76,7 @@ export function defineComponent<T>(componentDefinition: {
|
||||
/**
|
||||
* The number of host bindings (including pure fn bindings) in this component.
|
||||
*
|
||||
* Used to calculate the length of the LViewData array for the *parent* component
|
||||
* Used to calculate the length of the LView array for the *parent* component
|
||||
* of this component.
|
||||
*/
|
||||
hostVars?: number;
|
||||
@ -589,7 +589,7 @@ export const defineDirective = defineComponent as any as<T>(directiveDefinition:
|
||||
/**
|
||||
* The number of host bindings (including pure fn bindings) in this directive.
|
||||
*
|
||||
* Used to calculate the length of the LViewData array for the *parent* component
|
||||
* Used to calculate the length of the LView array for the *parent* component
|
||||
* of this directive.
|
||||
*/
|
||||
hostVars?: number;
|
||||
|
Reference in New Issue
Block a user