TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>.Required 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.
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the expected token is required.
protected internal bool Required (TSymbolType expected, bool errorIfNotFound, string errorBase);
member this.Required : 'SymbolType * bool * string -> bool
Protected Friend Function Required (expected As TSymbolType, errorIfNotFound As Boolean, errorBase As String) As Boolean
Parameters
- expected
- TSymbolType
The expected token.
- errorIfNotFound
- Boolean
true to display an error if not found; otherwise, false.
- errorBase
- String
The error base.
Returns
true if the expected token is required; otherwise, false.