mirror of
https://github.com/github/codeql.git
synced 2026-06-23 05:37:02 +02:00
Produce CFG nodes for more reference expressions, like selector bases
This commit is contained in:
@@ -52,7 +52,13 @@ module GoCfg {
|
||||
or
|
||||
e instanceof Go::SelectorExpr and not e instanceof Go::ReferenceExpr
|
||||
or
|
||||
e instanceof Go::ReferenceExpr and not e.(Go::ReferenceExpr).isRvalue()
|
||||
e instanceof Go::ReferenceExpr and
|
||||
not e.(Go::ReferenceExpr).isRvalue() and
|
||||
not e instanceof Go::SelectorExpr and
|
||||
not e = any(Go::SelectorExpr sel).getBase() and
|
||||
not e instanceof Go::IndexExpr and
|
||||
not e = any(Go::IndexExpr idx).getBase() and
|
||||
not e = any(Go::IndexExpr idx).getIndex()
|
||||
or
|
||||
e instanceof Go::ParenExpr
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user