Skip to content
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

Fix #13277 - Base class in JSON output is always unqualified #3867

Merged
merged 1 commit into from Aug 17, 2014

Conversation

Orvid
Copy link
Contributor

@Orvid Orvid commented Aug 11, 2014

This fixes #13277 as well as expands the names of the interfaces it implements.

@9rnsr
Copy link
Contributor

9rnsr commented Aug 11, 2014

Requires test case fix.

@Orvid
Copy link
Contributor Author

Orvid commented Aug 11, 2014

Woops, missed that. I'll make that change in a bit, but first a question. I noticed that originalType is also output as unqualified, and made the same change that I did here to that, yet it still is producing unqualified names as the output. json.c:478 and json.c:481 are the ones I changed to toPrettyChars(true). Any idea why this would be?

@9rnsr
Copy link
Contributor

9rnsr commented Aug 12, 2014

Json field originalType means that the "original type representation in code". So, if the type is unqualified in original code, it should also be unqualified in json output.

Technically, Declaration::originalType holds a type object that is yet not be semantic analyzed. So Type::toPrettyPrintChars() does not work on that.

… qualified names rather than unresolved names.
@Orvid
Copy link
Contributor Author

Orvid commented Aug 16, 2014

Alright, updated to fix the tests.

@9rnsr
Copy link
Contributor

9rnsr commented Aug 17, 2014

LGTM.

@9rnsr
Copy link
Contributor

9rnsr commented Aug 17, 2014

Auto-merge toggled on

9rnsr added a commit that referenced this pull request Aug 17, 2014
Fix #13277 - Base class in JSON output is always unqualified
@9rnsr 9rnsr merged commit 790c3fc into dlang:master Aug 17, 2014
@Orvid Orvid deleted the fullyQualifiedBases branch August 17, 2014 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants