Add index to Share statement.

This commit is contained in:
Stephen Chung
2022-10-25 10:05:31 +08:00
parent 6880d44900
commit 6702fe349c
5 changed files with 25 additions and 14 deletions

View File

@@ -614,7 +614,10 @@ pub enum Stmt {
/// This variant does not map to any language structure. It is currently only used only to
/// convert a normal variable into a shared variable when the variable is _captured_ by a closure.
#[cfg(not(feature = "no_closure"))]
Share(crate::ImmutableString, Position),
Share(
Box<(crate::ImmutableString, Option<NonZeroUsize>)>,
Position,
),
}
impl Default for Stmt {