Skip to content

Commit 70ed8c6

Browse files
committed
Swift: add QLdoc to Pattern
1 parent 3fbf90c commit 70ed8c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

swift/ql/lib/codeql/swift/elements/pattern/Pattern.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ private import codeql.swift.elements.decl.PatternBindingDecl
1818
private import codeql.swift.elements.decl.EnumElementDecl
1919
private import codeql.swift.generated.ParentChild
2020

21+
/**
22+
* A syntactic construct that can be matched against an expression,
23+
* occurring in switch cases, conditions, and variable bindings.
24+
*/
2125
class Pattern extends Generated::Pattern {
2226
/**
2327
* Gets the expression that this top-level pattern is matched against, if any.

0 commit comments

Comments
 (0)