getValue method
Implementation
dynamic getValue(String name) {
if (values.containsKey(name)) {
return values[name];
}
if (enclosing != null) return enclosing!.getValue(name);
throw EvaluationError("Undefined variable '$name'.");
}
dynamic getValue(String name) {
if (values.containsKey(name)) {
return values[name];
}
if (enclosing != null) return enclosing!.getValue(name);
throw EvaluationError("Undefined variable '$name'.");
}