Class: Semantic::AttrRef

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

Overview

The attribute reference used in the Functions.


  :node_idx .. index in the [parent, child0, child1 .. childN] array
  ;attr_idx .. attribute index in the Functions#attributes,

For example, AttrRef.new( 0, 1 ) means p._valid, AttrRef.new( 2, 0 ) means c1._text, etc.

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Object) attr_idx

Returns the value of attribute attr_idx

Returns:

  • (Object)

    the current value of attr_idx



13
14
15
# File '../lib/semantic_types.rb', line 13

def attr_idx
  @attr_idx
end

- (Object) node_idx

Returns the value of attribute node_idx

Returns:

  • (Object)

    the current value of node_idx



13
14
15
# File '../lib/semantic_types.rb', line 13

def node_idx
  @node_idx
end