Fix syntax errors in QL comments

This commit is contained in:
Chuan-kai Lin
2022-04-28 11:53:36 -07:00
parent bb049bffbd
commit d6f0bbb816
17 changed files with 23 additions and 23 deletions

View File

@@ -8,7 +8,7 @@ import javascript
* This predicate covers four kinds of definitions:
*
* <table border="1">
* <tr><th>Example<th><code>def</code><th><code>lhs</code><th><code>rhs</code></tr>
* <tr><th>Example</th><th><code>def</code></th><th><code>lhs</code></th><th><code>rhs</code></th></tr>
* <tr><td><code>x = y</code><td><code>x = y</code><td><code>x</code><td><code>y</code></tr>
* <tr><td><code>var a = b</code><td><code>var a = b</code><td><code>a</code><td><code>b</code></tr>
* <tr><td><code>function f { ... }</code><td><code>f</code><td><code>f</code><td><code>function f { ... }</code></tr>
@@ -56,7 +56,7 @@ private predicate defn(ControlFlowNode def, Expr lhs, AST::ValueNode rhs) {
* where there is no explicit right hand side:
*
* <table border="1">
* <tr><th>Example<th><code>def</code><th><code>lhs</code></tr>
* <tr><th>Example</th><th><code>def</code></th><th><code>lhs</code></th></tr>
* <tr><td><code>x += y</code><td><code>x += y</code><td><code>x</code></tr>
* <tr><td><code>++z.q</code><td><code>++z.q</code><td><code>z.q</code></tr>
* <tr><td><code>import { a as b } from 'm'</code><td><code>a as b</code><td><code>b</code></tr>

View File

@@ -53,7 +53,7 @@ import javascript
*
* /**
* * @param {!Object} obj
* * @return {!Array<string>}
* * @return {!Array&lt;string&gt;}
* *&#47;
* Object.keys = function(obj) {};
*
@@ -109,7 +109,7 @@ class ExternalTypedef extends ExternalDecl, VariableDeclarator {
*
* /**
* * @param {!Object} obj
* * @return {!Array<string>}
* * @return {!Array&lt;string&gt;}
* *&#47;
* Object.keys = function(obj) {};
*
@@ -214,7 +214,7 @@ class ExternalGlobalVarDecl extends ExternalGlobalDecl, VariableDeclarator {
* <pre>
* /**
* * @param {!Object} obj
* * @return {!Array<string>}
* * @return {!Array&lt;string&gt;}
* *&#47;
* Object.keys = function(obj) {};
*
@@ -273,7 +273,7 @@ class ExternalMemberDecl extends ExternalVarDecl, ExprStmt {
* <pre>
* /**
* * @param {!Object} obj
* * @return {!Array<string>}
* * @return {!Array&lt;string&gt;}
* *&#47;
* Object.keys = function(obj) {};
*

View File

@@ -273,7 +273,7 @@ module UnsafeShellCommandConstruction {
}
/**
* A guard of the form `typeof x === "<T>"`, where <T> is "number", or "boolean",
* A guard of the form `typeof x === "<T>"`, where `<T>` is "number", or "boolean",
* which sanitizes `x` in its "then" branch.
*/
class TypeOfSanitizer extends TaintTracking::SanitizerGuardNode, DataFlow::ValueNode {