Skip to content

Commit 233c0cf

Browse files
authored
Merge pull request #166 from microsoft/dilan/resolve-ruby-df-error
resolving ruby df error
2 parents e7bb37a + 41b5d19 commit 233c0cf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ module SsaFlow {
9393
result = TSelfToplevelParameterNode(p.asToplevelSelf())
9494
}
9595

96+
ParameterNodeImpl toParameterNodeImpl(SsaDefinitionExtNode node) {
97+
exists(SsaImpl::WriteDefinition def, SsaImpl::ParameterExt p |
98+
def = node.getDefinitionExt() and
99+
result = toParameterNode(p) and
100+
p.isInitializedBy(def)
101+
)
102+
}
103+
96104
Impl::Node asNode(Node n) {
97105
n = TSsaNode(result)
98106
or

0 commit comments

Comments
 (0)