File tree Expand file tree Collapse file tree
java/ql/lib/semmle/code/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -439,16 +439,17 @@ class SwitchCase extends Stmt, @case {
439439 /**
440440 * Gets the expression on the right-hand side of the arrow, if any.
441441 *
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`.
444445 */
445446 Expr getRuleExpression ( ) { result .getParent ( ) = this and result .getIndex ( ) = - 1 }
446447
447448 /**
448449 * Gets the statement on the right-hand side of the arrow, if any.
449450 *
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 `.
452453 */
453454 Stmt getRuleStatement ( ) { result .getParent ( ) = this and result .getIndex ( ) = - 1 }
454455}
You can’t perform that action at this time.
0 commit comments