Swift: Make Callable a sub type of AstNode

This commit is contained in:
Tom Hvitved
2024-09-13 15:39:40 +02:00
parent 9250c29bd5
commit 4912ee8ab3
8 changed files with 115 additions and 114 deletions

View File

@@ -242,7 +242,7 @@ class ParamDecl(VarDecl):
has a property wrapper.
""")
class Callable(Element):
class Callable(AstNode):
name: optional[string] | doc("name of this callable") | desc("The name includes argument "
"labels of the callable, for example `myFunction(arg:)`.")
self_param: optional[ParamDecl] | child