Skip to content

Commit 14be4fe

Browse files
authored
Merge pull request github#3594 from erik-krogh/CachedExprStringValue
Approved by asgerf
2 parents cd574e8 + 3b4e57a commit 14be4fe

File tree

1 file changed

+1
-0
lines changed
  • javascript/ql/src/semmle/javascript

1 file changed

+1
-0
lines changed

javascript/ql/src/semmle/javascript/Expr.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ class Expr extends @expr, ExprOrStmt, ExprOrType, AST::ValueNode {
108108
int getIntValue() { none() }
109109

110110
/** Gets the constant string value this expression evaluates to, if any. */
111+
cached
111112
string getStringValue() { none() }
112113

113114
/** Holds if this expression is impure, that is, its evaluation could have side effects. */

0 commit comments

Comments
 (0)