test: gate Tool v1 dispatch on frozen RC.1 and RC.2 releases

Refs #1
This commit is contained in:
cflmy committed 2026-11-24 00:06:14 +08:00
1 parent 81fcab0e3a
commit 5f66f04d90
10 files changed
+670 -17

No files matched your search

+8
View File
@@ -136,6 +136,14 @@ impl<'a, 'source> Matcher<'a, 'source> {
.is_some_and(|control| self.tree.controls[control].kind == ControlKind::Loop),
StatementKind::Break => located.jump == Some(JumpKind::Break),
StatementKind::Continue => located.jump == Some(JumpKind::Continue),
StatementKind::Expression => {
let value = &statement.value["value"];
// RC.1 could emit these bare identifiers as variable expressions.
located.ordinary
|| (located.jump.is_some()
&& value["kind"] == "variable"
&& value["name"].as_str() == Some(located.carrier.payload.trim()))
}
_ => located.ordinary,
};
let primary = index.at(statement.span).filter(eligible);