lib/lrama/grammar/rule_builder.rb in lrama-0.6.10 vs lib/lrama/grammar/rule_builder.rb in lrama-0.6.11
- old
+ new
@@ -65,10 +65,10 @@
def has_inline_rules?
rhs.any? { |token| @parameterizing_rule_resolver.find_inline(token) }
end
def resolve_inline_rules
- resolved_builders = []
+ resolved_builders = [] #: Array[RuleBuilder]
rhs.each_with_index do |token, i|
if (inline_rule = @parameterizing_rule_resolver.find_inline(token))
inline_rule.rhs_list.each do |inline_rhs|
rule_builder = RuleBuilder.new(@rule_counter, @midrule_action_counter, @parameterizing_rule_resolver, lhs_tag: lhs_tag)
if token.is_a?(Lexer::Token::InstantiateRule)