Browse Source
The `is_root` flag to `translate_pattern` just determines whether the `rule_term` argument is used, which begs a larger cleanup. But that cleanup is less clear if `is_root` is set anywhere aside from the call in `collect_rules`. So I wanted to get confirmation that this particular use of that flag is incorrect first. These two arguments (`is_root` and `rule_term`) are used to prevent expansion of a term as an internal extractor ("macro") if: - that term is also an internal constructor - and it's the root term on the left-hand side of the current rule - and the pattern we're currently translating has no parents. I'm not sure what it should mean to use the term you're currently defining as the root pattern on the left-hand side of an if-let in the same rule, but I don't think it should have this particular special treatment.pull/5244/head
Jamey Sharp
2 years ago
committed by
GitHub
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue