aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/expressions
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-13 16:46:43 +0100
committerAleksey Kladov <[email protected]>2018-08-13 16:46:43 +0100
commit439e0fd32eb943ad7a0be37baf9a19791840ae1e (patch)
treed9963a7dde85771d32e9b90664e4d79b808d303b /crates/libsyntax2/src/grammar/expressions
parent7d0c9cf54652c0630bf8f955fc3affb288b5e4cf (diff)
Fix some more bugs
Diffstat (limited to 'crates/libsyntax2/src/grammar/expressions')
-rw-r--r--crates/libsyntax2/src/grammar/expressions/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/grammar/expressions/mod.rs b/crates/libsyntax2/src/grammar/expressions/mod.rs
index dcbb1e2a8..30a78d0c4 100644
--- a/crates/libsyntax2/src/grammar/expressions/mod.rs
+++ b/crates/libsyntax2/src/grammar/expressions/mod.rs
@@ -264,7 +264,9 @@ fn method_call_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker {
264 p.bump(); 264 p.bump();
265 name_ref(p); 265 name_ref(p);
266 type_args::type_arg_list(p, true); 266 type_args::type_arg_list(p, true);
267 arg_list(p); 267 if p.at(L_PAREN) {
268 arg_list(p);
269 }
268 m.complete(p, METHOD_CALL_EXPR) 270 m.complete(p, METHOD_CALL_EXPR)
269} 271}
270 272