refactor(core): viewDef related refactoring (#19272)

- optimize the way node flags are propagated in `viewDef()`,
- fix `elementDef()` signature to make `namespaceAndName` nullable,
- move render parent computation with the parent computation

PR Close #19272
This commit is contained in:
Victor Berchet
2017-09-18 17:28:34 -07:00
committed by Igor Minar
parent f2bad195bc
commit abceaa2f33
3 changed files with 56 additions and 45 deletions

View File

@ -55,7 +55,7 @@ export function anchorDef(
export function elementDef(
flags: NodeFlags, matchedQueriesDsl: [string | number, QueryValueType][],
ngContentIndex: number, childCount: number, namespaceAndName: string,
ngContentIndex: number, childCount: number, namespaceAndName: string | null,
fixedAttrs: [string, string][] = [],
bindings?: [BindingFlags, string, string | SecurityContext][], outputs?: ([string, string])[],
handleEvent?: ElementHandleEventFn, componentView?: ViewDefinitionFactory,