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

Refactor how Object and Pragma are discovered and handled #3929

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

srawlins
Copy link
Member

@srawlins srawlins commented Nov 14, 2024

Fixes #3927

This may have positive perf implications. While documenting googleapis three times, I see the time to document decrease by 1%-1.8%, and memory seems to be reduced by 0.5%. These numbers could be within the margin of error though. 🤷


  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

@srawlins
Copy link
Member Author

Ready for review, @dart-lang/analyzer-team

@srawlins srawlins merged commit fa339a1 into dart-lang:main Nov 15, 2024
7 checks passed
@srawlins srawlins deleted the specials-3 branch November 15, 2024 16:42
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Nov 19, 2024
Revisions updated by `dart tools/rev_sdk_deps.dart`.

dartdoc (https://github.com/dart-lang/dartdoc/compare/6bbd3d7..f8a55e4):
  f8a55e4b  2024-11-18  Parker Lougheed  Remove unused build config (dart-lang/dartdoc#3923)
  fa339a10  2024-11-15  Sam Rawlins  Refactor how Object and Pragma are discovered and handled (dart-lang/dartdoc#3929)

http (https://github.com/dart-lang/http/compare/2f954e1..e37093f):
  e37093f  2024-11-15  Brian Quinlan  Upgrade to `package:`objective_c` 4.0 (dart-lang/http#1406)
  e509abb  2024-11-14  Slava Egorov  Switch browser_client.dart to use fetch (dart-lang/http#1401)

yaml_edit (https://github.com/dart-lang/yaml_edit/compare/3d1421b..8bd0fdf):
  8bd0fdf  2024-11-18  Kevin Moore  Fix unused param in a private ctor lint (dart-lang/yaml_edit#99)

Change-Id: I12a74dc3bce629c213d26fbb6e76fc3c19a443dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396422
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Devon Carew <[email protected]>
/// The collection of "special" classes for which we need some special access.
final specialClasses = SpecialClasses();
/// The Object class declared in the Dart SDK's 'dart:core' library.
late InheritingContainer objectClass;

Choose a reason for hiding this comment

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

Looks like this broke dartdoc analysis for certain packages (looks like when mixins are used). See #3947

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.

Refactor dartdoc's complex system of "special classes"
3 participants