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

GetIteratorScopes() public method

Returns zero or more local (block) scopes, each defining an IL range in which an iterator local is defined. The scopes are returned by the MoveNext method of the object returned by the iterator method. The index of the scope corresponds to the index of the local. Specifically local scope i corresponds to the local stored in field <localName>x_i of the class used to store the local values in between calls to MoveNext.
public GetIteratorScopes ( IMethodBody methodBody ) : IEnumerable
methodBody IMethodBody
return IEnumerable
    public IEnumerable<ILocalScope> GetIteratorScopes(IMethodBody methodBody) {
      ILocalScopeProvider/*?*/ provider = this.GetProvider(methodBody.MethodDefinition);
      if (provider == null) {
        return Enumerable<ILocalScope>.Empty;
      } else {
        return provider.GetIteratorScopes(methodBody);
      }
    }