* Builds up an export map as directives are created, so local refs can be quickly mapped * to their directive instances.
(
directiveIdx: number,
def: DirectiveDef<any> | ComponentDef<any>,
exportsMap: {[key: string]: number} | null,
)
| 532 | * to their directive instances. |
| 533 | */ |
| 534 | function saveNameToExportMap( |
| 535 | directiveIdx: number, |
| 536 | def: DirectiveDef<any> | ComponentDef<any>, |
| 537 | exportsMap: {[key: string]: number} | null, |
| 538 | ) { |
| 539 | if (exportsMap) { |
| 540 | if (def.exportAs) { |
| 541 | for (let i = 0; i < def.exportAs.length; i++) { |
| 542 | exportsMap[def.exportAs[i]] = directiveIdx; |
| 543 | } |
| 544 | } |
| 545 | if (isComponentDef(def)) exportsMap[''] = directiveIdx; |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | /** |
| 550 | * Initializes the flags on the current node, setting all indices to the initial index, |
no test coverage detected
searching dependent graphs…