mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Fix syntax errors in QL comments
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -53,7 +53,7 @@ import javascript
|
||||
*
|
||||
* /**
|
||||
* * @param {!Object} obj
|
||||
* * @return {!Array<string>}
|
||||
* * @return {!Array<string>}
|
||||
* */
|
||||
* Object.keys = function(obj) {};
|
||||
*
|
||||
@@ -109,7 +109,7 @@ class ExternalTypedef extends ExternalDecl, VariableDeclarator {
|
||||
*
|
||||
* /**
|
||||
* * @param {!Object} obj
|
||||
* * @return {!Array<string>}
|
||||
* * @return {!Array<string>}
|
||||
* */
|
||||
* Object.keys = function(obj) {};
|
||||
*
|
||||
@@ -214,7 +214,7 @@ class ExternalGlobalVarDecl extends ExternalGlobalDecl, VariableDeclarator {
|
||||
* <pre>
|
||||
* /**
|
||||
* * @param {!Object} obj
|
||||
* * @return {!Array<string>}
|
||||
* * @return {!Array<string>}
|
||||
* */
|
||||
* Object.keys = function(obj) {};
|
||||
*
|
||||
@@ -273,7 +273,7 @@ class ExternalMemberDecl extends ExternalVarDecl, ExprStmt {
|
||||
* <pre>
|
||||
* /**
|
||||
* * @param {!Object} obj
|
||||
* * @return {!Array<string>}
|
||||
* * @return {!Array<string>}
|
||||
* */
|
||||
* Object.keys = function(obj) {};
|
||||
*
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user