Class: TreeHaver::NativeProviderMetadata

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def diagnostics
  @diagnostics
end

#dialectObject

Returns the value of attribute dialect

Returns:

  • (Object)

    the current value of dialect



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def dialect
  @dialect
end

#familyObject

Returns the value of attribute family

Returns:

  • (Object)

    the current value of family



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def family
  @family
end

#host_languageObject

Returns the value of attribute host_language

Returns:

  • (Object)

    the current value of host_language



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def host_language
  @host_language
end

#language_versionObject

Returns the value of attribute language_version

Returns:

  • (Object)

    the current value of language_version



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def language_version
  @language_version
end

#metadata_policyObject

Returns the value of attribute metadata_policy

Returns:

  • (Object)

    the current value of metadata_policy



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def 
  @metadata_policy
end

#native_tree_visibilityObject

Returns the value of attribute native_tree_visibility

Returns:

  • (Object)

    the current value of native_tree_visibility



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def native_tree_visibility
  @native_tree_visibility
end

#parse_error_behaviorObject

Returns the value of attribute parse_error_behavior

Returns:

  • (Object)

    the current value of parse_error_behavior



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def parse_error_behavior
  @parse_error_behavior
end

#parser_nameObject

Returns the value of attribute parser_name

Returns:

  • (Object)

    the current value of parser_name



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def parser_name
  @parser_name
end

#parser_versionObject

Returns the value of attribute parser_version

Returns:

  • (Object)

    the current value of parser_version



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def parser_version
  @parser_version
end

#provider_idObject

Returns the value of attribute provider_id

Returns:

  • (Object)

    the current value of provider_id



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def provider_id
  @provider_id
end

#render_supportObject

Returns the value of attribute render_support

Returns:

  • (Object)

    the current value of render_support



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def render_support
  @render_support
end

#retains_native_treeObject

Returns the value of attribute retains_native_tree

Returns:

  • (Object)

    the current value of retains_native_tree



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def retains_native_tree
  @retains_native_tree
end

#semantic_role_supportObject

Returns the value of attribute semantic_role_support

Returns:

  • (Object)

    the current value of semantic_role_support



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def semantic_role_support
  @semantic_role_support
end

#source_span_supportObject

Returns the value of attribute source_span_support

Returns:

  • (Object)

    the current value of source_span_support



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def source_span_support
  @source_span_support
end

#target_languageObject

Returns the value of attribute target_language

Returns:

  • (Object)

    the current value of target_language



151
152
153
# File 'lib/tree_haver/contracts.rb', line 151

def target_language
  @target_language
end

Instance Method Details

#to_hObject



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