From 5bb8f2ce20ecb9c3d3301caa7cdb7203f23c3353 Mon Sep 17 00:00:00 2001 From: Owen Mansel-Chan Date: Fri, 29 May 2026 23:32:41 +0100 Subject: [PATCH] Restore `ExprNode` for `FuncLit` --- go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll b/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll index 992cef0ffeb..c84efa44e2d 100644 --- a/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll +++ b/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll @@ -358,6 +358,8 @@ module GoCfg { or n instanceof Go::BasicLit or + n instanceof Go::FuncLit + or n instanceof Go::CallExpr and not n = any(Go::DeferStmt defer).getCall() and not n = any(Go::GoStmt go_).getCall()