Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions go/ql/lib/change-notes/2026-08-13-cfg.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,3 @@ category: breaking
- `EvalCompoundAssignRhsInstruction` now also represents increment and
decrement operations, and it and `EvalImplicitInitInstruction` directly
represent their associated writes.
* `ParenExpr` has been deprecated because parenthesized expressions are no
longer extracted as separate AST nodes. The child expression now directly
takes the place of the parenthesized expression.
17 changes: 13 additions & 4 deletions go/ql/lib/semmle/go/Expr.qll
Original file line number Diff line number Diff line change
Expand Up @@ -544,11 +544,20 @@ class SliceLit extends ArrayOrSliceLit {
}

/**
* DEPRECATED: `ParenExpr` is no longer extracted. Parenthesized expressions are
* transparent in the AST; the child expression takes the place of the parenthesized
* expression directly.
* A parenthesized expression.
*
* Examples:
*
* ```go
* (x + y)
* ```
*
* Note that `ParenExpr` is no longer extracted - the child expression takes
* the place of the parenthesized expression directly. This class only exists
* for compatibility with old databases, and will be deprecated and removed in
* the future.
*/
deprecated class ParenExpr extends @parenexpr, Expr {
class ParenExpr extends @parenexpr, Expr {
/** Gets the expression between parentheses. */
Expr getExpr() { result = this.getChildExpr(0) }

Expand Down
Loading