Class PythonFoldingStrategy
Represents a folding strategy for python.
public class PythonFoldingStrategy : AbstractFoldingStrategy
- Inheritance
-
PythonFoldingStrategy
- Inherited Members
Methods
CreateNewFoldings(TextDocument)
Creates new foldings.
public IEnumerable<NewFolding> CreateNewFoldings(TextDocument document)
Parameters
document
TextDocumentDocument to create foldings.
Returns
- IEnumerable<NewFolding>
New foldings.
CreateNewFoldings(TextDocument, out int)
Create ICSharpCode.AvalonEdit.Folding.NewFoldings for the specified document.
public override IEnumerable<NewFolding> CreateNewFoldings(TextDocument document, out int firstErrorOffset)
Parameters
document
TextDocumentDocument for folding.
firstErrorOffset
intThe offset of the first error.
Returns
- IEnumerable<NewFolding>
The foldings.