@@ -141,7 +141,7 @@ class ValueDecl(Decl):
141
141
interface_type : Type
142
142
143
143
class AbstractStorageDecl (ValueDecl ):
144
- accessor_decls : list ["AccessorDecl " ] | child
144
+ accessors : list ["Accessor " ] | child
145
145
146
146
class VarDecl (AbstractStorageDecl ):
147
147
"""
@@ -234,7 +234,8 @@ class Callable(Element):
234
234
body : optional ["BraceStmt" ] | child | desc ("The body is absent within protocol declarations." )
235
235
captures : list ["CapturedDecl" ] | child
236
236
237
- class AbstractFunctionDecl (GenericContext , ValueDecl , Callable ):
237
+ @group ("decl" )
238
+ class Function (GenericContext , ValueDecl , Callable ):
238
239
pass
239
240
240
241
class EnumElementDecl (ValueDecl ):
@@ -257,13 +258,17 @@ class TypeDecl(ValueDecl):
257
258
class AbstractTypeParamDecl (TypeDecl ):
258
259
pass
259
260
260
- class ConstructorDecl (AbstractFunctionDecl ):
261
+ @group ("decl" )
262
+ class Initializer (Function ):
261
263
pass
262
264
263
- class DestructorDecl (AbstractFunctionDecl ):
265
+ @group ("decl" )
266
+ class Deinitializer (Function ):
264
267
pass
265
268
266
- class FuncDecl (AbstractFunctionDecl ):
269
+ @ql .internal
270
+ @group ("decl" )
271
+ class AccessorOrNamedFunction (Function ):
267
272
pass
268
273
269
274
class GenericTypeDecl (GenericContext , TypeDecl ):
@@ -280,7 +285,8 @@ class SubscriptDecl(AbstractStorageDecl, GenericContext):
280
285
element_type : Type
281
286
element_type : Type
282
287
283
- class AccessorDecl (FuncDecl ):
288
+ @group ("decl" )
289
+ class Accessor (AccessorOrNamedFunction ):
284
290
is_getter : predicate | doc ('this accessor is a getter' )
285
291
is_setter : predicate | doc ('this accessor is a setter' )
286
292
is_will_set : predicate | doc ('this accessor is a `willSet`, called before the property is set' )
@@ -293,7 +299,8 @@ class AccessorDecl(FuncDecl):
293
299
class AssociatedTypeDecl (AbstractTypeParamDecl ):
294
300
pass
295
301
296
- class ConcreteFuncDecl (FuncDecl ):
302
+ @group ("decl" )
303
+ class NamedFunction (AccessorOrNamedFunction ):
297
304
pass
298
305
299
306
class ConcreteVarDecl (VarDecl ):
@@ -354,7 +361,7 @@ class Argument(Locatable):
354
361
label : string
355
362
expr : Expr | child
356
363
357
- class AbstractClosureExpr (Expr , Callable ):
364
+ class ClosureExpr (Expr , Callable ):
358
365
pass
359
366
360
367
class AnyTryExpr (Expr ):
@@ -384,7 +391,7 @@ class CapturedDecl(Decl):
384
391
385
392
class CaptureListExpr (Expr ):
386
393
binding_decls : list [PatternBindingDecl ] | child
387
- closure_body : "ClosureExpr " | child
394
+ closure_body : "ExplicitClosureExpr " | child
388
395
389
396
class CollectionExpr (Expr ):
390
397
pass
@@ -482,7 +489,7 @@ class KeyPathExpr(Expr):
482
489
root : optional ["TypeRepr" ] | child
483
490
components : list [KeyPathComponent ] | child
484
491
485
- class LazyInitializerExpr (Expr ):
492
+ class LazyInitializationExpr (Expr ):
486
493
sub_expr : Expr | child
487
494
488
495
class LiteralExpr (Expr ):
@@ -500,7 +507,7 @@ class MakeTemporarilyEscapableExpr(Expr):
500
507
@qltest .skip
501
508
class ObjCSelectorExpr (Expr ):
502
509
sub_expr : Expr | child
503
- method : AbstractFunctionDecl
510
+ method : Function
504
511
505
512
class OneWayExpr (Expr ):
506
513
sub_expr : Expr | child
@@ -516,8 +523,8 @@ class OpenExistentialExpr(Expr):
516
523
class OptionalEvaluationExpr (Expr ):
517
524
sub_expr : Expr | child
518
525
519
- class OtherConstructorDeclRefExpr (Expr ):
520
- constructor_decl : ConstructorDecl
526
+ class OtherInitializerRefExpr (Expr ):
527
+ initializer : Initializer
521
528
522
529
class PropertyWrapperValuePlaceholderExpr (Expr ):
523
530
"""
@@ -527,7 +534,7 @@ class PropertyWrapperValuePlaceholderExpr(Expr):
527
534
wrapped_value : optional [Expr ]
528
535
placeholder : OpaqueValueExpr
529
536
530
- class RebindSelfInConstructorExpr (Expr ):
537
+ class RebindSelfInInitializerExpr (Expr ):
531
538
sub_expr : Expr | child
532
539
self : VarDecl
533
540
@@ -579,7 +586,7 @@ class ArrayExpr(CollectionExpr):
579
586
class ArrayToPointerExpr (ImplicitConversionExpr ):
580
587
pass
581
588
582
- class AutoClosureExpr (AbstractClosureExpr ):
589
+ class AutoClosureExpr (ClosureExpr ):
583
590
pass
584
591
585
592
class AwaitExpr (IdentityExpr ):
@@ -608,7 +615,7 @@ class CheckedCastExpr(ExplicitCastExpr):
608
615
class ClassMetatypeToObjectExpr (ImplicitConversionExpr ):
609
616
pass
610
617
611
- class ClosureExpr ( AbstractClosureExpr ):
618
+ class ExplicitClosureExpr ( ClosureExpr ):
612
619
pass
613
620
614
621
class CoerceExpr (ExplicitCastExpr ):
@@ -776,9 +783,11 @@ class BooleanLiteralExpr(BuiltinLiteralExpr):
776
783
class ConditionalCheckedCastExpr (CheckedCastExpr ):
777
784
pass
778
785
779
- class ConstructorRefCallExpr (SelfApplyExpr ):
786
+ @ql .internal
787
+ class InitializerRefCallExpr (SelfApplyExpr ):
780
788
pass
781
789
790
+ @ql .internal
782
791
class DotSyntaxCallExpr (SelfApplyExpr ):
783
792
pass
784
793
0 commit comments