Skip to content

Commit e53c0cd

Browse files
committed
Fix unknown Parameter/Argument decoding
1 parent 2473274 commit e53c0cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/lib/semmle/javascript/dataflow/internal/FlowSummaryPrivate.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ string encodeWithContent(ContentSet c, string arg) { result = "With" + encodeCon
180180
*/
181181
bindingset[token]
182182
ParameterPosition decodeUnknownParameterPosition(AccessPathSyntax::AccessPathTokenBase token) {
183-
token.getName() = "Parameter" and
183+
token.getName() = "Argument" and
184184
desugaredPositionName(result, token.getAnArgument())
185185
}
186186

@@ -194,7 +194,7 @@ ParameterPosition decodeUnknownParameterPosition(AccessPathSyntax::AccessPathTok
194194
*/
195195
bindingset[token]
196196
ArgumentPosition decodeUnknownArgumentPosition(AccessPathSyntax::AccessPathTokenBase token) {
197-
token.getName() = "Argument" and
197+
token.getName() = "Parameter" and
198198
desugaredPositionName(result, token.getAnArgument())
199199
}
200200

0 commit comments

Comments
 (0)