File tree Expand file tree Collapse file tree
javascript/ql/src/Expressions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,16 +48,16 @@ private predicate isBoundInMethod(MethodDeclaration method) {
4848 // exclude the binding assignments
4949 not thiz .getAPropertySource ( ) = binder
5050 |
51- // myBindAll(this)
51+ // ` myBindAll(this)`
5252 binder .getNumArgument ( ) = 1
5353 or
54- // myBindSome(this, [<name1>, <name2>])
54+ // ` myBindSome(this, [<name1>, <name2>])`
5555 exists ( DataFlow:: ArrayCreationNode names |
5656 names .flowsTo ( binder .getAnArgument ( ) ) and
5757 names .getAnElement ( ) .mayHaveStringValue ( name )
5858 )
5959 or
60- // myBindSome(this, <name1>, <name2>)
60+ // ` myBindSome(this, <name1>, <name2>)`
6161 binder .getAnArgument ( ) .mayHaveStringValue ( name )
6262 )
6363 )
@@ -70,10 +70,10 @@ private predicate isBoundInMethod(MethodDeclaration method) {
7070 ) and
7171 name .regexpMatch ( "(?i).*(bind|bound).*" )
7272 |
73- // @autobind
73+ // ` @autobind`
7474 decoration .( Identifier ) .getName ( ) = name
7575 or
76- // @action.bound
76+ // ` @action.bound`
7777 decoration .( PropAccess ) .getPropertyName ( ) = name
7878 )
7979}
You can’t perform that action at this time.
0 commit comments