mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
As mentioned by aschackmull during review, StatementExpression as defined by the JLS only lists possible types of expressions, it does _not_ specify that their value is discarded. Therefore, for example any method call could be considered a StatementExpression. The name ValueDiscardingExpr was chosen as replacement because the JLS uses the phrase "if the expression has a value, the value is discarded" multiple times.
167 B
167 B
category
| category |
|---|
| feature |
- The QL class
ValueDiscardingExprhas been added, representing expressions for which the value of the expression as a whole is discarded.