Skip to content

Commit 04ff89e

Browse files
committed
Update access path documentation
1 parent 732b14e commit 04ff89e

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/ExternalFlow.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
* in the given range. The range is inclusive at both ends.
6363
* - "ReturnValue": Selects the return value of a call to the selected element.
6464
*
65-
* For summaries, `input` and `output` may be prefixed by one of the following,
66-
* separated by the "of" keyword:
65+
* For summaries, `input` and `output` may be suffixed by any number of the
66+
* following, separated by ".":
6767
* - "Element": Selects an element in a collection.
6868
* - "Field[f]": Selects the contents of field `f`.
6969
* - "Property[p]": Selects the contents of property `p`.

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@
5454
* return value. The return values are zero-indexed
5555
* - "ReturnValue[n1..n2]": Similar to "ReturnValue[n]" but selects any
5656
* return value in the given range. The range is inclusive at both ends.
57+
*
58+
* For summaries, `input` and `output` may be suffixed by any number of the
59+
* following, separated by ".":
60+
* - "Field[pkg.className.fieldname]": Selects the contents of the field `f`
61+
* which satisfies `f.hasQualifiedName(pkg, className, fieldname)`.
62+
* - "SyntheticField[f]": Selects the contents of the synthetic field `f`.
63+
* - "ArrayElement": Selects an element in an array or slice.
64+
* - "Element": Selects an element in a collection.
65+
* - "MapKey": Selects a key in a map.
66+
* - "MapValue": Selects a value in a map.
67+
* - "Dereference": Selects the value referenced by a pointer.
68+
*
5769
* 8. The `kind` column is a tag that can be referenced from QL to determine to
5870
* which classes the interpreted elements should be added. For example, for
5971
* sources "remote" indicates a default remote flow source, and for summaries

0 commit comments

Comments
 (0)