fixed: missing box member access in assignment
This commit is contained in:
parent
119dfd7796
commit
f590e3c42e
|
@ -484,8 +484,22 @@ typedef struct Branch_t {
|
||||||
// | Statements |
|
// | Statements |
|
||||||
// '------------------------------------------------'
|
// '------------------------------------------------'
|
||||||
|
|
||||||
|
typedef enum AssignmentKind_t {
|
||||||
|
// direct access to a variable
|
||||||
|
AssignmentKindVariable,
|
||||||
|
// access to a member of a box
|
||||||
|
// can be nested such as: foo.bar.kee
|
||||||
|
AssignmentKindBoxMember
|
||||||
|
} AssignmentKind;
|
||||||
|
|
||||||
|
// Can either be a direct variable access or
|
||||||
|
// a nested box member access
|
||||||
typedef struct Assignment_t {
|
typedef struct Assignment_t {
|
||||||
Variable* variable;
|
Variable* variable;
|
||||||
|
AssignmentKind kind;
|
||||||
|
union AssignmentImplementation_t {
|
||||||
|
BoxAccess accees;
|
||||||
|
} impl;
|
||||||
Expression value;
|
Expression value;
|
||||||
AST_NODE_PTR nodePtr;
|
AST_NODE_PTR nodePtr;
|
||||||
} Assignment;
|
} Assignment;
|
||||||
|
|
Loading…
Reference in New Issue