(mut self, expr: QueryExpr)
| 941 | |
| 942 | impl NodeQuery { |
| 943 | /// Creates an empty query (matches all nodes). |
| 944 | pub const fn new() -> Self { |
| 945 | Self { |
| 946 | expr: None, |
| 947 | scope: QueryScope::Root, |
| 948 | } |
| 949 | } |
| 950 | |
| 951 | fn and_expr(mut self, expr: QueryExpr) -> Self { |
| 952 | self.expr = Some(match self.expr { |