previousSibling property

TreeSitterNode? get previousSibling

Implementation

TreeSitterNode? get previousSibling {
  final context = _contexts[this];
  if (context == null || context.childIndex == 0) return null;
  return context.parent?.child(context.childIndex - 1);
}