TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>.PutBack Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PutBack(IEnumerable<TSymbol>) |
Put the specified symbols back in the input stream. The provided list MUST be in the ORDER THE SYMBOLS WERE READ. The list WILL be reversed and the Putback(TSymbol) will be called on each item. |
PutBack(TSymbol) |
PutBack(IEnumerable<TSymbol>)
Put the specified symbols back in the input stream. The provided list MUST be in the ORDER THE SYMBOLS WERE READ. The list WILL be reversed and the Putback(TSymbol) will be called on each item.
protected public:
void PutBack(System::Collections::Generic::IEnumerable<TSymbol> ^ symbols);
protected internal void PutBack (System.Collections.Generic.IEnumerable<TSymbol> symbols);
member this.PutBack : seq<'Symbol (requires 'Symbol :> Microsoft.AspNetCore.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType>)> -> unit
Protected Friend Sub PutBack (symbols As IEnumerable(Of TSymbol))
Parameters
- symbols
- IEnumerable<TSymbol>
Remarks
If a document contains symbols: a, b, c, d, e, f and AcceptWhile or AcceptUntil is used to collect until d the list returned by AcceptWhile/Until will contain: a, b, c IN THAT ORDER that is the correct format for providing to this method. The caller of this method would, in that case, want to put c, b and a back into the stream, so "a, b, c" is the CORRECT order
Applies to
PutBack(TSymbol)
protected public:
void PutBack(TSymbol symbol);
protected internal void PutBack (TSymbol symbol);
member this.PutBack : 'Symbol -> unit
Protected Friend Sub PutBack (symbol As TSymbol)
Parameters
- symbol
- TSymbol