reqlanOverviewIdeasFilesCode filesClustersAttributesGraphPrint

Printable idea sheet

file_reference

reqlan rq/reference_types.rq:84

Katz 0.211

Outbound reference to a file, folder, or symbol — not only `.rq`.
Syntax: reference_file ( bracketed quoted path, optional `L#` / symbol path ).
Index edge kind `file_reference`. Resolve: file-reference-resolve.ts; extract: extract.rs.
Editor links: file_references.
Inbound file-reference CodeLens at the top of the target file:
file_inbound_code_lens.
Non- `.rq` targets and inbound comment traffic: referenced_files.
Markdown `label(target)` also stores this edge kind — see link_reference.
Quoted body text is not this kind: reference_edgecase.

implementation
file-reference-resolve.ts, extract.rs, types.ts, reqlan.langium, reqlan-file-link-resolver.ts
status
done
tests
file-reference-resolve.test.ts, linking.test.ts:empty file references produce document links and warning diagnostics, linking.test.ts:folder file references resolve without reading the directory as a file, references.test.ts:finds embedded file references in @tests lists

Interactive page: file_reference