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

feat: expose analyzing deps without a ParsedSource and improvements to Comments #195

Merged
merged 7 commits into from
Dec 18, 2023

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Dec 8, 2023

Need this in order to do module analysis from an swc module without a ParsedSource

@dsherret dsherret requested a review from bartlomieju December 8, 2023 19:32
@dsherret dsherret changed the title feat: expose function for analyzing module deps without a ParsedSource feat: expose analyzing deps without a ParsedSource and improvements to Comments Dec 8, 2023
}

/// Iterates through all the comments in an unstable order.
pub fn iter_unstable(&self) -> impl Iterator<Item = &Comment> {
Copy link
Member Author

Choose a reason for hiding this comment

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

In the module analysis we can use this instead and then sort on the backend after filtering. Should be much faster.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM

@dsherret dsherret merged commit 6dfab72 into denoland:main Dec 18, 2023
@dsherret dsherret deleted the feat_analyze_module_deps branch December 18, 2023 19:42
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.

2 participants