コード例 #1
0
 explicit UnannotatedTentativeParsingAction(Parser &Self,
                                            tok::TokenKind EndKind)
     : TentativeParsingAction(Self), Self(Self), EndKind(EndKind) {
   // Stash away the old token stream, so we can restore it once the
   // tentative parse is complete.
   TentativeParsingAction Inner(Self);
   Self.ConsumeAndStoreUntil(EndKind, Toks, true, /*ConsumeFinalToken*/false);
   Inner.Revert();
 }