AggregateDeclaration.enclosing

!=null if is nested pointing to the dsymbol that directly enclosing it. 1. The function that enclosing it (nested struct and class) 2. The class that enclosing it (nested class only) 3. If enclosing aggregate is template, its enclosing dsymbol.

See AggregateDeclaraton::makeNested for the details.

class AggregateDeclaration
Dsymbol enclosing;
Suggestion Box / Bug Report