TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>.ReadWhile Method

Definition

Reads a token while the condition is not reached.

protected internal System.Collections.Generic.IEnumerable<TSymbol> ReadWhile (Func<TSymbol,bool> condition);
member this.ReadWhile : Func<'Symbol, bool (requires 'Symbol :> System.Web.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType>)> -> seq<'Symbol (requires 'Symbol :> System.Web.Razor.Tokenizer.Symbols.SymbolBase<'SymbolType>)>
Protected Friend Function ReadWhile (condition As Func(Of TSymbol, Boolean)) As IEnumerable(Of TSymbol)

Parameters

condition
Func<TSymbol,Boolean>

The condition.

Returns

IEnumerable<TSymbol>

The token to read.

Applies to