({ repo, path, range }: Omit<FileReference, 'type' | 'id'>)
| 230 | } |
| 231 | |
| 232 | export const fileReferenceToString = ({ repo, path, range }: Omit<FileReference, 'type' | 'id'>) => { |
| 233 | return `${FILE_REFERENCE_PREFIX}{${repo}::${path}${range ? `:${range.startLine}-${range.endLine}` : ''}}`; |
| 234 | } |
| 235 | |
| 236 | export const createFileReference = ({ repo, path, startLine, endLine }: { repo: string, path: string, startLine?: string, endLine?: string }): FileReference => { |
| 237 | const range = startLine && endLine ? { |
no outgoing calls
no test coverage detected