Skip to content

Commit cdef079

Browse files
committed
Swift: QLDoc for NilCoalescingExpr.qll
1 parent 497f0aa commit cdef079

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
/**
2+
* Provides a class for the Swift nil-coalesing expr (`??`)
3+
*/
4+
15
private import codeql.swift.elements.expr.Expr
26
private import codeql.swift.elements.expr.BinaryExpr
37

8+
/**
9+
* A Swift nil-coalesing expr (`??`).
10+
*/
411
class NilCoalescingExpr extends BinaryExpr {
5-
NilCoalescingExpr() {
6-
this.getStaticTarget().getName() = "??(_:_:)"
7-
}
8-
}
12+
NilCoalescingExpr() { this.getStaticTarget().getName() = "??(_:_:)" }
13+
}

0 commit comments

Comments
 (0)