1 parent
81fcab0e3a
commit
5f66f04d90
10 files changed
+670
-17
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user