File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
java/ql/lib/semmle/code/java Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -439,16 +439,17 @@ class SwitchCase extends Stmt, @case {
439
439
/**
440
440
* Gets the expression on the right-hand side of the arrow, if any.
441
441
*
442
- * Note this is mutually exclusive with `getRuleStatement`: it gets a value
443
- * when this case is of the form `case e1 -> e2`, where `e2` is not a block.
442
+ * Note, this predicate gets a value when this switch case is of the form
443
+ * `case e1 -> e2`, where `e2` is not a block. This predicate is mutually
444
+ * exclusive with `getRuleStatement`.
444
445
*/
445
446
Expr getRuleExpression ( ) { result .getParent ( ) = this and result .getIndex ( ) = - 1 }
446
447
447
448
/**
448
449
* Gets the statement on the right-hand side of the arrow, if any.
449
450
*
450
- * Note this is mutually exclusive with `getRuleExpression`: it gets a value
451
- * when this case if of the form `case e1 -> { s1; s2; ... }`.
451
+ * Note, this predicate gets a value when this switch case is of the form
452
+ * `case e1 -> { s1; s2; ... }`. This predicate is mutually exclusive with `getRuleExpression `.
452
453
*/
453
454
Stmt getRuleStatement ( ) { result .getParent ( ) = this and result .getIndex ( ) = - 1 }
454
455
}
You can’t perform that action at this time.
0 commit comments