We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2416040 commit ef15980Copy full SHA for ef15980
csharp/ql/lib/semmle/code/csharp/frameworks/Razor.qll
@@ -11,9 +11,9 @@ private class ViewCall extends MethodCall {
11
12
/** Gets the `name` argument to this call, if any. */
13
string getNameArgument() {
14
- exists(StringLiteral lit, int i | i in [0 .. 1] |
15
- this.getTarget().getParameter(i).getType() instanceof StringType and
16
- DataFlow::localExprFlow(lit, this.getArgument(i)) and
+ exists(StringLiteral lit |
+ this.getTarget().getParameter(0).getType() instanceof StringType and
+ DataFlow::localExprFlow(lit, this.getArgument(0)) and
17
result = lit.getValue()
18
)
19
}
0 commit comments