File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
python/ql/lib/semmle/python Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ module API {
245
245
246
246
/**
247
247
* Gets a node representing a subscript of this node.
248
+ * For example `obj[x]` is a subscript of `obj`.
248
249
*/
249
250
Node getASubscript ( ) { result = this .getASuccessor ( Label:: subscript ( ) ) }
250
251
@@ -575,7 +576,6 @@ module API {
575
576
* API graph node for the prefix `foo`), in accordance with the usual semantics of Python.
576
577
*/
577
578
578
- // private import semmle.python.internal.Awaited
579
579
cached
580
580
newtype TApiNode =
581
581
/** The root of the API graph. */
@@ -1067,7 +1067,7 @@ module API {
1067
1067
override string toString ( ) { result = "getAwaited()" }
1068
1068
}
1069
1069
1070
- /** A label that gets the subscript of a sequence. */
1070
+ /** A label that gets the subscript of a sequence/mapping . */
1071
1071
class LabelSubscript extends ApiLabel , MkLabelSubscript {
1072
1072
override string toString ( ) { result = "getSubscript()" }
1073
1073
}
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ private module Cached {
249
249
}
250
250
251
251
/**
252
- * Holds if `node` flows to a sequence of which `subscript` is a subscript.
252
+ * Holds if `node` flows to a sequence/mapping of which `subscript` is a subscript.
253
253
*/
254
254
cached
255
255
predicate subscript ( LocalSourceNode node , CfgNode subscript ) {
You can’t perform that action at this time.
0 commit comments