summaryrefslogtreecommitdiff
path: root/src/syntax
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-07 14:30:50 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-07 14:43:13 +0100
commit0a41844cc4e645e87fe48aa31ed3a4fd40a6ab11 (patch)
treec7cac97079491c8a11afae1211d7a80415fe64ef /src/syntax
parentefd1853d069fbd1476e82d015da4d0d04cfaccc0 (diff)
Selectors
Diffstat (limited to 'src/syntax')
-rw-r--r--src/syntax/ast.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs
index 1b0e8985..547545c7 100644
--- a/src/syntax/ast.rs
+++ b/src/syntax/ast.rs
@@ -1358,8 +1358,8 @@ node! {
}
impl ShowRule {
- /// The pattern that this rule matches.
- pub fn pattern(&self) -> Option<Expr> {
+ /// Defines which nodes the show rule applies to.
+ pub fn selector(&self) -> Option<Expr> {
self.0
.children()
.rev()