Preserve Slim template statement matching semantics

Agent-Logs-Url: https://github.com/github/codeql/sessions/c8fcf73a-5bb2-4182-b8fb-a251eec43ef4

Co-authored-by: aschackmull <28296824+aschackmull@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-08 13:25:59 +00:00
committed by GitHub
parent d3e00aeb9f
commit 5c7426e278

View File

@@ -18,7 +18,7 @@ module Slim {
override DataFlow::Node getTemplate() {
result.asExpr().getExpr() =
this.getBlock().(DataFlow::BlockNode).asCallableAstNode().getLastStmt()
this.getBlock().(DataFlow::BlockNode).asCallableAstNode().(StmtSequence).getAStmt()
}
}