File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,3 @@ category: breaking
2727 - ` EvalCompoundAssignRhsInstruction ` now also represents increment and
2828 decrement operations, and it and ` EvalImplicitInitInstruction ` directly
2929 represent their associated writes.
30- * ` ParenExpr ` has been deprecated because parenthesized expressions are no
31- longer extracted as separate AST nodes. The child expression now directly
32- takes the place of the parenthesized expression.
Original file line number Diff line number Diff 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+ * the 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
You can’t perform that action at this time.
0 commit comments