Skip to content

[AST] Indicate which closures are escaping in AST dumps #17097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2018
Merged

[AST] Indicate which closures are escaping in AST dumps #17097

merged 1 commit into from
Jun 18, 2018

Conversation

beccadax
Copy link
Contributor

This change adds an "escaping" flag to AST dumps of closures with @escaping types. This helps when working on issues involving escaping vs. non-escaping closures.

My first attempt to do this added @escaping to function types in ASTPrinter, but this broke 239 tests, most having nothing to do with closures. I took this as a sign that adding escaping information to all function type dumps was overbroad.

@jrose-apple
Copy link
Contributor

I think we're still hoping to get @escaping out of FunctionType someday. This looks good to me.

@CodaFi
Copy link
Contributor

CodaFi commented Jun 15, 2018

@swift-ci please smoke test

@CodaFi
Copy link
Contributor

CodaFi commented Jun 18, 2018

It's been a few days

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 8f23048 into swiftlang:master Jun 18, 2018
@beccadax beccadax deleted the noescape-from-the-ast-dump-scrape branch June 19, 2018 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants