mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
parse.y: should not warn op method call
* parse.y (void_expr_gen): should warn operator expression style calls only, but not method style calls. [Fix GH-1660] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d391697331
commit
af4ba5c12a
5 changed files with 12 additions and 5 deletions
3
node.h
3
node.h
|
@ -92,6 +92,8 @@ enum node_type {
|
|||
#define NODE_OP_CDECL NODE_OP_CDECL
|
||||
NODE_CALL,
|
||||
#define NODE_CALL NODE_CALL
|
||||
NODE_OPCALL,
|
||||
#define NODE_OPCALL NODE_OPCALL
|
||||
NODE_FCALL,
|
||||
#define NODE_FCALL NODE_FCALL
|
||||
NODE_VCALL,
|
||||
|
@ -418,6 +420,7 @@ typedef struct RNode {
|
|||
#define NEW_DSYM(s) NEW_NODE(NODE_DSYM,s,0,0)
|
||||
#define NEW_EVSTR(n) NEW_NODE(NODE_EVSTR,0,(n),0)
|
||||
#define NEW_CALL(r,m,a) NEW_NODE(NODE_CALL,r,m,a)
|
||||
#define NEW_OPCALL(r,m,a) NEW_NODE(NODE_OPCALL,r,m,a)
|
||||
#define NEW_FCALL(m,a) NEW_NODE(NODE_FCALL,0,m,a)
|
||||
#define NEW_VCALL(m) NEW_NODE(NODE_VCALL,0,m,0)
|
||||
#define NEW_SUPER(a) NEW_NODE(NODE_SUPER,0,0,a)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue