Skip to content

Commit 7459eed

Browse files
committed
Rust: Update doc comments for StmtList predicates.
1 parent ab30c78 commit 7459eed

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

rust/schema/annotations.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,14 @@ class _:
18411841
// ^^^^^^^^^
18421842
```
18431843
"""
1844-
1844+
statements: _ | doc("statements of this statement list") | desc("""
1845+
The statements of a `StmtList` do not include any tail expression, which
1846+
can be accessed with predicates such as `getTailExpr`.
1847+
""")
1848+
tail_expr: _ | doc("tail expression of this statement list") | desc("""
1849+
The tail expression is the expression at the end of a block, that
1850+
determines the block's value.
1851+
""")
18451852

18461853
@annotate(Struct, replace_bases={Item: None}) # still an Item via Adt
18471854
class _:

0 commit comments

Comments
 (0)