Merge pull request #3594 from erik-krogh/CachedExprStringValue

Approved by asgerf
This commit is contained in:
semmle-qlci
2020-05-30 16:56:40 +01:00
committed by GitHub

View File

@@ -108,6 +108,7 @@ class Expr extends @expr, ExprOrStmt, ExprOrType, AST::ValueNode {
int getIntValue() { none() }
/** Gets the constant string value this expression evaluates to, if any. */
cached
string getStringValue() { none() }
/** Holds if this expression is impure, that is, its evaluation could have side effects. */