diff --git a/swift/ql/lib/codeql/swift/elements/decl/ConstructorDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/ConstructorDecl.qll index 0a88ec16700..7933c7f93b2 100644 --- a/swift/ql/lib/codeql/swift/elements/decl/ConstructorDecl.qll +++ b/swift/ql/lib/codeql/swift/elements/decl/ConstructorDecl.qll @@ -1,4 +1,7 @@ private import codeql.swift.generated.decl.ConstructorDecl private import codeql.swift.elements.decl.MethodDecl +/** + * An initializer of a class, struct, enum or protocol. + */ class ConstructorDecl extends Generated::ConstructorDecl, MethodDecl { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/DestructorDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/DestructorDecl.qll index 1dfa7c4c2e3..b9e1739f31a 100644 --- a/swift/ql/lib/codeql/swift/elements/decl/DestructorDecl.qll +++ b/swift/ql/lib/codeql/swift/elements/decl/DestructorDecl.qll @@ -1,4 +1,7 @@ private import codeql.swift.generated.decl.DestructorDecl private import codeql.swift.elements.decl.MethodDecl +/** + * A deinitializer of a class. + */ class DestructorDecl extends Generated::DestructorDecl, MethodDecl { }