Swift: Extend the PrintAST test as well.

This commit is contained in:
Geoffrey White
2023-03-10 18:28:11 +00:00
parent 0c900e4b8a
commit f6e7837cb8
2 changed files with 18 additions and 0 deletions

View File

@@ -4218,6 +4218,20 @@ declarations.swift:
# 173| getElement(5): [IfConfigDecl] #if ...
# 174| getElement(6): [IntegerLiteralExpr] 9
# 175| getElement(7): [IntegerLiteralExpr] 10
# 182| [ClassDecl] B
# 182| getMember(0): [DestructorDecl] B.deinit()
# 182| InterfaceType = (B) -> () -> ()
# 182| getSelfParam(): [ParamDecl] self
# 182| Type = B
# 182| getBody(): [BraceStmt] { ... }
# 182| getMember(1): [ConstructorDecl] B.init()
# 182| InterfaceType = (B.Type) -> () -> B
# 182| getSelfParam(): [ParamDecl] self
# 182| Type = B
# 182| getBody(): [BraceStmt] { ... }
# 182| getElement(0): [ReturnStmt] return
# 183| [TypeAliasDecl] A
# 184| [TypeAliasDecl] C
expressions.swift:
# 1| [TopLevelCodeDecl] { ... }
# 1| getBody(): [BraceStmt] { ... }

View File

@@ -178,3 +178,7 @@ func ifConfig() {
12
#endif
}
class B {}
typealias A = B
typealias C = Int?