File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class JSDocParamTag extends JSDocTag {
144
144
/** Gets the parameter this tag refers to, if it can be determined. */
145
145
Variable getDocumentedParameter ( ) {
146
146
exists ( Parameterized parm | parm .getDocumentation ( ) = getParent ( ) |
147
- result = parm .getParameterVariable ( getName ( ) )
147
+ result = pragma [ only_bind_out ] ( parm ) .getParameterVariable ( getName ( ) )
148
148
)
149
149
}
150
150
}
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ module DataFlow {
96
96
predicate accessesGlobal ( string g ) { globalVarRef ( g ) .flowsTo ( this ) }
97
97
98
98
/** Holds if this node may evaluate to the string `s`, possibly through local data flow. */
99
+ pragma [ nomagic]
99
100
predicate mayHaveStringValue ( string s ) {
100
101
getAPredecessor ( ) .mayHaveStringValue ( s )
101
102
or
Original file line number Diff line number Diff line change @@ -688,8 +688,7 @@ module Express {
688
688
override RouteHandler getRouteHandler ( ) { result = rh }
689
689
690
690
override Expr getNameExpr ( ) {
691
- exists ( DataFlow:: PropWrite write |
692
- getAHeaderSource ( ) .flowsTo ( write .getBase ( ) ) and
691
+ exists ( DataFlow:: PropWrite write | getAHeaderSource ( ) .getAPropertyWrite ( ) = write |
693
692
result = write .getPropertyNameExpr ( )
694
693
)
695
694
}
Original file line number Diff line number Diff line change @@ -283,8 +283,7 @@ module Fastify {
283
283
override RouteHandler getRouteHandler ( ) { result = rh }
284
284
285
285
override Expr getNameExpr ( ) {
286
- exists ( DataFlow:: PropWrite write |
287
- this .getAHeaderSource ( ) .flowsTo ( write .getBase ( ) ) and
286
+ exists ( DataFlow:: PropWrite write | getAHeaderSource ( ) .getAPropertyWrite ( ) = write |
288
287
result = write .getPropertyNameExpr ( )
289
288
)
290
289
}
You can’t perform that action at this time.
0 commit comments