class EE::UI::Doc::FoldRangeServive

#include <foldrangeservice.hpp>

class FoldRangeServive {
public:
    // construction

    FoldRangeServive(TextDocument* doc);

    // methods

    bool canFold() const;
    void findRegions();
    void clear();
    bool empty();
    std::optional<TextRange> find(Int64 docIdx);
    void addFoldRegions(std::vector<TextRange> regions);
    bool isFoldingRegionInLine(Int64 docIdx);
    void removeFoldedRegion(const TextRange& region);
    void shiftFoldingRegions(Int64 fromLine, Int64 numLines);
    void setFoldingRegions(std::vector<TextRange> regions);
    FoldRangeProvider* getProvider() const;
    bool hasProvider() const;
    void setProvider(FoldRangeProvider* provider);
    bool isEnabled() const;
    void setEnabled(bool enabled);
};