File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
codeql/swift/elements/expr Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ private import codeql.swift.elements.expr.MethodLookupExpr
2
+ private import codeql.swift.elements.decl.ConstructorDecl
3
+
4
+ class InitializerLookupExpr extends MethodLookupExpr {
5
+ InitializerLookupExpr ( ) { super .getMethod ( ) instanceof ConstructorDecl }
6
+
7
+ override ConstructorDecl getMethod ( ) { result = super .getMethod ( ) }
8
+
9
+ override string toString ( ) { result = this .getMember ( ) .toString ( ) }
10
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import codeql.swift.elements
4
4
import codeql.swift.elements.expr.ArithmeticOperation
5
5
import codeql.swift.elements.expr.BitwiseOperation
6
6
import codeql.swift.elements.expr.LogicalOperation
7
+ import codeql.swift.elements.expr.InitializerLookupExpr
7
8
import codeql.swift.elements.decl.MethodDecl
8
9
import codeql.swift.elements.decl.ClassOrStructDecl
9
10
import codeql.swift.Unit
You can’t perform that action at this time.
0 commit comments