Skip to content

Simplify closure conversion#41061

Merged
agocke merged 3 commits intodotnet:masterfrom
agocke:simplify-closure-conversion
Jan 22, 2020
Merged

Simplify closure conversion#41061
agocke merged 3 commits intodotnet:masterfrom
agocke:simplify-closure-conversion

Conversation

@agocke
Copy link
Copy Markdown
Member

@agocke agocke commented Jan 17, 2020

Moves an ArrayBuilder for DeclaredEnvironments to a single environment.
This means that a scope only declares a single closure environment for its
captured variables.

I left space for us to declare multiple closure environments
in a single scope, but that seems like overengineering at the
moment and it makes a lot of code more complicated. We can
always add it back if it seems like it would be worth it

@agocke agocke force-pushed the simplify-closure-conversion branch from fe44e1c to e57df48 Compare January 17, 2020 23:20
I left space for us to declare multiple closure environments
in a single scope, but that seems like overengineering at the
moment and it makes a lot of code more complicated. We can
always add it back if it seems like it would be worth it
@agocke agocke force-pushed the simplify-closure-conversion branch from e57df48 to bcea8a8 Compare January 18, 2020 01:02
@agocke agocke marked this pull request as ready for review January 19, 2020 08:25
@agocke agocke requested a review from a team as a code owner January 19, 2020 08:25
Copy link
Copy Markdown
Member

@chsienki chsienki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@agocke agocke merged commit b914a43 into dotnet:master Jan 22, 2020
@agocke agocke deleted the simplify-closure-conversion branch January 22, 2020 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants