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
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()
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 |
---|---|
Methods
AddEdit(EditInfo)
Returns a new IncrementalParseContext representing this instance with an edit applied.
Declaration
public IncrementalParseContext AddEdit(EditInfo edit)
Parameters
Type | Name | Description |
---|---|---|
edit |
The edit to add. |
Returns
Type | Description |
---|---|
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.