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

can't correctly generate code if another file is imported with prefix #14

Open
miklcct opened this issue May 16, 2024 · 0 comments
Open

Comments

@miklcct
Copy link

miklcct commented May 16, 2024

Example

foo.dart

import 'package:morphy_annotation/morphy_annotation.dart';

import 'bar.dart' as bar;

part 'foo.g.dart';
part 'foo.morphy.dart';

@Morphy(generateJson: true)
abstract class $Foo {
    bar.$Bar get bar;
}

bar.dart

import 'package:morphy_annotation/morphy_annotation.dart';

part 'bar.g.dart';
part 'bar.morphy.dart';

@Morphy(generateJson: true)
abstract class $Bar {
    int get value;
}

The generated code misses the prefix so it doesn't work.

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