summaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/operator.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/gofrontend/operator.h')
-rw-r--r--gcc/go/gofrontend/operator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/operator.h b/gcc/go/gofrontend/operator.h
index f3e0fd0743..e0a97d05f3 100644
--- a/gcc/go/gofrontend/operator.h
+++ b/gcc/go/gofrontend/operator.h
@@ -63,4 +63,10 @@ enum Operator
OPERATOR_RSQUARE // ]
};
+// Whether a variable expression appears in lvalue (assignment) context.
+enum Varexpr_context {
+ VE_rvalue,
+ VE_lvalue
+};
+
#endif // !defined(GO_OPERATOR_H)