Struct endbasic_core::ast::ArrayAssignmentSpan
source · pub struct ArrayAssignmentSpan {
pub vref: VarRef,
pub vref_pos: LineCol,
pub subscripts: Vec<Expr>,
pub expr: Expr,
}
Expand description
Components of an array assignment statement.
Fields§
§vref: VarRef
Reference to the array to modify.
vref_pos: LineCol
Position of the vref
.
subscripts: Vec<Expr>
Expressions to compute the subscripts to index the array.
expr: Expr
Expression to compute the value of the modified element.
Trait Implementations§
source§impl Debug for ArrayAssignmentSpan
impl Debug for ArrayAssignmentSpan
source§impl PartialEq<ArrayAssignmentSpan> for ArrayAssignmentSpan
impl PartialEq<ArrayAssignmentSpan> for ArrayAssignmentSpan
source§fn eq(&self, other: &ArrayAssignmentSpan) -> bool
fn eq(&self, other: &ArrayAssignmentSpan) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.