Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26ef1bc

Browse files
committed
Swift: comment models-as-data implementation.
1 parent 18d9573 commit 26ef1bc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ private module Cached {
320320
cached
321321
predicate localFlowStepImpl(Node nodeFrom, Node nodeTo) {
322322
localFlowStepCommon(nodeFrom, nodeTo) or
323+
// models-as-data summarized flow
323324
FlowSummaryImpl::Private::Steps::summaryThroughStepValue(nodeFrom, nodeTo, _)
324325
}
325326

@@ -1023,6 +1024,7 @@ predicate captureValueStep(Node node1, Node node2) {
10231024
}
10241025

10251026
predicate jumpStep(Node pred, Node succ) {
1027+
// models-as-data summarized flow
10261028
FlowSummaryImpl::Private::Steps::summaryJumpStep(pred.(FlowSummaryNode).getSummaryNode(),
10271029
succ.(FlowSummaryNode).getSummaryNode())
10281030
}
@@ -1132,6 +1134,7 @@ predicate storeStep(Node node1, ContentSet c, Node node2) {
11321134
c.isSingleton(any(Content::CollectionContent cc))
11331135
)
11341136
or
1137+
// models-as-data summarized flow
11351138
FlowSummaryImpl::Private::Steps::summaryStoreStep(node1.(FlowSummaryNode).getSummaryNode(), c,
11361139
node2.(FlowSummaryNode).getSummaryNode())
11371140
or
@@ -1237,6 +1240,7 @@ predicate readStep(Node node1, ContentSet c, Node node2) {
12371240
c instanceof OptionalSomeContentSet
12381241
)
12391242
or
1243+
// models-as-data summarized flow
12401244
FlowSummaryImpl::Private::Steps::summaryReadStep(node1.(FlowSummaryNode).getSummaryNode(), c,
12411245
node2.(FlowSummaryNode).getSummaryNode())
12421246
or

0 commit comments

Comments
 (0)