Skip to content

Commit ec30a0f

Browse files
committed
Ruby: replace BlockArgument with Argument[block]
1 parent 6d84baf commit ec30a0f

File tree

4 files changed

+88
-88
lines changed

4 files changed

+88
-88
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/FlowSummaryImplSpecific.qll

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ SummaryComponent interpretComponentSpecific(AccessPathToken c) {
6262
c = "Receiver" and // TODO: replace with Argument[self]
6363
result = FlowSummary::SummaryComponent::receiver()
6464
or
65-
c = "BlockArgument" and // TODO: replace with Argument[block]
66-
result = FlowSummary::SummaryComponent::block()
67-
or
6865
c = "Argument[_]" and
6966
result = FlowSummary::SummaryComponent::argument(any(ParameterPosition pos | pos.isPositional(_)))
7067
or
@@ -82,10 +79,7 @@ SummaryComponent interpretComponentSpecific(AccessPathToken c) {
8279
}
8380

8481
/** Gets the textual representation of a summary component in the format used for flow summaries. */
85-
string getComponentSpecificCsv(SummaryComponent sc) {
86-
sc = TArgumentSummaryComponent(any(ParameterPosition pos | pos.isBlock())) and
87-
result = "BlockArgument" // TODO: replace with Argument[block]
88-
}
82+
string getComponentSpecificCsv(SummaryComponent sc) { none() }
8983

9084
/** Gets the textual representation of a parameter position in the format used for flow summaries. */
9185
string getParameterPositionCsv(ParameterPosition pos) { result = pos.toString() }

0 commit comments

Comments
 (0)