getValue method

dynamic getValue(
  1. String name
)

Implementation

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