Skip to content

[ModuleInterface] Escape Type and Protocol when they're type members #24111

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
Apr 24, 2019

Conversation

harlanhaskins
Copy link
Contributor

Previously, we wouldn't escape Type and Protocol at all in the
ASTPrinter, which lead to unfortunate build failures while compiling an
interface.

Instead, make sure we escape them whenever we print a name that's a type
member. Except for methods, which are erroneously allowed to be called
Type and Protocol.

rdar://49858651

@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@jrose-apple
Copy link
Contributor

It shouldn't hurt to escape them for methods, right?

@harlanhaskins
Copy link
Contributor Author

I don't think it'd hurt, no. Should I just escape functions instead of special-casing them?

@jrose-apple
Copy link
Contributor

I think that's my preference, especially if we decide to start checking functions in the future.

@harlanhaskins harlanhaskins force-pushed the my-type-of-patch branch 2 times, most recently from b3d85bc to a73daa2 Compare April 18, 2019 17:21
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

1 similar comment
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

Previously, we wouldn't escape `Type` and `Protocol` at all in the
ASTPrinter, which lead to unfortunate build failures while compiling an
interface.

Instead, make sure we escape them whenever we print a name that's a type
member. Except for methods, which are erroneously allowed to be called
`Type` and `Protocol`.

rdar://49858651
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins harlanhaskins merged commit 5f823fb into swiftlang:master Apr 24, 2019
harlanhaskins pushed a commit to harlanhaskins/swift that referenced this pull request Apr 24, 2019
…ers (swiftlang#24111)

Previously, we wouldn't escape `Type` and `Protocol` at all in the
ASTPrinter, which lead to unfortunate build failures while compiling an
interface.

Instead, make sure we escape them whenever we print a name that's a type
member. Except for methods, which are erroneously allowed to be called
`Type` and `Protocol`.

rdar://49858651
harlanhaskins pushed a commit that referenced this pull request Apr 25, 2019
…ers (#24111) (#24241)

Previously, we wouldn't escape `Type` and `Protocol` at all in the
ASTPrinter, which lead to unfortunate build failures while compiling an
interface.

Instead, make sure we escape them whenever we print a name that's a type
member. Except for methods, which are erroneously allowed to be called
`Type` and `Protocol`.

rdar://49858651
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