Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23d29a8

Browse files
committed
JS: improve comment syntax
1 parent 6328a0a commit 23d29a8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

javascript/ql/src/Expressions/UnboundEventHandlerReceiver.ql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)