Class: Ast::Merge::MergeIRChange

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#change_idObject

Returns the value of attribute change_id

Returns:

  • (Object)

    the current value of change_id



150
151
152
# File 'lib/ast/merge.rb', line 150

def change_id
  @change_id
end

#class_idObject

Returns the value of attribute class_id

Returns:

  • (Object)

    the current value of class_id



150
151
152
# File 'lib/ast/merge.rb', line 150

def class_id
  @class_id
end

#content_hashObject

Returns the value of attribute content_hash

Returns:

  • (Object)

    the current value of content_hash



150
151
152
# File 'lib/ast/merge.rb', line 150

def content_hash
  @content_hash
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



150
151
152
# File 'lib/ast/merge.rb', line 150

def kind
  @kind
end

#next_sibling_idObject

Returns the value of attribute next_sibling_id

Returns:

  • (Object)

    the current value of next_sibling_id



150
151
152
# File 'lib/ast/merge.rb', line 150

def next_sibling_id
  @next_sibling_id
end

#node_idObject

Returns the value of attribute node_id

Returns:

  • (Object)

    the current value of node_id



150
151
152
# File 'lib/ast/merge.rb', line 150

def node_id
  @node_id
end

#parent_idObject

Returns the value of attribute parent_id

Returns:

  • (Object)

    the current value of parent_id



150
151
152
# File 'lib/ast/merge.rb', line 150

def parent_id
  @parent_id
end

#previous_sibling_idObject

Returns the value of attribute previous_sibling_id

Returns:

  • (Object)

    the current value of previous_sibling_id



150
151
152
# File 'lib/ast/merge.rb', line 150

def previous_sibling_id
  @previous_sibling_id
end

#sideObject

Returns the value of attribute side

Returns:

  • (Object)

    the current value of side



150
151
152
# File 'lib/ast/merge.rb', line 150

def side
  @side
end

Instance Method Details

#to_hObject



162
163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/ast/merge.rb', line 162

def to_h
  {
    change_id: change_id,
    side: side,
    kind: kind,
    node_id: node_id,
    class_id: class_id,
    parent_id: parent_id,
    previous_sibling_id: previous_sibling_id,
    next_sibling_id: next_sibling_id,
    content_hash: content_hash
  }
end