changed line order
This commit is contained in:
parent
ac42fdc5ca
commit
3bb8af5b3f
|
@ -8,9 +8,8 @@
|
||||||
//! just plain subroutines and they do not return any value,
|
//! just plain subroutines and they do not return any value,
|
||||||
//! so their calls are statements.
|
//! so their calls are statements.
|
||||||
|
|
||||||
use std::{fmt::Debug, hash::Hash};
|
|
||||||
|
|
||||||
use crate::variables::Value;
|
use crate::variables::Value;
|
||||||
|
use std::{fmt::Debug, hash::Hash};
|
||||||
|
|
||||||
type Span = std::ops::Range<usize>;
|
type Span = std::ops::Range<usize>;
|
||||||
|
|
||||||
|
@ -74,7 +73,10 @@ impl Assignable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn from_index(mut buf: Spanned<Expr>, index: Spanned<Expr>) -> Result<Assignable, InvalidAssignable> {
|
fn from_index(
|
||||||
|
mut buf: Spanned<Expr>,
|
||||||
|
index: Spanned<Expr>,
|
||||||
|
) -> Result<Assignable, InvalidAssignable> {
|
||||||
let mut indices = vec![index];
|
let mut indices = vec![index];
|
||||||
let ident = loop {
|
let ident = loop {
|
||||||
match buf.item {
|
match buf.item {
|
||||||
|
|
Loading…
Reference in a new issue