Microsoft.Cci.AggregatingLocalScopeProvider.GetNamespaceScopes C# (CSharp) Method

GetNamespaceScopes() public method

Returns zero or more namespace scopes into which the namespace type containing the given method body has been nested. These scopes determine how simple names are looked up inside the method body. There is a separate scope for each dotted component in the namespace type name. For istance namespace type x.y.z will have two namespace scopes, the first is for the x and the second is for the y.
public GetNamespaceScopes ( IMethodBody methodBody ) : IEnumerable
methodBody IMethodBody
return IEnumerable
    public IEnumerable<INamespaceScope> GetNamespaceScopes(IMethodBody methodBody) {
      ILocalScopeProvider/*?*/ provider = this.GetProvider(methodBody.MethodDefinition);
      if (provider == null) {
        return Enumerable<INamespaceScope>.Empty;
      } else {
        return provider.GetNamespaceScopes(methodBody);
      }
    }