Class: Ast::Merge::SourceTextNormalizedMatch

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



491
492
493
# File 'lib/ast/merge.rb', line 491

def confidence
  @confidence
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



491
492
493
# File 'lib/ast/merge.rb', line 491

def diagnostics
  @diagnostics
end

#from_node_idObject

Returns the value of attribute from_node_id

Returns:

  • (Object)

    the current value of from_node_id



491
492
493
# File 'lib/ast/merge.rb', line 491

def from_node_id
  @from_node_id
end

#from_pathObject

Returns the value of attribute from_path

Returns:

  • (Object)

    the current value of from_path



491
492
493
# File 'lib/ast/merge.rb', line 491

def from_path
  @from_path
end

#from_source_textObject

Returns the value of attribute from_source_text

Returns:

  • (Object)

    the current value of from_source_text



491
492
493
# File 'lib/ast/merge.rb', line 491

def from_source_text
  @from_source_text
end

#normalized_textObject

Returns the value of attribute normalized_text

Returns:

  • (Object)

    the current value of normalized_text



491
492
493
# File 'lib/ast/merge.rb', line 491

def normalized_text
  @normalized_text
end

#to_node_idObject

Returns the value of attribute to_node_id

Returns:

  • (Object)

    the current value of to_node_id



491
492
493
# File 'lib/ast/merge.rb', line 491

def to_node_id
  @to_node_id
end

#to_pathObject

Returns the value of attribute to_path

Returns:

  • (Object)

    the current value of to_path



491
492
493
# File 'lib/ast/merge.rb', line 491

def to_path
  @to_path
end

#to_source_textObject

Returns the value of attribute to_source_text

Returns:

  • (Object)

    the current value of to_source_text



491
492
493
# File 'lib/ast/merge.rb', line 491

def to_source_text
  @to_source_text
end

Instance Method Details

#to_hObject



493
494
495
496
497
498
499
500
501
502
503
504
505
# File 'lib/ast/merge.rb', line 493

def to_h
  {
    normalized_text: normalized_text,
    from_path: from_path,
    to_path: to_path,
    from_node_id: from_node_id,
    to_node_id: to_node_id,
    from_source_text: from_source_text,
    to_source_text: to_source_text,
    confidence: confidence,
    diagnostics: diagnostics || []
  }
end