Skip to content

Commit e5403b2

Browse files
committed
Add QLDoc to skipCfg
1 parent b9a4202 commit e5403b2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

go/ql/lib/semmle/go/controlflow/ControlFlowGraphImpl.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ module CfgImpl {
6363
private module Ast implements CfgLib::AstSig<Go::Location> {
6464
class AstNode = Go::AstNode;
6565

66+
/**
67+
* Holds if `e` is excluded from ordinary AST child traversal by `getChild`.
68+
* This does not exclude `e` from the CFG entirely: specialized accessors and
69+
* explicit control-flow steps can still use it, for example as a type-switch
70+
* pattern or a select-receive assignment target.
71+
*/
6672
private predicate skipCfg(AstNode e) {
6773
e instanceof Go::TypeExpr and not e instanceof Go::FuncTypeExpr
6874
or

0 commit comments

Comments
 (0)