Skip to content

await foreach -- new language feature (test case available) #13

@goojal

Description

@goojal

Compiler generates a different IAsyncStateMachine for await foreach to handle iteration on async enumerables. It contains a MoveNextAsync method beside MoveNext. So we can find this pattern by checking if this method exists and based on that transform the statements to await foreach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions