Class: FixtureFox::AstReferenceMember

Inherits:
AstMember show all
Defined in:
lib/fixture_fox/ast.rb

Instance Attribute Summary collapse

Attributes inherited from AstMember

#column, #ident

Attributes inherited from AstNode

#children, #parent, #type

Instance Method Summary collapse

Methods inherited from AstNode

#dump, #inspect

Constructor Details

#initialize(record, ident, reference) ⇒ AstReferenceMember

Returns a new instance of AstReferenceMember.



148
149
150
151
# File 'lib/fixture_fox/ast.rb', line 148

def initialize(record, ident, reference)
  super(record, ident)
  @reference = reference
end

Instance Attribute Details

#referenceObject (readonly)

Reference token



144
145
146
# File 'lib/fixture_fox/ast.rb', line 144

def reference
  @reference
end

#referenced_anchorObject

attr_accessor :referenced_node # Initialized by the analyzer



146
147
148
# File 'lib/fixture_fox/ast.rb', line 146

def referenced_anchor
  @referenced_anchor
end

Instance Method Details

#to_sObject



153
# File 'lib/fixture_fox/ast.rb', line 153

def to_s() "#{ident}: AstReferenceMember #{reference.litt}" end