class SyntaxTree::YARV::SeaOfNodes::Edge

The edge of a graph represents either control flow or data flow.

Constants

TYPES

Attributes

from[R]
label[R]
to[R]
type[R]

Public Class Methods

new(from, to, type, label) click to toggle source
# File lib/syntax_tree/yarv/sea_of_nodes.rb, line 75
def initialize(from, to, type, label)
  raise unless TYPES.include?(type)

  @from = from
  @to = to
  @type = type
  @label = label
end