File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
ruby/ql/src/utils/modeleditor Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,19 @@ class Endpoint extends DataFlow::MethodNode {
63
63
bindingset [ this ]
64
64
string getParameterTypes ( ) {
65
65
// For now, return the names of postional parameters. We don't always have type information, so we can't return type names.
66
- // We don't yet handle keyword params, splat params or block params.
66
+ // We don't yet handle splat params or block params.
67
67
result =
68
68
"(" +
69
- concat ( DataFlow:: ParameterNode p , int i |
70
- p = this .asCallable ( ) .getParameter ( i )
69
+ concat ( string key , string value |
70
+ value = any ( int i | i .toString ( ) = key | this .asCallable ( ) .getParameter ( i ) ) .getName ( )
71
+ or
72
+ exists ( DataFlow:: ParameterNode param |
73
+ param = this .asCallable ( ) .getKeywordParameter ( key )
74
+ |
75
+ value = key + ":"
76
+ )
71
77
|
72
- p . getName ( ) , "," order by i
78
+ value , "," order by key
73
79
) + ")"
74
80
}
75
81
You can’t perform that action at this time.
0 commit comments