gh-138257: Fix internal RuleCollectorVisitor attribute name (#138208)

The internal `RuleCollectorVisitor` class had an attribute named "rulses"
instead of "rules" that other `GrammarVisitor` subclasses define.
This commit is contained in:
chemelnucfin 2025-08-30 02:28:44 -07:00 committed by GitHub
parent 5c6937ad20
commit 11217a883d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,7 +45,7 @@ class RuleCollectorVisitor(GrammarVisitor):
"""Visitor that invokes a provided callmaker visitor with just the NamedItem nodes"""
def __init__(self, rules: Dict[str, Rule], callmakervisitor: GrammarVisitor) -> None:
self.rulses = rules
self.rules = rules
self.callmaker = callmakervisitor
def visit_Rule(self, rule: Rule) -> None: