Class: TreeHaver::NativeProviderMetadata
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::NativeProviderMetadata
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#dialect ⇒ Object
Returns the value of attribute dialect.
-
#family ⇒ Object
Returns the value of attribute family.
-
#host_language ⇒ Object
Returns the value of attribute host_language.
-
#language_version ⇒ Object
Returns the value of attribute language_version.
-
#metadata_policy ⇒ Object
Returns the value of attribute metadata_policy.
-
#native_tree_visibility ⇒ Object
Returns the value of attribute native_tree_visibility.
-
#parse_error_behavior ⇒ Object
Returns the value of attribute parse_error_behavior.
-
#parser_name ⇒ Object
Returns the value of attribute parser_name.
-
#parser_version ⇒ Object
Returns the value of attribute parser_version.
-
#provider_id ⇒ Object
Returns the value of attribute provider_id.
-
#render_support ⇒ Object
Returns the value of attribute render_support.
-
#retains_native_tree ⇒ Object
Returns the value of attribute retains_native_tree.
-
#semantic_role_support ⇒ Object
Returns the value of attribute semantic_role_support.
-
#source_span_support ⇒ Object
Returns the value of attribute source_span_support.
-
#target_language ⇒ Object
Returns the value of attribute target_language.
Instance Method Summary collapse
Instance Attribute Details
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def diagnostics @diagnostics end |
#dialect ⇒ Object
Returns the value of attribute dialect
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def dialect @dialect end |
#family ⇒ Object
Returns the value of attribute family
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def family @family end |
#host_language ⇒ Object
Returns the value of attribute host_language
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def host_language @host_language end |
#language_version ⇒ Object
Returns the value of attribute language_version
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def language_version @language_version end |
#metadata_policy ⇒ Object
Returns the value of attribute metadata_policy
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def @metadata_policy end |
#native_tree_visibility ⇒ Object
Returns the value of attribute native_tree_visibility
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def native_tree_visibility @native_tree_visibility end |
#parse_error_behavior ⇒ Object
Returns the value of attribute parse_error_behavior
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def parse_error_behavior @parse_error_behavior end |
#parser_name ⇒ Object
Returns the value of attribute parser_name
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def parser_name @parser_name end |
#parser_version ⇒ Object
Returns the value of attribute parser_version
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def parser_version @parser_version end |
#provider_id ⇒ Object
Returns the value of attribute provider_id
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def provider_id @provider_id end |
#render_support ⇒ Object
Returns the value of attribute render_support
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def render_support @render_support end |
#retains_native_tree ⇒ Object
Returns the value of attribute retains_native_tree
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def retains_native_tree @retains_native_tree end |
#semantic_role_support ⇒ Object
Returns the value of attribute semantic_role_support
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def semantic_role_support @semantic_role_support end |
#source_span_support ⇒ Object
Returns the value of attribute source_span_support
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def source_span_support @source_span_support end |
#target_language ⇒ Object
Returns the value of attribute target_language
151 152 153 |
# File 'lib/tree_haver/contracts.rb', line 151 def target_language @target_language end |
Instance Method Details
#to_h ⇒ Object
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/tree_haver/contracts.rb', line 170 def to_h { provider_id: provider_id, family: family, host_language: host_language, target_language: target_language, parser_name: parser_name, parser_version: parser_version, language_version: language_version, dialect: dialect, parse_error_behavior: parse_error_behavior, source_span_support: source_span_support, render_support: render_support, semantic_role_support: semantic_role_support, retains_native_tree: retains_native_tree, native_tree_visibility: native_tree_visibility, metadata_policy: , diagnostics: diagnostics || [] } end |