Module: SystemRDL::Evaluator::Common
- Includes:
- RaiseEvaluationError
- Included in:
- ComponentDefinition, ComponentInst, ComponentInsts, DefaultPropertyAssignment, ExplicitComponentInst, InstanceRef, InstanceRefElement, List, Literal, Operation, PostPropertyAssignment, PropRef, PropertyAssignment
- Defined in:
- lib/systemrdl/evaluator/common.rb
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#token_range ⇒ Object
readonly
Returns the value of attribute token_range.
Instance Method Summary collapse
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
14 15 16 |
# File 'lib/systemrdl/evaluator/common.rb', line 14 def component @component end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
13 14 15 |
# File 'lib/systemrdl/evaluator/common.rb', line 13 def parent @parent end |
#token_range ⇒ Object (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 |