| 1030 | }; |
| 1031 | nodes.push(node); |
| 1032 | const ref = (component: AngularComponentRef, layout: boolean): UnresolvedRef => ({ |
| 1033 | fromNodeId: node.id, |
| 1034 | referenceName: `${layout ? 'layout:' : ''}${component.spec === null ? component.name : `import:${component.spec}#${component.name ?? 'default'}`}`, |
| 1035 | referenceKind: 'references', |
| 1036 | line: route.line, |
| 1037 | column: 0, |
| 1038 | filePath, |
| 1039 | language: 'typescript', |
| 1040 | }); |
| 1041 | if (route.component) references.push(ref(route.component, false)); |
| 1042 | // The layouts around it: their links and buttons are on this screen too. |
| 1043 | for (const layout of route.layouts) references.push(ref(layout, true)); |