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
would like an option to sort in source code order for class members #12513
Comments
Removed Type-Defect label. |
I like that idea, but it would require some enhancements to docgen to provide the information. Added this to the Later milestone. |
And is likely not possible if we're using mirrors to extract the information, as they don't provide the source code ordering. Removed Priority-Medium label. |
This comment was originally written by @seaneagan Hmm, the fact that dart2js mirrors doesn't expose the order would seem like a bug, especially since it is exposed via DeclarationMirror.declarations in the runtime mirrors, as seen in this quick test: https://gist.github.com/seaneagan/8408456 I would file a bug, but I'm not sure what was tried that didn't work. Care to file a bug for it? |
I don't think it's specified to give them in any order. We could hope that it consistently does so across three different implementations. It might work, just because the default Map is a LinkedHashMap which preserves order in keys, but all it needs is for one of those parsers to start doing things out of order or use a non-linked hash map as an optimization and it would stop working. |
Removed Area-DartDocNext label. |
Removed Library-Docgen label. |
Added Pkg-DartDoc label. |
Removed Area-DartDoc label. |
Removed Pkg-DartDoc label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
Moved to dart-lang/dartdoc#96 Added MovedToGithub label. |
This issue was originally filed by mcam...@google.com
Source code is usually ordered in functional groupings. This is a good way to scan a class.
Also, it would make editing the docs easier.
mem
The text was updated successfully, but these errors were encountered: