mirror of
https://github.com/github/codeql.git
synced 2026-04-18 21:44:02 +02:00
Swift: init/deinit stringifies with qualifier
This commit is contained in:
@@ -4,4 +4,6 @@ private import codeql.swift.elements.decl.MethodDecl
|
||||
/**
|
||||
* An initializer of a class, struct, enum or protocol.
|
||||
*/
|
||||
class ConstructorDecl extends Generated::ConstructorDecl, MethodDecl { }
|
||||
class ConstructorDecl extends Generated::ConstructorDecl, MethodDecl {
|
||||
override string toString() { result = this.getSelfParam().getType() + "." + super.toString() }
|
||||
}
|
||||
|
||||
@@ -4,4 +4,6 @@ private import codeql.swift.elements.decl.MethodDecl
|
||||
/**
|
||||
* A deinitializer of a class.
|
||||
*/
|
||||
class DestructorDecl extends Generated::DestructorDecl, MethodDecl { }
|
||||
class DestructorDecl extends Generated::DestructorDecl, MethodDecl {
|
||||
override string toString() { result = this.getSelfParam().getType() + "." + super.toString() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user