Module rustc_ast::util::classify

source ·
Expand description

Routines the parser and pretty-printer use to classify AST nodes.

Functions§

  • This classification determines whether various syntactic positions break out of parsing the current expression (true) or continue parsing more of the same expression (false).
  • Does this expression require a semicolon to be treated as a statement?
  • If an expression ends with }, returns the innermost expression ending in the }