Idea detail
sensible_alias_support
reqlan rq/extension/syntax/features-syntax.rq:64
block
Summary
if an imported idea shares a name with an idea in the current file:
When the import uses an alias, the base name may be reused locally — see import_tokenisation.
Attributes
| Key | Value |
|---|---|
| subreqs | duplicate_error { should be raised if a local idea shares a name with an import binding (unaliased idea name, or the alias when present). @tests ( validating.test.ts:reports duplicate when local idea shares unaliased import binding validating.test.ts:reports duplicate when local idea shares import alias ) }, sensible_graph_resolution { the imported namespace should not be assosciated with the new idea: e.g. ```rq from "../subreqs.rq" import myidea as myideaalias myidea this a new idea. maybe it references myideaalias ``` `myidea` in the import statement should not be assosciated with the new `myidea` definition - they're totally different. @tests ( linking.test.ts:import idea reference resolves to imported file when local idea shares name validating.test.ts:allows local idea when import uses an alias ) } |
Ancestor context
No ancestor chain recorded.
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | import_tokenisation | import_tokenisation |
Initialising graph…