C# Class CoolCompiler.CoolFoldingStrategy

Allows producing foldings from a document based on braces.
Inheritance: ICSharpCode.AvalonEdit.Folding.AbstractFoldingStrategy
Mostrar archivo Open project: KvanTTT/Cool-Compiler Class Usage Examples

Public Methods

Method Description
CoolFoldingStrategy ( ) : System

Creates a new BraceFoldingStrategy.

CreateNewFoldings ( ITextSource document ) : IEnumerable

Create NewFoldings for the specified document.

CreateNewFoldings ( TextDocument document, int &firstErrorOffset ) : IEnumerable

Create NewFoldings for the specified document.

Method Details

CoolFoldingStrategy() public method

Creates a new BraceFoldingStrategy.
public CoolFoldingStrategy ( ) : System
return System

CreateNewFoldings() public method

Create NewFoldings for the specified document.
public CreateNewFoldings ( ITextSource document ) : IEnumerable
document ITextSource
return IEnumerable

CreateNewFoldings() public method

Create NewFoldings for the specified document.
public CreateNewFoldings ( TextDocument document, int &firstErrorOffset ) : IEnumerable
document ICSharpCode.AvalonEdit.Document.TextDocument
firstErrorOffset int
return IEnumerable