Skip to content

Commit e67e89d

Browse files
committed
Implement decodeUnknownArgument/ParameterPosition
1 parent 3bebd70 commit e67e89d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ string encodeWithContent(ContentSet c, string arg) { result = "With" + encodeCon
419419
*/
420420
bindingset[token]
421421
ParameterPosition decodeUnknownParameterPosition(AccessPathSyntax::AccessPathTokenBase token) {
422-
none()
422+
token.getName() = "Parameter" and
423+
desugaredPositionName(result, token.getAnArgument())
423424
}
424425

425426
/**
@@ -432,7 +433,8 @@ ParameterPosition decodeUnknownParameterPosition(AccessPathSyntax::AccessPathTok
432433
*/
433434
bindingset[token]
434435
ArgumentPosition decodeUnknownArgumentPosition(AccessPathSyntax::AccessPathTokenBase token) {
435-
none()
436+
token.getName() = "Argument" and
437+
desugaredPositionName(result, token.getAnArgument())
436438
}
437439

438440
/**

0 commit comments

Comments
 (0)