Skip to content

[SE-0040] Replace '=' with ':' before attribute argument.#1537

Merged
lattner merged 3 commits intoswiftlang:masterfrom
dduan:SE-0040-pr
Mar 12, 2016
Merged

[SE-0040] Replace '=' with ':' before attribute argument.#1537
lattner merged 3 commits intoswiftlang:masterfrom
dduan:SE-0040-pr

Conversation

@dduan
Copy link
Contributor

@dduan dduan commented Mar 4, 2016

What's in this pull request?

  1. Implement SE-0040. Replace '=' with ':' before a attribute argument. The changes include parser (warning + fixit) and ASTPrinter.
  2. Update tests accordingly.
  3. Apply new syntax from the proposal to stdlib.

Note: at the time this PR is submitted, SE-0040 is still under review. I'm leaving this here just in case this wild proposal gets accepted. SE-0040 has been approved.

giphy-1


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
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
OS X platform @swift-ci Please test OS X platform
Linux platform @swift-ci Please test Linux platform

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want a space after the colon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is the case in ASTPrinter and stdlib. I'll update this doc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But I think that would hide CI results. So after that.

@gribozavr
Copy link
Contributor

@swift-ci Please test

@lattner
Copy link
Contributor

lattner commented Mar 4, 2016

Heh, thanks. It certainly seems like a highly controversial proposal! :-)

@gribozavr
Copy link
Contributor

@swift-ci Please test

@dduan dduan force-pushed the SE-0040-pr branch 6 times, most recently from 7571347 to 7ea787f Compare March 11, 2016 23:33
lattner added a commit that referenced this pull request Mar 12, 2016
[SE-0040] Replace '=' with ':' before attribute argument.
@lattner lattner merged commit 97d8f50 into swiftlang:master Mar 12, 2016
@lattner
Copy link
Contributor

lattner commented Mar 12, 2016

Awesome, merged and tests pass for me, thank you!

@dduan
Copy link
Contributor Author

dduan commented Mar 12, 2016

Great. Thanks Chris!

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.

3 participants