Use standard capitalisation for TokenTree variants
This commit is contained in:
parent
6a50b4d018
commit
dfb4163f83
14 changed files with 95 additions and 95 deletions
|
@ -48,8 +48,8 @@ use ast::{StmtExpr, StmtSemi, StmtMac, StructDef, StructField};
|
|||
use ast::{StructVariantKind, BiSub};
|
||||
use ast::StrStyle;
|
||||
use ast::{SelfExplicit, SelfRegion, SelfStatic, SelfValue};
|
||||
use ast::{Delimiter, TokenTree, TraitItem, TraitRef, TTDelimited, TTSequence, TTToken};
|
||||
use ast::{TTNonterminal, TupleVariantKind, Ty, Ty_, TyBot};
|
||||
use ast::{Delimiter, TokenTree, TraitItem, TraitRef, TtDelimited, TtSequence, TtToken};
|
||||
use ast::{TtNonterminal, TupleVariantKind, Ty, Ty_, TyBot};
|
||||
use ast::{TypeField, TyFixedLengthVec, TyClosure, TyProc, TyBareFn};
|
||||
use ast::{TyTypeof, TyInfer, TypeMethod};
|
||||
use ast::{TyNil, TyParam, TyParamBound, TyParen, TyPath, TyPtr, TyQPath};
|
||||
|
@ -2526,8 +2526,8 @@ impl<'a> Parser<'a> {
|
|||
/// parse a single token tree from the input.
|
||||
pub fn parse_token_tree(&mut self) -> TokenTree {
|
||||
// FIXME #6994: currently, this is too eager. It
|
||||
// parses token trees but also identifies TTSequence's
|
||||
// and TTNonterminal's; it's too early to know yet
|
||||
// parses token trees but also identifies TtSequence's
|
||||
// and TtNonterminal's; it's too early to know yet
|
||||
// whether something will be a nonterminal or a seq
|
||||
// yet.
|
||||
maybe_whole!(deref self, NtTT);
|
||||
|
@ -2568,13 +2568,13 @@ impl<'a> Parser<'a> {
|
|||
let seq = match seq {
|
||||
Spanned { node, .. } => node,
|
||||
};
|
||||
TTSequence(mk_sp(sp.lo, p.span.hi), Rc::new(seq), s, z)
|
||||
TtSequence(mk_sp(sp.lo, p.span.hi), Rc::new(seq), s, z)
|
||||
} else {
|
||||
TTNonterminal(sp, p.parse_ident())
|
||||
TtNonterminal(sp, p.parse_ident())
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
TTToken(p.span, p.bump_and_get())
|
||||
TtToken(p.span, p.bump_and_get())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2615,7 +2615,7 @@ impl<'a> Parser<'a> {
|
|||
// Expand to cover the entire delimited token tree
|
||||
let span = Span { hi: self.span.hi, ..pre_span };
|
||||
|
||||
TTDelimited(span, open, Rc::new(tts), close)
|
||||
TtDelimited(span, open, Rc::new(tts), close)
|
||||
}
|
||||
_ => parse_non_delim_tt_tok(self)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue