refactor(ir): drop the dead call-statement representation
The pre-RFC link-form block-quote call was removed by RFC-LANG-0002, but the IR still carried Stmt::Call, CallSite and CallTarget with matching branches in the runtime, infer, call validation, loader, analysis projection and JSON output. No mapper produces that variant any more, so it was a second call representation that could never be reached. - remove Stmt::Call, CallSite and CallTarget from marqdo-ir - remove the runtime exec_call_site path and every exhaustive match arm - remove the 'call_site' Analysis node and its JSON helpers - state in spec/analysis-v2.md that calls are expressions; keep v1 as history with a note that call_site is not produced by the current language Verified: cargo clippy --workspace --all-targets -D warnings clean and cargo test --workspace --locked green (62 targets).
This commit is contained in:
1 parent
b38b769932
commit
361a6cc341
8 files changed
+10
-123
No files matched your search
+5
-3
@@ -87,9 +87,11 @@ The module object is unchanged from Analysis v1 except for `resources`:
|
||||
```
|
||||
|
||||
Modules are sorted by `id`; functions, units and calls keep document order and
|
||||
the v1 semantic node shapes (`assign`, `expression`, `call_site`, `branch`,
|
||||
`loop`, `return`; literals, variables, lists, records, unary/binary, member,
|
||||
index, call). `imports`, `references` and `calls` remain static facts; a
|
||||
the v1 semantic node shapes (`assign`, `expression`, `branch`, `loop`,
|
||||
`return`; literals, variables, lists, records, unary/binary, member, index,
|
||||
call). The v1 `call_site` node was retired with RFC-LANG-0002: calls are
|
||||
`call` expressions inside an `assign`/`expression`/`return`/condition body, not
|
||||
a separate statement. `imports`, `references` and `calls` remain static facts; a
|
||||
Markdown reference is not a call. `effects` remains `["unknown"]` (a
|
||||
conservative summary, not a purity proof).
|
||||
|
||||
|
||||
Reference in new issue
Block a user