mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Swift: Extend the PrintAST test as well.
This commit is contained in:
@@ -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] { ... }
|
||||
|
||||
@@ -178,3 +178,7 @@ func ifConfig() {
|
||||
12
|
||||
#endif
|
||||
}
|
||||
|
||||
class B {}
|
||||
typealias A = B
|
||||
typealias C = Int?
|
||||
Reference in New Issue
Block a user