aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/parse.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-12-06 04:11:54 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-12-06 04:11:54 +0000
commitcb0a70cac9da5235bb5e6978eb6d62e4d2c6ed7d (patch)
tree8f69bc11f0b091bc74c2bd1b72af32d81af764d5 /gcc/go/gofrontend/parse.h
parent4d901dd7357b5e4150026548449166ebd5edd48f (diff)
downloadgcc-cb0a70cac9da5235bb5e6978eb6d62e4d2c6ed7d.zip
gcc-cb0a70cac9da5235bb5e6978eb6d62e4d2c6ed7d.tar.gz
gcc-cb0a70cac9da5235bb5e6978eb6d62e4d2c6ed7d.tar.bz2
compiler: Correct test for whether go/defer arg is parenthesized.
From-SVN: r194240
Diffstat (limited to 'gcc/go/gofrontend/parse.h')
-rw-r--r--gcc/go/gofrontend/parse.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/go/gofrontend/parse.h b/gcc/go/gofrontend/parse.h
index 9743bb5..99e0eee 100644
--- a/gcc/go/gofrontend/parse.h
+++ b/gcc/go/gofrontend/parse.h
@@ -216,7 +216,7 @@ class Parse
Range_clause*, Type_switch*);
void function_decl(bool saw_nointerface);
Typed_identifier* receiver();
- Expression* operand(bool may_be_sink);
+ Expression* operand(bool may_be_sink, bool *is_parenthesized);
Expression* enclosing_var_reference(Named_object*, Named_object*,
Location);
Expression* composite_lit(Type*, int depth, Location);
@@ -224,15 +224,16 @@ class Parse
Expression* create_closure(Named_object* function, Enclosing_vars*,
Location);
Expression* primary_expr(bool may_be_sink, bool may_be_composite_lit,
- bool* is_type_switch);
+ bool* is_type_switch, bool* is_parenthesized);
Expression* selector(Expression*, bool* is_type_switch);
Expression* index(Expression*);
Expression* call(Expression*);
Expression* expression(Precedence, bool may_be_sink,
- bool may_be_composite_lit, bool* is_type_switch);
+ bool may_be_composite_lit, bool* is_type_switch,
+ bool *is_parenthesized);
bool expression_may_start_here();
Expression* unary_expr(bool may_be_sink, bool may_be_composite_lit,
- bool* is_type_switch);
+ bool* is_type_switch, bool* is_parenthesized);
Type* reassociate_chan_direction(Channel_type*, Location);
Expression* qualified_expr(Expression*, Location);
Expression* id_to_expression(const std::string&, Location);