Class: Ast::Merge::SourceTextNormalizedMatchingReport

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge.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



508
509
510
# File 'lib/ast/merge.rb', line 508

def diagnostics
  @diagnostics
end

#from_revisionObject

Returns the value of attribute from_revision

Returns:

  • (Object)

    the current value of from_revision



508
509
510
# File 'lib/ast/merge.rb', line 508

def from_revision
  @from_revision
end

#leaf_kindsObject

Returns the value of attribute leaf_kinds

Returns:

  • (Object)

    the current value of leaf_kinds



508
509
510
# File 'lib/ast/merge.rb', line 508

def leaf_kinds
  @leaf_kinds
end

#matchesObject

Returns the value of attribute matches

Returns:

  • (Object)

    the current value of matches



508
509
510
# File 'lib/ast/merge.rb', line 508

def matches
  @matches
end

#matching_idObject

Returns the value of attribute matching_id

Returns:

  • (Object)

    the current value of matching_id



508
509
510
# File 'lib/ast/merge.rb', line 508

def matching_id
  @matching_id
end

#normalizationObject

Returns the value of attribute normalization

Returns:

  • (Object)

    the current value of normalization



508
509
510
# File 'lib/ast/merge.rb', line 508

def normalization
  @normalization
end

#strategyObject

Returns the value of attribute strategy

Returns:

  • (Object)

    the current value of strategy



508
509
510
# File 'lib/ast/merge.rb', line 508

def strategy
  @strategy
end

#to_revisionObject

Returns the value of attribute to_revision

Returns:

  • (Object)

    the current value of to_revision



508
509
510
# File 'lib/ast/merge.rb', line 508

def to_revision
  @to_revision
end

#unmatched_fromObject

Returns the value of attribute unmatched_from

Returns:

  • (Object)

    the current value of unmatched_from



508
509
510
# File 'lib/ast/merge.rb', line 508

def unmatched_from
  @unmatched_from
end

#unmatched_toObject

Returns the value of attribute unmatched_to

Returns:

  • (Object)

    the current value of unmatched_to



508
509
510
# File 'lib/ast/merge.rb', line 508

def unmatched_to
  @unmatched_to
end

Instance Method Details

#to_hObject



510
511
512
513
514
515
516
517
518
519
520
521
522
523
# File 'lib/ast/merge.rb', line 510

def to_h
  {
    matching_id: matching_id,
    strategy: strategy,
    from_revision: from_revision,
    to_revision: to_revision,
    normalization: normalization || [],
    leaf_kinds: leaf_kinds || [],
    matches: (matches || []).map(&:to_h),
    unmatched_from: unmatched_from || [],
    unmatched_to: unmatched_to || [],
    diagnostics: diagnostics || []
  }
end