File tree Expand file tree Collapse file tree 11 files changed +20
-20
lines changed
swift/ql/lib/codeql/swift/elements Expand file tree Collapse file tree 11 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ private import codeql.swift.generated.AvailabilityInfo
2
2
3
3
class AvailabilityInfo extends Generated:: AvailabilityInfo {
4
4
override string toString ( ) {
5
- result = "#available" and not isUnavailable ( )
5
+ result = "#available" and not this . isUnavailable ( )
6
6
or
7
- result = "#unavailable" and isUnavailable ( )
7
+ result = "#unavailable" and this . isUnavailable ( )
8
8
}
9
9
}
Original file line number Diff line number Diff line change @@ -5,37 +5,37 @@ class KeyPathComponent extends Generated::KeyPathComponent {
5
5
/**
6
6
* Property access like `.bar` in `\Foo.bar`.
7
7
*/
8
- predicate isProperty ( ) { getKind ( ) = 3 }
8
+ predicate isProperty ( ) { this . getKind ( ) = 3 }
9
9
10
10
/**
11
11
* Array or dictionary subscript like `[1]` or `["a", "b"]`.
12
12
*/
13
- predicate isSubscript ( ) { getKind ( ) = 4 }
13
+ predicate isSubscript ( ) { this . getKind ( ) = 4 }
14
14
15
15
/**
16
16
* Optional forcing `!`.
17
17
*/
18
- predicate isOptionalForcing ( ) { getKind ( ) = 5 }
18
+ predicate isOptionalForcing ( ) { this . getKind ( ) = 5 }
19
19
20
20
/**
21
21
* Optional chaining `?`.
22
22
*/
23
- predicate isOptionalChaining ( ) { getKind ( ) = 6 }
23
+ predicate isOptionalChaining ( ) { this . getKind ( ) = 6 }
24
24
25
25
/**
26
26
* Implicit optional wrapping component inserted by the compiler when an optional chain ends in a non-optional value.
27
27
*/
28
- predicate isOptionalWrapping ( ) { getKind ( ) = 7 }
28
+ predicate isOptionalWrapping ( ) { this . getKind ( ) = 7 }
29
29
30
30
/**
31
31
* Reference to the entire object; the `self` in `\Foo.self`.
32
32
*/
33
- predicate isSelf ( ) { getKind ( ) = 8 }
33
+ predicate isSelf ( ) { this . getKind ( ) = 8 }
34
34
35
35
/**
36
36
* Tuple indexing like `.1`.
37
37
*/
38
- predicate isTupleIndexing ( ) { getKind ( ) = 9 }
38
+ predicate isTupleIndexing ( ) { this . getKind ( ) = 9 }
39
39
40
40
/** Gets the underlying key-path expression which this is a component of. */
41
41
KeyPathExpr getKeyPathExpr ( ) { result .getAComponent ( ) = this }
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ class Locatable extends Generated::Locatable {
14
14
/**
15
15
* Gets the primary file where this element occurs.
16
16
*/
17
- File getFile ( ) { result = getLocation ( ) .getFile ( ) }
17
+ File getFile ( ) { result = this . getLocation ( ) .getFile ( ) }
18
18
}
Original file line number Diff line number Diff line change 1
1
private import codeql.swift.generated.PlatformVersionAvailabilitySpec
2
2
3
3
class PlatformVersionAvailabilitySpec extends Generated:: PlatformVersionAvailabilitySpec {
4
- override string toString ( ) { result = getPlatform ( ) + " " + getVersion ( ) }
4
+ override string toString ( ) { result = this . getPlatform ( ) + " " + this . getVersion ( ) }
5
5
}
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ private import codeql.swift.generated.decl.ExtensionDecl
2
2
3
3
class ExtensionDecl extends Generated:: ExtensionDecl {
4
4
override string toString ( ) {
5
- result = "extension of " + getExtendedTypeDecl ( ) .toString ( )
5
+ result = "extension of " + this . getExtendedTypeDecl ( ) .toString ( )
6
6
or
7
- not exists ( getExtendedTypeDecl ( ) ) and
7
+ not exists ( this . getExtendedTypeDecl ( ) ) and
8
8
result = "extension"
9
9
}
10
10
}
Original file line number Diff line number Diff line change 1
1
private import codeql.swift.generated.expr.IdentityExpr
2
2
3
3
class IdentityExpr extends Generated:: IdentityExpr {
4
- override predicate convertsFrom ( Expr e ) { e = getImmediateSubExpr ( ) }
4
+ override predicate convertsFrom ( Expr e ) { e = this . getImmediateSubExpr ( ) }
5
5
}
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ private import codeql.swift.generated.expr.UnresolvedDeclRefExpr
2
2
3
3
class UnresolvedDeclRefExpr extends Generated:: UnresolvedDeclRefExpr {
4
4
override string toString ( ) {
5
- result = getName ( ) + " (unresolved)"
5
+ result = this . getName ( ) + " (unresolved)"
6
6
or
7
- not hasName ( ) and result = "(unresolved)"
7
+ not this . hasName ( ) and result = "(unresolved)"
8
8
}
9
9
}
Original file line number Diff line number Diff line change 1
1
private import codeql.swift.generated.expr.UnresolvedDotExpr
2
2
3
3
class UnresolvedDotExpr extends Generated:: UnresolvedDotExpr {
4
- override string toString ( ) { result = "... ." + getName ( ) }
4
+ override string toString ( ) { result = "... ." + this . getName ( ) }
5
5
}
Original file line number Diff line number Diff line change 1
1
private import codeql.swift.generated.pattern.BindingPattern
2
2
3
3
class BindingPattern extends Generated:: BindingPattern {
4
- final override Pattern getResolveStep ( ) { result = getImmediateSubPattern ( ) }
4
+ final override Pattern getResolveStep ( ) { result = this . getImmediateSubPattern ( ) }
5
5
6
6
override string toString ( ) { result = "let ..." }
7
7
}
Original file line number Diff line number Diff line change 1
1
private import codeql.swift.generated.pattern.ParenPattern
2
2
3
3
class ParenPattern extends Generated:: ParenPattern {
4
- final override Pattern getResolveStep ( ) { result = getImmediateSubPattern ( ) }
4
+ final override Pattern getResolveStep ( ) { result = this . getImmediateSubPattern ( ) }
5
5
6
6
override string toString ( ) { result = "(...)" }
7
7
}
You can’t perform that action at this time.
0 commit comments