Skip to content

Expose IMethodSymbolInternal.IsIterator #20179

@twsouthwick

Description

@twsouthwick

There is no way to determine from a symbol given an IMethodSymbol whether the method is implemented as an iterator. There is an internal interface IMethodSymbolInternal which exposes an IsIterator property (see http://source.roslyn.io/#Microsoft.CodeAnalysis/Symbols/IMethodSymbolInternal.cs,c8f15f835b2ac0d4), but I can't see any way to access it from the public surface area. Can this be exposed via some public contract?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-CompilersConcept-APIThis issue involves adding, removing, clarification, or modification of an API.Feature Requestapi-approvedAPI was approved in API review, it can be implemented

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions