Skip to content

Commit e2740fe

Browse files
committed
Swift: Add explanatory comment.
1 parent 2ba983b commit e2740fe

File tree

1 file changed

+2
-0
lines changed
  • swift/ql/lib/codeql/swift/elements/type

1 file changed

+2
-0
lines changed

swift/ql/lib/codeql/swift/elements/type/Type.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class Type extends Generated::Type {
1212
* Gets the name of this type.
1313
*/
1414
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.
1517
exists(string name, int lastDotPos |
1618
name = super.getName() and
1719
lastDotPos = max([-1, name.indexOf(".")]) and

0 commit comments

Comments
 (0)