Skip to content

Commit ace00c3

Browse files
committed
Swift: Add a 'getName' predicate to types that forwards to the 'getName' from the declaration.
1 parent cf08644 commit ace00c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// generated by codegen/codegen.py, remove this comment if you wish to edit this file
21
private import codeql.swift.generated.type.AnyGenericType
2+
private import codeql.swift.elements.decl.GenericTypeDecl
33

4-
class AnyGenericType extends AnyGenericTypeBase { }
4+
class AnyGenericType extends AnyGenericTypeBase {
5+
string getName() { result = this.getDeclaration().(GenericTypeDecl).getName() }
6+
}

0 commit comments

Comments
 (0)