(entry: NeighbourFact)
| 225 | } |
| 226 | |
| 227 | function sourceOfNeighbour(entry: NeighbourFact): CardSource { |
| 228 | const source: CardSource = { name: entry.name }; |
| 229 | if (entry.qualifiedName !== undefined) { |
| 230 | source.qualifiedName = entry.qualifiedName; |
| 231 | } |
| 232 | if (entry.filePath !== undefined) { |
| 233 | source.filePath = entry.filePath; |
| 234 | } |
| 235 | if (entry.line !== undefined) { |
| 236 | source.line = entry.line; |
| 237 | } |
| 238 | return source; |
| 239 | } |
| 240 | |
| 241 | /** A card without its number yet. The numbering happens after the budget cut. */ |
| 242 | interface Draft { |