Class: JSON5::IdentifierNameNode

Inherits:
Node
  • Object
show all
Defined in:
lib/json5/document_nodes.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#end_byte, #leading_trivia, #raw_span, #source, #start_byte, #trailing_trivia, #type

Instance Method Summary collapse

Methods inherited from Node

#raw

Constructor Details

#initialize(code_units:, **attributes) ⇒ IdentifierNameNode

Returns a new instance of IdentifierNameNode.



51
52
53
54
55
# File 'lib/json5/document_nodes.rb', line 51

def initialize(code_units:, **attributes)
  @code_units = code_units
  @decoded_code_units = code_units
  super(type: :identifier_name, **attributes)
end

Instance Attribute Details

#code_unitsObject (readonly)

Returns the value of attribute code_units.



49
50
51
# File 'lib/json5/document_nodes.rb', line 49

def code_units
  @code_units
end

#decoded_code_unitsObject (readonly)

Returns the value of attribute decoded_code_units.



49
50
51
# File 'lib/json5/document_nodes.rb', line 49

def decoded_code_units
  @decoded_code_units
end