rustc_parse::parser

Module pat

Source

Enumsยง

  • Whether or not to recover a a, b when parsing patterns as (a, b) or that and a | b.
  • EatOrResult ๐Ÿ”’
    The result of eat_or_separator. We want to distinguish which case we are in to avoid emitting duplicate diagnostics.
  • The syntax location of a given pattern. Used for diagnostics.
  • Whether or not to recover a : when parsing patterns that were meant to be paths.
  • Whether or not to recover a , when parsing or-patterns.

Constantsยง