mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
JS: Address review comments
This commit is contained in:
@@ -449,7 +449,7 @@ module StringOps {
|
||||
}
|
||||
|
||||
/**
|
||||
* A data flow node performs a string concatenation or occurs as an operand
|
||||
* A data flow node that performs a string concatenation or occurs as an operand
|
||||
* in a string concatenation.
|
||||
*
|
||||
* For example, the expression `x + y + z` contains the following concatenation
|
||||
@@ -570,7 +570,7 @@ module StringOps {
|
||||
/**
|
||||
* Gets the last leaf in this concatenation tree.
|
||||
*
|
||||
* For example, `x` is the first leaf in `x + y + z`.
|
||||
* For example, `z` is the last leaf in `x + y + z`.
|
||||
*/
|
||||
pragma[inline]
|
||||
ConcatenationLeaf getLastLeaf() {
|
||||
@@ -580,7 +580,7 @@ module StringOps {
|
||||
/**
|
||||
* Gets the first leaf in this concatenation tree.
|
||||
*
|
||||
* For example, `z` is the last leaf in `x + y + z`.
|
||||
* For example, `x` is the first leaf in `x + y + z`.
|
||||
*/
|
||||
pragma[inline]
|
||||
ConcatenationLeaf getFirstLeaf() {
|
||||
@@ -726,7 +726,7 @@ module StringOps {
|
||||
}
|
||||
|
||||
/**
|
||||
* The root node in a concatenation of one or more strings contain HTML fragments.
|
||||
* The root node in a concatenation of one or more strings containing HTML fragments.
|
||||
*/
|
||||
class HtmlConcatenationRoot extends ConcatenationRoot {
|
||||
pragma[noinline]
|
||||
|
||||
@@ -66,7 +66,7 @@ predicate isArgTo(DataFlow::Node arg, string regexp) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if `n` is concatenation containing something with a name that matches `regexp`.
|
||||
* Holds if `n` is a concatenation containing something with a name that matches `regexp`.
|
||||
*/
|
||||
bindingset[regexp]
|
||||
predicate isConcatenatedWith(StringOps::Concatenation n, string regexp) {
|
||||
|
||||
Reference in New Issue
Block a user