Class: TreeSitter::QueryMatch

Inherits:
Object
  • Object
show all
Defined in:
ext/tree_sitter/query_match.c

Instance Method Summary collapse

Instance Method Details

#inspectObject

Class methods



25
26
27
28
29
30
# File 'ext/tree_sitter/query_match.c', line 25

static VALUE query_match_inspect(VALUE self) {
  TSQueryMatch query_match = SELF;
  return rb_sprintf("{id=%d, pattern_inex=%d, capture_count=%d}",
                    query_match.id, query_match.pattern_index,
                    query_match.capture_count);
}

#to_sObject



25
26
27
28
29
30
# File 'ext/tree_sitter/query_match.c', line 25

static VALUE query_match_inspect(VALUE self) {
  TSQueryMatch query_match = SELF;
  return rb_sprintf("{id=%d, pattern_inex=%d, capture_count=%d}",
                    query_match.id, query_match.pattern_index,
                    query_match.capture_count);
}