File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
ruby/ql/lib/codeql/ruby/experimental Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -311,9 +311,6 @@ module Rbi {
311
311
MethodSignatureCall getMethodSignatureCall ( ) { result = sigCall }
312
312
}
313
313
314
- bindingset [ paramName]
315
- private predicate isBlockParamName ( string paramName ) { paramName = [ "blk" , "block" ] }
316
-
317
314
/**
318
315
* A call to `params`. This defines the types of parameters to a method or proc.
319
316
*/
@@ -328,7 +325,7 @@ module Rbi {
328
325
// explicitly exclude keyword parameters
329
326
not this .getAssociatedParameter ( result .getName ( ) ) instanceof KeywordParameter and
330
327
// and exclude block arguments
331
- not isBlockParamName ( result .getName ( ) )
328
+ not this . getAssociatedParameter ( result .getName ( ) ) instanceof BlockParameter
332
329
}
333
330
334
331
/** Gets the type of the keyword parameter named `keyword`. */
@@ -342,7 +339,7 @@ module Rbi {
342
339
343
340
/** Gets the type of the block parameter to the associated method. */
344
341
ParameterType getBlockParameterType ( ) {
345
- isBlockParamName ( result .getName ( ) ) and
342
+ this . getAssociatedParameter ( result .getName ( ) ) instanceof BlockParameter and
346
343
result = this .getArgument ( _)
347
344
}
348
345
You can’t perform that action at this time.
0 commit comments