Module: SystemRDL::Evaluator::Common

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#componentObject (readonly)

Returns the value of attribute component.



14
15
16
# File 'lib/systemrdl/evaluator/common.rb', line 14

def component
  @component
end

#parentObject (readonly)

Returns the value of attribute parent.



13
14
15
# File 'lib/systemrdl/evaluator/common.rb', line 13

def parent
  @parent
end

#token_rangeObject (readonly)

Returns the value of attribute token_range.



12
13
14
# File 'lib/systemrdl/evaluator/common.rb', line 12

def token_range
  @token_range
end

Instance Method Details

#connect(parent, component) ⇒ Object



16
17
18
19
# File 'lib/systemrdl/evaluator/common.rb', line 16

def connect(parent, component)
  @parent = parent
  @component = component
end

#initialize(token_range) ⇒ Object



8
9
10
# File 'lib/systemrdl/evaluator/common.rb', line 8

def initialize(token_range)
  @token_range = token_range
end