File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,15 @@ class _:
185
185
```
186
186
"""
187
187
188
+ class FunctionOrMethodCallExpr (Expr ):
189
+ """
190
+ A function or method call expression. See `CallExpr` and `MethodCallExpr` for further details.
191
+ """
192
+ arg_list : optional ["ArgList" ] | child
193
+ attrs : list ["Attr" ] | child
188
194
189
- @annotate (CallExpr )
195
+
196
+ @annotate (CallExpr , replace_bases = {Expr : FunctionOrMethodCallExpr })
190
197
class _ :
191
198
"""
192
199
A function call expression. For example:
@@ -197,9 +204,10 @@ class _:
197
204
foo(1) = 4;
198
205
```
199
206
"""
207
+ arg_list : drop
208
+ attrs : drop
200
209
201
-
202
- @annotate (MethodCallExpr )
210
+ @annotate (MethodCallExpr , replace_bases = {Expr : FunctionOrMethodCallExpr })
203
211
class _ :
204
212
"""
205
213
A method call expression. For example:
@@ -208,6 +216,8 @@ class _:
208
216
x.foo::<u32, u64>(42);
209
217
```
210
218
"""
219
+ arg_list : drop
220
+ attrs : drop
211
221
212
222
213
223
@annotate (MatchArm )
You can’t perform that action at this time.
0 commit comments