Skip to content

Commit b5f705a

Browse files
authored
Merge pull request #20985 from asgerf/js/overlay-local-optional
JS: Use question-mark variant in all overlay annotations
2 parents 877669d + 4d1200f commit b5f705a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+141
-141
lines changed

javascript/ql/lib/Expressions/ExprHasNoEffect.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Provides classes and predicates for the 'js/useless-expression' query.
33
*/
4-
overlay[local]
4+
overlay[local?]
55
module;
66

77
import javascript

javascript/ql/lib/LanguageFeatures/UnusedIndexVariable.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Provides a predicate for identifying unused index variables in loops.
33
*/
4-
overlay[local]
4+
overlay[local?]
55
module;
66

77
import javascript

javascript/ql/lib/semmle/javascript/AMD.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Provides classes for working with
33
* [Asynchronous Module Definitions](https://github.com/amdjs/amdjs-api/wiki/AMD).
44
*/
5-
overlay[local]
5+
overlay[local?]
66
module;
77

88
import javascript

javascript/ql/lib/semmle/javascript/AST.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Provides classes for working with the AST-based representation of JavaScript programs.
33
*/
4-
overlay[local]
4+
overlay[local?]
55
module;
66

77
import javascript
@@ -477,7 +477,7 @@ module AST {
477477
DataFlow::AnalyzedNode analyze() { result = DataFlow::valueNode(this).analyze() }
478478

479479
/** Gets the data flow node associated with this program element. */
480-
overlay[caller]
480+
overlay[caller?]
481481
pragma[inline]
482482
DataFlow::ValueNode flow() { result = DataFlow::valueNode(this) }
483483

javascript/ql/lib/semmle/javascript/CFG.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
* Note that the `import` statement as a whole is part of the CFG of the body, while its single
273273
* import specifier `x as y` forms part of the preamble.
274274
*/
275-
overlay[local]
275+
overlay[local?]
276276
module;
277277

278278
import javascript

javascript/ql/lib/semmle/javascript/Classes.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Class declarations and class expressions are modeled by (QL) classes `ClassDeclaration`
55
* and `ClassExpression`, respectively, which are both subclasses of `ClassDefinition`.
66
*/
7-
overlay[local]
7+
overlay[local?]
88
module;
99

1010
import javascript

javascript/ql/lib/semmle/javascript/Closure.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Provides classes for working with the Closure-Library module system.
33
*/
4-
overlay[local]
4+
overlay[local?]
55
module;
66

77
import javascript

javascript/ql/lib/semmle/javascript/Comments.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** Provides classes for working with JavaScript comments. */
2-
overlay[local]
2+
overlay[local?]
33
module;
44

55
import javascript

javascript/ql/lib/semmle/javascript/Constants.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Provides classes for working with expressions that evaluate to constant values.
33
*/
4-
overlay[local]
4+
overlay[local?]
55
module;
66

77
import javascript

javascript/ql/lib/semmle/javascript/DefUse.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** Provides classes and predicates for working with variable definitions and uses. */
2-
overlay[local]
2+
overlay[local?]
33
module;
44

55
import javascript

0 commit comments

Comments
 (0)