Skip to content

AST: Move up getBase() to TypeRepr to allow more generic access. NFC #9086

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

Closed
wants to merge 1 commit into from
Closed

AST: Move up getBase() to TypeRepr to allow more generic access. NFC #9086

wants to merge 1 commit into from

Conversation

nkcsgexi
Copy link
Contributor

No description provided.

@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

@jrose-apple
Copy link
Contributor

If we do this, I think we need to come up with a better name. These "bases" are all pretty different from each other, and relying on it would miss things like DictionaryType that splits in two.

What are you really trying to do?

@jrose-apple
Copy link
Contributor

(and additionally, is TypeRepr::walk good enough for whatever you're trying to do?)

@nkcsgexi
Copy link
Contributor Author

Basically, we are trying to reduce some code duplication in #9084 . we need a way to generically access the nested level inside of typerepr.

@nkcsgexi nkcsgexi closed this Apr 28, 2017
@nkcsgexi nkcsgexi deleted the move-get-base branch April 28, 2017 00:04
@nkcsgexi
Copy link
Contributor Author

Per discussion with @jrose-apple , getBase() can be misleading as a general type repr method; thus we drop the PR.

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