librustc: Make a.b()
always a method call. r=nmatsakis
This commit is contained in:
parent
54ae377ec2
commit
f34833abfc
24 changed files with 413 additions and 97 deletions
|
@ -6,9 +6,13 @@ use ast_util::operator_prec;
|
|||
|
||||
fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool {
|
||||
match e.node {
|
||||
ast::expr_if(*) | ast::expr_match(*) | ast::expr_block(_)
|
||||
| ast::expr_while(*) | ast::expr_loop(*)
|
||||
| ast::expr_call(_, _, true) => false,
|
||||
ast::expr_if(*)
|
||||
| ast::expr_match(*)
|
||||
| ast::expr_block(_)
|
||||
| ast::expr_while(*)
|
||||
| ast::expr_loop(*)
|
||||
| ast::expr_call(_, _, true)
|
||||
| ast::expr_method_call(_, _, _, _, true) => false,
|
||||
_ => true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue