Build one item, deriving its id from what it points at rather than from its wording.
(
category: ChecklistCategory,
label: string,
targetQualifiedName: string | undefined,
target: SymbolRef | undefined
)
| 140 | |
| 141 | /** Build one item, deriving its id from what it points at rather than from its wording. */ |
| 142 | function item( |
| 143 | category: ChecklistCategory, |
| 144 | label: string, |
| 145 | targetQualifiedName: string | undefined, |
| 146 | target: SymbolRef | undefined |
| 147 | ): ChecklistItem { |
| 148 | return { |
| 149 | id: checklistItemId(category, targetQualifiedName ?? label), |
| 150 | category, |
| 151 | label, |
| 152 | target, |
| 153 | done: false |
| 154 | }; |
| 155 | } |
| 156 | |
| 157 | /** |
| 158 | * A navigable reference to one line of one file. |
no test coverage detected