Pidgin

Class IncrementalParseContext

Represents the context for an incremental parse operation, tracking the list of edits applied to the input and the cache of previous parse results.

Inheritance
  • object
  • IncrementalParseContext
Inherited Members
Declaration
public class IncrementalParseContext

Properties

Edits

Gets the list of edits that have been applied to the input.

Declaration
public ImmutableList<EditInfo> Edits { get; }
Property Value
Type Description

ImmutableList<EditInfo>

Methods

AddEdit(EditInfo)

Returns a new IncrementalParseContext representing this instance with an edit applied.

Declaration
public IncrementalParseContext AddEdit(EditInfo edit)
Parameters
Type Name Description

EditInfo

edit

The edit to add.

Returns
Type Description

IncrementalParseContext

A new IncrementalParseContext with the edit applied.

Remarks

It is your responsibility to keep the input stream in sync with the EditInfos provided to this method.