Class: TreeHaver::BackendCapability
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::BackendCapability
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#backend_ref ⇒ Object
Returns the value of attribute backend_ref.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#grammar_inventory ⇒ Object
Returns the value of attribute grammar_inventory.
-
#known_fields ⇒ Object
Returns the value of attribute known_fields.
-
#known_node_kinds ⇒ Object
Returns the value of attribute known_node_kinds.
-
#language ⇒ Object
Returns the value of attribute language.
-
#language_version ⇒ Object
Returns the value of attribute language_version.
-
#native_node_access ⇒ Object
Returns the value of attribute native_node_access.
-
#normalized_tree_support ⇒ Object
Returns the value of attribute normalized_tree_support.
-
#parse_error_behavior ⇒ Object
Returns the value of attribute parse_error_behavior.
-
#parser_identity ⇒ Object
Returns the value of attribute parser_identity.
-
#render_strategies ⇒ Object
Returns the value of attribute render_strategies.
-
#semantic_role_support ⇒ Object
Returns the value of attribute semantic_role_support.
-
#source_fragment_support ⇒ Object
Returns the value of attribute source_fragment_support.
-
#source_span_support ⇒ Object
Returns the value of attribute source_span_support.
Instance Method Summary collapse
Instance Attribute Details
#backend_ref ⇒ Object
Returns the value of attribute backend_ref
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def backend_ref @backend_ref end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def diagnostics @diagnostics end |
#grammar_inventory ⇒ Object
Returns the value of attribute grammar_inventory
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def grammar_inventory @grammar_inventory end |
#known_fields ⇒ Object
Returns the value of attribute known_fields
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def known_fields @known_fields end |
#known_node_kinds ⇒ Object
Returns the value of attribute known_node_kinds
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def known_node_kinds @known_node_kinds end |
#language ⇒ Object
Returns the value of attribute language
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def language @language end |
#language_version ⇒ Object
Returns the value of attribute language_version
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def language_version @language_version end |
#native_node_access ⇒ Object
Returns the value of attribute native_node_access
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def native_node_access @native_node_access end |
#normalized_tree_support ⇒ Object
Returns the value of attribute normalized_tree_support
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def normalized_tree_support @normalized_tree_support end |
#parse_error_behavior ⇒ Object
Returns the value of attribute parse_error_behavior
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def parse_error_behavior @parse_error_behavior end |
#parser_identity ⇒ Object
Returns the value of attribute parser_identity
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def parser_identity @parser_identity end |
#render_strategies ⇒ Object
Returns the value of attribute render_strategies
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def render_strategies @render_strategies end |
#semantic_role_support ⇒ Object
Returns the value of attribute semantic_role_support
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def semantic_role_support @semantic_role_support end |
#source_fragment_support ⇒ Object
Returns the value of attribute source_fragment_support
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def source_fragment_support @source_fragment_support end |
#source_span_support ⇒ Object
Returns the value of attribute source_span_support
73 74 75 |
# File 'lib/tree_haver/contracts.rb', line 73 def source_span_support @source_span_support end |
Instance Method Details
#to_h ⇒ Object
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/tree_haver/contracts.rb', line 91 def to_h { backend_ref: backend_ref.to_h, language: language, parser_identity: parser_identity.to_h, language_version: language_version.to_h, parse_error_behavior: parse_error_behavior, source_span_support: source_span_support, source_fragment_support: source_fragment_support, render_strategies: render_strategies, semantic_role_support: semantic_role_support, normalized_tree_support: normalized_tree_support, native_node_access: native_node_access, known_node_kinds: known_node_kinds || [], known_fields: known_fields || [], grammar_inventory: grammar_inventory, diagnostics: diagnostics } end |