Swift: add QLDoc for DictionarySubscriptNode

This commit is contained in:
Robert Marsh
2023-08-16 17:57:30 +00:00
parent 3ee3eabd95
commit d3cc366dc5

View File

@@ -300,6 +300,12 @@ import Cached
/** Holds if `n` should be hidden from path explanations. */
predicate nodeIsHidden(Node n) { n instanceof FlowSummaryNode }
/**
* The intermediate node for a dictionary subscript operation `dict[key]`. In a write, this is used
* as the destination of the `storeStep`s that add `TupleContent`s and the source of the storeStep
* that adds `CollectionContent`. In a read, this is the destination of the `readStep` that pops
* `CollectionContent` and the source of the `readStep` that pops `TupleContent[0]`
*/
private class DictionarySubscriptNode extends NodeImpl, TDictionarySubscriptNode {
SubscriptExpr expr;