summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/types.h b/types.h
index 17e2954..2e136b4 100644
--- a/types.h
+++ b/types.h
@@ -651,7 +651,10 @@ typedef struct Expression {
BinaryOp op;
struct Expression *lhs;
struct Expression *rhs;
- Field *field; /* for . only */
+ union {
+ Field *field; /* for struct. */
+ Identifier pkg_ident; /* for Package. */
+ } dot;
} binary;
CallExpr call;
struct {