Rust: introduce PathExprBase class

This commit is contained in:
Arthur Baars
2024-10-23 18:25:55 +02:00
parent 2b65e78674
commit ca469f6d5c
18 changed files with 299 additions and 145 deletions

View File

@@ -101,7 +101,13 @@ class _:
"""
@annotate(PathExpr)
class PathExprBase(Expr):
"""
A path expression or a variable access in a formatting template. See `PathExpr` and `FormatTemplateVariableAccess` for further details.
"""
@annotate(PathExpr, replace_bases={Expr: PathExprBase})
class _:
"""
A path expression. For example:
@@ -1758,7 +1764,7 @@ class _:
@qltest.skip
@synth.on_arguments(parent="FormatArgsExpr", index=int, kind=int)
class FormatTemplateVariableAccess(Expr):
class FormatTemplateVariableAccess(PathExprBase):
pass