findDefiningEnvironment method
Implementation
Environment? findDefiningEnvironment(String name) {
if (_values.containsKey(name)) {
return this;
}
if (_enclosing != null) {
return _enclosing.findDefiningEnvironment(name);
}
return null; // Not found in this scope or any enclosing scope
}