Share via


RazorEditorParser.CheckForStructureChanges(TextChange) Method

Definition

Determines if a change will cause a structural change to the document and if not, applies it to the existing tree. If a structural change would occur, automatically starts a reparse.

public:
 virtual Microsoft::AspNetCore::Razor::PartialParseResult CheckForStructureChanges(Microsoft::AspNetCore::Razor::Text::TextChange change);
public virtual Microsoft.AspNetCore.Razor.PartialParseResult CheckForStructureChanges(Microsoft.AspNetCore.Razor.Text.TextChange change);
abstract member CheckForStructureChanges : Microsoft.AspNetCore.Razor.Text.TextChange -> Microsoft.AspNetCore.Razor.PartialParseResult
override this.CheckForStructureChanges : Microsoft.AspNetCore.Razor.Text.TextChange -> Microsoft.AspNetCore.Razor.PartialParseResult
Public Overridable Function CheckForStructureChanges (change As TextChange) As PartialParseResult

Parameters

change
TextChange

The change to apply to the parse tree.

Returns

A PartialParseResult value indicating the result of the incremental parse.

Remarks

NOTE: The initial incremental parsing check and actual incremental parsing (if possible) occurs on the caller's thread. However, if a full reparse is needed, this occurs on a background thread.

Applies to