Printable idea sheet
import_namespace
reqlan rq/language/imports.rq:59
Katz 0.179
Namespace import syntax uses import and a quoted path.
Namespace import may include an alias using as.
A bracket reference to the alias alone — for example `context_model` — opens the imported file and links only the alias name, like an ideaset namespace.
Qualified references through the alias — for example `builder` — resolve ideas from the imported module.
A qualified reference may also name an import alias bound in that module.
Example: `analysis_runtime` when `analysis_runtime` is an import alias in the imported file.
That name is not an idea. Check does not report it as a missing idea ( check_qualified_missing_idea ).
A from-import of that alias is still a missing idea.
- tests
- linking.test.ts:resolve namespace import references to files, linking.test.ts:namespace import bracket reference links only the alias name, golden_corpus.rs:qualified_reference_to_an_import_alias_is_not_a_missing_idea, parity.rs:golden_corpus_import_alias_is_not_an_unresolved_idea
Interactive page: import_namespace