Skip to content

Conversation

nkcsgexi
Copy link
Contributor

@nkcsgexi nkcsgexi commented Mar 1, 2018

  • Explanation: When we print the parent type of an extended type, we used to print sugared type with generic arguments. This looks wired for interface and documentation generation. To fix this issue, the patch simply changes the API to use so that the parent type is printed as unbound and unsugared.
  • Scope: IDE interface printing; documentation generation
  • Risk: Very low
  • Testing: Regression tests added
  • Reviewer: @huonw
  • Radar: rdar://37965902

@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Mar 1, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Mar 1, 2018

Build failed
Swift Test OS X Platform
Git Sha - 1c11d418b921c0dd2e078a3a0fab6a1ac6d57cc0

@swift-ci
Copy link
Contributor

swift-ci commented Mar 1, 2018

Build failed
Swift Test Linux Platform
Git Sha - 1c11d418b921c0dd2e078a3a0fab6a1ac6d57cc0

…ar://37965902

When printing parent type directly, we may print generic arguments and sugared
dictionary type.
@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Mar 1, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Mar 1, 2018

Build failed
Swift Test Linux Platform
Git Sha - 1c11d418b921c0dd2e078a3a0fab6a1ac6d57cc0

@swift-ci
Copy link
Contributor

swift-ci commented Mar 1, 2018

Build failed
Swift Test OS X Platform
Git Sha - 1c11d418b921c0dd2e078a3a0fab6a1ac6d57cc0

@nkcsgexi nkcsgexi closed this Mar 1, 2018
@nkcsgexi nkcsgexi deleted the sourcekit-fix-4.1-print branch March 1, 2018 21:27
@nkcsgexi nkcsgexi restored the sourcekit-fix-4.1-print branch March 1, 2018 21:29
@nkcsgexi nkcsgexi reopened this Mar 1, 2018
@nkcsgexi nkcsgexi merged commit 0db5a22 into swiftlang:swift-4.1-branch Mar 1, 2018
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