Skip to content

[WIP][Parser][SR-1952] Added @escaping attribute parsing #3425

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
Jul 15, 2016

Conversation

tanadeau
Copy link
Contributor

@tanadeau tanadeau commented Jul 9, 2016

What's in this pull request?

Adds parsing of the new @escaping attribute.

Resolved bug number: WIP of (SR-1952)


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
All supported platforms @swift-ci Please smoke test and merge
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
All supported platforms @swift-ci Please test and merge
OS X platform @swift-ci Please test OS X platform
OS X platform @swift-ci Please benchmark
Linux platform @swift-ci Please test Linux platform

Lint Testing

Language Comment
Python @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

}

bool isNoReturn() const { return Bits & NoReturnMask; }
bool isAutoClosure() const { return Bits & AutoClosureMask; }
bool isNoEscape() const { return Bits & NoEscapeMask; }
bool isExplicitlyEscaping() const { return Bits & ExplicitlyEscapingMask; }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that everything involved with "explicitly escaping" in this PR is temporary and will be removed once the default is changed.

@CodaFi
Copy link
Contributor

CodaFi commented Jul 15, 2016

@swift-ci please test.

@tanadeau
Copy link
Contributor Author

The checks passed. Can this be merged?

@@ -2159,11 +2159,12 @@ class AnyFunctionType : public TypeBase {
// |representation|isAutoClosure|noReturn|noEscape|throws|
// | 0 .. 3 | 4 | 5 | 6 | 7 |
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: This doc comment needs to be updated.

@CodaFi
Copy link
Contributor

CodaFi commented Jul 15, 2016

Yep. Good work! 👍

@CodaFi CodaFi merged commit a77539a into swiftlang:master Jul 15, 2016
@tanadeau tanadeau deleted the sr-1952-add-escaping-parsing branch July 17, 2016 06:21
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.

2 participants