Skip to content

Commit b3ea537

Browse files
committed
Swift: switch to python db schema
1 parent e4731fd commit b3ea537

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

swift/schema.py

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,12 @@ class FloatLiteralExpr(NumberLiteralExpr):
643643
class IntegerLiteralExpr(NumberLiteralExpr):
644644
string_value: string
645645

646+
class PackExpr(Expr):
647+
pass
648+
649+
class ReifyPackExpr(ImplicitConversionExpr):
650+
pass
651+
646652
class AnyPattern(Pattern):
647653
pass
648654

@@ -685,7 +691,7 @@ class CaseLabelItem(AstNode):
685691
guard: optional[Expr] | child
686692

687693
@group("stmt")
688-
class ConditionElement(Locatable):
694+
class ConditionElement(AstNode):
689695
boolean: optional[Expr] | child
690696
pattern: optional[Pattern] | child
691697
initializer: optional[Expr] | child
@@ -941,10 +947,6 @@ class DictionaryType(SyntaxSugarType):
941947
key_type: Type
942948
value_type: Type
943949

944-
class NestedArchetypeType(ArchetypeType):
945-
parent: ArchetypeType
946-
associated_type_declaration: AssociatedTypeDecl
947-
948950
class NominalType(NominalOrBoundGenericNominalType):
949951
pass
950952

@@ -992,3 +994,12 @@ class StructType(NominalType):
992994

993995
class VariadicSequenceType(UnarySyntaxSugarType):
994996
pass
997+
998+
class PackType(Type):
999+
pass
1000+
1001+
class PackExpansionType(Type):
1002+
pass
1003+
1004+
class ParameterizedProtocolType(Type):
1005+
pass

0 commit comments

Comments
 (0)