Table of Contents

Class PythonFoldingStrategy

Namespace
Loehnert.Lisrt.Scripting.Editor.File.Python
Assembly
Loehnert.Lisrt.Scripting.dll

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 TextDocument

Document 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 TextDocument

Document for folding.

firstErrorOffset int

The offset of the first error.

Returns

IEnumerable<NewFolding>

The foldings.