Example:
pub expr
= label_expr
| ref_expr
pub ref_expr
= name
pub label_expr
= label:name ':' @ast_inline expr
In this example, expr is decorated with the name ast_inline.
This hypothetical example would cause ref_expr to contain a field label, while label_expr will not be present in the resulting AST.
Example:
In this example,
expris decorated with the nameast_inline.This hypothetical example would cause
ref_exprto contain a fieldlabel, whilelabel_exprwill not be present in the resulting AST.