use more set literals

This commit is contained in:
Erik Krogh Kristensen
2022-01-20 14:35:59 +01:00
parent c09b6691e1
commit 3155114e36
19 changed files with 38 additions and 117 deletions

View File

@@ -17,10 +17,11 @@ module ConnectExpressShared {
*/
private class RouteHandlerSignature extends string {
RouteHandlerSignature() {
this = "request,response" or
this = "request,response,next" or
this = "request,response,next,parameter" or
this = "error,request,response,next"
this =
[
"request,response", "request,response,next", "request,response,next,parameter",
"error,request,response,next"
]
}
/** Gets the index of the parameter corresonding to the given `kind`, if any. */