enclosingScope method

Scope enclosingScope(
  1. Node? node
)

Implementation

Scope enclosingScope(Node? node) {
  while (node is! Scope) {
    node = node!.parent;
  }
  return node;
}