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 Issue 3404 - JSON output should retain original alias names #1515

Merged
merged 1 commit into from Jan 20, 2013
Merged

fix Issue 3404 - JSON output should retain original alias names #1515

merged 1 commit into from Jan 20, 2013

Conversation

WalterBright
Copy link
Member

http://d.puremagic.com/issues/show_bug.cgi?id=3404

Trying to break #1179 into manageable chunks.

"kind" : "variable",
"protection" : "public",
"type" : "int",
"originalType" : "myInt",
Copy link

Choose a reason for hiding this comment

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

I would expect that an alias is the type, and the type which was aliased is the original type, not the other way around.

Better yet, why not just rename this to aliasType? It won't be ambiguous then.

Copy link
Member Author

Choose a reason for hiding this comment

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

enums and typedefs can also change the type from the "originalType" (even though typedefs are deprecated). originalType is essentially what is in the user source code before semantic analysis.

Copy link

Choose a reason for hiding this comment

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

Ok, but I hope this will be documented somewhere. In fact, is JSON output documented at all?

Copy link
Member Author

Choose a reason for hiding this comment

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

no

WalterBright added a commit that referenced this pull request Jan 20, 2013
fix Issue 3404 - JSON output should retain original alias names
@WalterBright WalterBright merged commit bac55b3 into dlang:master Jan 20, 2013
@WalterBright WalterBright deleted the b18 branch January 20, 2013 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant