Class: TreeSitter::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/tree_sitter/query.rb

Overview

Query is a wrapper around a tree-sitter query.

Instance Attribute Summary collapse

Instance Attribute Details

#capture_namesObject (readonly)

Returns the value of attribute capture_names.



8
9
10
# File 'lib/tree_sitter/query.rb', line 8

def capture_names
  @capture_names
end

#capture_quantifiersObject (readonly)

Returns the value of attribute capture_quantifiers.



9
10
11
# File 'lib/tree_sitter/query.rb', line 9

def capture_quantifiers
  @capture_quantifiers
end

#general_predicatesObject (readonly)

Returns the value of attribute general_predicates.



13
14
15
# File 'lib/tree_sitter/query.rb', line 13

def general_predicates
  @general_predicates
end

#property_predicatesObject (readonly)

Returns the value of attribute property_predicates.



11
12
13
# File 'lib/tree_sitter/query.rb', line 11

def property_predicates
  @property_predicates
end

#property_settingsObject (readonly)

Returns the value of attribute property_settings.



12
13
14
# File 'lib/tree_sitter/query.rb', line 12

def property_settings
  @property_settings
end

#text_predicatesObject (readonly)

Returns the value of attribute text_predicates.



10
11
12
# File 'lib/tree_sitter/query.rb', line 10

def text_predicates
  @text_predicates
end