Skip to content

Commit

Permalink
Merge pull request #14717 from github/alexdenisov/fix-cfg-for-single-…
Browse files Browse the repository at this point in the history
…value-stmt-expr

Swlft: fix CFG for SingleValueStmtExpr
  • Loading branch information
MathiasVP authored Nov 8, 2023
2 parents d510739 + 12f9e3a commit d8e75e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,15 @@ module Exprs {
}
}

/** Control-flow for a `SingleValueStmtExpr`. See the QLDoc for `SingleValueStmtExpr` for the semantics of a `SingleValueStmtExpr`. */
private class SingleValueStmtExprTree extends AstStandardPostOrderTree {
override SingleValueStmtExpr ast;

final override ControlFlowElement getChildElement(int i) {
i = 0 and result.asAstNode() = ast.getStmt()
}
}

private class OpaqueValueExprTree extends AstLeafTree {
override OpaqueValueExpr ast;
}
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit d8e75e6

Please sign in to comment.