Module: JPTGRAMMAR::SliceSelector5

Defined in:
lib/parser/jptgrammar.rb

Instance Method Summary collapse

Instance Method Details

#astObject



1808
1809
1810
1811
1812
1813
1814
# File 'lib/parser/jptgrammar.rb', line 1808

def ast
  ["slice", 
   elements[0]&.elements&.[](0)&.text_value&.to_i,
   elements[3]&.elements&.[](0)&.text_value&.to_i,
   elements[4]&.elements&.[](1)&.elements&.[](1)&.text_value&.to_i
  ]
end