C# Class Microsoft.R.Editor.Outline.ROutlineRegionBuilder

Code outline region builder. Runs asynchronously but starts on next idle slot after the most recent tree change.
Inheritance: Microsoft.Languages.Editor.Outline.OutlineRegionBuilder, IAstVisitor
Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Private Properties

Свойство Type Description
OnDocumentClosing void
OnEditorTreeClosing void
OnTreeUpdateCompleted void
OutlineNode bool
OutlineRange bool
OutlineSections void

Méthodes publiques

Méthode Description
BuildRegions ( OutlineRegionCollection newRegions ) : bool
ROutlineRegionBuilder ( IREditorDocument document, IEditorShell shell ) : System
Visit ( IAstNode node, object param ) : bool

Méthodes protégées

Méthode Description
CompareRegions ( OutlineRegionCollection newRegions, OutlineRegionCollection oldRegions, int upperBound ) : ITextRange
Dispose ( bool disposing ) : void
MainThreadAction ( object backgroundProcessingResult ) : void
OnTextBufferChanged ( object sender, TextContentChangedEventArgs e ) : void

Private Methods

Méthode Description
OnDocumentClosing ( object sender, EventArgs e ) : void
OnEditorTreeClosing ( object sender, EventArgs e ) : void
OnTreeUpdateCompleted ( object sender, TreeUpdatedEventArgs e ) : void
OutlineNode ( IAstNode node, int &startLineNumber, int &endLineNumber ) : bool

Determines if particular AST node produces collapsible region

OutlineRange ( ITextSnapshot snapshot, ITextRange range, int &startLineNumber, int &endLineNumber ) : bool

Determines if range is large enough to be outlined

OutlineSections ( AstRoot ast, OutliningContext context ) : void

Outlines comments that define sections such as # NAME ---

Method Details

BuildRegions() public méthode

public BuildRegions ( OutlineRegionCollection newRegions ) : bool
newRegions OutlineRegionCollection
Résultat bool

CompareRegions() protected méthode

protected CompareRegions ( OutlineRegionCollection newRegions, OutlineRegionCollection oldRegions, int upperBound ) : ITextRange
newRegions OutlineRegionCollection
oldRegions OutlineRegionCollection
upperBound int
Résultat ITextRange

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

MainThreadAction() protected méthode

protected MainThreadAction ( object backgroundProcessingResult ) : void
backgroundProcessingResult object
Résultat void

OnTextBufferChanged() protected méthode

protected OnTextBufferChanged ( object sender, TextContentChangedEventArgs e ) : void
sender object
e TextContentChangedEventArgs
Résultat void

ROutlineRegionBuilder() public méthode

public ROutlineRegionBuilder ( IREditorDocument document, IEditorShell shell ) : System
document IREditorDocument
shell IEditorShell
Résultat System

Visit() public méthode

public Visit ( IAstNode node, object param ) : bool
node IAstNode
param object
Résultat bool