File tree Expand file tree Collapse file tree
ruby/ql/src/utils/modeleditor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,13 +63,19 @@ class Endpoint extends DataFlow::MethodNode {
6363 bindingset [ this ]
6464 string getParameterTypes ( ) {
6565 // 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.
6767 result =
6868 "(" +
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+ )
7177 |
72- p . getName ( ) , "," order by i
78+ value , "," order by key
7379 ) + ")"
7480 }
7581
You can’t perform that action at this time.
0 commit comments