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
@@ -151,11 +151,6 @@ impl<'a> CallChecker<'a> {
|
||||
Stmt::Eval { expr: value, .. } | Stmt::Return { value, .. } => {
|
||||
self.expr(value);
|
||||
}
|
||||
Stmt::Call { call, .. } => {
|
||||
for Arg { value, .. } in &call.args {
|
||||
self.expr(value);
|
||||
}
|
||||
}
|
||||
Stmt::Branch { arms, .. } => {
|
||||
for arm in arms {
|
||||
self.expr(&arm.condition);
|
||||
|
||||
@@ -202,12 +202,6 @@ impl<'a> Analyzer<'a> {
|
||||
self.read_expr(expr, &state);
|
||||
state
|
||||
}
|
||||
Stmt::Call { call, .. } => {
|
||||
for Arg { value, .. } in &call.args {
|
||||
self.read_expr(value, &state);
|
||||
}
|
||||
state
|
||||
}
|
||||
Stmt::Return { value, .. } => {
|
||||
self.read_expr(value, &state);
|
||||
state
|
||||
|
||||
Reference in new issue
Block a user