aboutsummaryrefslogtreecommitdiff
path: root/eval.h
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2017-12-27 16:50:09 -0800
committerDan Willemsen <dwillemsen@google.com>2017-12-27 16:50:09 -0800
commit741974195712be8c53529cffc0b8222c970f685c (patch)
tree3d36cbcf4dd9525b604fa92c77b2ca181a893d6d /eval.h
parent2f55dd9244f4ea7ca613bbd41a7324e955d74f50 (diff)
downloadkati-741974195712be8c53529cffc0b8222c970f685c.tar.gz
Expand PeekVar to KATI_(deprecated|obsolete)_var
So that marking a variable as deprecated or obsolete does not cause the variable to be inserted into the used environment table.
Diffstat (limited to 'eval.h')
-rw-r--r--eval.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.h b/eval.h
index 1dff4b7..e588f7e 100644
--- a/eval.h
+++ b/eval.h
@@ -47,6 +47,9 @@ class Evaluator {
// For target specific variables.
Var* LookupVarInCurrentScope(Symbol name);
+ // Equivalent to LookupVar, but doesn't mark as used.
+ Var* PeekVar(Symbol name);
+
string EvalVar(Symbol name);
const Loc& loc() const { return loc_; }