is_top_level

Function is_top_level 

Source
pub fn is_top_level(scope_stack: &[ScopeFlags]) -> bool
Expand description

if current visit path is top level including such scenario:

class T {
  [foo]() {}
}
class A {
  static {
    foo;
  }
}

foo;
{
  foo;
}