We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba983b commit e2740feCopy full SHA for e2740fe
swift/ql/lib/codeql/swift/elements/type/Type.qll
@@ -12,6 +12,8 @@ class Type extends Generated::Type {
12
* Gets the name of this type.
13
*/
14
override string getName() {
15
+ // note that `Generated::Type.getName()` gets the full name of the type, so
16
+ // we have to compute a short name.
17
exists(string name, int lastDotPos |
18
name = super.getName() and
19
lastDotPos = max([-1, name.indexOf(".")]) and
0 commit comments