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



513
514
515
# File 'lib/ast/merge.rb', line 513

def confidence
  @confidence
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



513
514
515
# File 'lib/ast/merge.rb', line 513

def diagnostics
  @diagnostics
end

#from_node_idObject

Returns the value of attribute from_node_id

Returns:

  • (Object)

    the current value of from_node_id



513
514
515
# File 'lib/ast/merge.rb', line 513

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



513
514
515
# File 'lib/ast/merge.rb', line 513

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



513
514
515
# File 'lib/ast/merge.rb', line 513

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



513
514
515
# File 'lib/ast/merge.rb', line 513

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



513
514
515
# File 'lib/ast/merge.rb', line 513

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



513
514
515
# File 'lib/ast/merge.rb', line 513

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



513
514
515
# File 'lib/ast/merge.rb', line 513

def to_source_text
  @to_source_text
end

Instance Method Details

#to_hObject



515
516
517
518
519
520
521
522
523
524
525
526
527
# File 'lib/ast/merge.rb', line 515

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