Class: KoiReferenceCompiler::KeyValue
- Inherits:
-
SyntaxNode
- Object
- SyntaxNode
- KoiReferenceCompiler::KeyValue
- Defined in:
- lib/koi-reference-compiler/node_extensions/hash_literals/key_value.rb
Instance Attribute Summary
Attributes inherited from SyntaxNode
#elements, #offset, #parent, #text_value
Instance Method Summary collapse
Methods inherited from SyntaxNode
Constructor Details
This class inherits a constructor from KoiReferenceCompiler::SyntaxNode
Instance Method Details
#compile ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/koi-reference-compiler/node_extensions/hash_literals/key_value.rb', line 4 def compile bytecode = [] bytecode.concat(self.elements[0].compile) bytecode.concat(self.elements[1].compile) bytecode << SET_KEY return bytecode end |