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 imported feature detection #411

Merged
merged 2 commits into from
Dec 22, 2023
Merged

fix imported feature detection #411

merged 2 commits into from
Dec 22, 2023

Conversation

mbostock
Copy link
Member

Fixes #403. We need to use the same getFeatureReferenceMap technique that we use for imports for code blocks in Markdown.

@mbostock mbostock requested a review from cinxmo December 20, 2023 02:16
* Returns a map from Identifier to the feature type, such as FileAttachment.
* Note that this may be different than the identifier.name because of aliasing.
*/
export function getFeatureReferenceMap(node: Node): Map<Identifier, Feature["type"]> {
Copy link
Member Author

@mbostock mbostock Dec 20, 2023

Choose a reason for hiding this comment

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

I moved this into features.ts to avoid a circular import. I didn’t make other changes.

@mbostock mbostock merged commit 43653e8 into main Dec 22, 2023
2 checks passed
@mbostock mbostock deleted the mbostock/fix-feature-import branch December 22, 2023 00:16
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.

FileAttachment import and call cannot be within the same cell
2 participants