scopeOf method
The scope (this or an ancestor) holding name, or null.
Implementation
MapValueScope? scopeOf(String name) {
ValueScope? s = this;
while (s != null) {
if (s is MapValueScope && s.declares(name)) return s;
s = s.parent;
}
return null;
}