We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_named_argument
is_named_param
1 parent f290467 commit 378cc98Copy full SHA for 378cc98
src/libsyntax/parse/parser.rs
@@ -954,7 +954,7 @@ impl<'a> Parser<'a> {
954
}
955
956
957
- fn is_named_argument(&self) -> bool {
+ fn is_named_param(&self) -> bool {
958
let offset = match self.token.kind {
959
token::Interpolated(ref nt) => match **nt {
960
token::NtPat(..) => return self.look_ahead(1, |t| t == &token::Colon),
@@ -993,7 +993,7 @@ impl<'a> Parser<'a> {
993
994
995
let is_name_required = is_name_required(&self.token);
996
- let (pat, ty) = if is_name_required || self.is_named_argument() {
+ let (pat, ty) = if is_name_required || self.is_named_param() {
997
debug!("parse_param_general parse_pat (is_name_required:{})", is_name_required);
998
999
let pat = self.parse_fn_param_pat()?;
0 commit comments