dimeOpenScope function

DimeScope dimeOpenScope(
  1. String name
)

Opens a scope by name, will return scope if was already created under that name will return the created scope

Implementation

DimeScope dimeOpenScope(String name) {
  var currentScope = dimeGetScope(name);
  if (currentScope != null) {
    return currentScope;
  }
  var scope = DimeScope(name);
  dimeAddScope(scope);
  return scope;
}