Skip to content

Commit 11217a8

Browse files
authored
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.
1 parent 5c6937a commit 11217a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/peg_generator/pegen/parser_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class RuleCollectorVisitor(GrammarVisitor):
4545
"""Visitor that invokes a provided callmaker visitor with just the NamedItem nodes"""
4646

4747
def __init__(self, rules: Dict[str, Rule], callmakervisitor: GrammarVisitor) -> None:
48-
self.rulses = rules
48+
self.rules = rules
4949
self.callmaker = callmakervisitor
5050

5151
def visit_Rule(self, rule: Rule) -> None:

0 commit comments

Comments
 (0)