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 8205751 commit 57a55edCopy full SHA for 57a55ed
swift/ql/lib/codeql/swift/elements/type/Type.qll
@@ -12,14 +12,11 @@ class Type extends Generated::Type {
12
* Gets the name of this type.
13
*/
14
override string getName() {
15
- /*exists(string name, int lastDotPos |
+ exists(string name, int lastDotPos |
16
name = super.getName() and
17
lastDotPos = max([-1, name.indexOf(".")]) and
18
result = name.suffix(lastDotPos + 1)
19
- )*/
20
- // match as many characters as possible at the end that are not `.`.
21
- // (`*?` is lazy matching)
22
- result = super.getName().regexpCapture(".*?([^\\.]*)", 1)
+ )
23
}
24
25
/**
0 commit comments