Skip to content

Commit 91375d3

Browse files
committed
Update ExternalFlow.qll docs on subtypes column
1 parent a277bcb commit 91375d3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

go/ql/lib/semmle/go/dataflow/ExternalFlow.qll

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@
2525
* packages in the group `<groupname>` according to the `packageGrouping`
2626
* predicate.
2727
* 2. The `type` column selects a type within that package.
28-
* 3. The `subtypes` is a boolean that indicates whether to jump to an
29-
* arbitrary subtype of that type.
28+
* 3. The `subtypes` column is a boolean that controls what restrictions we
29+
* place on the type `t` of the selector base when accessing a field or
30+
* calling a method. When it is false, `t` must be the exact type specified
31+
* by this row. When it is true, `t` may be a type which embeds the specified
32+
* type, and for interface methods `t` may be a type which implements the
33+
* interface.
3034
* 4. The `name` column optionally selects a specific named member of the type.
3135
* 5. The `signature` column is always empty.
3236
* 6. The `ext` column is always empty.

0 commit comments

Comments
 (0)