Pidgin

Class DefaultConfiguration<TToken>

A default configuration for any token type.

Inheritance
Implements
Inherited Members
Declaration
public class DefaultConfiguration<TToken> : IConfiguration<TToken>
Type Parameters
Name Description

TToken

The token type.

Constructors

DefaultConfiguration()

A default configuration for any token type.

Declaration
public DefaultConfiguration()

Properties

ArrayPoolProvider

Always returns Instance.

Declaration
public virtual IArrayPoolProvider ArrayPoolProvider { get; }
Property Value
Type Description

IArrayPoolProvider

Instance

The shared global instance of DefaultConfiguration<TToken>.

Declaration
public static IConfiguration<TToken> Instance { get; }
Property Value
Type Description

IConfiguration<TToken>

SourcePosCalculator

Always increments the column by 1.

Declaration
public virtual Func<TToken, SourcePosDelta> SourcePosCalculator { get; }
Property Value
Type Description

Func<TToken, SourcePosDelta>

Implements

IConfiguration<TToken>

Extension Methods

Configuration.WithArrayPoolProvider<TToken>(IConfiguration<TToken>, IArrayPoolProvider)
Configuration.WithPosCalculator<TToken>(IConfiguration<TToken>, Func<TToken, SourcePosDelta>)