mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Improve qldoc
This commit is contained in:
@@ -514,7 +514,7 @@ class ConstCase extends SwitchCase {
|
||||
Expr getValue() { result.isNthChildOf(this, 0) }
|
||||
|
||||
/**
|
||||
* Gets the `case` constant at the specified index.
|
||||
* Gets the `case` constant at index `i`.
|
||||
*/
|
||||
Expr getValue(int i) { result.isNthChildOf(this, i) and i >= 0 }
|
||||
|
||||
|
||||
@@ -441,7 +441,7 @@ private predicate instanceOfGuarded(Expr e, RefType t) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if `va` is an access to a value that is guarded by `case T t`.
|
||||
* Holds if `e` is an access to a value that is guarded by `case T t`.
|
||||
*/
|
||||
private predicate patternCaseGuarded(Expr e, RefType t) {
|
||||
exists(PatternCase pc |
|
||||
|
||||
Reference in New Issue
Block a user