foldNodeProp top-level property

NodeProp<({int from, int to})? Function(SyntaxNode node, EditorState state)> foldNodeProp
final

This node prop is used to associate folding information with syntax node types.

Given a syntax node, it should check whether that tree is foldable and return the range that can be collapsed when it is.

Implementation

final NodeProp<({int from, int to})? Function(SyntaxNode node, EditorState state)> foldNodeProp =
    NodeProp<({int from, int to})? Function(SyntaxNode node, EditorState state)>(
  deserialize: (_) => throw UnsupportedError('Cannot deserialize foldNodeProp'),
);