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

migrate off of library.parts #3342

Merged
merged 11 commits into from Jul 25, 2022
Merged

migrate off of library.parts #3342

merged 11 commits into from Jul 25, 2022

Conversation

jakemac53
Copy link
Contributor

No description provided.

@jakemac53 jakemac53 requested a review from scheglov July 25, 2022 14:02
@jakemac53
Copy link
Contributor Author

Looks like links to direct source files on github are not working, causing the markdown checker to fail.

@@ -256,7 +256,7 @@ class AnalyzerResolver implements ReleasableResolver {
Future<List<ErrorsResult>> _syntacticErrorsFor(LibraryElement element) async {
final existingElements = [
element,
for (final part in element.parts)
for (final part in element.parts2)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like this no longer gives the actual part source, but just the library source.

How can I get the part source? It seems hidden now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I cast these to a DirectiveUriWithSource? Or just do a check for that type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok yeah that looks like the fix, I updated to check for the DirectiveUriWithSource type and then use the source from that. LMK if I should do something else.

@jakemac53 jakemac53 merged commit be57ae7 into master Jul 25, 2022
@jakemac53 jakemac53 deleted the parts-2 branch July 25, 2022 16:33
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.

None yet

2 participants