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

[js-parser] Support re-exported enums #9769

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

maorleger
Copy link
Member

@maorleger maorleger commented Feb 4, 2025

Adds support for re-exported enums, ensuring APIView shows the correct (i.e. exported and customer-visible) name for an enum.

I scoped this just to enums for now, but we can expand if we find other usages.

I also went ahead and added a basic test with a basic test fixture. Future PR will work with @praveenkuttappan to ideally add this to CI builds for the parser.

Resolves #9768

@maorleger maorleger marked this pull request as ready for review February 4, 2025 19:11
@maorleger maorleger requested a review from jeremymeng as a code owner February 4, 2025 19:11
@maorleger maorleger requested a review from Copilot February 4, 2025 19:12

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 6 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • tools/apiview/parsers/js-api-parser/package.json: Language not supported
  • tools/apiview/parsers/js-api-parser/test/data/renamedEnum.json: Language not supported
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: ["**/*.spec.ts"],
Copy link
Member

Choose a reason for hiding this comment

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

nit:

Suggested change
include: ["**/*.spec.ts"],
include: ["test/**/*.spec.ts"],

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.

[JS Parser] Add support for renamed enums
2 participants