Skip to content

Hardcode that the Swift.AnyObject typealias resolves to the builtin A…#4882

Merged
adrian-prantl merged 2 commits intoswiftlang:swift/release/5.7from
adrian-prantl:hardcode-anyobject
Jun 24, 2022
Merged

Hardcode that the Swift.AnyObject typealias resolves to the builtin A…#4882
adrian-prantl merged 2 commits intoswiftlang:swift/release/5.7from
adrian-prantl:hardcode-anyobject

Conversation

@adrian-prantl
Copy link
Copy Markdown

Hardcode that the Swift.AnyObject typealias resolves to the builtin A…
…nyObject type.

This prevents round-tripping to SwiftASTContext to resolve these types.

@adrian-prantl
Copy link
Copy Markdown
Author

@swift-ci test

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit, you could replace these two lines with:

return ident && ident->hasText() && ident->getText() == "AnyObject";

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I didn't want to make it harder to read by suddenly inverting the conditions on the last line.

@adrian-prantl
Copy link
Copy Markdown
Author

@swift-ci test macOS

…nyObject type.

This prevents round-tripping to SwiftASTContext to resolve these types.
@adrian-prantl
Copy link
Copy Markdown
Author

@swift-ci test

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