1
0

FormulaBuilder now recognizes qualified quantity identifiers

This commit is contained in:
cryptogopher
2020-06-06 15:58:12 +02:00
parent 6785090045
commit 74c863c73a
2 changed files with 16 additions and 2 deletions

View File

@@ -110,7 +110,12 @@ module BodyTracking
case left[0]
when :bt_quantity
if @quantity_methods[left[1]].include?(right[1])
case
when dot == :'::'
token = "#{left[1]}#{dot}#{right[1]}"
@identifiers << token
[:bt_quantity, token]
when @quantity_methods[left[1]].include?(right[1])
part_index = @parts.length
if @quantity_methods.has_key?(left[1])
[:bt_numeric_method_call,