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 class name lookup for single file mapping #267

Open
AntoineGautier opened this issue Feb 10, 2025 · 0 comments
Open

Fix class name lookup for single file mapping #267

AntoineGautier opened this issue Feb 10, 2025 · 0 comments

Comments

@AntoineGautier
Copy link
Contributor

AntoineGautier commented Feb 10, 2025

When mapping a package to a file, the function searchpath from ./lib/util.js returns the package file path for any class defined in the package.
This function is used in lib/expressionEvaluation.js to retrieve the class definition for a given type specifier.
This will fail in case of single file mapping, typically used for type definitions in MBL.
This ticket will append the simple class name in case the file name returned by searchpath does not match the simple class name.

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

No branches or pull requests

1 participant