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

BUG: Usage of aliases is not generating correct code #173

Open
JanMichaelPeter opened this issue Nov 7, 2024 · 0 comments
Open

BUG: Usage of aliases is not generating correct code #173

JanMichaelPeter opened this issue Nov 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JanMichaelPeter
Copy link
Collaborator

Describe the bug
A bug was reported to me that when a library is imported under an alias, the code-generation is not using this alias.

To Reproduce
Steps to reproduce the behavior, e.g.:

  1. Create new Driver
  2. Import a library to the driver using an alias. e.g. import '../../constants.dart' as foo;
  3. Use the alias in code e.g.: 'foo.SomeClass get class => ...'
  4. Run the generator to generate the test driver
  5. Observe that code was not generated using the alias

Expected behavior
If I import stuff using an alias, the code generator should also use the alias

@JanMichaelPeter JanMichaelPeter added the bug Something isn't working label Nov 7, 2024
@ebajrami ebajrami self-assigned this Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants