Skip to content

Commit 65763c5

Browse files
committed
Un-deprecate ParenExpr
1 parent 730d04c commit 65763c5

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

‎go/ql/lib/semmle/go/Expr.qll‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,20 @@ class SliceLit extends ArrayOrSliceLit {
544544
}
545545

546546
/**
547-
* DEPRECATED: `ParenExpr` is no longer extracted. Parenthesized expressions are
548-
* transparent in the AST; the child expression takes the place of the parenthesized
549-
* expression directly.
547+
* A parenthesized expression.
548+
*
549+
* Examples:
550+
*
551+
* ```go
552+
* (x + y)
553+
* ```
554+
*
555+
* Note that `ParenExpr` is no longer extracted - the child expression takes
556+
* the place of the parenthesized expression directly. This class only exists
557+
* for compatibility with old databases, and will be deprecated and removed in
558+
* future.
550559
*/
551-
deprecated class ParenExpr extends @parenexpr, Expr {
560+
class ParenExpr extends @parenexpr, Expr {
552561
/** Gets the expression between parentheses. */
553562
Expr getExpr() { result = this.getChildExpr(0) }
554563

0 commit comments

Comments
 (0)