We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 497f0aa commit cdef079Copy full SHA for cdef079
swift/ql/lib/codeql/swift/elements/expr/NilCoalescingExpr.qll
@@ -1,8 +1,13 @@
1
+/**
2
+ * Provides a class for the Swift nil-coalesing expr (`??`)
3
+ */
4
+
5
private import codeql.swift.elements.expr.Expr
6
private import codeql.swift.elements.expr.BinaryExpr
7
8
9
+ * A Swift nil-coalesing expr (`??`).
10
11
class NilCoalescingExpr extends BinaryExpr {
- NilCoalescingExpr() {
- this.getStaticTarget().getName() = "??(_:_:)"
- }
-}
12
+ NilCoalescingExpr() { this.getStaticTarget().getName() = "??(_:_:)" }
13
+}
0 commit comments